
:root {
  font-family: Onest, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --ink: #161a1d;
  --ink-2: #626b73;
  --ink-3: #8a949c;
  --line: #dde2e6;
  --line-2: #cfd6dc;
  --sidebar: #0f171b;
  --sidebar-2: #141e23;
  --cyan: #31d2ff;
  --cyan-soft: #e8f9fe;
  --cyan-dark: #087a96;
  --warning: #b86b19;
  --warning-bg: #fff6e9;
  --danger: #b34352;
  --danger-bg: #fff0f2;
  --success: #2b7654;
  --success-bg: #edf8f2;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(14,22,27,.03), 0 8px 24px rgba(14,22,27,.045);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; background: var(--bg); color: var(--ink); }
body { min-height: 100vh; font-size: 15px; line-height: 1.5; }
button, input { font: inherit; }
button { cursor: pointer; }
svg { display: block; }

.app { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0,1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; padding: 24px 16px; background: var(--sidebar); color: #d9e2e7; border-right: 1px solid rgba(255,255,255,.05); display: flex; flex-direction: column; z-index: 10; }
.brand { display: flex; align-items: center; height: 52px; padding: 0 8px 18px; border-bottom: 1px solid rgba(255,255,255,.075); }
.brand img { width: 140px; height: auto; display: block; }
.nav { display: grid; gap: 6px; padding-top: 20px; }
.nav a { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 0 13px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: #aab8bf; font-weight: 500; text-align: left; transition: .15s ease; }
.nav a:hover { background: rgba(255,255,255,.04); color: #fff; }
.nav a.active { color: #fff; background: rgba(49,210,255,.085); border-color: rgba(49,210,255,.16); box-shadow: inset 2px 0 0 var(--cyan); }
.nav a.active .nav-icon { color: var(--cyan); }
.nav-icon { width: 20px; height: 20px; color: #80939d; }
.sidebar-foot { margin-top: auto; padding: 14px 12px 0; color: #6f8089; font-size: 12px; }

.main { grid-column: 2; min-width: 0; }
.topbar { height: 72px; position: sticky; top: 0; z-index: 8; display: flex; align-items: center; gap: 18px; padding: 0 32px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.search { width: min(600px, 52vw); height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: #f7f9fa; color: var(--ink-3); }
.search svg { width: 19px; height: 19px; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.search input::placeholder { color: #8a959d; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; display: grid; place-items: center; background: #fff; color: #4f5d65; }
.icon-btn svg { width: 19px; height: 19px; }
.badge { position: absolute; right: -3px; top: -5px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; background: var(--cyan-dark); color: #fff; font-size: 10px; font-weight: 600; border: 2px solid #fff; }
.account { min-width: 188px; display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 6px; border-radius: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #f2aa5a; color: #3b2715; font-weight: 600; border: 1px solid #e2c49d; }
.account-copy { display: grid; min-width: 0; line-height: 1.25; }
.account-copy strong { font-size: 14px; font-weight: 600; }
.account-copy small { margin-top: 2px; color: var(--ink-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 136px; }
.chev { width: 16px; height: 16px; margin-left: auto; color: #859098; }

.content { width: min(1460px, 100%); margin: 0 auto; padding: 34px 34px 60px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan-dark); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px var(--cyan-soft); }
h1 { margin: 7px 0 6px; font-size: 36px; line-height: 1.08; letter-spacing: -.03em; font-weight: 600; }
.page-head p { margin: 0; color: var(--ink-2); font-size: 15px; }
.primary { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid #11191d; border-radius: 11px; background: #11191d; color: #fff; font-weight: 500; box-shadow: 0 7px 18px rgba(17,25,29,.14); }
.primary:hover { background: #20292e; }
.primary svg { width: 18px; height: 18px; }

.period { display: flex; align-items: center; gap: 14px; min-height: 74px; margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.period-copy { min-width: 260px; margin-right: auto; }
.period-copy strong { display: block; font-size: 14px; font-weight: 600; }
.period-copy span { display: block; margin-top: 2px; color: var(--ink-3); font-size: 12px; }
.date-field { display: grid; gap: 5px; }
.date-field label { color: var(--ink-3); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.date-box { min-width: 132px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfc; color: #6c777e; font-size: 13px; }
.date-box svg { width: 16px; height: 16px; margin-left: auto; }

.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 14px; }
.metric { min-height: 116px; display: grid; align-content: space-between; gap: 8px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-align: left; color: var(--ink); }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-label { color: var(--ink-2); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.metric-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd3d8; }
.metric-dot.cyan { background: var(--cyan); }
.metric-dot.green { background: #73b894; }
.metric-dot.orange { background: #d7a45b; }
.metric strong { font-size: 31px; line-height: 1; font-weight: 600; letter-spacing: -.035em; }
.metric small { color: var(--ink-3); font-size: 12px; }

.dashboard { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(360px,.82fr); gap: 14px; align-items: start; }
.stack { display: grid; gap: 14px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.card-head { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid var(--line); }
.card-title { display: grid; gap: 2px; }
.card-title h2 { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 600; }
.card-title p { margin: 0; color: var(--ink-3); font-size: 12px; }
.ghost { border: 0; background: transparent; color: var(--cyan-dark); font-size: 13px; font-weight: 500; padding: 8px 0; }
.list-row { width: 100%; min-height: 56px; display: grid; grid-template-columns: minmax(0,1fr) auto 18px; align-items: center; gap: 10px; padding: 0 18px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.list-row:last-child { border-bottom: 0; }
.list-row:hover { background: #fafcfc; }
.list-row strong { font-size: 14px; font-weight: 500; }
.list-row .count { min-width: 28px; text-align: right; font-size: 16px; font-weight: 600; }
.list-row svg { width: 17px; height: 17px; color: #9ca6ad; }
.empty-line { min-height: 72px; display: flex; align-items: center; gap: 11px; padding: 0 18px; color: var(--ink-2); font-size: 13px; }
.empty-icon { width: 31px; height: 31px; border-radius: 9px; display: grid; place-items: center; background: #f2f5f6; color: #89969e; }
.empty-icon svg { width: 17px; height: 17px; }

.status-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.state-card { min-height: 156px; padding: 17px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: grid; align-content: space-between; gap: 16px; }
.state-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.state-head div { display: grid; gap: 2px; }
.state-head h3 { margin: 0; font-size: 15px; line-height: 1.35; font-weight: 600; }
.state-head p { margin: 0; color: var(--ink-3); font-size: 12px; }
.state-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #f2f5f6; color: #77858d; flex: 0 0 auto; }
.state-icon svg { width: 18px; height: 18px; }
.state-body strong { display: block; font-size: 13px; font-weight: 500; }
.state-body span { display: block; margin-top: 3px; color: var(--ink-3); font-size: 12px; }
.state-card.warning .state-icon { background: var(--warning-bg); color: var(--warning); }

.activity { min-height: 502px; }
.activity-list { display: grid; }
.activity-row { min-height: 70px; display: grid; grid-template-columns: minmax(0,1fr) auto 18px; align-items: center; gap: 12px; padding: 10px 17px; border-bottom: 1px solid var(--line); }
.activity-row:last-child { border-bottom: 0; }
.activity-main { min-width: 0; display: grid; gap: 2px; }
.activity-main strong { font-size: 13px; font-weight: 600; }
.activity-main span { color: var(--ink-2); font-size: 12px; }
.activity-main em { color: var(--ink-3); font-size: 11px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-row time { color: var(--ink-3); font-size: 11px; white-space: nowrap; }
.activity-row > svg { width: 16px; height: 16px; color: #a0a9af; }
.analytics-link { margin-top: 14px; display: flex; justify-content: flex-end; }
.secondary { min-height: 42px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: #39464d; font-size: 13px; font-weight: 500; }
.secondary svg { width: 17px; height: 17px; }

@media (max-width: 1120px) {
  .app { grid-template-columns: 86px minmax(0,1fr); }
  .sidebar { width: 86px; padding-inline: 12px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand img { width: 48px; height: 31px; object-fit: cover; object-position: left; }
  .nav a { justify-content: center; padding-inline: 0; }
  .nav a span { display: none; }
  .sidebar-foot { display: none; }
  .main { grid-column: 2; }
  .account { min-width: 44px; }
  .account-copy, .chev { display: none; }
  .dashboard { grid-template-columns: 1fr; }
  .activity { min-height: auto; }
}
@media (max-width: 760px) {
  .app { display: block; }
  .sidebar { display: none; }
  .main { grid-column: 1; }
  .topbar { height: 64px; padding-inline: 16px; }
  .search { width: 100%; }
  .account { display: none; }
  .content { padding: 24px 16px 44px; }
  .page-head { align-items: stretch; flex-direction: column; }
  h1 { font-size: 32px; }
  .primary { width: 100%; justify-content: center; }
  .period { align-items: stretch; flex-wrap: wrap; }
  .period-copy { width: 100%; margin-right: 0; }
  .date-field { flex: 1 1 42%; }
  .date-box { min-width: 0; width: 100%; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .activity-row { grid-template-columns: minmax(0,1fr) auto; }
  .activity-row > svg { display: none; }
}
@media (max-width: 480px) {
  .metrics { grid-template-columns: 1fr; }
  .icon-btn { display: none; }
}


/* V1.3: DESIGN-ONLY COLOR / SURFACE HIERARCHY.
   Structure, content, blocks, order and functionality remain exactly V1. */

:root {
  --bg: #edf1f3;
  --surface: #ffffff;
  --surface-soft: #f5f7f8;
  --ink: #161a1d;
  --ink-2: #536169;
  --ink-3: #68747b;
  --line: #d2dbe0;
  --line-2: #c3ced4;
  --sidebar: #0e171b;
  --sidebar-2: #142026;
  --cyan: #31d2ff;
  --cyan-soft: #e8f9fe;
  --cyan-dark: #087a96;
  --shadow: 0 1px 2px rgba(14,23,27,.025), 0 7px 20px rgba(14,23,27,.035);
}

html,
body {
  background: var(--bg);
}

/* CHROME */
.topbar {
  background: rgba(255,255,255,.97);
  border-bottom-color: #d4dde1;
}

.search {
  background: #f4f7f8;
  border-color: #d3dde1;
}

.icon-btn {
  background: #fbfcfc;
  border-color: #d2dce0;
}

/* PERIOD
   A distinct control surface, but not a colored card. */
.period {
  background: #f8fbfc;
  border-color: #c7d9df;
  box-shadow:
    inset 3px 0 0 #73cfe0,
    0 1px 2px rgba(14,23,27,.025);
}

.date-box {
  background: #ffffff;
  border-color: #cdd8dd;
}

/* KPI
   White base remains. Color is localised to tiny top markers and existing dots. */
.metric {
  position: relative;
  background: #ffffff;
  border-color: #cfd9de;
  box-shadow: 0 1px 2px rgba(14,23,27,.025), 0 5px 16px rgba(14,23,27,.025);
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: #cbd5da;
}

.metrics .metric:nth-child(1)::before {
  background: #6ecfe2;
}

.metrics .metric:nth-child(2)::before,
.metrics .metric:nth-child(3)::before {
  background: #9ebbaa;
}

.metrics .metric:nth-child(4)::before {
  background: #c9aa76;
}

/* MAIN PANELS
   Bodies stay white. Only header zones carry a restrained category tone. */
.card {
  background: #ffffff;
  border-color: #ccd7dc;
  box-shadow: var(--shadow);
}

.card-head {
  background: #f4f7f8;
  border-bottom-color: #d5dfe3;
}

.stack > .card:nth-child(1) {
  border-color: #c7d9df;
}

.stack > .card:nth-child(1) .card-head {
  background: #f1f7f9;
  box-shadow: inset 3px 0 0 #79bdca;
}

.stack > .card:nth-child(2) {
  border-color: #ddd6c9;
}

.stack > .card:nth-child(2) .card-head {
  background: #faf7f1;
  box-shadow: inset 3px 0 0 #c5a776;
}

.list-row {
  background: #ffffff;
}

.list-row:hover {
  background: #f2f8f9;
}

.empty-line {
  background: #fffefa;
}

.empty-icon {
  background: #f3efe6;
  color: #806f55;
}

/* EXISTING THREE STATUS BLOCKS
   Distinct, but deliberately much quieter than V1.2. */
.status-grid .state-card:nth-child(1) {
  background: #fcf8f7;
  border-color: #e4d6d2;
  box-shadow: 0 1px 2px rgba(87,48,40,.02);
}

.status-grid .state-card:nth-child(1) .state-icon {
  background: #f7eae7;
  color: #8e5d53;
}

.status-grid .state-card:nth-child(2) {
  background: #f7faf8;
  border-color: #d5e2da;
  box-shadow: 0 1px 2px rgba(48,83,64,.02);
}

.status-grid .state-card:nth-child(2) .state-icon {
  background: #eaf3ee;
  color: #5c7969;
}

.status-grid .state-card:nth-child(3) {
  background: #f7f9fb;
  border-color: #d7e0e6;
  box-shadow: 0 1px 2px rgba(49,70,87,.02);
}

.status-grid .state-card:nth-child(3) .state-icon {
  background: #eaf0f4;
  color: #607787;
}

/* Keep existing warning semantics, just soften the icon surface. */
.state-card.warning .state-icon {
  background: #f7eae7;
  color: #8e5d53;
}

/* ACTIVITY
   Separate with a neutral cool header; rows stay clean white. */
.card.activity {
  border-color: #ccd7dc;
}

.card.activity .card-head {
  background: #f1f4f6;
  box-shadow: inset 3px 0 0 #8299a5;
}

.activity-row {
  background: #ffffff;
  border-bottom-color: #dde4e7;
}

.activity-row:hover {
  background: #f2f7f8;
}

/* SECONDARY ACTION */
.secondary {
  background: #f7f9fa;
  border-color: #c7d2d7;
}

/* BRAND SIGNAL */
.nav a.active {
  background: rgba(49,210,255,.095);
  border-color: rgba(49,210,255,.18);
  box-shadow: inset 3px 0 0 var(--cyan);
}


/* V1.4 FINAL DESIGN-ONLY OVERRIDES
   No content, structure, order or functionality changes. */

/* Readability floor */
:root {
  --ink-2: #4f5d65;
  --ink-3: #5f6b72;
}

/* Desktop content text: minimum 14 px.
   Very small notification badge is intentionally excluded. */
@media (min-width: 761px) {
  .page-head p,
  .period-note,
  .metric-label,
  .metric small,
  .card-sub,
  .state-card p,
  .state-copy span,
  .activity-row small,
  .activity-row time,
  .account small,
  .date-box span,
  .date-box input,
  .secondary,
  .nav a,
  .search input {
    font-size: 14px !important;
  }

  .activity-row strong,
  .list-row strong,
  .state-copy strong {
    font-size: 14px !important;
  }

  .eyebrow {
    font-size: 14px !important;
  }
}

/* Mobile remains readable too: substantive text never drops below 14 px. */
@media (max-width: 760px) {
  .page-head p,
  .period-note,
  .metric-label,
  .metric small,
  .card-sub,
  .state-card p,
  .state-copy span,
  .activity-row small,
  .activity-row time,
  .account small,
  .date-box span,
  .date-box input,
  .secondary,
  .nav a,
  .search input,
  .activity-row strong,
  .list-row strong,
  .state-copy strong {
    font-size: 14px !important;
  }
}

/* KPI category markers:
   neutral/categorical rather than success-error semantics. */
.metrics .metric:nth-child(1)::before { background:#63bfd1; }
.metrics .metric:nth-child(2)::before { background:#8ea6b2; }
.metrics .metric:nth-child(3)::before { background:#a18ea7; }
.metrics .metric:nth-child(4)::before { background:#b29b74; }

/* Existing status dots remain visible, but do not carry the KPI category identity alone. */
.metric-dot {
  box-shadow: 0 0 0 3px rgba(255,255,255,.9);
}

/* Slightly stronger text contrast inside muted surfaces */
.state-card,
.metric,
.card,
.period {
  color: var(--ink);
}

.state-card p,
.card-sub,
.metric small,
.period-note,
.activity-row small,
.activity-row time {
  color: var(--ink-3) !important;
}

/* Preserve V1.3 visual hierarchy exactly otherwise. */

@media (max-width:1120px) {
  .brand {
    justify-content:center;
    padding-left:0;
    padding-right:0;
  }
  .brand img {
    display:none;
  }
  .brand::before {
    content:"";
    width:32px;
    height:32px;
    display:block;
    background:url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4gPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGlkPSJf0KHQu9C+0LlfMSIgdmVyc2lvbj0iMS4xIiB2aWV3Qm94PSIwIDAgMTc4LjkgMTg4Ij48ZGVmcz48c3R5bGU+IC5zdDAgeyBmaWxsOiAjMzFkMmZmOyB9IDwvc3R5bGU+PC9kZWZzPjxnIGlkPSJTdmdqc0cxMjYzIj48cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTQ2LjEsMzVjMTUuMSwxNi4xLDIzLjUsMzcuMSwyMy41LDU5cy0yLjYsMjQuNC03LjcsMzUuNmMtLjksMi0zLjIsMi45LTUuMywyLTItLjktMi45LTMuMi0yLTUuMyw0LjctMTAuMSw3LTIxLDctMzIuMiwwLTE5LjktNy42LTM4LjktMjEuNC01My42LTEyLjYtMTQuMS0zMS40LTIyLjYtNTAuMy0yMi42cy0zOC40LDguMi01MS42LDIyLjZjLTEzLjUsMTQuNC0yMSwzMy41LTIxLDUzLjZzNy40LDM5LjQsMjEsNTMuNmMxMy41LDE0LjMsMzIuMywyMi42LDUxLjcsMjIuNnMzNy40LTguNCw1MC4yLTIyLjVjLjUtLjUsMS0xLjEsMS40LTEuNSwxLjQtMS42LDQtMS44LDUuNi0uMywxLjYsMS40LDEuOCw0LC4zLDUuNi0uNS41LTEsMS4xLTEuNSwxLjYtMTQuMiwxNS43LTM1LjIsMjUuMS01Ni4xLDI1LjFzLTQyLjQtOS4xLTU3LjQtMjUuMWMtMTUtMTUuOC0yMy4yLTM2LjctMjMuMi01OS4yczguMi00My4yLDIzLjEtNTljMTQuOC0xNS45LDM1LjYtMjUuMSw1Ny41LTI1LjFzNDIuMSw5LjQsNTYuMiwyNS4yaDBaTTQzLjMsNzAuOWMyLjEuNywzLjEsMywyLjQsNS0yLDUuNy0zLDExLjgtMywxOCwwLDEzLjcsNS4xLDI2LjksMTQsMzYsOSw5LjgsMjAuNSwxNC45LDMzLjIsMTQuOXMyMy40LTUuMywzMi4yLTE0LjhjOS05LjQsMTQuMS0yMi41LDE0LjEtMzZzLTUuMS0yNi43LTE0LjEtMzYuM2MtOC44LTkuNC0yMC4yLTE0LjUtMzIuMi0xNC41cy0yNC4zLDUtMzMuMSwxNC41Yy0uNi42LTEuMiwxLjMtMS43LDEuOS0xLjQsMS43LTMuOSwxLjktNS42LjRzLTEuOS0zLjktLjQtNS42Yy42LS43LDEuMy0xLjUsMi0yLjIsMTAuNC0xMS4xLDIzLjktMTcsMzktMTdzMjcuOSw2LjEsMzguMSwxNy4xYzEwLjMsMTEsMTYuMiwyNi4yLDE2LjIsNDEuNnMtNS45LDMwLjYtMTYuMiw0MS41Yy0xMC40LDExLjEtMjMuOSwxNy4zLTM4LjEsMTcuM3MtMjguNi02LjItMzktMTcuM2MtMTAuMy0xMC41LTE2LjItMjUuNi0xNi4yLTQxLjVzMS4yLTE0LDMuNS0yMC42Yy43LTIuMSwzLTMuMSw1LjEtMi40aDBaIj48L3BhdGg+PC9nPjwvc3ZnPiA=") center/contain no-repeat;
  }
}



/* V1.5 READABILITY FIX.
   Correct selectors from the actual V1 markup.
   No structure/content/function changes. */

@media (min-width:761px) {
  .sidebar-foot,
  .account-copy small,
  .eyebrow,
  .period-copy span,
  .date-field label,
  .date-box,
  .metric-label,
  .metric small,
  .card-title p,
  .ghost,
  .empty-line,
  .state-head p,
  .state-body strong,
  .state-body span,
  .activity-main strong,
  .activity-main span,
  .activity-main em,
  .activity-row time,
  .secondary {
    font-size:14px !important;
  }
}

/* On mobile, substantive UI text also stays at or above 14 px. */
@media (max-width:760px) {
  .sidebar-foot,
  .account-copy small,
  .eyebrow,
  .period-copy span,
  .date-field label,
  .date-box,
  .metric-label,
  .metric small,
  .card-title p,
  .ghost,
  .empty-line,
  .state-head p,
  .state-body strong,
  .state-body span,
  .activity-main strong,
  .activity-main span,
  .activity-main em,
  .activity-row time,
  .secondary {
    font-size:14px !important;
  }
}

/* Only the notification count badge intentionally remains below 14 px. */
.badge {
  font-size:10px !important;
}


.date-range {
  position: relative;
  flex: 0 0 auto;
}

.date-range-trigger {
  min-width: 300px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  border: 1px solid #cbd7dc;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  box-shadow: 0 1px 2px rgba(14,23,27,.02);
}

.date-range-trigger:hover {
  border-color: #b7c7ce;
  background: #fcfefe;
}

.date-range-trigger:focus-visible {
  outline: 3px solid rgba(49,210,255,.22);
  outline-offset: 2px;
}

.date-range-trigger svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #68757c;
}

.date-range-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 360px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid #cbd7dc;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(14,23,27,.12);
  z-index: 40;
}

.date-range-popover[hidden] {
  display: none;
}

.date-range-field {
  display: grid;
  gap: 6px;
}

.date-range-field span {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}

.date-range-field input {
  width: 100%;
  height: 42px;
  padding: 0 10px;
  border: 1px solid #ccd8dd;
  border-radius: 9px;
  background: #fbfcfc;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
}

.date-range-field input:focus {
  outline: 3px solid rgba(49,210,255,.18);
  border-color: #9fc8d1;
}

@media (max-width:760px) {
  .period {
    flex-wrap: wrap;
  }

  .date-range {
    width: 100%;
  }

  .date-range-trigger {
    width: 100%;
    min-width: 0;
  }

  .date-range-popover {
    left: 0;
    right: auto;
    width: min(100%, 360px);
  }
}

@media (max-width:480px) {
  .date-range-popover {
    grid-template-columns: 1fr;
  }
}

@media (min-width:769px){.nav a{font-size:15px;text-decoration:none}}

/* analytics.html: unique content only */
body.page-analytics{}
body.page-analytics .content{width:min(1440px,100%);margin:0 auto;padding:34px 34px 50px}
body.page-analytics .page-head{margin-bottom:24px}
body.page-analytics .eyebrow{
  display:inline-flex;align-items:center;gap:7px;color:var(--cyan-dark);font-size:14px;font-weight:600;
  letter-spacing:.06em;text-transform:uppercase
}
body.page-analytics .eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--cyan);box-shadow:0 0 0 4px var(--cyan-soft)}
body.page-analytics h1{margin:8px 0 7px;font-size:36px;line-height:1.08;letter-spacing:-.03em;font-weight:600}
body.page-analytics .page-head p{margin:0;color:var(--ink-2);font-size:14px}
body.page-analytics .analytics-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:16px;
  align-items:start
}
body.page-analytics .analytics-column{display:grid;gap:16px}
body.page-analytics .panel{
  background:var(--surface);border:1px solid #ccd7dc;border-radius:16px;box-shadow:var(--shadow);overflow:hidden
}
body.page-analytics .panel header{
  min-height:74px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;
  border-bottom:1px solid #d8e1e4;background:#f4f7f8
}
body.page-analytics .panel header h2{margin:0;font-size:17px;line-height:1.25;font-weight:600}
body.page-analytics .panel header p{margin:4px 0 0;color:var(--ink-3);font-size:14px}
body.page-analytics .summary-list{display:grid}
body.page-analytics .summary-list button{
  min-height:58px;width:100%;padding:0 18px;border:0;border-bottom:1px solid #e2e8eb;background:#fff;
  display:grid;grid-template-columns:minmax(0,1fr) auto 20px;align-items:center;gap:12px;
  color:var(--ink);text-align:left
}
body.page-analytics .summary-list button:last-child{border-bottom:0}
body.page-analytics .summary-list button:hover{background:#f8fbfb}
body.page-analytics .summary-list span{font-size:14px}
body.page-analytics .summary-list strong{font-size:18px;font-weight:600}
body.page-analytics .summary-list svg{width:18px;height:18px;color:#87939a}
body.page-analytics .empty-copy{
  min-height:58px;margin:0;padding:17px 18px;display:flex;align-items:center;
  color:var(--ink-3);font-size:14px
}
body.page-analytics .unavailable{
  min-height:174px;padding:26px 18px;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;background:#fff
}
body.page-analytics .unavailable svg{width:30px;height:30px;color:#7b8991;margin-bottom:12px}
body.page-analytics .unavailable strong{font-size:15px;font-weight:600}
body.page-analytics .unavailable span{margin-top:5px;color:var(--ink-3);font-size:14px}
body.page-analytics .deadline-empty{min-height:58px}
body.page-analytics .deadline-analytics{
  display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px 18px 18px;background:#fff
}
body.page-analytics .deadline-analytics button{
  min-height:112px;padding:14px;border:1px solid #d5dfe3;border-radius:12px;background:#f8fafb;
  display:grid;align-content:space-between;justify-items:start;text-align:left;color:var(--ink)
}
body.page-analytics .deadline-analytics button:hover{background:#f3f8f9;border-color:#c9d9de}
body.page-analytics .deadline-analytics small{
  font-size:14px;font-weight:600;color:var(--ink-2);text-transform:uppercase;letter-spacing:.03em
}
body.page-analytics .deadline-analytics strong{font-size:26px;line-height:1;font-weight:600}
body.page-analytics .deadline-analytics span{font-size:14px;color:var(--ink-2)}
body.page-analytics .coverage-empty{
  min-height:62px;margin:0;padding:18px;display:flex;align-items:center;background:#fff;
  color:var(--ink-3);font-size:14px
}
/* purchases.html: unique content only */
body.page-purchases{}
body.page-purchases .content{width:min(1560px,100%);margin:0 auto;padding:34px 34px 50px}
body.page-purchases .page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px}
body.page-purchases .eyebrow{
  display:inline-flex;align-items:center;gap:7px;color:var(--cyan-dark);font-size:14px;font-weight:600;
  letter-spacing:.06em;text-transform:uppercase
}
body.page-purchases .eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--cyan);box-shadow:0 0 0 4px var(--cyan-soft)}
body.page-purchases h1{margin:8px 0 7px;font-size:36px;line-height:1.08;letter-spacing:-.03em;font-weight:600}
body.page-purchases .page-head p{margin:0;color:var(--ink-2);font-size:14px}
body.page-purchases .primary{
  min-height:48px;padding:0 18px;display:inline-flex;align-items:center;gap:9px;border:1px solid #11191d;
  border-radius:12px;background:#11191d;color:#fff;font-size:15px;font-weight:500;box-shadow:0 7px 18px rgba(17,25,29,.12)
}
body.page-purchases .primary svg{width:18px;height:18px}
body.page-purchases .registry{
  overflow:hidden;background:#fff;border:1px solid #ccd7dc;border-radius:16px;box-shadow:var(--shadow)
}
body.page-purchases .tabs{
  display:flex;gap:8px;padding:14px 16px 12px;border-bottom:1px solid #d6e0e3;background:#f6f9fa
}
body.page-purchases .tab{
  min-height:40px;padding:0 14px;border:1px solid #c9d5da;border-radius:12px;background:#fff;
  color:var(--ink-2);font-size:14px;font-weight:500
}
body.page-purchases .tab.active{
  background:#f0f8fa;color:var(--ink);border-color:#bcd7de;box-shadow:inset 3px 0 0 #79bdca
}
body.page-purchases .bulkbar{
  margin:16px 16px 0;min-height:58px;padding:10px 14px;display:flex;align-items:center;gap:14px;
  border:1px solid #d6e0e3;border-radius:14px;background:#f7fafb
}
body.page-purchases .bulkbar label{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:500}
body.page-purchases .bulkbar input[type=checkbox], body.page-purchases .rowcheck{width:16px;height:16px;accent-color:#5b707a}
body.page-purchases .bulkbar .selected{margin-left:auto;font-size:14px;font-weight:600}
body.page-purchases .button-secondary{
  min-height:40px;padding:0 14px;border:1px solid #cad6db;border-radius:12px;background:#fff;
  color:var(--ink);font-size:14px;font-weight:500
}
body.page-purchases .button-secondary:disabled{color:#97a2a8;background:#f5f7f8;cursor:default}
body.page-purchases .registry-tools{
  display:grid;grid-template-columns:minmax(390px,.9fr) minmax(650px,1.35fr);gap:28px;
  padding:22px 16px 18px;border-bottom:1px solid #d8e1e4;background:#fff
}
body.page-purchases .personalization{min-width:0;align-self:start;padding-top:47px}
body.page-purchases .personal-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
body.page-purchases .count{display:flex;align-items:baseline;gap:7px}
body.page-purchases .count strong{font-size:22px;line-height:1;font-weight:600}
body.page-purchases .count span{font-size:14px;color:var(--ink-3)}
body.page-purchases .columns{
  min-height:40px;padding:0 16px;border:1px solid #cad6db;border-radius:12px;background:#f7f9fa;
  color:var(--ink);font-size:14px;font-weight:600
}
body.page-purchases .views{display:grid;grid-template-columns:minmax(150px,1fr) minmax(170px,1.15fr);gap:10px}
body.page-purchases .views select, body.page-purchases .views input, body.page-purchases .filter select, body.page-purchases .filter input{
  width:100%;height:42px;padding:0 12px;border:1px solid #ccd8dd;border-radius:12px;background:#fbfcfc;
  color:var(--ink);font-size:14px
}
body.page-purchases .view-actions{grid-column:1/-1;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
body.page-purchases .save{
  min-height:40px;padding:0 14px;border:1px solid #d2dbe0;border-radius:12px;background:#f5f7f8;
  color:#909ba1;font-size:14px;font-weight:600
}
body.page-purchases .standard{
  min-height:40px;padding:0 14px;border:1px solid #cbd6db;border-radius:12px;background:#fff;
  color:var(--ink);font-size:14px;font-weight:600
}
body.page-purchases .filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body.page-purchases .filter{display:grid;gap:6px}
body.page-purchases .filter label{font-size:14px;font-weight:500;color:var(--ink-2)}
body.page-purchases .date-to{grid-column:3}
body.page-purchases .table-wrap{overflow-x:auto;background:#fff}
body.page-purchases .table{
  width:100%;min-width:1320px;border-collapse:separate;border-spacing:0
}
body.page-purchases .table th{
  padding:14px 16px;text-align:left;border-bottom:1px solid #d8e1e4;background:#f4f7f8;
  color:var(--ink-2);font-size:14px;font-weight:600;white-space:nowrap
}
body.page-purchases .table td{
  padding:16px;border-bottom:1px solid #e2e8eb;color:var(--ink);font-size:14px;vertical-align:middle
}
body.page-purchases .table tbody tr:hover td{background:#f8fbfb}
body.page-purchases .table th:first-child, body.page-purchases .table td:first-child{width:44px;text-align:center}
body.page-purchases .identifier{font-weight:600;color:#33424a;max-width:220px}
body.page-purchases .title{font-weight:600}
body.page-purchases .muted{color:var(--ink-3)}
body.page-purchases .status{
  display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;
  font-size:14px;font-weight:600;white-space:nowrap
}
body.page-purchases .status.success{background:var(--success-bg);color:var(--success)}
body.page-purchases .status.warning{background:var(--warning-bg);color:var(--warning)}
body.page-purchases .pagination{
  padding:14px 16px 16px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff
}
body.page-purchases .pagination>span{font-size:14px;color:var(--ink-3)}
body.page-purchases .pagination div{display:flex;gap:10px}
body.page-purchases .history{
  margin-top:16px;border:1px solid #ccd7dc;border-radius:16px;background:#fff;box-shadow:var(--shadow);overflow:hidden
}
body.page-purchases .history>summary{
  list-style:none;min-height:64px;padding:13px 18px;display:flex;align-items:center;justify-content:space-between;
  cursor:pointer;background:#fff
}
body.page-purchases .history>summary::-webkit-details-marker{display:none}
body.page-purchases .history>summary>span{display:grid;gap:3px}
body.page-purchases .history>summary strong{font-size:15px;font-weight:600}
body.page-purchases .history>summary small{font-size:14px;color:var(--ink-3)}
body.page-purchases .history>summary em{
  min-width:28px;height:28px;padding:0 9px;display:grid;place-items:center;border:1px solid #d6dfe3;
  border-radius:10px;background:#f6f8f9;color:var(--ink-2);font-size:14px;font-style:normal;font-weight:600
}
body.page-purchases .history[open]>summary{border-bottom:1px solid #d9e2e6}
body.page-purchases .batch-layout{display:grid;grid-template-columns:310px minmax(0,1fr);min-height:360px}
body.page-purchases .batch-list{padding:10px;border-right:1px solid #d9e2e6;background:#f6f9fa}
body.page-purchases .batch-item{
  width:100%;min-height:92px;padding:12px;border:0;border-radius:12px;background:transparent;color:var(--ink);
  display:grid;grid-template-columns:42px minmax(0,1fr) 28px;align-items:center;gap:11px;text-align:left
}
body.page-purchases .batch-item+.batch-item{margin-top:6px}
body.page-purchases .batch-item:hover{background:#eef4f6}
body.page-purchases .batch-item.active{background:#e8f5f8}
body.page-purchases .batch-icon{
  width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--violet-bg);color:var(--violet)
}
body.page-purchases .batch-icon svg{width:18px;height:18px}
body.page-purchases .batch-copy{display:grid;gap:3px;min-width:0}
body.page-purchases .batch-copy strong{font-size:14px;font-weight:600}
body.page-purchases .batch-copy small, body.page-purchases .batch-copy em{font-size:14px;color:var(--ink-3);font-style:normal}
body.page-purchases .batch-count{
  width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#eef2f4;color:var(--ink-2);
  font-size:14px;font-weight:600
}
body.page-purchases .processings-main{min-width:0;background:#fff}
body.page-purchases .processings-head{
  min-height:94px;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;
  border-bottom:1px solid #d9e2e6;background:#fff
}
body.page-purchases .selected-batch h2{margin:0 0 4px;font-size:22px;line-height:1.2}
body.page-purchases .selected-batch p{margin:0;font-size:14px;color:var(--ink-3)}
body.page-purchases .filter-tabs{display:flex;align-items:center;gap:6px;padding:5px;border:1px solid #d8e1e4;border-radius:12px;background:#f5f8f9}
body.page-purchases .filter-tab{
  min-height:34px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:var(--ink-2);
  display:flex;align-items:center;gap:7px;font-size:14px;font-weight:500
}
body.page-purchases .filter-tab strong{
  min-width:22px;height:22px;padding:0 6px;border-radius:999px;display:grid;place-items:center;
  background:#e8edef;color:var(--ink-2);font-size:14px
}
body.page-purchases .filter-tab.active{background:#e8f6fa;color:var(--cyan-dark)}
body.page-purchases .filter-tab.active strong{background:#cfeef5;color:#096c82}
body.page-purchases .jobs{
  width:100%;display:grid
}
body.page-purchases .jobs-row{
  display:grid;grid-template-columns:minmax(360px,1.7fr) minmax(120px,.55fr) minmax(150px,.65fr) minmax(190px,.75fr) 24px;
  gap:14px;align-items:center;min-width:980px
}
body.page-purchases .jobs-head{
  min-height:50px;padding:0 18px;border-bottom:1px solid #dbe3e6;background:#f4f7f8;
  color:var(--ink-2);font-size:14px;font-weight:600
}
body.page-purchases .jobs-data{
  width:100%;min-height:76px;padding:12px 18px;border:0;border-bottom:1px solid #e2e8eb;background:#fff;
  color:var(--ink);text-align:left
}
body.page-purchases .jobs-data:hover{background:#f8fbfb}
body.page-purchases .job-title-cell{display:flex;align-items:center;gap:11px;min-width:0}
body.page-purchases .job-source-icon{
  width:38px;height:38px;border-radius:11px;display:grid;place-items:center;flex:0 0 auto;background:var(--violet-bg);color:var(--violet)
}
body.page-purchases .job-source-icon svg{width:18px;height:18px}
body.page-purchases .job-title-copy{display:grid;gap:3px;min-width:0}
body.page-purchases .job-title-copy strong{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.page-purchases .job-title-copy small{font-size:14px;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.page-purchases .job-date{font-size:14px;color:var(--ink-3)}
body.page-purchases .job-result{display:flex;align-items:center;gap:7px;color:var(--success);font-size:14px;font-weight:500}
body.page-purchases .job-result svg{width:17px;height:17px}
body.page-purchases .row-more{color:#7c898f}
body.page-purchases .row-more svg{width:18px;height:18px}
body.page-purchases .table th .sort-btn{
  width:100%;
  min-height:44px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--ink-2);
  font:inherit;
  font-size:14px;
  font-weight:600;
  text-align:left;
  cursor:pointer;
}
body.page-purchases .table th .sort-btn:hover{ color:var(--ink); }
body.page-purchases .table .open-head, body.page-purchases .table .open-cell{
  width:38px;
  min-width:38px;
  padding-left:6px;
  padding-right:10px;
  text-align:right;
}
body.page-purchases .table .open-cell svg{
  width:18px;
  height:18px;
  margin-left:auto;
  color:#87939a;
}
body.page-purchases .table tbody tr:hover .open-cell svg{ color:var(--ink-2); }
body.page-purchases .filter-tab strong{
  min-width:24px;
  height:24px;
  font-size:14px;
}
body.page-purchases .batch-layout{
  grid-template-columns:270px minmax(0,1fr);
}
body.page-purchases .processings-main{
  min-width:0;
  overflow:hidden;
}
body.page-purchases .processings-head{
  min-width:0;
}
body.page-purchases .filter-tabs{
  flex-wrap:wrap;
  justify-content:flex-end;
}
body.page-purchases .jobs{
  min-width:0;
  overflow-x:auto;
}
body.page-purchases .jobs-row{
  grid-template-columns:minmax(270px,1.55fr) 112px 142px minmax(155px,.8fr) 22px;
  gap:10px;
  min-width:760px;
}
body.page-purchases .job-result{
  white-space:nowrap;
}
/* purchase-detail.html: unique content only */
body.page-purchase-detail{}
body.page-purchase-detail .content{width:min(1500px,100%);margin:0 auto;padding:30px 34px 54px}
body.page-purchase-detail .purchase-heading{display:grid;grid-template-columns:auto minmax(0,1fr);gap:18px;align-items:start;margin-bottom:18px}
body.page-purchase-detail .back-btn{
  min-height:42px;padding:0 14px;border:1px solid #cbd6db;border-radius:12px;background:#fff;
  color:var(--ink);font-size:14px;font-weight:500
}
body.page-purchase-detail .eyebrow{
  display:inline-flex;align-items:center;gap:7px;color:var(--cyan-dark);font-size:14px;font-weight:600;
  letter-spacing:.06em;text-transform:uppercase
}
body.page-purchase-detail .eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--cyan);box-shadow:0 0 0 4px var(--cyan-soft)}
body.page-purchase-detail h1{margin:7px 0 4px;font-size:34px;line-height:1.12;letter-spacing:-.03em;font-weight:600}
body.page-purchase-detail .purchase-heading p{margin:0;color:var(--ink-3);font-size:14px}
body.page-purchase-detail .panel{background:#fff;border:1px solid #ccd7dc;border-radius:16px;box-shadow:var(--shadow)}
body.page-purchase-detail .lifecycle{
  min-height:62px;padding:10px 14px 10px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px;
  margin-bottom:16px;background:#fff
}
body.page-purchase-detail .lifecycle strong{font-size:14px;font-weight:600}
body.page-purchase-detail .actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
body.page-purchase-detail .btn{
  min-height:40px;padding:0 14px;border:1px solid #cad6db;border-radius:12px;background:#fff;
  color:var(--ink);font-size:14px;font-weight:500;display:inline-flex;align-items:center;gap:8px
}
body.page-purchase-detail .btn.primary{background:#11191d;border-color:#11191d;color:#fff}
body.page-purchase-detail .btn:disabled{color:#96a1a7;background:#f5f7f8;cursor:default}
body.page-purchase-detail .btn svg{width:17px;height:17px}
body.page-purchase-detail .overview-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,.75fr);gap:16px;margin-bottom:16px}
body.page-purchase-detail .section-head{
  min-height:68px;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:16px;
  border-bottom:1px solid #d9e2e6;background:#f4f7f8;border-radius:16px 16px 0 0
}
body.page-purchase-detail .section-head h2, body.page-purchase-detail .section-head h3{margin:0;font-size:17px;line-height:1.25;font-weight:600}
body.page-purchase-detail .section-head p{margin:4px 0 0;color:var(--ink-3);font-size:14px}
body.page-purchase-detail .facts{display:grid;grid-template-columns:1fr 1fr;gap:0;padding:6px 18px 12px}
body.page-purchase-detail .fact{padding:13px 0;border-bottom:1px solid #e5eaed}
body.page-purchase-detail .fact:nth-last-child(-n/**/+2){border-bottom:0}
body.page-purchase-detail .fact:nth-child(odd){padding-right:18px}
body.page-purchase-detail .fact:nth-child(even){padding-left:18px;border-left:1px solid #e5eaed}
body.page-purchase-detail .fact span, body.page-purchase-detail .date-card span, body.page-purchase-detail .process-cell span{display:block;color:var(--ink-3);font-size:14px}
body.page-purchase-detail .fact strong, body.page-purchase-detail .date-card strong, body.page-purchase-detail .process-cell strong{display:block;margin-top:4px;font-size:14px;font-weight:600;color:var(--ink)}
body.page-purchase-detail .critical{padding:19px 20px;background:#f8fbfc;border-color:#c9dce2}
body.page-purchase-detail .critical .eyebrow{font-size:14px}
body.page-purchase-detail .critical h2{margin:18px 0 5px;font-size:22px;line-height:1.2}
body.page-purchase-detail .critical p{margin:0;color:var(--ink-3);font-size:14px}
body.page-purchase-detail .dates-panel{margin-bottom:16px}
body.page-purchase-detail .date-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:16px 18px 18px}
body.page-purchase-detail .date-card{
  min-height:92px;padding:13px 14px;border:1px solid #dbe3e7;border-radius:12px;background:#f8fafb
}
body.page-purchase-detail .date-card span{font-weight:500}
body.page-purchase-detail .date-card strong{margin-top:12px;color:#647179}
body.page-purchase-detail .work-comment-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(360px,.85fr);gap:16px;margin-bottom:16px}
body.page-purchase-detail .work-body{padding:16px 18px 18px}
body.page-purchase-detail .work-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
body.page-purchase-detail .field{display:grid;gap:6px}
body.page-purchase-detail .field span, body.page-purchase-detail .group>span{font-size:14px;font-weight:500;color:var(--ink-2)}
body.page-purchase-detail .field select{
  height:42px;width:100%;padding:0 12px;border:1px solid #ccd8dd;border-radius:12px;
  background:#fbfcfc;color:var(--ink);font-size:14px
}
body.page-purchase-detail .group{display:grid;gap:6px}
body.page-purchase-detail .group small{font-size:14px;color:var(--ink-3)}
body.page-purchase-detail .comments-body{padding:16px 18px 18px}
body.page-purchase-detail .comment-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}
body.page-purchase-detail .comment-form textarea{
  min-height:96px;width:100%;padding:12px;border:1px solid #ccd8dd;border-radius:12px;background:#fbfcfc;
  color:var(--ink);font-size:14px;resize:vertical
}
body.page-purchase-detail .muted-copy{margin:13px 0 0;color:var(--ink-3);font-size:14px}
body.page-purchase-detail .processing{margin-bottom:16px}
body.page-purchase-detail .processing-body{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:14px 18px 18px}
body.page-purchase-detail .process-cell{padding:13px 14px;border:1px solid #dbe3e7;border-radius:12px;background:#f8fafb}
body.page-purchase-detail .process-cell small{display:block;margin-top:3px;color:var(--ink-3);font-size:14px}
body.page-purchase-detail .status{
  display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;font-size:14px;font-weight:600
}
body.page-purchase-detail .status.success{background:var(--success-bg);color:var(--success)}
body.page-purchase-detail .documents{margin-bottom:16px;overflow:hidden}
body.page-purchase-detail .document-note{
  margin:16px 18px 0;padding:12px 14px;display:flex;align-items:flex-start;gap:10px;border:1px solid #dedfdc;
  border-radius:12px;background:#fbfaf6
}
body.page-purchase-detail .document-note svg{width:20px;height:20px;color:#8b7547;flex:0 0 auto;margin-top:1px}
body.page-purchase-detail .document-note span{display:grid;gap:2px}
body.page-purchase-detail .document-note strong, body.page-purchase-detail .document-note small{font-size:14px}
body.page-purchase-detail .document-note small{color:var(--ink-3)}
body.page-purchase-detail .document-groups{padding:16px 18px 18px;display:grid;gap:18px}
body.page-purchase-detail .document-group h3{margin:0 0 9px;font-size:15px}
body.page-purchase-detail .document-list{display:grid;gap:7px}
body.page-purchase-detail .document-item{
  min-height:58px;padding:10px 12px;display:grid;grid-template-columns:30px minmax(0,1fr) minmax(220px,.65fr);
  gap:10px;align-items:center;border:1px solid #dce4e7;border-radius:11px;background:#fbfcfc
}
body.page-purchase-detail .document-item>svg{width:20px;height:20px;color:#6f7d84}
body.page-purchase-detail .document-copy, body.page-purchase-detail .document-meta{display:grid;gap:2px;min-width:0}
body.page-purchase-detail .document-copy strong{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.page-purchase-detail .document-copy small, body.page-purchase-detail .document-meta, body.page-purchase-detail .document-meta small{font-size:14px;color:var(--ink-3)}
body.page-purchase-detail .document-meta{text-align:right;overflow:hidden}
body.page-purchase-detail .document-meta small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.page-purchase-detail .coverage{margin-bottom:16px;overflow:hidden}
body.page-purchase-detail .coverage-head .actions{justify-content:flex-end}
body.page-purchase-detail .coverage-note{padding:15px 18px;border-top:1px solid #e2e8eb;color:var(--ink-3);font-size:14px;background:#fff}
body.page-purchase-detail .coverage-note+.coverage-note{background:#f8fafb}
body.page-purchase-detail .results{margin-bottom:16px;overflow:hidden}
body.page-purchase-detail .version-tabs{display:flex;gap:8px;padding:14px 18px 0}
body.page-purchase-detail .version-tab{
  min-width:106px;min-height:54px;padding:8px 12px;border:1px solid #bcd7de;border-radius:11px;
  background:#f0f8fa;color:var(--ink);display:grid;gap:1px;text-align:left
}
body.page-purchase-detail .version-tab strong, body.page-purchase-detail .version-tab small{font-size:14px}
body.page-purchase-detail .version-tab small{color:var(--cyan-dark)}
body.page-purchase-detail .results-body{padding:15px 18px 18px}
body.page-purchase-detail .results-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}
body.page-purchase-detail .results-meta span{display:grid;gap:2px}
body.page-purchase-detail .results-meta strong, body.page-purchase-detail .results-meta small{font-size:14px}
body.page-purchase-detail .results-meta small{color:var(--ink-3)}
body.page-purchase-detail .count-chip{
  min-height:28px;padding:0 10px;display:inline-flex;align-items:center;border-radius:999px;
  background:#eef3f5;color:var(--ink-2);font-size:14px;font-weight:600
}
body.page-purchase-detail .artifact-list{display:grid;gap:8px}
body.page-purchase-detail .artifact{
  min-height:58px;padding:10px 12px;display:grid;grid-template-columns:34px minmax(0,1fr) 36px;
  align-items:center;gap:10px;border:1px solid #dce4e7;border-radius:11px;background:#fbfcfc
}
body.page-purchase-detail .artifact-icon{
  width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:var(--success-bg);color:var(--success)
}
body.page-purchase-detail .artifact-icon svg, body.page-purchase-detail .download svg{width:18px;height:18px}
body.page-purchase-detail .artifact-copy{display:grid;gap:1px}
body.page-purchase-detail .artifact-copy strong, body.page-purchase-detail .artifact-copy small, body.page-purchase-detail .artifact-copy em{font-size:14px}
body.page-purchase-detail .artifact-copy small{color:var(--success)}
body.page-purchase-detail .artifact-copy em{color:var(--ink-3);font-style:normal}
body.page-purchase-detail .download{
  width:36px;height:36px;border:0;border-radius:10px;background:#eef8fb;color:var(--cyan-dark);display:grid;place-items:center
}
body.page-purchase-detail .audit-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
body.page-purchase-detail .history, body.page-purchase-detail .attempts{overflow:hidden}
body.page-purchase-detail .history-list{padding:14px 18px 18px;display:grid;gap:12px}
body.page-purchase-detail .history-item{display:grid;grid-template-columns:14px minmax(0,1fr);gap:10px}
body.page-purchase-detail .history-marker{width:8px;height:8px;border-radius:50%;margin-top:6px;background:#fff;border:2px solid var(--cyan-dark)}
body.page-purchase-detail .history-copy{display:grid;gap:2px}
body.page-purchase-detail .history-copy strong, body.page-purchase-detail .history-copy small{font-size:14px}
body.page-purchase-detail .history-copy small{color:var(--ink-3)}
body.page-purchase-detail .attempt-list{padding:14px 18px 18px}
body.page-purchase-detail .attempt{
  min-height:72px;padding:12px 14px;display:grid;grid-template-columns:minmax(0,1fr) auto auto;
  gap:12px;align-items:center;border:1px solid #dbe3e7;border-radius:12px;background:#f8fafb
}
body.page-purchase-detail .attempt-main{display:grid;gap:3px}
body.page-purchase-detail .attempt-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.page-purchase-detail .attempt-title strong, body.page-purchase-detail .attempt-main small, body.page-purchase-detail .attempt-title em{font-size:14px}
body.page-purchase-detail .attempt-main small{color:var(--ink-3)}
body.page-purchase-detail .attempt-title em{font-style:normal;color:var(--cyan-dark);font-weight:500}
body.page-purchase-detail .btn, body.page-purchase-detail .download{
  text-decoration:none;
}
body.page-purchase-detail .runtime-checksum{
  display:block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.page-purchase-detail .document-copy small{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body.page-purchase-detail .document-item{
  grid-template-columns:30px minmax(0,1fr);
}
body.page-purchase-detail .document-meta, body.page-purchase-detail .runtime-checksum{
  display:none !important;
}
body.page-purchase-detail .document-copy{
  min-width:0;
}
body.page-purchase-detail .document-copy strong{
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
}
body.page-purchase-detail .document-copy small{
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
}
/* suppliers.html: unique content only */
body.page-suppliers{}
body.page-suppliers .content{width:min(1440px,100%);margin:0 auto;padding:34px 34px 50px}
body.page-suppliers .page-head{margin-bottom:24px}
body.page-suppliers .eyebrow{
  display:inline-flex;align-items:center;gap:7px;color:var(--cyan-dark);font-size:14px;font-weight:600;
  letter-spacing:.06em;text-transform:uppercase
}
body.page-suppliers .eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--cyan);box-shadow:0 0 0 4px var(--cyan-soft)}
body.page-suppliers h1{margin:8px 0 7px;font-size:36px;line-height:1.08;letter-spacing:-.03em;font-weight:600}
body.page-suppliers .page-head p{margin:0;color:var(--ink-2);font-size:14px}
body.page-suppliers .supplier-empty{
  min-height:330px;padding:42px 28px;display:flex;align-items:center;justify-content:center;
  background:#fff;border:1px solid #ccd7dc;border-radius:16px;box-shadow:var(--shadow)
}
body.page-suppliers .empty-state{
  width:min(620px,100%);display:flex;flex-direction:column;align-items:center;text-align:center
}
body.page-suppliers .empty-state-icon{
  width:64px;height:64px;margin-bottom:20px;border-radius:16px;display:grid;place-items:center;
  background:#edf8fb;color:var(--cyan-dark);border:1px solid #d5eaf0
}
body.page-suppliers .empty-state-icon svg{width:30px;height:30px}
body.page-suppliers .empty-state h3{margin:0;font-size:23px;line-height:1.25;font-weight:600;letter-spacing:-.015em}
body.page-suppliers .empty-state p{
  max-width:610px;margin:12px 0 22px;color:var(--ink-2);font-size:16px;line-height:1.65
}
body.page-suppliers .primary{
  min-height:48px;padding:0 18px;display:inline-flex;align-items:center;gap:9px;border:1px solid #11191d;
  border-radius:12px;background:#11191d;color:#fff;font-size:15px;font-weight:500;box-shadow:0 7px 18px rgba(17,25,29,.12)
}
body.page-suppliers .primary svg{width:18px;height:18px}

/* Canonical responsive shell. Desktop rules above remain Home-authoritative. */
.mobile-nav{display:none}
@media (max-width:768px) and (orientation:portrait){
  .app{display:block}
  .sidebar{display:none}
  .main{margin-left:0;width:100%}
  .topbar{height:64px;padding:0 16px;gap:10px}
  .search{width:100%;min-width:0}
  .top-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
  .icon-btn{display:grid;width:42px;height:42px;min-width:42px;border-radius:11px;background:#fff}
  .account{display:flex;min-width:46px;width:46px;padding:4px;gap:0}
  .account-copy,.chev{display:none}
  .avatar{display:grid;width:38px;height:38px;min-width:38px}
  .mobile-nav{position:fixed;left:0;right:0;bottom:0;z-index:50;height:68px;padding:7px 8px calc(7px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(4,1fr);gap:4px;background:rgba(15,23,27,.98);border-top:1px solid rgba(255,255,255,.08)}
  .mobile-nav a{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#aab8bf;text-decoration:none;font-size:11px;font-weight:500;border-radius:9px}
  .mobile-nav a.active{color:#fff;background:rgba(49,210,255,.085)}
  .mobile-nav .nav-icon{color:#31d2ff}
  .mobile-nav a span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
  body{padding-bottom:68px}
}
@media (max-width:1024px) and (orientation:landscape){
  .app{display:grid;grid-template-columns:86px minmax(0,1fr)}
  .sidebar{display:flex;width:86px;padding:24px 12px}
  .main{grid-column:2;margin-left:0;width:auto}
  .nav a{justify-content:center;padding-inline:0;font-size:15px;text-decoration:none}
  .nav a span{display:none}
  .sidebar-foot{display:none}
  .topbar{height:64px;padding:0 16px;gap:10px}
  .top-actions{display:flex}
  .icon-btn{display:grid}
  .account{display:flex;min-width:46px;width:46px;padding:4px;gap:0}
  .account-copy,.chev{display:none}
  .mobile-nav{display:none}
}
/* R11 canonical page heading: Home is the sole geometry/typography authority. */
body.page-home .content,
body.page-purchases .content,
body.page-analytics .content,
body.page-suppliers .content {
  width: min(1460px, 100%);
  margin: 0 auto;
  padding: 34px 34px 60px;
}
body.page-home .page-head,
body.page-purchases .page-head,
body.page-analytics .page-head,
body.page-suppliers .page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
body.page-home .eyebrow,
body.page-purchases .eyebrow,
body.page-analytics .eyebrow,
body.page-suppliers .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--cyan-dark);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
body.page-home h1,
body.page-purchases h1,
body.page-analytics h1,
body.page-suppliers h1 {
  margin: 7px 0 6px;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -.03em;
  font-weight: 600;
}
body.page-home .page-head p,
body.page-purchases .page-head p,
body.page-analytics .page-head p,
body.page-suppliers .page-head p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}
body.page-home .primary,
body.page-purchases .primary,
body.page-suppliers .primary {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #11191d;
  border-radius: 11px;
  background: #11191d;
  color: #fff;
  font-size: inherit;
  font-weight: 500;
  box-shadow: 0 7px 18px rgba(17,25,29,.14);
}
@media (max-width:760px) and (orientation:portrait) {
  body.page-home .content,
  body.page-purchases .content,
  body.page-analytics .content,
  body.page-suppliers .content { padding:24px 16px 44px; }
  body.page-home .page-head,
  body.page-purchases .page-head,
  body.page-analytics .page-head,
  body.page-suppliers .page-head { align-items:stretch; flex-direction:column; }
  body.page-home h1,
  body.page-purchases h1,
  body.page-analytics h1,
  body.page-suppliers h1 { font-size:32px; }
  body.page-home .primary,
  body.page-purchases .primary { width:100%; justify-content:center; }
}
