/* ═══════════════════════════════════════════════════════════════════════════
   EGPHP — Operate
   The customer portal and the admin panel: a control surface, not a page.

   Reference grammar: a dark command centre — near-black canvas, surfaces that
   stack by TONE rather than elevation, hairline borders, 8px radii, no shadows,
   and one chromatic accent that only ever marks the live thing. Compact and
   instrument-like: a tool room, not a pitch deck.

   Identity stays ours (DESIGN.md): copper #E85622 is the only call to action,
   patina #35A08F carries the systems layer, figures are set in the mono face,
   and a copper fill always takes the INK text — white on copper is 3.49:1.

   Scope: everything here is under .account-body / .acct-*, so nothing leaks into
   the marketing pages that share the stylesheet chain.
   ═══════════════════════════════════════════════════════════════════════════ */

.account-body {
    /* ── ground: four tones, no shadows ── */
    --app-bg:        #0C0A11;   /* the room */
    --app-panel:     #131019;   /* a panel on it */
    --app-raised:    #1A1622;   /* a thing inside a panel */
    --app-line:      #262032;   /* hairline */
    --app-line-soft: #1E1926;   /* hairline between rows */

    --app-ink:       #F4F2F7;   /* primary text */
    --app-ink-2:     #A9A2B8;   /* secondary text, labels */
    --app-ink-3:     #6F6880;   /* disabled, meta */

    --app-copper:    #E85622;   /* the one accent: primary action, current page */
    --app-copper-dim:rgba(232, 86, 34, 0.14);
    --app-on-copper: #12101A;   /* text ON copper — never white */
    --app-patina:    #35A08F;   /* systems layer, "live" */
    --app-ok:        #4ADE80;
    --app-warn:      #FBBF24;
    --app-bad:       #F87171;

    --app-r:      8px;          /* panels, inputs, buttons */
    --app-r-sm:   4px;          /* tags */
    --app-side:   236px;
    --app-top:    56px;
    --app-view:   1180px;

    background: var(--app-bg);
    color: var(--app-ink);
    font-family: var(--font-body, "Public Sans", system-ui, sans-serif);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    -webkit-font-smoothing: antialiased;
}

/* Light is a first-class ground here too: warm paper, the same four tones inverted. */
:root[data-theme="light"] .account-body {
    --app-bg:        #F4F2F7;
    --app-panel:     #FFFFFF;
    --app-raised:    #F7F5FA;
    --app-line:      #E1DDE9;
    --app-line-soft: #EDEAF2;
    --app-ink:       #16131F;
    --app-ink-2:     #56506A;
    --app-ink-3:     #857F97;
    --app-copper-dim:rgba(232, 86, 34, 0.10);
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]):not([data-theme="light"]) .account-body {
        --app-bg:        #F4F2F7;
        --app-panel:     #FFFFFF;
        --app-raised:    #F7F5FA;
        --app-line:      #E1DDE9;
        --app-line-soft: #EDEAF2;
        --app-ink:       #16131F;
        --app-ink-2:     #56506A;
        --app-ink-3:     #857F97;
        --app-copper-dim:rgba(232, 86, 34, 0.10);
    }
}

.account-body *,
.account-body *::before,
.account-body *::after { box-sizing: border-box; }

.account-body a { color: inherit; }
.acct-mono { font-family: var(--font-mono, "IBM Plex Mono", ui-monospace, monospace); font-feature-settings: 'zero' 1, 'tnum' 1; }

/* ─────────────────────────────────────────────── the shell */

.acct-app { display: grid; grid-template-columns: var(--app-side) minmax(0, 1fr); min-height: 100vh; }
.acct-app.is-bare { grid-template-columns: minmax(0, 1fr); }

.acct-workspace { min-width: 0; display: flex; flex-direction: column; }

.acct-side {
    position: sticky; top: 0; align-self: start;
    height: 100vh; overflow-y: auto;
    background: var(--app-panel);
    border-inline-end: 1px solid var(--app-line);
    display: flex; flex-direction: column;
    padding: 14px 12px 12px;
}
.acct-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 20px; margin-bottom: 4px; text-decoration: none; }
.acct-brand img { height: 30px; width: auto; display: block; }
.acct-brand span { font-weight: 600; font-size: 12px; line-height: 1; font-family: var(--font-mono, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: var(--app-ink-3); }

.acct-side-group { margin-bottom: 14px; }
.acct-side-group > p {
    margin: 0 0 6px; padding: 0 10px;
    font-weight: 500; font-size: 11.5px; line-height: 1; font-family: var(--font-mono, monospace); letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--app-ink-3);
}
.acct-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.acct-side a, .acct-side button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    height: 34px; padding: 0 10px; border: 0; border-radius: var(--app-r);
    background: transparent; color: var(--app-ink-2);
    font-weight: 500; font-size: 13.5px; line-height: 1;
    text-decoration: none; cursor: pointer; text-align: start;
    transition: background 140ms ease, color 140ms ease;
}
.acct-side a:hover, .acct-side button:hover { background: var(--app-raised); color: var(--app-ink); }
.acct-side a.is-here { background: var(--app-copper-dim); color: var(--app-ink); font-weight: 600; }
.acct-side a.is-here svg { color: var(--app-copper); }
.acct-side svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--app-ink-3); }
.acct-side .acct-count { margin-inline-start: auto; font-weight: 600; font-size: 11px; line-height: 1; font-family: var(--font-mono, monospace); color: var(--app-ink-3); }

.acct-side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--app-line); }
.acct-side-foot form { margin: 0; }

/* ─────────────────────────────────────────────── top bar */

.acct-top {
    position: sticky; top: 0; z-index: 20;
    height: var(--app-top); display: flex; align-items: center; gap: 14px;
    padding: 0 clamp(16px, 2.2vw, 28px);
    background: color-mix(in srgb, var(--app-bg) 88%, transparent);
    backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid var(--app-line);
}
.acct-top h1 { margin: 0; font-weight: 600; font-size: 16px; line-height: 1.2; font-family: var(--font-display, inherit); letter-spacing: -0.015em; color: var(--app-ink); }
.acct-crumb { font-weight: 500; font-size: 12px; line-height: 1; font-family: var(--font-mono, monospace); color: var(--app-ink-3); letter-spacing: 0.04em; }
.acct-top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.acct-iconbtn {
    width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--app-line); border-radius: var(--app-r);
    background: transparent; color: var(--app-ink-2); cursor: pointer; text-decoration: none;
}
.acct-iconbtn:hover { border-color: var(--app-ink-3); color: var(--app-ink); }
.acct-iconbtn svg { width: 16px; height: 16px; }
.acct-avatar {
    width: 32px; height: 32px; border-radius: var(--app-r);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--app-copper); color: var(--app-on-copper);
    font-weight: 700; font-size: 13px; line-height: 1; font-family: var(--font-display, inherit);
}

/* ─────────────────────────────────────────────── the view */

.acct-view { padding: clamp(18px, 2.4vw, 28px); max-width: var(--app-view); }
.acct-view > * + * { margin-top: 16px; }

.acct-panel { background: var(--app-panel); border: 1px solid var(--app-line); border-radius: var(--app-r); }
.acct-panel-head {
    display: flex; align-items: center; gap: 12px; min-height: 44px;
    padding: 10px 16px; border-bottom: 1px solid var(--app-line);
}
.acct-panel-head h2 { margin: 0; font-weight: 600; font-size: 13.5px; line-height: 1.2; color: var(--app-ink); letter-spacing: -0.005em; }
.acct-panel-head .acct-panel-tools { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.acct-panel-body { padding: 16px; }
.acct-panel-body > p:first-child { margin-top: 0; }
.acct-panel-body > :last-child { margin-bottom: 0; }

/* The one figure that matters, set like an instrument reading. */
.acct-readout { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--app-line); border: 1px solid var(--app-line); border-radius: var(--app-r); overflow: hidden; }
.acct-readout > div { background: var(--app-panel); padding: 16px; }
.acct-readout dt { margin: 0 0 8px; font-weight: 500; font-size: 11.5px; line-height: 1; font-family: var(--font-mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: var(--app-ink-3); }
.acct-readout dd { margin: 0; font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); line-height: 1; font-family: var(--font-mono, monospace); color: var(--app-ink); letter-spacing: -0.02em; }
.acct-readout dd small a { display: inline-block; padding: 6px 0; min-height: 28px; text-decoration: none; color: var(--app-copper); }
.acct-readout dd small { display: block; margin-top: 6px; font-weight: 400; font-size: 12px; line-height: 1.35; font-family: var(--font-body, inherit); color: var(--app-ink-2); letter-spacing: 0; }
.acct-readout .is-accent dd { color: var(--app-copper); }

/* ─────────────────────────────────────────────── tables */

.acct-table-wrap { overflow-x: auto; }
/* modern.css carries a legacy `table { display: block }` for the marketing pages, which
   makes a table shrink-wrap instead of filling its column. Every part is restated here. */
.acct-table { display: table; width: 100%; border-collapse: collapse; font-size: 13px; table-layout: auto; }
.acct-table thead { display: table-header-group; }
.acct-table tbody { display: table-row-group; }
.acct-table tr { display: table-row; }
.acct-table th, .acct-table td { display: table-cell; }
.acct-table th {
    text-align: start; padding: 10px 16px;
    font-weight: 500; font-size: 11.5px; line-height: 1; font-family: var(--font-mono, monospace); letter-spacing: 0.11em; text-transform: uppercase;
    color: var(--app-ink-3); border-bottom: 1px solid var(--app-line); white-space: nowrap;
}
.acct-table td { padding: 12px 16px; border-bottom: 1px solid var(--app-line-soft); color: var(--app-ink-2); vertical-align: middle; }
.acct-table tbody tr:last-child td { border-bottom: 0; }
.acct-table tbody tr:hover td { background: var(--app-raised); }
.acct-table td strong, .acct-table td b { color: var(--app-ink); font-weight: 600; }
.acct-table .is-num { text-align: end; font-family: var(--font-mono, monospace); font-feature-settings: 'zero' 1, 'tnum' 1; color: var(--app-ink); white-space: nowrap; }
.acct-table .is-tight { width: 1%; white-space: nowrap; }
.acct-table td:has(> .acct-status), .acct-table td:has(> .acct-pill) { width: 1%; white-space: nowrap; }
.acct-table th:first-child, .acct-table td:first-child { width: 40%; }

/* ─────────────────────────────────────────────── status */

.acct-status { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; font-size: 12px; line-height: 1; color: var(--app-ink-2); white-space: nowrap; }
.acct-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--app-ink-3); flex: 0 0 6px; }
.acct-status.is-ok::before { background: var(--app-patina); box-shadow: 0 0 0 3px rgba(53, 160, 143, 0.16); }
.acct-status.is-warn::before { background: var(--app-warn); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.16); }
.acct-status.is-danger::before { background: var(--app-bad); box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.16); }
.acct-status.is-info::before { background: var(--app-copper); box-shadow: 0 0 0 3px rgba(232, 86, 34, 0.16); }

.acct-tag { display: inline-block; padding: 2px 6px; border-radius: var(--app-r-sm); border: 1px solid var(--app-line); font-weight: 500; font-size: 11px; line-height: 1.5; font-family: var(--font-mono, monospace); color: var(--app-ink-2); }
.acct-tag.is-accent { border-color: transparent; background: var(--app-copper-dim); color: var(--app-copper); }

/* ─────────────────────────────────────────────── buttons */

.acct-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 34px; padding: 0 14px; border-radius: var(--app-r);
    border: 1px solid var(--app-line); background: transparent; color: var(--app-ink);
    font-weight: 600; font-size: 13px; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.acct-btn:hover { border-color: var(--app-ink-3); background: var(--app-raised); }
.acct-btn.is-primary { background: var(--app-copper); border-color: var(--app-copper); color: var(--app-on-copper); }
.acct-btn.is-primary:hover { background: #F16A3A; border-color: #F16A3A; }
.acct-btn.is-ghost { border-color: transparent; color: var(--app-ink-2); }
.acct-btn.is-ghost:hover { color: var(--app-ink); background: var(--app-raised); }
.acct-btn.is-danger { color: var(--app-bad); border-color: color-mix(in srgb, var(--app-bad) 40%, transparent); }
.acct-btn.is-danger:hover { background: rgba(248, 113, 113, 0.10); border-color: var(--app-bad); }
.acct-btn.is-block { width: 100%; }
.acct-btn.is-lg { height: 40px; padding: 0 18px; font-size: 14px; }
.acct-btn svg { width: 16px; height: 16px; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }

/* ─────────────────────────────────────────────── forms */

.acct-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.acct-form label { display: block; }
.acct-form label > span:first-child,
.acct-field > label,
.acct-field > span:first-child {
    display: block; margin-bottom: 6px;
    font-weight: 500; font-size: 12px; line-height: 1.35; font-family: var(--font-mono, monospace);
    letter-spacing: 0.02em; color: var(--app-ink-2);
}
.acct-form input[type="text"], .acct-form input[type="email"], .acct-form input[type="password"],
.acct-form input[type="tel"], .acct-form input[type="url"], .acct-form input[type="number"],
.acct-form input[type="date"], .acct-form input[type="search"], .acct-form select, .acct-form textarea {
    width: 100%; height: 38px; padding: 0 12px;
    background: var(--app-raised); color: var(--app-ink);
    border: 1px solid var(--app-line); border-radius: var(--app-r);
    font-weight: 400; font-size: 14px; line-height: 1;
    transition: border-color 140ms ease, background 140ms ease;
}
.acct-form textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.acct-form select { appearance: none; -webkit-appearance: none; -moz-appearance: none; padding-inline-end: 34px;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: right 15px center, right 10px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
[dir="rtl"] .acct-form select { background-position: left 10px center, left 15px center; }
.acct-form input:focus, .acct-form select:focus, .acct-form textarea:focus {
    outline: none; border-color: var(--app-copper); background: var(--app-panel);
    box-shadow: 0 0 0 3px var(--app-copper-dim);
}
.acct-form input::placeholder, .acct-form textarea::placeholder { color: var(--app-ink-3); }
/* Chrome paints its own pale blue over autofilled fields, which read as disabled on a dark
   ground. The inset shadow is the only way to repaint them. */
.acct-form input:-webkit-autofill,
.acct-form input:-webkit-autofill:hover,
.acct-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--app-ink);
    -webkit-box-shadow: 0 0 0 40px var(--app-raised) inset;
    box-shadow: 0 0 0 40px var(--app-raised) inset;
    caret-color: var(--app-ink);
    transition: background-color 9999s ease-out;
}
.acct-form input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 40px var(--app-panel) inset, 0 0 0 3px var(--app-copper-dim); }
.acct-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.acct-hint { margin: 6px 0 0; font-size: 12px; color: var(--app-ink-3); line-height: 1.5; }
.acct-field-error { margin: 6px 0 0; font-size: 12px; color: var(--app-bad); }

/* `.acct-form label { display:block }` above is more specific than a bare class,
   so the checkbox row states its own class twice to win. */
.acct-check.acct-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--app-ink-2); cursor: pointer; }
.acct-check input { margin: 1px 0 0; width: 16px; height: 16px; accent-color: var(--app-copper); flex: 0 0 16px; }
.acct-check span { line-height: 1.5; }
.acct-check strong { color: var(--app-ink); font-weight: 600; }

/* password field with the reveal control */
.acct-pw { position: relative; }
.acct-pw input { padding-inline-end: 42px; }
.acct-pw button {
    position: absolute; inset-block: 1px; inset-inline-end: 1px; width: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0; background: transparent; color: var(--app-ink-3); cursor: pointer;
}
.acct-pw button:hover { color: var(--app-ink); }
.acct-pw svg { width: 17px; height: 17px; display: block; }
.acct-pw svg[hidden] { display: none; }

/* ─────────────────────────────────────────────── notices & empties */

.acct-notice {
    display: flex; gap: 10px; align-items: flex-start;
    padding: 12px 14px; border-radius: var(--app-r);
    border: 1px solid var(--app-line); border-inline-start-width: 3px;
    background: var(--app-panel); color: var(--app-ink-2); font-size: 13px; line-height: 1.55;
}
.acct-notice.is-ok { border-inline-start-color: var(--app-patina); }
.acct-notice.is-warn { border-inline-start-color: var(--app-warn); }
.acct-notice.is-error { border-inline-start-color: var(--app-bad); }
.acct-notice.is-info { border-inline-start-color: var(--app-copper); }
.acct-notice strong { color: var(--app-ink); }

.acct-empty { padding: 28px 16px; text-align: center; color: var(--app-ink-3); font-size: 13px; }
.acct-empty a { color: var(--app-copper); text-decoration: none; font-weight: 600; }
.acct-empty a:hover { text-decoration: underline; }

/* ─────────────────────────────────────────────── key/value sheets */

.acct-kv { margin: 0; display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); }
.acct-kv dt { padding: 10px 0; font-weight: 500; font-size: 11px; line-height: 1.6; font-family: var(--font-mono, monospace); letter-spacing: 0.08em; text-transform: uppercase; color: var(--app-ink-3); border-bottom: 1px solid var(--app-line-soft); }
.acct-kv dd { margin: 0; padding: 10px 0 10px 16px; color: var(--app-ink); border-bottom: 1px solid var(--app-line-soft); font-size: 13.5px; }
[dir="rtl"] .acct-kv dd { padding: 10px 16px 10px 0; }
.acct-kv dt:last-of-type, .acct-kv dd:last-of-type { border-bottom: 0; }
.acct-kv .acct-meta { display: block; margin-top: 3px; font-size: 12px; color: var(--app-ink-3); }

.acct-list { list-style: none; margin: 0; padding: 0; }
.acct-list li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--app-line-soft); font-size: 13.5px; color: var(--app-ink-2); }
.acct-list li:last-child { border-bottom: 0; }
.acct-list li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--app-copper); flex: 0 0 4px; transform: translateY(-2px); }

/* ─────────────────────────────────────────────── auth: a split room */

.acct-auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100vh; }
.acct-auth-brand {
    position: relative; overflow: hidden;
    background: #0A0810;                       /* the picture's own ground, behind it */
    border-inline-end: 1px solid var(--app-line);
    padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column;
    min-height: 220px;                         /* the band still shows a picture on a phone */
}
/* The scene, and the scrim that lets type live on it. This picture is a dark frame with a
   bright element in it, which is the only kind a scrim can darken without turning to mud. */
.acct-auth-bg, .acct-auth-bg img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.acct-auth-bg img { object-fit: cover; object-position: 62% 40%; }
.acct-auth-brand::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(105deg, rgba(10, 8, 16, 0.80) 0%, rgba(10, 8, 16, 0.55) 38%, rgba(10, 8, 16, 0.12) 72%, rgba(10, 8, 16, 0) 100%);
}
/* The light theme keeps the same picture — it is a night scene either way — so the type on
   it stays light, whatever the rest of the page is doing. */
.acct-auth-brand, .acct-auth-brand .acct-auth-say h2, .acct-auth-brand .acct-brand span { color: #F4F2F7; }
.acct-auth-brand .acct-auth-say p { color: #C9C3D6; }
.acct-auth-brand .acct-auth-facts li { color: #A9A2B8; }
/* one drawn line, the site's own signature, at the scale of a wall */
.acct-auth-brand::after {
    content: ""; z-index: 2; position: absolute; inset-inline-start: clamp(28px, 4vw, 56px); bottom: 0; top: 0; width: 2px;
    background: linear-gradient(180deg, transparent, var(--app-copper) 22%, var(--app-patina) 78%, transparent);
    opacity: 0.5;
}
.acct-auth-brand > *:not(.acct-auth-bg) { position: relative; z-index: 2; }
.acct-auth-brand .acct-brand { padding-inline-start: 26px; }
.acct-auth-mid { margin: auto 0; }
.acct-auth-say { padding-inline-start: 26px; max-width: 26ch; }
.acct-auth-say p { max-width: 40ch; }
.acct-auth-say h2 { margin: 0 0 14px; font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; font-family: var(--font-display, inherit); letter-spacing: -0.03em; color: var(--app-ink); }
.acct-auth-say p { margin: 0; color: var(--app-ink-2); font-size: 15px; line-height: 1.6; }
.acct-auth-facts { margin: 26px 0 0; padding: 0 0 0 26px; list-style: none; display: grid; gap: 10px; }
[dir="rtl"] .acct-auth-facts { padding: 0 26px 0 0; }
.acct-auth-facts li { display: flex; gap: 10px; align-items: center; font-weight: 500; font-size: 12px; line-height: 1.4; font-family: var(--font-mono, monospace); color: var(--app-ink-3); letter-spacing: 0.02em; }
.acct-auth-facts li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--app-patina); flex: 0 0 5px; }
.acct-auth-form { background: var(--app-bg); display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 56px); }
.acct-auth-form > div { width: 100%; max-width: 380px; margin: 0 auto; }
.acct-auth-form h1 { margin: 0 0 6px; font-weight: 700; font-size: 26px; line-height: 1.2; font-family: var(--font-display, inherit); letter-spacing: -0.02em; color: var(--app-ink); }
.acct-auth-form .acct-lead { margin: 0 0 22px; color: var(--app-ink-2); font-size: 14px; }
.acct-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 18px; font-size: 13px; }
.acct-links a { color: var(--app-ink-2); text-decoration: none; }
.acct-links a:hover { color: var(--app-copper); }
.acct-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-weight: 500; font-size: 11.5px; line-height: 1; font-family: var(--font-mono, monospace); letter-spacing: 0.14em; text-transform: uppercase; color: var(--app-ink-3); }
.acct-divider::before, .acct-divider::after { content: ""; height: 1px; background: var(--app-line); flex: 1; }
.acct-lead { color: var(--app-ink-2); }

/* the Google button: one white object in a dark room, exactly like the reference */
.acct-google {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    height: 40px; border-radius: var(--app-r);
    background: #FFFFFF; color: #1F1F1F; border: 1px solid #FFFFFF;
    font-weight: 600; font-size: 14px; line-height: 1; text-decoration: none; cursor: pointer;
}
.acct-google:hover { background: #F1F1F1; border-color: #F1F1F1; }
.acct-google svg { width: 18px; height: 18px; }

.acct-hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.acct-recaptcha-note { margin: 14px 0 0; font-size: 11px; color: var(--app-ink-3); line-height: 1.5; }
.acct-recaptcha-note a { color: var(--app-ink-2); }

/* ─────────────────────────────────────────────── responsive */

@media (max-width: 900px) {
    .acct-app { grid-template-columns: minmax(0, 1fr); }
    .acct-side {
        position: static; height: auto; flex-direction: row; align-items: center; gap: 6px;
        flex-wrap: wrap; overflow: visible; padding: 8px 10px;
        border-inline-end: 0; border-bottom: 1px solid var(--app-line);
    }
    .acct-brand { padding: 0 8px 0 0; flex: 0 0 auto; }
    .acct-brand span { display: none; }
    .acct-side-group { margin: 0; display: flex; align-items: center; }
    .acct-side-group > p { display: none; }
    .acct-side ul { flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .acct-side a, .acct-side button { height: 32px; white-space: nowrap; padding: 0 8px; }

    .acct-side-foot { margin: 0 0 0 auto; padding: 0 0 0 8px; border-top: 0; border-inline-start: 1px solid var(--app-line); flex: 0 0 auto; }

    .acct-auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .acct-auth-brand { border-inline-end: 0; border-bottom: 1px solid var(--app-line); padding: 20px 22px 24px; min-height: 190px; justify-content: center; gap: 14px; }
    .acct-auth-brand .acct-brand { padding-bottom: 0; margin-bottom: 0; }
    .acct-auth-bg img { object-position: 72% 45%; }
    .acct-auth-brand::after { display: none; }
    .acct-auth-brand .acct-brand, .acct-auth-say, .acct-auth-facts { padding-inline-start: 0; }
    .acct-auth-say h2 { font-size: 24px; }
    .acct-auth-say p, .acct-auth-facts { display: none; }
    .acct-view { padding: 16px; }
}

@media (max-width: 560px) {
    .acct-kv { grid-template-columns: minmax(0, 1fr); }
    .acct-kv dt { border-bottom: 0; padding-bottom: 0; }
    .acct-kv dd { padding: 4px 0 10px; }
    [dir="rtl"] .acct-kv dd { padding: 4px 0 10px; }
    .acct-table th:nth-child(n+4), .acct-table td:nth-child(n+4) { display: none; }
}

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

/* print an invoice or a service page without the chrome */
@media print {
    .acct-side, .acct-top, .acct-actions { display: none !important; }
    .account-body { background: #fff; color: #000; }
    .acct-panel { border-color: #ccc; }
}

/* ─────────────────────────────────────────────── panel padding model

   A panel is either composed (head + body, emitted by accountPanelOpen) or written
   inline by a page. Both must look identical, so the panel pads itself and the two
   full-bleed children pull back out to the hairline. */

.acct-panel { padding: 16px; }
.acct-panel > .acct-panel-head:first-child { margin: -16px -16px 16px; }
.acct-panel > .acct-panel-body { padding: 0; }
.acct-panel > .acct-table-wrap { margin: -16px; }
.acct-panel > .acct-table-wrap:not(:first-child) { margin-top: 0; }
.acct-panel > .acct-panel-head + .acct-table-wrap { margin-top: -16px; }
.acct-panel > h1:first-child, .acct-panel > h2:first-child, .acct-panel > .acct-oxid:first-child { margin-top: 0; }
.acct-panel > :last-child { margin-bottom: 0; }
.acct-panel h1 { margin: 0 0 6px; font-weight: 700; font-size: 20px; line-height: 1.25; font-family: var(--font-display, inherit); letter-spacing: -0.02em; color: var(--app-ink); }
.acct-panel h2 { margin: 0 0 12px; font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--app-ink); }
.acct-panel p { margin: 0 0 12px; color: var(--app-ink-2); }

/* the signature hairline, at instrument scale */
.acct-oxid { height: 2px; width: 40px; border-radius: 2px; margin: 0 0 12px; background: linear-gradient(90deg, var(--app-copper), var(--app-patina)); }
.acct-eyebrow { margin: 0 0 8px; font-weight: 500; font-size: 11.5px; line-height: 1; font-family: var(--font-mono, monospace); letter-spacing: 0.12em; text-transform: uppercase; color: var(--app-ink-3); }
.acct-meta { color: var(--app-ink-3); font-size: 12px; }
.acct-lead { margin: 0 0 16px; color: var(--app-ink-2); font-size: 14px; max-width: 62ch; }

/* a pill is a status word: same vocabulary as .acct-status, kept for pages that use it */
.acct-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--app-line); font-weight: 500; font-size: 11.5px; line-height: 1.6; font-family: var(--font-mono, monospace); color: var(--app-ink-2); white-space: nowrap; }
.acct-pill.is-ok { color: var(--app-patina); border-color: color-mix(in srgb, var(--app-patina) 40%, transparent); }
.acct-pill.is-warn { color: var(--app-warn); border-color: color-mix(in srgb, var(--app-warn) 40%, transparent); }
.acct-pill.is-danger { color: var(--app-bad); border-color: color-mix(in srgb, var(--app-bad) 40%, transparent); }
.acct-pill.is-info { color: var(--app-copper); border-color: color-mix(in srgb, var(--app-copper) 40%, transparent); }

/* the figures row: one instrument per reading, hairline-separated, never four identical boxes */
.acct-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--app-line); border: 1px solid var(--app-line); border-radius: var(--app-r); overflow: hidden; }
.acct-stat { background: var(--app-panel); padding: 14px 16px; }
.acct-stat strong { display: block; font-weight: 600; font-size: 24px; line-height: 1.1; font-family: var(--font-mono, monospace); color: var(--app-ink); letter-spacing: -0.02em; }
.acct-stat span { display: block; margin-top: 6px; font-weight: 500; font-size: 11.5px; line-height: 1; font-family: var(--font-mono, monospace); letter-spacing: 0.11em; text-transform: uppercase; color: var(--app-ink-3); }

/* the order page opens with its plan's scene, full-bleed at the top of the panel */
.acct-panel-hero { padding-top: 0; overflow: hidden; }
.acct-hero { margin: 0 -16px 16px; }
.acct-hero img { display: block; width: 100%; height: clamp(120px, 16vw, 200px); object-fit: cover; object-position: center 45%; }

/* the auth column: the room is the layout, so the form needs no card of its own */
.acct-authcard { display: block; }
.acct-authcard + .acct-authcard { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--app-line); }

.acct-inline { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.acct-field { display: block; }
