:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e7eef8;
  background: #09111f;
  line-height: 1.45;
  --bg: #09111f;
  --surface: #101b2d;
  --surface-raised: #15233a;
  --surface-soft: #0d1728;
  --line: #223451;
  --line-bright: #2d4567;
  --text: #e7eef8;
  --muted: #8ea0b9;
  --blue: #4b9cff;
  --blue-deep: #2475d5;
  --green: #39d98a;
  --amber: #f3b84b;
  --red: #ff6b75;
  --shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% -10%, #17355b 0, transparent 36rem), var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid var(--line-bright); background: var(--surface-raised); color: var(--text); border-radius: 10px; padding: 10px 14px; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease; }
button:hover { transform: translateY(-2px); border-color: #5c83b8; background: #1a2d49; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
button:active { transform: translateY(0); }
button:disabled { cursor: wait; opacity: .65; transform: none; }
.primary { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); border-color: transparent; color: white; box-shadow: 0 8px 22px rgba(36, 117, 213, .22); }
.primary:hover { background: linear-gradient(135deg, #65aaff, #2b81e5); }
.secondary { background: transparent; }
.ghost { background: transparent; border-color: transparent; }
.hidden { display: none !important; }
.muted { color: var(--muted); font-size: 13px; }
.error { color: #ff9198; min-height: 20px; }

/* Auth */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 10%, #1a487b 0, transparent 34rem), radial-gradient(circle at 90% 100%, #173052 0, transparent 32rem), var(--bg); }
.auth-card { width: min(455px, 100%); padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: rgba(16, 27, 45, .92); box-shadow: var(--shadow); backdrop-filter: blur(20px); animation: card-in .55s cubic-bezier(.2, .8, .2, 1); }
.login-brand { display: flex; align-items: center; gap: 13px; margin-bottom: 27px; }
.eyebrow, .dialog-kicker { color: #7ea7d9; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.auth-card h1 { margin: 0 0 9px; font-size: 31px; letter-spacing: -.04em; }
.auth-lead { margin: 0 0 27px; color: var(--muted); font-size: 14px; }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: white; font-weight: 900; letter-spacing: -.08em; background: linear-gradient(145deg, #5aa8ff, #2366bc); box-shadow: 0 10px 30px rgba(36, 117, 213, .32); }
.brand-mark.small { width: 34px; height: 34px; border-radius: 10px; font-size: 11px; flex: none; }
.login-fields, .steam-login-fields { display: grid; gap: 17px; }
.auth-card label, .dialog-card label, .settings-panel label { display: grid; gap: 8px; color: #b9c7d9; font-size: 12px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; outline: none; padding: 11px 12px; background: var(--surface-soft); color: var(--text); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
input::placeholder, textarea::placeholder { color: #657993; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); background: #101f35; box-shadow: 0 0 0 4px rgba(75, 156, 255, .13); }
.login-submit, .steam-submit { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 24px; padding: 13px 16px; font-weight: 750; }
.button-arrow { margin-left: auto; font-size: 20px; line-height: 12px; transition: transform .18s ease; }
button:hover .button-arrow { transform: translateX(3px); }
.button-spinner { width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.auth-footer { display: flex; align-items: center; gap: 8px; margin-top: 21px; color: #6f829b; font-size: 11px; }
.secure-dot, .live-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(57, 217, 138, .12); }

/* App shell */
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 258px; display: flex; flex-direction: column; padding: 24px 14px; border-right: 1px solid rgba(45, 69, 103, .62); background: rgba(9, 17, 31, .78); }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 10px 38px; }
.brand strong { display: block; font-size: 14px; letter-spacing: -.02em; }
.brand small { display: block; margin-top: 2px; color: #7188a7; font-size: 9px; letter-spacing: .12em; }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-color: transparent; background: transparent; color: #8fa2bd; text-align: left; }
.nav-icon { position: relative; width: 17px; height: 17px; display: inline-block; flex: none; opacity: .8; }
.nav-icon-ready { border: 1.5px solid currentColor; border-radius: 5px; }
.nav-icon-ready::after { content: ""; position: absolute; width: 6px; height: 3px; left: 4px; top: 5px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.nav-icon-alert { border: 1.5px solid currentColor; border-radius: 50%; }
.nav-icon-alert::after { content: ""; position: absolute; width: 1.5px; height: 6px; left: 7px; top: 3px; background: currentColor; box-shadow: 0 8px currentColor; }
.nav-icon-loadout { border: 1.5px solid currentColor; border-radius: 4px; background: linear-gradient(currentColor,currentColor) 4px 4px/8px 1px no-repeat, linear-gradient(currentColor,currentColor) 4px 8px/8px 1px no-repeat, linear-gradient(currentColor,currentColor) 4px 12px/8px 1px no-repeat; }
.nav-icon-profile { border: 1.5px solid currentColor; border-radius: 50% 50% 45% 45%; }
.nav-icon-profile::after { content: ""; position: absolute; width: 5px; height: 5px; left: 4px; top: 3px; border: 1.5px solid currentColor; border-radius: 50%; }
.nav-item:hover { background: rgba(45, 69, 103, .35); color: var(--text); }
.nav-item.active { border-color: rgba(75, 156, 255, .22); background: linear-gradient(90deg, rgba(75,156,255,.18), rgba(75,156,255,.04)); color: #a9d0ff; box-shadow: inset 3px 0 var(--blue); }
.sidebar-bottom { margin-top: auto; display: grid; gap: 13px; }
.sidebar-status { display: flex; align-items: center; gap: 9px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; color: #8296b1; font-size: 11px; }
.main { flex: 1; min-width: 0; max-width: 1760px; padding: 34px 38px; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 27px; }
.topbar h2 { margin: 0; color: #f2f6fc; font-size: 32px; letter-spacing: -.045em; }
.topbar p { margin: 6px 0 0; }
.top-actions { display: flex; align-items: center; gap: 11px; }
.user-chip { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: #a9bad0; background: rgba(16, 27, 45, .7); }
.refresh-icon { display: inline-block; margin-right: 4px; font-size: 18px; line-height: 10px; transition: transform .35s ease; }
button:hover .refresh-icon { transform: rotate(180deg); }
.toast { position: fixed; right: 28px; bottom: 25px; z-index: 20; padding: 13px 17px; border: 1px solid #38516f; border-radius: 11px; color: white; background: #172a43; box-shadow: var(--shadow); animation: toast-in .35s ease; }

/* Overview */
.overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 13px; }
.metric { display: flex; align-items: center; gap: 13px; min-height: 94px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 15px; background: linear-gradient(145deg, rgba(21,35,58,.95), rgba(13,23,40,.95)); box-shadow: 0 12px 32px rgba(0,0,0,.12); animation: card-in .5s both; }
.metric:nth-child(2) { animation-delay: .04s; } .metric:nth-child(3) { animation-delay: .08s; } .metric:nth-child(4) { animation-delay: .12s; }
.metric-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: white; font-weight: 850; background: rgba(75,156,255,.2); }
.metric-ready .metric-icon { color: #65eaa7; background: rgba(57,217,138,.14); } .metric-warning .metric-icon { color: #ffd27b; background: rgba(243,184,75,.14); } .metric-prime .metric-icon { background: rgba(155,125,255,.2); }
.metric-copy { min-width: 0; } .metric-copy small, .metric-copy em { display: block; } .metric-copy small { color: var(--muted); font-size: 11px; } .metric-copy strong { margin: 2px 0; color: #f5f8fc; font-size: 25px; line-height: 1.05; } .metric-copy em { color: #6f829d; font-size: 10px; font-style: normal; }
.signal-bar { display: flex; align-items: center; gap: 26px; min-height: 70px; margin-bottom: 21px; padding: 13px 18px; border: 1px solid #274466; border-radius: 14px; background: linear-gradient(90deg, rgba(20,50,84,.82), rgba(16,27,45,.82)); animation: card-in .5s .15s both; }
.signal-title { display: flex; align-items: center; gap: 12px; min-width: 190px; } .signal-title strong, .signal-title small { display: block; } .signal-title strong { font-size: 13px; } .signal-title small { margin-top: 2px; color: #7892b2; font-size: 10px; }
.signal-stat, .signal-next { padding-left: 22px; border-left: 1px solid #2b496c; } .signal-stat small, .signal-next small { display: block; color: #7990ad; font-size: 10px; } .signal-stat strong, .signal-next strong { display: block; margin-top: 2px; font-size: 17px; }
.signal-next { margin-left: auto; text-align: right; }

/* Account panels */
.content-grid { display: grid; grid-template-columns: minmax(480px, 1fr) minmax(460px, .86fr); gap: 20px; align-items: start; }
.view-enter { animation: panel-in .35s ease both; }
.panel { border: 1px solid var(--line); border-radius: 16px; background: rgba(16,27,45,.92); box-shadow: 0 16px 42px rgba(0,0,0,.13); }
.accounts-panel { padding: 20px; } .details-panel { min-height: 460px; padding: 22px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; } .panel h3 { margin: 0 0 4px; font-size: 18px; } .panel-head p { margin: 0; }
.filters { display: flex; gap: 9px; margin: 20px 0 14px; } .filters select { width: 205px; } .filters input { flex: 1; }
.bulk-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; padding: 9px 10px; border: 1px solid #31577f; border-radius: 10px; background: rgba(35,74,117,.22); }
.bulk-toolbar select { min-width: 145px; padding: 7px 9px; }
.bulk-toolbar button { padding: 7px 10px; font-size: 11px; }
.bulk-toolbar span:first-child { color: #c9def4; font-size: 11px; font-weight: 750; }
.bulk-toolbar #bulkProgress { margin-left: auto; font-size: 10px; }
.account-list { display: grid; gap: 8px; } .account-row { display: flex; align-items: center; gap: 13px; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(13,23,40,.72); text-align: left; animation: row-in .35s both; }
.account-select { display: grid; place-items: center; flex: none; margin: 0; }
.account-select input { width: 16px; height: 16px; margin: 0; accent-color: #4b9cff; }
.account-row:hover { border-color: #3d6190; background: #152742; } .account-row.selected { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(75,156,255,.12); }
.account-row.vac-banned { border-color: rgba(245,45,63,.8); background: linear-gradient(135deg, rgba(91,17,27,.92), rgba(30,12,19,.9)); box-shadow: 0 0 0 1px rgba(245,45,63,.22), 0 10px 24px rgba(108,12,25,.34), inset 3px 0 #ff3e54; }
.account-row.vac-banned:hover, .account-row.vac-banned.selected { border-color: #ff5969; background: linear-gradient(135deg, rgba(119,20,33,.96), rgba(42,12,20,.94)); box-shadow: 0 0 0 2px rgba(255,69,88,.28), 0 12px 28px rgba(108,12,25,.46), inset 3px 0 #ff334b; }
.avatar { width: 44px; height: 44px; display: grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%; background: #1d2c42; } .avatar-image { width: 100%; height: 100%; object-fit: cover; } .avatar-fallback { width: 100%; height: 100%; display: grid; place-items: center; color: #9bb0ca; font-weight: 800; } .avatar.large { width: 70px; height: 70px; }
.account-main { min-width: 0; flex: 1; } .account-name { display: block; overflow: hidden; color: #e9f1fb; font-weight: 720; white-space: nowrap; text-overflow: ellipsis; } .account-meta { display: block; overflow: hidden; margin-top: 4px; color: #7e93af; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; } .account-next-cooldown { display: block; margin-top: 3px; color: #6f9bd0; font-size: 10px; }
.account-login-warning { display: block; margin-top: 4px; color: #ff9ba1; font-size: 10px; font-weight: 750; }
.account-login-warning.vac-warning, .vac-text { color: #ff5368 !important; font-weight: 800; }
.nav-item-vac.active { border-color: rgba(255,87,101,.72); color: #ff8090; background: linear-gradient(90deg, rgba(176,25,46,.38), rgba(74,12,23,.12)); box-shadow: inset 3px 0 #ff334b, 0 0 18px rgba(245,45,63,.12); }
.status-pill, .badge { display: inline-flex; align-items: center; width: max-content; border-radius: 999px; color: #91e6b9; background: rgba(57,217,138,.12); font-size: 10px; font-weight: 700; white-space: nowrap; } .status-pill { padding: 5px 9px; } .status-pill.bad, .badge.bad { color: #ff9ba1; background: rgba(255,107,117,.12); }
.status-pill.vac, .badge.vac { color: #fff0f2; background: rgba(245,45,63,.38); border: 1px solid rgba(255,87,101,.72); box-shadow: 0 0 18px rgba(245,45,63,.28), inset 0 1px rgba(255,255,255,.12); }
.empty { display: grid; place-items: center; min-height: 300px; color: #7186a2; text-align: center; }

/* Account details */
.details { animation: panel-in .35s ease; } .detail-head { display: flex; align-items: center; gap: 15px; margin-bottom: 23px; } .detail-identity h3 { margin: 0 0 3px; font-size: 22px; letter-spacing: -.025em; } .status-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; } .badge { padding: 5px 9px; color: #a6b9d0; background: #1b2b43; } .badge.live { color: #7fc3ff; background: rgba(75,156,255,.14); }
.health-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 13px; } .health-card { min-height: 83px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #0d1728; } .health-card small, .health-card span { display: block; color: #7890ad; font-size: 10px; } .health-card strong { display: block; overflow: hidden; margin: 6px 0 3px; color: #e9f1fb; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.login-required-alert { display: grid; gap: 7px; margin: -7px 0 15px; padding: 14px; border: 1px solid rgba(255, 107, 117, .48); border-radius: 11px; color: #ffdadd; background: linear-gradient(135deg, rgba(112, 29, 39, .46), rgba(46, 23, 31, .82)); box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.login-required-alert strong { color: #ff9ba1; font-size: 13px; }
.login-required-alert span { color: #e8bfc4; font-size: 11px; line-height: 1.5; }
.login-required-alert button { justify-self: start; margin-top: 3px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 12px; } .stat { padding: 13px 14px; border: 1px solid var(--line); border-radius: 11px; background: #13223a; } .stat small { display: block; color: #7d93af; font-size: 11px; } .stat strong { display: block; margin-top: 3px; color: #f4f8fd; font-size: 22px; }
.detail-lines { display: grid; gap: 0; font-size: 13px; } .detail-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #1d2c43; color: #8da1ba; } .detail-line strong { color: #dce7f4; text-align: right; } .next-cooldown-value { color: #9ac8ff !important; } .warning-text { color: #ffc768 !important; }
.note-row { display: flex; gap: 8px; margin-top: 19px; } .note-row input { flex: 1; } .detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; } .detail-actions button { font-size: 12px; } .detail-actions button:first-child { border-color: #37699e; color: #add3ff; }
.matches-panel { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); } .matches-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .matches-heading h4 { margin: 0; font-size: 14px; } .matches-heading small { display: block; margin-top: 3px; color: #7890ad; font-size: 10px; } .matches-heading button { padding: 7px 10px; font-size: 11px; } .matches-list { display: grid; gap: 6px; margin-top: 12px; } .match-row { display: grid; grid-template-columns: 1fr auto auto; gap: 13px; align-items: center; padding: 9px 11px; border: 1px solid #1d2e47; border-radius: 9px; background: #0d1728; font-size: 11px; } .match-map { overflow: hidden; color: #b8c9dc; text-overflow: ellipsis; white-space: nowrap; } .match-score { color: #8fc3ff; font-weight: 750; } .match-date { color: #7186a2; font-size: 10px; } .matches-empty { padding: 14px; border: 1px dashed #2a405f; border-radius: 9px; color: #7186a2; font-size: 11px; text-align: center; }

/* Settings and dialog */
.settings-panel { max-width: 1120px; padding: 23px; animation: panel-in .35s ease; } .settings-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; } .saved-badge { padding: 6px 10px; border-radius: 999px; color: #8fe0b3; background: rgba(57,217,138,.12); font-size: 11px; font-weight: 700; } .preset-name { max-width: 520px; }
.loadout-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; } .loadout-team { padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #0d1728; } .team-heading { display: flex; align-items: center; gap: 9px; padding-bottom: 12px; border-bottom: 1px solid var(--line); } .team-heading h4 { margin: 0; } .team-dot { width: 10px; height: 10px; border-radius: 50%; background: #f0b84d; } .team-dot.ct { background: #4b9cff; } .loadout-group { margin-top: 16px; } .loadout-group h5 { margin: 0 0 7px; color: #7188a5; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; } .slot-row { display: grid !important; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 10px; margin: 7px 0 !important; font-size: 12px !important; } .slot-row select { padding: 8px 9px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } .settings-panel textarea { resize: vertical; } .check { display: flex !important; align-items: center; } .check input { width: auto; } .settings-panel button { margin-top: 20px; }
dialog { width: min(510px, calc(100% - 28px)); padding: 0; border: 1px solid var(--line-bright); border-radius: 18px; color: var(--text); background: var(--surface); box-shadow: var(--shadow); } dialog::backdrop { background: rgba(2,8,18,.72); backdrop-filter: blur(5px); } .dialog-card { position: relative; padding: 31px; } .dialog-kicker { margin-bottom: 8px; } .dialog-card h3 { margin: 0 0 7px; font-size: 22px; } .close { position: absolute; top: 15px; right: 15px; padding: 3px 9px; border: 0; background: transparent; font-size: 24px; } .steam-login-fields { margin-top: 22px; } .auth-progress { margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); } .progress-heading { display: flex; align-items: center; gap: 11px; } .progress-heading strong, .progress-heading small { display: block; } .progress-heading strong { font-size: 13px; } .progress-heading small { margin-top: 3px; color: var(--muted); font-size: 11px; } .progress-orb { width: 17px; height: 17px; border: 2px solid #3c78b9; border-top-color: #9bceff; border-radius: 50%; animation: spin 1s linear infinite; } .progress-track { height: 5px; margin: 17px 0 14px; overflow: hidden; border-radius: 999px; background: #20334f; } .progress-track span { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-deep), #8bc5ff); animation: progress-pulse 1.8s ease-in-out infinite; } .guard-field { margin-top: 10px; } .auth-progress button { margin-top: 13px; }

@keyframes card-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes panel-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@keyframes row-in { from { opacity: 0; transform: translateX(-5px); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes progress-pulse { 0%, 100% { transform: translateX(-5%); width: 24%; } 50% { transform: translateX(310%); width: 38%; } }

@media (max-width: 1120px) { .overview { grid-template-columns: repeat(2, 1fr); } .content-grid { grid-template-columns: 1fr; } .details-panel { min-height: 0; } }
@media (max-width: 780px) { .sidebar { width: 212px; } .main { padding: 24px 18px; } .signal-bar { flex-wrap: wrap; gap: 13px 22px; } .signal-next { margin-left: 0; text-align: left; } .loadout-editor { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .auth-card { padding: 30px 24px; } .app-shell { display: block; } .sidebar { width: 100%; padding: 10px; } .sidebar nav { display: flex; overflow-x: auto; } .nav-item { width: auto; white-space: nowrap; } .sidebar-bottom { display: none; } .main { padding: 18px 13px; } .topbar { display: block; } .top-actions { margin-top: 15px; justify-content: space-between; } .overview { grid-template-columns: 1fr 1fr; gap: 8px; } .metric { min-height: 82px; padding: 12px; } .metric-icon { width: 31px; height: 31px; } .metric-copy strong { font-size: 21px; } .metric-copy em { display: none; } .content-grid { display: block; } .details-panel { margin-top: 13px; } .accounts-panel { margin-bottom: 13px; } .panel-head { align-items: flex-start; flex-direction: column; } .filters { flex-direction: column; } .filters select { width: 100%; } .health-grid { grid-template-columns: 1fr; } .two-col { grid-template-columns: 1fr; } .detail-actions button { flex: 1 1 45%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

/* Rating and match analytics */
.perma-badge { color: #ffd36f !important; background: rgba(224, 165, 47, .16) !important; border: 1px solid rgba(224, 165, 47, .35); }
.perma-action { color: #ffd36f; border-color: rgba(224, 165, 47, .42); background: rgba(224, 165, 47, .08); }
.monitoring-action { color: #ffca73; border-color: rgba(240, 184, 77, .42); background: rgba(240, 184, 77, .08); }
.rating-panel { margin: 18px 0 4px; padding: 16px; border: 1px solid #25405e; border-radius: 13px; background: linear-gradient(145deg, #101f34, #0b1626); }
.rating-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.rating-heading h4 { margin: 4px 0 2px; font-size: 15px; }
.rating-heading small { color: #7890ad; font-size: 10px; }
.rating-heading > strong { color: #58edb0; font-size: 22px; }
.rating-chart { position: relative; margin-top: 10px; padding-left: 26px; }
.rating-chart svg { display: block; width: 100%; height: 150px; overflow: visible; }
.rating-chart line { stroke: #29425d; stroke-dasharray: 3 6; stroke-width: 1; }
.rating-chart polyline { fill: none; stroke: #26e5a0; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; filter: drop-shadow(0 0 5px rgba(38, 229, 160, .3)); }
.chart-label { position: absolute; left: 0; color: #6d87a5; font-size: 9px; }
.chart-high { top: 8px; } .chart-low { bottom: 8px; }
.rating-empty { padding: 12px; color: #7890ad; font-size: 11px; text-align: center; }
.match-table-head, .match-row { display: grid; grid-template-columns: minmax(100px, 1.3fr) 52px 70px 80px 80px 110px; gap: 10px; align-items: center; }
.match-table-head { margin-top: 14px; padding: 0 11px 7px; color: #66809f; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.match-row { padding: 10px 11px; }
.match-outcome { width: 23px; padding: 3px 0; border-radius: 5px; color: #fff; background: #1e9d73; font-size: 10px; font-weight: 800; text-align: center; }
.match-outcome.match-loss { background: #b33e55; } .match-outcome.match-draw { background: #9a7832; }
.match-mode, .match-stat { color: #a3b8d1; font-size: 10px; } .match-stat { text-align: center; }
@media (max-width: 780px) { .match-table-head { display: none; } .match-row { grid-template-columns: 1fr auto auto; gap: 8px; } .match-mode, .match-stat { display: none; } .match-date { grid-column: 1 / -1; } }
.timeline-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 18px; }
.timeline-toolbar h3 { margin: 4px 0; font-size: 22px; }
.timeline-view { max-width: 1120px; animation: panel-in .35s ease; }
.timeline-view .timeline-panel { margin-top: 0; padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: rgba(13,23,40,.72); }
.timeline-panel { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.timeline-panel h4 { margin: 0 0 4px; font-size: 18px; }
.timeline-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 18px 0; }
.timeline-stat { position: relative; min-height: 73px; overflow: hidden; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #0d1728; }
.timeline-stat strong, .timeline-stat small { display: block; position: relative; z-index: 1; } .timeline-stat strong { font-size: 23px; } .timeline-stat small { margin-top: 4px; color: #7890ad; font-size: 10px; }
.timeline-stat-bar { position: absolute; left: 0; right: 0; bottom: 0; height: var(--bar); min-height: 3px; opacity: .28; background: #4b9cff; transition: height .45s ease; } .timeline-stat-bar.cooldown { background: #f0b84d; } .timeline-stat-bar.action { background: #b28cff; } .timeline-stat-bar.error { background: #f05d70; }
.timeline-list { display: grid; gap: 8px; max-height: 640px; overflow: auto; padding-right: 3px; }
.timeline-event { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 12px; border-color: var(--line); background: #0d1728; text-align: left; }
.timeline-event:hover { background: #152742; } .timeline-event.warning { border-left: 2px solid #e2aa41; } .timeline-event.error { border-left: 2px solid #ed6172; } .timeline-event.success { border-left: 2px solid #35d991; }
.timeline-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #9bc9ff; background: rgba(75, 156, 255, .14); font-weight: 800; }
.timeline-event-main { min-width: 0; } .timeline-event-main strong, .timeline-event-main span, .timeline-event-main small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; } .timeline-event-main strong { color: #e4eef9; font-size: 12px; } .timeline-event-main span { margin-top: 3px; color: #9db4ce; font-size: 11px; } .timeline-event-main small { margin-top: 4px; color: #7186a2; font-size: 10px; }
.timeline-event-side { display: grid; gap: 4px; min-width: 92px; text-align: right; } .timeline-event-side b { color: #81b7f2; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; } .timeline-event-side time { color: #7186a2; font-size: 10px; }
.timeline-empty { padding: 26px; border: 1px dashed #2a405f; border-radius: 11px; color: #7186a2; font-size: 11px; text-align: center; }
@media (max-width: 620px) { .timeline-summary { grid-template-columns: repeat(2, 1fr); } .timeline-event { grid-template-columns: 32px 1fr; } .timeline-event-side { grid-column: 2; display: flex; justify-content: space-between; text-align: left; } }

/* Mission Control */
.nav-divider { margin: 18px 12px 3px; color: #536985; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.nav-count { min-width: 20px; margin-left: auto; padding: 2px 6px; border-radius: 999px; color: #0b1727; background: #ffca73; font-size: 10px; font-weight: 800; text-align: center; }
.nav-icon-control { border: 1.5px solid currentColor; border-radius: 4px; background: linear-gradient(currentColor,currentColor) 3px 3px/4px 4px no-repeat, linear-gradient(currentColor,currentColor) 10px 3px/4px 4px no-repeat, linear-gradient(currentColor,currentColor) 3px 10px/4px 4px no-repeat, linear-gradient(currentColor,currentColor) 10px 10px/4px 4px no-repeat; }
.nav-icon-mail { border: 1.5px solid currentColor; border-radius: 4px; }
.nav-icon-mail::after { content: ""; position: absolute; inset: 3px 2px auto; height: 7px; border-bottom: 1.5px solid currentColor; transform: skewY(-28deg); }
.nav-icon-timeline { border: 1.5px solid currentColor; border-radius: 50%; background: linear-gradient(145deg, transparent 44%, currentColor 45% 53%, transparent 54%) 3px 8px/10px 6px no-repeat; }
.nav-icon-export { border: 1.5px solid currentColor; border-radius: 3px; background: linear-gradient(currentColor,currentColor) 4px 8px/8px 1.5px no-repeat; }
.nav-icon-export::after { content: ""; position: absolute; width: 5px; height: 5px; left: 5px; top: 3px; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
.control-view { display: grid; gap: 16px; }
.enrollment-panel { padding: 20px; }
.enrollment-actions { display: flex; align-items: end; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.enrollment-actions label { display: grid; gap: 7px; min-width: 170px; color: var(--muted); font-size: 11px; font-weight: 650; }
.enrollment-actions select { padding: 9px 10px; }
.enrollment-link { text-decoration: none; }
.enrollment-notice { margin: 13px 0 0; color: var(--muted); font-size: 11px; }
.analytics-panel { padding: 20px; }
.analytics-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin: 18px 0; }
.analytics-stat { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(9,17,31,.45); }
.analytics-stat small, .analytics-stat strong { display: block; }
.analytics-stat small { color: var(--muted); font-size: 10px; }
.analytics-stat strong { margin-top: 3px; font-size: 21px; }
.analytics-stat.ready strong { color: var(--green); } .analytics-stat.warning strong { color: var(--amber); } .analytics-stat.danger strong { color: var(--red); }
.analytics-chart { display: flex; align-items: end; gap: 5px; min-height: 170px; padding: 16px 4px 0; border-top: 1px solid var(--line); overflow-x: auto; }
.analytics-day { display: grid; grid-template-rows: 135px auto; align-items: end; min-width: 24px; height: 158px; text-align: center; }
.analytics-day small { margin-top: 7px; color: var(--muted); font-size: 9px; transform: rotate(-35deg); transform-origin: top center; white-space: nowrap; }
.analytics-stack { display: flex; align-items: end; justify-content: center; gap: 2px; height: 100%; }
.analytics-bar { display: block; width: 6px; min-height: 5px; border-radius: 4px 4px 1px 1px; background: var(--blue); box-shadow: 0 0 10px rgba(75,156,255,.2); }
.analytics-bar.ban { background: var(--red); } .analytics-bar.cooldown { background: var(--amber); } .analytics-bar.action { background: #b28cff; } .analytics-bar.error { background: #ef6c7a; } .analytics-bar.empty { height: 3px; background: var(--line-bright); opacity: .7; }
.analytics-empty { width: 100%; padding: 42px 20px; color: var(--muted); text-align: center; }
.export-view { display: grid; gap: 18px; max-width: 1120px; }
.export-hero { padding: 21px 24px; border: 1px solid #2b4e76; border-radius: 15px; background: linear-gradient(110deg, rgba(28,68,111,.56), rgba(16,27,45,.86) 68%); box-shadow: 0 20px 50px rgba(0,0,0,.14); }
.export-hero h3 { margin: 5px 0; font-size: 24px; }
.export-hero p { margin: 0; }
.export-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.export-card { display: grid; gap: 18px; padding: 20px; }
.export-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.backup-passphrase { display: grid; gap: 8px; color: #b9c7d9; font-size: 12px; font-weight: 650; }
.export-warning { margin: 0; padding: 11px 12px; border-left: 2px solid var(--amber); color: #d9b878; background: rgba(243,184,75,.08); font-size: 11px; }
.control-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 24px 26px; border: 1px solid #2b4e76; border-radius: 16px; background: linear-gradient(110deg, rgba(28,68,111,.56), rgba(16,27,45,.86) 68%); box-shadow: 0 20px 50px rgba(0,0,0,.14); }
.control-hero h3 { margin: 5px 0 5px; font-size: 24px; letter-spacing: -.03em; }
.control-hero p { margin: 0; }
.control-actions { display: flex; gap: 9px; flex: none; }
.control-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); gap: 16px; align-items: start; }
.attention-panel, .signals-panel { min-height: 420px; padding: 20px; }
.panel-count { padding: 5px 9px; border: 1px solid #2e5279; border-radius: 999px; color: #9fc6ef; background: rgba(75,156,255,.09); font-size: 10px; font-weight: 750; }
.attention-list, .control-signals { display: grid; gap: 8px; margin-top: 18px; }
.attention-row, .control-signal { display: grid; align-items: center; width: 100%; border-color: #203650; background: #0c1728; text-align: left; }
.attention-row { grid-template-columns: 34px 1fr auto; gap: 12px; padding: 13px; }
.attention-row:hover, .control-signal:hover { border-color: #42698f; background: #12243c; }
.attention-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #9dc8f5; background: rgba(75,156,255,.13); font-weight: 850; }
.attention-row.warning .attention-icon { color: #ffd27b; background: rgba(243,184,75,.14); }
.attention-row.critical .attention-icon { color: #ff9ba1; background: rgba(255,107,117,.14); }
.attention-main, .control-signal span:nth-child(2) { min-width: 0; }
.attention-main strong, .attention-main small, .control-signal strong, .control-signal small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attention-main strong, .control-signal strong { color: #e8f0fb; font-size: 12px; }
.attention-main small, .control-signal small { margin-top: 3px; color: #7890ad; font-size: 10px; }
.attention-arrow, .control-signal-arrow { color: #6e9ed2; font-size: 17px; }
.control-signal { grid-template-columns: 34px 1fr auto; gap: 11px; padding: 10px; }
.control-signal .timeline-icon { width: 30px; height: 30px; }
.control-signal.warning { border-left: 2px solid #e2aa41; }
.control-signal.error { border-left: 2px solid #ed6172; }
.control-signal.success { border-left: 2px solid #35d991; }
.text-button { padding: 4px 0; border: 0; color: #8fb9e7; background: transparent; font-size: 11px; }
.text-button:hover { transform: none; border: 0; background: transparent; box-shadow: none; color: #c3e0ff; }
.control-empty { display: grid; place-items: center; min-height: 290px; padding: 20px; color: #7890ad; text-align: center; }
.control-empty strong { color: #d7e5f4; font-size: 14px; }
.control-empty span { max-width: 250px; margin-top: 5px; font-size: 11px; }

/* Steam Mail */
.mail-view { display: grid; gap: 16px; }
.mail-toolbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 4px; }
.mail-toolbar h3 { margin: 5px 0 4px; font-size: 25px; letter-spacing: -.03em; }
.mail-toolbar p { margin: 0; }
.mail-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.mail-search { width: min(290px, 100%); }
.mail-unread { display: flex; align-items: center; gap: 7px; color: #9bb0c8; font-size: 11px; white-space: nowrap; }
.mail-unread input { width: auto; accent-color: var(--blue); }
.mail-notice { padding: 13px 15px; border: 1px solid #5a4828; border-radius: 11px; color: #ffd98e; background: rgba(243,184,75,.1); font-size: 12px; }
.mail-notice-error { border-color: #6d3540; color: #ffadb3; background: rgba(255,107,117,.1); }
.mail-layout { display: grid; grid-template-columns: minmax(340px, .78fr) minmax(440px, 1.22fr); gap: 16px; align-items: start; }
.mail-list-panel, .mail-detail-panel { min-height: 560px; padding: 18px; }
.mail-list-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 3px 13px; border-bottom: 1px solid var(--line); font-size: 12px; }
.mail-list { display: grid; gap: 7px; margin-top: 12px; }
.mail-row { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: start; width: 100%; padding: 12px; border-color: #203650; background: #0c1728; text-align: left; }
.mail-row:hover, .mail-row.selected { border-color: #42698f; background: #12243c; }
.mail-row.unread { border-left: 2px solid var(--blue); }
.mail-status { width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: #50657e; }
.mail-row.unread .mail-status { background: var(--blue); box-shadow: 0 0 0 4px rgba(75,156,255,.12); }
.mail-row-main { min-width: 0; }
.mail-row-main strong, .mail-row-main small, .mail-row-main span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row-main strong { color: #e8f0fb; font-size: 12px; }
.mail-row-main small { margin-top: 3px; color: #7fa5cf; font-size: 10px; }
.mail-row-main span { margin-top: 5px; color: #7890ad; font-size: 10px; }
.mail-row time { color: #6c819c; font-size: 10px; white-space: nowrap; }
.mail-list-empty, .mail-empty { display: grid; place-items: center; min-height: 420px; padding: 28px; color: #7890ad; text-align: center; }
.mail-empty { gap: 7px; }
.mail-empty strong { color: #d8e6f5; font-size: 15px; }
.mail-empty span:last-child { max-width: 280px; font-size: 11px; }
.mail-empty-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border: 1px solid #31557b; border-radius: 14px; color: #9ec9f7; background: rgba(75,156,255,.1); font-size: 21px; }
.mail-detail { animation: panel-in .25s ease; }
.mail-detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 3px 3px 17px; border-bottom: 1px solid var(--line); }
.mail-detail-head h3 { margin: 6px 0 5px; color: #eef5fc; font-size: 20px; line-height: 1.2; }
.mail-body { max-width: 76ch; padding: 24px 4px; color: #becde0; font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1120px) { .control-grid, .mail-layout { grid-template-columns: 1fr; } .mail-detail-panel { min-height: 420px; } }
@media (max-width: 720px) { .control-hero, .mail-toolbar { display: block; } .control-actions, .mail-actions { justify-content: flex-start; margin-top: 16px; } .mail-search { width: 100%; } .mail-list-panel { min-height: 0; } .mail-detail-panel { min-height: 360px; } }
@media (max-width: 620px) { .nav-divider { display: none; } .control-hero { padding: 18px; } .control-hero h3 { font-size: 20px; } .attention-panel, .signals-panel, .mail-list-panel, .mail-detail-panel { padding: 14px; } .mail-row { grid-template-columns: 8px 1fr; } .mail-row time { grid-column: 2; } }

/* Steam Authenticator */
.nav-icon-authenticator { border: 1.5px solid currentColor; border-radius: 50%; }
.nav-icon-authenticator::before { content: ""; position: absolute; inset: 4px; border: 1px solid currentColor; border-radius: 50%; }
.nav-icon-authenticator::after { content: ""; position: absolute; width: 1px; height: 5px; left: 7px; top: 2px; background: currentColor; transform-origin: 50% 7px; transform: rotate(35deg); }
.authenticator-view { display: grid; gap: 18px; }
.authenticator-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.authenticator-hero h3 { margin: 5px 0 4px; color: #f0f1f1; font-size: 22px; letter-spacing: -.03em; }
.authenticator-hero p { max-width: 650px; margin: 0; font-size: 12px; }
.authenticator-import { display: flex; align-items: flex-end; gap: 8px; min-width: min(410px, 100%); }
.authenticator-import label { display: grid; flex: 1; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.authenticator-import input { padding: 8px; font-size: 11px; }
.authenticator-import button { white-space: nowrap; }
.authenticator-panel { padding: 18px; }
.authenticator-list { display: grid; gap: 0; margin-top: 4px; }
.authenticator-row { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(130px, .5fr) auto; gap: 18px; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--line); }
.authenticator-row:last-child { border-bottom: 0; }
.authenticator-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.authenticator-icon { display: grid; place-items: center; width: 35px; height: 35px; flex: none; border: 1px solid #594821; border-radius: 4px; color: var(--blue); background: #252016; font: 700 9px ui-monospace, SFMono-Regular, Menlo, monospace; }
.authenticator-identity strong, .authenticator-identity small, .authenticator-identity time { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.authenticator-identity strong { color: #e9ecee; font-size: 12px; }
.authenticator-identity small, .authenticator-identity time { margin-top: 3px; color: var(--muted); font-size: 10px; }
.authenticator-identity time { color: #667176; font-size: 9px; }
.authenticator-code { display: grid; gap: 4px; }
.authenticator-code code { color: #edbf5e; font: 700 20px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.authenticator-code-meta { display: flex; justify-content: space-between; gap: 10px; color: #788389; font-size: 9px; }
.authenticator-code-meta small { color: inherit; font-size: inherit; }
.authenticator-code-meta span { color: #5e686d; }
.authenticator-progress { height: 3px; overflow: hidden; border-radius: 999px; background: #252a2d; }
.authenticator-progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--blue); transition: width .25s linear; }
.authenticator-actions { display: flex; gap: 6px; justify-content: flex-end; }
.authenticator-actions button { padding: 7px 9px; font-size: 10px; }
.authenticator-empty { display: grid; place-items: center; min-height: 180px; padding: 30px; color: #788389; text-align: center; }
.authenticator-empty strong { color: #d9dddf; font-size: 13px; }
.authenticator-empty span { max-width: 420px; margin-top: 6px; font-size: 11px; }
@media (max-width: 850px) { .authenticator-hero { display: block; } .authenticator-import { margin-top: 16px; } .authenticator-row { grid-template-columns: 1fr auto; } .authenticator-code { grid-column: 1; } .authenticator-actions { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; } }
@media (max-width: 520px) { .authenticator-import { display: grid; } .authenticator-row { grid-template-columns: 1fr; gap: 10px; } .authenticator-code, .authenticator-actions { grid-column: auto; grid-row: auto; } .authenticator-actions { flex-direction: row; justify-content: flex-start; } }

/* Editorial operations pass: flat, dense, deliberate. */
:root {
  --bg: #0d0f11;
  --surface: #14171a;
  --surface-raised: #1a1e22;
  --surface-soft: #101214;
  --line: #293037;
  --line-bright: #3b454d;
  --text: #e6e8e9;
  --muted: #8e989f;
  --blue: #d6a64b;
  --blue-deep: #a87929;
  --green: #73c58b;
  --amber: #e0aa4c;
  --red: #e27c7c;
  --shadow: none;
}
body { background: var(--bg); color: var(--text); }
button, input, select, textarea { border-radius: 4px; }
button { padding: 8px 11px; border-color: var(--line-bright); background: #191d20; transition: background .12s ease, border-color .12s ease, color .12s ease; }
button:hover { transform: none; border-color: #69747b; background: #22282d; box-shadow: none; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; box-shadow: none; }
.primary { color: #19130a; background: var(--blue); border-color: var(--blue); box-shadow: none; font-weight: 750; }
.primary:hover { color: #19130a; background: #e7bd68; }
.secondary { color: #c4cbd0; background: transparent; }
.ghost { color: #8d989f; }
.muted { color: var(--muted); }
.eyebrow, .dialog-kicker { color: #a9b0b4; font-size: 9px; letter-spacing: .12em; }
.app-shell { background: var(--bg); }
.sidebar { width: 220px; padding: 22px 12px 16px; border-right: 1px solid #252b30; background: #111416; }
.brand { padding: 0 8px 32px; }
.brand-mark { border-radius: 5px; background: #d6a64b; color: #17120b; box-shadow: none; }
.brand-mark.small { border-radius: 4px; }
.brand strong { color: #eef0f1; font-size: 13px; }
.brand small { color: #69747a; font-size: 8px; }
.sidebar nav { gap: 2px; }
.nav-divider { margin: 21px 10px 5px; color: #5e696f; font-size: 8px; letter-spacing: .13em; }
.nav-item { min-height: 34px; padding: 8px 10px; border: 1px solid transparent; color: #929da4; font-size: 12px; }
.nav-item:hover { color: #eceff0; background: #1a1e21; }
.nav-item.active { border-color: #4a3c24; background: #211e17; color: #e4b85f; box-shadow: inset 2px 0 var(--blue); }
.nav-icon { opacity: .7; transform: scale(.9); }
.sidebar-bottom { gap: 10px; }
.sidebar-status { padding: 9px 10px; border-color: #293137; border-radius: 4px; color: #768188; font-size: 10px; }
.main { max-width: 1600px; padding: 28px 34px 50px; }
.topbar { align-items: center; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #252b30; }
.topbar h2 { color: #f0f1f2; font-size: 27px; letter-spacing: -.035em; }
.topbar p { margin-top: 4px; font-size: 12px; }
.top-actions { gap: 8px; }
.user-chip { padding: 6px 9px; border-color: #313a40; border-radius: 4px; color: #aab2b7; background: transparent; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.top-actions button { font-size: 11px; }
.refresh-icon { font-size: 15px; }
.overview { grid-template-columns: repeat(4, 1fr); gap: 0; margin-bottom: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.metric { min-height: 68px; padding: 12px 17px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; animation: none; }
.metric:last-child { border-right: 0; }
.metric-icon { width: 24px; height: 24px; border-radius: 3px; color: #aeb6ba; background: #20262a; font-size: 11px; }
.metric-ready .metric-icon { color: var(--green); background: #19251c; }
.metric-warning .metric-icon { color: var(--amber); background: #282219; }
.metric-prime .metric-icon, .metric-neutral .metric-icon { background: #20252a; }
.metric-copy small { color: #99a3a8; font-size: 10px; }
.metric-copy strong { margin: 1px 0; color: #f2f3f3; font: 700 20px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.metric-copy em { color: #69747a; font-size: 9px; }
.signal-bar { min-height: 49px; margin-bottom: 25px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: #121618; animation: none; }
.signal-title { min-width: 190px; gap: 9px; }
.signal-title strong { color: #d9dddf; font-size: 11px; }
.signal-title small { color: #737e84; font-size: 9px; }
.signal-stat, .signal-next { padding-left: 16px; border-color: #2c3439; }
.signal-stat small, .signal-next small { color: #727d83; font-size: 9px; }
.signal-stat strong, .signal-next strong { margin-top: 0; color: #e0e4e5; font: 700 13px ui-monospace, SFMono-Regular, Menlo, monospace; }
.panel { border: 1px solid var(--line); border-radius: 4px; background: #14181b; box-shadow: none; }
.control-view { gap: 20px; }
.control-hero { align-items: center; padding: 0 0 17px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; }
.control-hero .eyebrow { display: none; }
.control-hero h3 { margin: 0 0 3px; color: #f0f1f1; font-size: 22px; letter-spacing: -.03em; }
.control-hero p { font-size: 12px; }
.control-actions { gap: 7px; }
.control-actions button { font-size: 11px; }
.control-grid { grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 22px; }
.attention-panel, .signals-panel { min-height: 360px; padding: 18px; }
.panel-head { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.panel h3 { margin-bottom: 3px; color: #eef0f1; font-size: 14px; }
.panel-head p { font-size: 10px; }
.panel-count { padding: 2px 6px; border: 0; border-radius: 3px; color: #d6a64b; background: #282219; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.attention-list, .control-signals { gap: 0; margin-top: 8px; }
.attention-row, .control-signal { border: 0; border-bottom: 1px solid #242b30; border-radius: 0; background: transparent; }
.attention-row:last-child, .control-signal:last-child { border-bottom: 0; }
.attention-row { grid-template-columns: 26px 1fr auto; gap: 10px; padding: 12px 4px; }
.attention-row:hover, .control-signal:hover { background: #1a1f22; }
.attention-icon { width: 22px; height: 22px; border-radius: 3px; color: #9ca6ab; background: #20262a; font-size: 11px; }
.attention-row.warning .attention-icon { color: var(--amber); background: #282219; }
.attention-row.critical .attention-icon { color: var(--red); background: #2a1d1f; }
.attention-main strong, .control-signal strong { color: #e5e8e9; font-size: 11px; }
.attention-main small, .control-signal small { color: #818c92; font-size: 10px; }
.attention-arrow, .control-signal-arrow { color: #69757b; font-size: 14px; }
.control-signal { grid-template-columns: 26px 1fr auto; gap: 10px; padding: 11px 4px; }
.control-signal .timeline-icon { width: 22px; height: 22px; border-radius: 3px; color: #bdc5c9; background: #20262a; font-size: 11px; }
.control-signal.warning { border-left: 0; }
.control-signal.error { border-left: 0; }
.control-signal.success { border-left: 0; }
.text-button { color: #a6afb4; font-size: 10px; }
.control-empty { min-height: 250px; color: #7f8a90; }
.control-empty strong { color: #d2d7d9; font-size: 12px; }
.control-empty span { font-size: 10px; }
.content-grid { grid-template-columns: minmax(480px, 1.05fr) minmax(400px, .95fr); gap: 22px; }
.accounts-panel { padding: 18px; }
.details-panel { min-height: 460px; padding: 18px; }
.filters { gap: 6px; margin: 14px 0 10px; }
input, select, textarea { border-radius: 3px; border-color: #303940; background: #101315; padding: 9px 10px; font-size: 12px; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); background: #151719; }
.filters select { width: 185px; }
.account-list { gap: 0; border-top: 1px solid var(--line); }
.account-row { gap: 10px; padding: 11px 4px; border: 0; border-bottom: 1px solid #242b30; border-radius: 0; background: transparent; }
.account-row:hover { border-color: #242b30; background: #1a1f22; }
.account-row.selected { border-color: var(--blue); box-shadow: inset 2px 0 var(--blue); background: #211e17; }
.avatar { width: 32px; height: 32px; border-radius: 4px; background: #242a2e; }
.avatar.large { width: 52px; height: 52px; }
.account-name { font-size: 12px; }
.account-meta { margin-top: 2px; color: #7f8a91; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.account-next-cooldown { color: #c2943e; font-size: 9px; }
.status-pill, .badge { border-radius: 3px; font-size: 9px; }
.status-pill { padding: 3px 6px; color: var(--green); background: #19251c; }
.status-pill.bad, .badge.bad { color: var(--red); background: #2a1d1f; }
.badge { padding: 3px 6px; color: #b6c0c5; background: #242a2e; }
.badge.live { color: #b5c7d0; background: #202a2e; }
.empty { min-height: 280px; color: #747f85; font-size: 12px; }
.details { animation: none; }
.detail-head { gap: 12px; margin-bottom: 17px; }
.detail-identity h3 { font-size: 18px; }
.status-badges { gap: 4px; margin-top: 6px; }
.health-grid, .stat-grid { gap: 6px; }
.health-card, .stat { min-height: 70px; padding: 10px; border: 1px solid #293137; border-radius: 3px; background: #111517; }
.health-card small, .health-card span, .stat small { color: #7d888e; font-size: 9px; }
.health-card strong { margin: 5px 0 2px; font-size: 11px; }
.stat strong { margin-top: 2px; color: #eef0f1; font: 700 18px ui-monospace, SFMono-Regular, Menlo, monospace; }
.detail-line { padding: 8px 0; border-bottom-color: #272f34; font-size: 11px; }
.detail-line strong { color: #d6dcdf; }
.note-row { gap: 6px; margin-top: 14px; }
.detail-actions { gap: 5px; margin-top: 14px; }
.detail-actions button { padding: 7px 9px; font-size: 10px; }
.matches-panel { margin-top: 17px; padding-top: 14px; }
.match-row { border-color: #252d32; border-radius: 3px; background: #111517; font-size: 10px; }
.rating-panel { margin: 14px 0 3px; padding: 12px; border: 1px solid #2e363b; border-radius: 3px; background: #111517; }
.rating-heading h4 { font-size: 12px; }
.rating-heading > strong { color: #d6a64b; font: 700 18px ui-monospace, SFMono-Regular, Menlo, monospace; }
.rating-chart polyline { stroke: #d6a64b; filter: none; }
.settings-panel { max-width: none; padding: 18px; border-radius: 4px; }
.settings-panel button { margin-top: 16px; }
.saved-badge { padding: 3px 6px; border-radius: 3px; color: var(--green); background: #19251c; font-size: 9px; }
.loadout-team { padding: 14px; border-radius: 3px; background: #111517; }
.dialog-card { padding: 25px; }
dialog { border-radius: 5px; background: #171b1e; }
.mail-toolbar { padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.mail-toolbar .eyebrow { display: none; }
.mail-toolbar h3 { margin: 0 0 4px; font-size: 22px; }
.mail-actions { gap: 7px; }
.mail-search { width: 260px; }
.mail-notice { border-radius: 3px; }
.mail-layout { gap: 22px; }
.mail-list-panel, .mail-detail-panel { min-height: 500px; padding: 16px; }
.mail-list-heading { padding-bottom: 10px; }
.mail-list { gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.mail-row { grid-template-columns: 7px 1fr auto; gap: 9px; padding: 11px 3px; border: 0; border-bottom: 1px solid #242b30; border-radius: 0; background: transparent; }
.mail-row:hover, .mail-row.selected { border-color: #242b30; background: #1a1f22; }
.mail-row.unread { border-left: 0; }
.mail-row-main strong { font-size: 11px; }
.mail-row-main small, .mail-row-main span { font-size: 9px; }
.mail-empty { min-height: 390px; }
.mail-empty-icon { width: 34px; height: 34px; border-radius: 3px; border-color: #394349; color: #a3adb1; background: #20262a; font-size: 16px; }
.mail-detail-head h3 { font-size: 17px; }
.mail-body { padding: 18px 3px; color: #bfc8cc; font-size: 12px; }
.timeline-panel { margin-top: 20px; padding-top: 18px; }
.timeline-stat, .timeline-event { border-radius: 3px; background: #111517; }
.timeline-stat-bar { opacity: .18; }
@media (max-width: 1120px) { .main { padding: 24px; } .content-grid { grid-template-columns: 1fr; } .details-panel { min-height: 0; } }
@media (max-width: 780px) { .sidebar { width: 205px; } .main { padding: 20px 16px 35px; } .overview { grid-template-columns: repeat(2, 1fr); } .metric:nth-child(2) { border-right: 0; } .metric:nth-child(3), .metric:nth-child(4) { border-top: 1px solid var(--line); } .signal-bar { gap: 10px 18px; } }
@media (max-width: 620px) { .main { padding: 16px 12px 28px; } .sidebar { border-right: 0; } .topbar { display: block; } .top-actions { margin-top: 14px; justify-content: space-between; } .control-hero { padding-bottom: 14px; } .control-actions { margin-top: 13px; } .mail-toolbar { display: block; } .mail-actions { justify-content: flex-start; margin-top: 13px; } .mail-search { width: 100%; } }

/* 3D control-room direction: lifted navy surfaces, depth and light. */
:root {
  --bg: #07101d;
  --surface: #111e32;
  --surface-raised: #182a44;
  --surface-soft: #0d192c;
  --line: #223b5d;
  --line-bright: #31527b;
  --text: #e8f1fb;
  --muted: #8aa0ba;
  --blue: #4d9fff;
  --blue-deep: #236fd1;
  --green: #35d99a;
  --amber: #efb74f;
  --red: #ff7180;
  --shadow: 0 30px 80px rgba(0,0,0,.45), 0 10px 24px rgba(0,0,0,.34);
}
body { min-height: 100vh; background: radial-gradient(ellipse at 50% -30%, #234a7d 0, transparent 48%), radial-gradient(ellipse at 100% 100%, #102948 0, transparent 40%), #07101d; }
button { border-radius: 8px; background: linear-gradient(145deg, #1c3352, #142641); box-shadow: inset 0 1px rgba(255,255,255,.055), 0 5px 12px rgba(0,0,0,.18); }
button:hover { transform: translateY(-1px); border-color: #5482b9; background: linear-gradient(145deg, #24436a, #182e4c); box-shadow: inset 0 1px rgba(255,255,255,.09), 0 9px 18px rgba(0,0,0,.25); }
button:active { transform: translateY(0); }
.primary { color: white; background: linear-gradient(145deg, #55a9ff 0%, #2a76d6 100%); border-color: #6ab6ff; box-shadow: inset 0 1px rgba(255,255,255,.25), 0 8px 18px rgba(34,111,207,.3); }
.primary:hover { color: white; background: linear-gradient(145deg, #72baff, #327fdf); }
.secondary { background: linear-gradient(145deg, #172b47, #102039); }
.ghost { background: transparent; box-shadow: none; }
.app-shell { width: 100%; min-height: 100vh; max-width: none; overflow: hidden; background: #0b1729; perspective: 1800px; }
.sidebar { width: 226px; padding: 24px 12px 16px; border-right: 1px solid #274366; background: linear-gradient(180deg, #081323 0%, #0a1525 72%, #0b1729 100%); box-shadow: inset -16px 0 35px rgba(0,0,0,.12), 8px 0 28px rgba(0,0,0,.16); transform: translateZ(24px); transform-style: preserve-3d; z-index: 2; }
.brand { padding: 0 9px 38px; }
.brand-mark { border-radius: 13px; background: linear-gradient(145deg, #5db2ff, #246fcf); box-shadow: 0 8px 20px rgba(39,118,215,.3), inset 0 1px rgba(255,255,255,.35); }
.brand-mark.small { border-radius: 9px; }
.nav-item { border-radius: 9px; }
.nav-item:hover { background: linear-gradient(90deg, rgba(58,99,151,.35), rgba(35,62,98,.18)); }
.nav-item.active { border-color: #28568e; background: linear-gradient(90deg, rgba(53,116,195,.38), rgba(24,53,91,.34)); color: #b8d9fb; box-shadow: inset 3px 0 var(--blue), inset 0 1px rgba(255,255,255,.07), 0 5px 16px rgba(0,0,0,.16); }
.sidebar-status { border-radius: 8px; background: rgba(14,31,53,.7); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.main { position: relative; max-width: none; padding: 31px 34px 48px; background: radial-gradient(ellipse at 72% 0%, rgba(39,88,149,.2), transparent 38%), linear-gradient(145deg, #0b1729, #091321 70%); transform-style: preserve-3d; }
.main::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, rgba(255,255,255,.035), transparent 17%, transparent 76%, rgba(75,156,255,.035)); mix-blend-mode: screen; }
.topbar { margin-bottom: 24px; padding-bottom: 0; border-bottom: 0; }
.topbar h2 { font-size: 31px; text-shadow: 0 2px 12px rgba(0,0,0,.28); }
.user-chip { background: #101f35; border-radius: 999px; box-shadow: inset 0 1px rgba(255,255,255,.04), 0 5px 13px rgba(0,0,0,.17); }
.overview { gap: 11px; margin-bottom: 14px; border: 0; background: transparent; }
.metric { min-height: 90px; padding: 15px 17px; border: 1px solid #223d62; border-radius: 14px; background: linear-gradient(145deg, rgba(23,43,71,.98), rgba(12,27,47,.98)); box-shadow: inset 0 1px rgba(255,255,255,.06), 0 11px 24px rgba(0,0,0,.2), 0 2px 3px rgba(0,0,0,.3); transform: translateZ(12px); transform-style: preserve-3d; transition: transform .22s ease, box-shadow .22s ease; }
.metric:hover { transform: translate3d(0,-3px,22px); box-shadow: inset 0 1px rgba(255,255,255,.09), 0 18px 30px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.28); }
.metric:last-child { border-right: 1px solid #223d62; }
.metric-icon { width: 36px; height: 36px; border-radius: 11px; background: rgba(71,126,192,.22); box-shadow: inset 0 1px rgba(255,255,255,.1), 0 5px 10px rgba(0,0,0,.16); }
.metric-ready .metric-icon { background: rgba(46,194,143,.17); }
.metric-warning .metric-icon { background: rgba(225,169,67,.17); }
.metric-copy strong { font-size: 24px; text-shadow: 0 2px 7px rgba(0,0,0,.3); }
.signal-bar { min-height: 68px; margin-bottom: 20px; padding: 12px 17px; border: 1px solid #285078; border-radius: 13px; background: linear-gradient(90deg, rgba(19,54,91,.88), rgba(14,30,52,.96)); box-shadow: inset 0 1px rgba(255,255,255,.07), 0 11px 23px rgba(0,0,0,.18); }
.signal-stat, .signal-next { border-color: #2c4d73; }
.panel { border: 1px solid #223b5d; border-radius: 15px; background: linear-gradient(145deg, rgba(18,35,59,.98), rgba(12,25,44,.98)); box-shadow: inset 0 1px rgba(255,255,255,.055), 0 16px 35px rgba(0,0,0,.23), 0 2px 4px rgba(0,0,0,.28); transform: translateZ(7px); transform-style: preserve-3d; }
.control-view { gap: 17px; }
.control-hero { padding: 20px 22px; border: 1px solid #285078; border-radius: 15px; background: linear-gradient(110deg, rgba(24,60,101,.62), rgba(14,30,52,.95) 73%); box-shadow: inset 0 1px rgba(255,255,255,.06), 0 15px 30px rgba(0,0,0,.2); }
.control-hero h3 { font-size: 24px; }
.attention-panel, .signals-panel { min-height: 410px; padding: 19px; }
.panel-head { border-bottom-color: #294766; }
.attention-row, .control-signal { border-bottom-color: #25405f; border-radius: 9px; background: rgba(12,27,47,.58); transform: translateZ(2px); transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.attention-row { margin: 4px 0; border: 1px solid #203956; }
.attention-row:hover, .control-signal:hover { border-color: #3d6794; background: #172c48; transform: translate3d(0,-2px,8px); }
.attention-icon, .control-signal .timeline-icon { background: rgba(70,125,190,.17); box-shadow: inset 0 1px rgba(255,255,255,.07); }
.control-signal { margin: 3px 0; border: 1px solid transparent; }
.control-empty { min-height: 270px; }
.content-grid { gap: 17px; }
.accounts-panel, .details-panel { padding: 19px; }
.details-panel { background: linear-gradient(145deg, rgba(20,39,65,.98), rgba(12,25,44,.98)); }
input, select, textarea { border-radius: 8px; border-color: #263f60; background: #0d1a2d; box-shadow: inset 0 1px rgba(255,255,255,.035); }
input:focus, select:focus, textarea:focus { background: #10213a; box-shadow: 0 0 0 3px rgba(75,156,255,.14), inset 0 1px rgba(255,255,255,.05); }
.account-list { gap: 7px; border-top: 0; }
.account-row { padding: 11px; border: 1px solid #213a5a; border-radius: 10px; background: linear-gradient(145deg, rgba(16,32,54,.84), rgba(11,24,42,.92)); box-shadow: inset 0 1px rgba(255,255,255,.035), 0 6px 13px rgba(0,0,0,.13); transform: translateZ(3px); transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.account-row:hover { border-color: #3b6592; background: linear-gradient(145deg, #172e4d, #10223b); transform: translate3d(0,-2px,10px); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 12px 22px rgba(0,0,0,.25); }
.account-row.selected { border-color: #4b9cff; box-shadow: inset 0 1px rgba(255,255,255,.08), 0 0 0 3px rgba(75,156,255,.11), 0 8px 20px rgba(0,0,0,.23); }
.avatar { width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 1px rgba(255,255,255,.12), 0 5px 11px rgba(0,0,0,.28); }
.avatar.large { width: 66px; height: 66px; }
.status-pill, .badge { border-radius: 999px; box-shadow: inset 0 1px rgba(255,255,255,.06); }
.health-card, .stat { border-radius: 10px; background: linear-gradient(145deg, rgba(12,27,47,.94), rgba(10,21,37,.98)); box-shadow: inset 0 1px rgba(255,255,255,.04), 0 5px 13px rgba(0,0,0,.15); }
.rating-panel { border-radius: 11px; background: linear-gradient(145deg, #142943, #0d1d32); box-shadow: inset 0 1px rgba(255,255,255,.055), 0 8px 18px rgba(0,0,0,.18); }
.rating-heading > strong { text-shadow: 0 2px 10px rgba(53,217,154,.25); }
.settings-panel { border-radius: 15px; }
.loadout-team { border-radius: 11px; background: linear-gradient(145deg, #142943, #0d1d32); box-shadow: inset 0 1px rgba(255,255,255,.04); }
dialog { border-radius: 15px; background: #12243b; box-shadow: 0 30px 80px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.08); }
.mail-toolbar { padding-bottom: 17px; border-bottom: 0; }
.mail-list-panel, .mail-detail-panel { min-height: 560px; border-radius: 15px; }
.mail-row { border-radius: 9px; background: rgba(12,27,47,.65); }
.mail-row:hover, .mail-row.selected { border-color: #3d6794; background: #172c48; }
.mail-empty-icon { border-radius: 12px; background: rgba(71,126,192,.17); box-shadow: inset 0 1px rgba(255,255,255,.08), 0 6px 13px rgba(0,0,0,.2); }
@media (max-width: 1120px) { body { display: block; padding: 0; } .app-shell { width: 100%; min-height: 100vh; } }
@media (max-width: 780px) { .metric { border-right: 1px solid #223d62; } .metric:nth-child(2) { border-right: 1px solid #223d62; } }

/* Mail workspace: keep scrolling and pointer events inside the message surfaces. */
.mail-view { min-width: 0; min-height: 0; }
.mail-view { position: relative; z-index: 1; isolation: isolate; transform: none; transform-style: flat; }
.mail-toolbar, .mail-actions { position: relative; z-index: 4; }
.mail-view .mail-toolbar, .mail-view .mail-notice, .mail-view .mail-layout { position: relative; z-index: 2; }
.mail-layout { min-width: 0; min-height: 0; height: min(680px, calc(100vh - 290px)); align-items: stretch; }
.mail-list-panel, .mail-detail-panel { min-width: 0; min-height: 0; height: 100%; overflow: hidden; display: flex; flex-direction: column; }
.mail-view .mail-list-panel, .mail-view .mail-detail-panel { transform: none; transform-style: flat; }
.mail-list-heading { flex: 0 0 auto; }
.mail-list-heading > div { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.mail-groups { display: flex; gap: 6px; flex: 0 0 auto; margin: 12px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(7,16,29,.62); }
.mail-group { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: transparent; font-size: 11px; text-align: left; }
.mail-view .mail-actions, .mail-view .mail-actions *, .mail-view .mail-groups, .mail-view .mail-groups *, .mail-view .mail-list, .mail-view .mail-list *, .mail-view .mail-detail, .mail-view .mail-detail * { pointer-events: auto; }
.mail-view .mail-actions > *, .mail-view .mail-group, .mail-view .mail-row, .mail-view .mail-detail { position: relative; z-index: 5; }
.mail-view .mail-actions button:hover, .mail-view .mail-actions button:active, .mail-view .mail-group:hover, .mail-view .mail-group:active, .mail-view .mail-row:hover, .mail-view .mail-row:active { transform: none; }
.mail-group:hover { color: var(--text); background: rgba(45,82,123,.25); }
.mail-group.active { border-color: #3f71a6; color: #f0f6fd; background: #17304d; box-shadow: inset 0 1px rgba(255,255,255,.07); }
.mail-group-count { min-width: 18px; padding: 2px 5px; border-radius: 999px; color: #a9cfff; background: rgba(75,156,255,.12); font-size: 10px; text-align: center; }
.mail-list { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; align-content: initial; gap: 7px; margin: 10px 0 0; padding: 0 6px 18px 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; isolation: isolate; }
.mail-row { flex: 0 0 auto; position: relative; z-index: 1; cursor: pointer; pointer-events: auto; }
.mail-detail-panel { position: relative; }
.mail-detail { display: block; flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding-right: 6px; scrollbar-gutter: stable; }
.mail-list-empty { min-height: 220px; flex: 1 1 auto; }
@media (max-width: 1120px) { .mail-layout { height: auto; } .mail-list-panel { height: 500px; } .mail-detail-panel { height: 500px; } }
@media (max-width: 620px) { .mail-list-panel { height: 420px; } .mail-detail-panel { height: 420px; } }

/* Cross-browser interaction plane: keep the depth visual, keep hit-testing 2D. */
.app-shell { perspective: none; }
.sidebar, .main, .metric, .panel, .attention-row, .control-signal, .account-row { transform-style: flat; }
.sidebar, .main, .metric, .panel, .attention-row, .control-signal, .account-row { transform: none; }
.metric:hover { transform: translateY(-3px); }
.attention-row:hover, .control-signal:hover, .account-row:hover { transform: translateY(-2px); }
.mail-view, .mail-view .mail-list-panel, .mail-view .mail-detail-panel { transform: none !important; transform-style: flat !important; }

/* Final visual system: flat black / amber operations console.
   This intentionally supersedes the earlier navy depth pass. */
:root {
  --bg: #090807;
  --surface: #12100d;
  --surface-raised: #1b1510;
  --surface-soft: #0e0c0a;
  --line: #332619;
  --line-bright: #60421f;
  --text: #f2eadc;
  --muted: #9c8b75;
  --blue: #f0a52a;
  --blue-deep: #b86416;
  --green: #8ccf66;
  --amber: #ffbd3d;
  --red: #ed7665;
  --shadow: 0 18px 42px rgba(0, 0, 0, .36);
}

html, body { background: #090807; }
body { color: var(--text); background: radial-gradient(circle at 82% -12%, rgba(151, 76, 12, .18), transparent 34rem), #090807; }

/* No perspective, no translateZ, no floating planes. */
.app-shell, .sidebar, .main, .metric, .panel, .signal-bar,
.control-hero, .attention-row, .control-signal, .account-row,
.health-card, .stat, .rating-panel, .loadout-team, dialog,
.mail-view, .mail-list-panel, .mail-detail-panel, .mail-row,
.timeline-stat, .timeline-event {
  perspective: none !important;
  transform: none !important;
  transform-style: flat !important;
}

.app-shell { background: #090807; }
.sidebar { width: 226px; border-right: 1px solid #302218; background: #0d0b09; box-shadow: 12px 0 28px rgba(0, 0, 0, .18); }
.brand-mark { background: linear-gradient(145deg, #ffc64d, #d87518); color: #1c1106; box-shadow: 0 7px 18px rgba(208, 106, 18, .24); }
.brand strong { color: #f5ecdd; }
.brand small { color: #786651; }
.nav-item { color: #9c8b75; }
.nav-item:hover { color: #ffe1a4; background: #1d150e; }
.nav-item.active { border-color: #704716; background: linear-gradient(90deg, rgba(223, 135, 26, .25), rgba(223, 135, 26, .05)); color: #ffd276; box-shadow: inset 3px 0 #f0a52a; }
.sidebar-status { border-color: #352619; color: #927f68; background: #120e0a; }
.main { max-width: none; background: radial-gradient(ellipse at 82% 0%, rgba(142, 70, 8, .13), transparent 35%), #0b0908; }
.main::before { background: linear-gradient(112deg, rgba(255, 194, 79, .025), transparent 23%, transparent 78%, rgba(255, 126, 27, .025)); mix-blend-mode: normal; }
.topbar { border-bottom-color: #2b2118; }
.topbar h2 { color: #fff5e5; text-shadow: none; }
.topbar p { color: #9c8b75; }
.user-chip { border-color: #3d2a19; color: #cbb696; background: #130f0b; box-shadow: none; }

button { border-color: #5a3c1d; background: #1b140e; color: #f2e5d0; box-shadow: inset 0 1px rgba(255, 199, 91, .08), 0 6px 16px rgba(0, 0, 0, .22); }
button:hover, button:active { transform: none !important; border-color: #d28a25; background: #2b1c0d; box-shadow: inset 0 1px rgba(255, 207, 112, .12), 0 8px 18px rgba(0, 0, 0, .3); }
button:disabled { transform: none !important; }
.primary { color: #1d1206; background: linear-gradient(180deg, #ffc247, #d77a17); border-color: #f0a52a; box-shadow: 0 7px 17px rgba(204, 108, 18, .27); }
.primary:hover { color: #1d1206; background: linear-gradient(180deg, #ffd36c, #e58a21); }
.secondary { color: #e3bd7e; background: #1a130c; }
.ghost { color: #b49a75; }
.danger-action { color: #f08a78; border-color: #713526; background: #2a1713; }
.danger-action:hover { color: #ffd0c4; border-color: #c45a42; background: #3a1e18; }
.muted { color: #9c8b75; }

.overview { border-color: #332619; background: transparent; }
.metric { border-color: #47321e; background: linear-gradient(145deg, #1b140d, #110d09); box-shadow: inset 0 1px rgba(255, 204, 107, .06), 0 12px 26px rgba(0, 0, 0, .28); }
.metric:hover { border-color: #a96b20; background: #23170c; box-shadow: inset 0 1px rgba(255, 204, 107, .09), 0 14px 28px rgba(0, 0, 0, .34); }
.metric-icon { color: #ffd47a; background: #3a260f; box-shadow: none; }
.metric-ready .metric-icon { color: #a8e477; background: #1e3219; }
.metric-warning .metric-icon { color: #ffc247; background: #39250f; }
.metric-prime .metric-icon, .metric-neutral .metric-icon { color: #f0b44d; background: #2a1d10; }
.metric-copy small { color: #a89579; }
.metric-copy strong { color: #fff3de; text-shadow: none; }
.metric-copy em { color: #786651; }
.signal-bar { border-color: #5b3b1a; background: linear-gradient(90deg, #28170a, #15100b 75%); box-shadow: inset 0 1px rgba(255, 193, 74, .07), 0 12px 25px rgba(0, 0, 0, .3); }
.signal-stat, .signal-next { border-color: #513619; }
.signal-title strong, .signal-stat strong, .signal-next strong { color: #f1dfc0; }
.signal-title small, .signal-stat small, .signal-next small { color: #9a8467; }

.panel { border-color: #3c2b1c; background: linear-gradient(145deg, #17120e, #100d0a); box-shadow: inset 0 1px rgba(255, 203, 101, .05), 0 16px 34px rgba(0, 0, 0, .31); }
.control-hero { border: 0; border-bottom: 1px solid #3d2a19; background: transparent; box-shadow: none; }
.control-hero h3, .panel h3 { color: #fff1d7; }
.panel-head { border-bottom-color: #332619; }
.panel-count { color: #ffbf42; background: #38230d; }
.attention-row, .control-signal { border: 0; border-bottom: 1px solid #30231a; background: transparent; }
.attention-row:hover, .control-signal:hover { border-color: #80531c; background: #21150b; }
.attention-icon, .control-signal .timeline-icon { color: #d9b16e; background: #2c1e11; box-shadow: none; }
.attention-row.warning .attention-icon { color: #ffc247; background: #3a250e; }
.attention-row.critical .attention-icon { color: #ee8372; background: #38201c; }
.attention-main strong, .control-signal strong { color: #eee1ce; }
.attention-main small, .control-signal small { color: #a08d75; }

input, select, textarea { border-color: #49331e; background: #100d0a; color: #f2eadc; box-shadow: inset 0 1px rgba(255, 197, 82, .04); }
input::placeholder, textarea::placeholder { color: #76634d; }
input:focus, select:focus, textarea:focus { border-color: #e1952b; background: #171008; box-shadow: 0 0 0 3px rgba(231, 164, 43, .18); }
.account-list { border-top-color: #332619; }
.account-row { border-color: #48321e; background: #15100c; box-shadow: inset 0 1px rgba(255, 198, 86, .04), 0 7px 16px rgba(0, 0, 0, .22); }
.account-row:hover { border-color: #a66a20; background: #24170c; box-shadow: inset 0 1px rgba(255, 201, 92, .08), 0 10px 21px rgba(0, 0, 0, .3); }
.account-row.selected { border-color: #e0962b; box-shadow: inset 3px 0 #f0a52a, 0 0 0 1px rgba(240, 165, 42, .18); background: #2a1a0c; }
.account-name, .detail-identity h3 { color: #f5e8d3; }
.account-meta, .health-card small, .health-card span, .stat small { color: #98846a; }
.avatar { background: #2a1d11; box-shadow: inset 0 1px rgba(255, 207, 117, .09), 0 5px 12px rgba(0, 0, 0, .32); }
.status-pill { color: #a8e477; background: #1d3219; }
.status-pill.bad, .badge.bad { color: #f08a78; background: #38201d; }
.badge { color: #e5cda8; background: #2a1d11; }
.badge.live { color: #ffd078; background: #39250f; }
.health-card, .stat, .timeline-stat, .timeline-event { border-color: #38291c; background: #120e0b; box-shadow: inset 0 1px rgba(255, 196, 82, .04); }
.detail-line { border-bottom-color: #30231a; color: #a18c70; }
.detail-line strong { color: #e8d8bc; }
.rating-panel { border-color: #593b1a; background: linear-gradient(145deg, #1f150b, #120e0a); }
.rating-heading > strong { color: #ffbd3d; text-shadow: none; }
.rating-chart line { stroke: #48331f; }
.rating-chart polyline { stroke: #ffb832; filter: none; }
.loadout-team { border-color: #38291c; background: #120e0b; }
dialog { border-color: #69451c; background: #17110c; box-shadow: 0 30px 80px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 196, 82, .08); }
dialog::backdrop { background: rgba(5, 3, 1, .78); }

.mail-toolbar { border-bottom-color: #332619; }
.mail-notice { border-color: #76501d; color: #ffd58a; background: rgba(204, 133, 27, .12); }
.mail-groups { border-color: #49321e; background: #110d09; }
.mail-group { color: #a18b6e; }
.mail-group:hover { color: #ffe1a4; background: #24170b; }
.mail-group.active { border-color: #b87520; color: #ffe0a2; background: #3a220d; box-shadow: inset 0 1px rgba(255, 203, 104, .08); }
.mail-group-count { color: #ffd276; background: rgba(240, 165, 42, .16); }
.mail-row { border-color: #48321e; background: #15100c; }
.mail-row:hover, .mail-row.selected { border-color: #b87520; background: #29190c; }
.mail-row-main strong { color: #f0e2cc; }
.mail-row-main small, .mail-row-main span { color: #9b866b; }
.mail-empty-icon { border-color: #5c3d1b; color: #efbd62; background: #2b1c0d; box-shadow: none; }

.timeline-stat-bar { background: #d9851d; }
.timeline-stat-bar.cooldown { background: #ffbd3d; }
.timeline-stat-bar.action { background: #e39a38; }
.timeline-stat-bar.error { background: #d7614f; }
.timeline-event:hover { background: #20150c; }
.timeline-icon { color: #f0ba59; background: #2c1e11; }
.nav-count { color: #1c1106; background: #ffbd3d; }
.toast { border-color: #6b461b; background: #21150b; box-shadow: var(--shadow); }
.export-hero { border-color: #5b3b1a; background: linear-gradient(110deg, #28170a, #15100b 75%); box-shadow: inset 0 1px rgba(255, 193, 74, .07), 0 12px 25px rgba(0, 0, 0, .3); }
.analytics-stat { border-color: #38291c; background: #120e0b; }
.analytics-stat.ready strong { color: #a8e477; } .analytics-stat.warning strong { color: #ffc247; } .analytics-stat.danger strong { color: #f08a78; }
.analytics-chart { border-top-color: #38291c; }
.analytics-bar { background: #d9851d; box-shadow: none; } .analytics-bar.ban, .analytics-bar.error { background: #d7614f; } .analytics-bar.cooldown { background: #ffbd3d; } .analytics-bar.action { background: #e39a38; } .analytics-bar.empty { background: #48331f; }
.export-warning { color: #ffd58a; background: rgba(204, 133, 27, .12); }

@media (max-width: 760px) { .analytics-summary, .export-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 780px) { .metric { border-right-color: #332619; } .metric:nth-child(2) { border-right-color: #332619; } }

/* Match the monochrome, flat visual language of maro's bio site. */
:root {
  color-scheme: dark;
  font-family: Inter, Geist, "Helvetica Neue", Arial, sans-serif;
  color: #f5f5f5;
  background: #0d0d0d;
  --bg: #0d0d0d;
  --surface: #111;
  --surface-raised: #171717;
  --surface-soft: #0f0f0f;
  --line: #242424;
  --line-bright: #383838;
  --text: #f5f5f5;
  --muted: #888;
  --blue: #aaa;
  --blue-deep: #777;
  --green: #43b581;
  --amber: #faa61a;
  --red: #f04747;
  --shadow: none;
}

html, body { min-width: 320px; background: #0d0d0d; }
body { color: #f5f5f5; background: #0d0d0d; }
button { padding: 9px 12px; border: 1px solid #292929; border-radius: 3px; color: #ddd; background: #151515; box-shadow: none; transition: color .18s ease, background .18s ease, border-color .18s ease; }
button:hover, button:active { transform: none !important; border-color: #555; color: #fff; background: #1b1b1b; box-shadow: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 1px solid #f5f5f5; outline-offset: 3px; }
.primary, .primary:hover { border-color: #ddd; color: #111; background: #ddd; box-shadow: none; }
.secondary { border-color: #333; color: #bbb; background: transparent; }
.secondary:hover { color: #fff; background: #1a1a1a; }
.ghost { border-color: transparent; color: #888; background: transparent; }
.muted { color: #888; }
.error { color: #ff8d8d; }

.auth-shell { background: #0d0d0d; }
.auth-card { width: min(400px, 100%); padding: 30px; border: 1px solid #292929; border-radius: 4px; background: #111; box-shadow: none; backdrop-filter: none; animation: none; }
.login-brand { gap: 11px; margin-bottom: 26px; }
.brand-mark, .brand-mark.small { border-radius: 3px; color: #111; background: #ddd; box-shadow: none; }
.eyebrow, .dialog-kicker { color: #777; font-size: 10px; font-weight: 500; letter-spacing: .12em; }
.auth-card h1 { font-size: 27px; font-weight: 400; letter-spacing: -.045em; }
.auth-lead { color: #888; }
.auth-card label, .dialog-card label, .settings-panel label { color: #999; }
.auth-footer { border-top-color: #242424; color: #777; }
.secure-dot, .live-dot { box-shadow: none; }

.app-shell { background: #0d0d0d; }
.sidebar { width: 224px; padding: 22px 12px 16px; border-right: 1px solid #242424; background: #0d0d0d; box-shadow: none; }
.brand { padding-bottom: 28px; }
.brand strong { color: #f5f5f5; font-weight: 500; }
.brand small { color: #777; }
.nav-divider { color: #626262; letter-spacing: .1em; }
.nav-item { min-height: 38px; padding: 9px 10px; border-radius: 3px; color: #888; }
.nav-item:hover { color: #f5f5f5; background: #171717; }
.nav-item.active { border-color: #292929; color: #f5f5f5; background: #171717; box-shadow: inset 2px 0 #aaa; }
.sidebar-status { border-color: #242424; border-radius: 3px; color: #888; background: #111; }
.main { max-width: none; padding: 30px 32px 42px; background: #0d0d0d; }
.main::before { content: none; }
.topbar { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #242424; }
.topbar h2 { color: #f5f5f5; font-size: 25px; font-weight: 400; letter-spacing: -.04em; text-shadow: none; }
.topbar p { color: #888; }
.user-chip { border-color: #292929; border-radius: 3px; color: #aaa; background: #111; box-shadow: none; }
.toast { border-color: #383838; border-radius: 3px; background: #171717 !important; box-shadow: none; }

.overview { gap: 0; margin-bottom: 14px; border: 1px solid #242424; border-radius: 3px; background: #111; }
.metric, .metric:hover { min-height: 78px; padding: 13px 14px; border: 0; border-right: 1px solid #242424; border-radius: 0; background: transparent; box-shadow: none; animation: none; }
.metric:last-child { border-right: 0; }
.metric-icon { width: 28px; height: 28px; border-radius: 3px; color: #aaa; background: #1c1c1c; }
.metric-ready .metric-icon { color: #43b581; background: #14221c; }
.metric-warning .metric-icon { color: #faa61a; background: #241c10; }
.metric-prime .metric-icon, .metric-neutral .metric-icon { color: #aaa; background: #1c1c1c; }
.metric-copy small { color: #888; }
.metric-copy strong { color: #f5f5f5; font-size: 22px; font-weight: 400; }
.metric-copy em { color: #666; }
.signal-bar { gap: 18px; border: 1px solid #242424; border-radius: 3px; background: #111; box-shadow: none; }
.signal-stat, .signal-next { border-color: #292929; }
.signal-title strong, .signal-stat strong, .signal-next strong { color: #ddd; }
.signal-title small, .signal-stat small, .signal-next small { color: #777; }

.panel, .details-panel, .accounts-panel, .settings-panel, .timeline-panel, .mail-list-panel, .mail-detail-panel { border: 1px solid #292929; border-radius: 3px; background: #111; box-shadow: none; }
.panel h3, .control-hero h3 { color: #eee; font-weight: 400; letter-spacing: -.02em; }
.panel-head { border-bottom-color: #242424; }
.panel-count { border: 0; border-radius: 3px; color: #aaa; background: #1c1c1c; font-weight: 400; }
.control-hero { padding: 15px 0; border: 0; border-bottom: 1px solid #242424; border-radius: 0; background: transparent; box-shadow: none; }
.control-hero h3 { font-size: 20px; }
.control-hero .muted { margin-top: 5px; }
.attention-panel, .signals-panel, .analytics-panel, .enrollment-panel { padding: 16px; }
.attention-row, .control-signal { border: 0; border-bottom: 1px solid #242424; border-radius: 0; background: transparent; }
.attention-row:hover, .control-signal:hover { border-color: #333; background: #171717; }
.attention-icon, .control-signal .timeline-icon { border-radius: 3px; color: #aaa; background: #1c1c1c; box-shadow: none; }
.attention-row.warning .attention-icon { color: #faa61a; background: #241c10; }
.attention-row.critical .attention-icon { color: #f04747; background: #251313; }
.attention-main strong, .control-signal strong { color: #ddd; }
.attention-main small, .control-signal small { color: #777; }
.control-empty { color: #777; }

input, select, textarea { border: 1px solid #292929; border-radius: 3px; color: #f5f5f5; background: #111; box-shadow: none; }
input::placeholder, textarea::placeholder { color: #666; }
input:focus, select:focus, textarea:focus { border-color: #666; background: #111; box-shadow: none; }
.account-list { gap: 0; border-top: 1px solid #242424; }
.account-row, .account-row:hover { padding: 11px 4px; border: 0; border-bottom: 1px solid #242424; border-radius: 0; color: #ddd; background: transparent; box-shadow: none; }
.account-row.selected { border-color: #333; box-shadow: inset 2px 0 #aaa; background: #171717; }
.account-name, .detail-identity h3 { color: #f5f5f5; }
.account-meta, .health-card small, .health-card span, .stat small { color: #888; }
.avatar { border-radius: 50%; background: #222; box-shadow: none; }
.status-pill, .badge { border-radius: 3px; box-shadow: none; }
.status-pill { color: #43b581; background: #14221c; }
.status-pill.bad, .badge.bad { color: #f04747; background: #251313; }
.badge { color: #aaa; background: #1c1c1c; }
.badge.live { color: #faa61a; background: #241c10; }
.health-card, .stat, .timeline-stat, .timeline-event, .analytics-stat { border-color: #242424; border-radius: 3px; background: #0f0f0f; box-shadow: none; }
.detail-line { border-bottom-color: #242424; color: #888; }
.detail-line strong { color: #ddd; }
.rating-panel, .loadout-team { border-color: #292929; border-radius: 3px; background: #0f0f0f; box-shadow: none; }
.rating-heading > strong, .next-cooldown-value { color: #ccc !important; text-shadow: none; }
.rating-chart line { stroke: #333; }
.rating-chart polyline { stroke: #aaa; filter: none; }
.timeline-stat-bar, .timeline-stat-bar.cooldown, .timeline-stat-bar.action { background: #888; }
.timeline-stat-bar.error { background: #f04747; }
.timeline-event:hover { background: #171717; }
.timeline-icon { border-radius: 3px; color: #aaa; background: #1c1c1c; }
.analytics-chart { border-top-color: #242424; }
.analytics-bar, .analytics-bar.cooldown, .analytics-bar.action { background: #888; box-shadow: none; }
.analytics-bar.ban, .analytics-bar.error { background: #f04747; }
.analytics-bar.empty { background: #333; }
.analytics-stat.ready strong { color: #43b581; }
.analytics-stat.warning strong { color: #faa61a; }
.analytics-stat.danger strong { color: #f04747; }
.enrollment-notice, .export-warning, .mail-notice { border-radius: 3px; }
.enrollment-notice, .export-warning { color: #aaa; background: #171717; }
.mail-toolbar { border-bottom-color: #242424; }
.mail-notice { border-color: #383838; color: #ccc; background: #171717; }
.mail-groups { border-color: #292929; border-radius: 3px; background: #0f0f0f; }
.mail-group { border-radius: 3px; color: #888; }
.mail-group:hover, .mail-group.active { border-color: #333; color: #f5f5f5; background: #1a1a1a; box-shadow: none; }
.mail-group-count { border-radius: 3px; color: #ccc; background: #292929; }
.mail-row, .mail-row:hover, .mail-row.selected { border-color: #242424; border-radius: 0; background: transparent; }
.mail-row:hover, .mail-row.selected { background: #171717; }
.mail-row-main strong { color: #eee; }
.mail-row-main small, .mail-row-main span { color: #888; }
.mail-empty-icon { border-color: #333; border-radius: 3px; color: #aaa; background: #1b1b1b; box-shadow: none; }
.export-hero { border: 0; border-bottom: 1px solid #242424; border-radius: 0; background: transparent; box-shadow: none; }
.dialog-card, dialog { border-color: #333; border-radius: 4px; color: #f5f5f5; background: #111; box-shadow: none; }
dialog::backdrop { background: rgba(0, 0, 0, .78); }

@media (max-width: 1120px) { .main { padding: 24px; } }
@media (max-width: 780px) {
  .sidebar { width: 205px; }
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(3), .metric:nth-child(4) { border-top: 1px solid #242424; }
}
@media (max-width: 620px) {
  .main { padding: 18px 14px 28px; }
  .sidebar { width: 100%; }
  .auth-card { padding: 24px; }
  .topbar h2 { font-size: 22px; }
  .control-hero { display: block; }
  .signal-bar { align-items: flex-start; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
