:root {
  color-scheme: dark;
  --bg: #070a08;
  --bg-soft: #0a0e0c;
  --surface: #101512;
  --surface-2: #151b18;
  --surface-3: #1a211d;
  --surface-hover: #202923;
  --line-soft: rgba(213, 232, 220, .075);
  --line: rgba(213, 232, 220, .13);
  --line-strong: rgba(213, 232, 220, .22);
  --text: #f1f5f2;
  --muted: #95a099;
  --muted-2: #717c76;
  --lime: #29c77d;
  --lime-dark: #1c9b62;
  --lime-soft: rgba(41, 199, 125, .12);
  --blue: #72a8ff;
  --red: #ef6b73;
  --amber: #efb95e;
  --green: #42cf88;
  --radius-sm: 11px;
  --radius: 18px;
  --radius-lg: 24px;
  --shadow-card: 0 18px 45px rgba(0, 0, 0, .18);
  --shadow-modal: 0 32px 100px rgba(0, 0, 0, .6);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 84% -8%, rgba(23, 119, 75, .19), transparent 30%),
    radial-gradient(circle at 22% 25%, rgba(46, 74, 59, .11), transparent 27%),
    linear-gradient(145deg, #080b09, var(--bg) 58%);
  font-size: 14px;
  line-height: 1.45;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image: linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.01) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
::selection { color: #04140b; background: rgba(69, 217, 147, .86); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(41, 199, 125, .28);
  outline-offset: 2px;
}
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--lime);
  text-decoration: none;
  transition: transform .16s ease;
}
.skip-link:focus { transform: translateY(0); }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.shell { position: relative; min-height: 100vh; display: grid; grid-template-columns: 276px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 100vh;
  min-height: 620px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  border-right: 1px solid var(--line-soft);
  background: rgba(7, 10, 8, .9);
  backdrop-filter: blur(24px);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.brand { display: flex; align-items: center; gap: 11px; min-height: 54px; padding: 0 8px 20px; }
.brand-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(58, 224, 143, .46);
  border-radius: 13px;
  color: #dffbed;
  background: linear-gradient(145deg, #25bd77, #107149);
  box-shadow: 0 0 28px rgba(33, 188, 116, .18), inset 0 1px rgba(255,255,255,.2);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -.06em;
}
.brand-copy { min-width: 0; }
.brand-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.025em; white-space: nowrap; }
.brand-copy span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 10px; letter-spacing: .03em; white-space: nowrap; }
.environment-badge { margin-left: auto; border: 1px solid var(--line); border-radius: 7px; padding: 4px 6px; color: var(--muted); background: var(--surface); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.sidebar-close { display: none; margin-left: auto; width: 38px; height: 38px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-size: 25px; }
.nav { display: grid; gap: 16px; }
.nav-group { display: grid; gap: 4px; }
.nav-section { margin: 0 10px 5px; color: #59635e; font-size: 9px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.nav-item {
  position: relative;
  min-height: 52px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  appearance: none;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .16s ease;
}
.nav-item > svg { width: 19px; height: 19px; margin-left: 5px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.nav-copy { min-width: 0; }
.nav-copy strong { display: block; color: inherit; font-size: 13px; font-weight: 650; }
.nav-copy small { display: block; overflow: hidden; margin-top: 2px; color: var(--muted-2); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.nav-item::after { content: ""; position: absolute; inset: 11px auto 11px -1px; width: 2px; border-radius: 2px; background: var(--lime); opacity: 0; transform: scaleY(.4); transition: .16s ease; }
.nav-item:hover { color: #d8e2dc; border-color: var(--line-soft); background: rgba(255,255,255,.025); }
.nav-item.active { color: var(--text); border-color: rgba(52, 185, 118, .18); background: linear-gradient(90deg, rgba(41,199,125,.13), rgba(41,199,125,.045)); }
.nav-item.active::after { opacity: 1; transform: scaleY(1); }
.nav-item.active > svg { color: var(--lime); }
.nav-live { width: 7px; height: 7px; margin-right: 3px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(66, 207, 136, .6); }
.sidebar-foot { margin-top: auto; padding: 18px 5px 0; }
.connection-card { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-soft); border-radius: 13px; padding: 11px 12px; background: rgba(255,255,255,.018); }
.connection-card > div { min-width: 0; }
.connection-card strong { display: block; font-size: 11px; font-weight: 650; }
.connection-card span:not(.pulse-dot) { display: block; margin-top: 2px; color: var(--muted-2); font-size: 9px; }
.connection-card.offline .pulse-dot { background: var(--red); box-shadow: 0 0 10px rgba(239,107,115,.5); }
.sidebar-foot > p { margin: 9px 5px 0; color: #59625d; font-size: 9px; }
.pulse-dot { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(66, 207, 136, .55); }
.sidebar-scrim { display: none; }

.main { position: relative; min-width: 0; width: 100%; max-width: 1740px; margin: 0 auto; padding: 18px clamp(24px, 3.2vw, 56px) 72px; }
.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 calc(clamp(24px, 3.2vw, 56px) * -1) 22px;
  padding: 17px clamp(24px, 3.2vw, 56px);
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7,10,8,.96) 68%, rgba(7,10,8,.76));
  backdrop-filter: blur(18px);
}
.topbar::after { content: ""; position: absolute; right: clamp(24px, 3.2vw, 56px); bottom: 0; left: clamp(24px, 3.2vw, 56px); height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.topbar-leading { min-width: 0; display: flex; align-items: center; gap: 13px; }
.icon-button.menu-button { display: none; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(27px, 2.6vw, 38px); line-height: 1.05; letter-spacing: -.045em; }
h2 { margin-bottom: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.03em; }
h3 { margin-bottom: 8px; font-size: 16px; line-height: 1.3; letter-spacing: -.02em; }
.eyebrow { margin-bottom: 7px; color: var(--lime); font-size: 9px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-separator { color: #48524d; }
.page-description { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.muted { color: var(--muted); line-height: 1.58; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.command-trigger {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 7px 8px 7px 11px;
  color: var(--muted);
  background: rgba(16,21,18,.72);
  cursor: pointer;
  transition: .16s ease;
}
.command-trigger:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.command-trigger svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.command-trigger > span { font-size: 11px; }
kbd { border: 1px solid var(--line); border-bottom-color: var(--line-strong); border-radius: 6px; padding: 3px 6px; color: var(--muted); background: rgba(255,255,255,.035); font-family: inherit; font-size: 9px; font-weight: 700; }
.update-state { min-height: 42px; display: flex; align-items: center; gap: 9px; border-left: 1px solid var(--line); padding: 0 5px 0 14px; }
.update-state > div { display: grid; gap: 1px; }
.update-state strong { font-size: 10px; font-weight: 650; }
.updated { color: var(--muted-2); font-size: 9px; white-space: nowrap; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; appearance: none; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--surface); cursor: pointer; transition: .16s ease; }
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.refresh-button.is-loading svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.view { display: none; animation: rise .22s ease; }
.view.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } }
.overview-hero {
  position: relative;
  min-height: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  align-items: center;
  gap: 30px;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(68, 184, 124, .22);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3.5vw, 46px);
  background:
    radial-gradient(circle at 80% 35%, rgba(35, 172, 105, .17), transparent 27%),
    linear-gradient(135deg, rgba(19, 30, 24, .97), rgba(11, 15, 13, .97));
  box-shadow: var(--shadow-card), inset 0 1px rgba(255,255,255,.025);
}
.overview-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 60%, rgba(255,255,255,.018)); }
.overview-hero-copy { position: relative; z-index: 2; max-width: 690px; }
.overview-hero h2 { max-width: 670px; margin: 9px 0 12px; font-size: clamp(28px, 4vw, 48px); line-height: 1.04; letter-spacing: -.052em; }
.overview-hero .muted { max-width: 600px; margin-bottom: 0; }
.hero-status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 27px; }
.hero-clock { color: var(--muted-2); font-size: 10px; }
.system-visual { position: relative; justify-self: center; width: 230px; height: 230px; display: grid; place-items: center; }
.system-ring { position: absolute; border: 1px solid rgba(61, 200, 130, .23); border-radius: 50%; }
.ring-one { inset: 17px; animation: orbit 16s linear infinite; border-style: dashed; }
.ring-two { inset: 49px; border-color: rgba(213,232,220,.14); }
.system-core { position: relative; z-index: 2; width: 74px; height: 74px; display: grid; place-items: center; border: 1px solid rgba(69,217,147,.45); border-radius: 23px; color: #dffbed; background: linear-gradient(145deg, #1eb271, #0d6040); box-shadow: 0 0 60px rgba(41,199,125,.24); font-size: 27px; font-weight: 850; }
.system-label { position: absolute; right: -6px; bottom: 32px; border-left: 1px solid var(--lime-dark); padding-left: 10px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .13em; line-height: 1.5; }
@keyframes orbit { to { transform: rotate(360deg); } }

.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 18px; }
.metrics-grid.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metric {
  position: relative;
  min-width: 0;
  min-height: 132px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px 20px;
  background: linear-gradient(145deg, rgba(22,29,25,.98), rgba(14,19,16,.98));
  box-shadow: inset 0 1px rgba(255,255,255,.018);
}
.metric::before { content: ""; position: absolute; top: 0; right: 20px; left: 20px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent, var(--lime)), transparent); opacity: .55; }
.metric::after { content: ""; position: absolute; right: -35px; top: -40px; width: 110px; height: 110px; border-radius: 50%; background: var(--accent, var(--lime)); filter: blur(70px); opacity: .08; }
.metric-label { position: relative; color: var(--muted); font-size: 11px; }
.metric-value { position: relative; margin-top: 19px; overflow-wrap: anywhere; font-size: clamp(27px, 2.8vw, 37px); font-weight: 720; font-variant-numeric: tabular-nums; letter-spacing: -.055em; line-height: 1; }
.metric-sub { position: relative; margin-top: 10px; color: var(--muted-2); font-size: 10px; line-height: 1.4; }
.skeleton { min-height: 132px; }
.skeleton::after, .chat-skeleton span { background: linear-gradient(90deg, rgba(255,255,255,.025), rgba(255,255,255,.075), rgba(255,255,255,.025)); background-size: 200% 100%; animation: shimmer 1.35s ease-in-out infinite; }
.skeleton::after { inset: 19px; width: auto; height: auto; border-radius: 11px; filter: none; opacity: 1; }
@keyframes shimmer { to { background-position: -200% 0; } }

.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sync-layout { align-items: start; margin-bottom: 18px; }
.panel {
  min-width: 0;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: linear-gradient(145deg, rgba(17,23,20,.96), rgba(13,18,15,.96));
  box-shadow: inset 0 1px rgba(255,255,255,.018);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 21px; padding-bottom: 17px; border-bottom: 1px solid var(--line-soft); }
.panel-head.outside { align-items: end; margin: 30px 2px 14px; padding-bottom: 0; border-bottom: 0; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(50, 190, 119, .25);
  border-radius: 999px;
  padding: 6px 10px;
  color: #73dea8;
  background: rgba(30, 142, 88, .11);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 7px currentColor; }
.badge.bad { color: #ff9399; border-color: rgba(239,107,115,.28); background: rgba(142,42,50,.15); }
.badge.warn { color: #f1c26f; border-color: rgba(239,185,94,.26); background: rgba(145,102,32,.14); }
.badge.neutral { color: #a9b4ae; border-color: var(--line); background: rgba(255,255,255,.035); }
.badge.neutral::before { box-shadow: none; background: #76827b; }
.button-row { display: flex; align-items: center; gap: 9px; margin-top: 21px; }
.button-row.wrap { flex-wrap: wrap; }
.button {
  min-height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  color: #dfe6e2;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 660;
  text-decoration: none;
  cursor: pointer;
  transition: color .14s ease, border-color .14s ease, background .14s ease, transform .14s ease, box-shadow .14s ease;
}
.button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-hover); transform: translateY(-1px); }
.button:active { transform: scale(.985); }
.button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button.primary { color: #04150c; border-color: #31ce84; background: linear-gradient(180deg, #36d68b, #24b974); box-shadow: 0 8px 26px rgba(34, 178, 109, .13), inset 0 1px rgba(255,255,255,.28); }
.button.primary:hover { color: #031109; border-color: #54e3a0; background: linear-gradient(180deg, #45de96, #2bc47c); }
.button.success { color: #70dda7; border-color: rgba(66,207,136,.28); background: rgba(37,125,79,.13); }
.button.danger { color: #ff969c; border-color: rgba(239,107,115,.3); background: rgba(139,43,51,.14); }
.button.danger:hover { border-color: rgba(255,129,136,.5); background: rgba(139,43,51,.22); }
.button.danger.ghost { margin-left: auto; background: transparent; }
.button.is-loading { pointer-events: none; }
.button-spinner { width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

.status-list { display: grid; gap: 0; border: 1px solid var(--line-soft); border-radius: 13px; overflow: hidden; background: rgba(255,255,255,.012); }
.status-row { min-height: 45px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 13px; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; }
.status-row:last-child { border-bottom: 0; }
.status-row strong { max-width: 64%; color: var(--text); font-weight: 620; text-align: right; overflow-wrap: anywhere; }
.progress { height: 7px; overflow: hidden; margin: 15px 0 8px; border-radius: 999px; background: #202722; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime-dark), #40da91); }
.progress.indeterminate span { width: 36%; animation: depth-pulse 1.25s ease-in-out infinite; }
@keyframes depth-pulse { from { transform: translateX(-110%); } to { transform: translateX(290%); } }
.depth-facts { margin-top: 18px; }
.depth-progress { display: grid; gap: 12px; margin-top: 18px; }
.depth-progress[hidden] { display: none; }
.depth-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.depth-step { border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; color: var(--muted); background: var(--bg-soft); font-size: 11px; font-weight: 650; text-align: center; }
.depth-step.complete { color: var(--green); border-color: rgba(66,207,136,.28); background: rgba(37,125,79,.1); }
.depth-step.active { color: #6ee0aa; border-color: rgba(41,199,125,.38); background: var(--lime-soft); }
.depth-meta { display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 11px; }
.depth-meta strong { color: var(--text); }
.secondary { color: var(--muted-2); font-size: 10px; line-height: 1.45; }

.config-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.config-grid label, .login-form label, .dialog-field { color: var(--muted); font-size: 11px; font-weight: 550; }
.config-grid input, .config-grid select, .login-form input, .dialog-field textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  outline: 0;
  color: var(--text);
  background: var(--bg-soft);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.config-grid input:hover, .config-grid select:hover, .login-form input:hover, .dialog-field textarea:hover { border-color: var(--line-strong); }
.config-grid input:focus, .config-grid select:focus, .login-form input:focus, .dialog-field textarea:focus { border-color: var(--lime-dark); background: #0c120f; box-shadow: 0 0 0 3px rgba(41,199,125,.12); }
.form-actions { grid-column: 1 / -1; display: flex; gap: 9px; margin-top: 6px; }
.form-error { min-height: 20px; margin: 0; color: #ff8c93; font-size: 11px; }

.table-panel { overflow: hidden; }
.table-wrap { position: relative; overflow-x: auto; margin: 0 -5px; padding: 0 5px 4px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
table { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
th { position: sticky; z-index: 2; top: 0; padding: 0 12px 12px; color: var(--muted-2); background: #0f1411; font-size: 9px; font-weight: 750; letter-spacing: .11em; text-align: left; text-transform: uppercase; }
td { padding: 14px 12px; border-top: 1px solid var(--line-soft); font-size: 12px; vertical-align: top; }
tbody tr { transition: background .13s ease; }
tbody tr:hover { background: rgba(255,255,255,.022); }
td .secondary { display: block; margin-top: 4px; }
.pager { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.pager-summary { align-self: center; margin-right: auto; color: var(--muted-2); font-size: 10px; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding: 12px 0; line-height: 1.55; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; }

.feedback-list { display: grid; gap: 13px; }
.feedback-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: linear-gradient(145deg, var(--surface), #0e1310); }
.feedback-card::before { content: ""; position: absolute; inset: 18px auto 18px 0; width: 2px; border-radius: 2px; background: var(--lime-dark); opacity: .65; }
.feedback-top { display: flex; justify-content: space-between; gap: 14px; }
.feedback-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted-2); font-size: 10px; }
.feedback-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.feedback-photo { display: block; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.feedback-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .2s ease; }
.feedback-photo:hover img { transform: scale(1.025); }
.feedback-text { margin-top: 14px; border: 1px solid var(--line-soft); border-radius: 12px; padding: 13px; color: #d4dcd7; background: rgba(0,0,0,.15); line-height: 1.55; white-space: pre-wrap; }
.cancellation-state { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 14px; border: 1px solid rgba(239,185,94,.19); border-radius: 12px; padding: 11px 13px; color: var(--muted); background: rgba(113,80,25,.1); font-size: 11px; }
.cancellation-state strong { color: var(--text); }
.feedback-card .button-row { padding-top: 14px; border-top: 1px solid var(--line-soft); }

.advisor-meta { margin-top: 20px; }
.advisor-filters { width: fit-content; max-width: 100%; margin-top: 13px; border: 1px solid var(--line-soft); border-radius: 13px; padding: 4px; background: rgba(0,0,0,.15); }
.advisor-filters .button { min-height: 35px; border-color: transparent; background: transparent; }
.advisor-filters .button.primary { color: #d9f8e8; border-color: rgba(41,199,125,.24); background: var(--lime-soft); box-shadow: none; }
.advisor-list { display: grid; gap: 12px; }
.advisor-card { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.advisor-card.moderated { grid-template-columns: 1fr; border-color: rgba(239,107,115,.2); }
.advisor-rank { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; color: var(--lime); background: var(--surface-3); font-weight: 760; }
.advisor-content { min-width: 0; }
.advisor-numbers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.advisor-numbers span { border: 1px solid var(--line-soft); border-radius: 9px; padding: 8px 10px; color: var(--muted); background: var(--bg-soft); font-size: 10px; }
.advisor-numbers strong { margin-left: 4px; color: var(--text); }
.advisor-link { display: inline-flex; align-items: center; min-height: 41px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 14px; color: #a9c7ff; font-size: 12px; font-weight: 650; text-decoration: none; }
.advisor-link:hover { border-color: rgba(114,168,255,.42); background: rgba(114,168,255,.07); }
.audit { margin-top: 14px; color: var(--muted); font-size: 11px; }
.audit summary { color: #a9c7ff; cursor: pointer; }
.audit ul { display: grid; gap: 8px; padding-left: 20px; }
.audit li span { display: block; margin-top: 3px; }
.brief { overflow: auto; max-height: 360px; margin-top: 14px; border: 1px solid rgba(41,199,125,.17); border-left: 3px solid var(--lime-dark); border-radius: 0 12px 12px 0; padding: 14px; color: #d8e9df; background: rgba(26,91,58,.09); white-space: pre-wrap; }

.hermes-chat-panel { min-height: calc(100dvh - 156px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; overflow: hidden; padding: 0; background: radial-gradient(circle at 82% 0, rgba(30,115,72,.14), transparent 29%), rgba(13,18,15,.98); }
.hermes-chat-head { align-items: center; margin: 0; padding: 20px 24px; }
.hermes-identity { display: flex; align-items: center; gap: 14px; }
.hermes-chat-head .muted { max-width: 760px; margin: 7px 0 0; }
.hermes-chat-stage { position: relative; min-height: 0; overflow: hidden; }
.hermes-chat-history { height: 100%; min-height: 420px; max-height: calc(100dvh - 370px); overflow-y: auto; padding: 27px clamp(18px, 4vw, 44px); scroll-behavior: smooth; background: linear-gradient(180deg, rgba(6,10,8,.56), rgba(10,14,12,.8)); scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.hermes-turn { position: relative; display: grid; gap: 12px; margin-bottom: 29px; }
.hermes-message { max-width: min(78%, 820px); display: flex; align-items: flex-start; gap: 10px; }
.hermes-message.owner { justify-self: end; }
.hermes-message.assistant { justify-self: start; }
.hermes-avatar { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(58,224,143,.3); border-radius: 11px; color: #dffbed; background: linear-gradient(145deg, #25bd77, #107149); box-shadow: 0 0 20px rgba(41,199,125,.13); font-size: 12px; font-weight: 800; }
.hermes-avatar.large { width: 46px; height: 46px; margin: 0; border-radius: 14px; font-size: 16px; }
.hermes-bubble { min-width: 160px; border: 1px solid var(--line); border-radius: 5px 16px 16px 16px; padding: 13px 14px; background: #151c18; box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.hermes-message.owner .hermes-bubble { border-color: rgba(41,199,125,.25); border-radius: 16px 5px 16px 16px; background: linear-gradient(145deg, rgba(32,91,61,.52), rgba(20,55,38,.6)); }
.hermes-bubble.failed { border-color: rgba(239,107,115,.3); background: rgba(92,30,37,.28); }
.hermes-retry { min-height: 34px; margin-top: 12px; padding: 7px 10px; font-size: 10px; }
.hermes-message-meta { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 8px; color: var(--muted-2); font-size: 9px; }
.hermes-message-meta strong { color: var(--text); font-size: 10px; }
.hermes-message-text { overflow-wrap: anywhere; font-size: 13px; line-height: 1.58; white-space: pre-wrap; }
.hermes-turn-status { position: absolute; right: 0; bottom: -21px; transform: scale(.84); transform-origin: right center; }
.hermes-thinking { min-height: 20px; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; }
.hermes-thinking i { width: 5px; height: 5px; border-radius: 50%; background: var(--lime); animation: hermes-dot 1.1s ease-in-out infinite; }
.hermes-thinking i:nth-child(2) { animation-delay: .14s; }
.hermes-thinking i:nth-child(3) { margin-right: 5px; animation-delay: .28s; }
@keyframes hermes-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.hermes-chat-welcome { width: min(480px, 100%); margin: 78px auto 0; color: var(--muted); text-align: center; }
.hermes-chat-welcome .hermes-avatar { margin: 0 auto 16px; }
.hermes-chat-welcome h3 { color: var(--text); font-size: 19px; }
.hermes-chat-welcome p { line-height: 1.6; }
.chat-skeleton { width: min(640px, 86%); display: grid; gap: 18px; padding-top: 35px; }
.chat-skeleton span { display: block; height: 66px; border-radius: 5px 16px 16px 16px; }
.chat-skeleton span:nth-child(2) { width: 72%; justify-self: end; }
.chat-skeleton span:nth-child(3) { width: 84%; }
.scroll-bottom { position: absolute; z-index: 4; right: 22px; bottom: 17px; min-height: 36px; border-color: rgba(41,199,125,.28); color: #9de9c2; background: rgba(11,27,18,.94); box-shadow: 0 10px 35px rgba(0,0,0,.4); }
.hermes-chat-form { padding: 16px 24px 13px; border-top: 1px solid var(--line); background: rgba(15,21,18,.98); }
.composer-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.composer-meta label, .composer-meta span { color: var(--muted-2); font-size: 9px; font-weight: 650; }
.hermes-chat-form textarea { width: 100%; min-height: 74px; max-height: 190px; resize: none; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; outline: 0; color: var(--text); background: #090d0b; line-height: 1.5; transition: .15s ease; }
.hermes-chat-form textarea:focus { border-color: var(--lime-dark); box-shadow: 0 0 0 3px rgba(41,199,125,.11); }
.hermes-chat-form.disabled { opacity: .56; }
.hermes-chat-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 9px; }
.keyboard-hint, .hermes-chat-note { color: var(--muted-2); font-size: 9px; }
.keyboard-hint kbd { margin: 0 2px; }
.hermes-chat-note { margin: 0; padding: 0 24px 15px; background: rgba(15,21,18,.98); }

.notice { position: fixed; z-index: 100; top: 20px; right: 22px; width: min(390px, calc(100% - 32px)); border: 1px solid rgba(66,207,136,.28); border-radius: 14px; padding: 13px 16px 13px 39px; color: #b6edcf; background: rgba(16,40,27,.97); box-shadow: 0 18px 60px rgba(0,0,0,.42); backdrop-filter: blur(12px); animation: toast-in .22s ease; }
.notice::before { content: "✓"; position: absolute; left: 15px; top: 13px; color: var(--green); font-weight: 800; }
.notice.error { color: #ffb4b8; border-color: rgba(239,107,115,.34); background: rgba(54,20,25,.97); }
.notice.error::before { content: "!"; color: var(--red); }
.notice[hidden] { display: none; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

.accounting-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.accounting-toolbar .muted { max-width: 760px; margin: 10px 0 0; }
.accounting-periods { min-width: max-content; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; border: 1px solid var(--line-soft); border-radius: 13px; padding: 4px; background: rgba(0,0,0,.15); }
.accounting-periods .button { min-height: 35px; border-color: transparent; background: transparent; }
.accounting-periods .button.primary { color: #d9f8e8; border-color: rgba(41,199,125,.24); background: var(--lime-soft); box-shadow: none; }
.accounting-grid { align-items: stretch; }
.accounting-grid > .panel { min-width: 0; }
.accounting-chart { height: 250px; display: flex; align-items: stretch; gap: 5px; overflow-x: auto; padding: 12px 4px 4px; border-bottom: 1px solid var(--line); }
.accounting-chart.empty { display: block; height: auto; border-bottom: 0; }
.accounting-day { position: relative; min-width: 12px; flex: 1 0 12px; display: grid; grid-template-rows: 1fr auto; gap: 8px; }
.accounting-day-bars { min-height: 190px; display: flex; align-items: end; justify-content: center; gap: 2px; }
.accounting-bar { width: min(46%, 13px); min-height: 2px; border-radius: 4px 4px 1px 1px; }
.accounting-bar.revenue { background: linear-gradient(180deg, #43da92, var(--lime-dark)); }
.accounting-bar.expense { background: linear-gradient(180deg, #ff9399, var(--red)); }
.accounting-day-label { min-height: 28px; color: var(--muted-2); font-size: 8px; text-align: center; transform: rotate(-45deg); transform-origin: top center; white-space: nowrap; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; color: var(--muted); font-size: 10px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.chart-legend i { width: 8px; height: 8px; display: inline-block; border-radius: 3px; }
.chart-legend i.revenue { background: var(--lime); }
.chart-legend i.expense { background: var(--red); }
.accounting-expense-form { grid-template-columns: 1fr 1.25fr 1fr 2fr; }
.audit-note { margin: 16px 0 0; font-size: 11px; }
.accounting-caveat { border-color: rgba(239,185,94,.22); background: linear-gradient(145deg, rgba(44,36,20,.5), var(--surface)); }
.accounting-caveat p:last-child { margin-bottom: 0; color: #d8cda9; line-height: 1.6; }
.accounting-caveat code { color: var(--amber); }
.money-positive { color: var(--green); font-weight: 700; }
.money-negative { color: #ff9399; font-weight: 700; }
.voided { opacity: .58; text-decoration: line-through; }

dialog { width: min(500px, calc(100% - 32px)); max-width: 500px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 21px; padding: 0; color: var(--text); background: #111713; box-shadow: var(--shadow-modal); }
dialog[open] { animation: dialog-in .18s ease; }
dialog::backdrop { background: rgba(2,5,3,.79); backdrop-filter: blur(8px); }
@keyframes dialog-in { from { opacity: 0; transform: scale(.98) translateY(5px); } }
.dialog-card { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 14px; padding: 25px; }
.dialog-symbol { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: var(--surface-2); font-weight: 850; }
.dialog-symbol.danger { color: #ff949a; border-color: rgba(239,107,115,.27); background: rgba(139,43,51,.14); }
.dialog-content { min-width: 0; }
.dialog-content .muted { margin: 10px 0 0; }
.dialog-field { display: block; margin-top: 17px; }
.dialog-field textarea { min-height: 95px; resize: vertical; }
.dialog-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 9px; margin: 6px -25px -25px; padding: 15px 25px; border-top: 1px solid var(--line-soft); background: rgba(0,0,0,.13); }
.command-dialog { width: min(620px, calc(100% - 32px)); max-width: 620px; overflow: visible; }
.command-card { padding: 22px; }
.command-head { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.dialog-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: transparent; cursor: pointer; font-size: 21px; }
.command-search { height: 48px; display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 13px; padding: 0 12px; background: #090d0b; }
.command-search:focus-within { border-color: var(--lime-dark); box-shadow: 0 0 0 3px rgba(41,199,125,.1); }
.command-search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.command-search input { min-width: 0; border: 0; outline: 0; color: var(--text); background: transparent; }
.command-results { max-height: 370px; display: grid; gap: 4px; overflow-y: auto; margin-top: 12px; }
.command-option { width: 100%; display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 11px; border: 1px solid transparent; border-radius: 12px; padding: 9px 11px; color: var(--muted); background: transparent; text-align: left; cursor: pointer; }
.command-option:hover, .command-option.active { color: var(--text); border-color: var(--line); background: var(--surface-2); }
.command-option > span:first-child { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--lime); background: var(--bg-soft); }
.command-option strong { display: block; font-size: 12px; }
.command-option small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 9px; }
.command-option > kbd { justify-self: end; }
.command-empty { padding: 30px; color: var(--muted); text-align: center; }
.command-tip { margin: 13px 2px 0; color: var(--muted-2); font-size: 9px; }

.login-body {
  min-height: 100dvh;
  display: block;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 46%, rgba(31, 119, 76, .1), transparent 27%),
    radial-gradient(circle at 8% 4%, rgba(255, 95, 102, .045), transparent 22%),
    linear-gradient(180deg, #080b09, #060806 72%);
}
.login-body::before {
  opacity: .16;
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(circle at 50% 44%, black, transparent 76%);
  mask-image: radial-gradient(circle at 50% 44%, black, transparent 76%);
}
.login-body::after {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .02), transparent 20%, transparent 78%, rgba(0, 0, 0, .34));
}
.login-masthead {
  position: relative;
  z-index: 5;
  height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-top: 1px solid rgba(41, 199, 125, .34);
  border-bottom: 1px solid var(--line-soft);
  padding: 0 clamp(18px, 3.2vw, 48px);
  background: rgba(10, 13, 11, .84);
  box-shadow: inset 0 1px rgba(255, 255, 255, .018);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.login-masthead::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(41, 199, 125, .5), transparent);
}
.login-brand { min-width: 0; display: flex; align-items: center; gap: 11px; }
.login-brand-mark {
  flex: 0 0 auto;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #a7b1ab;
  background: rgba(255, 255, 255, .025);
}
.login-brand-mark svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.login-brand > span:last-child { min-width: 0; }
.login-brand strong { display: block; overflow: hidden; font-size: 12px; font-weight: 680; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.login-brand small { display: block; overflow: hidden; margin-top: 1px; color: var(--muted-2); font-size: 8px; letter-spacing: .035em; text-overflow: ellipsis; white-space: nowrap; }
.login-page-name { color: #a6ada9; font-size: 11px; font-weight: 620; letter-spacing: .015em; }
.login-environment { justify-self: end; display: inline-flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 9px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.login-environment i, .login-stage-status i, .login-access-badge i { width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(66, 207, 136, .58); }

.login-stage {
  position: relative;
  z-index: 1;
  min-height: calc(100dvh - 68px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 70px 24px 94px;
  isolation: isolate;
}
.login-orbit {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: min(76vw, 850px);
  min-width: 660px;
  height: auto;
  overflow: visible;
  transform: translate(-50%, -50%) rotate(-11deg);
  pointer-events: none;
}
.login-orbit circle, .login-orbit path { fill: none; vector-effect: non-scaling-stroke; }
.login-orbit-track { stroke: rgba(201, 219, 207, .035); stroke-width: 2; }
.login-orbit-track.inner { stroke-width: 1.5; }
.login-orbit-segments { stroke: rgba(201, 219, 207, .082); stroke-linecap: butt; }
.login-orbit-segments.outer { stroke-width: 2.2; stroke-dasharray: 18 5 23 6 17 7 12 12; stroke-dashoffset: 4; }
.login-orbit-segments.inner { stroke: rgba(41, 199, 125, .105); stroke-width: 1.7; stroke-dasharray: 29 13 18 10 12 18; stroke-dashoffset: -7; }
.login-orbit-alert { stroke: rgba(255, 95, 102, .2); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 3.5 96.5; stroke-dashoffset: -43; }
.login-orbit-axis { stroke: rgba(201, 219, 207, .055); stroke-width: 1.5; }

.login-card {
  position: relative;
  width: min(448px, 100%);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(213, 232, 220, .14);
  border-radius: 24px;
  padding: 34px 36px 27px;
  background:
    radial-gradient(circle at 83% 0, rgba(41, 199, 125, .07), transparent 30%),
    linear-gradient(155deg, rgba(22, 27, 24, .96), rgba(13, 17, 15, .97));
  box-shadow: 0 34px 100px rgba(0, 0, 0, .5), inset 0 1px rgba(255, 255, 255, .025);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}
.login-card::before, .login-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border: solid rgba(213, 232, 220, .09);
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}
.login-card::before { left: -9px; border-width: 0 0 1px 1px; }
.login-card::after { right: -9px; border-width: 1px 1px 0 0; }
.login-card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 27px; }
.login-emblem {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: #d7ded9;
  background: linear-gradient(145deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .014));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
}
.login-emblem svg { width: 40px; height: 40px; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.login-emblem .emblem-ring { stroke: currentColor; stroke-width: 2.8; }
.login-emblem .emblem-arrow { stroke: var(--lime); stroke-width: 2.6; }
.login-emblem .emblem-core { stroke: #9ca7a0; stroke-width: 2; }
.login-emblem .emblem-dot { fill: var(--lime); stroke: none; }
.login-access-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-soft); border-radius: 999px; padding: 7px 10px; color: var(--muted); background: rgba(255, 255, 255, .024); font-size: 8px; font-weight: 740; letter-spacing: .09em; text-transform: uppercase; }
.login-card-copy .eyebrow { margin-bottom: 10px; color: #718078; }
.login-card-copy h1 { margin: 0 0 12px; font-size: clamp(27px, 3vw, 32px); font-weight: 720; line-height: 1.04; letter-spacing: -.045em; }
.login-card-copy > p:last-child { max-width: 350px; margin-bottom: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.login-card code { border: 1px solid var(--line); border-radius: 6px; padding: 2px 5px; color: #92e7bc; background: rgba(41, 199, 125, .07); font-size: .92em; }
.login-form { display: grid; gap: 11px; margin-top: 24px; }
.login-form > label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.login-form > label small { color: var(--muted-2); font-size: 8px; font-weight: 520; }
.code-field { position: relative; }
.code-field input { height: 52px; margin-top: 0; padding: 10px 54px 10px 45px; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: .12em; }
.code-field > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted-2); font-size: 8px; font-weight: 760; letter-spacing: .12em; }
.code-field-icon { position: absolute; z-index: 1; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: #78857e; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.login-form input[aria-invalid="true"] { border-color: rgba(255, 95, 102, .58); box-shadow: 0 0 0 3px rgba(255, 95, 102, .1); }
.login-code-help { margin: -1px 0 0; color: var(--muted-2); font-size: 9px; line-height: 1.5; }
.login-form .login-submit { width: 100%; min-height: 49px; margin-top: 3px; border-radius: 12px; }
.login-submit svg { width: 17px; height: 17px; }
.login-form .form-error { min-height: 17px; font-size: 10px; }
.login-security-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 11px 0 0; border-top: 1px solid var(--line-soft); padding-top: 17px; color: var(--muted-2); font-size: 8px; text-align: center; }
.login-security-note svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: #6f7b75; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.login-stage-status { position: absolute; right: clamp(18px, 3vw, 42px); bottom: 24px; left: clamp(18px, 3vw, 42px); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: var(--muted-2); font-size: 8px; font-weight: 650; letter-spacing: .065em; text-transform: uppercase; }
.login-stage-status span:first-child { display: inline-flex; align-items: center; gap: 8px; color: #8d9892; }

@media (max-width: 1180px) {
  .shell { grid-template-columns: 248px minmax(0, 1fr); }
  .metrics-grid, .metrics-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .command-trigger > span { display: none; }
  .accounting-toolbar { display: block; }
  .accounting-periods { width: fit-content; min-width: 0; justify-content: flex-start; margin-top: 18px; }
  .accounting-expense-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(312px, calc(100vw - 50px)); min-height: 100dvh; transform: translateX(-105%); box-shadow: 22px 0 70px rgba(0,0,0,.48); transition: transform .2s ease; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-close { display: grid; place-items: center; }
  .environment-badge { display: none; }
  .sidebar-scrim { position: fixed; z-index: 35; inset: 0; display: block; border: 0; background: rgba(1,4,2,.68); opacity: 0; pointer-events: none; transition: opacity .2s ease; backdrop-filter: blur(3px); }
  .sidebar-scrim.is-visible { opacity: 1; pointer-events: auto; }
  body.sidebar-open { overflow: hidden; }
  .main { padding: 10px 18px 58px; }
  .topbar { min-height: 95px; margin: 0 -18px 18px; padding: 14px 18px; }
  .topbar::after { right: 18px; left: 18px; }
  .icon-button.menu-button { display: grid; flex: 0 0 auto; }
  .command-trigger { width: 42px; justify-content: center; padding: 0; }
  .command-trigger kbd { display: none; }
  .update-state { display: none; }
  .overview-hero { grid-template-columns: 1fr; min-height: 0; }
  .system-visual { position: absolute; right: -54px; bottom: -70px; width: 220px; height: 220px; opacity: .42; }
  .overview-hero-copy { padding-right: 8vw; }
  .login-orbit { width: min(94vw, 780px); }
}

@media (max-width: 620px) {
  .main { padding: 8px 14px 46px; }
  .topbar { min-height: 88px; margin: 0 -14px 16px; padding: 12px 14px; }
  .topbar::after { right: 14px; left: 14px; }
  .page-description, .topbar .eyebrow { display: none; }
  h1 { font-size: 25px; }
  .top-actions { gap: 6px; }
  .command-trigger, .icon-button { width: 40px; height: 40px; }
  .overview-hero { border-radius: 19px; padding: 23px 19px; }
  .overview-hero h2 { font-size: 31px; }
  .hero-status-line { margin-bottom: 20px; }
  .system-visual { display: none; }
  .overview-hero-copy { padding-right: 0; }
  .metrics-grid, .metrics-grid.compact { gap: 10px; }
  .metric { min-height: 120px; padding: 16px; }
  .metric-value { font-size: 27px; }
  .panel { padding: 17px; border-radius: 16px; }
  .panel-head { flex-wrap: wrap; margin-bottom: 17px; padding-bottom: 14px; }
  .status-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .status-row strong { max-width: 100%; text-align: left; }
  .config-grid, .accounting-expense-form { grid-template-columns: 1fr; }
  .form-actions { grid-column: auto; flex-direction: column; }
  .form-actions .button { width: 100%; }
  .stack-mobile { display: grid; grid-template-columns: 1fr 1fr; }
  .stack-mobile .primary { grid-column: 1 / -1; }
  .button.danger.ghost { margin-left: 0; }
  .depth-steps { grid-template-columns: 1fr; }
  .depth-meta { flex-direction: column; gap: 4px; }
  .feedback-top { display: block; }
  .feedback-top > .badge { margin-top: 8px; }
  .advisor-card { grid-template-columns: 32px minmax(0,1fr); gap: 10px; padding: 14px; }
  .advisor-rank { width: 30px; height: 30px; }
  .advisor-card .feedback-top { display: block; }
  .advisor-card .feedback-top .badge { margin-top: 8px; }
  .accounting-periods { width: 100%; display: grid; grid-template-columns: repeat(4,1fr); }
  .accounting-periods .button { padding-inline: 6px; }
  .hermes-chat-panel { min-height: calc(100dvh - 122px); margin: 0 -14px; border-right: 0; border-left: 0; border-radius: 0; }
  .hermes-chat-head { padding: 16px 14px; }
  .hermes-identity { align-items: flex-start; }
  .hermes-chat-head .hermes-avatar { width: 38px; height: 38px; }
  .hermes-chat-head .muted { font-size: 10px; }
  .hermes-chat-history { min-height: 330px; max-height: calc(100dvh - 385px); padding: 19px 12px; }
  .hermes-message { max-width: 94%; }
  .hermes-message.assistant .hermes-avatar { width: 29px; height: 29px; }
  .hermes-chat-form { padding: 13px 12px 10px; }
  .hermes-chat-note { padding: 0 12px 12px; }
  .keyboard-hint { display: none; }
  .hermes-chat-actions .button { width: 100%; }
  .scroll-bottom { right: 12px; bottom: 11px; }
  dialog { width: calc(100% - 20px); }
  .dialog-card { grid-template-columns: 1fr; padding: 21px; }
  .dialog-symbol { width: 38px; height: 38px; }
  .dialog-actions { grid-column: auto; flex-direction: column-reverse; margin: 5px -21px -21px; padding: 14px 21px calc(14px + env(safe-area-inset-bottom)); }
  .dialog-actions .button { width: 100%; }
  .command-dialog { width: calc(100% - 20px); }
  .command-tip { display: none; }
  .login-masthead { height: 58px; grid-template-columns: minmax(0, 1fr) auto; padding: 0 14px; }
  .login-brand-mark { width: 32px; height: 32px; border-radius: 10px; }
  .login-brand-mark svg { width: 20px; height: 20px; }
  .login-brand small, .login-environment { display: none; }
  .login-page-name { justify-self: end; font-size: 10px; }
  .login-stage { min-height: calc(100dvh - 58px); padding: 32px 12px 62px; }
  .login-orbit { width: 640px; min-width: 640px; opacity: .78; }
  .login-card { width: min(430px, 100%); border-radius: 20px; padding: 25px 20px 21px; }
  .login-card::before, .login-card::after { width: 13px; height: 13px; }
  .login-card::before { left: -7px; }
  .login-card::after { right: -7px; }
  .login-card-head { margin-bottom: 22px; }
  .login-emblem { width: 52px; height: 52px; border-radius: 16px; }
  .login-emblem svg { width: 36px; height: 36px; }
  .login-access-badge { padding: 6px 9px; font-size: 7px; }
  .login-card-copy h1 { font-size: 26px; }
  .login-card-copy > p:last-child { font-size: 11px; line-height: 1.58; }
  .login-form { margin-top: 21px; }
  .code-field input { height: 50px; font-size: 16px; }
  .login-security-note { align-items: flex-start; font-size: 7.5px; line-height: 1.45; }
  .login-stage-status { right: 16px; bottom: 18px; left: 16px; justify-content: center; }
  .login-stage-status > span:last-child { display: none; }
}

@media (max-width: 480px) {
  .metrics-grid, .metrics-grid.compact { grid-template-columns: 1fr; }
  .metric { min-height: 112px; }
  .button-row:not(.wrap) { flex-wrap: wrap; }
  .overview-hero .button-row .button { width: 100%; }
  .pager .button { flex: 1; }
  .feedback-photos { grid-template-columns: 1fr 1fr; }
  .login-access-badge { max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-height: 700px) and (max-width: 620px) {
  .login-stage { place-items: start center; padding: 20px 12px 18px; }
  .login-card { padding-top: 20px; padding-bottom: 17px; }
  .login-card-head { margin-bottom: 16px; }
  .login-emblem { width: 46px; height: 46px; }
  .login-emblem svg { width: 32px; height: 32px; }
  .login-card-copy .eyebrow { margin-bottom: 7px; }
  .login-card-copy h1 { margin-bottom: 8px; font-size: 24px; }
  .login-form { margin-top: 16px; gap: 8px; }
  .login-security-note { margin-top: 6px; padding-top: 12px; }
  .login-stage-status { display: none; }
}

@media (hover: none) {
  .button:hover, .nav-item:hover { transform: none; }
  tbody tr:hover { background: transparent; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* 2026 control-room system — functional scenes, profile, accounting and Hermes. */
:root {
  --red: #ff5f66;
  --red-dark: #c93d48;
  --red-soft: rgba(255, 95, 102, .11);
  --surface-raised: #171d1a;
}

body {
  background:
    radial-gradient(circle at 83% -5%, rgba(26, 139, 85, .21), transparent 30%),
    radial-gradient(circle at 8% 88%, rgba(176, 37, 49, .08), transparent 25%),
    linear-gradient(145deg, #080b09, var(--bg) 58%);
}

.button.danger:not(.ghost) {
  color: #fff3f3;
  border-color: rgba(255, 95, 102, .74);
  background: linear-gradient(180deg, #e6555e, #bd3742);
  box-shadow: 0 9px 25px rgba(181, 42, 54, .14), inset 0 1px rgba(255,255,255,.18);
}
.button.danger:not(.ghost):hover { color: #fff; border-color: #ff858b; background: linear-gradient(180deg, #f26770, #cc424d); }

/* Profile popover */
.profile-menu { position: relative; }
.profile-menu > summary {
  min-height: 48px;
  display: grid;
  grid-template-columns: 36px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 5px 10px 5px 6px;
  color: var(--muted);
  background: rgba(16, 21, 18, .84);
  cursor: pointer;
  transition: .16s ease;
}
.profile-menu > summary::-webkit-details-marker { display: none; }
.profile-menu > summary:hover, .profile-menu[open] > summary { color: var(--text); border-color: rgba(47, 203, 125, .3); background: var(--surface-2); }
.profile-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 199, 125, .38);
  border-radius: 11px;
  color: #aff3d1;
  background: linear-gradient(145deg, rgba(38, 171, 106, .25), rgba(10, 29, 19, .8));
  font-size: 10px;
  font-weight: 820;
  letter-spacing: .04em;
}
.profile-avatar.large { width: 44px; height: 44px; border-radius: 13px; font-size: 12px; }
.profile-summary-copy { min-width: 0; }
.profile-summary-copy strong, .profile-summary-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-summary-copy strong { color: var(--text); font-size: 10px; }
.profile-summary-copy small { margin-top: 2px; color: var(--muted-2); font-size: 8px; }
.profile-chevron { transition: transform .16s ease; }
.profile-menu[open] .profile-chevron { transform: rotate(180deg); }
.profile-popover {
  position: absolute;
  z-index: 80;
  top: calc(100% + 11px);
  right: 0;
  width: min(340px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 17px;
  background: rgba(17, 23, 20, .985);
  box-shadow: 0 28px 85px rgba(0,0,0,.55);
  backdrop-filter: blur(24px);
  animation: profile-in .15s ease;
}
@keyframes profile-in { from { opacity: 0; transform: translateY(-5px) scale(.98); } }
.profile-popover-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.profile-popover-head > div:last-child { min-width: 0; }
.profile-popover-head .eyebrow { margin-bottom: 3px; }
.profile-popover-head strong, .profile-popover-head small { display: block; }
.profile-popover-head strong { font-size: 12px; }
.profile-popover-head small { margin-top: 2px; color: var(--muted-2); font-size: 9px; }
.profile-server-metrics { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin: 14px 0; }
.profile-server-metrics > div { min-width: 0; border: 1px solid var(--line-soft); border-radius: 10px; padding: 9px 10px; background: rgba(255,255,255,.018); }
.profile-server-metrics span, .profile-server-metrics strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-server-metrics span { color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.profile-server-metrics strong { margin-top: 5px; color: var(--text); font-size: 10px; }
.profile-popover-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Overview: a large functional server scene inspired by the product references. */
.operations-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(390px, 1.07fr);
  gap: clamp(22px, 3vw, 44px);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(55, 171, 112, .24);
  border-radius: 27px;
  padding: clamp(28px, 4vw, 54px) clamp(24px, 4.2vw, 62px) 0;
  background:
    radial-gradient(circle at 76% 30%, rgba(23, 145, 87, .18), transparent 30%),
    radial-gradient(circle at 6% 95%, rgba(187, 44, 56, .075), transparent 25%),
    linear-gradient(128deg, rgba(11, 17, 13, .99), rgba(15, 25, 19, .97));
  box-shadow: 0 26px 80px rgba(0,0,0,.27), inset 0 1px rgba(255,255,255,.025);
}
.operations-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,.025) 50%, transparent 50.1%); }
.operations-stage::after { content: "FI"; position: absolute; right: -4px; top: -58px; color: rgba(255,255,255,.016); font-size: 260px; font-weight: 900; letter-spacing: -.11em; pointer-events: none; }
.stage-narrative { position: relative; z-index: 2; align-self: center; padding: 18px 0 45px; }
.stage-narrative h2 { max-width: 660px; margin: 14px 0 20px; font-size: clamp(42px, 5.2vw, 74px); line-height: .96; letter-spacing: -.065em; }
.stage-narrative h2 span, .accounting-stage-copy h2 span { color: var(--lime); }
.stage-narrative .muted { max-width: 590px; margin-bottom: 0; color: #a5afa9; font-size: 13px; }
.stage-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.stage-actions .button { min-height: 46px; }
.stage-actions .button.danger.ghost { margin-left: 0; color: #ff858b; border-color: rgba(255,95,102,.28); }
.server-console {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
  border: 1px solid rgba(215, 235, 223, .14);
  border-radius: 21px;
  padding: 22px;
  background: rgba(20, 28, 23, .9);
  box-shadow: 0 24px 70px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.025);
}
.server-console-head, .server-console-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.server-console-head { padding-bottom: 17px; border-bottom: 1px solid var(--line-soft); }
.server-console-head h3 { margin: 0; font-size: 18px; }
.server-console-metrics { display: grid; gap: 9px; margin: 16px 0; }
.server-metric { border: 1px solid var(--line-soft); border-radius: 13px; padding: 12px 13px; background: rgba(4, 8, 6, .28); }
.server-metric > div:first-child { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 10px; }
.server-metric strong { color: var(--text); font-size: 12px; font-variant-numeric: tabular-nums; }
.server-metric small { display: block; margin-top: 7px; color: var(--muted-2); font-size: 8px; font-variant-numeric: tabular-nums; }
.server-meter { height: 5px; overflow: hidden; margin-top: 10px; border-radius: 999px; background: #263029; }
.server-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime-dark), #43dc91); box-shadow: 0 0 12px rgba(41,199,125,.25); }
.server-metric.danger { border-color: rgba(255,95,102,.25); }
.server-metric.danger .server-meter i { background: linear-gradient(90deg, var(--red-dark), var(--red)); box-shadow: 0 0 12px rgba(255,95,102,.24); }
.server-console-foot { padding-top: 15px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 9px; }
.server-console-foot svg { width: 16px; height: 16px; fill: none; stroke: var(--lime); stroke-width: 1.7; }
.server-console-foot span { margin-right: auto; }
.server-console-foot strong { color: var(--text); }
.server-fact-strip {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 calc(clamp(24px, 4.2vw, 62px) * -1);
  border-top: 1px solid var(--line);
  background: rgba(7, 11, 8, .52);
}
.server-fact { min-width: 0; display: grid; gap: 3px; padding: 17px clamp(16px, 2vw, 28px); border-right: 1px solid var(--line-soft); }
.server-fact:last-child { border-right: 0; }
.server-fact small { color: var(--muted-2); font-size: 8px; font-weight: 760; letter-spacing: .1em; text-transform: uppercase; }
.server-fact b { overflow: hidden; color: var(--text); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.server-fact em { overflow: hidden; color: var(--muted); font-size: 8px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.server-fact.bad { background: linear-gradient(180deg, var(--red-soft), transparent); }
.server-fact.bad b { color: #ff8a90; }

/* Accounting */
.accounting-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  align-items: stretch;
  gap: 18px;
  margin-bottom: 18px;
}
.accounting-stage-copy, .accounting-result-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 48px);
  background: linear-gradient(145deg, rgba(17,23,20,.98), rgba(11,16,13,.98));
}
.accounting-stage-copy::after { content: "LEDGER"; position: absolute; right: -14px; bottom: -27px; color: rgba(255,255,255,.018); font-size: 88px; font-weight: 900; pointer-events: none; }
.accounting-stage-copy h2 { margin: 11px 0 16px; font-size: clamp(38px, 4.4vw, 62px); line-height: .97; letter-spacing: -.06em; }
.accounting-stage-copy .muted { max-width: 630px; margin-bottom: 23px; }
.accounting-stage-copy .accounting-periods { width: fit-content; justify-content: flex-start; margin: 0; }
.accounting-result-card { display: flex; flex-direction: column; justify-content: space-between; border-color: rgba(255,95,102,.2); background: radial-gradient(circle at 85% 12%, rgba(255,95,102,.14), transparent 27%), linear-gradient(145deg, #171c19, #0d1210); }
.accounting-result-head, .accounting-result-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.accounting-result-head > span:first-child { color: var(--muted); font-size: 10px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.accounting-result-card > strong { margin: clamp(30px, 5vw, 56px) 0 15px; font-size: clamp(44px, 5vw, 72px); font-weight: 760; font-variant-numeric: tabular-nums; letter-spacing: -.065em; line-height: .9; }
.accounting-result-card > strong.negative { color: #ff858b; }
.accounting-result-meta { color: var(--muted); font-size: 10px; }
.accounting-result-meta b { margin-left: 4px; color: var(--text); }
.accounting-result-line { height: 7px; overflow: hidden; margin-top: 25px; border-radius: 999px; background: #263029; }
.accounting-result-line.negative { background: rgba(255,95,102,.13); }
.accounting-result-line i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #35d88b, var(--lime)); box-shadow: 0 0 16px rgba(41,199,125,.35); transition: width .3s ease; }
.accounting-result-line.negative i { background: linear-gradient(90deg, var(--red-dark), var(--red)); box-shadow: 0 0 16px rgba(255,95,102,.28); }
.accounting-main-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, .75fr); gap: 18px; }
.accounting-main-grid > .panel { min-width: 0; }
.accounting-chart { height: auto; min-height: 310px; display: block; overflow: hidden; padding: 0; border-bottom: 0; }
.cashflow-svg { width: 100%; min-width: 620px; height: auto; aspect-ratio: 16 / 5; display: block; overflow: visible; }
.chart-grid-line line { stroke: rgba(213,232,220,.075); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-grid-line text, .chart-axis-label { fill: #68736d; font-size: 9px; font-family: inherit; }
.chart-area { stroke: none; }
.chart-area.revenue-area { fill: url(#revenueArea); }
.chart-area.expense-area { fill: url(#expenseArea); }
.chart-line { fill: none; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.chart-line.revenue-line { stroke: #35d88b; filter: drop-shadow(0 0 5px rgba(53,216,139,.25)); }
.chart-line.expense-line { stroke: var(--red); filter: drop-shadow(0 0 5px rgba(255,95,102,.18)); }
.revenue-point, .expense-point { stroke: #101512; stroke-width: 2; vector-effect: non-scaling-stroke; }
.revenue-point { fill: var(--lime); }
.expense-point { fill: var(--red); }
.chart-hit circle { cursor: help; }
.plan-mix-grid { display: grid; gap: 10px; }
.plan-mix-card { border: 1px solid var(--line-soft); border-radius: 14px; padding: 15px; background: rgba(255,255,255,.018); }
.plan-mix-card > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 10px; }
.plan-mix-card > div:first-child b { color: var(--lime); }
.plan-mix-card > strong { display: block; margin-top: 15px; color: var(--text); font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.plan-mix-card > small { display: block; margin-top: 6px; color: var(--muted-2); font-size: 9px; }
.plan-share { height: 4px; overflow: hidden; margin-top: 13px; border-radius: 999px; background: #242c27; }
.plan-share i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime-dark), var(--lime)); }

/* Sync parameters: grouped native-looking fields with explicit custom steppers. */
.sync-config-form { display: grid; gap: 13px; }
.sync-config-form fieldset { min-width: 0; margin: 0; border: 1px solid var(--line-soft); border-radius: 15px; padding: 15px; background: rgba(4,8,6,.18); }
.sync-config-form legend { padding: 0 7px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.sync-config-form legend span { display: inline-grid; place-items: center; width: 23px; height: 23px; margin-right: 7px; border: 1px solid rgba(41,199,125,.25); border-radius: 7px; color: var(--lime); background: var(--lime-soft); font-size: 8px; }
.config-field > span { display: block; margin: 0 0 7px; }
.number-control { position: relative; }
.number-control input { min-height: 48px; margin-top: 0; padding-right: 42px; font-variant-numeric: tabular-nums; }
.number-control input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
.number-control input[type="number"]::-webkit-inner-spin-button, .number-control input[type="number"]::-webkit-outer-spin-button { margin: 0; appearance: none; -webkit-appearance: none; }
.stepper-buttons { position: absolute; inset: 4px 4px 4px auto; width: 34px; display: grid; grid-template-rows: 1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); }
.stepper-buttons button { display: grid; place-items: center; border: 0; color: var(--muted); background: transparent; cursor: pointer; transition: .12s ease; }
.stepper-buttons button + button { border-top: 1px solid var(--line-soft); }
.stepper-buttons button:hover { color: #dffbed; background: var(--lime-soft); }
.stepper-buttons button:active { color: #fff; background: var(--lime-dark); }
.stepper-buttons svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.sticky-actions { position: sticky; z-index: 4; bottom: 10px; grid-column: 1 / -1; margin: 2px -4px -4px; border: 1px solid var(--line); border-radius: 14px; padding: 10px; background: rgba(14,20,16,.94); box-shadow: 0 16px 40px rgba(0,0,0,.32); backdrop-filter: blur(16px); }

/* Hermes: fixed two-pane workspace; only the message history scrolls. */
.hermes-workspace {
  height: min(800px, calc(100dvh - 145px));
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0d1210;
  box-shadow: 0 28px 90px rgba(0,0,0,.3);
}
.hermes-rail { min-width: 0; overflow-y: auto; padding: 24px 18px; border-right: 1px solid var(--line); background: radial-gradient(circle at 20% 0, rgba(33,151,94,.14), transparent 29%), rgba(12,17,14,.98); }
.hermes-rail-identity { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 13px; align-items: start; padding: 0 4px 20px; }
.hermes-avatar.xl { width: 52px; height: 52px; border-radius: 16px; font-size: 19px; }
.hermes-rail-identity h2 { font-size: 20px; }
.hermes-rail-identity p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.hermes-worker-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; border: 1px solid var(--line-soft); border-radius: 12px; padding: 11px 12px; background: rgba(255,255,255,.018); }
.hermes-worker-card > div { display: flex; align-items: center; gap: 8px; }
.hermes-worker-card strong, .hermes-worker-card > span { font-size: 9px; }
.hermes-worker-card > span { color: var(--muted); }
.automation-list { display: grid; gap: 8px; }
.automation-card {
  min-width: 0;
  min-height: 74px;
  display: grid;
  grid-template-columns: 32px minmax(0,1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  padding: 10px 11px;
  color: var(--muted);
  background: rgba(255,255,255,.018);
  text-align: left;
  cursor: pointer;
  transition: .15s ease;
}
.automation-card > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid rgba(41,199,125,.2); border-radius: 9px; color: var(--lime); background: var(--lime-soft); font-size: 8px; font-weight: 780; }
.automation-card strong, .automation-card small { display: block; }
.automation-card strong { overflow: hidden; color: #dfe6e2; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.automation-card small { margin-top: 4px; color: var(--muted-2); font-size: 8px; line-height: 1.35; }
.automation-card > b { color: var(--muted-2); font-size: 15px; }
.automation-card:hover { border-color: rgba(41,199,125,.27); background: rgba(41,199,125,.055); transform: translateX(2px); }
.automation-card:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.automation-card.danger-accent > span { color: #ff8d93; border-color: rgba(255,95,102,.24); background: var(--red-soft); }
.automation-card.danger-accent:hover { border-color: rgba(255,95,102,.28); background: rgba(255,95,102,.045); }
.automation-card.is-loading { grid-template-columns: auto 1fr; color: var(--text); }
.hermes-rail-note { margin: 16px 3px 0; border-left: 2px solid var(--red-dark); padding-left: 11px; color: var(--muted-2); font-size: 8px; line-height: 1.5; }
.hermes-rail-note b { color: #ff9298; }
.hermes-chat-panel { min-height: 0; height: 100%; grid-template-rows: auto auto minmax(0,1fr) auto; border-radius: 0; background: radial-gradient(circle at 83% 0, rgba(30,115,72,.12), transparent 29%), rgba(13,18,15,.98); }
.hermes-chat-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line-soft); }
.hermes-control-bar { display: grid; grid-template-columns: minmax(240px,1.2fr) minmax(180px,.9fr) minmax(170px,.8fr); align-items: stretch; gap: 10px; border-bottom: 1px solid var(--line-soft); padding: 12px 18px; background: rgba(8,13,10,.76); }
.hermes-mode-field { min-width: 0; margin: 0; border: 0; padding: 0; }
.hermes-mode-field legend, .hermes-model-field > span { display: block; margin: 0 0 6px; padding: 0; color: var(--muted-2); font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.hermes-mode-switch { min-width: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; border: 1px solid var(--line); border-radius: 13px; padding: 3px; background: #070b09; }
.hermes-mode-switch button { min-width: 0; min-height: 44px; display: grid; grid-template-columns: 25px minmax(0,1fr); align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 9px; padding: 6px 8px; color: var(--muted); background: transparent; text-align: left; cursor: pointer; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.hermes-mode-switch button > span:first-child { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: var(--muted-2); background: rgba(255,255,255,.035); font-size: 12px; }
.hermes-mode-switch strong, .hermes-mode-switch small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hermes-mode-switch strong { font-size: 10px; }
.hermes-mode-switch small { margin-top: 2px; color: var(--muted-2); font-size: 7px; }
.hermes-mode-switch button.active { border-color: rgba(41,199,125,.26); color: #e5f7ed; background: rgba(41,199,125,.1); }
.hermes-mode-switch button.active > span:first-child { color: var(--lime); background: rgba(41,199,125,.13); }
.hermes-mode-switch button[data-hermes-mode="executor"].active { border-color: rgba(239,107,115,.32); background: rgba(239,107,115,.09); }
.hermes-mode-switch button[data-hermes-mode="executor"].active > span:first-child { color: #ff9298; background: rgba(239,107,115,.13); }
.hermes-mode-switch button:disabled { opacity: .48; cursor: wait; }
.hermes-model-field { min-width: 0; display: block; }
.hermes-model-field select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 11px; padding: 0 34px 0 11px; outline: 0; color: var(--text); background: #070b09; cursor: pointer; }
.hermes-model-field select:focus-visible { border-color: var(--lime-dark); }
.hermes-model-field select:disabled { opacity: .58; cursor: not-allowed; }
.hermes-model-field small { display: block; overflow: hidden; margin-top: 5px; color: var(--muted-2); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.hermes-provider-state { min-width: 0; min-height: 67px; display: grid; align-content: center; border: 1px solid var(--line-soft); border-radius: 12px; padding: 9px 11px; background: rgba(255,255,255,.018); }
.hermes-provider-state > span { display: flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: 8px; font-weight: 720; text-transform: uppercase; }
.hermes-provider-state i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 12px rgba(239,185,94,.38); }
.hermes-provider-state strong, .hermes-provider-state small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hermes-provider-state strong { margin-top: 3px; font-size: 10px; }
.hermes-provider-state small { margin-top: 2px; color: var(--muted-2); font-size: 7px; }
.hermes-provider-state.online { border-color: rgba(41,199,125,.19); background: rgba(41,199,125,.035); }
.hermes-provider-state.online i { background: var(--lime); box-shadow: 0 0 14px rgba(41,199,125,.5); }
.hermes-provider-state.offline { border-color: rgba(239,107,115,.2); background: rgba(239,107,115,.035); }
.hermes-provider-state.offline i { background: var(--red); box-shadow: 0 0 14px rgba(239,107,115,.42); }
.hermes-chat-stage { min-height: 0; }
.hermes-chat-history {
  min-height: 0;
  max-height: none;
  height: 100%;
  overflow-y: auto;
  overflow-anchor: none;
  overscroll-behavior: contain;
  scroll-behavior: auto;
  padding: 28px clamp(18px, 3vw, 42px);
  background: linear-gradient(180deg, rgba(6,10,8,.5), rgba(10,14,12,.78));
}
.hermes-turn { contain: layout; }
.automation-message-label { width: fit-content; border: 1px solid rgba(41,199,125,.2); border-radius: 999px; padding: 5px 8px; color: #79dca9; background: var(--lime-soft); font-size: 8px; font-weight: 760; letter-spacing: .08em; }
.hermes-turn-context { width: fit-content; max-width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.hermes-turn-context > span { min-height: 24px; display: inline-flex; align-items: center; border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 8px; color: var(--muted); background: rgba(255,255,255,.025); font-size: 7px; font-weight: 760; letter-spacing: .04em; }
.hermes-mode-badge.advisor { color: #79dca9; border-color: rgba(41,199,125,.2); background: var(--lime-soft); }
.hermes-mode-badge.executor { color: #ff9ca1; border-color: rgba(239,107,115,.24); background: var(--red-soft); }
.hermes-model-badge { color: #c8d3cd !important; }
.hermes-stage-badge.warn { color: var(--amber); border-color: rgba(239,185,94,.23); background: rgba(239,185,94,.07); }
.hermes-stage-badge.bad { color: #ff9ca1; border-color: rgba(239,107,115,.24); background: var(--red-soft); }
.hermes-execution-progress { width: min(78%,820px); justify-self: end; border: 1px solid rgba(239,107,115,.16); border-radius: 14px; padding: 10px 12px; background: linear-gradient(145deg, rgba(65,29,34,.26), rgba(18,24,21,.74)); }
.hermes-execution-progress > p { margin: 0 0 9px; color: #d7bebf; font-size: 8px; font-weight: 720; }
.hermes-execution-progress ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.hermes-execution-progress li { position: relative; min-width: 0; display: grid; grid-template-columns: 16px minmax(0,1fr); align-items: center; gap: 6px; }
.hermes-execution-progress li:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: 8px; left: calc(100% - 4px); width: 12px; height: 1px; background: var(--line-strong); }
.hermes-execution-progress li > i { position: relative; z-index: 1; width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: #101512; }
.hermes-execution-progress li > i::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted-2); }
.hermes-execution-progress strong, .hermes-execution-progress small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hermes-execution-progress strong { color: var(--muted); font-size: 8px; }
.hermes-execution-progress small { margin-top: 1px; color: var(--muted-2); font-size: 7px; }
.hermes-execution-progress li.active > i { border-color: rgba(239,185,94,.52); box-shadow: 0 0 12px rgba(239,185,94,.13); }
.hermes-execution-progress li.active > i::after { background: var(--amber); animation: hermes-dot 1.1s ease-in-out infinite; }
.hermes-execution-progress li.active strong { color: #f2cf91; }
.hermes-execution-progress li.done > i { border-color: rgba(41,199,125,.44); background: rgba(41,199,125,.11); }
.hermes-execution-progress li.done > i::after { background: var(--lime); }
.hermes-execution-progress li.done strong { color: #91dab5; }
.hermes-execution-progress li.failed > i { border-color: rgba(239,107,115,.5); background: rgba(239,107,115,.1); }
.hermes-execution-progress li.failed > i::after { background: var(--red); }
.hermes-execution-progress li.failed strong { color: #ff9ca1; }
.hermes-message-images { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: 7px; margin-top: 12px; }
.hermes-message-image { display: block; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 10px; background: #080b09; }
.hermes-message-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .18s ease; }
.hermes-message-image:hover img { transform: scale(1.03); }
.hermes-chat-form { padding: 11px 18px 14px; }
.hermes-mode-warning { margin: 0 0 9px; border: 1px solid rgba(41,199,125,.16); border-radius: 10px; padding: 7px 10px; color: #8ebba3; background: rgba(41,199,125,.045); font-size: 8px; line-height: 1.45; }
.hermes-mode-warning.executor { border-color: rgba(239,107,115,.22); color: #d6aaad; background: rgba(239,107,115,.055); }
.hermes-attachment-preview { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 9px; padding-bottom: 2px; scrollbar-width: thin; }
.attachment-chip { flex: 0 0 210px; min-width: 0; display: grid; grid-template-columns: 46px minmax(0,1fr) 26px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 11px; padding: 6px; background: var(--surface-2); }
.attachment-chip.uploading { border-color: rgba(41,199,125,.3); opacity: .7; }
.attachment-chip img { width: 46px; height: 38px; display: block; object-fit: cover; border-radius: 7px; }
.attachment-chip span { min-width: 0; }
.attachment-chip strong, .attachment-chip small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-chip strong { font-size: 9px; }
.attachment-chip small { margin-top: 3px; color: var(--muted-2); font-size: 8px; }
.attachment-chip button { width: 26px; height: 26px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; cursor: pointer; }
.attachment-chip button:hover { color: #ff9298; background: var(--red-soft); }
.composer-shell { min-height: 62px; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: end; gap: 8px; border: 1px solid var(--line); border-radius: 16px; padding: 8px; background: #080c0a; transition: .15s ease; }
.composer-shell:focus-within { border-color: rgba(41,199,125,.45); box-shadow: 0 0 0 3px rgba(41,199,125,.09); }
.composer-tool, .composer-send { min-height: 44px; display: grid; place-items: center; border: 0; border-radius: 11px; color: var(--muted); background: var(--surface-2); cursor: pointer; transition: .14s ease; }
.composer-tool { width: 44px; height: 44px; }
.composer-tool:hover { color: var(--text); background: var(--surface-hover); }
.composer-send { min-width: 104px; grid-template-columns: auto 18px; gap: 7px; padding: 0 13px; color: #04150c; background: linear-gradient(180deg, #3add90, #25b974); box-shadow: 0 6px 20px rgba(34,178,109,.16); font-size: 9px; font-weight: 780; }
.hermes-chat-form.executor .composer-send { color: #fff4f4; background: linear-gradient(180deg, #c94f58, #a93640); box-shadow: 0 6px 20px rgba(201,79,88,.16); }
.hermes-chat-form.executor .composer-send:hover { background: linear-gradient(180deg, #dc5d66, #ba414b); }
.composer-send:hover { background: linear-gradient(180deg, #4be59c, #2bc47c); transform: translateY(-1px); }
.composer-tool svg, .composer-send svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.composer-tool:disabled, .composer-send:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.composer-send.is-loading span:last-child { display: none; }
.composer-send.is-loading .button-spinner { width: 15px; height: 15px; }
.composer-side { display: flex; align-items: center; gap: 8px; }
.composer-side > span { color: var(--muted-2); font-size: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hermes-chat-form textarea { align-self: center; min-height: 40px; max-height: 150px; margin: 0; border: 0; border-radius: 0; padding: 9px 3px; background: transparent; box-shadow: none; }
.hermes-chat-form textarea:focus { border: 0; background: transparent; box-shadow: none; }
.hermes-chat-form .composer-meta { margin: 7px 4px 0 46px; }

@media (max-width: 1280px) {
  .profile-summary-copy { display: none; }
  .profile-menu > summary { grid-template-columns: 36px auto; }
  .operations-stage { grid-template-columns: minmax(0,.9fr) minmax(360px,1.1fr); }
  .stage-narrative h2 { font-size: clamp(39px, 4.7vw, 62px); }
  .accounting-main-grid { grid-template-columns: 1fr; }
  .plan-mix-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

@media (max-width: 1050px) {
  .operations-stage, .accounting-stage { grid-template-columns: 1fr; }
  .operations-stage::before { display: none; }
  .stage-narrative { padding-bottom: 0; }
  .server-fact-strip { margin-top: 4px; }
  .accounting-result-card > strong { margin-top: 38px; }
  .hermes-workspace { grid-template-columns: 275px minmax(0,1fr); }
}

@media (max-width: 900px) {
  .profile-menu { margin-left: 0; }
  .operations-stage { padding-inline: 30px; }
  .server-fact-strip { margin-inline: -30px; }
  .hermes-workspace { height: auto; min-height: 0; display: block; overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .hermes-rail { overflow: visible; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 20px; }
  .automation-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hermes-chat-panel { height: min(730px, calc(100dvh - 125px)); min-height: 570px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; }
  .hermes-control-bar { grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); }
  .hermes-provider-state { grid-column: 1 / -1; min-height: 52px; grid-template-columns: auto minmax(0,1fr); align-items: center; column-gap: 10px; }
  .hermes-provider-state > span { grid-row: 1 / span 2; }
  .hermes-provider-state strong, .hermes-provider-state small { margin-top: 0; }
}

@media (max-width: 700px) {
  .profile-summary-copy, .profile-chevron { display: none; }
  .profile-menu > summary { min-height: 40px; grid-template-columns: 30px; border-radius: 11px; padding: 4px; }
  .profile-avatar { width: 30px; height: 30px; border-radius: 9px; }
  .profile-popover { position: fixed; top: 74px; right: 12px; }
  .operations-stage { border-radius: 20px; padding: 22px 18px 0; }
  .stage-narrative { padding-top: 5px; }
  .stage-narrative h2 { margin-top: 11px; font-size: 40px; }
  .stage-narrative .muted { font-size: 11px; }
  .stage-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .stage-actions .button:first-child { grid-column: 1 / -1; }
  .server-console { padding: 16px; }
  .server-fact-strip { grid-template-columns: repeat(2, minmax(0,1fr)); margin-inline: -18px; }
  .server-fact:nth-child(2n) { border-right: 0; }
  .server-fact:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); }
  .accounting-stage-copy, .accounting-result-card { border-radius: 19px; padding: 23px 20px; }
  .accounting-stage-copy h2 { font-size: 41px; }
  .accounting-periods { grid-template-columns: repeat(2,1fr); }
  .accounting-result-card > strong { font-size: 48px; }
  .accounting-result-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
  .accounting-cashflow-panel { overflow-x: auto; }
  .accounting-chart { width: 580px; min-width: 580px; overflow: visible; }
  .cashflow-svg { width: 580px; min-width: 580px; }
  .plan-mix-grid { grid-template-columns: 1fr; }
  .sync-config-form fieldset { padding: 13px; }
  .hermes-rail { padding: 18px 14px; }
  .hermes-rail-identity { grid-template-columns: 42px minmax(0,1fr); padding-bottom: 12px; }
  .hermes-avatar.xl { width: 42px; height: 42px; border-radius: 13px; font-size: 15px; }
  .hermes-rail-identity p:last-child, .hermes-rail-note { display: none; }
  .hermes-worker-card { margin-bottom: 10px; padding-block: 8px; }
  .automation-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 3px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .automation-card { flex: 0 0 225px; min-height: 62px; scroll-snap-align: start; }
  .hermes-chat-panel { margin: 0; border-right: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 19px; }
  .hermes-chat-head { padding: 14px; }
  .hermes-chat-head .muted { display: none; }
  .hermes-control-bar { grid-template-columns: 1fr; gap: 8px; padding: 10px; }
  .hermes-mode-switch button, .hermes-model-field select { min-height: 44px; }
  .hermes-provider-state { min-height: 44px; grid-column: auto; padding-block: 7px; }
  .hermes-chat-history { min-height: 0; max-height: none; padding: 18px 11px; }
  .hermes-message { max-width: 96%; }
  .hermes-message-images { grid-template-columns: repeat(2, minmax(0,130px)); }
  .hermes-execution-progress { width: 96%; padding: 10px; }
  .hermes-execution-progress ol { grid-template-columns: 1fr; gap: 6px; }
  .hermes-execution-progress li:not(:last-child)::after { top: calc(100% - 3px); left: 8px; width: 1px; height: 9px; }
  .hermes-chat-form { padding: 10px; }
  .composer-shell { grid-template-columns: 44px minmax(0,1fr) auto; }
  .composer-tool { width: 44px; height: 44px; }
  .composer-send { min-width: 94px; min-height: 44px; padding-inline: 11px; }
  .composer-side > span { display: none; }
  .hermes-chat-form .composer-meta { margin-left: 2px; }
  .hermes-chat-form .composer-meta > span:first-child { display: none; }
}

@media (max-width: 430px) {
  .stage-narrative h2 { font-size: 36px; }
  .server-fact { padding: 14px; }
  .server-fact b { font-size: 14px; }
  .profile-popover { width: calc(100vw - 24px); }
  .hermes-identity .hermes-avatar { display: none; }
  .hermes-chat-head { min-height: 72px; }
  .hermes-chat-head h2 { font-size: 17px; }
  .hermes-turn { margin-bottom: 25px; }
  .hermes-bubble { min-width: 125px; padding: 11px; }
  .hermes-message-text { font-size: 12px; }
}
