:root {
  --t3-navy: #0c1f3d;
  --t3-navy-900: #06111f;
  --t3-blue: #1e4fa3;
  --t3-blue-400: #3d7adf;
  --t3-red: #c8102e;
  --t3-red-600: #a40d25;
  --t3-bg: #eef1f6;
  --t3-white: #fff;
  --t3-ink: #0e1726;
  --t3-muted: #5d6d86;
  --t3-line: rgba(12,31,61,.1);
  --sidebar: 272px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Plus Jakarta Sans", Inter, sans-serif;
}
[data-bs-theme="dark"] {
  --t3-bg: #06111f; --t3-white: #10284d; --t3-ink: #f4f6fb; --t3-muted: #9aa8c0;
}
html, body { margin: 0; background: var(--t3-bg); color: var(--t3-ink); font-family: var(--font); }
h1,h2,h3,.brand { font-family: var(--display); letter-spacing: -.02em; }
a { text-decoration: none; color: var(--t3-blue); }

.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; align-items: start; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  background: var(--t3-navy-900);
  color: #fff;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar .brand { display: flex; gap: 10px; align-items: center; color: #fff; font-weight: 700; margin-bottom: 22px; flex: none; }
img.t3-mark { width: 36px; height: 36px; border-radius: 50%; background: #fff; object-fit: contain; padding: 2px; display: block; }
.nav-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.38); padding: 10px 12px 6px; }
.sidebar > .nav-label { flex: none; }
.sidebar nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 8px;
  padding-right: 2px;
}
.sidebar nav a { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.72); padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.sidebar nav a svg { opacity: .8; }
.sidebar nav a:hover, .sidebar nav a.is-active { background: rgba(200,16,46,.16); color: #fff; }
.sidebar nav a.is-active { box-shadow: inset 3px 0 0 var(--t3-red); }
.sidebar .side-user {
  flex: none;
  margin-top: auto;
  padding: 14px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  color: rgba(255,255,255,.7);
  background: var(--t3-navy-900);
}
.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 68px; background: var(--t3-white); border-bottom: 1px solid var(--t3-line); display: flex; align-items: center; padding: 0 24px; gap: 16px; }
.topbar h1 { font-size: 18px; margin: 0; }
.content { padding: 28px; }
.kpi, .panel, .chart-card { background: var(--t3-white); border: 1px solid var(--t3-line); border-radius: 18px; padding: 20px; box-shadow: 0 10px 30px rgba(6,17,31,.04); }
.kpi { display: flex; gap: 14px; align-items: center; border-top: 3px solid var(--t3-red); }
.row > [class*="col"]:nth-child(even) .kpi { border-top-color: var(--t3-blue); }
.kpi-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(30,79,163,.12); color: var(--t3-navy); display: grid; place-items: center; font-weight: 800; flex: none; }
.kpi b { display: block; font-size: 24px; font-family: var(--display); }
.kpi span { color: var(--t3-muted); font-size: 13px; }
.kpi-link { color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.kpi-link:hover { color: inherit; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(6,17,31,.08); }
.kpi-alert { border-top-color: var(--t3-red) !important; background: linear-gradient(180deg, rgba(200,16,46,.04), #fff 42%); }
.kpi-warn { border-top-color: #b36b00 !important; }
.chart-card h3 { font-size: 14px; margin: 0; color: var(--t3-muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.chart-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.chart-card-tall { min-height: 320px; display: flex; flex-direction: column; }
.chart-wrap { flex: 1; position: relative; min-height: 220px; }

.dash-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #06111f 0%, #0c1f3d 55%, #1e4fa3 140%);
  color: #fff;
}
.dash-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 700; margin: 0; }
.dash-title { font-size: 24px; margin: 0; color: #fff; }
.dash-hero .text-muted { color: rgba(255,255,255,.62) !important; }
.dash-exports { display: flex; gap: 8px; flex-wrap: wrap; }
.dash-exports .btn-outline-secondary { border-color: rgba(255,255,255,.28); color: #fff; }
.dash-exports .btn-outline-secondary:hover { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.45); }
.dash-shortcuts { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--t3-white);
  border: 1px solid var(--t3-line);
  color: var(--t3-navy-900);
  font-size: 13px;
  font-weight: 600;
}
.dash-chip strong { color: var(--t3-red); }
.dash-chip:hover { border-color: rgba(200,16,46,.35); color: var(--t3-navy-900); }
.dash-panel { padding: 0; overflow: hidden; }
.dash-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--t3-line);
}
.dash-panel-head h3 {
  margin: 0;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--t3-muted);
  font-weight: 700;
}
.dash-panel-head a { font-size: 13px; font-weight: 700; }
.dash-table { margin: 0; }
.dash-table th, .dash-table td { padding: 12px 18px; }
.score-pill {
  display: inline-flex;
  min-width: 42px;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(12,31,61,.08);
  font-weight: 800;
  color: var(--t3-navy);
}
.dash-rank { list-style: none; margin: 0; padding: 8px 0; }
.dash-rank li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--t3-line);
}
.dash-rank li:last-child { border-bottom: 0; }
.rank-no {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(12,31,61,.08);
  font-size: 12px;
  font-weight: 800;
  color: var(--t3-navy);
  flex: none;
}
.dash-rank li:nth-child(1) .rank-no { background: rgba(200,16,46,.14); color: var(--t3-red); }
.dash-rank li:nth-child(2) .rank-no { background: rgba(30,79,163,.14); color: var(--t3-blue); }
.rank-meta { flex: 1; min-width: 0; }
.rank-meta a { display: block; font-weight: 700; color: var(--t3-navy-900); }
.rank-meta small { color: var(--t3-muted); }
.dash-feed { list-style: none; margin: 0; padding: 0; }
.dash-feed li { padding: 14px 18px; border-bottom: 1px solid var(--t3-line); }
.dash-feed li:last-child { border-bottom: 0; }
.dash-feed-compact li { padding: 10px 0; }
.dash-feed-compact li:first-child { padding-top: 0; }
.feed-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.feed-time { margin-left: auto; font-size: 12px; color: var(--t3-muted); }
.feed-title { display: block; font-weight: 700; color: var(--t3-navy-900); margin-bottom: 2px; }
a.feed-title:hover { color: var(--t3-red); }
.feed-sub { font-size: 13px; color: var(--t3-muted); }

.dash-ops > [class*="col"] { display: flex; }
.dash-panel-fill { width: 100%; display: flex; flex-direction: column; min-height: 420px; }
.dash-panel-body { flex: 1; display: flex; flex-direction: column; }
.dash-panel-meta { font-size: 12px; font-weight: 700; color: var(--t3-muted); }
.dash-split {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  flex: 1;
}
.dash-split section {
  padding: 14px 18px;
  border-bottom: 1px solid var(--t3-line);
  display: flex;
  flex-direction: column;
}
.dash-split section:last-child { border-bottom: 0; }
.dash-subhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--t3-muted);
}
.dash-subhead a { font-size: 12px; letter-spacing: 0; text-transform: none; }
.dash-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 28px 18px;
  color: var(--t3-muted);
}
.dash-empty p { margin: 0; max-width: 28ch; }
.dash-empty-sm { padding: 18px 8px; min-height: 110px; }
.dash-empty-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(12,31,61,.06);
  position: relative;
}
.dash-empty-ico::before {
  content: "";
  position: absolute;
  inset: 14px 12px 16px;
  border: 2px solid var(--t3-navy);
  border-radius: 4px;
  border-bottom-width: 6px;
}
.dash-empty-ico.ok {
  background: rgba(22,120,70,.1);
}
.dash-empty-ico.ok::before {
  inset: 16px 12px;
  border: 0;
  border-left: 3px solid #167846;
  border-bottom: 3px solid #167846;
  border-radius: 0;
  transform: rotate(-45deg);
  height: 10px;
  width: 18px;
  top: 14px;
  left: 12px;
}
.dash-empty-ico.announce::before {
  inset: 12px 14px;
  border-radius: 3px 3px 10px 3px;
  border-bottom-width: 2px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 70%, 50% 100%, 50% 70%, 0 70%);
}
.status-panel {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 18px;
}
.status-chart-wrap {
  position: relative;
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.status-chart-wrap canvas { width: 100% !important; height: 100% !important; }
.status-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  pointer-events: none;
}
.status-center b { font-size: 28px; font-family: var(--display); line-height: 1; color: var(--t3-navy-900); }
.status-center small { color: var(--t3-muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.status-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.status-legend li {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--t3-bg);
}
.status-dot { width: 10px; height: 10px; border-radius: 50%; }
.status-name { font-size: 13px; font-weight: 650; color: var(--t3-navy-900); }
.status-legend strong { font-size: 14px; color: var(--t3-navy-900); }
.status-legend em { font-style: normal; font-size: 12px; color: var(--t3-muted); font-weight: 700; }

.lang-flags { display: inline-flex; gap: 4px; padding: 3px; background: var(--t3-bg); border: 1px solid var(--t3-line); border-radius: 999px; }
.lang-flag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; color: var(--t3-muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.lang-flag .flag { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); display: block; }
.lang-flag.is-active { background: var(--t3-navy); color: #fff; }

.btn-accent { background: var(--t3-red); border: 0; color: #fff; font-weight: 700; border-radius: 12px; padding: 10px 16px; }
.btn-accent:hover { color: #fff; background: var(--t3-red-600); }
.table thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--t3-muted); font-weight: 600; }
.pill { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(30,79,163,.1); color: var(--t3-navy); }
.form-control, .form-select { min-height: 46px; border-radius: 12px; }
.queue-card { display: flex; flex-direction: column; gap: 14px; }
.queue-card pre { background: var(--t3-bg); border-radius: 12px; padding: 12px; }

.queue-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.queue-head .section-title { margin: 0; }
.queue-stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.queue-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.queue-card-top > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.queue-girisim { font-weight: 800; color: var(--t3-navy); text-decoration: none; }
.queue-girisim:hover { color: var(--t3-red); }
.queue-summary { color: var(--t3-muted); font-size: 13px; }
.queue-age { font-size: 12px; color: var(--t3-muted); white-space: nowrap; }
.queue-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0; padding: 14px 16px; background: var(--t3-bg); border-radius: 14px; }
.queue-meta dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--t3-muted); font-weight: 700; }
.queue-meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--t3-navy-900); word-break: break-word; }
.queue-diff th[scope="row"] { width: 200px; font-size: 13px; color: var(--t3-muted); font-weight: 600; }
.queue-diff td { font-size: 14px; vertical-align: top; }
.queue-diff td.old { color: var(--t3-muted); }
.queue-diff tr.is-changed td.new { font-weight: 700; color: var(--t3-navy-900); }
.queue-diff .chg { font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--t3-red); margin-left: 6px; }
.queue-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.queue-actions .form-control { flex: 1 1 260px; }
.queue-history td { font-size: 14px; }
.pill-new { background: rgba(207,29,52,.1); color: var(--t3-red); }
.pill-risk { font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 10px; }
.pill-risk-3 { background: rgba(200,16,46,.14); color: var(--t3-red); }
.pill-risk-2 { background: rgba(255,152,0,.14); color: #b36b00; }
.pill-risk-1 { background: rgba(22,120,70,.12); color: #167846; }
.queue-bulk { padding: 14px 16px; }
tr.is-stale { background: rgba(200,16,46,.04); }
.cohort-card { border: 1px solid var(--t3-line); border-radius: 12px; padding: 14px; background: #fff; }
.cohort-metrics { display: flex; flex-wrap: wrap; gap: 10px 16px; font-size: 13px; color: var(--t3-muted); }
.cohort-metrics span { white-space: nowrap; }

.shortlist-panel { display: flex; flex-direction: column; gap: 14px; }
.shortlist-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.shortlist-exports { display: flex; gap: 8px; }
.shortlist-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shortlist-toolbar .form-control,
.shortlist-toolbar .form-select { min-width: 0; flex: 1 1 140px; max-width: 180px; }
.shortlist-toolbar .shortlist-num { flex: 0 1 110px; max-width: 120px; }
.shortlist-chip {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  padding: 7px 12px; border: 1px solid var(--t3-line); border-radius: 999px;
  background: #f6f8fb; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.shortlist-chip input { margin: 0; }
.shortlist-actions { display: flex; gap: 8px; margin-left: auto; }
.shortlist-saved { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shortlist-save { display: flex; gap: 8px; align-items: center; padding-top: 10px; border-top: 1px solid var(--t3-line); }
.shortlist-save .form-control { max-width: 280px; }
.score-cell { min-width: 128px; }
.score-cell-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.score-bar {
  display: flex;
  height: 8px;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(12,31,61,.08);
  width: 120px;
}
.score-bar > span { display: block; height: 100%; flex: none; }
.seg-completeness { background: #1e4fa3; }
.seg-freshness { background: #167846; }
.seg-financial { background: #c8102e; }
.seg-activity { background: #6d4db3; }
.seg-dynamism { background: #d98a00; }
.score-split, .score-evidence { font-size: 12px; color: var(--t3-muted); }
.dyn-chip {
  display: inline-flex; align-items: center; margin-top: 6px;
  padding: 2px 7px; border-radius: 6px;
  background: rgba(217,138,0,.14); color: #8a5800;
  font-size: 11px; font-weight: 700;
}
.conf-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px;
  font-size: 11px; font-weight: 800;
}
.conf-a { background: rgba(22,120,70,.14); color: #167846; }
.conf-b { background: rgba(180,120,20,.16); color: #9a6b10; }
.conf-c { background: rgba(200,16,46,.12); color: var(--t3-red); }
.score-legend {
  display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; padding: 0;
  list-style: none; font-size: 12px; color: var(--t3-muted);
}
.score-legend li { display: inline-flex; align-items: center; gap: 6px; }
.score-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }
.pill.ok { background: rgba(22,132,80,.12); color: #14724a; }
.pill.no { background: rgba(207,29,52,.12); color: var(--t3-red); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; white-space: nowrap; }
.btn-outline-danger {
  --bs-btn-color: var(--t3-red);
  --bs-btn-border-color: var(--t3-red);
  --bs-btn-hover-bg: var(--t3-red);
  --bs-btn-hover-border-color: var(--t3-red);
  --bs-btn-hover-color: #fff;
  border-radius: 10px;
  font-weight: 600;
}
.section-title { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--t3-muted); margin: 28px 0 12px; font-weight: 800; }

/* Cinematic login — full-viewport T3 field + glass sign-in column */
.gate { min-height: 100vh; min-height: 100svh; position: relative; display: grid; grid-template-rows: auto 1fr; background: #06111f; overflow: hidden; }
.gate-sky { position: absolute; inset: 0; background:
  radial-gradient(1100px 620px at 18% 42%, rgba(200,16,46,.38), transparent 58%),
  radial-gradient(980px 560px at 78% 8%, rgba(30,79,163,.48), transparent 62%),
  radial-gradient(760px 480px at 72% 100%, rgba(12,31,61,.9), transparent 55%),
  linear-gradient(180deg, #040b16, #0c1f3d 58%, #06111f); }
.gate-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 32% 48%, #000 12%, transparent 72%); pointer-events: none; }
.gate-scene { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.gate-scene canvas { display: block; width: 100%; height: 100%; }
.gate-top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 22px 32px; }
.gate-top .brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-weight: 700; }
.gate-body { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr); min-height: 0; }
.gate-field { position: relative; min-height: 0; display: grid; place-items: center; padding: 0 24px 120px; }
.gate-legend { position: absolute; left: 40px; right: 40px; bottom: 36px; max-width: 46ch; color: #fff; z-index: 2; }
.gate-kicker { margin: 0 0 10px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: #ff8a9a; }
.gate-legend h2 { margin: 0 0 10px; font-size: clamp(28px, 4.2vw, 48px); line-height: 1.05; max-width: 14ch; }
.gate-legend p { margin: 0 0 18px; color: rgba(255,255,255,.68); font-size: 16px; max-width: 42ch; }
.gate-emblem { position: relative; z-index: 2; width: min(46vh, 42vw, 440px); aspect-ratio: 1; display: grid; place-items: center; pointer-events: none; }
.gate-glow { position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(30,79,163,.55), rgba(200,16,46,.18) 52%, transparent 74%); filter: blur(22px); animation: gateBreathe 6s ease-in-out infinite; }
.gate-orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.gate-orbit.o1 { inset: -4%; border-top-color: var(--t3-red); border-right-color: transparent; animation: gateSpin 18s linear infinite; }
.gate-orbit.o2 { inset: 10%; border-bottom-color: var(--t3-blue-400); border-left-color: transparent; animation: gateSpin 12s linear infinite reverse; }
.gate-orbit.o3 { inset: 24%; border-left-color: rgba(255,255,255,.4); border-right-color: rgba(255,255,255,.08); animation: gateSpin 28s linear infinite; }
.gate-emblem img { position: relative; width: 48%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 18px 36px rgba(0,0,0,.45)); }
@keyframes gateSpin { to { transform: rotate(360deg); } }
@keyframes gateBreathe { 0%, 100% { opacity: .58; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .gate-glow { animation: none; }
  .gate-orbit.o1 { animation-duration: 48s; }
  .gate-orbit.o2 { animation-duration: 36s; }
  .gate-orbit.o3 { animation-duration: 64s; }
}
.gate-stage { position: relative; display: grid; place-items: center; padding: 12px 36px 36px; background: linear-gradient(180deg, rgba(6,17,31,.22), rgba(6,17,31,.62)); border-left: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(16px); }
.gate-card { width: min(440px, 100%); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 28px; padding: clamp(22px, 3.2vh, 34px) 28px; color: #fff; backdrop-filter: blur(22px); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.gate-card h1, .gate-card h2 { font-size: clamp(22px, 3vh, 28px); margin: 0 0 6px; }
.gate-card .mb-3 { margin-bottom: clamp(10px, 1.6vh, 16px) !important; }
.gate-card .mb-4 { margin-bottom: clamp(12px, 2.2vh, 24px) !important; }
.gate-card .text-muted, .gate-card .meta { color: rgba(255,255,255,.62) !important; }
.gate-card .form-check { display: flex; align-items: center; gap: 10px; min-height: 28px; color: rgba(255,255,255,.82); }
.gate-card .form-check-input { width: 18px; height: 18px; margin: 0; flex: none; background-color: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.55); cursor: pointer; }
.gate-card .form-check-input:checked { background-color: var(--t3-red); border-color: var(--t3-red); }
.gate-card .form-check-input:focus { box-shadow: 0 0 0 3px rgba(200,16,46,.28); }
.gate-card .form-label, .gate-card .form-check-label { color: rgba(255,255,255,.82); }
.gate-card .form-check-label { cursor: pointer; user-select: none; }
.gate-card .form-control { background: rgba(6,17,31,.45); border-color: rgba(255,255,255,.16); color: #fff; }
.gate-card .form-control:focus { border-color: var(--t3-blue-400); box-shadow: 0 0 0 3px rgba(30,79,163,.28); color: #fff; }
.gate-badge { display: inline-flex; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #ff8a9a; font-weight: 800; margin-bottom: 12px; }
.gate-points { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.gate-points li { list-style: none; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.82); font-size: 12px; font-weight: 700; }
.gate-foot { margin-top: 18px; color: rgba(255,255,255,.38); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; text-align: center; }
.gate:not(:has(.gate-body)) { place-items: center; padding: 48px 16px; }
.gate:not(:has(.gate-body)) .gate-card { position: relative; z-index: 2; }
.empty { padding: 48px; text-align: center; color: var(--t3-muted); }

@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    max-height: none;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    overflow: auto;
    padding: 12px;
  }
  .sidebar .brand { margin-bottom: 0; flex: none; }
  .sidebar nav {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    margin-bottom: 0;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar nav a { white-space: nowrap; flex: none; margin-bottom: 0; }
  .nav-label, .side-user { display: none; }
  .content { padding: 16px; }
  .topbar { height: auto; min-height: 56px; padding: 10px 16px; flex-wrap: wrap; }
  .topbar h1 { font-size: 16px; }
  .panel, .kpi, .chart-card { padding: 14px; }
  .dash-hero { padding: 16px; }
  .dash-title { font-size: 20px; }
  .dash-panel-head, .dash-table th, .dash-table td, .dash-feed li, .dash-rank li { padding-left: 14px; padding-right: 14px; }
  .feed-time { margin-left: 0; width: 100%; }
  .dash-panel-fill { min-height: 0; }
  .status-panel { grid-template-columns: 1fr; }
  .status-chart-wrap { max-width: 160px; }
  .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .queue-actions .form-control { flex: 1 1 100%; }
  .queue-diff th[scope="row"] { width: 120px; }
  .shortlist-toolbar .form-control,
  .shortlist-toolbar .form-select,
  .shortlist-toolbar .shortlist-num { flex: 1 1 calc(50% - 8px); max-width: none; }
  .shortlist-actions { margin-left: 0; width: 100%; }
  .gate-top { padding: 16px; }
  .gate-body { grid-template-columns: 1fr; }
  .gate-field { min-height: 34vh; padding: 8px 16px 16px; }
  .gate-legend { display: none; }
  .gate-emblem { width: min(42vw, 220px); }
  .gate-stage { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); padding: 8px 16px 28px; align-items: start; }
}
@media (max-width: 640px) {
  .shortlist-toolbar .form-control,
  .shortlist-toolbar .form-select,
  .shortlist-toolbar .shortlist-num { flex: 1 1 100%; }
  .shortlist-head { flex-direction: column; align-items: stretch; }
  .shortlist-save { flex-direction: column; align-items: stretch; }
  .shortlist-save .form-control { max-width: none; width: 100%; }
  .request-actions { flex-direction: column; align-items: stretch; }
  .kpi b { font-size: 20px; }
}

.request-list { display: flex; flex-direction: column; gap: 14px; }
.request-card.is-new { border-color: rgba(200,16,46,.28); box-shadow: 0 0 0 1px rgba(200,16,46,.08); }
.request-card-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.request-card-top > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.request-from { flex-direction: column; align-items: flex-start !important; gap: 2px !important; font-size: 13px; }
.request-body { white-space: pre-wrap; color: var(--t3-muted); margin-bottom: 14px; }
.request-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.request-actions .form-control { flex: 1 1 220px; }
.request-actions .form-select { flex: 0 1 180px; }
.request-reply-form .form-control { width: 100%; }
.notify-check {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--t3-line);
  border-radius: 12px;
  background: var(--t3-bg);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.notify-check .form-check-input { margin: 0; }

.compare-table th:first-child { width: 180px; color: var(--t3-muted); font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 16px; }
.toolbar .form-control, .toolbar .form-select { max-width: 220px; }
