/* ============================================================
   Operator OS · Components
   Requiere operator-os.tokens.css cargado antes.
   ============================================================ */

* { box-sizing: border-box; }

html, body {
    margin: 0; padding: 0;
    background: var(--z-1000);
    color: var(--z-100);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    letter-spacing: -.011em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.num, .mono, [data-num] { font-feature-settings: "tnum" 1, "ss01" 1, "cv11" 1; }

::selection { background: var(--amber-tint-30); color: var(--z-50); }

*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--z-800); border-radius: 10px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: var(--z-700); background-clip: content-box; border: 2px solid transparent; }

/* ============================================================
   LOGO — circle with stencil M (matches the PNG mark)
   Use anywhere with: <span class="logo logo-md"></span>
   Sizes: logo-sm=20, logo-md=28, logo-lg=36, logo-xl=64

   Implementation note: SVG is applied via mask-image (not background-image)
   so currentColor actually resolves against the host element's color.
   `currentColor` inside an SVG used as background-image does NOT inherit
   from the host — it falls back to black, which made the mark invisible
   on dark surfaces. With mask, background-color: currentColor takes over.
   ============================================================ */
.logo {
    display: inline-block;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'><circle cx='0' cy='0' r='46.5' fill='none' stroke='black' stroke-width='7'/><path d='M-21 -18 L-21 18 L-13 18 L-13 -3 L0 11 L13 -3 L13 18 L21 18 L21 -18 L13 -18 L0 -4 L-13 -18 Z' fill='black'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'><circle cx='0' cy='0' r='46.5' fill='none' stroke='black' stroke-width='7'/><path d='M-21 -18 L-21 18 L-13 18 L-13 -3 L0 11 L13 -3 L13 18 L21 18 L21 -18 L13 -18 L0 -4 L-13 -18 Z' fill='black'/></svg>");
    -webkit-mask-repeat: no-repeat;
            mask-repeat: no-repeat;
    -webkit-mask-position: center;
            mask-position: center;
    -webkit-mask-size: contain;
            mask-size: contain;
    color: currentColor;
}
.logo-sm { width: 20px; height: 20px; }
.logo-md { width: 28px; height: 28px; }
.logo-lg { width: 36px; height: 36px; }
.logo-xl { width: 64px; height: 64px; }

/* Brand lockup — logo + text */
.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--z-50);
}
.brand-lockup .bl-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    gap: 2px;
}
.brand-lockup .bl-name {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -.012em;
    color: var(--z-50);
}
.brand-lockup .bl-name em {
    font-style: normal;
    color: var(--z-500);
    font-weight: 500;
}
.brand-lockup .bl-tag {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--amber);
}

/* ============================================================
   App shell
   ============================================================ */
.shell { display: grid; grid-template-columns: var(--drawer-w) 1fr; min-height: 100vh; }

.drawer {
    grid-column: 1; height: 100vh; position: sticky; top: 0;
    background: var(--z-975);
    border-right: 1px solid var(--z-850);
    display: flex; flex-direction: column;
    overflow-y: auto; overflow-x: hidden;
}

.brand {
    display: flex; align-items: center; gap: 11px;
    padding: 16px 18px 18px;
    border-bottom: 1px solid var(--z-875);
    color: var(--z-50);
}
.brand .logo { color: var(--z-50); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; gap: 2px; }
.brand-text .b1 {
    font-weight: 600; font-size: 13px; color: var(--z-50);
    letter-spacing: -.012em;
}
.brand-text .b1 em { font-style: normal; color: var(--z-500); font-weight: 500; }
.brand-text .b2 {
    font-family: var(--font-mono);
    font-size: 9px; font-weight: 500;
    color: var(--amber);
    letter-spacing: .16em; text-transform: uppercase;
}

.org-switch {
    margin: 12px 12px 4px;
    padding: 8px 10px;
    background: var(--z-925);
    border: 1px solid var(--z-850);
    border-radius: var(--r-md);
    display: flex; align-items: center; gap: 9px;
    cursor: pointer;
    transition: border-color var(--t-fast) var(--ease);
}
.org-switch:hover { border-color: var(--z-750); }
.org-switch .o-mark {
    width: 22px; height: 22px;
    border-radius: 5px;
    background: linear-gradient(135deg, #5B5BD6, #2A4FB8);
    color: white; font-size: 10px; font-weight: 600;
    display: grid; place-items: center; flex-shrink: 0;
}
.org-switch .o-name {
    font-size: 12.5px; color: var(--z-100); font-weight: 500;
    flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.org-switch .o-chev { color: var(--z-500); flex-shrink: 0; }

.nav-section { margin: 14px 0 4px; }
.nav-label {
    padding: 0 22px 6px;
    font-size: 10px;
    font-family: var(--font-mono);
    font-weight: 500; text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--z-600);
}
.nav { display: flex; flex-direction: column; padding: 0 8px; gap: 1px; }

.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 12px; border-radius: var(--r-sm);
    color: var(--z-400);
    font-size: 13px; font-weight: 500; letter-spacing: -.005em;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
    position: relative;
}
.nav-item:hover { background: var(--z-875); color: var(--z-200); }
.nav-item.active { background: var(--z-850); color: var(--z-50); }
.nav-item.active::before {
    content: ''; position: absolute;
    left: -8px; top: 50%; transform: translateY(-50%);
    width: 2px; height: 16px;
    background: var(--amber);
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 8px var(--amber);
}
.nav-icon { width: 16px; height: 16px; color: currentColor; opacity: .85; flex-shrink: 0; }
.nav-item.active .nav-icon { color: var(--amber); opacity: 1; }
.nav-badge {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 10px; color: var(--z-500);
    background: var(--z-875); padding: 1px 6px;
    border-radius: 999px; border: 1px solid var(--z-850);
}
.nav-item.active .nav-badge {
    color: var(--amber-bright);
    background: var(--amber-tint-10);
    border-color: var(--amber-tint-20);
}

.drawer-foot {
    margin-top: auto; padding: 14px 12px;
    border-top: 1px solid var(--z-875);
    display: flex; flex-direction: column; gap: 6px;
}
.drawer-foot .build {
    font-family: var(--font-mono);
    font-size: 10px; color: var(--z-600);
    letter-spacing: .04em;
    padding: 4px 12px;
    display: flex; justify-content: space-between;
}
.drawer-foot .build .ok { color: var(--emerald); }

.main { grid-column: 2; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    height: var(--topbar-h);
    border-bottom: 1px solid var(--z-875);
    background: rgba(11, 11, 14, .72);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center;
    padding: 0 24px; gap: 16px;
}
.crumb { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--z-400); min-width: 0; }
.crumb .c-current { color: var(--z-100); font-weight: 500; }
.crumb .c-sep { color: var(--z-700); }
.spacer { flex: 1; }

.kbd-trigger {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 8px 5px 12px;
    background: var(--z-925);
    border: 1px solid var(--z-850);
    border-radius: var(--r-md);
    color: var(--z-500); font-size: 12.5px;
    transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
    min-width: 240px;
}
.kbd-trigger:hover { border-color: var(--z-750); color: var(--z-300); }
.kbd-trigger .ico { color: var(--z-500); }
.kbd {
    margin-left: auto; display: inline-flex; align-items: center; gap: 2px;
    font-family: var(--font-mono); font-size: 10.5px;
    color: var(--z-400);
    background: var(--z-850);
    padding: 2px 6px; border-radius: 4px;
    border: 1px solid var(--z-750); border-bottom-width: 2px;
}
.env-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px 4px 8px;
    background: var(--z-925);
    border: 1px solid var(--z-850);
    border-radius: 999px;
    font-size: 11px; font-family: var(--font-mono);
    color: var(--z-400);
    text-transform: uppercase; letter-spacing: .08em;
}
.env-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
    animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: .55; transform: scale(.92); }
}
.icon-btn {
    width: 30px; height: 30px;
    border-radius: var(--r-md);
    border: 1px solid transparent; background: transparent;
    color: var(--z-400);
    display: grid; place-items: center;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--z-875); color: var(--z-100); border-color: var(--z-850); }

.avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2A4FB8, #5B5BD6);
    color: white;
    font-family: var(--font-mono);
    font-size: 10.5px; font-weight: 600;
    display: grid; place-items: center;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 0 0 1px var(--z-850);
}

.content {
    padding: 28px 32px 96px;
    width: 100%; max-width: var(--content-max);
    margin: 0 auto;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 7px 13px; border-radius: var(--r-md);
    font-size: 13px; font-weight: 500; letter-spacing: -.005em;
    border: 1px solid transparent; cursor: pointer;
    transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
                color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease),
                box-shadow var(--t-fast) var(--ease);
    white-space: nowrap;
}
.btn-primary {
    background: var(--amber); color: #0A0A0C;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25),
                0 0 0 1px var(--amber-deep),
                0 8px 20px var(--amber-tint-20);
}
.btn-primary:hover {
    background: var(--amber-bright);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3),
                0 0 0 1px var(--amber),
                0 12px 28px var(--amber-tint-30);
    transform: translateY(-1px);
}
.btn-secondary {
    background: var(--z-100); color: #0A0A0C;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 0 0 1px var(--z-300);
}
.btn-secondary:hover { background: white; }
.btn-ghost {
    background: var(--z-925); color: var(--z-200);
    border-color: var(--z-800);
}
.btn-ghost:hover { background: var(--z-875); border-color: var(--z-700); }
.btn-quiet { background: transparent; color: var(--z-400); }
.btn-quiet:hover { color: var(--z-100); background: var(--z-875); }
.btn-sm { padding: 4px 9px; font-size: 12px; }
.btn-lg { padding: 10px 18px; font-size: 14px; }

/* ============================================================
   Cards / Chips
   ============================================================ */
.card {
    background: var(--z-925);
    border: 1px solid var(--z-850);
    border-radius: var(--r-lg);
    padding: 20px;
}
.chip {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 8px; border-radius: var(--r-xs);
    font-size: 11px; font-weight: 500; letter-spacing: -.005em;
    background: var(--z-850); color: var(--z-300);
    border: 1px solid var(--z-800);
}
.chip-amber { background: var(--amber-tint-10); color: var(--amber-bright); border-color: var(--amber-tint-20); }
.chip-emerald { background: var(--emerald-tint); color: var(--emerald); border-color: rgba(16,185,129,.25); }
.chip-rose { background: var(--rose-tint); color: var(--rose); border-color: rgba(244,63,94,.25); }
.chip-sky { background: var(--sky-tint); color: var(--sky); border-color: rgba(56,189,248,.25); }
.chip-violet { background: var(--violet-tint); color: var(--violet); border-color: rgba(167,139,250,.25); }

.dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.dot-emerald { background: var(--emerald); box-shadow: 0 0 6px var(--emerald-tint); }
.dot-amber { background: var(--amber); box-shadow: 0 0 6px var(--amber-tint-30); }
.dot-rose { background: var(--rose); box-shadow: 0 0 6px var(--rose-tint); }
.dot-sky { background: var(--sky); box-shadow: 0 0 6px var(--sky-tint); }
.dot-mute { background: var(--z-600); }

/* Type helpers */
.eyebrow {
    font-family: var(--font-mono);
    font-size: 11px; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--z-500);
}
.h1 { font-size: 28px; font-weight: 600; letter-spacing: -.022em; color: var(--z-50); margin: 0; line-height: 1.15; }
.h2 { font-size: 17px; font-weight: 600; letter-spacing: -.016em; color: var(--z-100); margin: 0; }
.h3 { font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--z-200); margin: 0; }
.muted { color: var(--z-500); }
.dim { color: var(--z-400); }
.mono { font-family: var(--font-mono); }

/* Page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-head-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.page-head .eyebrow { margin-bottom: 0; }
.page-sub { color: var(--z-500); font-size: 13.5px; margin: 0; max-width: 60ch; }
.page-head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.user-pill { display: inline-flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 999px; border: 1px solid var(--z-850); background: var(--z-925); cursor: pointer; transition: border-color var(--t-fast) var(--ease); }
.user-pill:hover { border-color: var(--z-750); }
.user-pill .user-name { font-size: 12.5px; color: var(--z-200); font-weight: 500; padding-right: 4px; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-trigger { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: none; cursor: pointer; padding: 0; color: inherit; font-family: inherit; font-size: inherit; }
.org-trigger:hover { color: var(--z-50); }

/* KPI tile */
.kpi { display: flex; flex-direction: column; gap: 10px; padding: 18px; background: var(--z-925); border: 1px solid var(--z-850); border-radius: var(--r-lg); position: relative; overflow: hidden; }
.kpi-label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--z-500); display: flex; align-items: center; gap: 8px; }
.kpi-value { font-size: 30px; font-weight: 600; letter-spacing: -.025em; color: var(--z-50); line-height: 1; font-feature-settings: "tnum" 1; }
.kpi-meta { font-size: 11.5px; color: var(--z-500); display: flex; align-items: center; gap: 6px; }
.kpi-trend-up { color: var(--emerald); }
.kpi-trend-dn { color: var(--rose); }
.kpi-spark { position: absolute; right: 0; bottom: 0; opacity: .5; pointer-events: none; }

/* Section header */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; gap: 16px; }
.sec-head-left { display: flex; align-items: baseline; gap: 10px; }
.sec-head .h2 { color: var(--z-100); }
.sec-head-meta { font-family: var(--font-mono); font-size: 11px; color: var(--z-600); letter-spacing: .04em; }

/* Table */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl thead th { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--z-500); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--z-850); white-space: nowrap; background: var(--z-950); position: sticky; top: 0; }
.tbl tbody td { padding: 12px; border-bottom: 1px solid var(--z-875); font-size: 13px; color: var(--z-200); vertical-align: middle; }
.tbl tbody tr:hover td { background: var(--z-925); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl-wrap { background: var(--z-950); border: 1px solid var(--z-850); border-radius: var(--r-lg); overflow: hidden; }
.tbl .num, .tbl .mono { font-family: var(--font-mono); }
.tbl .col-actions { width: 1%; white-space: nowrap; text-align: right; }

/* Filter bar */
.filter-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; background: var(--z-950); border: 1px solid var(--z-850); border-bottom: none; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.filter-bar + .tbl-wrap { border-top-left-radius: 0; border-top-right-radius: 0; }
.filter-input { background: var(--z-925); border: 1px solid var(--z-850); border-radius: var(--r-md); padding: 5px 10px 5px 30px; font-size: 12.5px; color: var(--z-100); min-width: 240px; position: relative; outline: none; transition: border-color var(--t-fast) var(--ease); }
.filter-input:focus { border-color: var(--z-700); box-shadow: var(--ring-amber); }
.filter-search { position: relative; display: inline-block; }
.filter-search svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); color: var(--z-500); pointer-events: none; }
.filter-select { background: var(--z-925); border: 1px solid var(--z-850); border-radius: var(--r-md); padding: 5px 26px 5px 10px; font-size: 12.5px; color: var(--z-200); cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10' fill='none' stroke='%2382828a' stroke-width='1.5'%3E%3Cpath d='M2 4l3 3 3-3'/%3E%3C/svg%3E"); background-position: right 8px center; background-repeat: no-repeat; }

/* Empty state */
.empty { text-align: center; padding: 60px 24px; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%; background: var(--z-925); border: 1px solid var(--z-850); display: grid; place-items: center; color: var(--z-500); }
.empty h3 { color: var(--z-100); font-size: 18px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.014em; }
.empty p { color: var(--z-500); font-size: 13.5px; margin: 0 auto 24px; max-width: 44ch; }

/* Form */
.form-grid { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 12px; font-weight: 500; color: var(--z-300); display: flex; align-items: center; gap: 6px; }
.field-label .req { color: var(--amber); }
.field-hint { font-size: 11.5px; color: var(--z-500); }
.input, .select, .textarea { background: var(--z-925); border: 1px solid var(--z-850); border-radius: var(--r-md); padding: 8px 12px; font-size: 13px; color: var(--z-100); font-family: inherit; outline: none; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--amber-deep); box-shadow: var(--ring-amber); }
.input::placeholder, .textarea::placeholder { color: var(--z-600); }
.textarea { min-height: 90px; resize: vertical; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; }

/* Toggle switch */
.switch { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track { position: absolute; cursor: pointer; inset: 0; background: var(--z-800); border-radius: 999px; transition: background var(--t-fast) var(--ease); }
.switch-track::before { content: ''; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; background: var(--z-300); border-radius: 50%; transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease); }
.switch input:checked + .switch-track { background: var(--amber); }
.switch input:checked + .switch-track::before { transform: translateX(16px); background: #0A0A0C; }

/* Checkbox */
.cb { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--z-700); background: var(--z-925); display: inline-grid; place-items: center; flex-shrink: 0; cursor: pointer; transition: all var(--t-fast) var(--ease); }
.cb.checked { background: var(--amber); border-color: var(--amber); color: #0A0A0C; }
.cb svg { opacity: 0; transition: opacity var(--t-fast); }
.cb.checked svg { opacity: 1; }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--z-850); margin-bottom: 20px; }
.tab { padding: 10px 14px; font-size: 13px; font-weight: 500; color: var(--z-500); border: none; background: transparent; cursor: pointer; position: relative; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color var(--t-fast) var(--ease); }
.tab:hover { color: var(--z-200); }
.tab.active { color: var(--z-50); border-bottom-color: var(--amber); }
.tab .count { font-family: var(--font-mono); font-size: 10.5px; color: var(--z-600); margin-left: 6px; }
.tab.active .count { color: var(--amber-bright); }

/* Notif row */
.notif { display: flex; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--z-875); transition: background var(--t-fast) var(--ease); }
.notif:hover { background: var(--z-925); }
.notif.unread { background: var(--amber-tint-5); }
.notif.unread:hover { background: var(--amber-tint-10); }
.notif-icon { width: 32px; height: 32px; border-radius: var(--r-md); display: grid; place-items: center; flex-shrink: 0; background: var(--z-875); color: var(--z-300); }
.notif-icon.ok { background: var(--emerald-tint); color: var(--emerald); }
.notif-icon.warn { background: var(--amber-tint-10); color: var(--amber); }
.notif-icon.err { background: var(--rose-tint); color: var(--rose); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 13px; font-weight: 500; color: var(--z-100); margin: 0 0 4px; }
.notif-msg { font-size: 12.5px; color: var(--z-400); margin: 0 0 6px; line-height: 1.5; }
.notif-time { font-family: var(--font-mono); font-size: 10.5px; color: var(--z-600); }
.notif-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); margin-top: 12px; flex-shrink: 0; box-shadow: 0 0 6px var(--amber-tint-30); }

/* Stepper */
.steps { display: flex; gap: 0; align-items: stretch; }
.step { display: flex; align-items: center; gap: 10px; padding: 12px 16px; flex: 1; border-right: 1px solid var(--z-850); position: relative; }
.step:last-child { border-right: none; }
.step-num { width: 22px; height: 22px; border-radius: 50%; background: var(--z-850); color: var(--z-500); font-family: var(--font-mono); font-size: 11px; font-weight: 600; display: grid; place-items: center; flex-shrink: 0; }
.step.active .step-num { background: var(--amber); color: #0A0A0C; box-shadow: 0 0 0 4px var(--amber-tint-10); }
.step.done .step-num { background: var(--emerald-tint); color: var(--emerald); }
.step-label { font-size: 12.5px; color: var(--z-400); font-weight: 500; }
.step.active .step-label { color: var(--z-50); }

/* Audit log */
.audit-row { display: grid; grid-template-columns: 110px 28px 1fr; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--z-875); align-items: start; font-size: 12.5px; }
.audit-time { font-family: var(--font-mono); font-size: 11px; color: var(--z-500); }
.audit-icon { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; background: var(--z-875); color: var(--z-300); }
.audit-msg { color: var(--z-200); line-height: 1.5; }
.audit-msg .ent { color: var(--z-50); font-weight: 500; }
.audit-msg .actor { color: var(--amber-bright); }

/* Big stat row (like cuentas) */
.account-card { padding: 20px; background: linear-gradient(180deg, var(--z-925), var(--z-950)); border: 1px solid var(--z-850); border-radius: var(--r-lg); display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; }
.ml-mark { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #FFE600, #FFC800); display: grid; place-items: center; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 4px 12px rgba(255,200,0,.2); }
.ml-mark-text { font-family: var(--font-mono); font-weight: 700; font-size: 11px; color: #2D3277; letter-spacing: -.02em; line-height: 1; text-align: center; }

/* Meta grid */
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--z-850); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--z-850); }
.meta-cell { background: var(--z-925); padding: 14px 16px; }
.meta-cell .ml { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--z-500); margin-bottom: 6px; }
.meta-cell .mv { font-size: 14px; color: var(--z-100); font-weight: 500; }

/* Submit (legacy) */
.submit { background: var(--amber); color: #0A0A0C; border: none; padding: 9px 16px; border-radius: var(--r-md); font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 1px var(--amber-deep); transition: background var(--t-fast) var(--ease); }
.submit:hover { background: var(--amber-bright); }

/* ============================================================
   Auth pages — login / register / password reset
   Lives at the global layer because /Account/* renders in Static SSR
   under AuthLayout, and CSS isolation in the layout doesn't scope
   down to child page elements.
   ============================================================ */
.auth-title {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -.018em;
    color: var(--z-50);
    margin: 0 0 4px;
}
.auth-sub {
    font-size: 13px;
    color: var(--z-500);
    margin: 0 0 24px;
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-form .field-label {
    color: var(--z-200);
    font-size: 12.5px;
}
.auth-form .input {
    padding: 10px 12px;
    font-size: 13.5px;
}

.field-error {
    font-size: 11.5px;
    color: var(--rose);
    margin-top: 4px;
}

.auth-error {
    background: var(--rose-tint);
    color: var(--rose);
    border: 1px solid rgba(244, 63, 94, .25);
    border-radius: var(--r-md);
    padding: 10px 12px;
    font-size: 12.5px;
    margin-bottom: 16px;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--z-200);
    cursor: pointer;
    user-select: none;
}
.auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--amber);
    cursor: pointer;
}

.auth-submit {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 600;
    margin-top: 4px;
}

.auth-links {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}
.auth-links a {
    font-size: 12.5px;
    color: var(--amber);
    text-decoration: none;
}
.auth-links a:hover {
    color: var(--amber-bright);
    text-decoration: underline;
}

/* Light mode tweaks for auth */
[data-theme="light"] .auth-title { color: var(--z-50); }
[data-theme="light"] .auth-sub { color: var(--z-500); }
[data-theme="light"] .auth-error { background: rgba(190, 18, 60, .08); border-color: rgba(190, 18, 60, .25); color: var(--rose); }
[data-theme="light"] .auth-links a { color: var(--amber-deep); }
[data-theme="light"] .auth-links a:hover { color: var(--amber); }
