/**
 * NexDirectory organiser workspace (account app).
 *
 * App shell: full-bleed (escapes the theme container), sidebar flush to the
 * viewport edge, sticky top bar, centred content (max 1240). Phones get a
 * native-app layout: large titles, bottom tab bar with an elevated Create
 * button, push-style drill-ins and bottom sheets.
 *
 * Consumes --nd-* tokens only (nexdirectory-design-system.css) so
 * Settings › Design keeps working. Body font everywhere; the display font is
 * reserved for the home greeting.
 */

/* ---------------------------------------------------------------------------
 * Shell
 * ------------------------------------------------------------------------- */
.nda {
    --nda-side: 248px;
    --nda-rail: 72px;
    --nda-topbar-h: 60px;
    --nda-tabbar-h: var(--nd-tabbar-h, 64px);
    --nda-safe-bottom: var(--nd-safe-bottom, env(safe-area-inset-bottom, 0px));
    --nda-sticky-top: var(--nd-sticky-top, 64px);
    --nda-pad: 32px;
    --nda-max: 1240px;
    --nda-press: scale(0.97);
    --nda-overlay-top: var(--wp-admin--admin-bar--height, 0px);
    position: relative;
    display: grid;
    grid-template-columns: var(--nda-side) minmax(0, 1fr);
    align-items: start;
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    min-height: calc(100vh - var(--nda-sticky-top));
    min-height: calc(100dvh - var(--nda-sticky-top));
    background: var(--nd-canvas);
    color: var(--nd-ink);
    font-family: var(--nd-font);
    font-size: 15px;
    line-height: 1.5;
    transition: grid-template-columns var(--nd-dur-3) var(--nd-ease);
}
.nda.is-rail { grid-template-columns: var(--nda-rail) minmax(0, 1fr); }
.nda [x-cloak] { display: none !important; }
.nda *, .nda *::before, .nda *::after { box-sizing: border-box; }
.nda :is(h1, h2, h3, h4, h5, h6) { margin: 0; font-family: var(--nd-font); color: var(--nd-ink); line-height: 1.25; letter-spacing: -0.015em; }
.nda p { margin: 0; }
.nda a { text-underline-offset: 2px; }
.nda button { font-family: inherit; }
.nda-icon { width: 18px; height: 18px; flex: none; }
.nda-icon--xs { width: 14px; height: 14px; }
.nda-truncate { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nda-tabular { font-variant-numeric: tabular-nums; }
html.nda-scroll-locked, html.nda-scroll-locked body { overflow: hidden !important; }

/* Hide the theme/plugin chrome that duplicated the app's own navigation. */
.nexdirectory-uniform-page-gutter:has(> .nda) { padding-top: 0 !important; padding-bottom: 0 !important; }

/* ---------------------------------------------------------------------------
 * Avatar
 * ------------------------------------------------------------------------- */
.nda-avatar {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: none;
    overflow: hidden;
    border-radius: 50%;
    background: var(--nd-accent-soft-2);
    color: var(--nd-accent-ink);
    font: 650 14px/1 var(--nd-font);
}
.nda-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nda-avatar--sm { width: 32px; height: 32px; font-size: 13px; }
.nda-avatar--md { width: 48px; height: 48px; font-size: 18px; }

/* ---------------------------------------------------------------------------
 * Sidebar
 * ------------------------------------------------------------------------- */
.nda-sidebar {
    position: sticky;
    top: var(--nda-sticky-top);
    z-index: 40;
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nda-sticky-top));
    height: calc(100dvh - var(--nda-sticky-top));
    min-width: 0;
    border-right: 1px solid var(--nd-line);
    background: var(--nd-surface);
}
.nda-sidebar__top { display: flex; align-items: center; gap: 12px; height: var(--nda-topbar-h); padding: 0 12px 0 16px; border-bottom: 1px solid var(--nd-line); }
.nda-usercard__text { display: grid; flex: 1; min-width: 0; gap: 1px; }
.nda-usercard__name { overflow: hidden; color: var(--nd-ink); font: 650 14px/1.25 var(--nd-font); text-overflow: ellipsis; white-space: nowrap; }
.nda-usercard__meta { overflow: hidden; color: var(--nd-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.nda-railtoggle {
    display: grid; place-items: center; width: 32px; height: 32px; flex: none;
    border: 0; border-radius: 8px; background: transparent; color: var(--nd-subtle); cursor: pointer;
}
.nda-railtoggle:hover { background: var(--nd-surface-2); color: var(--nd-ink); }
.nda-railtoggle svg { transition: transform var(--nd-dur-3) var(--nd-ease); }
.nda.is-rail .nda-railtoggle svg { transform: rotate(180deg); }

.nda-sidebar__cta { padding: 16px 12px 4px; }
.nda-createbtn { justify-content: center; gap: 8px; min-height: 40px; }
.nda-sidebar__nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 12px; scrollbar-width: thin; }
.nda-sidebar__foot { padding: 8px 12px max(12px, var(--nda-safe-bottom)); border-top: 1px solid var(--nd-line); }

.nda .nda-navlink {
    position: relative;
    min-height: 40px;
    gap: 12px;
    padding: 0 12px;
    border-radius: 8px;
    color: var(--nd-ink-2);
    font: 550 14px/1.2 var(--nd-font);
    text-decoration: none;
}
.nda .nda-navlink::before { content: none !important; }
.nda .nda-navlink:hover { background: var(--nd-surface-2); color: var(--nd-ink); }
.nda .nda-navlink.is-active, .nda .nda-navlink[aria-current="page"] { background: var(--nd-accent-soft); color: var(--nd-accent-ink); font-weight: 650; }
.nda-navlink .nd-navlink__icon { opacity: 1; color: var(--nd-muted); }
.nda-navlink.is-active .nd-navlink__icon, .nda-navlink[aria-current="page"] .nd-navlink__icon { color: var(--nd-accent); }
.nda-navlink.is-loading .nd-navlink__icon { animation: nd-spin 0.9s linear infinite; }
.nda-navlink__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nda-navcount { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; color: var(--nd-muted); font: 600 12px/20px var(--nd-font); text-align: center; font-variant-numeric: tabular-nums; }
.nda-navcount.is-accent { background: var(--nd-accent); color: var(--nd-on-accent); }
.nda-navlink__pro { margin-left: auto; padding: 1px 6px; border-radius: 6px; background: var(--nd-accent-soft); color: var(--nd-accent-ink); font: 650 11px/16px var(--nd-font); }
.nda-navlink--quiet { color: var(--nd-muted) !important; }

/* Rail */
.nda.is-rail .nda-sidebar__top { justify-content: center; padding: 0; }
.nda.is-rail .nda-sidebar__top .nda-avatar,
.nda.is-rail .nda-usercard__text,
.nda.is-rail .nda-navlink__label,
.nda.is-rail .nda-navcount:not(.is-accent),
.nda.is-rail .nda-navlink__pro,
.nda.is-rail .nda-createbtn__label { display: none; }
.nda.is-rail .nda-sidebar__cta { padding: 16px 16px 4px; }
.nda.is-rail .nda-createbtn { width: 40px; padding: 0; }
.nda.is-rail .nda-navlink { justify-content: center; padding: 0; }
.nda.is-rail .nda-navcount.is-accent { position: absolute; top: 4px; right: 6px; min-width: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; }
.nda.is-rail [data-tip]:hover::after {
    content: attr(data-tip);
    position: absolute; left: calc(100% + 10px); top: 50%; z-index: 60;
    transform: translateY(-50%);
    padding: 6px 10px; border-radius: 8px; background: var(--nd-ink); color: #fff;
    font: 550 12px/1.2 var(--nd-font); white-space: nowrap; pointer-events: none;
    box-shadow: var(--nd-shadow-3);
}

/* ---------------------------------------------------------------------------
 * Top bar + content
 * ------------------------------------------------------------------------- */
.nda-shell { min-width: 0; }
.nda-topbar {
    position: sticky;
    top: var(--nda-sticky-top);
    z-index: 35;
    height: var(--nda-topbar-h);
    border-bottom: 1px solid var(--nd-line);
    background: color-mix(in srgb, var(--nd-canvas) 82%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
}
.nda-topbar__inner { display: flex; align-items: center; gap: 16px; height: 100%; max-width: calc(var(--nda-max) + 2 * var(--nda-pad)); margin: 0 auto; padding: 0 var(--nda-pad); }
.nda-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--nd-muted); font-size: 14px; }
.nda-crumbs__sep { width: 14px; height: 14px; color: var(--nd-subtle); }
.nda-crumbs__current { overflow: hidden; color: var(--nd-ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.nda-topbar__title { display: none; }
.nda-topbar__back { display: none; }
.nda-topbar__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nda-search {
    display: inline-flex; align-items: center; gap: 10px;
    width: 280px; height: 38px; padding: 0 8px 0 12px;
    border: 1px solid var(--nd-line); border-radius: 10px;
    background: var(--nd-surface); color: var(--nd-muted);
    font: 450 14px/1 var(--nd-font); text-align: left; cursor: pointer;
    box-shadow: var(--nd-shadow-1);
}
.nda-search:hover { border-color: var(--nd-line-strong); color: var(--nd-ink-2); }
.nda-search .nda-icon { width: 16px; height: 16px; }
.nda-search__label { flex: 1; }
.nda-kbd { padding: 2px 6px; border: 1px solid var(--nd-line); border-radius: 6px; background: var(--nd-surface-2); color: var(--nd-muted); font: 550 12px/1.2 var(--nd-font); }
.nda-topbar__cta { min-height: 38px; }
.nda .nda-topbar__draft { display: none !important; }

.nda .nda-main { width: 100%; max-width: calc(var(--nda-max) + 2 * var(--nda-pad)); margin: 0 auto; padding: 32px var(--nda-pad) 96px; }
.nda-view { display: block; animation: nda-enter var(--nd-dur-3) var(--nd-ease) backwards; } /* "backwards": no transform is left behind, so fixed bars inside stay fixed to the viewport. */
@keyframes nda-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.nda-pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.nda-pagehead__text { min-width: 0; max-width: 720px; }
.nda-pagehead__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nda .nda-title { font: 700 28px/1.15 var(--nd-font); letter-spacing: -0.025em; text-wrap: balance; outline: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nda .nda-title--hero { font: 700 clamp(28px, 2.6vw, 34px)/1.12 var(--nd-font-display); letter-spacing: -0.03em; }
.nda-subtitle { margin-top: 6px !important; color: var(--nd-muted); font-size: 15px; }
.nda-eyebrow { margin-bottom: 6px !important; color: var(--nd-muted); font: 550 13px/1.2 var(--nd-font); }
.nda-title__badge { font-size: 12px; }

.nda-card { border: 1px solid var(--nd-line); border-radius: var(--nd-radius-lg); background: var(--nd-surface); box-shadow: var(--nd-shadow-1); }
.nda-block { margin-bottom: 32px; }
.nda-block__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.nda-block__title { font: 650 16px/1.3 var(--nd-font) !important; letter-spacing: -0.01em; }
.nda-block__meta { margin-right: auto; padding: 0 7px; border-radius: 999px; background: var(--nd-surface-2); color: var(--nd-muted); font: 600 12px/20px var(--nd-font); border: 1px solid var(--nd-line); }
.nda-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--nd-accent); font: 600 13px/1.3 var(--nd-font); text-decoration: none; cursor: pointer; }
.nda-link:hover { text-decoration: underline; }
.nda-empty-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; color: var(--nd-muted); font-size: 14px; }
.nda-empty-inline--plain { justify-content: center; text-align: center; flex-direction: column; padding: 32px 16px; border: 1px dashed var(--nd-line-strong); border-radius: var(--nd-radius); }
.nda-iconbtn {
    display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none;
    border: 0; border-radius: 8px; background: transparent; color: var(--nd-muted); cursor: pointer; list-style: none;
}
.nda-iconbtn::-webkit-details-marker { display: none; }
.nda-iconbtn:hover { background: var(--nd-surface-2); color: var(--nd-ink); }
.nda-iconbtn .nda-icon { width: 18px; height: 18px; }
.nda-iconbtn--light { color: rgba(255, 255, 255, 0.8); }
.nda-iconbtn--light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nda-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--nd-accent); }
.nda .nd-btn { font-family: var(--nd-font); }

/* Status pills (class names are updated by frontend JS). */
.nda .nda-pill, .nda .nexdirectory-status-pill { border: 0; background: var(--nd-surface-2); color: var(--nd-muted); font: 600 12px/20px var(--nd-font); padding: 0 8px; border-radius: 999px; white-space: nowrap; }
.nda :is(.nda-pill--publish, .nexdirectory-status-publish).nda-pill,
.nda .nexdirectory-status-pill.nexdirectory-status-publish { background: var(--nd-success-soft); color: var(--nd-success); }
.nda :is(.nda-pill--pending, .nexdirectory-status-pending).nda-pill,
.nda .nexdirectory-status-pill.nexdirectory-status-pending { background: var(--nd-warning-soft); color: var(--nd-warning); }
.nda .nexdirectory-status-pill.nexdirectory-status-future, .nda .nda-pill--future { background: var(--nd-info-soft); color: var(--nd-info); }

/* ---------------------------------------------------------------------------
 * Home
 * ------------------------------------------------------------------------- */
.nda-pagehead--home { margin-bottom: 32px; }

.nda-tasks { margin: 0; padding: 4px 0; list-style: none; }
.nda-task { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.nda-task + .nda-task { border-top: 1px solid var(--nd-line); }
.nda-task__icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--nd-surface-2); color: var(--nd-muted); }
.nda-task--accent .nda-task__icon { background: var(--nd-accent-soft); color: var(--nd-accent-ink); }
.nda-task--success .nda-task__icon { background: var(--nd-success-soft); color: var(--nd-success); }
.nda-task--warning .nda-task__icon { background: var(--nd-warning-soft); color: var(--nd-warning); }
.nda-task__body { display: grid; flex: 1; min-width: 0; gap: 2px; }
.nda-task__title { overflow: hidden; color: var(--nd-ink); font: 600 15px/1.35 var(--nd-font); text-overflow: ellipsis; white-space: nowrap; }
.nda-task__text { color: var(--nd-muted); font-size: 13px; line-height: 1.45; }
.nda-task__cta { flex: none; }
.nda-allclear { display: flex; align-items: center; gap: 12px; padding: 16px 20px; color: var(--nd-muted); font-size: 14px; }
.nda-allclear strong { color: var(--nd-ink); font-weight: 600; }
.nda-allclear__icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--nd-success-soft); color: var(--nd-success); }

.nda-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.nda-kpis[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nda-kpis[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nda-kpis[data-count="1"] { grid-template-columns: minmax(0, 360px); }
.nda-kpi { display: grid; gap: 8px; height: 100%; padding: 18px 20px; color: inherit; text-decoration: none !important; transition: box-shadow var(--nd-dur-3) var(--nd-ease), transform var(--nd-dur-3) var(--nd-ease), border-color var(--nd-dur-2) var(--nd-ease); }
.nda-kpi:hover { border-color: var(--nd-line-strong); box-shadow: var(--nd-shadow-2); transform: translateY(-1px); }
.nda-kpi__label { color: var(--nd-muted); font: 550 13px/1.3 var(--nd-font); }
.nda-kpi__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; min-height: 36px; }
.nda-kpi__value { color: var(--nd-ink); font: 700 30px/1 var(--nd-font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.nda-kpi__meta { color: var(--nd-muted); font: 550 12px/1.3 var(--nd-font); }
.nda-kpi__meta--up { color: var(--nd-success-ink); }
.nda-kpi__meta--down { color: var(--nd-danger); }
.nda-kpi__meta--accent { color: var(--nd-accent); }
.nda-spark { width: 96px; height: 32px; flex: none; overflow: visible; }
.nda-spark__line { fill: none; stroke: var(--nd-accent); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.nda-spark__area { fill: var(--nd-accent-soft); stroke: none; }

.nda-home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.nda-home-grid > .nda-block { margin-bottom: 0; }

.nda-dateblock { display: inline-grid; place-items: center; align-content: center; width: 48px; height: 52px; flex: none; border: 1px solid var(--nd-line); border-radius: 10px; background: var(--nd-surface); text-align: center; }
.nda-dateblock__m { color: var(--nd-accent); font: 650 11px/1 var(--nd-font); letter-spacing: 0.04em; text-transform: uppercase; }
.nda-dateblock__d { margin-top: 3px; color: var(--nd-ink); font: 700 20px/1 var(--nd-font); font-variant-numeric: tabular-nums; }
.nda-dateblock.is-empty .nda-dateblock__m { color: var(--nd-subtle); }

.nda-timeline { margin: 0; padding: 4px 0; list-style: none; }
.nda-timeline__item { display: flex; align-items: center; gap: 16px; padding: 14px 20px; }
.nda-timeline__item + .nda-timeline__item { border-top: 1px solid var(--nd-line); }
.nda-timeline__body { display: grid; flex: 1; min-width: 0; gap: 4px; }
.nda-timeline__title { overflow: hidden; color: var(--nd-ink); font: 600 15px/1.35 var(--nd-font); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.nda-timeline__title:hover { color: var(--nd-accent); }
.nda-timeline__meta { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--nd-muted); font-size: 13px; }
.nda-timeline__actions { flex: none; }

.nda-capacity { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.nda-capacity__bar { position: relative; display: block; width: 100%; max-width: 180px; height: 6px; overflow: hidden; border-radius: 999px; background: var(--nd-surface-2); box-shadow: inset 0 0 0 1px var(--nd-line); }
.nda-capacity__bar > span { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--nd-accent); }
.nda-capacity[data-open] .nda-capacity__bar > span { background: var(--nd-accent-line); }
.nda-capacity__label { flex: none; color: var(--nd-muted); font: 550 12px/1.3 var(--nd-font); font-variant-numeric: tabular-nums; }

.nda-feed { margin: 0; padding: 4px 0; list-style: none; }
.nda-feed__item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 20px; }
.nda-feed__item + .nda-feed__item { border-top: 1px solid var(--nd-line); }
.nda-feed__item .nda-dot { margin-top: 12px; }
.nda-feed__body { display: grid; flex: 1; min-width: 0; gap: 2px; color: inherit; text-decoration: none !important; }
.nda-feed__text { color: var(--nd-ink-2); font-size: 14px; line-height: 1.45; }
.nda-feed__text strong { color: var(--nd-ink); font-weight: 600; }
.nda-feed__target { color: var(--nd-ink); font-weight: 550; }
.nda-feed__body:hover .nda-feed__target { color: var(--nd-accent); }
.nda-feed__time { color: var(--nd-subtle); font-size: 12px; }

.nda-onboard { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-bottom: 32px; padding: 32px; overflow: hidden; }
.nda-onboard__title { font: 700 24px/1.2 var(--nd-font) !important; letter-spacing: -0.02em; }
.nda-onboard__lede { margin-top: 8px !important; color: var(--nd-muted); font-size: 15px; max-width: 46ch; }
.nda-onboard__steps { display: grid; gap: 10px; margin: 20px 0 24px; padding: 0; list-style: none; }
.nda-onboard__steps li { display: flex; align-items: center; gap: 12px; color: var(--nd-ink-2); font-size: 14px; }
.nda-onboard__steps span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--nd-accent-soft); color: var(--nd-accent-ink); font: 650 12px/1 var(--nd-font); }
.nda-onboard__art { display: grid; place-items: center; min-height: 180px; border-radius: var(--nd-radius-lg); background: radial-gradient(120% 120% at 100% 0%, var(--nd-accent-soft-2), transparent 60%), var(--nd-surface-2); }
.nda-onboard__ticket { display: flex; align-items: center; gap: 16px; width: 72%; padding: 16px; border-radius: 14px; background: var(--nd-surface); box-shadow: var(--nd-shadow-3); transform: rotate(-3deg); }
.nda-onboard__lines { display: grid; flex: 1; gap: 8px; }
.nda-onboard__lines i { display: block; height: 8px; border-radius: 4px; background: var(--nd-line); }
.nda-onboard__lines i:first-child { width: 80%; background: var(--nd-line-strong); }
.nda-onboard__lines i:last-child { width: 45%; }

/* ---------------------------------------------------------------------------
 * Segmented controls, toolbar, inputs
 * ------------------------------------------------------------------------- */
.nda-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.nda-toolbar__right { display: flex; gap: 8px; align-items: center; }
.nda-segments { display: inline-flex; gap: 2px; max-width: 100%; padding: 3px; overflow-x: auto; border: 1px solid var(--nd-line); border-radius: 10px; background: var(--nd-surface-2); scrollbar-width: none; }
.nda-segments::-webkit-scrollbar { display: none; }
.nda-segments--full { display: flex; width: 100%; }
.nda .nda-segments--full .nda-segment { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; }
.nda .nda-segment {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    height: 32px; padding: 0 12px; border: 0; border-radius: 8px;
    background: transparent; color: var(--nd-muted); font: 550 13px/1 var(--nd-font); white-space: nowrap; cursor: pointer; min-height: 0; letter-spacing: 0; text-transform: none; box-shadow: none;
}
.nda-segment:hover { color: var(--nd-ink); }
.nda .nda-segment[aria-selected="true"], .nda .nda-segment[aria-checked="true"] { background: var(--nd-surface); color: var(--nd-ink); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 0 0 1px var(--nd-line); }
.nda-segment__count { color: var(--nd-subtle); font-weight: 550; font-variant-numeric: tabular-nums; }
.nda-segment[aria-selected="true"] .nda-segment__count { color: var(--nd-muted); }
.nda-segments--sm .nda-segment { height: 28px; padding: 0 10px; font-size: 12px; }

.nda-field-search { position: relative; display: block; }
.nda-field-search > .nda-icon { position: absolute; left: 11px; top: 50%; width: 16px; height: 16px; color: var(--nd-subtle); transform: translateY(-50%); pointer-events: none; }
.nda .nda-field-search .nd-input { width: 260px; height: 38px; padding-left: 34px; }
.nda .nda-field-sort .nd-select { height: 38px; min-width: 160px; }
.nda .nd-label { display: block; margin-bottom: 6px; font: 600 14px/1.3 var(--nd-font); color: var(--nd-ink); }
.nda .nda-label--spaced { margin-top: 12px; }
.nda .nd-input, .nda .nd-select, .nda .nd-textarea { display: block; width: 100%; font-family: var(--nd-font); }
.nda .nd-textarea { min-height: 96px; resize: vertical; }
.nda .nda-input--readonly { background: var(--nd-surface-2); color: var(--nd-muted); cursor: not-allowed; box-shadow: none; }
.nda .nda-check { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--nd-accent); cursor: pointer; }
.nda .nd-help { color: var(--nd-muted); font-size: 13px; line-height: 1.45; margin-top: 6px; }
.nda-field { display: grid; gap: 0; }
.nda-field-error { color: var(--nd-danger); font: 550 13px/1.4 var(--nd-font); }

/* ---------------------------------------------------------------------------
 * Events table
 * ------------------------------------------------------------------------- */
.nda-tablecard { overflow: clip; }
.nda-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.nda-table thead th {
    position: sticky; top: calc(var(--nda-sticky-top) + var(--nda-topbar-h)); z-index: 2;
    height: 40px; padding: 0 16px; border-bottom: 1px solid var(--nd-line);
    background: var(--nd-surface-2); color: var(--nd-muted); font: 600 12px/1 var(--nd-font); text-align: left; white-space: nowrap;
}
.nda-table td { padding: 12px 16px; border-bottom: 1px solid var(--nd-line); vertical-align: middle; color: var(--nd-ink-2); }
.nda-table tbody tr:last-child td { border-bottom: 0; }
.nda-table tbody tr { transition: background-color var(--nd-dur-1) var(--nd-ease); }
.nda-table tbody tr:hover { background: color-mix(in srgb, var(--nd-surface-2) 70%, transparent); }
.nda-table tbody tr.is-selected { background: var(--nd-accent-soft); }
.nda-table tr[hidden] { display: none; }
.nda-table .nda-cell--check { width: 44px; padding-right: 0; }
.nda-table .nda-cell--date { width: 150px; white-space: nowrap; }
.nda-table .nda-cell--status { width: 150px; }
.nda-table .nda-cell--going { width: 150px; }
.nda-table .nda-cell--num { width: 72px; text-align: right; }
.nda-table .nda-cell--actions { width: 124px; text-align: right; }
.nda-check-wrap { display: inline-grid; place-items: center; width: 24px; height: 24px; cursor: pointer; }
.nda-evcell { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.nda-evcell__text { display: grid; min-width: 0; gap: 2px; }
.nda-evcell__title { overflow: hidden; color: var(--nd-ink); font: 600 14px/1.35 var(--nd-font); text-overflow: ellipsis; white-space: nowrap; }
.nda-evcell:hover .nda-evcell__title { color: var(--nd-accent); }
.nda-evcell__meta { display: flex; gap: 6px; min-width: 0; color: var(--nd-muted); font-size: 13px; }
.nda-evcell__date { display: none; }
.nda-evcell__place { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nda-thumb { position: relative; display: grid; place-items: center; width: 44px; height: 44px; flex: none; overflow: hidden; border-radius: 10px; background: var(--nd-accent-soft); }
.nda-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nda-thumb__date { display: grid; justify-items: center; line-height: 1; }
.nda-thumb__date span { color: var(--nd-accent); font: 650 10px/1 var(--nd-font); text-transform: uppercase; letter-spacing: 0.04em; }
.nda-thumb__date strong { margin-top: 2px; color: var(--nd-ink); font: 700 16px/1 var(--nd-font); }
.nda-note { margin-top: 6px !important; font-size: 12px; }
.nda-note--danger { color: var(--nd-danger); }

.nda-statuscell { display: flex; align-items: center; gap: 10px; }
.nda-statuscell form { margin: 0; display: inline-flex; align-items: center; }
.nda .nda-switch.nexdirectory-live-toggle { position: relative; display: inline-flex; align-items: center; gap: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; }
.nda .nda-statuscell .nexdirectory-live-toggle-form { display: inline-flex; flex-direction: row; gap: 0; }
.nda .nda-switch .nexdirectory-live-toggle-track.nda-switch__track { position: relative; left: auto; top: auto; transform: none; }
.nda .nda-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.nda .nda-switch .nda-switch__track { position: relative; display: block; width: 32px; height: 18px; border-radius: 999px; background: var(--nd-line-strong); transition: background-color var(--nd-dur-2) var(--nd-ease); }
.nda .nda-switch .nda-switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25); transition: transform var(--nd-dur-2) var(--nd-ease-spring); }
.nda .nda-switch input:checked + .nda-switch__track { background: var(--nd-success); }
.nda .nda-switch input:checked + .nda-switch__track::after { transform: translateX(14px); }
.nda .nda-switch input:focus-visible + .nda-switch__track { box-shadow: var(--nd-ring); }
.nda .nda-switch input:disabled + .nda-switch__track { opacity: 0.5; }
.nda .nexdirectory-live-toggle-label, .nda .nexdirectory-live-toggle-meta { display: none; }

.nda-capacity--compact { display: grid; gap: 4px; margin: 0; }
.nda-capacity--compact .nda-capacity__label { color: var(--nd-ink); font-size: 14px; }
.nda-capacity__of { color: var(--nd-muted); }
.nda-capacity__suffix { display: none; color: var(--nd-muted); font-weight: 500; }
.nda-thumb > svg { width: 20px; height: 20px; color: var(--nd-accent); opacity: 0.7; }
.nda-capacity--compact .nda-capacity__bar { max-width: 96px; height: 4px; }
.nda-capacity__wait { color: var(--nd-warning); font: 550 12px/1.2 var(--nd-font); }

.nda-rowactions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; opacity: 0; transition: opacity var(--nd-dur-1) var(--nd-ease); }
.nda-table tr:hover .nda-rowactions, .nda-table tr:focus-within .nda-rowactions, .nda-rowmenu[open] { opacity: 1; }
.nda-rowmenu:has([open]), .nda-table tr:has(.nda-rowmenu[open]) .nda-rowactions { opacity: 1; }
.nda-rowmenu { position: relative; }
.nda-rowmenu .nd-menu__panel { right: 0; left: auto; min-width: 220px; text-align: left; }
.nda-rowmenu form { margin: 0; }
.nda-rowmenu .nd-menu__item { width: 100%; border: 0; background: none; font-family: var(--nd-font); cursor: pointer; text-align: left; }
.nda-rowmenu .nd-menu__item svg { width: 16px; height: 16px; }
.nda-row__sheetbtn { display: none; }
@media (hover: none) { .nda-rowactions { opacity: 1; } }

.nda-filter-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 16px; text-align: center; }
.nda-filter-empty__title { color: var(--nd-ink); font-weight: 600; }

.nda-bulkbar {
    position: fixed; left: 50%; bottom: calc(24px + var(--nda-safe-bottom)); z-index: 60;
    display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 16px;
    border-radius: 14px; background: var(--nd-ink); color: #fff; box-shadow: var(--nd-shadow-4);
    transform: translateX(-50%);
}
.nda-bulkbar__count { margin-right: 8px; font: 600 14px/1 var(--nd-font); white-space: nowrap; font-variant-numeric: tabular-nums; }
.nda-bulkbar__btn, .nda-bulkbar__close { height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: rgba(255, 255, 255, 0.9); font: 550 13px/1 var(--nd-font); cursor: pointer; white-space: nowrap; }
.nda-bulkbar__btn:hover, .nda-bulkbar__close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.nda-bulkbar__btn.is-danger { color: #fca5a5; }
.nda-bulkbar__close { display: grid; place-items: center; width: 34px; padding: 0; }
.nda-bulkbar__close svg { width: 16px; height: 16px; }

.nda-empty-hero { padding: 56px 24px; }
.nda .nd-empty { display: grid; justify-items: center; gap: 8px; text-align: center; }

/* ---------------------------------------------------------------------------
 * Drawer (event detail)
 * ------------------------------------------------------------------------- */
.nda-drawer { position: fixed; inset: 0; z-index: 100000; }
.nda-drawer__scrim, .nda-modal__scrim, .nda-palette__scrim { position: absolute; inset: 0; background: var(--nd-overlay); }
.nda-drawer__panel {
    position: absolute; top: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column;
    width: min(600px, 100vw); background: var(--nd-surface); box-shadow: var(--nd-shadow-4); outline: none;
}
.nda-fade-enter { transition: opacity var(--nd-dur-2) var(--nd-ease); }
.nda-fade-leave { transition: opacity var(--nd-dur-2) var(--nd-ease); }
.nda-fade-from { opacity: 0; }
.nda-slide-enter, .nda-slide-leave { transition: transform var(--nd-dur-3) var(--nd-ease); }
.nda-slide-from { transform: translateX(100%); }
.nda-drawer__head { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px 12px 24px; padding-top: calc(12px + var(--nda-overlay-top)); border-bottom: 1px solid var(--nd-line); }
.nda-drawer__back { display: none; }
.nda-drawer__heading { flex: 1; min-width: 0; }
.nda-drawer__eyebrow { color: var(--nd-muted); font: 550 12px/1.3 var(--nd-font); }
.nda-drawer__title { overflow: hidden; font: 650 17px/1.3 var(--nd-font) !important; text-overflow: ellipsis; white-space: nowrap; }
.nda-drawer__body { flex: 1; min-height: 0; overflow-y: auto; padding: 24px; overscroll-behavior: contain; }
.nda-drawer__error { display: grid; justify-items: center; gap: 8px; padding: 48px 16px; text-align: center; }
.nda-drawer__loading { display: grid; gap: 12px; }
.nda-sk { display: block; border-radius: 10px; }
.nda-sk--hero { height: 120px; }
.nda-sk--line { height: 14px; width: 70%; }
.nda-sk--short { width: 40%; }
.nda-sk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.nda-sk--stat { height: 72px; }

.nda-dhero { display: flex; gap: 16px; margin-bottom: 20px; }
.nda-dhero__media { position: relative; display: grid; place-items: center; width: 132px; height: 88px; flex: none; overflow: hidden; border-radius: 12px; background: var(--nd-surface-2); color: var(--nd-subtle); }
.nda-dhero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nda-dhero__meta { display: grid; align-content: start; justify-items: start; gap: 6px; min-width: 0; }
.nda-dhero__line { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--nd-ink-2); font-size: 14px; }
.nda-dhero__line svg { color: var(--nd-muted); }

.nda-dpanel { padding-top: 20px; }
.nda-dstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--nd-line); border-radius: 12px; background: var(--nd-line); }
.nda-dstat { display: grid; align-content: start; gap: 6px; padding: 14px 16px; background: var(--nd-surface); }
.nda-dstat__label { color: var(--nd-muted); font: 550 12px/1.2 var(--nd-font); }
.nda-dstat__value { color: var(--nd-ink); font: 700 22px/1 var(--nd-font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.nda-dstat__of { color: var(--nd-subtle); font-size: 15px; font-weight: 600; }
.nda-dstat .nda-capacity__bar { height: 4px; }

.nda-dactions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 20px 0 24px; }
.nda-dactions__primary { grid-column: 1 / -1; justify-content: center; }
.nda-daction {
    display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 72px; padding: 10px 6px;
    border: 1px solid var(--nd-line); border-radius: 12px; background: var(--nd-surface);
    color: var(--nd-ink-2); font: 550 13px/1.25 var(--nd-font) !important; text-align: center; text-decoration: none !important; cursor: pointer;
}
.nda-daction:hover { border-color: var(--nd-accent-line); color: var(--nd-accent); }
.nda-daction svg { width: 20px; height: 20px; }

.nda-health { padding: 16px 0 0; border-top: 1px solid var(--nd-line); }
.nda-health__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.nda-health__title { font: 650 15px/1.3 var(--nd-font) !important; }
.nda-health__score { color: var(--nd-muted); font: 600 13px/1 var(--nd-font); font-variant-numeric: tabular-nums; }
.nda-health__bar { display: block; height: 4px; margin-bottom: 8px; overflow: hidden; border-radius: 999px; background: var(--nd-surface-2); }
.nda-health__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--nd-success); transition: width var(--nd-dur-3) var(--nd-ease); }

.nda-checklist { display: grid; margin: 0; padding: 0; list-style: none; }
.nda-checklist li { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--nd-ink-2); font-size: 14px; }
.nda-checklist li + li { border-top: 1px solid var(--nd-line); }
.nda-checklist__mark { position: relative; width: 20px; height: 20px; flex: none; border: 1.5px dashed var(--nd-line-strong); border-radius: 50%; }
.nda-checklist li.is-ok .nda-checklist__mark { border: 0; background: var(--nd-success); }
.nda-checklist li.is-ok .nda-checklist__mark::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.nda-checklist li > span:nth-child(2), .nda-checklist__text { display: grid; flex: 1; min-width: 0; gap: 2px; }
.nda-checklist__text small { color: var(--nd-muted); font-size: 12px; }
.nda-checklist li.is-ok .nda-link { visibility: hidden; }

.nda-dtoolbar { display: grid; gap: 10px; margin-bottom: 12px; }
.nda-dtoolbar .nda-field-search .nd-input { width: 100%; }
.nda-people { margin: 0; padding: 0; list-style: none; border: 1px solid var(--nd-line); border-radius: 12px; }
.nda-person { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.nda-person + .nda-person { border-top: 1px solid var(--nd-line); }
.nda-person__body { display: grid; flex: 1; min-width: 0; gap: 1px; }
.nda-person__name { overflow: hidden; color: var(--nd-ink); font: 600 14px/1.3 var(--nd-font); text-overflow: ellipsis; white-space: nowrap; }
.nda-person__meta { display: flex; gap: 4px; min-width: 0; color: var(--nd-muted); font-size: 12px; }
.nda-person__in { flex: none; color: var(--nd-success); }
.nda-person__action { flex: none; min-width: 96px; justify-content: center; }
.nda-person__action.is-done { --_bg: var(--nd-success-soft); --_fg: var(--nd-success); --_bd: transparent; }
.nda-dfoot { display: flex; gap: 8px; margin-top: 12px; }

.nda-callout { margin-bottom: 16px !important; padding: 12px 14px; border-radius: 10px; background: var(--nd-warning-soft); color: var(--nd-warning); font-size: 13px; }
.nda-copyfield { display: flex; gap: 8px; }
.nda-copyfield .nd-input { flex: 1; min-width: 0; color: var(--nd-ink-2); }
.nda-sharebtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 24px; }
.nda-qr { display: flex; align-items: center; gap: 20px; padding: 20px; border: 1px solid var(--nd-line); border-radius: 12px; background: var(--nd-surface-2); }
.nda-qr__canvas { width: 140px; height: 140px; flex: none; border-radius: 10px; background: #fff; box-shadow: var(--nd-shadow-1); image-rendering: pixelated; }
.nda-qr__text { display: grid; justify-items: start; gap: 6px; }
.nda-qr__title { color: var(--nd-ink); font-weight: 600; }
.nda-qr .nd-help { margin: 0 0 6px; }

/* ---------------------------------------------------------------------------
 * Modal (composer) + palette + sheets
 * ------------------------------------------------------------------------- */
.nda-modal { position: fixed; inset: 0; z-index: 100010; display: grid; place-items: center; padding: 24px; }
.nda-modal__panel { position: relative; display: flex; flex-direction: column; width: min(560px, 100%); max-height: calc(100dvh - 48px); margin: 0; overflow: hidden; border-radius: var(--nd-radius-xl); background: var(--nd-surface); box-shadow: var(--nd-shadow-4); animation: nda-pop var(--nd-dur-2) var(--nd-ease) both; }
@keyframes nda-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.nda-modal__panel .nda-sheet__grip { display: none; }
.nda-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 0 24px; }
.nda-modal__title { font: 650 18px/1.3 var(--nd-font) !important; }
.nda-modal__sub { margin-top: 2px !important; color: var(--nd-muted); font-size: 13px; }
.nda-modal__body { display: grid; gap: 16px; padding: 20px 24px; overflow-y: auto; }
.nda-modal__foot { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; padding-bottom: calc(16px + var(--nda-safe-bottom)); border-top: 1px solid var(--nd-line); background: var(--nd-surface-2); }

.nda-palette { position: fixed; inset: 0; z-index: 100020; }
.nda-palette__panel { position: relative; width: min(640px, calc(100vw - 32px)); margin: 12vh auto 0; overflow: hidden; border: 1px solid var(--nd-line); border-radius: var(--nd-radius-xl); background: var(--nd-surface); box-shadow: var(--nd-shadow-4); animation: nda-pop 180ms var(--nd-ease) both; }
.nda-palette__search { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--nd-line); color: var(--nd-muted); }
.nda-palette__search input { flex: 1; height: 56px; border: 0 !important; outline: 0 !important; box-shadow: none !important; background: transparent; color: var(--nd-ink); font: 450 16px/1 var(--nd-font); }
.nda-palette__list { max-height: min(420px, 60vh); margin: 0; padding: 8px; overflow-y: auto; list-style: none; }
.nda-palette__group { display: block; padding: 10px 10px 6px; color: var(--nd-subtle); font: 600 12px/1 var(--nd-font); }
.nda-palette__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--nd-ink); font: 500 14px/1.3 var(--nd-font); text-align: left; cursor: pointer; }
.nda-palette__item.is-active { background: var(--nd-accent-soft); color: var(--nd-accent-ink); }
.nda-palette__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nda-palette__hint { flex: none; color: var(--nd-subtle); font-size: 12px; }
.nda-palette__empty { padding: 24px; color: var(--nd-muted); text-align: center; }

.nda-sheet { position: fixed; inset: 0; z-index: 100005; display: flex; align-items: flex-end; background: var(--nd-overlay); animation: nda-fade var(--nd-dur-2) var(--nd-ease) both; }
@keyframes nda-fade { from { opacity: 0; } to { opacity: 1; } }
.nda-sheet__panel { width: 100%; max-height: 85dvh; overflow-y: auto; padding: 8px 16px calc(16px + var(--nda-safe-bottom)); border-radius: 20px 20px 0 0; background: var(--nd-surface); box-shadow: var(--nd-shadow-4); animation: nda-sheet-in var(--nd-dur-3) var(--nd-ease) both; }
@keyframes nda-sheet-in { from { transform: translateY(100%); } to { transform: none; } }
.nda-sheet__grip { width: 36px; height: 5px; margin: 0 auto 12px; border-radius: 999px; background: var(--nd-line-strong); }
.nda-sheet__title { padding: 4px 4px 12px; color: var(--nd-muted); font: 550 13px/1.35 var(--nd-font); text-align: center; }
.nda-sheet__actions, .nda-sheet__list { display: grid; margin: 0; padding: 0; overflow: hidden; list-style: none; border-radius: 14px; background: var(--nd-surface-2); }
.nda-sheet__actions li + li, .nda-sheet__list li + li { border-top: 1px solid var(--nd-line); }
.nda-sheet__action { width: 100%; min-height: 52px; border: 0; background: transparent; color: var(--nd-accent); font: 550 16px/1 var(--nd-font); cursor: pointer; }
.nda-sheet__action.is-danger { color: var(--nd-danger); }
.nda-sheet__cancel { width: 100%; min-height: 52px; margin-top: 8px; border: 0; border-radius: 14px; background: var(--nd-surface-2); color: var(--nd-ink); font: 650 16px/1 var(--nd-font); cursor: pointer; }
.nda-sheet__link { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 16px; color: var(--nd-ink); font: 550 16px/1 var(--nd-font); text-decoration: none; }
.nda-sheet__link[aria-current="page"] { color: var(--nd-accent); }
.nda-sheet__link--quiet { color: var(--nd-muted); }
.nda-sheet__icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--nd-surface); color: var(--nd-muted); }
.nda-sheet__label { flex: 1; }
.nda-sheet__chev { width: 16px; height: 16px; color: var(--nd-subtle); }
.nda-usercard--sheet { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; }
.nda-usercard--sheet .nda-avatar { width: 44px; height: 44px; }

/* ---------------------------------------------------------------------------
 * Check-in mode
 * ------------------------------------------------------------------------- */
.nda-checkin { position: fixed; inset: 0; z-index: 100015; display: flex; flex-direction: column; background: var(--nd-canvas); animation: nda-fade var(--nd-dur-2) var(--nd-ease) both; }
.nda-checkin__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; padding-top: calc(16px + var(--nda-overlay-top) + env(safe-area-inset-top, 0px)); background: var(--nd-ink); color: #fff; }
.nda-checkin__heading { flex: 1; min-width: 0; }
.nda-checkin__eyebrow { color: rgba(255, 255, 255, 0.6); font: 600 12px/1.3 var(--nd-font); }
.nda .nda-checkin__title { overflow: hidden; color: #fff; font: 650 17px/1.3 var(--nd-font); text-overflow: ellipsis; white-space: nowrap; }
.nda-checkin__count { flex: none; color: rgba(255, 255, 255, 0.6); font: 600 16px/1 var(--nd-font); font-variant-numeric: tabular-nums; }
.nda-checkin__count strong { color: #fff; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.nda-checkin__progress { height: 4px; background: rgba(15, 23, 42, 0.9); }
.nda-checkin__progress > span { display: block; height: 100%; background: var(--nd-success); transition: width var(--nd-dur-3) var(--nd-ease); }
.nda-checkin__search { position: relative; display: grid; gap: 10px; width: 100%; max-width: 760px; margin: 0 auto; padding: 16px 20px 8px; }
.nda-checkin__search > .nda-icon { position: absolute; left: 36px; top: 31px; color: var(--nd-subtle); }
.nda-checkin__search input { width: 100%; height: 52px; padding: 0 16px 0 46px; border: 1px solid var(--nd-line); border-radius: 14px; background: var(--nd-surface); color: var(--nd-ink); font: 450 17px/1 var(--nd-font); box-shadow: var(--nd-shadow-1); outline: none; }
.nda-checkin__search input:focus { border-color: var(--nd-accent); box-shadow: var(--nd-ring); }
.nda-checkin__list { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 8px 20px calc(96px + var(--nda-safe-bottom)); overflow-y: auto; list-style: none; overscroll-behavior: contain; }
.nda-guest { position: relative; margin-bottom: 8px; overflow: hidden; border-radius: 14px; background: var(--nd-success); touch-action: pan-y; }
.nda-guest__swipe { position: absolute; left: 20px; top: 50%; color: #fff; transform: translateY(-50%); }
.nda-guest__row {
    position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 12px 16px;
    border: 1px solid var(--nd-line); border-radius: 14px; background: var(--nd-surface); color: inherit; text-align: left; cursor: pointer;
    transform: translateX(var(--nda-swipe, 0px)); transition: transform var(--nd-dur-2) var(--nd-ease), background-color var(--nd-dur-2) var(--nd-ease);
}
.nda-guest[style*="--nda-swipe"] .nda-guest__row { transition: none; }
.nda-guest__row:active { transform: translateX(var(--nda-swipe, 0px)) scale(0.985); }
.nda-guest__body { display: grid; flex: 1; min-width: 0; gap: 2px; }
.nda-guest__name { overflow: hidden; color: var(--nd-ink); font: 600 17px/1.3 var(--nd-font); text-overflow: ellipsis; white-space: nowrap; }
.nda-guest__meta { overflow: hidden; color: var(--nd-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.nda-guest__state { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border: 2px solid var(--nd-line-strong); border-radius: 50%; color: transparent; transition: all var(--nd-dur-2) var(--nd-ease-spring); }
.nda-guest.is-in .nda-guest__row { background: var(--nd-success-soft); border-color: transparent; }
.nda-guest.is-in .nda-guest__state { border-color: var(--nd-success); background: var(--nd-success); color: #fff; transform: scale(1.04); }
.nda-guest.is-in .nda-guest__meta { color: var(--nd-success); }
.nda-guest.is-busy .nda-guest__row { opacity: 0.7; }
.nda-checkin__empty { padding: 48px 16px; color: var(--nd-muted); text-align: center; }
.nda-undo { position: fixed; left: 50%; bottom: calc(24px + var(--nda-safe-bottom)); z-index: 2; display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 18px; border-radius: 14px; background: var(--nd-ink); color: #fff; font: 550 14px/1.3 var(--nd-font); box-shadow: var(--nd-shadow-4); transform: translateX(-50%); white-space: nowrap; }
.nda-undo button { height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.14); color: #fff; font: 650 14px/1 var(--nd-font); cursor: pointer; }
.nda-toast-undo { display: none; }

/* ---------------------------------------------------------------------------
 * Create / edit flow
 * ------------------------------------------------------------------------- */
.nda-stepper { display: flex; gap: 8px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: s; }
.nda-stepper__item { position: relative; flex: 1; min-width: 0; }
.nda-stepper__btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px 12px 0; border: 0; border-top: 3px solid var(--nd-line); background: none; text-align: left; cursor: pointer; }
.nda-stepper__item.is-done .nda-stepper__btn { border-top-color: var(--nd-accent-line); }
.nda-stepper__item.is-current .nda-stepper__btn { border-top-color: var(--nd-accent); }
.nda-stepper__dot { position: relative; display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; background: var(--nd-surface-2); color: var(--nd-muted); font: 650 12px/1 var(--nd-font); box-shadow: inset 0 0 0 1px var(--nd-line); }
.nda-stepper__check { display: none; width: 14px; height: 14px; }
.nda-stepper__item.is-current .nda-stepper__dot { background: var(--nd-accent); color: var(--nd-on-accent); box-shadow: none; }
.nda-stepper__item.is-done .nda-stepper__dot { background: var(--nd-accent-soft); color: var(--nd-accent-ink); box-shadow: none; }
.nda-stepper__item.is-done .nda-stepper__num { display: none; }
.nda-stepper__item.is-done .nda-stepper__check { display: block; }
.nda-stepper__text { display: grid; min-width: 0; gap: 1px; }
.nda-stepper__label { overflow: hidden; color: var(--nd-ink-2); font: 600 14px/1.3 var(--nd-font); text-overflow: ellipsis; white-space: nowrap; }
.nda-stepper__item.is-current .nda-stepper__label { color: var(--nd-ink); }
.nda-stepper__hint { overflow: hidden; color: var(--nd-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.nda-stepper-mobile { display: none; }

.nda-submit__form { display: grid; grid-template-columns: minmax(0, 720px) minmax(260px, 320px); gap: 24px 32px; align-items: start; margin: 0; }
.nda-submit__main { display: grid; gap: 16px; min-width: 0; }
.nda-submit__form [data-nda-step] { display: none; }
.nda-submit__form[data-step="essentials"] [data-nda-step="essentials"],
.nda-submit__form[data-step="details"] [data-nda-step="details"],
.nda-submit__form[data-step="tickets"] [data-nda-step="tickets"],
.nda-submit__form[data-step="program"] [data-nda-step="program"],
.nda-submit__form[data-step="review"] [data-nda-step="review"] { display: block; animation: nda-enter var(--nd-dur-3) var(--nd-ease) both; }

.nda-formcard { overflow: visible; }
.nda-formcard__head { padding: 24px 24px 0; }
.nda .nda-formcard__title { font: 650 18px/1.3 var(--nd-font); letter-spacing: -0.015em; }
.nda-formcard__sub { margin-top: 4px !important; color: var(--nd-muted); font-size: 14px; }
.nda-formcard__body { display: grid; gap: 24px; padding: 24px; }
.nda-formcard__body > * { min-width: 0; }
.nda-fieldset { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.nda-fieldset__legend { padding: 0; margin-bottom: 2px; color: var(--nd-ink); font: 650 15px/1.3 var(--nd-font); }
.nda-when { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nda-when > div { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; grid-auto-flow: column; column-gap: 8px; }
.nda-when .nda-label--spaced { margin-top: 0; }
.nda-place { display: grid; gap: 16px; }
.nda-modeswitch { display: inline-flex; width: max-content; }
.nda-modeswitch > button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border: 0; background: none; cursor: pointer; font: 550 14px/1 var(--nd-font); }
.nda-modeswitch svg { width: 16px; height: 16px; }
.nda-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nda-field--narrow { max-width: 240px; }
.nda .nda-place #nexdirectory-geocode-btn { justify-self: start; }
.nda .nda-place #nexdirectory-location-preview { border-radius: 12px; }

.nda-dropzone { position: relative; display: grid; place-items: center; min-height: 180px; overflow: hidden; border: 1.5px dashed var(--nd-line-strong); border-radius: 14px; background: var(--nd-surface-2); cursor: pointer; transition: border-color var(--nd-dur-2) var(--nd-ease), background-color var(--nd-dur-2) var(--nd-ease); }
/* Drag-over tint only for a fine pointer hovering; a tap on phones must not leave it pink. */
@media (hover: hover) and (pointer: fine) { .nda-dropzone:hover { border-color: var(--nd-accent); background: var(--nd-accent-soft); } }
.nda-dropzone:focus-visible { outline: none; border-color: var(--nd-accent); box-shadow: var(--nd-ring); }
.nda-dropzone.has-image { aspect-ratio: 16 / 9; min-height: 0; border-style: solid; border-color: var(--nd-line); }
.nda-dropzone__empty { display: grid; justify-items: center; gap: 6px; padding: 24px; text-align: center; }
.nda-dropzone__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 4px; border-radius: 12px; background: var(--nd-surface); color: var(--nd-accent); box-shadow: var(--nd-shadow-1); }
.nda-dropzone__title { color: var(--nd-ink); font: 600 14px/1.3 var(--nd-font); }
.nda-dropzone__hint { color: var(--nd-muted); font-size: 13px; }
.nda-dropzone__preview { position: absolute; inset: 0; }
.nda-dropzone__preview img { width: 100%; height: 100%; object-fit: cover; }
.nda-dropzone__change { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(15, 23, 42, 0.6); color: #fff; font: 600 13px/1 var(--nd-font); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nda-dropzone__remove { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(15, 23, 42, 0.6); color: #fff; cursor: pointer; }
.nda-dropzone__remove svg { width: 16px; height: 16px; }

/* Legacy utility markup kept inside the form (gallery, itinerary, SEO): calm it down. */
.nda-submit .text-\[11px\] { font-size: 12px !important; color: var(--nd-muted) !important; }
.nda-submit .text-red-500 { color: var(--nd-danger) !important; }
.nda-submit .border-dashed { border-width: 1.5px !important; border-color: var(--nd-line-strong) !important; background: var(--nd-surface-2) !important; border-radius: 14px !important; }
.nda-submit .space-y-4.border { border-color: var(--nd-line) !important; background: var(--nd-surface) !important; border-radius: 14px !important; }
.nda-submit .border-amber-200 { border-color: var(--nd-line) !important; background: var(--nd-surface-2) !important; }
.nda-submit h4 { font-size: 15px !important; font-weight: 650 !important; }
.nda-submit .wp-editor-wrap { overflow: hidden; border-radius: 10px; background: var(--nd-surface); }
.nda-submit .wp-editor-container { border: 0; }
.nda-submit :is(.mce-toolbar-grp, .quicktags-toolbar) { border-bottom: 1px solid var(--nd-line); background: var(--nd-surface-2); }
.nda-submit .nda-profile-fields { display: grid; gap: 16px; }

.nda-submit__aside { position: sticky; top: calc(var(--nda-sticky-top) + var(--nda-topbar-h) + 24px); }
.nda-preview__label { margin-bottom: 8px !important; color: var(--nd-muted); font: 600 12px/1 var(--nd-font); }
.nda-preview__card { overflow: hidden; }
.nda-preview__media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--nd-accent-soft-2), var(--nd-surface-2)); color: var(--nd-accent); }
.nda-preview__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nda-preview__placeholder svg { width: 32px; height: 32px; opacity: 0.6; }
.nda-preview__date { position: absolute; left: 12px; top: 12px; display: grid; justify-items: center; min-width: 44px; padding: 6px 8px; border-radius: 10px; background: var(--nd-surface); box-shadow: var(--nd-shadow-2); line-height: 1; }
.nda-preview__date span { color: var(--nd-accent); font: 650 10px/1 var(--nd-font); text-transform: uppercase; }
.nda-preview__date strong { margin-top: 2px; color: var(--nd-ink); font: 700 18px/1 var(--nd-font); }
.nda-preview__body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.nda-preview__when { color: var(--nd-accent); font: 600 12px/1.3 var(--nd-font); min-height: 16px; }
.nda-preview__title { color: var(--nd-ink); font: 650 16px/1.3 var(--nd-font); overflow-wrap: anywhere; }
.nda-preview__where { color: var(--nd-muted); font-size: 13px; min-height: 18px; }
.nda-preview__tip { margin-top: 10px !important; color: var(--nd-muted); font-size: 12px; }

.nda-actionbar { position: sticky; bottom: 0; z-index: 30; grid-column: 1 / -1; margin: 8px calc(-1 * var(--nda-pad)) -96px; padding: 12px var(--nda-pad) calc(12px + var(--nda-safe-bottom)); border-top: 1px solid var(--nd-line); background: color-mix(in srgb, var(--nd-surface) 88%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); }
.nda-actionbar__inner { display: flex; align-items: center; gap: 12px; max-width: var(--nda-max); margin: 0 auto; }
.nda-actionbar__status { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--nd-muted); font-size: 13px; }
.nda-actionbar__status > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nda-actionbar__dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--nd-success); }
.nda-actionbar__dot.is-dirty { background: var(--nd-warning); box-shadow: 0 0 0 3px var(--nd-warning-soft); }
.nda-actionbar__buttons { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* ---------------------------------------------------------------------------
 * Settings
 * ------------------------------------------------------------------------- */
.nda-settings { display: grid; gap: 16px; max-width: 760px; }
.nda-settings__form { display: grid; gap: 16px; }
.nda-settings .nda-formcard__head { padding: 20px 24px 16px; border-bottom: 1px solid var(--nd-line); }
.nda-settings .nd-card__title { font: 650 16px/1.3 var(--nd-font) !important; }
.nda-settings .nda-callout { display: grid; gap: 12px; margin: 0 !important; padding: 16px; border: 1px solid var(--nd-line); background: var(--nd-surface-2); color: inherit; }
.nda-callout__title { color: var(--nd-ink); font: 600 14px/1.3 var(--nd-font); }
.nda-avatarfield { display: flex; align-items: center; gap: 12px; }
.nda-avatarfield .nd-input { flex: 1; min-width: 0; }
.nda-gdpr-badge { margin-top: 8px !important; white-space: normal; }
.nda-savebar { position: sticky; bottom: 16px; z-index: 15; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border: 1px solid var(--nd-line); border-radius: var(--nd-radius-lg); background: color-mix(in srgb, var(--nd-surface) 90%, transparent); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); box-shadow: var(--nd-shadow-3); }
.nda-savebar.is-dirty { border-color: var(--nd-accent-line); }
.nda-savebar__status { color: var(--nd-muted); font-size: 14px; }
.nda-savebar__dirty { display: inline-flex; align-items: center; gap: 8px; color: var(--nd-ink); font-weight: 600; }
.nda-savebar__dirty::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--nd-warning); box-shadow: 0 0 0 3px var(--nd-warning-soft); }
.nda .nda-subtabs { margin-bottom: 16px; }

/* ---------------------------------------------------------------------------
 * Messages (two-pane on desktop, drill-in on mobile)
 * ------------------------------------------------------------------------- */
.nda-inbox { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); height: clamp(480px, calc(100dvh - var(--nda-sticky-top) - var(--nda-topbar-h) - 190px), 900px); overflow: hidden; padding: 0; border: 1px solid var(--nd-line); border-radius: var(--nd-radius-lg); background: var(--nd-surface); box-shadow: var(--nd-shadow-1); }
.nda-inbox__list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--nd-line); }
.nda-inbox__listhead { display: flex; align-items: center; justify-content: space-between; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--nd-line); }
.nda-inbox__heading { font: 650 14px/1.3 var(--nd-font) !important; }
.nda-inbox__scroll { flex: 1; min-height: 0; overflow-y: auto; }
.nda-threads { display: grid; gap: 2px; padding: 6px; }
.nda-thread { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 10px 28px 10px 10px; border-radius: 10px; color: inherit; text-decoration: none !important; }
.nda-thread:hover { background: var(--nd-surface-2); }
.nda-thread.is-active { background: var(--nd-accent-soft); }
.nda-thread__body { display: grid; flex: 1; min-width: 0; gap: 1px; }
.nda-thread__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.nda-thread__name { overflow: hidden; color: var(--nd-ink); font: 600 14px/1.3 var(--nd-font); text-overflow: ellipsis; white-space: nowrap; }
.nda-thread__time { flex: none; color: var(--nd-subtle); font-size: 12px; }
.nda-thread__subject, .nda-thread__preview { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.nda-thread__subject { color: var(--nd-ink-2); font-weight: 550; }
.nda-thread__preview { color: var(--nd-muted); }
.nda-thread.is-unread .nda-thread__name, .nda-thread.is-unread .nda-thread__preview { color: var(--nd-ink); font-weight: 650; }
.nda-thread__dot { position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--nd-accent); transform: translateY(-50%); }
.nda-inbox__panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.nda-inbox__threadhead { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 16px; border-bottom: 1px solid var(--nd-line); }
.nda-inbox__back { display: none; }
.nda-inbox__threadtitle { min-width: 0; }
.nda-inbox__threadtitle h3 { overflow: hidden; font: 650 15px/1.3 var(--nd-font) !important; text-overflow: ellipsis; white-space: nowrap; }
.nda-inbox__threadtitle p { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px !important; color: var(--nd-muted); font-size: 12px; }
.nda-inbox__threadtitle a { color: var(--nd-accent); font-weight: 600; text-decoration: none; }
.nda-inbox__messages { display: flex; flex: 1; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; padding: 20px; background: var(--nd-canvas); }
.nda-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.nda-msg.is-mine { align-items: flex-end; }
.nda-msg__meta { padding: 0 4px; color: var(--nd-subtle); font-size: 12px; }
.nda-msg__bubble { max-width: min(78%, 620px); padding: 10px 14px; border: 1px solid var(--nd-line); border-radius: 16px 16px 16px 6px; background: var(--nd-surface); color: var(--nd-ink); font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.nda-msg.is-mine .nda-msg__bubble { border-color: transparent; border-radius: 16px 16px 6px 16px; background: var(--nd-accent); color: var(--nd-on-accent); }
.nda-msg.nexdirectory-inbox-message-highlight .nda-msg__bubble { box-shadow: var(--nd-ring); }
.nda-msg__attachment { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: rgba(15, 23, 42, 0.06); color: inherit; font: 600 12px/1 var(--nd-font); text-decoration: none; }
.nda-msg.is-mine .nda-msg__attachment { background: rgba(255, 255, 255, 0.18); }
.nda-msg__attachment svg { width: 14px; height: 14px; }
.nda-inbox__composer { padding: 12px; border-top: 1px solid var(--nd-line); }
.nda-composer { display: flex; align-items: flex-end; gap: 8px; margin: 0; }
.nda-composer .nd-textarea { flex: 1; min-height: 44px; max-height: 180px; resize: none; }
.nda-inbox__placeholder, .nda-inbox__empty { display: grid; flex: 1; place-content: center; justify-items: center; gap: 8px; padding: 32px 24px; text-align: center; }
.nda .nexdirectory-notification-center { border-radius: var(--nd-radius-lg); }

/* ---------------------------------------------------------------------------
 * My plans
 * ------------------------------------------------------------------------- */
.nda-plans { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.nda-plan { display: grid; gap: 16px; padding: 16px 20px; }
.nda-plan.is-past { opacity: 0.8; }
.nda-plan__main { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.nda-plan__body { display: grid; flex: 1; min-width: 0; gap: 4px; }
.nda .nda-plan__title { font: 600 16px/1.35 var(--nd-font); }
.nda-plan__title a { color: var(--nd-ink); text-decoration: none; }
.nda-plan__title a:hover { color: var(--nd-accent); }
.nda-plan__meta { display: flex; gap: 6px; min-width: 0; color: var(--nd-muted); font-size: 13px; }
.nda-plan__status { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px !important; }
.nda-plan__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-left: 64px; }
.nda-plan__actions form { margin: 0; }
.nda-calmenu .nd-menu__panel { min-width: 220px; }
.nda-calmenu .nd-menu__item { width: 100%; border: 0; background: none; font-family: var(--nd-font); text-align: left; cursor: pointer; }
.nda-btn-danger-text { --_fg: var(--nd-danger); }
.nda-saved__details { display: grid; gap: 12px; padding-top: 4px; }

/* ---------------------------------------------------------------------------
 * Mobile tab bar (hidden on desktop)
 * ------------------------------------------------------------------------- */
.nda-tabbar { display: none; }

/* ---------------------------------------------------------------------------
 * Responsive
 * ------------------------------------------------------------------------- */
@media (max-width: 1279.98px) {
    .nda-search { width: 220px; }
    .nda-submit__form { grid-template-columns: minmax(0, 1fr); }
    .nda-submit__aside { display: none; }
    .nda-table .nda-cell--num { display: none; }
}

@media (max-width: 1099.98px) {
    .nda-home-grid { grid-template-columns: minmax(0, 1fr); }
    .nda-kpis, .nda-kpis[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nda-table .nda-cell--date { display: none; }
    .nda-evcell__date { display: inline; }
    .nda-evcell__date + .nda-evcell__place::before { content: "·"; margin-right: 6px; }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .nda { --nda-pad: 20px; grid-template-columns: var(--nda-rail) minmax(0, 1fr); }
    .nda .nda-sidebar__top { justify-content: center; padding: 0; }
    .nda .nda-sidebar__top .nda-avatar, .nda .nda-usercard__text, .nda .nda-navlink__label, .nda .nda-navcount:not(.is-accent), .nda .nda-navlink__pro, .nda .nda-createbtn__label, .nda .nda-railtoggle { display: none; }
    .nda .nda-sidebar__cta { padding: 16px 16px 4px; }
    .nda .nda-createbtn { width: 40px; padding: 0; }
    .nda .nda-navlink { justify-content: center; padding: 0; }
    .nda .nda-navcount.is-accent { position: absolute; top: 4px; right: 6px; min-width: 16px; padding: 0 4px; font-size: 10px; line-height: 16px; }
    .nda-search .nda-kbd { display: none; }
    .nda-search__label { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; } /* keeps the icon button's name */
    .nda-search { width: 38px; padding: 0; justify-content: center; }
    .nda-toolbar__right { width: 100%; }
    .nda-toolbar__right .nda-field-search { flex: 1; }
    .nda .nda-field-search .nd-input { width: 100%; }
    .nda-onboard { grid-template-columns: 1fr; }
    .nda-onboard__art { display: none; }
}

/* Phones: a native-feeling app. */
@media (max-width: 767.98px) {
    .nda {
        --nda-pad: 16px;
        --nda-topbar-h: 48px;
        display: block;
        min-height: 100dvh;
        font-size: 16px;
    }
    .nda-sidebar { display: none; }

    /* Compact nav bar: the large title collapses into it on scroll. */
    .nda-topbar { background: color-mix(in srgb, var(--nd-canvas) 86%, transparent); border-bottom-color: transparent; transition: border-color var(--nd-dur-2) var(--nd-ease); }
    .nda.is-scrolled .nda-topbar { border-bottom-color: var(--nd-line); }
    .nda-topbar__inner { position: relative; gap: 8px; padding: 0 8px; }
    .nda-crumbs { display: none; }
    .nda-topbar__title { position: absolute; left: 56px; right: 56px; display: block; overflow: hidden; color: var(--nd-ink); font: 650 16px/48px var(--nd-font); text-align: center; text-overflow: ellipsis; white-space: nowrap; opacity: 0; transform: translateY(4px); transition: opacity var(--nd-dur-2) var(--nd-ease), transform var(--nd-dur-2) var(--nd-ease); pointer-events: none; }
    .nda.is-scrolled .nda-topbar__title { opacity: 1; transform: none; }
    .nda-topbar__back { display: inline-grid; color: var(--nd-accent); }
    .nda-topbar__cta { display: none !important; }
    .nda-search { width: 44px; height: 44px; padding: 0; justify-content: center; border: 0; background: transparent; box-shadow: none; color: var(--nd-ink-2); }
    .nda-search .nda-kbd { display: none; }
    .nda-search__label { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; } /* keeps the icon button's name */
    .nda-search .nda-icon { width: 20px; height: 20px; }

    .nda .nda-main { padding: 4px 16px calc(var(--nda-tabbar-h) + var(--nda-safe-bottom) + 32px); }
    .nda-pagehead { margin-bottom: 20px; }
    .nda .nda-title { font-size: 30px; line-height: 1.12; letter-spacing: -0.03em; }
    .nda .nda-title--hero { font-size: 28px; }
    .nda-subtitle { font-size: 15px; }
    .nda-pagehead__actions { width: 100%; }
    .nda-block { margin-bottom: 28px; }

    .nda-task { gap: 12px; padding: 14px 16px; flex-wrap: wrap; }
    .nda-task__body { flex-basis: calc(100% - 48px); }
    .nda-task__title { white-space: normal; }
    .nda-task__cta { margin-left: 48px; }
    .nda-kpis, .nda-kpis[data-count="3"], .nda-kpis[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .nda-kpi { padding: 14px 16px; }
    .nda-kpi__value { font-size: 26px; }
    .nda-spark { width: 56px; height: 24px; }
    .nda-kpi__row { min-height: 30px; }
    .nda-timeline__item { padding: 14px 16px; gap: 12px; }
    .nda-timeline__actions { display: none; }
    .nda-feed__item { padding: 12px 16px; }
    .nda-onboard { grid-template-columns: 1fr; padding: 24px 20px; }
    .nda-onboard__art { display: none; }
    .nda-onboard .nd-btn { width: 100%; justify-content: center; }

    /* Events: table becomes a list of tappable cards. */
    .nda-toolbar { flex-direction: column; align-items: stretch; }
    .nda-toolbar__right { width: 100%; }
    .nda-toolbar__right .nda-field-search { flex: 1; }
    .nda .nda-field-search .nd-input { width: 100%; height: 44px; font-size: 16px; }
    .nda .nda-field-sort .nd-select { min-width: 0; width: 112px; height: 44px; font-size: 15px; padding-right: 28px; }
    .nda-segments { display: flex; width: 100%; }
    .nda .nda-segment { flex: 1 0 auto; justify-content: center; height: 34px; padding: 0 9px; gap: 4px; }
    .nda-tablecard { border: 0; background: transparent; box-shadow: none; overflow: visible; }
    .nda-table, .nda-table tbody { display: block; }
    .nda-table thead { display: none; }
    .nda-table tbody tr {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ev more" "status going";
        align-items: center; gap: 10px 12px; margin-bottom: 10px; padding: 14px 8px 14px 14px;
        border: 1px solid var(--nd-line); border-radius: 16px; background: var(--nd-surface); box-shadow: var(--nd-shadow-1);
    }
    .nda-table tbody tr:hover { background: var(--nd-surface); }
    .nda-table tbody tr:active { transform: var(--nda-press); }
    .nda-table td { display: block; padding: 0; border: 0; }
    .nda-table .nda-cell--check, .nda-table .nda-cell--date, .nda-table .nda-cell--num { display: none; }
    .nda-table .nda-cell--event { grid-area: ev; min-width: 0; }
    .nda-table .nda-cell--status { grid-area: status; width: auto; padding-left: 68px; }
    .nda-table .nda-cell--going { grid-area: going; width: auto; padding-right: 8px; text-align: right; }
    .nda-table .nda-cell--actions { grid-area: more; width: auto; align-self: start; }
    .nda-thumb { width: 56px; height: 56px; border-radius: 12px; }
    .nda-evcell { align-items: flex-start; gap: 12px; }
    .nda-evcell__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 16px; line-height: 1.3; }
    .nda-evcell__meta { flex-wrap: wrap; font-size: 13px; }
    .nda-evcell__date { display: inline; }
    .nda-evcell__date + .nda-evcell__place::before { content: "·"; margin-right: 6px; }
    .nda-capacity--compact { justify-items: end; }
    .nda-capacity__suffix { display: inline; }
    .nda-capacity--compact .nda-capacity__label { font-size: 13px; }
    .nda-rowactions { opacity: 1; }
    .nda-rowactions > :not(.nda-row__sheetbtn) { display: none; }
    .nda-row__sheetbtn { display: inline-grid; width: 40px; height: 40px; }
    .nda .nda-switch .nda-switch__track { width: 40px; height: 24px; }
    .nda .nda-switch .nda-switch__track::after { width: 20px; height: 20px; }
    .nda .nda-switch input:checked + .nda-switch__track::after { transform: translateX(16px); }
    .nda-bulkbar { display: none !important; }

    /* Drill-in: event detail pushes in full-screen with a back chevron. */
    .nda-drawer__scrim { display: none; }
    .nda-drawer__panel { width: 100vw; box-shadow: none; }
    .nda-drawer__head { min-height: 56px; padding: 6px 8px; padding-top: calc(6px + env(safe-area-inset-top, 0px) + var(--nda-overlay-top)); }
    .nda-drawer__back { display: inline-grid; width: 44px; height: 44px; color: var(--nd-accent); }
    .nda-drawer__back .nda-icon { width: 24px; height: 24px; }
    .nda-drawer__close { display: none; }
    .nda-drawer__heading { text-align: left; }
    .nda-drawer__edit { min-height: 40px; }
    .nda-drawer__body { padding: 16px 16px calc(32px + var(--nda-safe-bottom)); }
    .nda-dhero { flex-direction: column; }
    .nda-dhero__media { width: 100%; height: auto; aspect-ratio: 16 / 9; }
    .nda-dstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nda-dactions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nda-dactions__primary { min-height: 52px; }
    .nda-daction { grid-auto-flow: column; justify-content: start; gap: 10px; min-height: 52px; padding: 0 14px; font-size: 14px; }
    .nda-person { padding: 12px; }
    .nda-person__action { min-height: 40px; }
    .nda-qr { flex-direction: column; text-align: center; }
    .nda-qr__text { justify-items: center; }
    .nda-qr__canvas { width: 200px; height: 200px; }
    .nda-copyfield .nd-input { font-size: 15px; }

    /* Sheets instead of centred modals. */
    .nda-modal { align-items: end; padding: 0; }
    .nda-modal__panel { width: 100%; max-height: 92dvh; border-radius: 20px 20px 0 0; animation: nda-sheet-in var(--nd-dur-3) var(--nd-ease) both; }
    .nda-modal__panel .nda-sheet__grip { display: block; margin-top: 8px; }
    .nda-modal__head { padding: 4px 16px 0 20px; }
    .nda-modal__body { padding: 16px 20px; }
    .nda-modal__foot { padding: 12px 16px calc(12px + var(--nda-safe-bottom)); }
    .nda-modal__foot .nd-btn { flex: 1; justify-content: center; min-height: 48px; }
    .nda-palette__panel { margin-top: calc(12px + env(safe-area-inset-top, 0px)); }

    /* Create flow: focused, no tab bar, actions in the thumb zone. */
    .nda.is-submit .nda-tabbar { display: none; }
    .nda-stepper { display: none; }
    .nda-stepper-mobile { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: -8px 0 16px; color: var(--nd-ink); font: 600 14px/1.2 var(--nd-font); }
    .nda-stepper-mobile__count { color: var(--nd-muted); font-weight: 550; }
    .nda-stepper-mobile__bar { grid-column: 1 / -1; height: 4px; overflow: hidden; border-radius: 999px; background: var(--nd-surface-2); box-shadow: inset 0 0 0 1px var(--nd-line); }
    .nda-stepper-mobile__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--nd-accent); transition: width var(--nd-dur-3) var(--nd-ease); }
    .nda-formcard__head { padding: 20px 16px 0; }
    .nda-formcard__body { padding: 20px 16px; gap: 20px; }
    .nda-when, .nda-grid-2 { grid-template-columns: 1fr; }
    .nda .nd-input, .nda .nd-select, .nda .nd-textarea { font-size: 16px; min-height: 44px; }
    .nda-modeswitch { display: flex; width: 100%; }
    .nda-modeswitch > button { flex: 1; justify-content: center; height: 40px; }
    .nda-actionbar { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px 16px calc(10px + var(--nda-safe-bottom)); }
    .nda.is-submit .nda-main { padding-bottom: calc(96px + var(--nda-safe-bottom)); }
    .nda-actionbar__status { display: none; }
    .nda-actionbar__buttons { width: 100%; margin: 0; }
    .nda-actionbar__buttons .nd-btn { flex: 1; justify-content: center; min-height: 48px; padding: 0 12px; }
    .nda-actionbar__preview, .nda-actionbar__prev, .nda-actionbar__draft { display: none !important; }
    .nda .nda-topbar__draft:not([style*="none"]) { display: inline-flex !important; align-items: center; height: 44px; margin: 0; padding: 0 8px; border: 0; background: none; box-shadow: none; color: var(--nd-accent); font: 600 15px/1 var(--nd-font); cursor: pointer; }

    /* Inbox */
    .nda-inbox { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - var(--nda-sticky-top) - var(--nda-topbar-h) - var(--nda-tabbar-h) - var(--nda-safe-bottom) - 170px); min-height: 440px; }
    .nda-inbox__list { border-right: 0; }
    .nda-inbox .is-hidden-mobile { display: none; }
    .nda-inbox__back { display: inline-flex; }
    .nda-msg__bubble { max-width: 88%; }
    .nda-thread { min-height: 64px; align-items: center; }

    .nda-plan { padding: 16px; }
    .nda-plan__actions { padding-left: 0; }
    .nda-plan__actions .nd-btn { min-height: 40px; }
    .nda-settings .nda-formcard__head { padding: 16px; }
    .nda-savebar { bottom: calc(var(--nd-bottom-stack) + 12px); }
    .nda-savebar:not(.is-dirty) { display: none; }
    .nda-savebar .nd-btn { flex: 1; justify-content: center; min-height: 44px; }

    /* Check-in on phones */
    .nda-checkin__head { padding-left: 8px; padding-right: 16px; }
    .nda-checkin__search { padding: 12px 16px 8px; }
    .nda-checkin__search > .nda-icon { left: 32px; top: 27px; }
    .nda-checkin__list { padding: 8px 16px calc(96px + var(--nda-safe-bottom)); }

    /* Tab bar */
    .nda-tabbar {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
        display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch;
        height: calc(var(--nda-tabbar-h) + var(--nda-safe-bottom)); padding-bottom: var(--nda-safe-bottom);
        border-top: 1px solid var(--nd-line);
        background: color-mix(in srgb, var(--nd-surface) 88%, transparent);
        -webkit-backdrop-filter: saturate(1.8) blur(18px); backdrop-filter: saturate(1.8) blur(18px);
    }
    .nda .nda-tabbar__item { margin: 0; padding: 0; min-height: 0; box-shadow: none; letter-spacing: 0; text-transform: none; border-radius: 0;
        display: grid; place-items: center; align-content: center; gap: 3px; min-width: 0; border: 0; background: none; color: var(--nd-muted); font: 600 12px/1.1 var(--nd-font) !important; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
    .nda .nda-tabbar__item.is-active { color: var(--nd-accent); }
    .nda-tabbar__item:active, .nda-tabbar__create:active { transform: var(--nda-press); }
    .nda-tabbar__icon { position: relative; display: grid; place-items: center; }
    .nda-tabbar__icon .nda-icon { width: 24px; height: 24px; }
    .nda-tabbar__label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nda-tabbar__badge { position: absolute; top: -4px; left: 14px; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid var(--nd-surface); border-radius: 999px; background: var(--nd-danger); color: var(--nd-on-dark); font: 700 12px/14px var(--nd-font); text-align: center; }
    .nda-tabbar__create { display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
    .nda-tabbar__fab { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -18px; border-radius: 18px; background: var(--nd-accent); color: var(--nd-on-accent); box-shadow: 0 10px 24px -8px rgba(var(--nd-accent-rgb), 0.7), 0 0 0 4px var(--nd-surface); transition: transform var(--nd-dur-2) var(--nd-ease-spring); }
    .nda-tabbar__fab .nda-icon { width: 26px; height: 26px; stroke-width: 2.25; }

    /* Press states */
    .nda :is(.nd-btn, .nda-segment, .nda-kpi, .nda-daction, .nda-sheet__action, .nda-sheet__link, .nda-task__cta):active { transform: var(--nda-press); }
    .nda-kpi:hover { transform: none; }

    /* One bottom bar only: the workspace bar replaces the site's quick-nav bar here. */
    body:has(.nda) .ndn-tabbar { display: none !important; }
    body:has(.nda) .ndn-footer { display: none !important; }

    /* Site footer would sit under the fixed tab bar: give it room. */
    body:has(.nda) .nexdirectory-platform-footer, body:has(.nda) footer.wp-block-template-part { padding-bottom: calc(var(--nda-tabbar-h) + var(--nda-safe-bottom)); }
}

/* WordPress un-fixes its admin bar below 600px, so only the site nav stays sticky. */
@media (max-width: 600px) {
    .nda { --nda-sticky-top: var(--nd-nav-height, 64px); --nda-overlay-top: 0px; }
}

@media (max-width: 340px) {
    .nda-kpis { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (prefers-reduced-motion: reduce) {
    .nda *, .nda *::before, .nda *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

/* One create action per screen: the workspace owns "Create event" (sidebar on desktop,
   floating + on phones), so the site nav's Add button and the top-bar duplicate are hidden here. */
body:has(.nda) .ndn-cta--add { display: none !important; }
@media (min-width: 1024px) {
    .nda-topbar__cta { display: none; }
}

/* ===========================================================================
 * Pass 3 — the workspace is a focused app: one bar, not two.
 * The site nav (and its mobile tab bar) is hidden here; the sidebar carries the
 * brand + way home, the top bar carries notifications and the account menu.
 * ========================================================================= */
/* Every workspace route (account, my listings, submit): one app chrome. Owners can keep the
   site header with the `nexdirectory_workspace_use_theme_header` filter (adds data-nda-theme-header). */
body:has(.nda:not([data-nda-theme-header])) .nexdirectory-platform-nav,
body:has(.nda:not([data-nda-theme-header])) .nexdirectory-platform-footer { display: none !important; }
body:has(.nda:not([data-nda-theme-header])) {
    --nd-nav-height: 0px;
    --nd-sticky-top: var(--wp-admin--admin-bar--height, 0px);
}
html.ndn-has-tabbar body:has(.nda) { padding-bottom: 0; }
@media (max-width: 600px) {
    /* WordPress un-fixes its admin bar below 600px. */
    body:has(.nda:not([data-nda-theme-header])) { --nd-sticky-top: 0px; }
    .nda:not([data-nda-theme-header]) { --nda-sticky-top: 0px; }
}

/* Brand block (top of sidebar) */
.nda-brand { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; padding: 6px 8px 6px 4px; margin-left: -4px; border-radius: 10px; color: var(--nd-ink); text-decoration: none; transition: background var(--nd-dur-1) var(--nd-ease); }
.nda-brand:hover { background: var(--nd-surface-2); }
.nda-brand:active { transform: var(--nda-press); }
.nda-brand:focus-visible, .nda-usermenu__trigger:focus-visible { outline: none; box-shadow: var(--nd-ring); }
.nda-brand__mark { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; overflow: hidden; border-radius: 9px; background: var(--nd-ink); color: var(--nd-on-dark); font: 700 15px/1 var(--nd-font); }
.nda-brand__mark img { width: 100%; height: 100%; object-fit: contain; background: var(--nd-surface); }
.nda-brand__text { display: grid; min-width: 0; gap: 2px; }
.nda-brand__name { overflow: hidden; font: 650 14px/1.25 var(--nd-font); letter-spacing: -0.01em; text-overflow: ellipsis; white-space: nowrap; }
.nda-brand__back { display: inline-flex; align-items: center; gap: 4px; color: var(--nd-muted); font: 500 12px/1.2 var(--nd-font); }
.nda-brand__back .nda-icon { width: 12px; height: 12px; }
.nda-brand:hover .nda-brand__back { color: var(--nd-accent); }
.nda.is-rail .nda-brand { flex: none; margin: 0; padding: 0; }
.nda.is-rail .nda-brand__text { display: none; }
.nda.is-rail .nda-sidebar__top { flex-direction: column; justify-content: center; gap: 4px; height: auto; min-height: var(--nda-topbar-h); padding: 10px 0; }
@media (min-width: 768px) and (max-width: 1023.98px) {
    .nda .nda-brand { flex: none; margin: 0; padding: 0; }
    .nda .nda-brand__text { display: none; }
}

/* Top bar: notifications + account menu */
.nda-topbar__brand { display: none; }
.nda-bellslot { display: none; position: relative; }
.nda-bellslot.has-bell { display: block; }
.nda-bellslot .ndn-icon-btn {
    position: relative; display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
    border: 0; border-radius: 10px; background: transparent; color: var(--nd-ink-2); cursor: pointer;
    transition: background var(--nd-dur-1) var(--nd-ease), color var(--nd-dur-1) var(--nd-ease);
}
.nda-bellslot .ndn-icon-btn:hover, .nda-bellslot .ndn-icon-btn[aria-expanded="true"] { background: var(--nd-surface-2); color: var(--nd-ink); }
.nda-bellslot .ndn-icon-btn:active { transform: var(--nda-press); }
.nda-bellslot .ndn-icon-btn:focus-visible { outline: none; box-shadow: var(--nd-ring); }
.nda-bellslot .ndn-icon { width: 20px; height: 20px; }
.nda-bellslot .ndn-bell__count { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid var(--nd-surface); border-radius: 999px; background: var(--nd-accent); color: var(--nd-on-accent); font: 700 12px/14px var(--nd-font); text-align: center; }
.nda-bellslot .ndn-bell__count[hidden] { display: none; }
.nda-bellslot .ndn-bell__panel { position: absolute; z-index: 60; top: calc(100% + 8px); right: -8px; width: min(384px, calc(100vw - 24px)); border: 1px solid var(--nd-line); border-radius: var(--nd-radius-lg); background: var(--nd-surface); box-shadow: var(--nd-shadow-4); transform-origin: top right; animation: nd-pop var(--nd-dur-2) var(--nd-ease); }
.nda-bellslot .ndn-bell__panel[hidden] { display: none; }
.nda-bellslot .ndn-bell__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--nd-line); }
.nda-bellslot .ndn-bell__eyebrow { margin: 0; color: var(--nd-muted); font: 500 12px/1.3 var(--nd-font); }
.nda-bellslot .ndn-bell__title { margin: 2px 0 0; color: var(--nd-ink); font: 650 16px/1.3 var(--nd-font); letter-spacing: -0.01em; }
.nda-bellslot .ndn-bell__list { max-height: min(60vh, 420px); overflow-y: auto; }
.nda-bellslot .ndn-bell__footer { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-top: 1px solid var(--nd-line); color: var(--nd-accent); font: 600 13px/1.2 var(--nd-font); text-decoration: none; }
.nda-bellslot .ndn-bell__footer:hover { background: var(--nd-accent-soft); }
.nda-bellslot .ndn-bell__footer .ndn-icon { width: 16px; height: 16px; }

.nda-usermenu { flex: none; }
.nda-usermenu__trigger { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; transition: box-shadow var(--nd-dur-1) var(--nd-ease); }
.nda-usermenu__trigger .nda-avatar { width: 32px; height: 32px; font-size: 13px; }
.nda-usermenu__trigger:hover, .nda-usermenu[open] .nda-usermenu__trigger { box-shadow: 0 0 0 3px var(--nd-line); }
.nda-usermenu__panel { min-width: 240px; }
.nda-usermenu__head { display: grid; gap: 2px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--nd-line); }
.nda-usermenu__panel .nd-menu__item { text-decoration: none; }
.nda-usermenu__panel .nd-menu__item .nda-icon { width: 16px; height: 16px; color: var(--nd-muted); }

@media (max-width: 767.98px) {
    /* Phone app bar: brand (way home) left, large title collapses in on scroll, search + bell + avatar right. */
    .nda-crumbs { display: flex; }
    .nda-crumbs__root, .nda-crumbs__sep, .nda-crumbs__current { display: none; }
    .nda-topbar__brand { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; }
    .nda-topbar__brand .nda-brand__mark { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }
    .nda.is-submit .nda-topbar__brand { display: none; }
    .nda-topbar__actions { margin-left: auto; gap: 0; }
    .nda-bellslot .ndn-icon-btn, .nda-usermenu__trigger { width: 44px; height: 44px; }
    .nda-bellslot .ndn-bell__panel { position: fixed; top: calc(var(--nda-topbar-h) + 8px); right: 12px; left: 12px; width: auto; }
}

/* ---------------------------------------------------------------------------
 * Pass 3 — type-specific create step (jobs, marketplace, places)
 * ------------------------------------------------------------------------- */
.nda-submit__form[data-step="specifics"] [data-nda-step="specifics"] { display: block; animation: nda-enter var(--nd-dur-3) var(--nd-ease) both; }
.nda-typefields { display: grid; gap: 32px; }
.nda-typegroup + .nda-typegroup { padding-top: 32px; border-top: 1px solid var(--nd-line); }
.nda-typegroup__title { padding: 0; color: var(--nd-ink); font: 650 16px/1.3 var(--nd-font); letter-spacing: -0.01em; }
.nda .nda-typegroup__sub { margin: -6px 0 0; }
.nda-typegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.nda-field--wide { grid-column: 1 / -1; }
.nda-optional { color: var(--nd-muted); font-weight: 450; }
.nda-toggleline { min-height: 44px; }
.nda-chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.nda-chipcheck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nda-chipcheck span { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--nd-line-strong); border-radius: 999px; background: var(--nd-surface); color: var(--nd-ink-2); font: 550 14px/1 var(--nd-font); cursor: pointer; transition: background var(--nd-dur-1) var(--nd-ease), border-color var(--nd-dur-1) var(--nd-ease), color var(--nd-dur-1) var(--nd-ease); }
.nda-chipcheck span .nda-icon { display: none; width: 14px; height: 14px; }
.nda-chipcheck span:hover { border-color: var(--nd-ink-2); }
.nda-chipcheck input:checked + span { border-color: var(--nd-accent); background: var(--nd-accent-soft); color: var(--nd-accent-ink); }
.nda-chipcheck input:checked + span .nda-icon { display: inline-block; }
.nda-chipcheck input:focus-visible + span { box-shadow: var(--nd-ring); }
.nda-seg { flex-wrap: wrap; }
.nda-seg > button { min-width: 52px; font-variant-numeric: tabular-nums; }
.nda-hours { display: grid; gap: 12px; }
.nda-hours__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.nda .nda-chipbtn { border-radius: 999px; }
.nda-hours__days { display: grid; margin: 0; padding: 0; border: 1px solid var(--nd-line); border-radius: var(--nd-radius-lg); list-style: none; overflow: hidden; }
.nda-hours__day { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 16px; background: var(--nd-surface); }
.nda-hours__day + .nda-hours__day { border-top: 1px solid var(--nd-line); }
.nda-hours__day.is-closed { background: var(--nd-surface-2); }
.nda-hours__toggle { min-height: 40px; }
.nda-hours__toggle strong { font-weight: 600; }
.nda-hours__ranges { display: grid; gap: 8px; justify-items: start; }
.nda-hours__range { display: flex; align-items: center; gap: 8px; color: var(--nd-muted); }
.nda .nda-hours__time { width: 128px; min-height: 40px; font-variant-numeric: tabular-nums; }
.nda-hours__add { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-size: 13px; }
.nda-hours__closed { align-self: center; color: var(--nd-muted); font-size: 14px; }
@media (max-width: 767.98px) {
    .nda-typegrid { grid-template-columns: minmax(0, 1fr); }
    .nda-hours__day { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 12px; }
    .nda .nda-hours__time { width: 112px; }
}
.nda-bellslot .ndn-icon-btn { min-height: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.nda-bellslot .ndn-icon-btn:hover, .nda-bellslot .ndn-icon-btn[aria-expanded="true"] { background: var(--nd-surface-2) !important; }
.nda-dstats--two { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.nda-thumb--lg { width: 52px; height: 52px; flex: none; border-radius: 12px; }
.nda-capacity--metric .nda-capacity__label { color: var(--nd-ink-2); }
.nda-typegroup__title { float: left; width: 100%; margin: 0 0 4px; }
.nda-typegroup__title + * { clear: both; }
.nda .nda-typegroup__sub { margin: 0 0 4px; }
.nda-typegroup { gap: 12px; }
.nda-hours__ranges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.nda-hours__day { align-items: center; padding: 10px 16px; }
.nda-savedlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.nda-saveditem { display: flex; align-items: center; gap: 8px; padding: 12px 8px 12px 12px; transition: box-shadow var(--nd-dur-3) var(--nd-ease), transform var(--nd-dur-3) var(--nd-ease); }
.nda-saveditem:hover { transform: translateY(-2px); box-shadow: var(--nd-shadow-3); }
.nda-saveditem__link { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; color: inherit; text-decoration: none; }
.nda-saveditem__text { display: grid; gap: 2px; min-width: 0; }
.nda-saveditem__title { overflow: hidden; color: var(--nd-ink); font: 600 15px/1.35 var(--nd-font); text-overflow: ellipsis; white-space: nowrap; }
.nda-saveditem__meta { overflow: hidden; color: var(--nd-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.nda-saveditem__remove { width: 44px; height: 44px; color: var(--nd-accent); }
.nda-saveditem__remove:hover { background: var(--nd-accent-soft); }
.nda-thumb--lg { display: inline-grid; place-items: center; overflow: hidden; background: var(--nd-surface-2); color: var(--nd-muted); }
.nda-thumb--lg img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .nda-saveditem:hover { transform: none; } }

/* Collapsed sidebar (rail): hide text visually but keep it as the links' accessible names. */
.nda.is-rail :is(.nda-navlink__label, .nda-createbtn__label, .nda-brand__text, .nda-usercard__text) {
    display: block !important; position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
@media (min-width: 768px) and (max-width: 1023.98px) {
    .nda :is(.nda-navlink__label, .nda-createbtn__label, .nda-brand__text, .nda-usercard__text) {
        display: block !important; position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
    }
}

/* ===========================================================================
 * 1.6 polish (WP5): submit wizard — errors, save state, phone chrome.
 * ========================================================================= */
.nda-submit__errors:empty { display: none; }
.nda-submit__errors .nd-error-summary { margin: 0 0 16px; }
.nda-submit__form :is(input, select, textarea, .nd-input-group) { scroll-margin-top: calc(var(--nd-sticky-top, 0px) + var(--nda-topbar-h, 56px) + 16px); scroll-margin-bottom: calc(96px + var(--nda-safe-bottom, 0px)); }
.nda-submit__form .nd-input-group.is-invalid,
.nda-submit__form .nd-input-group:has(.nexdirectory-field-invalid) { border-color: var(--nd-danger); }
.nda-submit__form .nd-input-group .nd-input-group__field.nexdirectory-field-invalid { border: 0; box-shadow: none; }
.nda-submit__form .nd-input-group { width: 100%; }
.nda-savepill { display: none; }
.nda-actionbar__continue { display: none; }
.nda-checklist__sub { margin: 20px 0 4px; color: var(--nd-muted); font: 600 13px/1.4 var(--nd-font); }
.nda-checklist--soft li:not(.is-ok) .nda-checklist__mark { border-style: solid; border-color: var(--nd-line); }
.nda-fieldset .nda-place > div:first-child { margin-top: 0; }

@media (max-width: 767.98px) {
    /* Topbar on the create flow: back · "New item · 2/4" · Save draft. Search and bell wait. */
    .nda.is-submit .nda-search,
    .nda.is-submit .nda-bellslot,
    .nda.is-submit .nda-usermenu { display: none !important; }
    .nda.is-submit .nda-topbar__title { opacity: 1; transform: none; font-size: 16px; font-weight: 600; }
    .nda.is-submit .nda-topbar__actions { margin-left: auto; }
    .nda .nda-topbar__draft:not([style*="none"]) { min-height: 44px; padding: 0 12px; border-radius: var(--nd-radius-pill); }
    .nda .nda-topbar__draft:not([style*="none"]):hover { background: var(--nd-accent-soft); }
    .nda .nda-topbar__draft:not([style*="none"]):focus-visible { outline: none; box-shadow: var(--nd-ring); }

    /* "Saved · 12:04" under the stepper. */
    .nda-savepill { display: inline-flex; align-items: center; gap: 8px; margin: -4px 0 12px; padding: 4px 12px 4px 10px; border-radius: var(--nd-radius-pill); background: var(--nd-surface-2); color: var(--nd-muted); font: 500 13px/1.4 var(--nd-font); }

    /* Action bar: [‹ 44px] [Continue | Publish listing]. */
    .nda-actionbar__buttons { gap: 8px; }
    .nda .nda-actionbar__prev:not([style*="none"]) { display: inline-grid !important; place-items: center; flex: 0 0 48px; width: 48px; padding: 0; }
    .nda-actionbar__prev > span { display: none; }
    .nda-actionbar__nextlabel { display: none; }
    .nda-actionbar__continue { display: inline; }
    .nda-submit__form:not([data-final="1"]) .nda-actionbar__publish { display: none; }
}
/* Inline field errors from nexdirectoryFieldError(): shown whenever they are not [hidden]
   (screens.css only reveals them next to a plain .nd-input). */
.nda .nd-field-error:not([hidden]) { display: flex; }

/* Toasts clear the workspace's own bottom bars (the site tab bar is hidden here). */
/* Submit: toasts clear the wizard's action bar (a sticky bar, so it lifts the toast like the single's CTA bar). */
html:has(.nda.is-submit) { --nd-toast-lift: calc(var(--nda-actionbar-h, 68px) + 8px); }
@media (max-width: 767.98px) {
    /* The workspace tab bar is part of the bottom stack (WP0 --nd-bottom-stack), like the site tab bar. */
    html:has(.nda:not(.is-submit)) { --nd-bottom-stack: calc(var(--nd-tabbar-h) + var(--nd-safe-bottom)); }
    html:has(.nda.is-submit) { --nd-bottom-stack: var(--nd-safe-bottom); }
    /* Tab bar and + hide only while a text field has focus (never for the whole dirty state). */
    .nda:has(:is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="button"]):not([type="submit"]), textarea, select, [contenteditable="true"]):focus) .nda-tabbar { transform: translateY(110%); pointer-events: none; }
    .nda-tabbar { transition: transform var(--nd-dur-2) var(--nd-ease); }
    /* While typing the tab bar tucks away, so the stack drops to the safe area (save bar and toasts follow). */
    html:has(.nda:not(.is-submit) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="button"]):not([type="submit"]), textarea, select, [contenteditable="true"]):focus) { --nd-bottom-stack: var(--nd-safe-bottom); }
    /* Slim save bar (56px) that follows the tab bar down while typing. */
    .nda-savebar { min-height: 56px; padding: 6px 6px 6px 16px; gap: 8px; flex-wrap: nowrap; transition: bottom var(--nd-dur-2) var(--nd-ease); }
    .nda-savebar .nd-btn { flex: 0 0 auto; min-height: 44px; }
    .nda-savebar__status { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nda:has(:is(input:not([type="checkbox"]):not([type="radio"]), textarea, select):focus) .nda-savebar { bottom: calc(var(--nd-bottom-stack) + 8px); }
    .nda-settings__form :is(input, textarea, select) { scroll-margin-bottom: calc(var(--nd-bottom-stack) + 80px); scroll-margin-top: 72px; }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    /* Listings: the table becomes tappable cards below 1024 (two columns on tablets). */
    .nda-toolbar { flex-direction: column; align-items: stretch; }
    .nda-toolbar__right { width: 100%; }
    .nda-toolbar__right .nda-field-search { flex: 1; }
    .nda .nda-field-search .nd-input { width: 100%; height: 44px; font-size: 16px; }
    .nda .nda-field-sort .nd-select { min-width: 0; width: 112px; height: 44px; font-size: 15px; padding-right: 28px; }
    .nda-segments { display: flex; width: 100%; }
    .nda .nda-segment { flex: 1 0 auto; justify-content: center; height: 34px; padding: 0 9px; gap: 4px; }
    .nda-tablecard { border: 0; background: transparent; box-shadow: none; overflow: visible; }
    .nda-table, .nda-table tbody { display: block; }
    .nda-table thead { display: none; }
    .nda-table tbody tr {
        display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ev more" "status going";
        align-items: center; gap: 10px 12px; margin-bottom: 10px; padding: 14px 8px 14px 14px;
        border: 1px solid var(--nd-line); border-radius: 16px; background: var(--nd-surface); box-shadow: var(--nd-shadow-1);
    }
    .nda-table tbody tr:hover { background: var(--nd-surface); }
    .nda-table tbody tr:active { transform: var(--nda-press); }
    .nda-table td { display: block; padding: 0; border: 0; }
    .nda-table .nda-cell--check, .nda-table .nda-cell--date, .nda-table .nda-cell--num { display: none; }
    .nda-table .nda-cell--event { grid-area: ev; min-width: 0; }
    .nda-table .nda-cell--status { grid-area: status; width: auto; padding-left: 68px; }
    .nda-table .nda-cell--going { grid-area: going; width: auto; padding-right: 8px; text-align: right; }
    .nda-table .nda-cell--actions { grid-area: more; width: auto; align-self: start; }
    .nda-thumb { width: 56px; height: 56px; border-radius: 12px; }
    .nda-evcell { align-items: flex-start; gap: 12px; }
    .nda-evcell__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 16px; line-height: 1.3; }
    .nda-evcell__meta { flex-wrap: wrap; font-size: 13px; }
    .nda-evcell__date { display: inline; }
    .nda-evcell__date + .nda-evcell__place::before { content: "·"; margin-right: 6px; }
    .nda-capacity--compact { justify-items: end; }
    .nda-capacity__suffix { display: inline; }
    .nda-capacity--compact .nda-capacity__label { font-size: 13px; }
    .nda-rowactions { opacity: 1; }
    .nda-rowactions > :not(.nda-row__sheetbtn) { display: none; }
    .nda-row__sheetbtn { display: inline-grid; width: 40px; height: 40px; }
    .nda .nda-switch .nda-switch__track { width: 40px; height: 24px; }
    .nda .nda-switch .nda-switch__track::after { width: 20px; height: 20px; }
    .nda .nda-switch input:checked + .nda-switch__track::after { transform: translateX(16px); }
    .nda-bulkbar { display: none !important; }
    .nda-table tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .nda-table tbody tr { margin-bottom: 0; }
    .nda-table tbody tr[hidden] { display: none; }
    .nda-toolbar { flex-direction: row; flex-wrap: wrap; }
    .nda-segments { width: auto; }
}

/* Listings: registry columns, "Show more", one bottom bar. */
body:has(.nda) .ndn-tabbar { display: none !important; }
.nda-table .nda-cell--listed { width: 88px; white-space: nowrap; color: var(--nd-muted); }
.nda-table .nda-cell--date { white-space: nowrap; }
@media (min-width: 1024px) { .nda-capacity__suffix { display: none; } }
.nda-more { display: flex; justify-content: center; margin: 16px 0 0; }
.nda-more .nd-btn { min-height: 44px; padding: 0 20px; border: 1px solid var(--nd-line); background: var(--nd-surface); box-shadow: var(--nd-shadow-1); }
.nda-more__count { color: var(--nd-muted); font-weight: 500; }
@media (max-width: 1023.98px) {
    .nda-table .nda-cell--listed { display: none; }
    .nda-capacity__suffix { display: inline; color: var(--nd-muted); font-weight: 500; }
}

/* Row action sheet: left-aligned rows with icons; a divider before Move to trash. */
.nda .nda-sheet__actions .nda-sheet__action { display: flex; align-items: center; gap: 12px; padding: 0 16px; color: var(--nd-ink); font: 500 16px/1.2 var(--nd-font); text-align: left; }
.nda .nda-sheet__actions .nda-sheet__action .nda-sheet__icon { display: inline-grid; place-items: center; width: 24px; height: 24px; color: var(--nd-muted); }
.nda .nda-sheet__actions .nda-sheet__action .nda-sheet__icon svg { width: 20px; height: 20px; }
.nda .nda-sheet__actions .nda-sheet__action.is-danger,
.nda .nda-sheet__actions .nda-sheet__action.is-danger .nda-sheet__icon { color: var(--nd-danger-ink, var(--nd-danger)); }
.nda .nda-sheet__actions li.has-sep { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--nd-line); }
.nda-activity__head { display: flex; justify-content: flex-end; margin: 0 0 12px; }
/* Phone: the avatar opens the More sheet (one account entry point). */
.nda-topbar__me { display: none; padding: 0; border: 0; background: none; cursor: pointer; }
@media (max-width: 767.98px) {
    .nda-topbar__me { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
    .nda-topbar__me:focus-visible { outline: none; box-shadow: var(--nd-ring); }
    .nda-topbar .nda-usermenu { display: none; }
    .nda.is-submit .nda-topbar__me { display: none; }
}

/* Settings: sub-tabs, password field with eye toggle and strength meter. */
.nda-settings__tabs { margin: 0 0 16px; }
.nda-passfield { display: grid; gap: 8px; }
.nda-passfield .nd-input-group { width: 100%; }
.nda-passfield__eye { border: 0; background: none; color: var(--nd-muted); cursor: pointer; min-width: 44px; justify-content: center; }
.nda-passfield__eye:hover { color: var(--nd-ink); }
.nda-passfield__eye svg { width: 18px; height: 18px; }
.nda-strength { display: flex; align-items: center; gap: 12px; }
.nda-strength__bar { display: grid; flex: 1; grid-template-columns: repeat(4, 1fr); gap: 4px; max-width: 200px; }
.nda-strength__bar > span { height: 4px; border-radius: var(--nd-radius-pill); background: var(--nd-line); transition: background-color var(--nd-dur-2) var(--nd-ease); }
.nda-strength[data-score="1"] .nda-strength__bar > span:nth-child(-n+1) { background: var(--nd-danger); }
.nda-strength[data-score="2"] .nda-strength__bar > span:nth-child(-n+2) { background: var(--nd-warning); }
.nda-strength[data-score="3"] .nda-strength__bar > span:nth-child(-n+3) { background: var(--nd-success); }
.nda-strength[data-score="4"] .nda-strength__bar > span { background: var(--nd-success); }
.nda-strength__label { color: var(--nd-muted); font: 500 13px/1.4 var(--nd-font); }
.nda-settings__tabs { display: inline-flex; width: auto; max-width: 100%; }
/* One save bar, shown only while the form has unsaved changes. */
.nda-savebar:not(.is-dirty) { display: none; }
@media (max-width: 767.98px) { .nda-settings__tabs { display: flex; width: 100%; } .nda-settings__tabs > * { flex: 1; } }
.nda-tab-short { display: none; }
@media (max-width: 479.98px) { .nda-tab-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; } .nda-tab-short { display: inline; } }
.nda-backlink { flex: none; gap: 6px; margin-right: 8px; }
.nda-backlink .nda-icon { width: 16px; height: 16px; }
@media (max-width: 767.98px) { .nda-backlink > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); } .nda-backlink { width: 44px; height: 44px; padding: 0; justify-content: center; } }
.nda .nexdirectory-notification-center--page .nda-activity__head { display: flex; justify-content: flex-end; align-items: center; min-height: 0; margin: 0; padding: 8px 12px; border-bottom: 1px solid var(--nd-line); }
.nda .nexdirectory-notification-center--page .nda-activity__head .nd-btn { min-height: 40px; }
/* Messages: an empty inbox is sized to its content (no tall blank panel). */
.nda-inbox:has(.nda-inbox__empty) { height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr); }
.nda-inbox:has(.nda-inbox__empty) .nda-inbox__panel { display: none; }
.nda-inbox__empty .nd-btn { margin-top: 8px; }
/* Phone save bar: never wider than the column it sits in. */
.nda-settings, .nda-settings__form { min-width: 0; }
.nda-savebar { max-width: 100%; box-sizing: border-box; }
@media (max-width: 767.98px) {
    .nda-savebar__status { overflow: hidden; }
    .nda-savebar__dirty { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nda-savebar .nd-btn { padding: 0 14px; }
}
.nda .nda-settings > *, .nda .nda-settings__form { min-width: 0; max-width: 100%; }
.nda .nda-savebar__status { flex: 1 1 0; min-width: 0; }
.nda .nda-settings__form > * { min-width: 0; }

/* ---------------------------------------------------------------------------
 * 1.6 round 2 (R2-B): listings toolbar below 1024px. The Sort select sizes to its
 * label with its own chevron, so "Newest" / "Recently edited" are never cut off.
 * ------------------------------------------------------------------------- */
@media (max-width: 1023.98px) {
    .nda .nda-field-sort { position: relative; flex: none; }
    .nda .nda-field-sort .nd-select { -webkit-appearance: none; appearance: none; width: auto; min-width: 124px; max-width: 46vw; height: 44px; padding: 0 36px 0 14px; background-image: none; font-size: 15px; text-overflow: ellipsis; field-sizing: content; }
    .nda .nda-field-sort::after { content: ""; position: absolute; top: 50%; right: 15px; width: 7px; height: 7px; border: solid var(--nd-muted); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
    .nda .nda-toolbar__right .nda-field-search { flex: 1 1 auto; min-width: 0; }
}

/* Submit preview: the neutral media fallback (no accent wash) until a cover is chosen. */
.nda-preview__media { background: var(--nd-surface-2); color: var(--nd-subtle); }
.nda-preview__media .nd-media-fallback { position: absolute; inset: 0; border-radius: 0; }
.nda-preview__placeholder svg { opacity: 1; }
.nda-thumb .nd-media-fallback { border-radius: inherit; }

/* Phone submit chrome (R2-B): title and step count once, solid Continue, accent ghost Save draft. */
@media (max-width: 767.98px) {
    .nda.is-submit .nda-pagehead--wizard { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .nda.is-submit .nda-stepper-mobile { margin-top: 8px; }
    .nda.is-submit .nda-stepper-mobile__count { display: none; }
    /* Continue is the one primary action on a phone (the .nd-btn colour API). */
    .nda .nda-actionbar__next { --_bg: var(--nd-accent); --_fg: var(--nd-on-accent); --_bd: transparent; --_bg-h: var(--nd-accent-hover); box-shadow: var(--nd-shadow-1); }
    .nda .nda-actionbar__next:focus-visible { outline: none; box-shadow: var(--nd-ring); }
    /* Save draft: accent ghost pill in the top bar. */
    .nda .nda-topbar__draft.nd-btn:not([style*="none"]) { --_bg: transparent; --_fg: var(--nd-accent-ink); --_bd: var(--nd-accent-line); --_bg-h: var(--nd-accent-soft); min-height: 36px; height: 36px; margin: 0; border: 1px solid var(--_bd); padding: 0 14px; border-radius: var(--nd-radius-pill); box-shadow: none; font: var(--nd-fw-semibold) var(--nd-fs-14)/1 var(--nd-font); }
}

/* Desktop submit: the action bar spans the whole content column, edge to edge. */
@media (min-width: 1024px) {
    .nda-submit__form { grid-template-columns: minmax(0, 720px) minmax(260px, 320px) minmax(0, 1fr); }
}

/* Cover photo on the shared .nd-dropzone (R2-B). */
.nda-coverzone { min-height: 180px; align-content: center; overflow: hidden; cursor: pointer; }
.nda-coverzone__empty { display: grid; justify-items: center; gap: 6px; }
.nda-coverzone.has-image { aspect-ratio: 16 / 9; min-height: 0; padding: 0; border-style: solid; border-color: var(--nd-line); cursor: default; }
.nda-coverzone .nda-dropzone__change { border: 0; cursor: pointer; min-height: 32px; }
.nda-coverzone .nda-dropzone__change:focus-visible,
.nda-coverzone .nda-dropzone__remove:focus-visible { outline: 2px solid var(--nd-on-dark); outline-offset: 2px; }

/* Profile photo picker on the shared .nd-dropzone--avatar (R2-B). */
.nda-avatarpick { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.nda-avatarpick .nd-dropzone--avatar { flex: none; width: 88px; height: 88px; cursor: pointer; background: var(--nd-surface-2); }
.nda-avatarpick .nd-dropzone--avatar.has-file { border-style: solid; border-color: var(--nd-line); }
.nda-avatarpick__initial { color: var(--nd-ink-2); font: var(--nd-fw-semibold) var(--nd-fs-24)/1 var(--nd-font); }
.nda-avatarpick__busy { position: absolute; inset: 0; display: none; border-radius: 50%; background: color-mix(in srgb, var(--nd-surface) 70%, transparent); }
.nda-avatarpick.is-busy .nda-avatarpick__busy { display: block; animation: nda-avatar-busy 1.2s ease-in-out infinite alternate; }
@keyframes nda-avatar-busy { from { opacity: 0.4; } to { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) { .nda-avatarpick.is-busy .nda-avatarpick__busy { animation: none; } }
.nda-avatarpick__text { display: grid; gap: 4px; min-width: 0; text-align: left; }
.nda-avatarpick__actions { margin: 0; }
.nda-avatarpick__actions:not(:has(button:not([style*="none"]))) { display: none; }
.nda-avatarpick__remove { min-height: 32px; padding: 0; border: 0; background: none; color: var(--nd-muted); font: var(--nd-fw-semibold) var(--nd-fs-13)/1.3 var(--nd-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.nda-avatarpick__remove:hover { color: var(--nd-danger); }
.nda-avatarpick__link summary { width: max-content; color: var(--nd-muted); font: var(--nd-fw-medium) var(--nd-fs-13)/1.3 var(--nd-font); cursor: pointer; }
.nda-avatarpick__link[open] summary { margin-bottom: 8px; }
.nda-avatarpick__link .nd-input { width: 100%; }
/* 1.6 round 3: list titles wrap to two lines before they are cut ("Monstera cuttings — free to a goo…"). */
.nda-evcell__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
