/* admin.22softwares.com — the company palette, arranged as an operations dashboard. */

:root {
  --abyss: #062421;
  --abyss-2: #0b3531;
  --abyss-3: #0f4540;
  --aurora: #3ee0c4;
  --foam: #cfe9e3;
  --sea-mist: #8fb7ae;
  --teal-ink: #0b6e62;
  --lagoon: #138a7c;
  --ok: #3ee0c4;
  --warn: #f2c879;
  --critical: #ff8f7a;
  --line: rgba(62, 224, 196, 0.18);
  --line-soft: rgba(207, 233, 227, 0.1);
  --surface: var(--abyss-2);
  --surface-2: var(--abyss-3);
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 10px;
  --ff: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ff-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 8px 24px rgba(0, 0, 0, 0.22);
  color-scheme: dark;
}

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

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font: 15px/1.5 var(--ff);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.012em; color: #fff; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--aurora); outline-offset: 2px; border-radius: 6px; }

.n, .mono, .card-value, table { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--ff-mono); font-size: 0.92em; }
.muted { color: var(--sea-mist); }
.bad { color: var(--critical); }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.link { color: var(--aurora); text-underline-offset: 0.2em; }
.linkish { background: none; border: 0; padding: 0; color: var(--aurora); text-align: left; cursor: pointer; text-decoration: underline; text-underline-offset: 0.2em; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 20; background: var(--aurora); color: var(--abyss); padding: 10px 16px; border-radius: 0 0 var(--radius-sm) 0; }
.skip:focus { left: 0; }

.boot { display: grid; place-items: center; min-height: 100vh; color: var(--sea-mist); padding: 24px; }

/* ---------- shell ---------- */

.shell { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: 18px;
  padding: 18px 12px; background: var(--abyss-2);
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; padding: 0 8px; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--aurora); color: var(--abyss); font-weight: 700; font-size: 14px;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.navlink {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: var(--radius-sm); color: var(--sea-mist); text-decoration: none; font-size: 14px;
}
.navlink:hover { background: rgba(207, 233, 227, 0.07); color: var(--foam); }
.navlink.is-active { background: rgba(62, 224, 196, 0.14); color: var(--aurora); font-weight: 600; }
.icon { width: 19px; height: 19px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-foot { margin-top: auto; padding: 0 10px; font-size: 11px; color: var(--sea-mist); opacity: 0.7; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 22px; background: rgba(6, 36, 33, 0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.topbar-title { font-size: 20px; }
.topbar-stamp { font-size: 12px; color: var(--sea-mist); }
.topbar-user { display: flex; align-items: center; gap: 12px; }
.who { display: flex; flex-direction: column; text-align: right; line-height: 1.3; }
.who-name { font-size: 13px; font-weight: 600; }
.who-role { font-size: 11px; color: var(--sea-mist); }

.view { padding: 18px 22px 48px; min-width: 0; }
.view:focus { outline: none; }
.screen { display: flex; flex-direction: column; gap: 18px; }

/* ---------- panels, grids ---------- */

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.panel-inset { background: rgba(6, 36, 33, 0.45); border-radius: var(--radius); box-shadow: none; padding: 12px 14px; }
.panel-warn { border-color: rgba(242, 200, 121, 0.35); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head h2 { font-size: 15px; letter-spacing: 0.01em; }
.panel-head h3 { font-size: 14px; }
.panel-sub { font-size: 12px; color: var(--sea-mist); margin-top: 2px; }
.panel-actions, .panel-actions-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.grid { display: grid; gap: 14px; min-width: 0; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .grid[data-cols='2'], .grid[data-cols='3'] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .grid[data-cols='3'] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.split { display: grid; gap: 14px; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split-messages { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.split-pms { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.stack-panels { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.block { min-width: 0; }

/* ---------- cards ---------- */

.cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(186px, 1fr)); }
@media (min-width: 1120px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cards-tight { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; box-shadow: var(--shadow);
}
.card[data-level='warn'] { border-color: rgba(242, 200, 121, 0.35); }
.card[data-level='critical'] { border-color: rgba(255, 143, 122, 0.45); }
.card-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sea-mist); }
.card-value { font-size: 27px; font-weight: 600; line-height: 1.15; color: #fff; letter-spacing: -0.02em; }
.card[data-level='warn'] .card-value { color: var(--warn); }
.card[data-level='critical'] .card-value { color: var(--critical); }
.card-note { font-size: 11.5px; color: var(--sea-mist); }
.spark { width: 100%; height: 44px; margin-top: 6px; }

/* ---------- alerts ---------- */

.alerts { display: flex; flex-wrap: wrap; gap: 10px; }
.alert, .alerts-clear {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); flex: 1 1 260px;
}
.alert[data-level='warn'] { border-color: rgba(242, 200, 121, 0.4); background: rgba(242, 200, 121, 0.07); }
.alert[data-level='critical'] { border-color: rgba(255, 143, 122, 0.45); background: rgba(255, 143, 122, 0.08); }

/* ---------- tables ---------- */

.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table caption { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sea-mist); padding: 10px 6px 6px; }
.table th {
  text-align: left; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--sea-mist); padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td.n, .table th.n { text-align: right; }
.table td.fit, .table th.fit { width: 1%; white-space: nowrap; }
.table tbody tr:hover { background: rgba(207, 233, 227, 0.04); }
.row-click { cursor: pointer; }
.row-click.is-selected { background: rgba(62, 224, 196, 0.1); box-shadow: inset 2px 0 0 var(--aurora); }
.is-bot td { opacity: 0.6; }
.row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag { font-size: 10.5px; padding: 1px 7px; border-radius: 999px; background: rgba(207, 233, 227, 0.08); color: var(--sea-mist); }

.paging { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; flex-wrap: wrap; }
.paging-info { font-size: 12px; color: var(--sea-mist); }
.paging-buttons { display: flex; gap: 8px; }

/* ---------- pills, bars, meters ---------- */

.pill {
  display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
  background: rgba(62, 224, 196, 0.14); color: var(--ok); border: 1px solid rgba(62, 224, 196, 0.3);
}
.pill[data-level='warn'] { background: rgba(242, 200, 121, 0.14); color: var(--warn); border-color: rgba(242, 200, 121, 0.35); }
.pill[data-level='critical'] { background: rgba(255, 143, 122, 0.14); color: var(--critical); border-color: rgba(255, 143, 122, 0.38); }

.share-cell { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.share-n { font-size: 11.5px; color: var(--sea-mist); min-width: 34px; text-align: right; }
.sharebar { flex: 1; height: 6px; border-radius: 999px; background: rgba(207, 233, 227, 0.1); overflow: hidden; min-width: 48px; }
.sharebar-fill { display: block; height: 100%; border-radius: 999px; background: var(--aurora); }

.meter { display: flex; flex-direction: column; gap: 5px; margin: 6px 0 12px; font-size: 12.5px; }
.meter-head { display: flex; justify-content: space-between; gap: 10px; color: var(--sea-mist); }
.meter-track { height: 9px; border-radius: 999px; background: rgba(207, 233, 227, 0.1); overflow: hidden; }
.meter-fill { display: block; height: 100%; background: var(--aurora); }
.meter[data-level='warn'] .meter-fill { background: var(--warn); }
.meter[data-level='critical'] .meter-fill { background: var(--critical); }

.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; }
.bar-head { display: flex; justify-content: space-between; gap: 10px; }
.bar-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 7px; border-radius: 999px; background: rgba(207, 233, 227, 0.09); overflow: hidden; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--lagoon), var(--aurora)); }

.cores { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px 16px; margin: 8px 0 4px; }
.core { display: grid; grid-template-columns: 26px 1fr 42px; align-items: center; gap: 8px; font-size: 12px; }
.core-label { color: var(--sea-mist); }
.core-track { height: 7px; border-radius: 999px; background: rgba(207, 233, 227, 0.1); overflow: hidden; }
.core-fill { display: block; height: 100%; background: var(--aurora); width: 0; }
.core[data-level='warn'] .core-fill { background: var(--warn); }
.core[data-level='critical'] .core-fill { background: var(--critical); }
.core-n { text-align: right; color: var(--sea-mist); }

.sync { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.sync-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 7px; border-bottom: 1px solid var(--line-soft); }
.sync-row:last-of-type { border-bottom: 0; }
.sync-note { font-size: 12px; color: var(--sea-mist); }

/* ---------- controls ---------- */

.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn {
  border: 1px solid var(--line); background: transparent; color: var(--foam);
  border-radius: var(--radius-sm); padding: 6px 13px; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: rgba(207, 233, 227, 0.08); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-solid { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; font-weight: 600; }
.btn-solid:hover:not(:disabled) { background: var(--lagoon); }
.btn-quiet { background: rgba(207, 233, 227, 0.05); }
.btn-small { padding: 3px 9px; font-size: 12px; }
.btn-wide { width: 100%; padding: 10px; }
.button-row { display: flex; gap: 8px; flex-wrap: wrap; }
.button-row-tight { gap: 5px; flex-wrap: nowrap; }

.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.seg { border: 0; background: transparent; color: var(--sea-mist); padding: 5px 11px; font-size: 12.5px; cursor: pointer; }
.seg + .seg { border-left: 1px solid var(--line); }
.seg:hover { background: rgba(207, 233, 227, 0.07); color: var(--foam); }
.seg[aria-pressed='true'] { background: rgba(62, 224, 196, 0.16); color: var(--aurora); font-weight: 600; }

.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--sea-mist); cursor: pointer; }
.switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 34px; height: 19px; border-radius: 999px; background: rgba(207, 233, 227, 0.14); border: 1px solid var(--line); position: relative; transition: background 0.15s; }
.switch-knob { position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--sea-mist); transition: transform 0.15s, background 0.15s; }
.switch-input:checked + .switch-track { background: rgba(62, 224, 196, 0.35); }
.switch-input:checked + .switch-track .switch-knob { transform: translateX(15px); background: var(--aurora); }
.switch-input:focus-visible + .switch-track { outline: 2px solid var(--aurora); outline-offset: 2px; }

.input {
  width: 100%; background: rgba(6, 36, 33, 0.6); border: 1px solid rgba(94, 145, 138, 0.6);
  border-radius: var(--radius-sm); padding: 8px 11px; font-size: 14px;
}
.input::placeholder { color: rgba(143, 183, 174, 0.7); }
.input-search { width: min(320px, 60vw); }
textarea.input { resize: vertical; min-height: 110px; }
.field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 12px; }
.field label { font-size: 12px; color: var(--sea-mist); }
.field .hint, .hint { font-size: 11.5px; color: var(--sea-mist); }
.field input:not(.code-input), .field select, .field textarea { width: 100%; background: rgba(6, 36, 33, 0.6); border: 1px solid rgba(94, 145, 138, 0.6); border-radius: var(--radius-sm); padding: 8px 11px; }

/* ---------- states ---------- */

.empty { display: flex; flex-direction: column; gap: 4px; padding: 22px 16px; text-align: center; color: var(--sea-mist); font-size: 13px; }
.empty strong { color: var(--foam); font-size: 14px; }
.errorbox { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid rgba(255, 143, 122, 0.4); background: rgba(255, 143, 122, 0.07); font-size: 13px; }
.errorbox strong { color: var(--critical); }
.errorbox[data-kind='forbidden'] { border-color: rgba(242, 200, 121, 0.4); background: rgba(242, 200, 121, 0.07); }
.errorbox[data-kind='forbidden'] strong { color: var(--warn); }

.skel { background: linear-gradient(90deg, rgba(207, 233, 227, 0.06), rgba(207, 233, 227, 0.13), rgba(207, 233, 227, 0.06)); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius); }
.skel-card { height: 96px; }
.skel-row { height: 34px; border-radius: 8px; }
.skel-block { height: 120px; }
.skel-table { display: flex; flex-direction: column; gap: 7px; }
.chart-skeleton { height: 260px; border-radius: var(--radius); background: rgba(207, 233, 227, 0.05); animation: shimmer 1.4s linear infinite; background-size: 300% 100%; background-image: linear-gradient(90deg, rgba(207, 233, 227, 0.05), rgba(207, 233, 227, 0.11), rgba(207, 233, 227, 0.05)); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

.action-note, .detail-note { font-size: 12.5px; padding: 8px 12px; border-radius: var(--radius-sm); background: rgba(62, 224, 196, 0.1); border: 1px solid var(--line); color: var(--foam); }
.action-note[data-kind='error'], .detail-note[data-kind='error'] { background: rgba(255, 143, 122, 0.1); border-color: rgba(255, 143, 122, 0.4); }

/* ---------- charts ---------- */

.chart { width: 100%; }
.chart-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.chart-title { font-size: 12px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--sea-mist); font-weight: 600; }
.chart-summary { font-size: 12px; color: var(--sea-mist); margin-top: 6px; }
.live-now { font-size: 13px; color: var(--foam); margin-bottom: 8px; font-variant-numeric: tabular-nums; }

.u-legend { font-size: 11.5px; color: var(--sea-mist); margin-top: 2px; }
.u-legend .u-marker { border-width: 3px !important; }
.u-legend th, .u-legend td { font-weight: 500; }
.u-legend .u-value { color: var(--foam); }
.u-select { background: rgba(62, 224, 196, 0.12); }
.u-cursor-x, .u-cursor-y { border-color: rgba(207, 233, 227, 0.3) !important; }
.u-cursor-pt { box-shadow: none !important; }
.uplot, .u-wrap { max-width: 100%; }

/* ---------- messages / detail ---------- */

.split > .panel-detail { align-self: start; }
.detail-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.detail-head h3 { font-size: 16px; }
.facts { display: grid; grid-template-columns: minmax(84px, auto) minmax(0, 1fr); gap: 5px 14px; margin: 0; font-size: 13px; }
.facts dt { color: var(--sea-mist); font-size: 12px; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.message-body { background: rgba(6, 36, 33, 0.5); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 12px 14px; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 340px; overflow-y: auto; }
.reply { display: flex; flex-direction: column; }

/* ---------- sign-in ---------- */

/* Sign-in: one card on a quiet field of colour. The only screen an unauthenticated visitor ever sees. */
.signin { position: relative; display: grid; place-items: center; min-height: 100vh; padding: 24px; overflow: hidden; }
.signin-glow {
  position: absolute; inset: -30% -10% auto; height: 70vh; pointer-events: none;
  background:
    radial-gradient(48% 55% at 28% 30%, rgba(62, 224, 196, 0.16), transparent 70%),
    radial-gradient(45% 50% at 78% 18%, rgba(19, 138, 124, 0.22), transparent 72%);
  filter: blur(6px);
}
.signin-card {
  position: relative; width: min(430px, 100%); padding: 32px 30px 26px;
  border-radius: 26px; border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(15, 69, 64, 0.92), rgba(11, 53, 49, 0.96)),
    var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 30px 70px -30px rgba(0, 0, 0, 0.75);
}
/* A hairline of aurora along the top edge, the way the site marks its own panels. */
.signin-card::before {
  content: ''; position: absolute; inset: -1px -1px auto; height: 1px; border-radius: 26px 26px 0 0;
  background: linear-gradient(90deg, transparent, rgba(62, 224, 196, 0.55), transparent);
}
.signin-head { margin-bottom: 22px; }
.signin-card .brand { margin: 0 0 20px; }
.signin-eyebrow {
  margin: 0 0 6px; font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--aurora);
}
.signin-card h1 { font-size: 27px; margin: 0 0 8px; letter-spacing: -0.02em; }
.signin-card h2 { font-size: 16px; margin-bottom: 4px; }
.signin-sub { font-size: 13.5px; line-height: 1.55; color: var(--sea-mist); margin: 0; max-width: 34ch; }
.signin-form { display: grid; gap: 16px; margin-top: 4px; }
.signin-form .field { margin: 0; }
.signin-form label { font-size: 12.5px; letter-spacing: 0.01em; }
.signin-form input {
  height: 46px; border-radius: 13px; background: rgba(6, 36, 33, 0.65);
  border: 1px solid rgba(207, 233, 227, 0.14); transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.signin-form input:hover { border-color: rgba(207, 233, 227, 0.26); }
.signin-form input:focus-visible {
  outline: none; border-color: var(--aurora); background: rgba(6, 36, 33, 0.9);
  box-shadow: 0 0 0 4px rgba(62, 224, 196, 0.16);
}
.signin-form .code-input {
  font-family: var(--ff-mono); font-size: 19px; letter-spacing: 0.42em; text-indent: 0.42em; text-align: center;
}
.signin-form .btn-wide {
  height: 48px; margin-top: 4px; border-radius: 13px; font-size: 15px;
  background: linear-gradient(180deg, var(--lagoon), var(--teal-ink));
  border-color: transparent; color: #fff; box-shadow: 0 10px 24px -14px rgba(62, 224, 196, 0.9);
}
.signin-form .btn-wide:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.signin-form .btn-wide:disabled { filter: saturate(0.6); transform: none; }
.signin-status {
  font-size: 13px; padding: 10px 13px; border-radius: 12px; margin: 0 0 16px;
  background: rgba(255, 143, 122, 0.12); border: 1px solid rgba(255, 143, 122, 0.4); color: var(--foam);
}
.signin-status[data-kind='ok'] { background: rgba(62, 224, 196, 0.12); border-color: var(--line); }
.signin-foot {
  display: flex; align-items: flex-start; gap: 8px; margin: 22px 0 0; padding-top: 16px;
  border-top: 1px solid var(--line-soft); font-size: 12px; line-height: 1.5; color: var(--sea-mist);
}
.signin-lock { color: var(--aurora); font-size: 11px; line-height: 1.6; }
@media (prefers-reduced-motion: reduce) {
  .signin-form .btn-wide:hover:not(:disabled) { transform: none; }
}
.code-input { width: 100%; letter-spacing: 0.4em; font-size: 20px; text-align: center; font-family: var(--ff-mono); background: rgba(6, 36, 33, 0.6); border: 1px solid rgba(94, 145, 138, 0.6); border-radius: var(--radius-sm); padding: 10px; }
.setup { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.qr-wrap { display: flex; justify-content: center; padding: 14px 0; }
.qr { border-radius: 8px; }
.secret-label { font-size: 12px; color: var(--sea-mist); margin-bottom: 4px; }
.secret { font-family: var(--ff-mono); font-size: 15px; letter-spacing: 0.08em; word-spacing: 0.35em; background: rgba(6, 36, 33, 0.6); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 18px; overflow-wrap: anywhere; }

/* ---------- narrow screens ---------- */

@media (max-width: 1100px) {
  .split, .split-messages, .split-pms { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidebar {
    position: sticky; top: 0; z-index: 6; height: auto; flex-direction: row; align-items: center; gap: 10px;
    padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto;
  }
  .brand-word, .sidebar-foot, .navlink-label { display: none; }
  .brand { padding: 0; }
  .sidebar-nav { flex-direction: row; gap: 4px; }
  .navlink { padding: 9px; }
  .icon { width: 21px; height: 21px; }
  .topbar { padding: 12px 16px; }
  .view { padding: 14px 16px 40px; }
  .topbar-title { font-size: 18px; }
}

@media (max-width: 480px) {
  .cards { grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); }
  .card-value { font-size: 23px; }
  .grid[data-cols='2'], .grid[data-cols='3'] { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 14px; border-radius: var(--radius); }
  .topbar-user { width: 100%; justify-content: space-between; }
  .who { text-align: left; }
  .input-search { width: 100%; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 0 0; }
  .facts dd { margin-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .skel, .chart-skeleton { background: rgba(207, 233, 227, 0.08); }
}
