@charset "UTF-8";

/* Scent Armor storefront: charcoal #1f1f21, orange #e35938, Oswald + Figtree.
   Brand accents and performance colors have separate roles. */
@font-face {
  font-family: Figtree;
  src: url('/dashboard/assets/figtree-medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 599;
  font-display: swap;
}
@font-face {
  font-family: Figtree;
  src: url('/dashboard/assets/figtree-bold.woff2') format('woff2');
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}
@font-face {
  font-family: Oswald;
  src: url('/dashboard/assets/oswald-medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --brand: #e35938;
  --accent: #ff956e;
  --accent-soft: #342620;
  --bg: #171719;
  --surface: #222225;
  --surface-raised: #29292d;
  --ink: #f4f3f0;
  --muted: #b0b0b6;
  --line: #3e3e43;
  --green: #8fd6ad;
  --green-soft: #203129;
  --gold: #efb769;
  --warning: #efbd80;
  --red: #ff9b97;
  --red-soft: #3b2627;
  --side: #1f1f21;
  --shadow: 0 6px 20px #00000012;
  --chart-main: #ff956e;
  --chart-secondary: #abbfcc;
}
:root[data-theme=light] {
  color-scheme: light;
  --accent: #ae381c;
  --accent-soft: #fff1e9;
  --bg: #f3f2ef;
  --surface: #ffffff;
  --surface-raised: #f7f6f3;
  --ink: #242426;
  --muted: #606069;
  --line: #dad8d4;
  --green: #286442;
  --green-soft: #edf5ef;
  --gold: #8b611f;
  --warning: #865714;
  --red: #ac3935;
  --red-soft: #fff0ed;
  --shadow: 0 4px 16px #27221a05;
  --chart-main: #b63e22;
  --chart-secondary: #536b7c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 25px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.6 Figtree, 'Segoe UI', sans-serif; }
button, input { font: inherit; }
button, a, input, summary { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--accent); }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Oswald, 'Arial Narrow', sans-serif; font-weight: 500; text-transform: uppercase; }
h1 { font-size: clamp(38px, 3.6vw, 54px); line-height: 1.13; letter-spacing: -.6px; }
h2 { font-size: 26px; letter-spacing: .15px; line-height: 1.3; }
h3 { font-size: 15px; font-weight: 700; }
p { overflow-wrap: anywhere; }
.eyebrow, .nav-caption { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.muted, .fine, .source-note, .section-intro { color: var(--muted); }
.fine { font-size: 12px; }
.accent { color: var(--accent); }
.warning-text { color: var(--warning); }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 20; background: var(--surface); padding: 14px; }
.skip-link:focus { top: 10px; }
[hidden] { display: none !important; }

/* Navigation keeps the storefront's dark background in both color themes. */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 232px; padding: 33px 17px 25px;
  background: var(--side); color: #eae9e7; display: flex; flex-direction: column;
  border-right: 1px solid #363638; z-index: 5;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 0 9px 25px; border-bottom: 1px solid #3b3b3f; text-decoration: none; }
.brand-logo { display: block; width: 100%; height: auto; object-fit: contain; }
.brand-subtitle { color: #c3c1bf; font-size: 10px; letter-spacing: 4.3px; font-weight: 700; }
.nav-caption { color: #a7a4a2; margin: 28px 11px 15px; font-size: 9px; letter-spacing: 1.5px; }
.sidebar nav { display: grid; gap: 7px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 12px 11px; text-decoration: none; font-size: 12px; border: 1px solid transparent; border-radius: 4px; color: #d1d0d1; transition: background .15s ease; }
.sidebar nav a span { font-size: 10px; color: #aaa6a2; font-variant-numeric: tabular-nums; }
.sidebar nav a:hover, .sidebar nav a:focus-visible { background: #2d2c2d; color: #fff; }
.sidebar nav a[aria-current] { background: #392923; border-color: #654035; border-left: 3px solid var(--brand); padding-left: 9px; color: #fff; }
.sidebar nav a[aria-current] span { color: #ff956e; }
.sidebar-foot { margin-top: auto; padding: 28px 10px 0; font-size: 11px; color: #dfd9d3; }
.sidebar-foot p { color: #aaa6a2; font-size: 11px; margin: 7px 0 23px; }
.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 5px; }
.sign-out { border: 0; padding: 0; background: none; color: #dcd7d2; font-size: 12px; }

main { margin-left: 232px; padding: 0 34px; max-width: 1830px; }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 12px; }
.topbar .eyebrow { color: var(--muted); font-size: 10px; letter-spacing: 1.4px; }
.toolbar { display: flex; gap: 8px; }
.toolbar button, footer button { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 12px; padding: 8px 12px; }
.toolbar button:hover, footer button:hover { border-color: var(--accent); }
.page-heading {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  justify-content: space-between; gap: 26px; margin: 25px 0 27px; padding: 30px;
  background: #1f1f21; border: 1px solid #3e3b39; border-left: 4px solid var(--brand); border-radius: 5px; color: #fff;
}
.page-heading::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: 650px; height: 560px; right: -145px; top: -190px; transform: rotate(-22deg);
  background: repeating-radial-gradient(ellipse at 65% 42%, transparent 0 28px, #a79c8829 29px 30px, transparent 31px 48px);
  opacity: .65;
}
.hero-copy { min-width: 0; }
.page-heading .eyebrow { color: #ff956e; margin-bottom: 14px; font-size: 10px; }
.page-heading h1 span { color: var(--brand); }
.page-heading .muted { color: #ccc8c5; margin-top: 14px; font-size: 13px; }
.period-control { text-align: right; flex-shrink: 0; max-width: 100%; }
.period-caption { color: #c7c1ba; font-size: 9px; font-weight: 700; letter-spacing: 1.7px; margin-bottom: 10px; }
.range-buttons { display: inline-flex; border: 1px solid #5e5651; padding: 4px; border-radius: 4px; background: #242224; }
.range-buttons button { border: 0; border-radius: 2px; padding: 9px 13px; background: none; color: #ded9d5; font-size: 12px; min-height: 36px; }
.range-buttons button:hover { color: #fff; background: #3f3530; }
.range-buttons button[aria-pressed=true] { background: var(--brand); color: #19191b; font-weight: 700; box-shadow: 0 2px 8px #0002; }
#period-label { margin-top: 10px; color: #c9c3bd; font-size: 11px; max-width: 310px; }
.notice { padding: 13px 17px; background: var(--accent-soft); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 4px; font-size: 13px; margin-bottom: 22px; }
.notice.error { color: var(--red); border-left-color: var(--red); }

section { margin-bottom: 42px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 17px; flex-wrap: wrap; }
.section-heading h2::before { content: ''; display: inline-block; width: 5px; height: 17px; margin-right: 10px; background: var(--brand); transform: skew(-13deg); }
.tag, .source-tag { font-size: 10px; letter-spacing: .8px; color: var(--muted); }
.tag { padding: 5px 9px; border: 1px solid var(--line); border-radius: 3px; }
.status-banner { display: flex; align-items: center; gap: 16px; background: var(--green-soft); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 4px; padding: 13px 17px; margin-bottom: 16px; }
.status-banner strong { font-size: 11px; white-space: nowrap; color: var(--green); text-transform: uppercase; letter-spacing: .8px; }
.status-banner p { font-size: 13px; }
.status-banner[data-status=attention] { background: var(--red-soft); border-left-color: var(--red); }
.status-banner[data-status=attention] strong { color: var(--red); }
.status-banner[data-status=insufficient_data], .status-banner[data-status=monitor] { background: var(--surface-raised); border-left-color: var(--muted); }
.status-banner[data-status=insufficient_data] strong, .status-banner[data-status=monitor] strong { color: var(--muted); }
.snapshot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.metric-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 18px 19px 13px; box-shadow: var(--shadow); }
.snapshot-grid > .metric-card:first-child { border-top: 3px solid var(--brand); padding-top: 16px; background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); }
.metric-card .metric-label { font-size: 13px; font-weight: 700; }
.metric-source { font-size: 10px; letter-spacing: 1px; color: var(--muted); margin-top: 3px; text-transform: uppercase; }
.metric-value { font-size: 34px; line-height: 1.2; font-weight: 700; letter-spacing: -1px; margin: 12px 0; font-variant-numeric: tabular-nums; }
.metric-value small { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.deltas { display: flex; gap: 18px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12px; flex-wrap: wrap; }
.delta { font-variant-numeric: tabular-nums; }
.delta-label { color: var(--muted); font-size: 11px; margin-right: 6px; }
.good { color: var(--green); }
.bad { color: var(--red); }
.neutral { color: var(--muted); }
.metric-detail { font-size: 11px; color: var(--muted); margin-top: 9px; }
.metric-detail summary { cursor: pointer; }
.metric-detail summary:hover { color: var(--accent); }
.metric-detail p { margin: 6px 0; }
.partial-label { font-size: 11px; color: var(--warning); margin-top: -6px; margin-bottom: 10px; }
.source-note { font-size: 11px; margin-top: 14px; line-height: 1.7; }
.section-intro { font-size: 13px; margin: -5px 0 18px; max-width: 940px; }

.trend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 17px; }
.trend { padding: 18px 19px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); border-left: 3px solid var(--green); }
.trend.concern { border-left-color: var(--red); }
.trend.watch { border-left-color: var(--accent); }
.trend h3 { font-size: 14px; }
.trend p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.three-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.two-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 5px; padding: 21px; min-width: 0; box-shadow: var(--shadow); }
.finding { margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--line); }
.finding strong { font-size: 13px; }
.finding p { font-size: 12px; color: var(--muted); margin-top: 6px; }
.empty { font-size: 13px; color: var(--muted); padding: 20px 0; }
.actions { display: grid; gap: 12px; }
.action { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 17px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); padding: 23px; }
.action:first-child { border-left: 3px solid var(--brand); padding-left: 21px; }
.action-number { width: 40px; height: 42px; border-radius: 3px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font: 500 23px Oswald, sans-serif; }
.action h3 { font-size: 16px; }
.action p { font-size: 13px; margin: 8px 0; color: var(--muted); }
.action details { font-size: 12px; }
.action summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.evidence { padding: 14px; margin-top: 10px; background: var(--surface-raised); border-radius: 4px; }
.evidence .fine { margin-top: 5px; }
.quality { margin-top: 14px; }
.quality > summary { font-size: 13px; font-weight: 700; cursor: pointer; }
.quality > summary span { font-weight: 500; color: var(--muted); margin-left: 8px; }
.quality .finding p { max-width: 1000px; }

.metrics-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin-bottom: 16px; }
.metrics-strip .metric-card { padding: 15px; }
.metrics-strip .metric-value { font-size: 27px; margin: 11px 0; }
.metrics-strip .metric-label { font-size: 12px; }
.metrics-strip .metric-source { font-size: 9px; }
.metrics-strip .deltas { gap: 5px; border: 0; padding-top: 0; }
.chart-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.legend { font-size: 12px; display: flex; gap: 15px; }
.legend-green { color: var(--chart-main); }
.legend-gold { color: var(--chart-secondary); }
.chart { width: 100%; height: auto; display: block; margin-top: 13px; overflow: visible; }
.chart text { font-family: Figtree, sans-serif; font-size: 11px; fill: var(--muted); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .line { stroke: var(--chart-main); stroke-width: 2.7; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.chart .secondary { stroke: var(--chart-secondary); stroke-dasharray: 6 4; }
.chart .point { fill: var(--chart-main); }
.chart .point.secondary { fill: var(--chart-secondary); stroke-dasharray: none; }
.chart .point:focus { stroke: var(--ink); stroke-width: 4; }
.chart-table { font-size: 11px; color: var(--muted); margin-top: 10px; }
.chart-table summary { cursor: pointer; }
.assessment { color: var(--muted); font-size: 13px; padding: 13px 2px 0; }
.assessment strong { color: var(--ink); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 12px; }
th { text-align: right; color: var(--muted); font-size: 10px; letter-spacing: .7px; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
td, th { border-bottom: 1px solid var(--line); padding: 13px 9px; }
td { text-align: right; }
tbody tr:hover { background: var(--surface-raised); }
td:first-child, th:first-child { text-align: left; padding-left: 0; }
td:last-child, th:last-child { padding-right: 0; }
td:first-child { max-width: 230px; overflow-wrap: anywhere; }
.table-note { color: var(--muted); font-size: 11px; margin-top: 13px; }
#email-table td:first-child { min-width: 180px; }
.health-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.health-card { border: 1px solid var(--line); background: var(--surface); border-radius: 5px; padding: 17px 14px; }
.health-card h3 { font-size: 13px; }
.health-status { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; margin: 11px 0 8px; }
.health-card time { font-size: 11px; color: var(--muted); }
.health-card p { font-size: 11px; color: var(--muted); margin-top: 5px; }
.health-card .health-status.good { color: var(--green); }
.health-card .health-status.warning-text { color: var(--warning); }
footer { display: flex; align-items: flex-start; gap: 20px; justify-content: space-between; border-top: 1px solid var(--line); padding: 27px 0 35px; font-size: 11px; letter-spacing: .7px; }
footer details { max-width: 600px; letter-spacing: 0; color: var(--muted); }
footer summary { cursor: pointer; }
footer p { margin: 12px 0; }
#dashboard[aria-busy=true] { opacity: .5; pointer-events: none; min-height: 300px; }

/* Sign-in shares the same brand, with no marketing photography behind form fields. */
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 25px; background: radial-gradient(ellipse at top left, #3c2922 0, #1a1a1c 48%); }
.login-card { position: relative; margin: 0; max-width: 475px; width: 100%; padding: 42px; background: #222225; border: 1px solid #45403d; border-top: 3px solid var(--brand); border-radius: 5px; box-shadow: 0 20px 70px #0003; }
.login-card .brand-logo { width: 245px; max-width: 100%; margin-bottom: 28px; }
.login-card .eyebrow { color: #ff956e; font-size: 9px; }
.login-card h1 { font-size: 36px; line-height: 1.25; margin: 17px 0; letter-spacing: .3px; }
.login-card .muted { font-size: 14px; }
.login-card form { margin: 29px 0 17px; }
.login-card label { display: block; font-size: 13px; margin-bottom: 9px; }
.login-card input { width: 100%; padding: 13px; background: #19191b; border: 1px solid #62616a; border-radius: 3px; color: #f4f3f0; }
.primary { display: flex; justify-content: space-between; background: var(--brand); color: #19191b; width: 100%; border: 0; border-radius: 3px; padding: 13px 16px; margin-top: 15px; font-weight: 700; }
.primary:hover { background: #f47752; }
.form-error { color: var(--red); font-size: 13px; margin-top: 12px; }

.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; align-items: start; }
.agent-card { border-top: 3px solid var(--brand); min-width: 0; }
.agent-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.agent-index { font-family: Oswald, sans-serif; font-size: 27px; color: var(--accent); }
.agent-status { color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 4px 7px; font-size: 10px; text-transform: uppercase; letter-spacing: .7px; }
.agent-status.ready { color: var(--green); }
.agent-status.unavailable { color: var(--red); }
.agent-summary { font-size: 15px; line-height: 1.6; min-height: 48px; }
.agent-detail { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.agent-detail h4 { font-family: Oswald, sans-serif; text-transform: uppercase; font-size: 16px; margin: 23px 0 8px; }
.agent-evidence { margin-top: 14px; font-size: 13px; }
.agent-evidence .evidence { overflow-wrap: anywhere; }
.agent-evidence .evidence details { margin-top: 10px; }
.agent-detail .proposal { margin: 12px 0; padding: 13px; }
.proposal-list { display: grid; gap: 14px; }
.proposal, .decision { overflow-wrap: anywhere; }
.proposal .eyebrow, .action .eyebrow { font-size: 10px; line-height: 1.7; }
.impact { padding-left: 12px; border-left: 2px solid var(--brand); font-size: 13px; line-height: 1.7; }
.sidebar nav { min-height: 0; overflow-y: auto; }
.health-card details { overflow-wrap: anywhere; font-size: 12px; }

@media (min-width: 1600px) {
  main { padding: 0 49px; }
  .metric-card { padding: 21px 23px 16px; }
  .snapshot-grid > .metric-card:first-child { padding-top: 19px; }
  .metric-value { font-size: 38px; }
  .page-heading { padding: 35px; }
}
@media (max-width: 1280px) {
  .sidebar { width: 206px; padding: 28px 12px; }
  .sidebar nav a { font-size: 11px; gap: 9px; }
  main { margin-left: 206px; padding: 0 25px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 23px; }
  .period-control { text-align: left; }
  .period-caption { display: none; }
  #period-label { max-width: none; }
  .health-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .three-columns { grid-template-columns: 1fr; }
  .finding { margin-top: 11px; }
  .metrics-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two-columns { grid-template-columns: 1fr; }
  .metric-value { font-size: 30px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 16px; }
  .sidebar { position: static; width: 100%; padding: 19px 19px 12px; }
  .brand { flex-direction: row; align-items: center; justify-content: space-between; padding: 0 0 15px; gap: 18px; }
  .brand-logo { width: 180px; }
  .brand-subtitle { font-size: 8px; letter-spacing: 1.7px; }
  .nav-caption, .sidebar-foot { display: none; }
  .sidebar nav { display: flex; overflow-x: auto; padding: 10px 0 0; gap: 5px; scrollbar-width: thin; }
  .sidebar nav a { flex-shrink: 0; padding: 8px 10px; font-size: 11px; }
  .sidebar nav a span { display: none; }
  .sidebar nav a[aria-current] { padding-left: 8px; }
  main { margin: 0; padding: 0 16px; }
  .topbar { min-height: 62px; }
  .topbar .eyebrow { font-size: 8px; letter-spacing: .6px; max-width: 160px; }
  .toolbar { gap: 6px; }
  .toolbar button { padding: 8px 9px; font-size: 11px; }
  .page-heading { margin: 16px 0 24px; padding: 24px 19px; gap: 21px; }
  h1 { font-size: 34px; }
  .page-heading .eyebrow { font-size: 9px; letter-spacing: 1.3px; }
  .page-heading .muted { font-size: 13px; }
  .range-buttons button { padding: 8px 12px; font-size: 12px; }
  .snapshot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-card { padding: 15px 12px 12px; }
  .snapshot-grid > .metric-card:first-child { padding-top: 13px; }
  .metric-card .metric-label { font-size: 12px; }
  .metric-value { font-size: 27px; }
  .metric-value small { font-size: 10px; margin-left: 4px; }
  .metric-source { font-size: 9px; letter-spacing: .5px; }
  .deltas { gap: 5px; flex-direction: column; }
  .metric-detail { font-size: 11px; }
  .trend-grid { grid-template-columns: 1fr; }
  .metrics-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics-strip .metric-value { font-size: 25px; }
  .status-banner { flex-direction: column; align-items: flex-start; gap: 5px; padding: 13px; }
  .section-heading { gap: 8px; }
  .section-heading .fine { font-size: 11px; }
  h2 { font-size: 24px; }
  .panel { padding: 17px; }
  .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action, .action:first-child { padding: 18px 14px; gap: 12px; grid-template-columns: 30px 1fr; }
  .action-number { width: 30px; height: 34px; font-size: 20px; }
  footer { flex-direction: column; gap: 15px; }
  .chart-heading { align-items: flex-start; flex-direction: column; }
  .login-card { padding: 30px 26px; }
  .source-tag { font-size: 9px; letter-spacing: .5px; }
}
@media (max-width: 360px) {
  .metric-value { font-size: 24px; }
  .metric-value small { display: block; margin: 4px 0 0; }
  .brand-logo { width: 150px; }
  .range-buttons button { padding: 8px 10px; }
  .toolbar button { padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
