/* Updated: Saturday 2026-09-05
 *
 * The shared vocabulary every neo screen assembles from. A screen picks classes
 * out of this file; it does not write its own card, its own button or its own
 * grid. A rebuilt component is a defect even when it looks right, because it
 * drifts from this one and misses the states.
 *
 * Names come straight from the demo's own components: Bigpanel is .neo-panel,
 * Stat is .neo-stat, TxRow is .neo-tx, EduJobCard is .neo-job.
 *
 * Every value is a token. No hex, no rgba, no shadow written by hand.
 */

/* ---- Panel. The demo's Bigpanel ---------------------------------------- */

.neo-panel {
    background: var(--surface-card);
    border: var(--card-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--float-shadow);
    color: var(--ink-900);
    padding: clamp(20px, 2vw, 28px);
}

.neo-panel--flush { padding: 0; overflow: hidden; }

.neo-panel__head {
    align-items: center;
    display: flex;
    gap: var(--space-4);
    justify-content: space-between;
    margin-bottom: var(--space-2);
}

.neo-panel__title {
    font-family: var(--font-display);
    font-size: var(--text-title);
    font-weight: var(--weight-bold);
    margin: 0;
}

.neo-panel__note { color: var(--ink-500); font-family: var(--font-mono); font-size: 11px; }

/* ---- Stack and grid ---------------------------------------------------- */

.neo-stack { display: flex; flex-direction: column; gap: var(--space-6); }
.neo-stack--tight { gap: var(--space-4); }
.neo-stack--loose { gap: 22px; }

.neo-grid { display: grid; gap: var(--gutter); }
.neo-grid--stats { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.neo-grid--narrow-stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; }
.neo-grid--cards { grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); justify-items: center; }
.neo-grid--wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ---- Stat tile. The demo's Stat ---------------------------------------- */

.neo-stat {
    background: var(--surface-card);
    border: var(--card-line);
    border-radius: 18px;
    box-shadow: var(--float-shadow);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
    transition: transform 0.16s var(--ease-spring);
}

.neo-stat:hover { transform: translateY(-4px); }

.neo-stat__chip {
    background: var(--tone, var(--mint-500));
    border: 3px solid var(--ink-900);
    border-radius: var(--radius-md);
    box-shadow: 4px 4px 0 var(--ink-900);
    height: 44px;
    width: 44px;
}

.neo-stat__value {
    color: var(--ink-900);
    font-family: var(--font-display);
    font-size: 28px;
    font-variant-numeric: tabular-nums;
    font-weight: var(--weight-bold);
    line-height: 1;
}

.neo-stat__label { color: var(--ink-500); font-size: var(--text-xs); font-weight: var(--weight-bold); }

/* ---- Transaction row. The demo's TxRow --------------------------------- */

.neo-tx {
    align-items: center;
    border-bottom: 1.5px solid var(--surface-sunken);
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) 0;
}

.neo-tx:last-child { border-bottom: none; }
.neo-tx__date { color: var(--ink-500); font-family: var(--font-mono); font-size: 11px; width: 54px; }

.neo-tx__title {
    color: var(--ink-900);
    flex: 1;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
}

.neo-tx__amount { color: var(--mint-600); font-family: var(--font-mono); font-size: var(--text-xs); }
.neo-tx__amount--out { color: var(--ink-500); }

/* ---- Buttons ----------------------------------------------------------- */

.neo-btn {
    align-items: center;
    background: var(--surface-card);
    border: 2.5px solid var(--ink-900);
    border-radius: var(--radius-sm);
    box-shadow: var(--float-shadow-sm);
    color: var(--ink-900);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: var(--weight-bold);
    gap: var(--space-2);
    padding: 10px 16px;
    transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

.neo-btn:hover { transform: translate(-1px, -1px); }
.neo-btn:active { box-shadow: 2px 2px 0 var(--ink-900); transform: translate(2px, 2px); }

/* One of these per screen and no more. */
.neo-btn--primary { background: var(--indigo-500); color: var(--white); }
.neo-btn--accent { background: var(--mint-400); color: var(--ink-on-tone); }
.neo-btn--ghost { background: transparent; border-color: transparent; box-shadow: none; }
.neo-btn--ghost:hover { background: var(--surface-sunken); }
.neo-btn--sm { font-size: var(--text-xs); padding: 7px 11px; }

.neo-btn[disabled] { cursor: not-allowed; opacity: 0.45; }

/* ---- Chip -------------------------------------------------------------- */

.neo-chip {
    align-items: center;
    background: var(--surface-sunken);
    border: 2px solid var(--ink-900);
    border-radius: var(--radius-xs);
    color: var(--ink-900);
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: var(--weight-bold);
    gap: 5px;
    padding: 4px 8px;
    white-space: nowrap;
}

.neo-chip--mint { background: var(--mint-100); }
.neo-chip--lime { background: var(--lime-050); }
.neo-chip--sky { background: var(--sky-050); }
.neo-chip--violet { background: var(--violet-050); }
.neo-chip--coral { background: var(--coral-050); }
.neo-chip--fuchsia { background: var(--fuchsia-050); }

/* ---- Progress ---------------------------------------------------------- */

.neo-progress {
    background: var(--surface-sunken);
    border: 2px solid var(--ink-900);
    border-radius: var(--radius-pill);
    height: 12px;
    overflow: hidden;
}

.neo-progress__fill {
    background: var(--mint-500);
    border-radius: var(--radius-pill);
    height: 100%;
    transition: width 0.6s var(--ease-out);
}

/* ---- Edu Job card. The demo's EduJobCard -------------------------------- */

.neo-job {
    background: var(--surface-card);
    border: var(--card-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--float-shadow);
    color: var(--ink-900);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    max-width: 320px;
    padding: var(--space-5);
    text-align: left;
    transition: transform 0.18s var(--ease-spring), box-shadow 0.18s var(--ease-out);
    width: 100%;
}

.neo-job:hover { box-shadow: var(--float-shadow), var(--shadow-lg); transform: translateY(-6px); }

/* The glyph inside sits on a brand tone, so it takes --ink-on-tone: --ink-900
 * inverts with the theme and the tone does not. */
.neo-job__art {
    align-items: center;
    background: var(--tone, var(--indigo-100));
    border: 3px solid var(--ink-900);
    color: var(--ink-on-tone);
    border-radius: var(--radius-md);
    box-shadow: 4px 4px 0 var(--ink-900);
    display: flex;
    height: 96px;
    justify-content: center;
}

.neo-job__category { color: var(--ink-500); font-family: var(--font-mono); font-size: 11px; }

.neo-job__title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: var(--weight-bold);
    line-height: var(--leading-snug);
    margin: 0;
}

.neo-job__meta { align-items: center; display: flex; flex-wrap: wrap; gap: var(--space-2); }

.neo-job__reward {
    color: var(--ink-900);
    font-family: var(--font-display);
    font-size: var(--text-title);
    font-weight: var(--weight-bold);
}

/* ---- Empty and error --------------------------------------------------- */

.neo-empty {
    align-items: center;
    color: var(--ink-500);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-12) var(--space-6);
    text-align: center;
}

.neo-empty__title {
    color: var(--ink-900);
    font-family: var(--font-display);
    font-size: var(--text-h3);
    font-weight: var(--weight-bold);
    margin: 0;
}

.neo-empty__line { margin: 0; max-width: 42ch; }

/* ---- Notice. Says on screen when a figure is not real ------------------- */

.neo-notice {
    align-items: center;
    background: var(--surface-sunken);
    border: 2.5px solid var(--ink-900);
    border-radius: var(--radius-sm);
    color: var(--ink-700);
    display: flex;
    font-size: var(--text-xs);
    gap: var(--space-2);
    padding: 10px 14px;
}

/* ---- Surfaces the demo signs its work with ----------------------------- */

.neo-holo {
    animation: neo-holo 22s linear infinite;
    background: var(--gradient-holo);
    background-size: 200% 200%;
}

.neo-shine { overflow: hidden; position: relative; }

.neo-shine::after {
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    content: "";
    height: 100%;
    left: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    transform: translateX(-160%) skewX(-18deg);
    width: 42%;
}

.neo-shine:hover::after { animation: neo-glint 0.75s var(--ease-out); }

.neo-float { animation: neo-float 16s ease-in-out infinite; }

/* Cards enter in sequence rather than all at once. Set --i per card. */
.neo-rise {
    animation: neo-view-in 0.5s var(--ease-out) backwards;
    animation-delay: calc(var(--i, 0) * 45ms);
}

/* ---- Tabs. Transparent. Just the word ---------------------------------- */

.neo-tabs { display: flex; flex-wrap: wrap; gap: var(--space-5); }

.neo-tab {
    background: none;
    border: none;
    color: var(--ink-500);
    cursor: pointer;
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: var(--weight-bold);
    padding: 0;
}

.neo-tab.is-on { color: var(--indigo-500); }

/* ---- Fields ------------------------------------------------------------ */

.neo-field {
    background: var(--surface-card);
    border: 2.5px solid var(--ink-900);
    border-radius: var(--radius-sm);
    color: var(--ink-900);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    padding: 10px 13px;
    width: 100%;
}

.neo-field::placeholder { color: var(--ink-500); }

.neo-field-wrap { position: relative; }
.neo-field-wrap .neo-icon { left: 12px; position: absolute; top: 50%; transform: translateY(-50%); }
.neo-field-wrap .neo-field { padding-left: 38px; }

/* ---- Screen-reader-only ------------------------------------------------ */

.neo-sr {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}
