:root {
  --brand-50: #eaf6ff;
  --brand-100: #d8f0ff;
  --brand-200: #ace2ff;
  --brand-300: #7ed6ff;
  --brand-400: #52c5fb;
  --brand-500: #29aaf4;
  --brand-600: #159deb;
  --brand-700: #0b8bdd;
  --brand-800: #0876c5;
  --brand-900: #055f9f;
  --logo-blue: #29aaf4;
  --logo-blue-light: #74d3ff;
  --logo-blue-deep: #0d97e5;
  --gold-100: #f5e8be;
  --gold-300: #dcb76a;
  --gold-500: #b5873b;
  --gold-700: #74571f;
  --ink: #0b8bdd;
  --ink-2: #239fe7;
  --muted: #61bff0;
  --strong-blue: #0584d6;
  --line: rgba(115, 151, 185, 0.22);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --glass-blue: rgba(232, 246, 255, 0.72);
  --danger: #d92d20;
  --success: #12a66a;
  --warning: #b7791f;
  --shadow: 0 24px 70px rgba(27, 127, 227, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  --gold-shadow: 0 18px 44px rgba(181, 135, 59, 0.18), inset 0 1px 0 rgba(255, 247, 219, 0.92);
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  font-feature-settings: "cv11", "ss01", "cv05", "tnum";
  font-variant-numeric: tabular-nums;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  color: var(--ink);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  letter-spacing: 0;
  background-color: #f4faff;
  background-image:
    radial-gradient(circle at 78% 14%, rgba(46, 159, 255, 0.14), transparent 46%),
    radial-gradient(circle at 88% 78%, rgba(216, 169, 64, 0.14), transparent 50%),
    radial-gradient(circle at 12% 90%, rgba(220, 183, 106, 0.08), transparent 44%),
    radial-gradient(rgba(220, 183, 106, 0.18) 1px, transparent 1.2px),
    linear-gradient(rgba(46, 159, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 159, 255, 0.04) 1px, transparent 1px);
  background-size: auto, auto, auto, 32px 32px, 64px 64px, 64px 64px;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

button, .button, .gold-button {
  border: 1px solid rgba(17, 79, 143, 0.18);
  border-radius: 8px;
  min-height: 36px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
  background: linear-gradient(180deg, var(--logo-blue-light), var(--logo-blue) 46%, var(--brand-600));
  box-shadow: 0 10px 22px rgba(27, 127, 227, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.38);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

button:hover, .button:hover, .gold-button:hover { transform: translateY(-1px); }
.secondary {
  color: var(--brand-700);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(46, 159, 255, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.gold-button {
  color: #fff;
  border-color: rgba(41, 170, 244, 0.28);
  background: linear-gradient(180deg, var(--logo-blue-light), var(--logo-blue) 46%, var(--brand-600));
  box-shadow: 0 10px 22px rgba(41, 170, 244, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  padding: 10px 11px;
  min-height: 38px;
  font: inherit;
  box-shadow: inset 0 1px 3px rgba(64, 83, 107, 0.05);
}

input:focus, textarea:focus, select:focus {
  border-color: rgba(46, 159, 255, 0.72);
  outline: 2px solid rgba(46, 159, 255, 0.12);
}

textarea { resize: vertical; line-height: 1.55; }
label { display: grid; gap: 7px; color: var(--ink-2); font-size: 13px; font-weight: 900; }
[hidden] { display: none !important; }
code { border-radius: 6px; background: rgba(41, 170, 244, 0.1); color: var(--brand-700); padding: 2px 6px; }
.field-note {
  margin-top: -8px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}
.field-note.ok { color: var(--brand-700); }
.field-note.warn { color: #b45309; }
.editor-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -6px;
}

.upload-drop {
  min-height: 112px;
  align-content: center;
  justify-items: center;
  border: 1px dashed rgba(41, 170, 244, 0.42);
  border-radius: 8px;
  padding: 16px;
  background: rgba(232, 246, 255, 0.5);
  color: var(--brand-700);
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.upload-drop input {
  max-width: 320px;
  border: 0;
  padding: 0;
  min-height: auto;
  background: transparent;
  box-shadow: none;
}

.upload-drop span {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 800;
}

.upload-drop.dragging {
  border-color: var(--brand-600);
  background: rgba(216, 240, 255, 0.82);
  transform: translateY(-1px);
}

.media-preview {
  display: grid;
  grid-template-columns: minmax(120px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.media-preview img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(41, 170, 244, 0.18);
}

.media-preview code {
  overflow-wrap: anywhere;
}

.asset-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(94px, 1fr));
  gap: 10px;
}

.asset-tile {
  min-height: 88px;
  padding: 0;
  display: grid;
  align-content: stretch;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(41, 170, 244, 0.22);
  background: rgba(255, 255, 255, 0.78);
  color: var(--brand-700);
  box-shadow: none;
}

.asset-tile img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  background: rgba(232, 246, 255, 0.8);
}

.asset-tile span {
  padding: 5px 6px;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.template-grid,
.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 10px;
}

.template-card,
.preset-grid button {
  min-height: 48px;
  color: var(--brand-700);
  background: rgba(255, 255, 255, 0.84);
  border-color: rgba(41, 170, 244, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.button-builder {
  border: 1px solid rgba(41, 170, 244, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(232, 246, 255, 0.42);
}

.button-builder .panel-head {
  margin-bottom: 10px;
}

.button-builder .panel-head h2 {
  font-size: 14px;
}

.button-builder-rows {
  display: grid;
  gap: 8px;
}

.button-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(180px, 1.4fr) auto;
  gap: 8px;
}

.welcome-preview-panel {
  margin-top: 18px;
}

.telegram-preview {
  min-height: 130px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)),
    repeating-linear-gradient(135deg, rgba(41, 170, 244, 0.10) 0 10px, rgba(18, 166, 106, 0.08) 10px 20px);
}

.telegram-bubble {
  max-width: 620px;
  border-radius: 8px;
  padding: 13px 15px;
  color: #111827;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 67, 119, 0.12);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.telegram-bubble.muted {
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.72);
}

.telegram-bubble b,
.telegram-bubble strong {
  font-weight: 1000;
}

.telegram-bubble a {
  color: #2481cc;
  text-decoration: none;
}

.telegram-preview-image {
  display: block;
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.telegram-buttons {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.telegram-button {
  display: block;
  border-radius: 8px;
  padding: 8px 10px;
  color: #2481cc;
  background: #edf6ff;
  text-align: center;
  font-weight: 900;
}

.risk-result {
  margin-top: 12px;
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  gap: 5px;
  font-weight: 900;
}

.risk-result.safe {
  border: 1px solid rgba(18, 166, 106, 0.24);
  color: #087443;
  background: rgba(18, 166, 106, 0.08);
}

.risk-result.danger {
  border: 1px solid rgba(217, 45, 32, 0.22);
  color: #b42318;
  background: rgba(217, 45, 32, 0.08);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-right: 1px solid rgba(220, 183, 106, 0.32);
  background:
    radial-gradient(circle at 18% 0%, rgba(46, 159, 255, 0.18), transparent 58%),
    radial-gradient(circle at 82% 14%, rgba(216, 169, 64, 0.18), transparent 54%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78));
  box-shadow:
    24px 0 70px rgba(11, 60, 122, 0.08),
    inset -1px 0 0 rgba(220, 183, 106, 0.22);
  backdrop-filter: blur(18px);
}

.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, transparent, rgba(220, 183, 106, 0.55) 25%, rgba(220, 183, 106, 0.18) 60%, transparent);
  pointer-events: none;
}

.brand {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 4px 0 16px;
  border-bottom: 1px solid rgba(115, 151, 185, 0.18);
}

.brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 183, 106, 0.7) 30%, rgba(220, 183, 106, 0.7) 70%, transparent);
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 14px 30px rgba(11, 60, 122, 0.18),
    inset 0 0 0 1px rgba(220, 183, 106, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  font-weight: 1000;
}

.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand strong {
  display: block;
  background: linear-gradient(135deg, var(--logo-blue-light) 0%, var(--logo-blue) 38%, var(--brand-800) 78%, #07254a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 19px;
  font-weight: 1000;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(220, 183, 106, 0.18);
  filter: drop-shadow(0 1px 0 rgba(7, 24, 48, 0.06));
}
.brand small {
  display: inline-block;
  margin-top: 5px;
  padding: 1px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 250, 230, 0.95), rgba(245, 232, 190, 0.85));
  border: 1px solid rgba(220, 183, 106, 0.55);
  color: var(--gold-700);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.director-card {
  position: relative;
  border: 1px solid rgba(220, 183, 106, 0.4);
  border-radius: 24px;
  padding: 17px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(233, 247, 255, 0.82) 54%, rgba(255, 246, 218, 0.86));
  box-shadow:
    0 20px 55px rgba(11, 60, 122, 0.12),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
}

.director-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-300), transparent);
}

.director-card > span {
  display: block;
  color: var(--gold-700);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.28em;
}

.director-card > strong {
  display: block;
  margin-top: 10px;
  background: linear-gradient(135deg, var(--logo-blue-light) 0%, var(--logo-blue) 38%, var(--brand-800) 80%, #07254a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 20px;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

.director-card div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.director-card p { display: grid; gap: 4px; text-align: center; }
.director-card b { color: var(--strong-blue); font-size: 20px; }
.director-card small { color: var(--brand-700); font-size: 11px; font-weight: 900; }

nav { display: grid; gap: 6px; }
nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 10px 14px 10px 14px;
  color: #0b3a6e;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 0.02em;
  transition: all 0.18s ease;
}

nav a svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: var(--logo-blue);
  filter: drop-shadow(0 1px 0 rgba(11, 30, 56, 0.18));
  transition: color 0.18s ease, transform 0.18s ease;
}

nav a span { flex: 1; }

nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 183, 106, 0.45), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

nav a:hover {
  color: #07254a;
  border-color: rgba(220, 183, 106, 0.42);
  background: linear-gradient(180deg, rgba(255, 252, 240, 0.92), rgba(255, 246, 218, 0.6));
  box-shadow: 0 10px 22px rgba(181, 135, 59, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

nav a:hover svg { color: var(--gold-500); transform: scale(1.06); }
nav a:hover::after { opacity: 1; }

nav a.active {
  color: #fff;
  border-color: rgba(11, 30, 56, 0.32);
  background:
    linear-gradient(180deg, var(--logo-blue-light), var(--logo-blue) 46%, var(--brand-700)),
    var(--logo-blue);
  box-shadow:
    0 14px 30px rgba(11, 60, 122, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(11, 30, 56, 0.22),
    inset 0 0 0 1px rgba(220, 183, 106, 0.55);
  text-shadow: 0 1px 0 rgba(7, 24, 48, 0.35);
}

nav a.active svg {
  color: #fff;
  filter: drop-shadow(0 1px 0 rgba(7, 24, 48, 0.5)) drop-shadow(0 0 6px rgba(245, 232, 190, 0.55));
}

nav a.active::after { opacity: 0; }

nav a.active::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 4px;
  height: 22px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold-100), var(--gold-300) 50%, var(--gold-500));
  box-shadow: 0 0 10px rgba(220, 183, 106, 0.6), 0 1px 0 rgba(40, 24, 0, 0.25);
  transform: translateY(-50%);
}

.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.sidebar-foot > strong { color: var(--brand-700); font-size: 13px; }
.sidebar-foot > a {
  margin-top: 8px;
  border: 1px solid rgba(115, 151, 185, 0.22);
  border-radius: 16px;
  padding: 12px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.64);
  color: var(--brand-700);
  font-weight: 900;
}

.community-card {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.telegram-dot {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--brand-500);
  color: white;
  font-size: 12px;
  font-weight: 1000;
}
.community-card strong { display: block; color: var(--strong-blue); font-size: 13px; }
.community-card small { display: block; margin-top: 3px; color: var(--muted); }

.main {
  min-width: 0;
  position: relative;
  padding: 28px 28px 46px;
  display: grid;
  gap: 24px;
  align-content: start;
}

.topbar {
  min-height: 92px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.command-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 3px 12px 3px 10px;
  border: 1px solid rgba(220, 183, 106, 0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 250, 230, 0.95), rgba(245, 232, 190, 0.7));
  color: var(--gold-700);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.34em;
  box-shadow: 0 2px 6px rgba(40, 24, 0, 0.08);
}

.command-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-100), var(--gold-500));
  box-shadow: 0 0 6px rgba(220, 183, 106, 0.7);
}

h1 {
  position: relative;
  display: inline-block;
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  background: linear-gradient(135deg, var(--logo-blue-light) 0%, var(--logo-blue) 32%, var(--brand-800) 72%, #07254a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 1000;
  letter-spacing: 0.01em;
  filter: drop-shadow(0 4px 10px rgba(41, 170, 244, 0.18)) drop-shadow(0 1px 0 rgba(220, 183, 106, 0.18));
}

h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500) 50%, transparent);
  box-shadow: 0 0 10px rgba(220, 183, 106, 0.55);
}

h2 {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--strong-blue);
  font-size: 17px;
  line-height: 1.25;
  font-weight: 1000;
  letter-spacing: 0.02em;
}
.panel-head h2::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--logo-blue-light), var(--logo-blue) 50%, var(--brand-800));
  box-shadow: 0 0 6px rgba(41, 170, 244, 0.45), inset 0 0 0 1px rgba(220, 183, 106, 0.4);
}
.ai-panel .panel-head h2::before {
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500) 50%, var(--gold-700));
  box-shadow: 0 0 8px rgba(220, 183, 106, 0.65);
}
h3 { margin-bottom: 10px; color: var(--brand-600); font-size: 14px; line-height: 1.25; font-weight: 1000; }
.topbar p { color: var(--ink-2); margin-top: 10px; font-size: 13px; font-weight: 900; }

.topbar-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.topbar-meta > span:not(.sync-pill) { color: var(--strong-blue); font-weight: 1000; }
.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(220, 183, 106, 0.45);
  border-radius: 999px;
  padding: 7px 15px 7px 13px;
  color: var(--brand-800);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 232, 0.78));
  box-shadow: 0 14px 34px rgba(11, 60, 122, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.06em;
}

.sync-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1ec77a;
  box-shadow: 0 0 0 3px rgba(30, 199, 122, 0.18), 0 0 8px rgba(30, 199, 122, 0.6);
  animation: pulseLive 1.8s ease-in-out infinite;
}

@keyframes pulseLive {
  0%, 100% { box-shadow: 0 0 0 3px rgba(30, 199, 122, 0.18), 0 0 6px rgba(30, 199, 122, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(30, 199, 122, 0.04), 0 0 12px rgba(30, 199, 122, 0.85); }
}

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

.metric {
  position: relative;
  min-height: 124px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 24px;
  padding: 18px 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.82));
  box-shadow:
    0 22px 70px rgba(11, 60, 122, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(220, 183, 106, 0.16);
  backdrop-filter: blur(18px);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 183, 106, 0.55), transparent);
}

.metric::after {
  content: "";
  position: absolute;
  top: -38px;
  right: -38px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(220, 183, 106, 0.18), transparent 62%),
    radial-gradient(circle at 70% 70%, rgba(46, 159, 255, 0.16), transparent 60%);
  pointer-events: none;
}

.metric:hover {
  transform: translateY(-2px);
  box-shadow:
    0 28px 80px rgba(11, 60, 122, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(220, 183, 106, 0.3);
}

.metric span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--strong-blue);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.04em;
}

.metric span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-100), var(--gold-500));
  box-shadow: 0 0 6px rgba(220, 183, 106, 0.6), inset 0 0 0 1px rgba(40, 24, 0, 0.12);
}

.metric strong {
  position: relative;
  display: inline-block;
  margin-top: 13px;
  padding-bottom: 6px;
  background: linear-gradient(135deg, var(--logo-blue-light) 0%, var(--logo-blue) 36%, var(--brand-800) 80%, #07254a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 34px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: 0.01em;
}

.metric strong::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-500));
  box-shadow: 0 0 6px rgba(220, 183, 106, 0.55);
}

.metric small {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 900;
}

.metric.warn {
  border-color: rgba(220, 183, 106, 0.5);
  background:
    linear-gradient(135deg, rgba(255, 250, 232, 0.96), rgba(255, 244, 215, 0.84));
  box-shadow:
    0 22px 70px rgba(181, 135, 59, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(220, 183, 106, 0.45);
}
.metric.warn::after {
  background:
    radial-gradient(circle at 50% 50%, rgba(220, 183, 106, 0.32), transparent 62%);
}
.metric.warn strong { background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 50%, var(--gold-700)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric.warn span { color: var(--gold-700); }

.approval-strip {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(41, 170, 244, 0.34);
  border-radius: 24px;
  padding: 20px 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 247, 255, 0.88) 60%, rgba(255, 250, 232, 0.82));
  box-shadow:
    0 28px 76px rgba(11, 60, 122, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(220, 183, 106, 0.25);
  overflow: hidden;
}

.approval-strip::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-300) 30%, var(--gold-500) 50%, var(--gold-300) 70%, transparent);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(220, 183, 106, 0.5);
}

.approval-strip::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(220, 183, 106, 0.18), 0 0 14px rgba(220, 183, 106, 0.7);
  animation: pulseGold 2.4s ease-in-out infinite;
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 4px rgba(220, 183, 106, 0.16), 0 0 12px rgba(220, 183, 106, 0.55); }
  50% { box-shadow: 0 0 0 7px rgba(220, 183, 106, 0.04), 0 0 18px rgba(220, 183, 106, 0.85); }
}

.approval-strip strong {
  display: block;
  background: linear-gradient(135deg, var(--logo-blue) 0%, var(--brand-800) 70%, #07254a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 17px;
  font-weight: 1000;
  letter-spacing: 0.02em;
}
.approval-strip span { display: block; margin-top: 6px; color: var(--brand-700); font-size: 13px; font-weight: 800; }

.layout { display: grid; gap: 18px; }
.layout.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

.panel {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 22px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 22px 70px rgba(11, 60, 122, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 0 0 1px rgba(220, 183, 106, 0.12);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 183, 106, 0.4) 30%, rgba(220, 183, 106, 0.4) 70%, transparent);
}

.panel-head, .toolbar, .actions, .row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-head { margin-bottom: 15px; }
.panel-head a { color: var(--brand-600); font-size: 13px; font-weight: 1000; }
.panel-subtitle {
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 900;
}
.notice {
  padding: 13px 16px;
  color: var(--brand-800);
  font-size: 13px;
  font-weight: 1000;
}
.notice.ok {
  border-color: rgba(18, 166, 106, 0.22);
  color: #087443;
  background: rgba(18, 166, 106, 0.08);
}
.notice.danger {
  border-color: rgba(217, 45, 32, 0.22);
  color: #b42318;
  background: rgba(217, 45, 32, 0.08);
}
.toolbar { margin-bottom: 15px; }
.inline-form { display: flex; gap: 10px; align-items: center; }
.inline-form input, .inline-form select { min-width: 260px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.span-2 { grid-column: 1 / -1; }
.bot-table input { min-width: 150px; }
.bot-table td { min-width: 150px; }
.bot-status-stack,
.inline-actions,
.bot-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.bot-status-stack {
  align-items: flex-start;
  flex-direction: column;
}
.compact-check {
  display: inline-flex;
  width: fit-content;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  color: var(--ink-2);
  font-size: 12px;
}
.compact-check input { width: 16px; min-height: 16px; }
.bot-identity {
  margin-top: 7px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 900;
}
.bot-identity span {
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(41, 170, 244, 0.1);
}
.inline-actions form { display: inline-flex; }
.danger-button {
  color: #b42318;
  border-color: rgba(217, 45, 32, 0.22);
}
.empty-state {
  border: 1px dashed rgba(41, 170, 244, 0.28);
  border-radius: 8px;
  padding: 18px;
  color: var(--ink-2);
  background: rgba(232, 246, 255, 0.42);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.v3-panel {
  border-color: rgba(41, 170, 244, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(235, 248, 255, 0.86)),
    rgba(255, 255, 255, 0.9);
}

.v3-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.v3-card {
  position: relative;
  min-height: 172px;
  border: 1px solid rgba(41, 170, 244, 0.2);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(238, 249, 255, 0.74)),
    #fff;
  box-shadow:
    0 18px 48px rgba(11, 60, 122, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.v3-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14px;
  right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(220, 183, 106, 0.5), transparent);
  opacity: 0.7;
  transition: opacity 0.22s ease;
}

.v3-card::after {
  content: "";
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(46, 159, 255, 0.10), transparent 60%);
  pointer-events: none;
}

.v3-card:hover {
  transform: translateY(-2px);
  border-color: rgba(220, 183, 106, 0.42);
  box-shadow: 0 22px 56px rgba(11, 60, 122, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.v3-card:hover::before { opacity: 1; }

.v3-card span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(41, 170, 244, 0.28);
  border-radius: 999px;
  padding: 3px 10px;
  color: var(--brand-700);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(232, 247, 255, 0.82));
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.04em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.v3-card span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--logo-blue);
  box-shadow: 0 0 5px rgba(41, 170, 244, 0.6);
}

.v3-card[data-status*="Phase"] {
  border-color: rgba(220, 183, 106, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 253, 246, 0.98), rgba(255, 246, 220, 0.78)),
    #fff;
}
.v3-card[data-status*="Phase"]::before {
  background: linear-gradient(90deg, transparent, rgba(220, 183, 106, 0.85), transparent);
  opacity: 1;
}
.v3-card[data-status*="Phase"]::after {
  background: radial-gradient(circle at 50% 50%, rgba(220, 183, 106, 0.18), transparent 60%);
}
.v3-card[data-status*="Phase"] span {
  border-color: rgba(220, 183, 106, 0.55);
  color: var(--gold-700);
  background: linear-gradient(180deg, rgba(255, 252, 240, 0.96), rgba(255, 244, 215, 0.82));
}
.v3-card[data-status*="Phase"] span::before {
  background: var(--gold-500);
  box-shadow: 0 0 5px rgba(220, 183, 106, 0.75);
}
.v3-card[data-status*="Phase"] h3 {
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-500) 50%, var(--gold-700) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.v3-card h3 {
  margin-top: 10px;
  margin-bottom: 0;
  background: linear-gradient(135deg, var(--logo-blue) 0%, var(--brand-800) 70%, #07254a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 18px;
  line-height: 1.16;
  letter-spacing: 0.01em;
}

.v3-card p {
  color: var(--brand-700);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 900;
}

.v3-card strong {
  color: var(--strong-blue);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 1000;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.roadmap-item {
  position: relative;
  min-height: 130px;
  border: 1px solid rgba(46, 159, 255, 0.18);
  border-left: 3px solid var(--logo-blue);
  border-radius: 12px;
  padding: 12px 12px 12px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(234, 246, 255, 0.7));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 8px 22px rgba(11, 60, 122, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.roadmap-item:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 14px 32px rgba(11, 60, 122, 0.12);
}

.roadmap-item::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--logo-blue);
  box-shadow: 0 0 0 3px rgba(41, 170, 244, 0.18);
}

.roadmap-item[data-phase*="Phase"] {
  border-left-color: var(--gold-500);
  border-color: rgba(220, 183, 106, 0.32);
  background: linear-gradient(135deg, rgba(255, 252, 240, 0.96), rgba(255, 244, 215, 0.74));
}
.roadmap-item[data-phase*="Phase"]::before {
  background: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(220, 183, 106, 0.22), 0 0 8px rgba(220, 183, 106, 0.6);
}
.roadmap-item[data-phase*="Phase"] span {
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500) 50%, var(--gold-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.roadmap-item span {
  background: linear-gradient(135deg, var(--logo-blue-light), var(--logo-blue) 48%, var(--brand-800));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 17px;
  font-weight: 1000;
  letter-spacing: 0.02em;
}

.roadmap-item strong {
  display: block;
  margin-top: 8px;
  color: var(--strong-blue);
  font-size: 12px;
  font-weight: 1000;
}

.roadmap-item p {
  margin-top: 8px;
  color: var(--brand-700);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 850;
}

.rank-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rank-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(115, 151, 185, 0.18);
  padding: 10px 4px 10px 8px;
  color: var(--brand-700);
  font-weight: 800;
  transition: background 0.18s ease;
}

.rank-row:hover {
  background: linear-gradient(90deg, rgba(255, 250, 232, 0.7), transparent);
}

.rank-row:nth-child(1) { padding-left: 16px; }
.rank-row:nth-child(1)::before {
  content: "1";
  position: absolute;
  left: 0;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold-100), var(--gold-300) 50%, var(--gold-500));
  color: #5a3d12;
  font-size: 10px;
  font-weight: 1000;
  transform: translateY(-50%);
  box-shadow: 0 0 6px rgba(220, 183, 106, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.rank-row strong { color: var(--logo-blue); font-size: 14px; }

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 13px;
}

th, td {
  border-bottom: 1px solid rgba(115, 151, 185, 0.16);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  position: relative;
  background: linear-gradient(180deg, rgba(245, 251, 255, 0.95), rgba(232, 246, 255, 0.7));
  color: var(--brand-800);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid rgba(220, 183, 106, 0.4);
}

th:first-child::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-500));
  transform: translateY(-50%);
  box-shadow: 0 0 4px rgba(220, 183, 106, 0.5);
}
th:first-child { padding-left: 20px; }

td { color: var(--brand-700); overflow-wrap: anywhere; font-weight: 800; }
tbody tr:hover td { background: rgba(46, 159, 255, 0.045); }
.clip {
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(115, 151, 185, 0.15);
  border-radius: 999px;
  padding: 2px 10px;
  background: rgba(234, 246, 255, 0.74);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 1000;
}
.status.active { background: rgba(41, 170, 244, 0.13); color: var(--brand-700); }
.status.paused, .status.draft { background: rgba(41, 170, 244, 0.10); color: var(--brand-700); }
.status.drawn { background: rgba(41, 170, 244, 0.12); color: var(--brand-700); }

.flag-form { display: flex; gap: 8px; align-items: center; }
.flag-form label { display: flex; grid-template-columns: auto; gap: 4px; align-items: center; color: var(--ink-2); }
.flag-form input { width: auto; min-height: auto; }

.form-section-title {
  margin-top: 6px;
  border-top: 1px solid rgba(186, 230, 253, 0.72);
  padding-top: 14px;
  color: var(--brand-800);
  font-size: 15px;
  font-weight: 1000;
}

label:has(input[type="checkbox"]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
}

label input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  accent-color: var(--brand-500);
}

/* ========== login: full-bleed two-column ========== */

.login-body {
  grid-template-columns: 1fr;
  place-items: stretch;
  color: #10243d;
  background-color: #fbfdff;
  background-image:
    linear-gradient(115deg, rgba(218, 242, 255, 0.78) 0%, rgba(255, 255, 255, 0.94) 38%, rgba(255, 255, 255, 0.98) 64%, rgba(238, 248, 255, 0.72) 100%),
    linear-gradient(rgba(22, 120, 204, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 120, 204, 0.038) 1px, transparent 1px);
  background-size: auto, 56px 56px, 56px 56px;
  overflow-x: hidden;
}

.login-body::before,
.login-body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.login-body::before {
  background:
    linear-gradient(102deg, rgba(41, 170, 244, 0.16), transparent 34%),
    linear-gradient(172deg, transparent 0 58%, rgba(41, 170, 244, 0.08) 58.2% 70%, transparent 70.2%),
    linear-gradient(18deg, transparent 0 69%, rgba(220, 183, 106, 0.08) 69.2% 70.2%, transparent 70.4%);
}

.login-body::after {
  opacity: 0.7;
  background-image: linear-gradient(90deg, transparent 0 24px, rgba(220, 183, 106, 0.35) 24px 25px, transparent 25px 100%);
  background-size: 260px 100%;
  animation: loginFineDrift 18s linear infinite;
}

.login-atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  perspective: 900px;
}

.login-plane {
  position: absolute;
  display: block;
  border: 1px solid rgba(41, 170, 244, 0.13);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.46), rgba(229, 246, 255, 0.18));
  box-shadow: 0 34px 90px rgba(22, 120, 204, 0.09), inset 0 1px 0 rgba(255,255,255,0.72);
  transform-style: preserve-3d;
}

.plane-a {
  width: 36vw;
  height: 34vh;
  left: -6vw;
  top: 10vh;
  transform: rotateX(58deg) rotateZ(-9deg) translateZ(-20px);
  animation: loginPlaneA 11s ease-in-out infinite;
}

.plane-b {
  width: 30vw;
  height: 22vh;
  right: 2vw;
  top: 8vh;
  transform: rotateX(62deg) rotateZ(11deg) translateZ(-40px);
  animation: loginPlaneB 13s ease-in-out infinite;
}

.plane-c {
  width: 42vw;
  height: 26vh;
  right: -10vw;
  bottom: 8vh;
  transform: rotateX(64deg) rotateZ(-7deg) translateZ(-60px);
  animation: loginPlaneC 15s ease-in-out infinite;
}

.login-gold-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d4a047;
  box-shadow: 0 0 0 4px rgba(220, 183, 106, 0.12), 0 0 18px rgba(220, 183, 106, 0.38);
  animation: loginDotFloat 5.8s ease-in-out infinite;
}

.dot-a { left: 21%; top: 22%; animation-delay: 0.2s; }
.dot-b { right: 28%; top: 19%; animation-delay: 1.3s; }
.dot-c { right: 17%; bottom: 24%; animation-delay: 2.1s; }

.login-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding: 38px 64px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(390px, 460px);
  gap: 70px;
  align-items: center;
}

.login-stage {
  min-height: calc(100vh - 70px);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 26px;
  align-content: stretch;
}

.login-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 10px;
  border: 1px solid rgba(41, 170, 244, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 46px rgba(22, 120, 204, 0.11), inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(18px);
  animation: loginRise 0.58s ease both;
}

.login-brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(41, 170, 244, 0.14), inset 0 0 0 1px rgba(220, 183, 106, 0.32);
}

.login-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.login-brand-copy { display: grid; gap: 3px; }
.login-brand-copy strong {
  color: #118ee4;
  font-size: 21px;
  font-weight: 1000;
  letter-spacing: 0;
}
.login-brand-copy small {
  color: #5c7896;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.14em;
}

.login-hero-stack {
  align-self: center;
  max-width: 760px;
  animation: loginRise 0.64s ease 0.04s both;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: #a57522;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.26em;
}
.login-kicker span {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, #dcb76a, rgba(220,183,106,0));
}

.login-hero-stack h1 {
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 68px;
  line-height: 1.06;
  font-weight: 1000;
  letter-spacing: 0;
  filter: none;
}
.login-hero-stack h1::after { display: none; }
.login-hero-stack h1 span {
  color: #c9983f;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7), 0 12px 28px rgba(220,183,106,0.12);
}
.login-hero-stack h1 strong {
  font: inherit;
  color: #1ca5f4;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7), 0 16px 34px rgba(41,170,244,0.15);
}

.login-lead {
  max-width: 650px;
  margin-top: 18px;
  color: rgba(16, 36, 61, 0.68);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 700;
}

.login-command-board {
  align-self: end;
  width: min(640px, 100%);
  border-radius: 26px;
  border: 1px solid rgba(41,170,244,0.15);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 30px 80px rgba(22,120,204,0.11), inset 0 1px 0 rgba(255,255,255,0.88);
  backdrop-filter: blur(18px);
  overflow: hidden;
  animation: loginRise 0.66s ease 0.08s both;
}
.login-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 12px;
  color: #4f6d89;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.22em;
}
.login-board-head b {
  color: #139deb;
  letter-spacing: 0.08em;
}
.login-board-strip {
  height: 78px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.6fr;
  border-top: 1px solid rgba(41,170,244,0.12);
  border-bottom: 1px solid rgba(41,170,244,0.12);
}
.login-board-strip span:nth-child(1) { background: linear-gradient(90deg, #f4cf7f, #d49b42); }
.login-board-strip span:nth-child(2) { background: linear-gradient(90deg, #7ed6ff, #29aaf4); }
.login-board-strip span:nth-child(3) { background: linear-gradient(90deg, #159deb, #0b5690); }
.login-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0;
  padding: 18px;
}
.login-metrics article {
  display: grid;
  gap: 5px;
  padding: 0 18px;
  border-left: 1px solid rgba(220,183,106,0.36);
}
.login-metrics article:first-child { border-left: 0; }
.login-metrics strong {
  color: #159deb;
  font-size: 31px;
  line-height: 1;
  font-weight: 1000;
}
.login-metrics span {
  color: rgba(16,36,61,0.58);
  font-size: 12px;
  font-weight: 900;
}

.login-flow {
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  animation: loginRise 0.66s ease 0.12s both;
}
.login-flow-step {
  position: relative;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(41,170,244,0.12);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 12px 24px rgba(22,120,204,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
.login-flow-step::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1px solid rgba(41,170,244,0.45);
  border-right: 1px solid rgba(41,170,244,0.45);
  transform: translateY(-50%) rotate(45deg);
}
.login-flow-step:last-child::after { display: none; }
.login-flow-step span {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #74d3ff, #159deb 58%, #0b8bdd);
  box-shadow: 0 8px 14px rgba(41,170,244,0.26), inset 0 0 0 1px rgba(220,183,106,0.42);
  font-size: 11px;
  font-weight: 1000;
}
.login-flow-step b {
  color: #0b6fb5;
  font-size: 12px;
  font-weight: 1000;
}

.login-access {
  display: grid;
  justify-items: center;
  gap: 16px;
  animation: loginRise 0.62s ease 0.16s both;
}
.login-card {
  position: relative;
  width: 100%;
  padding: 30px;
  display: grid;
  gap: 16px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.88);
  box-shadow: 0 42px 90px rgba(22,120,204,0.15), 0 12px 28px rgba(181,135,59,0.08), inset 0 1px 0 rgba(255,255,255,0.94);
  backdrop-filter: blur(22px);
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(220,183,106,0.7), rgba(41,170,244,0.55), transparent);
}
.login-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.login-card-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(41,170,244,0.1);
  box-shadow: 0 16px 28px rgba(41,170,244,0.14), inset 0 0 0 1px rgba(220,183,106,0.28);
  overflow: hidden;
}
.login-card-logo img { width: 82%; height: 82%; object-fit: contain; }
.login-card-badge {
  padding: 7px 13px;
  border-radius: 999px;
  color: #a57522;
  background: #fff8e7;
  border: 1px solid rgba(220,183,106,0.45);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.12em;
}
.login-card-head { display: grid; gap: 6px; }
.login-card-head span {
  color: #159deb;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.26em;
}
.login-card-head h2 {
  color: #10243d;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 1000;
}
.login-card-head h2::before { display: none; }
.login-card-head p {
  color: rgba(16,36,61,0.6);
  font-size: 13px;
  font-weight: 800;
}
.login-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid rgba(41,170,244,0.16);
  background: linear-gradient(180deg, rgba(235,247,255,0.88), rgba(255,255,255,0.74));
}
.login-notice-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #29aaf4, #0876c5);
  box-shadow: 0 12px 22px rgba(41,170,244,0.25), inset 0 1px 0 rgba(255,255,255,0.35);
}
.login-notice-icon svg { width: 20px; height: 20px; }
.login-notice > span:last-child {
  color: rgba(16,36,61,0.68);
  font-size: 13px;
  line-height: 1.6;
  font-weight: 800;
}
.login-field { display: grid; gap: 7px; }
.login-field > span {
  color: rgba(16,36,61,0.68);
  font-size: 13px;
  font-weight: 900;
}
.login-input {
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(41,170,244,0.13);
  background: rgba(255,255,255,0.92);
  box-shadow: inset 0 1px 2px rgba(22,120,204,0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.login-input:hover { border-color: rgba(41,170,244,0.28); }
.login-input:focus-within {
  border-color: rgba(41,170,244,0.72);
  box-shadow: 0 0 0 4px rgba(41,170,244,0.12), inset 0 1px 2px rgba(22,120,204,0.04);
  transform: translateY(-1px);
}
.login-input > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-right: 10px;
  color: rgba(18,92,150,0.48);
}
.login-input input {
  flex: 1;
  min-height: 0;
  height: 100%;
  border: 0;
  padding: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #10243d;
  font-size: 14px;
  font-weight: 800;
}
.login-input input::placeholder { color: rgba(18,92,150,0.36); }
.login-eye {
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(18,92,150,0.42);
  box-shadow: none;
}
.login-eye:hover { transform: none; color: #159deb; background: rgba(235,247,255,0.9); }
.login-eye.on { color: #b78540; }
.login-eye svg { width: 16px; height: 16px; }
.login-submit {
  height: 52px;
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid rgba(116,87,31,0.38);
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(180deg, #e9c77d, #d5a04a 48%, #b78540);
  box-shadow: 0 18px 32px rgba(181,135,59,0.28), inset 0 1px 0 rgba(255,255,255,0.5), inset 0 -1px 0 rgba(70,42,0,0.2);
  font-size: 15px;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 0 rgba(60,36,0,0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.login-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 24px 38px rgba(181,135,59,0.34), inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -1px 0 rgba(70,42,0,0.22);
}
.login-submit svg { width: 18px; height: 18px; }
.login-card .alert {
  margin: 0;
  border-radius: 14px;
  background: rgba(255,236,232,0.86);
  border-color: rgba(217,45,32,0.2);
  color: #b9341a;
  font-size: 12px;
  font-weight: 900;
}
.login-footpill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(41,170,244,0.17);
  background: rgba(255,255,255,0.7);
  color: rgba(16,36,61,0.56);
  box-shadow: 0 16px 34px rgba(22,120,204,0.09), inset 0 1px 0 rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  font-size: 12px;
  font-weight: 900;
}
.login-footpill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #29aaf4;
  box-shadow: 0 0 0 4px rgba(41,170,244,0.12), 0 0 14px rgba(41,170,244,0.46);
}
.login-footpill strong {
  color: #159deb;
  font-style: italic;
  font-weight: 1000;
}
.login-footpill span:not(:last-child)::after {
  content: "·";
  margin-left: 10px;
  color: rgba(16,36,61,0.25);
}

@keyframes loginRise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loginFineDrift {
  from { background-position: 0 0; }
  to { background-position: 260px 0; }
}
@keyframes loginPlaneA {
  0%, 100% { transform: rotateX(58deg) rotateZ(-9deg) translate3d(0,0,-20px); }
  50% { transform: rotateX(58deg) rotateZ(-7deg) translate3d(18px,14px,-20px); }
}
@keyframes loginPlaneB {
  0%, 100% { transform: rotateX(62deg) rotateZ(11deg) translate3d(0,0,-40px); }
  50% { transform: rotateX(62deg) rotateZ(9deg) translate3d(-18px,12px,-40px); }
}
@keyframes loginPlaneC {
  0%, 100% { transform: rotateX(64deg) rotateZ(-7deg) translate3d(0,0,-60px); }
  50% { transform: rotateX(64deg) rotateZ(-9deg) translate3d(-22px,-12px,-60px); }
}
@keyframes loginDotFloat {
  0%, 100% { transform: translateY(0); opacity: 0.78; }
  50% { transform: translateY(-10px); opacity: 1; }
}

@media (max-width: 1240px) {
  .login-shell { padding: 32px 34px 28px; gap: 38px; }
  .login-hero-stack h1 { font-size: 56px; }
}
@media (max-width: 1040px) {
  .login-shell { grid-template-columns: 1fr; min-height: 0; align-items: start; }
  .login-stage { min-height: 0; }
  .login-access { justify-items: stretch; }
  .login-card { max-width: 520px; margin: 0 auto; }
  .login-footpill { margin: 0 auto; }
}
@media (max-width: 720px) {
  .login-shell { padding: 18px 14px 22px; gap: 24px; }
  .login-brand { border-radius: 18px; }
  .login-brand-logo { width: 52px; height: 52px; }
  .login-brand-copy strong { font-size: 18px; }
  .login-brand-copy small { font-size: 10px; letter-spacing: 0.1em; }
  .login-kicker { font-size: 10px; letter-spacing: 0.16em; }
  .login-hero-stack h1 { font-size: 38px; line-height: 1.12; }
  .login-lead { font-size: 14px; }
  .login-board-strip { height: 54px; }
  .login-metrics { grid-template-columns: 1fr; gap: 12px; }
  .login-metrics article { border-left: 0; border-top: 1px solid rgba(220,183,106,0.28); padding: 12px 0 0; }
  .login-metrics article:first-child { border-top: 0; padding-top: 0; }
  .login-flow { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .login-flow-step { min-height: 58px; flex-direction: column; gap: 4px; padding: 8px 4px; }
  .login-flow-step::after { display: none; }
  .login-flow-step span { width: 24px; height: 24px; flex-basis: 24px; font-size: 10px; }
  .login-flow-step b { font-size: 10px; }
  .login-card { padding: 24px 20px; border-radius: 24px; }
  .login-card-head h2 { font-size: 25px; }
  .login-footpill { flex-wrap: wrap; border-radius: 18px; }
  .login-plane { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .login-body::after,
  .login-plane,
  .login-gold-dot,
  .login-brand,
  .login-hero-stack,
  .login-command-board,
  .login-flow,
  .login-access { animation: none; }
}

.alert {
  margin: 0;
  border-radius: 12px;
  background: rgba(255, 235, 232, 0.82);
  border-color: rgba(217, 45, 32, 0.22);
  color: #b9341a;
  font-size: 12px;
  font-weight: 800;
}

/* footer pill (CR7 outside card) */
.login-footpill {
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(46, 159, 255, 0.22);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  color: rgba(7, 37, 74, 0.55);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(11, 60, 122, 0.08);
}
.login-footpill .sep { color: rgba(11, 60, 122, 0.22); }
.login-footpill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--logo-blue);
  box-shadow: 0 0 0 3px rgba(46, 159, 255, 0.18), 0 0 6px rgba(46, 159, 255, 0.6);
  animation: pulseLive 1.8s ease-in-out infinite;
}
.login-cr7 {
  font-style: italic;
  font-weight: 1000;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--logo-blue) 0%, var(--brand-800) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 13px;
}
.login-cr7 i { font-style: italic; font-weight: 1000; }

@media (max-width: 1240px) {
  .login-shell { padding: 32px 32px 24px; gap: 36px; }
  .login-hero { font-size: 60px; }
}
@media (max-width: 1080px) {
  .login-shell { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding: 24px 28px; }
  .login-hero { font-size: 52px; }
  .login-status-grid { grid-template-columns: repeat(3, 1fr); }
  .login-steps { grid-template-columns: repeat(5, 1fr); }
  .login-stats { gap: 24px; }
}
@media (max-width: 720px) {
  .login-shell { padding: 16px 14px; gap: 22px; }
  .login-hero { font-size: 38px; line-height: 1.12; }
  .login-status-grid { grid-template-columns: 1fr; }
  .login-steps { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .login-step { padding: 8px 6px; flex-direction: column; gap: 4px; }
  .login-step::after { display: none; }
  .login-step-code { width: 22px; height: 22px; flex: 0 0 22px; font-size: 10px; }
  .login-step-label { font-size: 10px; }
  .login-stats strong { font-size: 24px; }
  .login-card { padding: 24px 22px 22px; }
  .login-card-head h2 { font-size: 22px; }
  .login-brand-logo { width: 52px; height: 52px; }
  .login-brand strong { font-size: 18px; }
}
.alert {
  border: 1px solid rgba(217, 45, 32, 0.18);
  border-radius: 12px;
  background: rgba(255, 245, 245, 0.86);
  color: var(--danger);
  padding: 10px 12px;
  font-weight: 900;
}

.ai-panel {
  border-color: rgba(220, 183, 106, 0.36);
}
.ai-panel::before {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-300) 30%, var(--gold-500) 50%, var(--gold-300) 70%, transparent);
  box-shadow: 0 0 6px rgba(220, 183, 106, 0.5);
}

.ai-answer {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(232, 247, 255, 0.85), rgba(255, 250, 232, 0.85));
  box-shadow: inset 0 0 0 1px rgba(220, 183, 106, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.ai-answer-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--logo-blue-light), var(--logo-blue) 48%, var(--brand-800));
  box-shadow: 0 10px 22px rgba(11, 60, 122, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 0 0 1px rgba(220, 183, 106, 0.6);
}
.ai-answer-avatar svg { width: 22px; height: 22px; }
.ai-answer-avatar::after {
  content: "";
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-300), var(--gold-500));
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(220, 183, 106, 0.7);
  animation: pulseGold 2.4s ease-in-out infinite;
}

.ai-answer-body {
  white-space: pre-wrap;
  font: inherit;
  font-size: 14px;
  line-height: 1.72;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.ai-answer-body::first-line { font-weight: 1000; color: var(--brand-800); }

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

.metric, .approval-strip, .panel, .v3-card, .roadmap-item {
  animation: riseIn 0.42s ease both;
}

.metric-grid .metric:nth-child(1) { animation-delay: 0.02s; }
.metric-grid .metric:nth-child(2) { animation-delay: 0.06s; }
.metric-grid .metric:nth-child(3) { animation-delay: 0.10s; }
.metric-grid .metric:nth-child(4) { animation-delay: 0.14s; }

.v3-grid .v3-card:nth-child(1) { animation-delay: 0.04s; }
.v3-grid .v3-card:nth-child(2) { animation-delay: 0.08s; }
.v3-grid .v3-card:nth-child(3) { animation-delay: 0.12s; }
.v3-grid .v3-card:nth-child(4) { animation-delay: 0.16s; }
.v3-grid .v3-card:nth-child(5) { animation-delay: 0.20s; }
.v3-grid .v3-card:nth-child(6) { animation-delay: 0.24s; }
.v3-grid .v3-card:nth-child(7) { animation-delay: 0.28s; }

.roadmap .roadmap-item:nth-child(1) { animation-delay: 0.04s; }
.roadmap .roadmap-item:nth-child(2) { animation-delay: 0.08s; }
.roadmap .roadmap-item:nth-child(3) { animation-delay: 0.12s; }
.roadmap .roadmap-item:nth-child(4) { animation-delay: 0.16s; }
.roadmap .roadmap-item:nth-child(5) { animation-delay: 0.20s; }
.roadmap .roadmap-item:nth-child(6) { animation-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .metric, .approval-strip, .panel, .v3-card, .roadmap-item { animation: none; }
}

/* CR7 banner — dashboard prominent strip */
.cr7-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(46, 159, 255, 0.22);
  box-shadow: 0 10px 24px rgba(11, 60, 122, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: rgba(7, 37, 74, 0.62);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
}
.cr7-banner .sep { color: rgba(11, 60, 122, 0.22); }
.cr7-banner-spacer { flex: 1; }
.cr7-banner-env {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid rgba(220, 183, 106, 0.5);
  background: linear-gradient(180deg, rgba(255, 250, 230, 0.95), rgba(245, 232, 190, 0.85));
  color: var(--gold-700);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.18em;
}
.cr7-banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--logo-blue);
  box-shadow: 0 0 0 3px rgba(46, 159, 255, 0.18), 0 0 6px rgba(46, 159, 255, 0.6);
  animation: pulseLive 1.8s ease-in-out infinite;
  flex: 0 0 auto;
}

.section-divider {
  position: relative;
  height: 1px;
  margin: 4px 0;
  background: linear-gradient(90deg, transparent, rgba(220, 183, 106, 0.42) 30%, rgba(46, 159, 255, 0.32) 70%, transparent);
}
.section-divider::before {
  content: "◆";
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(-50%);
  color: var(--gold-500);
  font-size: 12px;
  text-shadow: 0 0 8px rgba(220, 183, 106, 0.6);
  background: #f4faff;
  padding: 0 10px;
}

@media (max-width: 1220px) {
  body { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .director-card, .community-card { display: none; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout.two { grid-template-columns: 1fr; }
  .v3-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .main { padding: 20px; }
  .topbar, .approval-strip { display: grid; }
  .topbar-meta { align-items: flex-start; text-align: left; }
  nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav a { padding: 11px 10px 11px 38px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid, .rank-columns, .v3-grid, .roadmap { grid-template-columns: 1fr; }
  .button-row { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .toolbar, .panel-head, .row-actions { align-items: stretch; flex-direction: column; }
  .inline-form { width: 100%; flex-direction: column; align-items: stretch; }
  .inline-form input, .inline-form select { min-width: 0; }
  table { display: block; overflow-x: auto; white-space: nowrap; }
  h1 { font-size: 29px; }
}
