/* Shared Play / Community UI. Scoped to protect existing dashboard/profile work. */
:root {
    --nd-bg: #f6f5f8;
    --nd-card: #fff;
    --nd-text: #211631;
    --nd-muted: #81728e;
    --nd-line: #e7e1ed;
    --nd-tab: #ebe6f2;
    --nd-primary: #ffcc00;
    --nd-purple: #2b1645;
    --nd-soft: #f6f2fb;
    --nd-shadow: 0 3px 10px #28194312;
    --nd-error: #b12c51;
    --nd-error-bg: #fff0f4;
}
html[data-na-theme="dark"] {
    --nd-bg: #15131d;
    --nd-card: #211c2b;
    --nd-text: #f5effc;
    --nd-muted: #baaacb;
    --nd-line: #3e344c;
    --nd-tab: #30273d;
    --nd-purple: #ddc2ff;
    --nd-soft: #2b2237;
    --nd-shadow: 0 3px 10px #0003;
    --nd-error: #ff9fb7;
    --nd-error-bg: #3b202d;
}
body.nd-page {
    margin: 0;
    background: var(--nd-bg);
    color: var(--nd-text);
    font-family: Inter, Arial, sans-serif;
}
html body.na-app-page.nd-page,
html[data-na-theme="dark"] body.na-app-page.nd-page {
    background-color: var(--nd-bg) !important;
}
.nd-shell,
.nd-dialog,
.nd-card,
.nd-bottom-nav {
    box-sizing: border-box;
    font-family: Inter, Arial, sans-serif;
    color: var(--nd-text);
}
.nd-shell *,
.nd-dialog *,
.nd-bottom-nav *,
.nd-card * {
    box-sizing: border-box;
}
.nd-shell {
    --nd-shell-padding-top: 32px;
    --nd-shell-padding-inline: 24px;
    max-width: 1120px;
    margin: 0 auto;
    padding: var(--nd-shell-padding-top) var(--nd-shell-padding-inline) 125px;
}
.nd-page--community .nd-shell {
    max-width: 800px;
}
/* The introduction scrolls normally; only the game filters stay below the header. */
.nd-shell[data-nd-feed] {
    padding-top: 0;
}
.nd-feed-controls {
    margin-inline: calc(-1 * var(--nd-shell-padding-inline));
    padding: var(--nd-shell-padding-top) var(--nd-shell-padding-inline) 12px;
    background: var(--nd-bg);
}
.nd-feed-controls > .nd-tabs {
    margin-bottom: 0;
}
.nd-shell[data-nd-feed] > .nd-games {
    position: sticky;
    top: var(--nd-header-height, 73px);
    z-index: 100;
    margin: 0 calc(-1 * var(--nd-shell-padding-inline)) 12px;
    padding: 12px var(--nd-shell-padding-inline);
    background: var(--nd-bg);
}
.nd-shell a,
.nd-card a,
.nd-dialog a,
.nd-bottom-nav a {
    text-decoration: none;
    color: inherit;
}
html body .nd-dialog input:not([type="checkbox"]):not([type="file"]),
html body .nd-dialog textarea,
html body .nd-dialog select,
html body .nd-filters input[type="search"],
html body .nd-filters select {
    background: var(--nd-card) !important;
    color: var(--nd-text) !important;
    border: 1px solid var(--nd-line) !important;
    box-shadow: none !important;
}
html body .nd-dialog .nd-field input[aria-invalid="true"],
html body .nd-dialog .nd-field textarea[aria-invalid="true"],
html body .nd-dialog .nd-field select[aria-invalid="true"] {
    border-color: var(--nd-error) !important;
}
html body .nd-dialog .nd-field :is(input, textarea, select):focus-visible {
    outline: 2px solid var(--nd-purple);
    outline-offset: 2px;
}
.nd-checkboxes[aria-invalid="true"] {
    outline: 1px solid var(--nd-error);
    outline-offset: 3px;
    border-radius: 6px;
}
.nd-dialog form fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 12px;
}
.nd-dialog .nd-type-field {
    max-width: none;
    margin: 0;
}
.nd-dialog .nd-form-fields {
    display: contents;
}
.nd-shell .nd-tabs,
.nd-shell .nd-games {
    scrollbar-width: none;
}
.nd-tabs::-webkit-scrollbar,
.nd-games::-webkit-scrollbar {
    display: none;
}
.nd-filter-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.nd-filters:not(:has(select)) {
    display: none;
}
html body .nd-filters select[name="fields[listing_type]"],
html body #nd-composer [data-field="listing_type"] select {
    appearance: auto !important;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}
html body .nd-filters select[name="fields[listing_type]"] {
    width: 200px;
}
/* Keep the opened Buy/Sell menu anchored to the field's rendered width. */
@supports (appearance: base-select) and (width: anchor-size(width)) {
    html body :is(#nd-composer [data-field="listing_type"] select, .nd-filters select[name="fields[listing_type]"]),
    html body :is(#nd-composer [data-field="listing_type"] select, .nd-filters select[name="fields[listing_type]"])::picker(select) {
        appearance: base-select !important;
    }
    html body :is(#nd-composer [data-field="listing_type"] select, .nd-filters select[name="fields[listing_type]"])::picker(select) {
        box-sizing: border-box;
        width: anchor-size(width);
        min-width: anchor-size(width);
        max-width: anchor-size(width);
        margin: 4px 0;
        padding: 4px;
        border: 1px solid var(--nd-line);
        border-radius: 7px;
        background: var(--nd-card);
        color: var(--nd-text);
        font: inherit;
    }
    html body :is(#nd-composer [data-field="listing_type"] select, .nd-filters select[name="fields[listing_type]"]) option {
        min-height: 36px;
        padding: 8px 12px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}
.nd-loading {
    margin: 20px 0;
    color: var(--nd-muted);
    font-size: 12px;
}
.nd-loading-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 14px;
}
.nd-loading-cards > div {
    height: 230px;
    border: 1px solid var(--nd-line);
    border-radius: 13px;
    background: var(--nd-card);
}
.nd-loading-cards > div::before {
    content: "";
    display: block;
    width: 70%;
    height: 12px;
    margin: 28px 20px;
    background: var(--nd-tab);
    border-radius: 4px;
    box-shadow:
        0 28px 0 var(--nd-soft),
        0 56px 0 var(--nd-soft),
        0 84px 0 var(--nd-soft);
}
.nd-loading.is-appending .nd-loading-cards {
    display: none;
}
.nd-posts[aria-busy="true"] {
    pointer-events: none;
}
.nd-tabs a,
.nd-games a {
    transition:
        background-color 0.12s ease,
        color 0.12s ease;
}
.nd-page--community .nd-loading-cards {
    grid-template-columns: 1fr;
}
@media (max-width: 600px) {
    .nd-loading-cards {
        grid-template-columns: 1fr;
    }
    .nd-loading-cards > div + div {
        display: none;
    }
    .nd-filter-fields {
        width: 100%;
    }
}
.nd-shell button,
.nd-card button,
.nd-dialog button {
    font: inherit;
    cursor: pointer;
}
.nd-shell svg,
.nd-card svg,
.nd-primary svg,
.nd-bottom-nav svg {
    width: 18px;
    height: 18px;
    flex: none;
}
.nd-hero {
    margin: 0 0 24px;
}
.nd-hero .nd-eyebrow {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.19em;
    color: var(--nd-muted);
    margin: 0 0 9px;
}
.nd-hero h1 {
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -1.2px;
    margin: 0 0 10px;
    font-weight: 800;
    color: var(--nd-text);
}
.nd-hero > p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--nd-muted);
    margin: 0 0 17px;
}
.nd-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--nd-primary) !important;
    color: #171020 !important;
    border: 1px solid transparent;
    border-radius: 9px;
    min-height: 43px;
    padding: 11px 17px;
    font-size: 13px;
    font-weight: 700 !important;
    line-height: 1.3;
    text-decoration: none;
}
.nd-primary:hover {
    filter: brightness(0.96);
}
.nd-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--nd-card);
    color: var(--nd-text);
    border: 1px solid var(--nd-line);
    border-radius: 8px;
    min-height: 40px;
    padding: 9px 13px;
    font-size: 12px;
}
.nd-primary:disabled,
.nd-secondary:disabled,
.nd-icon-button:disabled {
    cursor: wait;
    opacity: 0.6;
}
.nd-tabs {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 5px;
    background: var(--nd-tab);
    border-radius: 10px;
    margin-bottom: 24px;
    scrollbar-width: thin;
}
.nd-tabs a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1 0 auto;
    min-height: 37px;
    padding: 8px 18px;
    font-size: 12px;
    color: var(--nd-muted);
    border-radius: 6px;
    white-space: nowrap;
}
.nd-tabs a.is-active {
    background: var(--nd-card);
    color: var(--nd-text);
    font-weight: 700;
    box-shadow: var(--nd-shadow);
}
.nd-tabs svg {
    width: 15px;
    height: 15px;
}
.nd-category-rail {
    display: none;
}
.nd-games {
    display: flex;
    gap: 8px;
    overflow: auto;
    scrollbar-width: thin;
    padding-bottom: 5px;
    margin: 0 0 24px;
}
@media (any-pointer: fine) {
    .nd-games.is-draggable,
    .nd-games.is-draggable a { cursor: grab; user-select: none; }
    .nd-games.is-dragging,
    .nd-games.is-dragging a { cursor: grabbing; }
}
.nd-games.is-dragging { scroll-behavior: auto; }
.nd-games a {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    min-height: 44px;
    border: 1px solid var(--nd-line);
    background: var(--nd-card);
    border-radius: 7px;
    font-size: 11px;
    color: var(--nd-muted);
    font-weight: 600;
}
.nd-games a.is-active {
    border-color: #ffcc00;
}
.nd-games svg {
    width: 13px;
    height: 13px;
}
.nd-game-logo {
    display: inline-flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 4px;
}
.nd-game-logo--dark {
    background: #2b1645;
}
.nd-game-logo img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}
.nd-game-logo--fifa {
    flex-basis: 32px;
    width: 32px;
    background: #045694;
}
.nd-game-logo--fifa img {
    width: 28px;
}
.nd-game-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 16px;
    background: #fff0f2;
    border-radius: 3px;
    color: #fc536c;
    font-size: 10px;
    font-weight: 800;
}
.nd-results-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 7px 0 13px;
}
.nd-results-heading h2 {
    font-size: 21px;
    line-height: 1.4;
    letter-spacing: -0.6px;
    margin: 0;
    color: var(--nd-text);
    font-weight: 750;
    text-transform: math-auto;
}
.nd-count {
    font-size: 11px;
    color: var(--nd-muted);
    white-space: nowrap;
    padding-top: 5px;
}
.nd-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 22px;
}
.nd-filters input[type="search"],
.nd-filters select {
    font: inherit;
    font-size: 12px;
    min-height: 40px;
    max-width: 100%;
    width: 100%;
    color: var(--nd-text);
    background: var(--nd-card);
    border: 1px solid var(--nd-line);
    border-radius: 7px;
    padding: 9px 11px;
}
.nd-search {
    flex: 1;
    min-width: 120px;
}
.nd-filter-label {
    max-width: 100%;
}
.nd-posts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}
.nd-page--community .nd-posts {
    grid-template-columns: 1fr;
}
.nd-card {
    background: var(--nd-card);
    border: 1px solid var(--nd-line);
    border-radius: 13px;
    padding: 22px;
    min-width: 0;
    box-shadow: 0 0 1px #30213e05;
    text-align: left;
}
.nd-card[data-nd-card] {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.nd-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    margin-bottom: 18px;
}
.nd-card-top > .nd-icon-button {
    margin-left: auto;
}
.nd-game-badge,
.nd-category-badge {
    font-size: 12px;
    font-weight: 700;
    background: transparent;
    border: 1px solid currentColor;
    color: var(--nd-badge-text, #715996);
    padding: 6px 10px;
    border-radius: 3px;
    line-height: 1.3;
}
.nd-category-badge {
    display: inline-block;
    margin: 0 0 10px;
}
.nd-intro-badge {
    --nd-badge: #e9d5ff;
    --nd-badge-text: #5b21b6;
}
html[data-na-theme="dark"] :is(.nd-game-badge, .nd-category-badge) {
    color: var(--nd-badge, #ddc2ff);
}
/* Questions already has a category tab; keep the label on dashboard feed cards. */
[data-nd-feed][data-section="community"] .nd-card:not(.nd-card--member)[data-category="question"] > .nd-card-top > .nd-game-badge {
    display: none;
}
/* Without a photo, put the question title beside its actions instead of below an empty header. */
[data-nd-feed][data-section="community"] .nd-card:not(.nd-card--member)[data-category="question"]:has(> .nd-card-top + h3) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
}
[data-nd-feed][data-section="community"] .nd-card:not(.nd-card--member)[data-category="question"]:has(> .nd-card-top + h3) > * {
    grid-column: 1 / -1;
}
[data-nd-feed][data-section="community"] .nd-card:not(.nd-card--member)[data-category="question"]:has(> .nd-card-top + h3) > .nd-card-top {
    grid-area: 1 / 2;
    align-self: start;
    margin-bottom: 0;
}
[data-nd-feed][data-section="community"] .nd-card:not(.nd-card--member)[data-category="question"]:has(> .nd-card-top + h3) > h3 {
    grid-area: 1 / 1;
}
/* The dashboard needs the Help label; the Help section already provides context. */
.nd-help-heading > .nd-help-badge {
    display: none;
    color: var(--nd-purple);
    background: transparent;
    border: 1px solid var(--nd-line);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    flex-shrink: 0;
}
.nd-help-separator {
    display: none;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--nd-muted);
    flex-shrink: 0;
}
.na-dashboard-page .nd-help-heading > :is(.nd-help-badge, .nd-help-separator) {
    display: inline-block;
}
.nd-card-top:has(.nd-help-heading) {
    margin-bottom: 12px;
}
.nd-help-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.nd-game-name {
    min-width: 0;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--nd-muted);
    overflow-wrap: anywhere;
}
.nd-card-author {
    min-width: 0;
}
[data-listing-type="buy"] > .nd-card-top .nd-game-badge,
[data-listing-type="buy"] > .np-heading .nd-category-badge {
    color: #166534;
}
[data-listing-type="sell"] > .nd-card-top .nd-game-badge,
[data-listing-type="sell"] > .np-heading .nd-category-badge {
    color: #991b1b;
}
html[data-na-theme="dark"] [data-listing-type="buy"] > .nd-card-top .nd-game-badge,
html[data-na-theme="dark"] [data-listing-type="buy"] > .np-heading .nd-category-badge {
    color: #86efac;
}
html[data-na-theme="dark"] [data-listing-type="sell"] > .nd-card-top .nd-game-badge,
html[data-na-theme="dark"] [data-listing-type="sell"] > .np-heading .nd-category-badge {
    color: #fca5a5;
}
.nd-card h3 {
    font-size: 21px;
    line-height: 1.45;
    letter-spacing: -0.55px;
    margin: 0 0 9px;
    font-weight: 750;
    color: var(--nd-text);
    overflow-wrap: anywhere;
}
.nd-card--conversation:not([data-category="discussion"]) h3,
.nd-card--classified h3 {
    font-size: 17px;
    letter-spacing: -0.3px;
}
.nd-card-body {
    font-size: 14px;
    line-height: 1.8;
    color: var(--nd-muted);
    margin: 0 0 17px;
    overflow-wrap: anywhere;
    white-space: pre-line;
}
.nd-card:not(.nd-card--author-footer):not(.nd-card--member) .nd-card-body[data-nd-excerpt] {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}
.nd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0 0 14px;
}
.nd-badges:empty {
    display: none;
}
.nd-badges span {
    font-size: 10px;
    padding: 4px 6px;
    border: 1px solid var(--nd-line);
    background: transparent;
    border-radius: 4px;
    color: var(--nd-muted);
    overflow-wrap: anywhere;
    max-width: 100%;
}
.nd-badges[data-nd-event-tags] {
    align-items: flex-start;
    gap: 6px;
}
.nd-badges[data-nd-event-tags] > span {
    flex: 0 0 auto;
    box-sizing: border-box;
    height: 28px;
    font-size: 11px;
    line-height: 18px;
    padding: 4px 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nd-badges .nd-tags-toggle {
    flex: 0 0 28px;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--nd-line);
    border-radius: 4px;
    background: transparent;
    color: var(--nd-purple);
    font-weight: 600;
    font-size: 20px;
    line-height: 26px;
    text-align: center;
    box-shadow: none;
    cursor: pointer;
}
.nd-badges[data-nd-event-tags] > [hidden] { display: none; }
.nd-badges .nd-tags-toggle:hover { border-color: var(--nd-purple); }
.nd-badges .nd-tags-toggle:focus-visible { outline: 2px solid var(--nd-purple); outline-offset: 2px; }
.nd-card-footer {
    display: flex;
    align-items: center;
    gap: 9px;
    border-top: 1px solid var(--nd-line);
    padding-top: 16px;
    margin-top: 16px;
    min-height: 50px;
}
.nd-author {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex: 1;
}
.nd-author > span {
    min-width: 0;
}
.nd-author strong {
    font-size: 11px;
    font-weight: 600;
    overflow-wrap: anywhere;
    display: block;
}
.nd-author small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    color: var(--nd-muted);
    line-height: 1.5;
    margin-top: 3px;
}
.nd-card--conversation:not(.nd-card--author-footer) .nd-author strong {
    font-size: 13px;
}
.nd-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5e0ef;
    color: #c9408c;
    font-size: 11px;
}
.nd-avatar img,
.nd-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.nd-avatar .na-avatar-placeholder {
    font-size: 11px;
}
.nd-view {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 650;
    min-height: 40px;
    padding: 7px 10px;
    border: 1px solid var(--nd-line);
    border-radius: 7px;
    flex-shrink: 0;
    margin-left: auto;
}
/* Keep card actions readable when the site theme applies link interaction colors. */
.nd-card .nd-view,
.nd-card .nd-view:is(:visited, :hover, :focus, :active) {
    color: var(--nd-text);
}
.nd-card--conversation:not(.nd-card--author-footer):not(.nd-card--member) .nd-view {
    border: 0;
    padding: 7px 0;
}
.nd-view svg {
    width: 14px;
}
.nd-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 32px;
    min-height: 36px;
    background: transparent;
    border: 0;
    color: var(--nd-muted);
    padding: 5px;
    border-radius: 5px;
    font-size: 11px !important;
}
.nd-icon-button svg {
    width: 16px;
    height: 16px;
}
.nd-icon-button[aria-pressed="true"] {
    color: #9c479e;
}
.nd-icon-button[aria-pressed="true"] svg {
    fill: #b65aab2b;
}
/* Hearts stay transparent in every feed, including the theme's button states. */
.nd-card .nd-icon-button[data-nd-interact="like"],
.nd-card .nd-icon-button[data-nd-interact="like"]:is(:hover, :focus, :active, :disabled) {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--nd-muted);
    overflow: visible;
    -webkit-tap-highlight-color: transparent;
}
.nd-like-icon {
    position: relative;
    display: inline-flex;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    pointer-events: none;
}
.nd-icon-button[data-nd-interact="like"] .nd-like-icon > svg {
    fill: transparent;
    stroke: currentColor;
    transform-origin: center;
    transition: fill .16s ease, stroke .16s ease, transform .16s ease;
}
.nd-icon-button[data-nd-interact="like"][aria-pressed="true"] .nd-like-icon > svg {
    fill: var(--nd-primary);
    stroke: var(--nd-primary);
}
.nd-icon-button[data-nd-interact="like"]:active .nd-like-icon > svg {
    transform: scale(.82);
}
.nd-like-icon.is-celebrating > svg {
    animation: nd-heart-pop .55s cubic-bezier(.22, .61, .36, 1);
}
.nd-like-burst {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.nd-like-burst::before {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid var(--nd-primary);
    border-radius: 50%;
    animation: nd-heart-ring .5s ease-out both;
}
.nd-like-particle {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    margin: -4px;
    animation: nd-heart-particle .65s ease-out both;
    animation-delay: var(--heart-delay);
}
.nd-icon-button[data-nd-interact="like"] .nd-like-particle svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: var(--nd-primary);
    stroke: var(--nd-primary);
}
@keyframes nd-heart-pop {
    0% { transform: scale(.65); }
    35% { transform: scale(1.5) rotate(-12deg); }
    60% { transform: scale(.9) rotate(8deg); }
    80% { transform: scale(1.12) rotate(-3deg); }
    100% { transform: scale(1); }
}
@keyframes nd-heart-ring {
    from { transform: scale(.3); opacity: .8; }
    to { transform: scale(1.6); opacity: 0; }
}
@keyframes nd-heart-particle {
    0% { transform: scale(.2); opacity: 0; }
    15% { opacity: 1; }
    100% { transform: translate(var(--heart-x), var(--heart-y)) rotate(var(--heart-rotation)) scale(.2); opacity: 0; }
}
.nd-reactions {
    display: flex;
    gap: 5px;
}
.nd-card--conversation:not(.nd-card--author-footer):not(.nd-card--member) .nd-view {
    margin-left: 0;
}
.nd-card--conversation .nd-view[data-nd-details] {
    margin-left: auto;
    padding: 7px 10px;
    border: 1px solid var(--nd-line);
    font-size: 11px;
}
.nd-price {
    font-size: 23px;
    font-weight: 750;
    letter-spacing: -0.5px;
    margin: 10px 0 14px;
    color: var(--nd-text);
}
.nd-card-image {
    display: block;
    margin: 2px 0 16px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--nd-soft);
}
.nd-card-image img {
    display: block;
    width: 100%;
    max-height: 270px;
    object-fit: cover;
}
.nd-event-banner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 22px;
    margin: 3px 0 16px;
    border-radius: 7px;
    min-height: 110px;
    background: #281142;
    color: #ffdc00 !important;
}
.nd-event-banner svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}
.nd-event-banner span {
    font-weight: 750;
    text-transform: uppercase;
    font-size: 20px;
    overflow-wrap: anywhere;
}
.nd-event-time {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 11px;
    color: var(--nd-muted);
    line-height: 1.6;
    overflow-wrap: anywhere;
}
.nd-event-time svg { flex-shrink: 0; }
.nd-event-banner span { min-width: 0; }
.nd-event-banner strong { display: block; font: inherit; }
.nd-event-banner small { display: block; font-size: 9px; font-weight: 500; letter-spacing: 2.5px; line-height: 1.6; margin-top: 8px; color: #e0c6ff; }
.nd-card--event .nd-card-image img { aspect-ratio: unset; object-fit: cover; }
.nd-event-organizer-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: #fff0af; color: #806000; }
.nd-event-organizer-icon svg { width: 19px; height: 19px; }
.nd-event-organizer-logo { display: inline-flex; flex: 0 0 32px; width: 32px; height: 32px; }
.nd-event-organizer-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* Member posts: identity and game above the content, reactions beside View details. */
.nd-card.nd-card--member {
    padding: clamp(18px, 3vw, 26px);
    border-radius: 24px;
    box-shadow: 0 8px 28px #28194308;
}
.nd-card--member .nd-card-top { align-items: center; gap: 10px; margin-bottom: 20px; }
.nd-card--member :is(.nd-author, .nd-author-link) { gap: 12px; }
.nd-card--member .nd-author { flex: 1 1 0; }
.nd-card--member .nd-author-link { max-width: 100%; }
.nd-card--member .nd-author-link > span { min-width: 0; }
.nd-card--member .nd-author strong { font-size: 13px; font-weight: 750; line-height: 1.35; }
.nd-card--member .nd-avatar { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; }
.nd-card--member .nd-game-badge {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 1 auto; max-width: 38%; padding: 7px 10px; border-radius: 9px;
    font-size: 11px; line-height: 1.4; text-align: center; overflow-wrap: anywhere;
}
.nd-card--member .nd-menu { margin-left: 0; }
.nd-card--member .nd-card-body { margin-bottom: 18px; }
.nd-card--member .nd-badges { gap: 7px; margin-bottom: 0; }
.nd-card--member .nd-badges > span { padding: 6px 10px; border-radius: 9px; font-size: 11px; line-height: 1.5; }
.nd-card--member .nd-card-footer { flex-wrap: wrap; border: 0; padding: 0; margin-top: 22px; min-height: 40px; gap: 12px; }
.nd-card--member .nd-reactions { align-items: center; }
.nd-card--member .nd-reactions > a { border-left: 1px solid var(--nd-line); border-radius: 0; margin-left: 5px; padding-left: 11px; }
@media (max-width: 400px) {
    .nd-card.nd-card--member { padding: 16px; border-radius: 20px; }
    .nd-card--member .nd-card-top { gap: 8px; }
    .nd-card--member :is(.nd-author, .nd-author-link) { gap: 9px; }
    .nd-card--member .nd-game-badge { padding: 6px 8px; }
}
/* The same activity card is used by Play, feeds, profiles and editor previews. */
.nd-card.nd-card--activity {
    --activity-bg: #f0e9ff;
    --activity-ink: #7142b4;
    padding: clamp(18px, 3vw, 26px);
    border-radius: 24px;
    box-shadow: 0 8px 28px #28194308;
}
.nd-card--activity[data-activity="event"] { --activity-bg: #e0f5f1; --activity-ink: #08786e; }
.nd-card--activity[data-activity="announcement"] { --activity-bg: #fff0df; --activity-ink: #a65312; }
.nd-card--activity[data-activity="scrim"] { --activity-bg: #e7f5e9; --activity-ink: #28743b; }
.nd-card--activity .nd-card-top { align-items: flex-start; margin-bottom: 12px; }
.nd-card--activity[data-source="update"] .nd-card-top { align-items: center; }
.nd-card--activity[data-source="update"] .nd-activity-date { margin-left: auto; }
.nd-card--activity[data-source="update"] .nd-card-top > .nd-activity-date { flex: 0 1 auto; min-width: 0; max-width: 50%; }
.nd-card--activity[data-source="update"] .nd-activity-date > :is(time, span) { min-width: 0; overflow-wrap: anywhere; }
.nd-card--activity :is(.nd-author, .nd-author-link) { gap: 10px; }
.nd-card--activity .nd-author-link > span { min-width: 0; }
.nd-card--activity .nd-author strong { font-size: 13px; font-weight: 750; line-height: 1.35; }
.nd-card--activity .nd-author small { font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.nd-card--activity :is(.nd-activity-avatar, .nd-avatar) {
    display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px;
    border-radius: 14px; color: var(--activity-ink); overflow: hidden;
    font-size: 22px; font-weight: 750;
}
.nd-card--activity .nd-activity-avatar--logo { display: flex; align-items: center; justify-content: flex-start; flex: 0 0 auto; width: auto; height: auto; border-radius: 0; }
.nd-activity-avatar img { display: block; width: 100%; height: 100%; object-fit: contain; }
.nd-activity-avatar--logo img { width: auto; height: auto; max-width: var(--na-logo-width, 80px); max-height: var(--na-logo-height, 56px); object-position: left center; }
.nd-activity-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.nd-card.nd-card--activity .nd-category-badge {
    margin: 0; padding: 9px 13px; border: 1px solid currentColor; border-radius: 11px;
    background: transparent; color: var(--activity-ink); font-size: 12px; line-height: 1.4;
}
.nd-activity-date {
    display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px;
    border: 1px solid currentColor; border-radius: 11px; background: transparent; color: var(--nd-muted);
    font-size: 11px; line-height: 1.5;
}
.nd-activity-date svg { flex: 0 0 17px; width: 17px; height: 17px; }
.nd-card--activity .nd-card-image { position: relative; border-radius: 15px; margin: 0 0 20px; }
.nd-card.nd-card--activity .nd-card-image > .nd-category-badge {
    position: absolute; top: 10px; left: 10px; max-width: calc(100% - 20px);
    padding: 5px 10px; border: 0; border-radius: 6px;
    background: var(--activity-ink); color: var(--activity-overlay-text, #fff);
}
.nd-card--activity .nd-card-image img { aspect-ratio: unset; max-height: none; object-fit: cover; }
.nd-card--activity .nd-card-body { margin: 0 0 20px; }
.nd-card--activity .nd-badges { gap: 7px; margin-bottom: 0; }
.nd-card--activity .nd-badges > span {
    height: 32px; padding: 6px 10px; border-radius: 9px;
    font-size: 11px; line-height: 18px;
}
.nd-card--activity .nd-tags-toggle { flex-basis: 32px; width: 32px; height: 32px; border-radius: 9px; line-height: 30px; }
.nd-card--activity .nd-card-footer { border: 0; padding: 0; margin-top: 24px; min-height: 40px; gap: 12px; }
/* Use the existing compact, outlined .nd-view button and its theme colors. */
@media (max-width: 400px) {
    .nd-card.nd-card--activity { padding: 16px; border-radius: 20px; }
    .nd-card--activity .nd-card-footer { flex-wrap: wrap; }
    .nd-card--activity .nd-category-badge { padding: 8px 10px; font-size: 12px; }
    .nd-activity-date { padding: 8px 9px; font-size: 11px; }
}
html[data-na-theme="dark"] .nd-card--activity { --activity-bg: #342543; --activity-ink: #d5b5fc; }
html[data-na-theme="dark"] .nd-card--activity[data-source="update"] { --activity-overlay-text: var(--activity-bg); }
html[data-na-theme="dark"] .nd-card--activity[data-activity="event"] { --activity-bg: #173c39; --activity-ink: #83dbcd; }
html[data-na-theme="dark"] .nd-card--activity[data-activity="announcement"] { --activity-bg: #44301f; --activity-ink: #ffc487; }
html[data-na-theme="dark"] .nd-card--activity[data-activity="scrim"] { --activity-bg: #233d2a; --activity-ink: #a0dda8; }
/* Desktop scrims use the shared activity card scale. Keep their identity and actions. */
.nd-card.nd-card--activity[data-activity="scrim"] { container-type: inline-size; }
.nd-card--activity[data-activity="scrim"] .nd-card-top { align-items: center; flex-wrap: wrap; }
.nd-card--activity[data-activity="scrim"] .nd-author { flex: 1 1 100px; }
.nd-card--activity[data-activity="scrim"] .nd-author-link { max-width: 100%; }
.nd-card--activity[data-activity="scrim"] .nd-author strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nd-card--activity[data-activity="scrim"] .nd-activity-date { flex: none; white-space: nowrap; }
.nd-card.nd-card--activity[data-activity="scrim"] .nd-card-top > .nd-category-badge {
    flex: none; padding: 8px 10px; border: 0; border-radius: 8px; background: #00872d; color: #fff;
}
.nd-card--activity[data-activity="scrim"] .nd-menu { margin-left: 0; }
.nd-card--activity[data-activity="scrim"] .nd-menu summary {
    display: flex; align-items: center; justify-content: center;
    min-width: 24px; min-height: 32px; padding: 0; font-size: 15px; letter-spacing: 2px;
}
.nd-card--activity[data-activity="scrim"] .nd-reactions > a {
    border-left: 1px solid var(--nd-line); border-radius: 0; margin-left: 5px; padding-left: 11px;
}
/* Preserve the existing spacious scrim design on mobile only. */
@media (max-width: 600px) {
.nd-card.nd-card--activity[data-activity="scrim"] {
    --nd-text: #0d0b21;
    --nd-muted: #6d697f;
    --nd-line: #e6e5eb;
    container-type: inline-size;
    padding: clamp(20px, 3vw, 32px) clamp(18px, 2.5vw, 28px) clamp(13px, 2vw, 20px);
    border-radius: clamp(18px, 3vw, 26px);
    box-shadow: none;
}
.nd-card--activity[data-activity="scrim"] .nd-card-top {
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(6px, 2cqw, 10px);
    margin-bottom: clamp(32px, 11cqw, 64px);
}
.nd-card--activity[data-activity="scrim"] .nd-author { flex: 1 1 0; }
.nd-card--activity[data-activity="scrim"] .nd-author-link { max-width: 100%; gap: clamp(8px, 3cqw, 14px); }
.nd-card--activity[data-activity="scrim"] .nd-author strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: clamp(13px, 4.4cqw, 26px);
    font-weight: 750;
}
.nd-card--activity[data-activity="scrim"] .nd-avatar {
    flex: 0 0 clamp(38px, 13cqw, 78px);
    width: clamp(38px, 13cqw, 78px);
    height: clamp(38px, 13cqw, 78px);
    border-radius: clamp(13px, 4cqw, 24px);
}
.nd-card--activity[data-activity="scrim"] .nd-activity-date {
    flex: none;
    gap: 5px;
    padding: clamp(5px, 1.7cqw, 9px) 6px;
    border-color: var(--nd-line);
    border-radius: 8px;
    font-size: clamp(9px, 3cqw, 18px);
    line-height: 1.4;
    white-space: nowrap;
}
.nd-card--activity[data-activity="scrim"] .nd-activity-date svg { flex-basis: auto; width: clamp(12px, 3cqw, 18px); height: clamp(12px, 3cqw, 18px); }
.nd-card.nd-card--activity[data-activity="scrim"] .nd-card-top > .nd-category-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: clamp(60px, 22cqw, 128px);
    padding: clamp(5px, 1.7cqw, 9px) 10px;
    border: 0;
    border-radius: 8px;
    background: #00872d;
    color: #fff;
    font-size: clamp(11px, 3.5cqw, 20px);
    font-weight: 700;
    line-height: 1.4;
}
.nd-card--activity[data-activity="scrim"] .nd-menu { margin-left: 0; }
.nd-card--activity[data-activity="scrim"] .nd-menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 32px;
    padding: 0;
    font-size: 15px;
    letter-spacing: 2px;
}
.nd-card--activity[data-activity="scrim"] h3 {
    margin-bottom: clamp(16px, 5cqw, 30px);
    font-size: clamp(22px, 7cqw, 40px);
    font-weight: 750;
    line-height: 1.25;
    letter-spacing: -0.5px;
}
.nd-card--activity[data-activity="scrim"] .nd-card-body {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    margin-bottom: clamp(20px, 7cqw, 40px);
    font-size: clamp(14px, 4.5cqw, 26px);
    line-height: 1.5;
}
.nd-card--activity[data-activity="scrim"] .nd-badges > span {
    height: auto;
    padding: clamp(6px, 2cqw, 10px) 9px;
    border-radius: 9px;
    font-size: clamp(12px, 4cqw, 24px);
    font-weight: 500;
    line-height: 1.4;
}
.nd-card--activity[data-activity="scrim"] .nd-card-footer {
    flex-wrap: nowrap;
    gap: 8px;
    margin-top: clamp(28px, 9cqw, 52px);
    min-height: clamp(40px, 12cqw, 70px);
}
.nd-card--activity[data-activity="scrim"] .nd-reactions { align-items: center; gap: 0; }
.nd-card--activity[data-activity="scrim"] .nd-icon-button {
    gap: 6px;
    min-width: 0;
    min-height: clamp(36px, 11cqw, 64px);
    padding: 5px 2px;
    font-size: clamp(13px, 4.4cqw, 26px) !important;
    font-weight: 600;
}
.nd-card--activity[data-activity="scrim"] .nd-like-icon {
    flex-basis: clamp(18px, 5cqw, 30px);
    width: clamp(18px, 5cqw, 30px);
    height: clamp(18px, 5cqw, 30px);
}
.nd-card--activity[data-activity="scrim"] :is(.nd-icon-button, .nd-like-icon) > svg { width: clamp(18px, 5cqw, 30px); height: clamp(18px, 5cqw, 30px); }
.nd-card--activity[data-activity="scrim"] .nd-reactions > a {
    margin-left: clamp(14px, 5cqw, 24px);
    padding-left: clamp(14px, 5cqw, 24px);
    border-left: 1px solid var(--nd-line);
    border-radius: 0;
    color: var(--nd-muted);
}
.nd-card--activity[data-activity="scrim"] .nd-reactions > a svg { color: var(--nd-text); }
.nd-card--activity[data-activity="scrim"] .nd-view {
    justify-content: center;
    flex-shrink: 1;
    min-width: 0;
    gap: 10px;
    min-height: clamp(40px, 12cqw, 70px);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: clamp(12px, 4cqw, 24px);
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.nd-card--activity[data-activity="scrim"] .nd-view svg { width: clamp(18px, 5cqw, 30px); height: clamp(18px, 5cqw, 30px); }
}
/* The shared card also appears in narrow desktop columns and mobile previews. */
@container (max-width: 280px) {
    .nd-card--activity[data-activity="scrim"] .nd-card-top { gap: 4px; }
    .nd-card--activity[data-activity="scrim"] .nd-author-link { gap: 6px; }
    .nd-card--activity[data-activity="scrim"] .nd-author strong { font-size: 11px; }
    .nd-card--activity[data-activity="scrim"] .nd-avatar { flex-basis: 32px; width: 32px; height: 32px; border-radius: 10px; }
    .nd-card--activity[data-activity="scrim"] .nd-activity-date { gap: 4px; padding-inline: 4px; }
    .nd-card.nd-card--activity[data-activity="scrim"] .nd-card-top > .nd-category-badge { min-width: 48px; padding-inline: 6px; }
    .nd-card--activity[data-activity="scrim"] .nd-menu summary { min-width: 20px; font-size: 13px; }
    .nd-card--activity[data-activity="scrim"] .nd-reactions > a { margin-left: 10px; padding-left: 10px; }
    .nd-card--activity[data-activity="scrim"] .nd-view { gap: 6px; padding-inline: 9px; }
}
html[data-na-theme="dark"] .nd-card.nd-card--activity[data-activity="scrim"] {
    --nd-text: #f5effc;
    --nd-muted: #baaacb;
    --nd-line: #3e344c;
}
.nd-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    border-radius: 7px;
    background: var(--nd-soft);
    color: var(--nd-text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    margin-top: 12px;
}
.nd-menu {
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
    color: var(--nd-muted);
}
.nd-menu summary {
    cursor: pointer;
    list-style: none;
    padding: 5px;
    min-height: 32px;
    min-width: 30px;
    font-size: 14px;
}
.nd-menu summary::-webkit-details-marker {
    display: none;
}
.nd-menu > div {
    position: absolute;
    right: 0;
    top: 30px;
    min-width: 120px;
    padding: 5px;
    z-index: 8;
    background: var(--nd-card);
    border: 1px solid var(--nd-line);
    border-radius: 8px;
    box-shadow: var(--nd-shadow);
}
.nd-menu button {
    display: block;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--nd-text);
    text-align: left;
    font-size: 11px;
    text-transform: capitalize;
    font-weight: 600;
}
.nd-menu button:hover {
    background: var(--nd-soft);
}
.nd-tip,
.nd-classified-note {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 20px;
    background: var(--nd-tab);
    border-radius: 10px;
    color: var(--nd-muted);
    margin: 25px 0;
}
.nd-tip > svg,
.nd-classified-note > svg {
    flex: none;
    width: 20px;
    height: 20px;
}
.nd-tip strong,
.nd-classified-note strong {
    font-size: 14px;
}
.nd-tip p,
.nd-classified-note p {
    font-size: 12px;
    line-height: 1.7;
    margin: 5px 0 0;
}
.nd-classified-note {
    background: #f4e8d5;
    color: #89551f;
}
.nd-classified-note p {
    color: #a27b58;
}
.nd-empty {
    text-align: center;
    padding: 45px 15px;
    color: var(--nd-muted);
}
.nd-empty h3 {
    color: var(--nd-text);
    font-size: 18px;
}
.nd-empty p {
    font-size: 13px;
}
.nd-load {
    display: flex;
    margin: 24px auto;
}
.nd-message {
    background: var(--nd-tab);
    padding: 12px;
    border-radius: 7px;
    font-size: 13px;
}
.nd-closed {
    font-size: 12px;
    color: var(--nd-muted);
}
.nd-dialog {
    position: fixed;
    inset: 0;
    border: 1px solid var(--nd-line);
    border-radius: 15px;
    background: var(--nd-card);
    width: min(540px, calc(100vw - 28px));
    max-height: calc(100dvh - 36px);
    padding: 28px;
    margin: auto;
    overflow: auto;
    box-shadow: 0 20px 80px #120b2430;
}
.nd-dialog::backdrop {
    background: #15111bb3;
}
.nd-dialog h2 {
    font-size: 23px;
    line-height: 1.3;
    margin: 0 44px 8px 0;
    color: var(--nd-text);
    letter-spacing: -0.7px;
    font-weight: 780;
}
.nd-dialog > p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 23px;
    color: var(--nd-muted);
}
#nd-composer[data-category="scrim"] h2 {
    margin-bottom: 23px;
}
.nd-dialog .nd-dialog-close {
    position: absolute;
    right: 13px;
    top: 10px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--nd-text);
    font-size: 25px !important;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    cursor: pointer;
}
.nd-dialog .nd-dialog-close:hover {
    color: var(--nd-purple);
}
.nd-dialog .nd-dialog-close:focus-visible {
    outline: 2px solid var(--nd-purple);
    outline-offset: 2px;
}
.nd-dialog.nd-post-auth {
    width: min(400px, calc(100vw - 28px));
    padding: 36px 24px 26px;
    text-align: center;
}
.nd-post-auth .nd-post-auth-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #fff0ae;
    color: #29114f;
}
.nd-post-auth-icon svg { width: 25px; height: 25px; }
.nd-post-auth h2 {
    margin: 0 0 10px;
    font-size: 22px;
    letter-spacing: -.3px;
    text-transform: none;
}
.nd-post-auth > p { margin-bottom: 24px; }
.nd-post-auth .nd-primary { width: 100%; }
.nd-post-auth .nd-primary:focus-visible { outline: 2px solid var(--nd-purple); outline-offset: 3px; }
.nd-dialog fieldset {
    padding: 0;
    margin: 0;
    border: 0;
    min-width: 0;
}
.nd-type-field {
    max-width: calc(50% - 6px);
    margin-bottom: 18px;
}
.nd-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px 12px;
}
.nd-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    font-size: 13px;
    color: var(--nd-muted);
}
.nd-field.nd-wide {
    grid-column: 1/-1;
}
.nd-field > span:first-child {
    font-weight: 550;
}
.nd-field input:not([type="checkbox"]),
.nd-field select,
.nd-field textarea {
    font-family: inherit;
    font-size: 12px;
    width: 100%;
    padding: 11px 12px;
    min-height: 43px;
    color: var(--nd-text);
    background: var(--nd-card);
    border: 1px solid var(--nd-line);
    border-radius: 7px;
    box-shadow: 0 1px 2px #20143305;
    line-height: 1.5;
}
.nd-field textarea {
    min-height: 110px;
    resize: vertical;
}
.nd-field input::placeholder,
.nd-field textarea::placeholder {
    color: var(--nd-muted);
    opacity: 0.8;
}
.nd-field small {
    font-size: 11px;
    line-height: 1.5;
}
.nd-field select[multiple] {
    min-height: 100px;
}
.nd-field input[type="file"] {
    padding: 8px;
    font-size: 11px;
}
.nd-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.nd-checkboxes label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    min-height: 32px;
    padding: 4px 8px;
    border: 1px solid var(--nd-line);
    border-radius: 6px;
}
.nd-checkboxes input {
    accent-color: #744895;
}
.nd-submit {
    width: 100%;
    margin-top: 23px;
}
.nd-form-note {
    font-size: 11px;
    line-height: 1.6;
    color: var(--nd-muted);
    margin: 16px 0 0;
}
.nd-error {
    color: var(--nd-error);
    background: var(--nd-error-bg);
    border-radius: 5px;
    padding: 9px 11px;
    font-size: 12px;
    line-height: 1.5;
}
.nd-field-error {
    color: var(--nd-error);
    font-size: 11px;
}
.nd-field [aria-invalid="true"] {
    border-color: var(--nd-error);
}
.nd-photos {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.nd-photo {
    position: relative;
    width: 70px;
    height: 70px;
}
.nd-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}
/* Reset theme button sizing so photo removal stays a compact circle. */
.nd-dialog .nd-photo button {
    position: absolute;
    right: -4px;
    top: -4px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    background: #ffcc00;
    color: #000;
    border-radius: 50%;
    box-shadow: 0 1px 4px #0002;
    font: 600 22px/1 Arial, sans-serif;
    letter-spacing: 0;
    text-indent: 0;
    text-transform: none;
    appearance: none;
}
.nd-dialog .nd-photo button:is(:hover, :focus, :active) {
    background: #ffcc00;
    color: #000;
}
.nd-dialog .nd-photo button:focus-visible {
    outline: 2px solid #000;
    outline-offset: 2px;
}
.nd-action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}
.nd-action-dialog {
    max-width: 400px;
}
.nd-action-dialog h2 {
    margin-bottom: 20px;
}
html.nd-modal-open {
    overflow: hidden;
}
.nd-dialog [hidden],
.nd-shell [hidden],
.nd-card [hidden],
.nd-load[hidden] {
    display: none !important;
}
.nd-bottom-nav {
    --nd-nav-muted: #a58baf;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 2px;
    /* padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); */
    padding: 0;
    background: var(--nd-card);
    border-top: 1px solid var(--nd-line);
    box-shadow: 0 -4px 20px #20102b05;
}
.nd-bottom-nav a {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 44px;
    padding: 2px;
    border-radius: 8px;
}
/* Preserve navigation colors after taps and visits, including sticky touch hover. */
.nd-bottom-nav a,
.nd-bottom-nav a:is(:visited, :hover, :focus, :active) {
    color: var(--nd-nav-muted);
}
.nd-bottom-nav .nd-nav-label {
    display: none;
}
.nd-bottom-nav svg {
    width: 20px;
    height: 20px;
}
.nd-bottom-nav .nd-nav-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 38px;
    height: 26px;
    border-radius: 9px;
}
.nd-bottom-nav .nd-nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 3px;
    border: 2px solid var(--nd-card);
    border-radius: 999px;
    background: var(--nd-purple);
    color: var(--nd-card);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
}
.nd-bottom-nav [hidden] {
    display: none !important;
}
.nd-bottom-nav a[aria-current="page"],
.nd-bottom-nav a[aria-current="page"]:is(:visited, :hover, :focus, :active) {
    color: var(--nd-text);
}
.nd-bottom-nav a[aria-current="page"] .nd-nav-label {
    font-weight: 700;
}
.nd-bottom-nav a[aria-current="page"] .nd-nav-icon {
    background: var(--nd-primary);
    color: #211631;
}
html[data-na-theme="dark"] .nd-bottom-nav {
    --nd-nav-muted: #baaacb;
}
body:has(.nd-bottom-nav) {
    padding-bottom: 90px;
}
body.nd-page:has(.nd-bottom-nav) {
    padding-bottom: 0;
}
.nd-bottom-nav ~ * {
    --nd-nav-present: 1;
}
.na-community-feed-heading .nd-view-all {
    margin-left: auto;
    font-size: 12px;
    white-space: nowrap;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}
.na-community-feed-preview .nd-card {
    margin-bottom: 14px;
}
.na-community-feed-preview .nd-card:last-child {
    margin-bottom: 0;
}
.nd-detail-fields {
    margin: 18px 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.nd-detail-fields dt {
    font-size: 12px;
    color: var(--nd-muted);
}
.nd-detail-fields dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}
.nd-detail-photo {
    width: 100%;
    max-height: 350px;
    object-fit: contain;
    margin: 12px 0;
    border-radius: 8px;
}
.nd-shell :focus-visible,
.nd-dialog :focus-visible,
.nd-card :focus-visible,
.nd-bottom-nav :focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 3px;
}
@media (min-width: 769px) {
    .nd-bottom-nav {
        max-width: 650px;
        left: 50%;
        right: auto;
        bottom: 15px;
        transform: translateX(-50%);
        width: calc(100% - 48px);
        border: 1px solid var(--nd-line);
        border-radius: 14px;
        padding: 7px;
        box-shadow: 0 8px 35px #21103121;
    }
    .nd-shell {
        --nd-shell-padding-top: 42px;
        --nd-header-height: 75px;
    }
    .nd-hero {
        margin-bottom: 28px;
    }
    .nd-hero h1 {
        font-size: 40px;
    }
    .nd-page--play .nd-tabs {
        max-width: 620px;
    }
    .nd-dialog {
        padding: 30px;
    }
    .nd-card--conversation,
    .nd-card--classified {
        padding: 24px;
    }
}
@media (max-width: 600px) {
    /* Keep short feeds scrollable; the fixed rail overlays the full-width results. */
    .nd-has-category-rail > .nd-feed-results {
        min-height: calc(100vh - var(--nd-rail-top, 150px) - var(--nd-rail-bottom, 80px));
        min-height: calc(100svh - var(--nd-rail-top, 150px) - var(--nd-rail-bottom, 80px));
    }
    .nd-category-rail:not([hidden]) {
        position: fixed;
        z-index: 99;
        top: var(--nd-rail-top, 150px);
        bottom: var(--nd-rail-bottom, 80px);
        right: max(8px, env(safe-area-inset-right));
        display: flex;
        align-items: center;
        width: 76px;
        pointer-events: none;
    }
    .nd-category-rail-inner {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 100%;
        max-height: 100%;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 5px;
        border: 1px solid var(--nd-line);
        border-radius: 16px;
        background: var(--nd-card);
        box-shadow: 0 4px 20px #2116311a;
        pointer-events: auto;
        scrollbar-width: thin;
    }
    .nd-category-rail .nd-category-rail-link,
    .nd-category-rail .nd-category-rail-compose {
        display: flex;
        flex: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        width: 100%;
        min-height: 48px;
        margin: 0;
        padding: 7px 1px;
        border: 0;
        border-radius: 10px;
        background: transparent;
        color: var(--nd-muted);
        font: inherit;
        font-size: 9px;
        font-weight: 600;
        line-height: 1.35;
        text-align: center;
        text-transform: none;
        letter-spacing: 0;
        overflow-wrap: anywhere;
        cursor: pointer;
        box-shadow: none;
    }
    .nd-category-rail svg {
        flex: none;
        width: 20px;
        height: 20px;
    }
    .nd-category-rail .nd-category-rail-link:hover,
    .nd-category-rail .nd-category-rail-link.is-active {
        background: var(--nd-tab);
        color: var(--nd-purple);
    }
    .nd-category-rail .nd-category-rail-link.is-active {
        font-weight: 700;
    }
    .nd-category-rail .nd-category-rail-compose {
        margin-top: 3px;
        min-height: 44px;
        background: var(--nd-primary);
        color: #211631;
    }
    .nd-category-rail :is(a, button):focus-visible {
        outline: 2px solid var(--nd-purple);
        outline-offset: -2px;
    }
    .nd-shell {
        --nd-shell-padding-top: 27px;
        --nd-shell-padding-inline: 18px;
        padding-bottom: 115px;
    }
    .nd-posts {
        grid-template-columns: 1fr;
    }
    .nd-hero h1 {
        font-size: 29px;
    }
    .nd-hero > p {
        font-size: 13px;
    }
    .nd-tabs a {
        padding: 8px 10px;
        font-size: 11px;
    }
    .nd-card {
        padding: 19px;
    }
    .nd-results-heading h2 {
        font-size: 20px;
    }
    .nd-count {
        font-size: 9px;
    }
    .nd-card h3 {
        font-size: 20px;
    }
    .nd-card--conversation h3,
    .nd-card--classified h3 {
        font-size: 16px;
    }
    .nd-card-body {
        font-size: 13px;
        line-height: 1.9;
    }
    .nd-dialog {
        padding: 24px 19px;
    }
    .nd-dialog h2 {
        font-size: 22px;
    }
    .nd-type-field {
        margin-top: 5px;
    }
    .nd-form-fields {
        gap: 16px 10px;
    }
    .nd-field {
        font-size: 12px;
    }
    .nd-field input:not([type="checkbox"]),
    .nd-field textarea,
    .nd-field select {
        font-size: 12px;
    }
    .nd-card--conversation:not(.nd-card--author-footer):not(.nd-card--member) .nd-view {
        font-size: 10px;
    }
    .nd-search {
        flex-basis: 120px;
    }
    .nd-filter-label {
        flex-basis: 100%;
    }
    .nd-filter-label select {
        max-width: 210px;
    }
    .nd-bottom-nav .nd-nav-label {
        font-size: 9px;
    }
    .nd-bottom-nav a {
        min-height: 44px;
    }
    .nd-hero .nd-primary {
        display: flex;
        width: fit-content;
        margin-left: auto;
        font-size: 12px;
    }
    .nd-classified-note {
        padding: 17px;
    }
    .nd-classified-note strong {
        font-size: 13px;
    }
    .nd-detail-fields {
        grid-template-columns: 1fr;
    }
}
@media (prefers-reduced-motion: reduce) {
    .nd-like-burst { display: none; }
    .nd-icon-button[data-nd-interact="like"] .nd-like-icon > svg,
    .nd-icon-button[data-nd-interact="like"]:active .nd-like-icon > svg {
        animation: none;
        transition: none;
        transform: none;
    }
    .nd-shell *,
    .nd-dialog * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
