:root {
  --bg: #0B1220;
  --bg-2: #111827;
  --card: #1A2332;
  --hover: #243041;
  --border: #2F3A4C;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --weak: #64748B;
  --profit: #22C55E;
  --profit-hover: #16A34A;
  --loss: #EF4444;
  --loss-hover: #DC2626;
  --attention: #F59E0B;
  --info: #3B82F6;
  --neutral: #64748B;
  --blue: #2563EB;
  --cyan: #06B6D4;
  --quant: #8B5CF6;
  --sidebar: 280px;
  --sidebar-collapsed: 80px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
  color: var(--muted);
}

h1 {
  margin: 0;
  color: var(--text);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  background:
    radial-gradient(circle at 18% -10%, rgba(37, 99, 235, 0.18), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(6, 182, 212, 0.1), transparent 26%),
    var(--bg);
}

.sote-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 14px;
  border-right: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.96);
  backdrop-filter: blur(18px);
  z-index: 20;
}

.brand-block {
  display: grid;
  grid-template-columns: 54px 1fr 32px;
  align-items: center;
  gap: 10px;
  min-height: 56px;
}

.brand-mark {
  width: 54px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 12px;
  background: #050B15;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.22);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
}

.brand-copy strong {
  font-size: 18px;
  line-height: 1;
}

.brand-copy span {
  color: var(--weak);
  font-size: 12px;
}

.sidebar-toggle,
.mobile-menu {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--muted);
  height: 32px;
}

.side-nav {
  display: grid;
  gap: 5px;
  overflow-y: auto;
  padding-right: 4px;
}

.side-nav a {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  transition: 0.25s ease;
}

.side-nav a span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--weak);
  font-size: 11px;
  font-weight: 800;
}

.side-nav a b {
  font-weight: 600;
}

.side-nav a:hover,
.side-nav a.active {
  background: var(--hover);
  border-color: var(--border);
  color: var(--text);
}

.side-nav a.active span {
  background: rgba(59, 130, 246, 0.2);
  color: #93C5FD;
}

.sidebar-health {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(26, 35, 50, 0.76);
}

.sidebar-health div {
  display: grid;
}

.sidebar-health small {
  color: var(--weak);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(18px);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-left strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-chip,
.user-chip {
  display: grid;
  gap: 1px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(26, 35, 50, 0.78);
}

.topbar-chip span,
.user-chip small {
  color: var(--weak);
  font-size: 11px;
}

.topbar-chip strong,
.user-chip strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.content-area,
.auth-content {
  width: 100%;
  padding: 24px;
}

.auth-content {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
}

.command-hero,
.page-head,
.page-band,
.panel,
.auth-panel,
.premium-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(26, 35, 50, 0.96), rgba(17, 24, 39, 0.96));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.command-hero,
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px;
  margin-bottom: 18px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.executive-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.metric {
  position: relative;
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.metric::after {
  content: "";
  position: absolute;
  inset: auto -30px -40px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.09);
}

.metric:hover,
.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.55);
}

.metric-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.metric-head span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.16);
  color: #93C5FD;
  font-weight: 800;
  font-size: 12px;
}

.metric-head small {
  color: var(--muted);
  font-weight: 600;
}

.metric strong {
  position: relative;
  z-index: 1;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.trend {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.positive {
  color: var(--profit);
}

.negative {
  color: var(--loss);
}

.warning {
  color: var(--attention);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.span-2 {
  grid-column: span 2;
}

.panel,
.page-band {
  padding: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.panel-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.chart-panel {
  min-height: 360px;
}

canvas {
  width: 100% !important;
  max-height: 300px;
}

.segmented-control {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
}

.segmented-control button {
  border: 0;
  border-radius: 9px;
  padding: 6px 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}

.segmented-control button.active,
.segmented-control button:hover {
  background: var(--hover);
  color: var(--text);
}

.status-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(26, 35, 50, 0.9);
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

.status-chip span,
.pulse-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--profit);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.12);
}

.status-chip.info span,
.pulse-dot.info {
  background: var(--info);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.12);
}

.pulse-dot.warning {
  background: var(--attention);
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.12);
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.kv:last-child {
  border-bottom: 0;
}

.kv span {
  color: var(--muted);
}

.kv strong {
  color: var(--text);
  font-weight: 700;
}

.risk-gauge {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  margin: 4px auto 18px;
  border-radius: 50%;
  border: 10px solid var(--profit);
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12), transparent 66%);
}

.risk-gauge.medium {
  border-color: var(--attention);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.12), transparent 66%);
}

.risk-gauge.high {
  border-color: var(--loss);
  background: radial-gradient(circle, rgba(239, 68, 68, 0.12), transparent 66%);
}

.risk-gauge strong {
  display: block;
  font-size: 34px;
}

.risk-gauge span {
  color: var(--muted);
}

.table-shell {
  max-height: 430px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #0F172A;
  scrollbar-color: #475569 #0F172A;
}

.world-cup-table-shell {
  max-height: 68vh;
}

.table {
  --bs-table-bg: #0F172A;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border);
  --bs-table-striped-bg: #121B2A;
  --bs-table-striped-color: var(--text);
  --bs-table-hover-bg: var(--hover);
  --bs-table-hover-color: var(--text);
  color: var(--text) !important;
  margin-bottom: 0;
}

.pro-table thead th,
.table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #121B2A;
  color: var(--muted);
  border-color: var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.table td,
.table th {
  border-color: var(--border);
  background-color: transparent !important;
  color: var(--text) !important;
  vertical-align: middle;
}

.table tbody tr {
  background: #0F172A;
}

.table tbody tr:nth-child(odd) {
  background: #101A2A;
}

.table tbody tr:nth-child(even) td {
  background: rgba(17, 24, 39, 0.72) !important;
}

.table tbody tr:hover td {
  background: var(--hover) !important;
}

.table .text-muted,
.small.text-muted {
  color: #A7B4C8 !important;
}

.tickets-table td:first-child strong {
  color: #F8FAFC;
}

.tickets-table .badge,
.badge.text-bg-secondary {
  border: 1px solid #475569;
  background: #334155 !important;
  color: #F8FAFC !important;
  font-weight: 800;
}

.table-search,
.form-control,
.form-select {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0F172A;
  color: var(--text);
}

.table-search {
  min-width: 220px;
  height: 38px;
  padding: 0 12px;
}

.form-control:focus,
.form-select:focus,
.table-search:focus {
  border-color: var(--info);
  background: #0F172A;
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}

.form-control::placeholder,
.table-search::placeholder {
  color: var(--weak);
}

.btn-sote {
  border-color: var(--blue);
  background: linear-gradient(135deg, var(--blue), var(--info));
  color: #fff;
  font-weight: 700;
}

.btn-sote:hover {
  border-color: var(--cyan);
  background: linear-gradient(135deg, var(--info), var(--cyan));
  color: #fff;
}

.btn-outline-light {
  border-color: var(--border);
  color: var(--text);
}

.btn-outline-primary {
  border-color: var(--info);
  color: #BFDBFE;
  background: rgba(37, 99, 235, 0.08);
}

.btn-outline-primary:hover {
  border-color: var(--cyan);
  color: #FFFFFF;
  background: rgba(59, 130, 246, 0.28);
}

.price-chip {
  display: inline-flex;
  min-width: 54px;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 9px;
  background: rgba(6, 182, 212, 0.12);
  color: #67E8F9;
  font-weight: 800;
}

.quick-ticket-form {
  display: grid;
  grid-template-columns: minmax(84px, 1fr) auto;
  gap: 6px;
  min-width: 180px;
}

.health-grid,
.exposure-map,
.performance-heatmap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.health-grid div {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 4px 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
}

.health-grid small {
  grid-column: 2;
  color: var(--weak);
}

.heat,
.performance-heatmap span {
  min-height: 64px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  font-weight: 800;
}

.heat.low,
.performance-heatmap .good {
  background: rgba(34, 197, 94, 0.14);
  color: #86EFAC;
}

.heat.medium,
.performance-heatmap .neutral {
  background: rgba(245, 158, 11, 0.14);
  color: #FCD34D;
}

.heat.high,
.performance-heatmap .bad {
  background: rgba(239, 68, 68, 0.14);
  color: #FCA5A5;
}

.ranking-list,
.audit-list {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
}

.ranking-list div,
.audit-list div {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.52);
}

.audit-list div {
  grid-template-columns: 1fr;
}

.ranking-list span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.16);
  color: #C4B5FD;
  font-size: 12px;
  font-weight: 800;
}

.ranking-list small,
.audit-list span,
.muted {
  color: var(--weak);
}

.auth-shell {
  width: 100%;
  min-height: calc(100vh - 48px);
  display: grid;
  place-items: center;
}

.auth-panel {
  width: min(460px, 100%);
  padding: 30px;
}

.auth-panel h1 {
  font-size: 32px;
  margin-bottom: 8px;
}

.auth-panel p {
  margin-bottom: 24px;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  color: var(--muted);
}

.login-showcase {
  position: relative;
  width: min(1440px, 100%);
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr) minmax(340px, 0.72fr);
  gap: 22px;
  align-items: stretch;
  padding: 18px;
  overflow: hidden;
}

.login-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(34, 197, 94, 0.12), transparent 28%),
    radial-gradient(circle at 42% 18%, rgba(245, 158, 11, 0.12), transparent 18%),
    linear-gradient(165deg, rgba(59, 130, 246, 0.16), transparent 42%);
  pointer-events: none;
}

.login-hero,
.login-artboard,
.login-panel,
.benefit-strip {
  position: relative;
  z-index: 1;
}

.login-hero {
  min-height: 690px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.76)),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.06) 0 1px, transparent 1px 90px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.login-hero::after {
  content: "";
  position: absolute;
  inset: auto -14% -18% 18%;
  height: 210px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.28), rgba(34, 197, 94, 0.18), transparent);
  filter: blur(20px);
  transform: rotate(-7deg);
}

.login-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.login-brand,
.login-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-brand span {
  width: 62px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 12px;
  background: #050B15;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(34, 197, 94, 0.18);
}

.login-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.login-brand strong {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.login-nav-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: #D6E4F0;
  background: rgba(15, 23, 42, 0.56);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  align-self: center;
}

.login-eyebrow,
.panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: #67E8F9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 740px;
  font-size: clamp(44px, 6vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 650px;
  margin-top: 20px;
  color: #B7C4D7;
  font-size: 18px;
  line-height: 1.62;
}

.operation-banner {
  max-width: 720px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.16), rgba(34, 197, 94, 0.08)),
    rgba(15, 23, 42, 0.72);
  box-shadow: inset 0 1px 0 rgba(248, 250, 252, 0.08);
}

.operation-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  color: #E2E8F0;
}

.operation-header strong {
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.operation-header small {
  margin-left: auto;
  color: #94A3B8;
  font-weight: 800;
}

.operation-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.operation-board article {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(8, 13, 24, 0.62);
}

.operation-board span {
  color: #94A3B8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operation-board strong {
  color: #F8FAFC;
  font-size: 20px;
  line-height: 1.1;
}

.operation-board small {
  color: #86EFAC;
  font-weight: 800;
}

.hero-actions {
  justify-content: flex-start;
  margin-top: 28px;
}

.hero-actions .btn {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding-inline: 20px;
}

.hero-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-metrics article,
.mini-grid article,
.benefit-strip article {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
}

.hero-metrics article {
  display: grid;
  gap: 5px;
  min-height: 118px;
  padding: 16px;
  border-radius: 16px;
}

.hero-metrics span,
.mini-grid span,
.signal-feed span,
.benefit-strip span {
  color: #94A3B8;
  font-size: 12px;
  font-weight: 700;
}

.hero-metrics strong {
  color: #F8FAFC;
  font-size: 28px;
  line-height: 1;
}

.hero-metrics small {
  color: #86EFAC;
  font-weight: 800;
}

.login-artboard {
  min-height: 690px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(6, 182, 212, 0.08), transparent 42%),
    linear-gradient(145deg, rgba(26, 35, 50, 0.88), rgba(15, 23, 42, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.orbital-ring {
  position: absolute;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 50%;
  animation: slowSpin 18s linear infinite;
}

.ring-one {
  width: 520px;
  height: 520px;
}

.ring-two {
  width: 360px;
  height: 360px;
  border-color: rgba(245, 158, 11, 0.24);
  animation-duration: 26s;
  animation-direction: reverse;
}

.market-window {
  position: relative;
  z-index: 2;
  width: min(460px, calc(100% - 36px));
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  background: rgba(8, 13, 24, 0.84);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(18px);
  transform: perspective(900px) rotateY(-6deg) rotateX(3deg);
  animation: floatPanel 5.6s ease-in-out infinite;
}

.window-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  color: #D6E4F0;
}

.window-head span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #EF4444;
}

.window-head span:nth-child(2) {
  background: #F59E0B;
}

.window-head span:nth-child(3) {
  background: #22C55E;
}

.window-head strong {
  margin-left: auto;
  color: #94A3B8;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart-preview {
  position: relative;
  height: 250px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(15, 23, 42, 0.3));
  background-size: 100% 52px, 62px 100%, 100% 100%;
}

.chart-line {
  position: absolute;
  inset: 44px 18px 70px;
  clip-path: polygon(0 72%, 14% 56%, 26% 64%, 38% 38%, 51% 48%, 64% 24%, 78% 34%, 100% 12%, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(34, 197, 94, 0.58), rgba(34, 197, 94, 0.04));
  animation: chartGlow 3.5s ease-in-out infinite;
}

.chart-line::before {
  content: "";
  position: absolute;
  inset: 0;
  clip-path: polygon(0 72%, 14% 56%, 26% 64%, 38% 38%, 51% 48%, 64% 24%, 78% 34%, 100% 12%, 100% 20%, 78% 42%, 64% 32%, 51% 56%, 38% 46%, 26% 72%, 14% 64%, 0 80%);
  background: #86EFAC;
}

.chart-bars {
  position: absolute;
  inset: auto 18px 18px;
  height: 86px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 9px;
}

.chart-bars span {
  height: var(--h);
  min-height: 18px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #67E8F9, rgba(37, 99, 235, 0.72));
  animation: barLift 2.8s ease-in-out infinite;
}

.chart-bars span:nth-child(even) {
  animation-delay: 0.28s;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-grid article {
  min-height: 112px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
}

.mini-grid strong {
  font-size: 22px;
}

.spark {
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.86));
}

.spark-red {
  background: linear-gradient(90deg, rgba(239, 68, 68, 0.08), rgba(245, 158, 11, 0.82));
}

.spark-cyan {
  background: linear-gradient(90deg, rgba(6, 182, 212, 0.08), rgba(103, 232, 249, 0.86));
}

.signal-feed {
  display: grid;
  gap: 8px;
}

.signal-feed span {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.08);
}

.login-panel {
  min-height: 690px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.08), rgba(15, 23, 42, 0.94));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.login-panel h2 {
  font-size: 34px;
  margin-bottom: 10px;
}

.login-panel p {
  margin-bottom: 22px;
  line-height: 1.6;
}

.auth-logo {
  width: min(240px, 100%);
  height: 92px;
  object-fit: contain;
  display: block;
  margin: 0 0 18px;
  padding: 8px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 16px;
  background: #050B15;
}

.auth-divider {
  position: relative;
  display: grid;
  place-items: center;
  margin: 22px 0;
  color: var(--weak);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 1px;
  background: rgba(148, 163, 184, 0.22);
}

.auth-divider span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: #101827;
}

.login-panel label {
  display: grid;
  gap: 7px;
}

.login-panel label span {
  color: #D6E4F0;
  font-weight: 800;
}

.login-panel .form-control {
  min-height: 50px;
  border-radius: 14px;
}

.benefit-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.benefit-strip article {
  min-height: 158px;
  display: grid;
  gap: 8px;
  padding: 20px;
  border-radius: 18px;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.benefit-strip article:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 232, 249, 0.48);
}

.benefit-strip strong {
  font-size: 20px;
}

.benefit-strip p {
  line-height: 1.6;
}

.reveal-up {
  animation: revealUp 0.78s cubic-bezier(.2, .8, .2, 1) both;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.22s;
}

.delay-3 {
  animation-delay: 0.32s;
}

.delay-4 {
  animation-delay: 0.42s;
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes floatPanel {
  0%, 100% { transform: perspective(900px) rotateY(-6deg) rotateX(3deg) translateY(0); }
  50% { transform: perspective(900px) rotateY(-3deg) rotateX(5deg) translateY(-10px); }
}

@keyframes chartGlow {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.28)); }
  50% { filter: drop-shadow(0 0 22px rgba(103, 232, 249, 0.34)); }
}

@keyframes barLift {
  0%, 100% { transform: scaleY(0.86); transform-origin: bottom; }
  50% { transform: scaleY(1); transform-origin: bottom; }
}

.settle-form {
  min-width: 360px;
  display: grid;
  grid-template-columns: repeat(3, minmax(70px, 1fr));
  gap: 6px;
}

.ticket-selection-grid {
  display: grid;
  gap: 10px;
}

.selection-row {
  display: grid;
  grid-template-columns: 34px 1.4fr 1fr 1fr 1fr 90px 120px 120px;
  gap: 8px;
  align-items: center;
}

.selection-index {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.16);
  color: #93C5FD;
  font-weight: 800;
}

.selection-chip {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  margin: 3px;
  background: rgba(15, 23, 42, 0.72);
  color: #C7D2FE;
  font-size: 12px;
}

.ticket-detail-row td {
  background: #0B1220 !important;
}

.alert {
  border-radius: 14px;
  border-color: var(--border);
}

.fade-in {
  animation: fadeIn 0.45s ease both;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

body.sidebar-collapsed .app-shell {
  grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr);
}

body.sidebar-collapsed .brand-copy,
body.sidebar-collapsed .side-nav a b,
body.sidebar-collapsed .sidebar-health div {
  display: none;
}

body.sidebar-collapsed .brand-block {
  grid-template-columns: 54px;
  justify-content: center;
}

body.sidebar-collapsed .sidebar-toggle {
  display: none;
}

body.sidebar-collapsed .side-nav a {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 6px;
}

@media (max-width: 1366px) {
  .executive-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .login-showcase {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  }

  .login-artboard {
    min-height: 520px;
  }

  .login-panel {
    min-height: 520px;
  }

  .login-artboard {
    grid-column: 1 / 2;
  }

  .login-panel {
    grid-column: 2 / 3;
    grid-row: 1 / 3;
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sote-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  body.menu-open .sote-sidebar {
    transform: translateX(0);
  }

  .topbar,
  .topbar-right,
  .command-hero,
  .page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-right {
    width: 100%;
    align-items: stretch;
  }

  .dashboard-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .login-showcase {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .login-hero,
  .login-artboard,
  .login-panel {
    min-height: auto;
  }

  .login-artboard,
  .login-panel,
  .benefit-strip {
    grid-column: auto;
    grid-row: auto;
  }

  .login-hero {
    min-height: 640px;
  }

  .login-artboard {
    min-height: 580px;
  }

  .benefit-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .content-area,
  .auth-content {
    padding: 14px;
  }

  .executive-grid {
    grid-template-columns: 1fr;
  }

  .panel-toolbar,
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .table-search {
    width: 100%;
  }

  .selection-row {
    grid-template-columns: 34px 1fr;
  }

  .quick-ticket-form {
    grid-template-columns: 1fr;
  }

  .login-showcase {
    gap: 14px;
    padding: 0;
  }

  .login-hero,
  .login-artboard,
  .login-panel,
  .benefit-strip article {
    border-radius: 16px;
  }

  .login-hero,
  .login-panel {
    padding: 18px;
  }

  .login-nav,
  .login-nav-actions,
  .hero-metrics,
  .mini-grid,
  .operation-board,
  .auth-links {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .operation-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .operation-header small {
    margin-left: 0;
  }

  .login-nav-actions a,
  .hero-actions .btn {
    justify-content: center;
    width: 100%;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .market-window {
    width: calc(100% - 22px);
    transform: none;
  }

  .chart-preview {
    height: 220px;
  }

  .login-artboard {
    min-height: 520px;
  }

  .login-panel h2 {
    font-size: 28px;
  }

  .ring-one {
    width: 390px;
    height: 390px;
  }

  .ring-two {
    width: 270px;
    height: 270px;
  }
}

.auth-modern {
  width: min(1280px, 100%);
  min-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 20px;
  align-items: stretch;
  padding: 12px;
}

.auth-modern::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.16), transparent 32%),
    radial-gradient(circle at 76% 22%, rgba(245, 158, 11, 0.14), transparent 24%),
    linear-gradient(180deg, #060B14, #0B1220 58%, #111827);
  pointer-events: none;
}

.auth-story,
.auth-focus-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  overflow: hidden;
}

.auth-story {
  min-height: 720px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(8, 13, 24, 0.96)),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.06) 0 1px, transparent 1px 84px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.auth-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.auth-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #F8FAFC;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.auth-brand-lockup img {
  width: 74px;
  height: 48px;
  object-fit: contain;
  padding: 5px;
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 12px;
  background: #050B15;
}

.auth-nav-link,
.auth-switch a {
  color: #67E8F9;
  font-weight: 800;
}

.auth-story-copy {
  max-width: 760px;
  align-self: center;
}

.auth-story-copy h1 {
  max-width: 760px;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: 1;
}

.auth-story-copy p {
  max-width: 650px;
  margin-top: 18px;
  color: #B7C4D7;
  font-size: 18px;
  line-height: 1.62;
}

.auth-signal-card,
.register-checklist {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(103, 232, 249, 0.18);
  border-radius: 18px;
  background: rgba(8, 13, 24, 0.72);
  backdrop-filter: blur(14px);
}

.signal-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  color: #E2E8F0;
}

.signal-card-head small {
  margin-left: auto;
  color: #86EFAC;
  font-weight: 900;
  text-transform: uppercase;
}

.signal-lane,
.register-checklist div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.74);
}

.signal-lane span,
.register-checklist span {
  color: #94A3B8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-lane strong {
  color: #F8FAFC;
  font-size: 28px;
  line-height: 1;
}

.signal-lane small,
.register-checklist small {
  grid-column: 1 / -1;
  color: #86EFAC;
  font-weight: 800;
}

.auth-focus-card {
  min-height: 720px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3vw, 40px);
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.1), rgba(15, 23, 42, 0.92)),
    #0F172A;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.auth-focus-card .auth-logo {
  width: min(280px, 100%);
  height: 118px;
  margin: 0 0 22px;
  border-color: rgba(103, 232, 249, 0.22);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(6, 182, 212, 0.1);
}

.auth-focus-card h2 {
  font-size: 40px;
  margin: 0 0 8px;
}

.auth-focus-card p {
  margin-bottom: 24px;
  color: #B7C4D7;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label span {
  color: #D6E4F0;
  font-size: 13px;
  font-weight: 900;
}

.auth-form .form-control {
  min-height: 54px;
  border-radius: 14px;
  background: rgba(8, 13, 24, 0.84);
}

.auth-form .btn {
  min-height: 54px;
  margin-top: 4px;
  border-radius: 14px;
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #94A3B8;
}

.auth-modern-register {
  grid-template-columns: minmax(360px, 0.72fr) minmax(0, 1.08fr);
}

.register-checklist div {
  grid-template-columns: 46px 1fr;
}

.register-checklist span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(6, 182, 212, 0.12);
  color: #67E8F9;
}

.register-checklist strong {
  color: #F8FAFC;
  font-size: 18px;
}

@media (max-width: 1100px) {
  .auth-modern,
  .auth-modern-register {
    grid-template-columns: 1fr;
  }

  .auth-story,
  .auth-focus-card {
    min-height: auto;
  }

  .auth-focus-card {
    order: 1;
  }

  .auth-story {
    order: 2;
  }
}

@media (max-width: 768px) {
  .auth-modern {
    padding: 0;
  }

  .auth-story,
  .auth-focus-card {
    border-radius: 16px;
    padding: 18px;
  }

  .auth-brand-row,
  .auth-switch,
  .signal-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .signal-card-head small {
    margin-left: 0;
  }

  .auth-story-copy h1 {
    font-size: 38px;
  }

  .auth-story-copy p {
    font-size: 16px;
  }

  .signal-lane {
    grid-template-columns: 1fr;
  }

  .auth-focus-card h2 {
    font-size: 32px;
  }
}

.banner-login-page {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 48px);
  overflow: hidden;
  border-radius: 18px;
  isolation: isolate;
  background: #050B15;
}

.banner-login-bg,
.banner-login-overlay {
  position: absolute;
  inset: 0;
}

.banner-login-bg {
  z-index: -2;
  background-image: url("/img/banner.jpeg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.01);
}

.banner-login-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 11, 21, 0.34), rgba(5, 11, 21, 0.08) 38%, rgba(5, 11, 21, 0.78) 72%, rgba(5, 11, 21, 0.94)),
    linear-gradient(180deg, rgba(5, 11, 21, 0.18), rgba(5, 11, 21, 0.62));
}

.banner-login-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(18px, 3vw, 34px);
}

.banner-login-brand {
  width: clamp(120px, 13vw, 210px);
  display: inline-flex;
  align-items: center;
}

.banner-login-brand img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(6, 182, 212, 0.24));
}

.banner-login-create {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 999px;
  color: #E2E8F0;
  background: rgba(5, 11, 21, 0.54);
  backdrop-filter: blur(14px);
  font-weight: 900;
}

.banner-login-content {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 160px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: 0 clamp(18px, 4vw, 58px) clamp(24px, 4vw, 58px);
}

.banner-login-copy {
  max-width: 620px;
  align-self: end;
  padding-bottom: clamp(24px, 5vh, 70px);
}

.banner-login-copy h1 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.98;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.52);
}

.banner-login-copy p {
  max-width: 560px;
  margin-top: 18px;
  color: #D6E4F0;
  font-size: 18px;
  line-height: 1.62;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.56);
}

.banner-login-card {
  width: 100%;
  align-self: center;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(103, 232, 249, 0.22);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(8, 13, 24, 0.94)),
    rgba(8, 13, 24, 0.88);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
}

.banner-login-card .auth-logo {
  width: min(250px, 100%);
  height: 108px;
  margin-bottom: 20px;
  background: transparent;
  border-color: rgba(103, 232, 249, 0.14);
}

.banner-login-card h2 {
  font-size: 38px;
  margin: 0 0 8px;
}

.banner-login-card p {
  margin-bottom: 22px;
  color: #B7C4D7;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .banner-login-overlay {
    background:
      linear-gradient(180deg, rgba(5, 11, 21, 0.18), rgba(5, 11, 21, 0.84) 58%, rgba(5, 11, 21, 0.96)),
      linear-gradient(90deg, rgba(5, 11, 21, 0.34), rgba(5, 11, 21, 0.12));
  }

  .banner-login-content {
    min-height: auto;
    grid-template-columns: 1fr;
    align-items: end;
    padding-top: 22vh;
  }

  .banner-login-copy {
    align-self: auto;
    padding-bottom: 0;
  }

  .banner-login-card {
    max-width: 520px;
  }
}

@media (max-width: 768px) {
  .banner-login-page {
    min-height: auto;
    border-radius: 16px;
    overflow: visible;
  }

  .banner-login-bg {
    height: 42vh;
    min-height: 280px;
    bottom: auto;
    background-position: center top;
    transform: none;
  }

  .banner-login-overlay {
    background:
      linear-gradient(180deg, rgba(5, 11, 21, 0.16), rgba(5, 11, 21, 0.82) 36%, #050B15 74%),
      linear-gradient(90deg, rgba(5, 11, 21, 0.3), rgba(5, 11, 21, 0.08));
  }

  .banner-login-nav {
    padding: 14px;
  }

  .banner-login-brand {
    width: 118px;
  }

  .banner-login-create {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .banner-login-content {
    display: grid;
    gap: 18px;
    min-height: auto;
    padding: 18vh 14px 14px;
  }

  .banner-login-copy h1 {
    font-size: 34px;
  }

  .banner-login-copy p {
    font-size: 15px;
  }

  .banner-login-card {
    padding: 18px;
    border-radius: 18px;
  }

  .banner-login-card .auth-logo {
    height: 82px;
    margin-bottom: 14px;
  }

  .banner-login-card h2 {
    font-size: 30px;
  }
}

/* Mobile app refinement: dense command center on desktop, ergonomic app on phones. */
.mobile-scrim,
.mobile-dock {
  display: none;
}

.mobile-menu {
  width: 42px;
  min-width: 42px;
  display: none;
  place-items: center;
  gap: 4px;
  padding: 0;
}

.mobile-menu span {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: #D6E4F0;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 84px;
  }

  body {
    min-width: 320px;
    background: #050B15;
    font-size: 15px;
    overflow-x: hidden;
  }

  body.menu-open {
    overflow: hidden;
  }

  h1 {
    font-size: 25px;
    line-height: 1.08;
  }

  h2 {
    font-size: 17px;
    line-height: 1.2;
  }

  p {
    line-height: 1.5;
  }

  .app-shell {
    display: block;
    min-height: 100vh;
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
    background:
      linear-gradient(180deg, rgba(6, 182, 212, 0.08), transparent 220px),
      #050B15;
  }

  .mobile-scrim {
    position: fixed;
    inset: 0;
    z-index: 29;
    display: block;
    pointer-events: none;
    opacity: 0;
    background: rgba(2, 6, 23, 0.68);
    backdrop-filter: blur(8px);
    transition: opacity 0.22s ease;
  }

  body.menu-open .mobile-scrim {
    pointer-events: auto;
    opacity: 1;
  }

  .sote-sidebar {
    width: min(88vw, 340px);
    padding: 14px;
    z-index: 30;
    border-right: 1px solid rgba(103, 232, 249, 0.18);
    box-shadow: 28px 0 80px rgba(0, 0, 0, 0.46);
  }

  .brand-block {
    grid-template-columns: 52px 1fr;
    min-height: 54px;
  }

  .brand-mark {
    width: 52px;
    height: 42px;
    border-radius: 10px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .sidebar-toggle {
    display: none;
  }

  .side-nav {
    gap: 8px;
    padding: 8px 2px 16px 0;
  }

  .side-nav a {
    min-height: 50px;
    border-radius: 12px;
    grid-template-columns: 38px 1fr;
    padding: 8px 10px;
  }

  .side-nav a span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .sidebar-health {
    border-radius: 14px;
    padding: 12px;
  }

  .workspace {
    display: block;
  }

  .topbar {
    min-height: 66px;
    position: sticky;
    top: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
    border-bottom-color: rgba(103, 232, 249, 0.14);
    background: rgba(5, 11, 21, 0.92);
  }

  .topbar-left {
    width: 100%;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }

  .mobile-menu {
    display: grid;
  }

  .topbar-left .eyebrow {
    margin: 0;
    font-size: 9px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .topbar-left strong {
    max-width: 100%;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-right {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .topbar-chip,
  .user-chip,
  .status-chip {
    min-width: 0;
    min-height: 42px;
    border-radius: 12px;
    padding: 7px 9px;
  }

  .topbar-chip span,
  .user-chip small {
    font-size: 10px;
  }

  .topbar-chip strong,
  .user-chip strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .status-chip.ok {
    display: none;
  }

  .topbar-right form {
    grid-column: span 3;
  }

  .topbar-right .btn {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
  }

  .mobile-dock {
    position: fixed;
    inset: auto 10px calc(10px + env(safe-area-inset-bottom)) 10px;
    z-index: 26;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    border: 1px solid rgba(103, 232, 249, 0.18);
    border-radius: 18px;
    background: rgba(8, 13, 24, 0.94);
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(18px);
  }

  .mobile-dock a {
    min-width: 0;
    min-height: 54px;
    display: grid;
    place-items: center;
    gap: 3px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #94A3B8;
  }

  .mobile-dock a.active {
    border-color: rgba(103, 232, 249, 0.28);
    background: rgba(37, 99, 235, 0.18);
    color: #F8FAFC;
  }

  .mobile-dock span {
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(148, 163, 184, 0.1);
    font-size: 10px;
    font-weight: 900;
  }

  .mobile-dock b {
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .content-area,
  .auth-content {
    padding: 12px;
  }

  .command-hero,
  .page-head,
  .page-band,
  .panel,
  .auth-panel,
  .premium-card {
    border-radius: 14px;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
  }

  .command-hero,
  .page-head {
    display: grid;
    gap: 14px;
    padding: 16px;
    margin-bottom: 14px;
  }

  .command-hero p,
  .page-head p {
    margin-top: 7px;
    font-size: 14px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .metric-grid,
  .executive-grid,
  .dashboard-grid,
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .metric {
    min-height: 118px;
    padding: 15px;
    border-radius: 14px;
  }

  .metric:hover,
  .panel:hover {
    transform: none;
  }

  .metric strong {
    font-size: 25px;
  }

  .metric-head span {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .panel,
  .page-band {
    padding: 15px;
  }

  .panel-toolbar {
    display: grid;
    gap: 12px;
    margin-bottom: 13px;
  }

  .panel-toolbar > * {
    min-width: 0;
  }

  .chart-panel {
    min-height: 300px;
  }

  canvas {
    max-height: 230px;
  }

  .segmented-control {
    width: 100%;
    overflow-x: auto;
  }

  .segmented-control button {
    min-height: 36px;
    min-width: 56px;
  }

  .table-shell {
    max-height: 62vh;
    border-radius: 12px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table {
    min-width: 760px;
    font-size: 13px;
  }

  .table td,
  .table th {
    padding: 10px 9px;
  }

  .table-search,
  .form-control,
  .form-select,
  .btn {
    min-height: 46px;
    border-radius: 12px;
    font-size: 15px;
  }

  .form-control-sm,
  .form-select-sm,
  .btn-sm {
    min-height: 42px;
    font-size: 14px;
  }

  .row.g-3 {
    --bs-gutter-y: 0.75rem;
  }

  .selection-row {
    grid-template-columns: 34px 1fr;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.56);
  }

  .selection-row input,
  .selection-row select {
    grid-column: 1 / -1;
  }

  .selection-index {
    grid-column: 1;
  }

  .settle-form {
    min-width: 300px;
    grid-template-columns: 1fr;
  }

  .quick-ticket-form {
    min-width: 210px;
    grid-template-columns: 1fr;
  }

  .health-grid,
  .exposure-map,
  .performance-heatmap {
    grid-template-columns: 1fr;
  }

  .risk-gauge {
    width: 132px;
    height: 132px;
    border-width: 8px;
  }

  .ranking-list div {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .ranking-list small {
    grid-column: 2;
  }

  .audit-list,
  .ranking-list {
    max-height: none;
  }

  .banner-login-page {
    min-height: 100vh;
    border-radius: 0;
  }

  .banner-login-bg {
    height: 35vh;
    min-height: 230px;
  }

  .banner-login-nav {
    padding: 13px 13px 0;
  }

  .banner-login-content {
    gap: 14px;
    padding: max(120px, 24vh) 12px 12px;
  }

  .banner-login-copy {
    padding: 0;
  }

  .banner-login-copy h1 {
    font-size: 31px;
    line-height: 1.05;
  }

  .banner-login-copy p {
    margin-top: 12px;
    font-size: 14px;
  }

  .banner-login-card {
    padding: 16px;
    border-radius: 16px;
  }

  .banner-login-card .auth-logo {
    width: min(180px, 78%);
    height: 72px;
  }

  .banner-login-card h2 {
    font-size: 28px;
  }

  .auth-form {
    gap: 12px;
  }
}

@media (max-width: 430px) {
  .topbar {
    padding-inline: 10px;
  }

  .topbar-right {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar-chip:nth-of-type(3),
  .user-chip {
    display: none;
  }

  .topbar-right form {
    grid-column: span 2;
  }

  .content-area,
  .auth-content {
    padding: 10px;
  }

  .command-hero,
  .page-head,
  .panel,
  .metric {
    padding: 13px;
  }

  .mobile-dock {
    inset-inline: 8px;
    padding: 6px;
    border-radius: 16px;
  }

  .mobile-dock a {
    min-height: 50px;
  }

  .mobile-dock b {
    font-size: 9px;
  }

  .table {
    min-width: 700px;
  }

  .banner-login-copy h1 {
    font-size: 28px;
  }
}
