:root {
  color-scheme: dark;
  --bg: #09111f;
  --sidebar: #0c1524;
  --surface: #101a2b;
  --surface-raised: #131f32;
  --surface-hover: #17243a;
  --line: #26344a;
  --line-soft: #1d2a3e;
  --gold: #d6b45f;
  --gold-bright: #f0d58a;
  --text: #eef2f8;
  --muted: #9aa9bf;
  --subtle: #71829a;
  --green: #74c7a0;
  --red: #e08f87;
  --radius: 8px;
  --shadow-panel: 0 14px 32px rgb(0 0 0 / 14%);
  font-family: 'Jost', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 78% -20%, rgb(28 47 75 / 26%), transparent 43rem),
    var(--bg);
  color: var(--text);
  font: 15px/1.5 'Jost', sans-serif;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}
.layout { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 5;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  width: 246px;
  padding: 24px 16px 18px;
  background: rgb(12 21 36 / 96%);
  border-right: 1px solid var(--line-soft);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 36px;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #76663e;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #1c2634, #111a28);
  color: var(--gold-bright);
  font: 600 25px/1 'Cormorant Garamond', serif;
}
.brand b {
  display: block;
  font-size: 13px;
  letter-spacing: 2px;
  line-height: 1.2;
}
.brand small {
  display: block;
  margin-top: 4px;
  color: var(--subtle);
  font-size: 8px;
  letter-spacing: 1.45px;
  line-height: 1.2;
}
.side-label, .eyebrow {
  color: #8798af;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.35px;
  line-height: 1.3;
}
.side-label { padding: 0 12px 10px; }
.sidebar nav { display: grid; gap: 4px; }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}
.nav-link span {
  width: 18px;
  color: #8494aa;
  font-size: 16px;
  text-align: center;
}
.nav-link:hover { background: #111d2e; color: var(--text); }
.nav-link.active {
  border-color: #2c3748;
  background: linear-gradient(90deg, #192638, #141f30);
  color: var(--gold-bright);
}
.nav-link.active::before {
  position: absolute;
  inset: 9px auto 9px -1px;
  width: 2px;
  border-radius: 2px;
  background: var(--gold);
  content: '';
}
.nav-link.active span { color: var(--gold); }
.sidebar-bottom { margin-top: auto; }
.secure-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 17px 10px 5px;
  border-top: 1px solid var(--line-soft);
  color: #aeb9c9;
  font-size: 9px;
  letter-spacing: 1.05px;
}
.secure-note i, .pulse {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 9px rgb(116 199 160 / 36%);
}
.secure-note small {
  display: block;
  margin-top: 5px;
  color: var(--subtle);
  font-size: 11px;
  letter-spacing: 0;
}
main { min-height: 100vh; margin-left: 246px; }
.topbar {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  height: 66px;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 4vw, 58px);
  border-bottom: 1px solid var(--line-soft);
  background: rgb(9 17 31 / 88%);
  backdrop-filter: blur(14px);
}
.crumb { color: #aab6c7; font-size: 10px; letter-spacing: 1.35px; }
.crumb span { padding: 0 8px; color: #54657c; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #5c5136;
  border-radius: 50%;
  background: #292819;
  color: var(--gold-bright);
  font: 600 17px/1 'Cormorant Garamond', serif;
}
.role-badge, .sandbox-tag {
  padding: 5px 9px;
  border: 1px solid #53492e;
  border-radius: 6px;
  color: var(--gold-bright);
  font-size: 9px;
  letter-spacing: .85px;
}
.content { max-width: 1480px; margin: 0 auto; padding: 36px clamp(24px, 4vw, 58px) 28px; }
.welcome {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}
.welcome h1, .signin h1 {
  margin: 6px 0 3px;
  font: 600 38px/1.08 'Cormorant Garamond', serif;
  letter-spacing: .1px;
}
.welcome p, .signin p { margin: 0; color: var(--muted); font-size: 13px; }
.date-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgb(16 26 43 / 60%);
  color: #aab6c7;
  font-size: 11px;
  white-space: nowrap;
}
.date-chip .pulse { width: 6px; height: 6px; margin: 0; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.metric, .panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgb(17 28 46 / 98%), rgb(15 25 41 / 98%));
  box-shadow: var(--shadow-panel);
}
.metric {
  position: relative;
  min-height: 126px;
  padding: 17px 18px;
  overflow: hidden;
}
.metric-label {
  color: #91a0b5;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.15px;
}
.metric strong {
  display: block;
  margin: 8px 0 3px;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: .1px;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.metric small { color: #8191a7; font-size: 10px; }
.metric.accent {
  border-color: #49422f;
  background: linear-gradient(145deg, #1b202a, #151b26);
}
.metric.accent strong {
  margin: 9px 0 4px;
  color: var(--gold-bright);
  font: 600 21px/1.25 'Cormorant Garamond', serif;
}
.panel { margin-bottom: 14px; padding: 19px 20px; }
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}
.panel-head h2 {
  margin: 3px 0 0;
  font: 600 22px/1.1 'Cormorant Garamond', serif;
}
.secondary, .primary {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #51482f;
  border-radius: var(--radius);
  background: #171f2b;
  color: var(--gold-bright);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.secondary:hover, .primary:hover { border-color: var(--gold); background: #222a34; }
.secondary:active, .primary:active { transform: translateY(1px); }
.secondary span { font-size: 15px; line-height: 1; }
.table-wrap { overflow: auto; scrollbar-color: #33435a transparent; }
table { width: 100%; min-width: 650px; border-collapse: collapse; }
th {
  padding: 10px;
  border-bottom: 1px solid #2a394e;
  color: #8191a7;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: left;
}
td {
  padding: 11px 10px;
  border-bottom: 1px solid #202d40;
  color: #c7d0dd;
  font-size: 12px;
}
tbody tr { transition: background-color .12s ease; }
tbody tr:hover { background: rgb(255 255 255 / 2%); }
tbody tr:last-child td { border-bottom: 0; }
.right { text-align: right; }
.empty { padding: 28px 10px !important; color: #8292a8; text-align: center !important; }
.amount { color: #e2e8ef; font-variant-numeric: tabular-nums; }
.status {
  padding: 4px 8px;
  border-radius: 999px;
  background: #1c2e2c;
  color: #8dd2b2;
  font-size: 10px;
  white-space: nowrap;
}
.status.pending, .status.draft, .status.scheduled { background: #302b20; color: var(--gold-bright); }
.feed-state { padding-top: 11px; color: #8191a7; font-size: 10px; }
.lower-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 14px; }
.lower-grid .panel { min-width: 0; margin: 0; }
.quick-list > div {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}
.quick-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #314057;
  border-radius: var(--radius);
  color: var(--gold);
  font-size: 14px;
}
.quick-list b { font-size: 12px; font-weight: 500; }
.quick-list small { display: block; margin-top: 2px; color: #8493a8; font-size: 10px; }
.quick-list strong { margin-left: auto; color: #cad3df; font-size: 13px; font-weight: 500; }
.panel-copy { margin: -4px 0 13px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.account-placeholder, .account {
  padding: 12px;
  border: 1px solid #2b3a50;
  border-radius: var(--radius);
}
.account-placeholder {
  border-style: dashed;
  color: #8292a8;
  font-size: 11px;
}
.account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.account b { font-size: 12px; font-weight: 500; }
.account small { display: block; margin-top: 2px; color: #8392a8; font-size: 10px; }
.account strong { font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.connect-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sandbox-foot { margin: 11px 0 0; color: #8091a8; font-size: 10px; }
.sandbox-foot span { color: var(--green); }
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 2px 6px;
  color: #607189;
  font-size: 8px;
  letter-spacing: 1.1px;
}
.signin {
  max-width: 460px;
  margin: clamp(56px, 14vh, 130px) auto;
  padding: 36px;
  border: 1px solid #29384d;
  border-radius: 10px;
  background: linear-gradient(145deg, #121e30, #0f1929);
  box-shadow: var(--shadow-panel);
}
.signin h1 { margin: 9px 0; font-size: 43px; }
.signin p { margin-bottom: 23px; line-height: 1.6; }
.primary { min-width: 270px; justify-content: space-between; padding: 11px 14px; font-size: 13px; }
.hint { display: block; margin-top: 14px; color: #8292a8; font-size: 11px; line-height: 1.5; }
.notice {
  margin: -5px 0 15px;
  padding: 10px 13px;
  border: 1px solid #52462c;
  border-radius: var(--radius);
  background: #211f1a;
  color: var(--gold-bright);
  font-size: 12px;
}
.notice.error { border-color: #583c3c; background: #251b20; color: #e9a6a0; }
.hidden { display: none !important; }
.quiet {
  padding: 9px;
  border: 0;
  background: transparent;
  color: #a8b4c3;
  cursor: pointer;
  font-size: 11px;
}
.quiet:hover { color: var(--gold-bright); }
@media (max-width: 1100px) {
  .sidebar { width: 218px; }
  main { margin-left: 218px; }
  .content { padding-right: 28px; padding-left: 28px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sidebar {
    position: sticky;
    inset: auto;
    width: 100%;
    height: auto;
    padding: 10px 12px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand { padding: 0 4px 10px; }
  .brand-mark { width: 32px; height: 32px; font-size: 22px; }
  .sidebar .side-label, .sidebar-bottom { display: none; }
  .sidebar nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .nav-link { min-height: 36px; padding: 7px 9px; font-size: 11px; white-space: nowrap; }
  .nav-link span { width: auto; font-size: 13px; }
  main { margin: 0; }
  .topbar { position: relative; height: 51px; padding: 0 16px; }
  .content { padding: 23px 16px 20px; }
  .welcome { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 17px; }
  .welcome h1 { font-size: 34px; }
  .metrics { gap: 9px; }
  .metric { min-height: 108px; padding: 12px; }
  .metric strong { font-size: 20px; }
  .metric small { font-size: 9px; }
  .metric-label { font-size: 8px; letter-spacing: .9px; }
  .panel { padding: 15px; }
  .panel-head h2 { font-size: 20px; }
  .lower-grid { grid-template-columns: 1fr; gap: 12px; }
  .signin { margin: 8vh 15px; padding: 27px 22px; }
  .signin h1 { font-size: 38px; }
  footer { font-size: 7px; }
}
@media (max-width: 380px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { min-height: 94px; }
  .top-actions { gap: 8px; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.brand-logo-frame{display:grid;width:48px;height:48px;flex:0 0 48px;place-items:center;overflow:hidden;border:1px solid #dfc873;border-radius:50%;background:#f7f4ec;box-shadow:0 5px 18px rgb(0 0 0 / 20%)}
.brand-logo{display:block;width:100%;height:100%;object-fit:contain}
.brand{gap:11px;padding-bottom:32px}
.brand b{font-size:15px;letter-spacing:2.3px}
.brand small{font-size:7px;letter-spacing:1px}
@media(max-width:760px){.brand-logo-frame{width:38px;height:38px;flex-basis:38px}.brand{padding-bottom:8px}}

.field{display:grid;gap:6px;min-width:0;color:#aab6c7;font-size:11px}
.field>span{font-size:9px;font-weight:600;letter-spacing:.85px;text-transform:uppercase;color:#8c9cb1}
.field input,.field select{width:100%;min-height:39px;padding:8px 10px;border:1px solid #304058;border-radius:8px;background:#0d1726;color:#e8edf4;font:12px 'Jost',sans-serif}
.field input::file-selector-button{margin:-4px 9px -4px -5px;padding:6px 9px;border:1px solid #39475a;border-radius:5px;background:#172337;color:#f0d58a;cursor:pointer}
.field input:focus,.field select:focus{outline:2px solid #f0d58a;outline-offset:2px}
.import-controls,.mapping-grid,.report-controls{display:grid;grid-template-columns:1.4fr 1fr;gap:12px;align-items:end}
.mapping{margin-top:18px;padding:16px;border:1px solid #2a3a51;border-radius:8px;background:rgb(9 17 31 / 48%)}
.mapping-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:14px}
.import-note{margin:12px 0;color:#9aa9bf;font-size:11px;line-height:1.55}
.import-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
.muted{color:#8798af;font-size:11px}
.preview-table{min-width:740px}
.preview-table td{font-size:11px}
.report-controls{grid-template-columns:160px 160px auto auto;justify-content:start;margin-bottom:12px}
.report-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.report-metrics .metric{min-height:96px;padding:13px}
.report-metrics .metric strong{font-size:21px}
.forecast-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin:15px 0}
.forecast-cards .metric{min-height:100px}
.forecast-cards .metric strong{font:600 23px 'Cormorant Garamond',serif;color:#f0d58a}
.insights{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:8px;margin-top:14px}
.insight{padding:10px 12px;border:1px solid #2d3c51;border-left:2px solid #d6b45f;border-radius:7px;background:#111d2e;color:#b8c3d2;font-size:11px;line-height:1.45}
.review-category{max-width:190px;min-width:150px;padding:6px 8px;border:1px solid #35445a;border-radius:6px;background:#0d1726;color:#e6edf4;font:11px 'Jost',sans-serif}
.review-actions{display:flex;gap:6px;white-space:nowrap}
.review-actions .secondary,.review-actions .quiet{min-height:30px;padding:5px 8px;font-size:10px}
.tip-list{display:grid;gap:7px;padding-left:18px;color:#b2bdcc;font-size:12px}
.tip-list li::marker{color:#d6b45f}
#review-rows td{vertical-align:middle}
@media(max-width:1100px){.report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.report-controls{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.import-controls,.mapping-grid,.report-controls{grid-template-columns:1fr}.mapping{padding:12px}.report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.forecast-cards{grid-template-columns:1fr}.import-actions{align-items:flex-start;flex-direction:column}.brand-logo-frame{width:38px;height:38px;flex-basis:38px}}
.privacy-confirm{display:flex;align-items:flex-start;gap:9px;margin-top:14px;color:#b8c3d2;font-size:11px;line-height:1.5}.privacy-confirm input{margin-top:3px;accent-color:#d6b45f}.preview-table input{width:100%;min-width:150px;padding:6px 8px;border:1px solid #35445a;border-radius:6px;background:#0d1726;color:#e8edf4;font:11px 'Jost',sans-serif}.preview-table input:focus{outline:2px solid #f0d58a;outline-offset:1px}
.review-merchant{width:100%;min-width:130px;padding:6px 8px;border:1px solid #35445a;border-radius:6px;background:#0d1726;color:#e8edf4;font:11px 'Jost',sans-serif}.review-merchant:focus{outline:2px solid #f0d58a;outline-offset:1px}


/* UNSC Enterprise Control Suite brand system */
:root {
  color-scheme: light;
  --bg: #f4f0e7;
  --sidebar: #0b1630;
  --surface: #fffdf8;
  --surface-raised: #ffffff;
  --surface-hover: #f5efdf;
  --line: #e2dac9;
  --line-soft: #eae3d6;
  --gold: #c9a84c;
  --gold-bright: #e1c875;
  --text: #17233d;
  --muted: #596579;
  --subtle: #8a7954;
  --green: #28704f;
  --red: #a1443e;
  --shadow-panel: 0 8px 24px rgb(11 22 48 / 7%);
}
body {
  background: var(--bg);
  color: var(--text);
}
button:focus-visible, a:focus-visible {
  outline-color: #b18b2f;
}
.sidebar {
  background: #0b1630;
  border-right-color: #25324c;
}
.brand { align-items: center; }
.brand-logo-frame {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  border-color: #c9a84c;
  background: #fbf8ef;
  box-shadow: 0 3px 12px rgb(0 0 0 / 20%);
}
.brand-logo { object-fit: contain; }
.brand b { color: #fffdf8; font-family: 'Jost', sans-serif; letter-spacing: 2px; }
.brand small { color: #d8bd70; font-family: 'Jost', sans-serif; }
.side-label, .eyebrow { color: #8a7954; }
.sidebar .side-label { color: #a9b2c2; }
.nav-link { color: #c4ccda; }
.nav-link span { color: #aeb8c9; }
.nav-link:hover { background: #142241; color: #fffdf8; }
.nav-link.active {
  border-color: #2d3b58;
  background: #172644;
  color: #f0d88f;
}
.nav-link.active span { color: #dfc36f; }
.secure-note { color: #d4d9e2; }
.secure-note small { color: #a9b2c2; }
main { background: var(--bg); }
.topbar {
  border-bottom-color: var(--line);
  background: rgb(250 248 242 / 94%);
}
.crumb { color: #657087; }
.crumb span { color: #b18b2f; }
.avatar {
  border-color: #c9a84c;
  background: #0b1630;
  color: #f0d88f;
}
.role-badge, .sandbox-tag {
  border-color: #d4bd78;
  background: #f7f0dc;
  color: #604b17;
}
.content { color: var(--text); }
.welcome h1, .signin h1, .panel-head h2 {
  color: #0b1630;
  font-family: 'Jost', sans-serif;
}
.welcome p, .signin p { color: var(--muted); }
.date-chip {
  border-color: var(--line);
  background: #fffdf8;
  color: #596579;
}
.metric, .panel {
  border-color: var(--line);
  background: #fffdf8;
  box-shadow: var(--shadow-panel);
}
.metric-label { color: #677286; }
.metric strong { color: #13213c; }
.metric small, .quick-list small, .account small { color: #687386; }
.metric.accent {
  border-color: #d8c584;
  background: #f8f2e2;
}
.metric.accent strong { color: #17233d; }
.secondary, .primary {
  border-color: #c9a84c;
  background: #0b1630;
  color: #fffdf8;
}
.secondary:hover, .primary:hover {
  border-color: #a98732;
  background: #172747;
  color: #fffdf8;
}
.secondary {
  border-color: #cfc4aa;
  background: #fffdf8;
  color: #17233d;
}
.secondary:hover { background: #f5efdf; color: #0b1630; }
th { border-bottom-color: var(--line); color: #697488; }
td { border-bottom-color: var(--line-soft); color: #344158; }
tbody tr:hover { background: #f8f4eb; }
.empty { color: #687386; }
.amount { color: #17233d; }
.status { background: #e6f2eb; color: #246347; }
.status.pending, .status.draft, .status.scheduled {
  background: #f8f0d8;
  color: #765c19;
}
.feed-state, .sandbox-foot, footer { color: #6b7586; }
.quick-icon, .account, .account-placeholder {
  border-color: #e2dac9;
}
.quick-icon { background: #fbf8f0; color: #87691e; }
.quick-list strong { color: #17233d; }
.account-placeholder { color: #687386; }
.account { background: #fffdf8; }
.sandbox-foot span { color: #28704f; }
.signin {
  border-color: #e2dac9;
  border-top: 3px solid #c9a84c;
  background: #fffdf8;
}
.hint { color: #687386; }
.notice {
  border-color: #d6c27f;
  background: #faf4e2;
  color: #604b17;
}
.notice.error {
  border-color: #e2c4bf;
  background: #fbefed;
  color: #8f3832;
}
.quiet { color: #596579; }
.quiet:hover { color: #87691e; }
.field, .privacy-confirm, .import-note, .muted, .tip-list { color: #596579; }
.field>span { color: #697488; }
.field input, .field select, .review-category, .preview-table input, .review-merchant {
  border-color: #d8d0c1;
  background: #fffdf8;
  color: #17233d;
}
.field input::file-selector-button {
  border-color: #d8d0c1;
  background: #f5efdf;
  color: #604b17;
}
.field input:focus, .field select:focus, .preview-table input:focus, .review-merchant:focus {
  outline-color: #b18b2f;
}
.mapping {
  border-color: #e2dac9;
  background: #faf7ef;
}
.import-note, .privacy-confirm, .tip-list { color: #596579; }
.forecast-cards .metric strong { color: #785c16; }
.insight {
  border-color: #e2dac9;
  border-left-color: #c9a84c;
  background: #faf7ef;
  color: #46536a;
}
.tip-list li::marker { color: #a98732; }
@media (max-width: 760px) {
  .brand-logo-frame { width: 42px; height: 42px; flex-basis: 42px; }
}


.feed-state[role="status"] {
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: #faf7ef;
  color: var(--muted);
  font-size: 11px;
}

/* Never wider than the phone: stops Chrome zooming the page out to a "desktop look". */
@media (max-width: 760px) { html, body { max-width: 100%; overflow-x: clip; } }

/* Oct 2026 audit fixes */
.status.tone-ok { background: #e6f2eb; color: #1f6b4a; }
.status.tone-wait { background: #f8f0d8; color: #6e5410; }
.status.tone-bad { background: #f8e3e1; color: #8f2c26; }
button:disabled, button[disabled] { opacity: .5; cursor: not-allowed; filter: grayscale(.4); box-shadow: none; }
input:disabled, select:disabled { background: #f1ede4; color: #5f6878; cursor: not-allowed; }
.import-errors { margin: 10px 0 0; padding: 10px 14px 10px 30px; background: #f8e3e1; border: 1px solid #e8b9b4; border-radius: 8px; color: #7d241f; font-size: 13px; line-height: 1.5; }
.import-errors[hidden] { display: none; }


/* Nov 2026 audit fixes */
.status.tone-neutral { background: #eceae4; color: #4d5566; }
.sandbox-foot .foot-text { color: inherit; }
.sandbox-tag.live { border-color: #8cc5a7; background: #e6f2eb; color: #1f6b4a; }
.feed-state.warn { color: #8f2c26; font-weight: 500; }
.apps-menu { position: relative; }
.apps-menu summary {
  display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 5px 10px;
  border: 1px solid #d4bd78; border-radius: 6px; background: #fffdf8; color: #17233d;
  cursor: pointer; font-size: 11px; font-weight: 600; letter-spacing: .6px; list-style: none; user-select: none;
}
.apps-menu summary::-webkit-details-marker { display: none; }
.apps-menu summary span { font-size: 9px; color: #87691e; }
.apps-menu[open] summary { background: #f5efdf; }
.apps-pop {
  position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; display: grid; width: 230px; padding: 6px;
  border: 1px solid #e2dac9; border-radius: 8px; background: #fffdf8; box-shadow: 0 12px 28px rgb(11 22 48 / 16%);
}
.apps-pop a { display: block; padding: 9px 10px; border-radius: 6px; color: #17233d; font-size: 12px; }
.apps-pop a:hover, .apps-pop a:focus-visible { background: #f5efdf; }
.apps-pop small { display: block; color: #687386; font-size: 10px; }
.table-tools { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.field.compact { grid-auto-flow: row; min-width: 180px; }
.field.compact select { min-height: 34px; padding: 6px 8px; }
#show-more, #reviewed-more { margin-top: 8px; padding-left: 0; font-weight: 600; }
.review-flow { min-width: 110px; padding: 6px 8px; border: 1px solid #d8d0c1; border-radius: 6px; background: #fffdf8; color: #17233d; font: 11px 'Jost', sans-serif; }
.review-category { border-color: #d8d0c1; background: #fffdf8; color: #17233d; }
.reviewed-table { min-width: 900px; }
#reviewed-rows td { vertical-align: middle; }
.matched-box { width: 17px; height: 17px; accent-color: #b18b2f; }
.preview-table input.needs-fix { border-color: #c0544c; background: #fdf3f2; }
.label-hint { display: block; margin-top: 4px; color: #8f2c26; font-size: 10px; line-height: 1.3; }
.institution { margin-bottom: 10px; padding: 10px; border: 1px solid #e2dac9; border-radius: 8px; background: #fbf8f0; }
.institution.attention { border-color: #e2c4bf; background: #fbefed; }
.institution-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.institution-head b { display: block; font-size: 12px; font-weight: 600; color: #17233d; }
.institution-head small { display: block; margin-top: 2px; color: #596579; font-size: 10px; }
.institution.attention .institution-head small { color: #8f2c26; }
.institution .account:last-child { margin-bottom: 0; }
@media (max-width: 760px) {
  .topbar { gap: 8px; }
  .crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .top-actions { gap: 6px; flex-shrink: 0; }
  /* On a phone the menu hangs from the top bar's right edge, so it never runs off the screen. */
  .apps-menu { position: static; }
  .apps-pop { top: 46px; right: 16px; width: min(230px, calc(100vw - 32px)); }
  .table-tools .field.compact { width: 100%; }
}
.oauth-wrap { min-height: 100vh; padding: 1px 16px; }
.metric small { display: block; line-height: 1.4; }
.label-hint.soft { color: #6e5410; }
#review-queue table { min-width: 980px; }

/* A save made far down the page is acknowledged at the bottom of the screen too. */
.fin-toast{position:fixed;left:0;right:0;margin:0 auto;width:fit-content;max-width:min(520px,calc(100vw - 28px));bottom:calc(20px + env(safe-area-inset-bottom));z-index:1000;
  padding:12px 16px;border-radius:10px;border:1px solid #52462c;background:#211f1a;color:var(--gold-bright);font:500 14px/1.45 'Jost',sans-serif;
  box-shadow:0 16px 40px rgb(0 0 0 / 35%);opacity:0;transform:translateY(14px);transition:opacity .2s ease,transform .25s ease;pointer-events:none}
.fin-toast.on{opacity:1;transform:none}
.fin-toast.error{border-color:#583c3c;background:#251b20;color:#e9a6a0}
@media (prefers-reduced-motion:reduce){.fin-toast{transition:none}}

/* Back, the ☰ Menu button and the thumbtack (see finNav in app.js) */
.fin-back,.fin-menu-btn{appearance:none;display:inline-flex;align-items:center;gap:6px;margin-right:14px;padding:7px 12px;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--gold-bright,#e1c27a);font:600 12px/1 inherit;font-family:inherit;letter-spacing:.3px;cursor:pointer;white-space:nowrap}
.fin-back span,.fin-menu-btn span{font-size:16px;line-height:1;margin-top:-1px}
.fin-back:hover,.fin-menu-btn:hover{border-color:var(--gold-bright,#e1c27a)}
.fin-back.hidden{display:none}
.fin-menu-btn{display:none}
.topbar{justify-content:flex-start}.topbar .top-actions{margin-left:auto}
.sidebar .fin-pin{position:absolute;top:18px;right:10px;color:#c9d2de}
.sidebar .fin-pin[aria-pressed="true"]{color:var(--gold-bright,#e1c27a)}
@media (min-width: 761px){
  body.fin-menu-tucked .sidebar{display:none}
  body.fin-menu-tucked main{margin-left:0}
  body.fin-menu-tucked .fin-menu-btn{display:inline-flex}
}
@media (max-width: 760px){
  .sidebar .fin-pin{top:8px;right:8px}
  .sidebar .brand{padding-right:44px}
  body.fin-menu-pinned .sidebar{position:sticky;top:0;z-index:6;background:rgb(12 21 36)}
  .fin-back{margin-right:10px;padding:6px 10px}
}

/* Before sign-in only the sign-in card shows: no menu, Apps or avatar that look clickable but are locked. */
body.fin-locked .sidebar,body.fin-locked .top-actions,body.fin-locked .fin-menu-btn,body.fin-locked .fin-back{display:none!important}
body.fin-locked main{margin-left:0!important}
body.fin-locked .topbar{justify-content:center}
