/* build: jobrox-brand-3 */
/* ═══════════════════════════════════════════════════════════════════════════
   portal.css — JobRox customer portal

   The portal is a companion to the JobRox app, so it inherits the app's visual
   language: near-black chrome, an orange accent, uppercase micro-labels
   with wide tracking, and the gradient proportion bar that appears under each
   row of the app's storage breakdown.

   That gradient bar is the recurring device here. Every ranked list — customers,
   installers, products, team — carries one, so a row's share of the total is
   readable without going to the number. Hue encodes the metric family:
   orange for money, slate for volume, green for time.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Brand tokens ────────────────────────────────────────────────────────────
   Lifted straight from job-rox.com so the portal, the site and the app read as
   one product: orange on near-black, Barlow Condensed for display and Barlow
   for body text.

   The chrome is dark like the site. Content sits on a light canvas because
   dense tables and charts are easier to read that way - the same split the app
   already uses.
   ------------------------------------------------------------------------- */
:root {
    /* Site palette */
    --orange:       #f97316;
    --orange-dk:    #c2570a;
    --orange-lt:    #ffb366;
    --dark:         #0f1117;
    --dark-2:       #181c24;
    --dark-3:       #1e2430;
    --slate:        #2d3446;
    --slate-lt:     #3d4a60;
    --green:        #22c55e;
    --green-dk:     #15803d;

    /* Portal roles mapped onto that palette */
    --ink:          #0f1117;
    --ink-2:        #181c24;
    --ink-3:        #2d3446;

    --amber:        #ffb366;
    --red:          #dc2626;
    --red-deep:     #991b1b;

    --canvas:       #f4f5f8;
    --surface:      #FFFFFF;
    --surface-2:    #f8f9fb;
    --line:         #e4e7ee;
    --line-strong:  #ccd1dd;

    --text:         #181c24;
    --text-2:       #4a5364;
    --muted:        #8a96a8;
    --on-dark:      #e8eaf0;
    --on-dark-mute: #8a96a8;

    /* Signature gradients - the recurring device across every ranked list */
    --grad-money:   linear-gradient(90deg, #c2570a 0%, #f97316 55%, #ffb366 100%);
    --grad-volume:  linear-gradient(90deg, #3d4a60 0%, #8a96a8 100%);
    --grad-time:    linear-gradient(90deg, #15803d 0%, #22c55e 100%);
    --grad-panel:   linear-gradient(135deg, #0f1117 0%, #1e2430 50%, #2d3446 100%);

    --radius:       10px;
    --radius-sm:    6px;
    --shadow:       0 1px 2px rgba(15,17,23,.05), 0 8px 24px -12px rgba(15,17,23,.20);
    --shadow-lift:  0 2px 6px rgba(15,17,23,.08), 0 18px 40px -18px rgba(15,17,23,.35);

    /* Site typography */
    --font:         'Barlow', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: 'Barlow Condensed', 'Barlow', 'Segoe UI', sans-serif;
    --nav-w: 236px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    background: var(--canvas);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; }
a { color: inherit; }

/* Numbers line up in every table and stat. */
.tnum, table, .stat-value, .cell-num { font-variant-numeric: tabular-nums; }

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ── Type roles ──────────────────────────────────────────────────────────── */

/* The uppercase micro-label carried over from the app's section headers. */
.eyebrow {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow-on-dark { color: rgba(255,255,255,.62); }

.page-title {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--ink-2);
}
.page-sub {
    font-size: .86rem;
    color: var(--muted);
    margin-top: 3px;
}

/* ── App shell ───────────────────────────────────────────────────────────── */
.shell { display: flex; min-height: 100vh; }

.shell-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.shell-content {
    padding: 22px 26px 60px;
    max-width: 1440px;
    width: 100%;
}

/* ── Side navigation ─────────────────────────────────────────────────────── */
.nav {
    width: var(--nav-w);
    flex-shrink: 0;
    background: var(--ink);
    color: var(--on-dark);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.nav-brand {
    padding: 20px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.nav-brand-name {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nav-brand-tag {
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--on-dark-mute);
    margin-top: 4px;
}

.nav-links { padding: 12px 10px; flex: 1; overflow-y: auto; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 11px;
    border-radius: var(--radius-sm);
    color: var(--on-dark-mute);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    margin-bottom: 2px;
    position: relative;
    transition: background .15s ease, color .15s ease;
}
.nav-link:hover { background: rgba(255,255,255,.06); color: var(--on-dark); }

.nav-link.active {
    background: rgba(249,115,22,.22);
    color: #fff;
    font-weight: 600;
}
/* The active marker uses the money gradient, tying nav to the ranked bars. */
.nav-link.active::before {
    content: "";
    position: absolute;
    left: 0; top: 8px; bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--grad-money);
}

.nav-icon { width: 17px; text-align: center; flex-shrink: 0; opacity: .9; }

.nav-foot {
    padding: 12px;
    border-top: 1px solid rgba(255,255,255,.07);
}
.nav-user {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 4px 10px;
}
.nav-avatar {
    width: 32px; height: 32px;
    border-radius: 9px;
    background: var(--grad-money);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .02em;
    flex-shrink: 0;
}
.nav-user-name {
    font-size: .8rem;
    font-weight: 600;
    color: var(--on-dark);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-user-role { font-size: .68rem; color: var(--on-dark-mute); }

.nav-signout {
    width: 100%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    color: var(--on-dark);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s ease;
}
.nav-signout:hover { background: rgba(255,255,255,.13); }

/* ── Top bar with the shared date range ──────────────────────────────────── */
.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 13px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 20;
}

.range-presets { display: flex; gap: 5px; flex-wrap: wrap; }

.range-btn {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--text-2);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: .79rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .15s ease;
    white-space: nowrap;
}
.range-btn:hover { border-color: var(--orange); color: var(--orange); }
.range-btn.active {
    background: var(--ink-2);
    border-color: var(--ink-2);
    color: #fff;
    font-weight: 600;
}

.range-custom { display: flex; align-items: center; gap: 6px; }
.range-custom input {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    padding: 5px 8px;
    font-size: .79rem;
    color: var(--text);
    background: var(--surface);
}
.range-custom span { font-size: .78rem; color: var(--muted); }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-head {
    padding: 15px 18px 11px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.card-title { font-size: .96rem; font-weight: 700; color: var(--ink-2); letter-spacing: -.01em; }
.card-note  { font-size: .76rem; color: var(--muted); }
.card-body  { padding: 16px 18px 18px; }
.card-body-flush { padding: 0; }

/* ── Grids ───────────────────────────────────────────────────────────────── */
.grid { display: grid; gap: 16px; }
.grid-kpi  { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); }
.grid-2    { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-2-wide { grid-template-columns: 1.75fr 1fr; }
.grid-3    { grid-template-columns: repeat(auto-fit, minmax(272px, 1fr)); }
.stack     { display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 1080px) {
    .grid-2-wide { grid-template-columns: 1fr; }
}

/* ── Stat tiles ──────────────────────────────────────────────────────────── */
.stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 15px 16px 14px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
/* A hairline of the metric's gradient sits at the top of each tile. */
.stat::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--grad-money);
    opacity: .9;
}
.stat.volume::before { background: var(--grad-volume); }
.stat.time::before   { background: var(--grad-time); }
.stat.warn::before   { background: linear-gradient(90deg, #D97706 0%, #ffb366 100%); }

.stat-label { margin-bottom: 7px; }

.stat-value {
    font-size: clamp(1.5rem, 2.4vw, 1.95rem);
    font-weight: 700;
    letter-spacing: -.035em;
    color: var(--ink);
    line-height: 1.1;
}
.stat-meta {
    margin-top: 6px;
    font-size: .765rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.delta { font-weight: 700; font-size: .75rem; }
.delta.up   { color: var(--green); }
.delta.down { color: var(--red); }
.delta.flat { color: var(--muted); }

/* ── The signature: gradient proportion bar ──────────────────────────────── */
.rank-list { display: flex; flex-direction: column; }

.rank-row {
    padding: 11px 18px;
    border-bottom: 1px solid var(--line);
}
.rank-row:last-child { border-bottom: none; }
.rank-row:hover { background: var(--surface-2); }

.rank-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.rank-name {
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rank-value {
    font-size: .875rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.rank-sub {
    font-size: .745rem;
    color: var(--muted);
    margin-top: 2px;
}

.rank-track {
    margin-top: 7px;
    height: 4px;
    border-radius: 999px;
    background: #E7ECF5;
    overflow: hidden;
}
.rank-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--grad-money);
    transition: width .45s cubic-bezier(.22,.61,.36,1);
}
.rank-fill.volume { background: var(--grad-volume); }
.rank-fill.time   { background: var(--grad-time); }

/* ── Violet statistics panel (mirrors the app's storage hero) ────────────── */
.panel {
    background: var(--grad-panel);
    border-radius: var(--radius);
    padding: 20px 22px;
    color: #fff;
    box-shadow: var(--shadow-lift);
    position: relative;
    overflow: hidden;
}
.panel::after {
    content: "";
    position: absolute;
    right: -70px; top: -90px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,179,102,.35) 0%, transparent 68%);
    pointer-events: none;
}
.panel-value {
    font-size: clamp(2.1rem, 4.4vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
    margin: 8px 0 4px;
}
.panel-meta { font-size: .82rem; color: rgba(255,255,255,.78); }

.panel-track {
    margin-top: 15px;
    height: 7px;
    border-radius: 999px;
    background: rgba(0,0,0,.26);
    overflow: hidden;
}
.panel-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #22c55e 0%, #3d4a60 100%);
    transition: width .5s cubic-bezier(.22,.61,.36,1);
}
.panel-fill.warn   { background: linear-gradient(90deg, #ffb366 0%, #f97316 100%); }
.panel-fill.danger { background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%); }

.panel-split {
    display: flex;
    justify-content: space-between;
    font-size: .755rem;
    color: rgba(255,255,255,.76);
    margin-top: 7px;
}

/* ── Tables ──────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }

table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: .83rem;
}
table.data thead th {
    text-align: left;
    padding: 9px 14px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
    position: sticky;
    top: 0;
}
table.data tbody td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--text-2);
    vertical-align: middle;
}
table.data tbody tr:hover td { background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: none; }

.cell-strong { font-weight: 600; color: var(--ink-2); }
.cell-num    { text-align: right; white-space: nowrap; }
th.cell-num  { text-align: right; }

/* ── Pills ───────────────────────────────────────────────────────────────── */
.pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
}
.pill-green  { background: #dcfce7; color: #15803d; }
.pill-blue   { background: #eef1f6; color: #3d4a60; }
.pill-violet { background: #fff1e3; color: #c2570a; }
.pill-amber  { background: #fff1e3; color: #c2570a; }
.pill-red    { background: #FBE0E3; color: #8E1622; }
.pill-grey   { background: #EDF1F8; color: #424B6F; }

/* ── Charts ──────────────────────────────────────────────────────────────── */
.chart-box { position: relative; width: 100%; }
.chart-box.tall  { height: 300px; }
.chart-box.short { height: 232px; }

/* ── States ──────────────────────────────────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, #EBEFF7 25%, #F5F8FC 50%, #EBEFF7 75%);
    background-size: 200% 100%;
    animation: shimmer 1.3s linear infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}
.skeleton-line { height: 12px; margin-bottom: 9px; }
.skeleton-tile { height: 96px; }

.empty {
    padding: 34px 20px;
    text-align: center;
    color: var(--muted);
}
.empty-title {
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 5px;
}
.empty-note { font-size: .8rem; max-width: 380px; margin: 0 auto; line-height: 1.5; }

.notice {
    border-radius: var(--radius);
    padding: 12px 15px;
    font-size: .83rem;
    line-height: 1.5;
    border: 1px solid;
}
.notice-warn   { background: #FEFAEE; border-color: #F6DEA0; color: #c2570a; }
.notice-danger { background: #FDF1F2; border-color: #F5C4C9; color: #8E1622; }
.notice-info   { background: #EDF8FD; border-color: #B9E4F4; color: #3d4a60; }
.notice strong { font-weight: 700; }



/* ── Sign-in screen samples ─────────────────────────────────────────────
   Miniature device frames on the sign-in panel, so a visitor without an
   account can see what the portal actually shows. Drawn in CSS rather than
   captured as screenshots - nothing to re-export when a page changes.
   ------------------------------------------------------------------------- */
.screen-strip { display: flex; gap: 13px; margin: 26px 0 4px; }

.screen {
    width: 108px;
    flex-shrink: 0;
    background: var(--dark-2);
    border: 1px solid var(--slate);
    border-radius: 15px;
    padding: 9px 9px 11px;
    box-shadow: 0 16px 34px -16px rgba(0,0,0,.85);
}
.screen-notch {
    width: 26px; height: 3px;
    border-radius: 99px;
    background: var(--slate-lt);
    margin: 0 auto 9px;
}
.screen-eyebrow {
    font-family: var(--font-display);
    font-size: .56rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--on-dark-mute);
}
.screen-figure {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -.01em;
    margin-top: 1px;
}
.screen-cap {
    margin-top: 9px;
    padding-top: 7px;
    border-top: 1px solid var(--slate);
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--orange);
    text-align: center;
}

.mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: 7px; }
.mini-bars i { flex: 1; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, var(--orange), var(--orange-dk)); }

.mini-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 9px; }
.mini-lbl  { height: 4px; border-radius: 99px; background: var(--slate-lt); }
.mini-bar  { height: 3px; border-radius: 99px; margin-top: 4px; background: var(--grad-money); }

.mini-donut {
    width: 58px; height: 58px;
    border-radius: 50%;
    margin: 10px auto 8px;
    position: relative;
    background: conic-gradient(var(--green) 0 42%, var(--orange) 42% 82%, var(--slate-lt) 82% 100%);
}
.mini-donut::after {
    content: "";
    position: absolute;
    inset: 17px;
    border-radius: 50%;
    background: var(--dark-2);
}
.mini-legend { display: flex; flex-direction: column; gap: 3px; }
.mini-legend span { display: flex; align-items: center; gap: 5px; font-size: .53rem; color: var(--on-dark-mute); }
.mini-legend i { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }

/* ── Route to pricing for visitors with no account ──────────────────────── */
.login-cta {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--slate);
}
.login-cta-copy { font-size: .84rem; color: var(--on-dark-mute); line-height: 1.6; }
.login-cta-copy strong { color: #fff; font-weight: 600; }
.login-cta-row { display: flex; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.login-cta-btn {
    background: var(--orange);
    color: var(--dark);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 9px 22px;
    border-radius: 6px;
    transition: background .2s ease;
}
.login-cta-btn:hover { background: var(--orange-lt); }
.login-cta-link { color: var(--on-dark-mute); text-decoration: none; font-size: .82rem; }
.login-cta-link:hover { color: var(--orange); }

/* Short viewports: drop the samples before anything important is pushed off. */
@media (max-height: 820px) {
    .screen-strip { display: none; }
    .login-cta { margin-top: 20px; padding-top: 16px; }
}

/* ── Brand lockup ────────────────────────────────────────────────────────────
   The bolt is the site's own device - "Book It ⚡ Rock It" - carried into the
   portal so the sign-in screen is recognisably JobRox before any data loads.
   ------------------------------------------------------------------------- */
.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}
.brand-mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 9px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(249,115,22,.30);
}
.nav-brand-lockup { display: flex; align-items: center; gap: 10px; }
.nav-brand-logo {
    width: 30px; height: 30px;
    border-radius: 7px;
    object-fit: cover;
    flex-shrink: 0;
}
.brand-word {
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: -.015em;
    color: #fff;
    line-height: 1.1;
}
.brand-tag {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--on-dark-mute);
    margin-top: 3px;
}

/* Emoji sit slightly small against text at this weight. */
.nav-icon { font-size: .95rem; line-height: 1; }


/* ── Display type ──────────────────────────────────────────────────────────
   Barlow Condensed carries every number and heading, exactly as it does on the
   site. It is narrow, so big figures fit without shrinking.
   ------------------------------------------------------------------------- */
.eyebrow, .page-title, .card-title, .stat-value, .panel-value,
.login-headline, .brand-word, table.data thead th, .nav-brand-name {
    font-family: var(--font-display);
}
.page-title  { font-weight: 800; letter-spacing: .01em; }
.stat-value  { font-weight: 800; letter-spacing: -.01em; }
.panel-value { font-weight: 900; letter-spacing: -.01em; }
.card-title  { font-weight: 700; letter-spacing: .02em; font-size: 1.05rem; }
.login-headline { font-weight: 900; letter-spacing: .005em; text-transform: uppercase; }
.nav-name-accent, .brand-word span { color: var(--orange); }

/* ── Sign-in ─────────────────────────────────────────────────────────────── */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: var(--canvas);
}

.login-aside {
    background: var(--ink);
    color: #fff;
    padding: 54px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.login-aside::after {
    content: "";
    position: absolute;
    left: -120px; bottom: -160px;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249,115,22,.35) 0%, transparent 66%);
    pointer-events: none;
}
.login-aside-inner { position: relative; z-index: 1; max-width: 430px; }

.login-headline {
    font-size: clamp(1.9rem, 3.3vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.12;
    margin: 14px 0 14px;
}
.login-copy { font-size: .93rem; color: var(--on-dark-mute); line-height: 1.62; }

.login-points { margin-top: 26px; display: flex; flex-direction: column; gap: 13px; }
.login-point { display: flex; gap: 11px; align-items: flex-start; }
.login-point-mark {
    width: 4px;
    border-radius: 999px;
    background: var(--grad-money);
    flex-shrink: 0;
    align-self: stretch;
    min-height: 34px;
}
.login-point-title { font-size: .855rem; font-weight: 600; color: #fff; }
.login-point-note  { font-size: .79rem; color: var(--on-dark-mute); margin-top: 2px; line-height: 1.5; }

.login-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
}
.login-card { width: 100%; max-width: 380px; }

.field { margin-bottom: 14px; }
.field label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 5px;
}
.field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    font-size: .9rem;
    color: var(--text);
    background: var(--surface);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249,115,22,.18);
}

.btn-primary {
    width: 100%;
    padding: 11px 16px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--ink-2);
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease, transform .1s ease;
}
.btn-primary:hover:not(:disabled) { background: var(--orange); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.btn-ghost {
    padding: 6px 13px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-2);
    font-size: .8rem;
    font-weight: 500;
    cursor: pointer;
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .login-page { grid-template-columns: 1fr; }
    .login-aside { display: none; }
}

@media (max-width: 820px) {
    .shell { flex-direction: column; }
    .nav {
        width: 100%;
        height: auto;
        position: relative;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
    }
    .nav-brand { border-bottom: none; border-right: 1px solid rgba(255,255,255,.07); padding: 12px 14px; }
    .nav-links { display: flex; padding: 8px; gap: 4px; }
    .nav-link { margin-bottom: 0; white-space: nowrap; }
    .nav-link.active::before { display: none; }
    .nav-foot { border-top: none; display: flex; align-items: center; gap: 10px; }
    .nav-user { padding: 0; }
    .shell-content { padding: 16px 14px 48px; }
    .topbar { padding: 11px 14px; }
}

/* ── Motion preference ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

/* Blazor's own error strip, restyled to match. */
#blazor-error-ui {
    background: #FDF1F2;
    border-top: 2px solid var(--red);
    color: #8E1622;
    bottom: 0;
    box-shadow: 0 -6px 20px -8px rgba(0,0,0,.2);
    display: none;
    left: 0;
    padding: 11px 16px;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-size: .85rem;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 14px;
    top: 8px;
    font-size: 1.1rem;
}
