@font-face {
  font-family: Inter;
  src: url("assets/fonts/InterVariable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --z-content: 0;
  --z-sticky: 10;
  --z-shell: 100;
  --z-menu: 1000;
  --z-overlay-backdrop: 2000;
  --z-overlay-panel: 2001;
  --z-toast: 3000;
  --navy: #0F2A4A;
  --teal: #0B9796;
  --teal-dark: #12776F;
  --teal-tint: rgba(11, 151, 150, 0.10);
  --slate: #4A5B73;
  --page-bg: #F6F9FC;
  --card-bg: #FFFFFF;
  --border: #DCE5EE;
  --table-head-bg: #F1F6FA;
  --success-bg: #E3F6EC;
  --success-text: #1B6B3A;
  --radius-card: 12px;
  --radius-control: 8px;
  --shadow-card: 0 1px 2px rgba(15,42,74,0.05), 0 4px 12px rgba(15,42,74,0.04);
  --font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Compatibility aliases for existing page-specific styles. */
  --scoutly-ink: var(--navy);
  --scoutly-muted: var(--slate);
  --scoutly-line: var(--border);
  --scoutly-paper: var(--card-bg);
  --scoutly-bg: var(--page-bg);
  --scoutly-navy: var(--navy);
  --scoutly-blue: var(--teal-dark);
  --scoutly-green: var(--success-text);
  --scoutly-yellow: #9A5B00;
  --scoutly-shadow: var(--shadow-card);
}

/* Compact segmented navigation shared by the extension popup. */
.sc-popup-tablist { display:flex; align-items:stretch; gap:2px; min-width:0; padding:3px; border-radius:10px; background:#EEF3F8; }
.sc-popup-tab { flex:1 1 0; min-width:0; display:flex; align-items:center; justify-content:center; padding:0 3px; border:0; border-radius:8px; background:transparent; color:var(--slate); font:600 11px/1 var(--font); text-align:center; white-space:nowrap; cursor:pointer; transition:background-color 140ms ease,color 140ms ease,box-shadow 140ms ease; }
.sc-popup-tab:hover:not([aria-selected="true"]) { color:var(--navy); }
.sc-popup-tab[aria-selected="true"] { background:#fff; color:var(--teal-dark); font-weight:700; box-shadow:0 1px 3px rgba(15,42,74,.12); }

.scoutly-currency-note { display:grid; grid-template-columns:20px minmax(0,1fr); align-items:start; column-gap:9px; row-gap:3px; margin:0; padding:10px 12px; border:1px solid #F3C9C9; border-radius:10px; background:#FDECEC; }
.scoutly-currency-note[hidden] { display:none; }
.scoutly-currency-note__icon { grid-row:1 / span 2; color:#A12A2A; line-height:0; }
.scoutly-currency-note__title { color:#A12A2A; font-size:12px; font-weight:700; line-height:1.35; }
.scoutly-currency-note__body { color:#0F2A4A; font-size:12px; font-weight:400; line-height:1.4; }
.sc-popup-tab:focus-visible { position:relative; z-index:1; outline:2px solid var(--teal-dark); outline-offset:1px; }
@media (prefers-reduced-motion:reduce) { .sc-popup-tab { transition:none; } }
.sc-icon-button { display:inline-grid; flex:0 0 22px; width:22px; height:22px; place-items:center; padding:0; border:1px solid transparent; border-radius:6px; background:transparent; color:var(--slate); cursor:pointer; }
.sc-icon-button:hover:not(:disabled), .sc-icon-button:focus-visible { background:var(--teal-tint); color:var(--teal-dark); }
.sc-icon-button:focus-visible { outline:2px solid var(--teal-dark); outline-offset:1px; }
.sc-icon-button:active:not(:disabled) { transform:scale(.96); }
.sc-icon-button svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.sr-only { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }
@media (prefers-reduced-motion:reduce) { .sc-icon-button { transition:none !important; } }
.popup-page .opp-verdict.tone-moderate { --opp-tone:var(--slate); --opp-tone-bg:#EEF3F8; }
.popup-page .opp-verdict.tone-strong { --opp-tone:var(--teal-dark); --opp-tone-bg:#E9F7F6; }
.popup-page .opp-meter i.is-medium { background:var(--slate); }
.popup-page .opp-meter i.is-high { background:var(--teal-dark); }
.popup-page .opp-flag.severity-warning { border-left-color:var(--slate); background:#F3F6FA; }
.popup-page .opp-flag.severity-warning .opp-flag-icon { color:var(--slate); }
.popup-page .opp-no-risk .opp-icon { color:var(--teal-dark); }

* { box-sizing: border-box; }
body { color: var(--navy); background: var(--page-bg); font-family: var(--font); }
.sc-currency-note { display:block; margin-top:3px; color:var(--slate); font-size:11px; line-height:1.35; }
.sc-currency-notice { margin:0 0 12px; color:var(--navy); }
.sc-loader { display:flex; align-items:center; gap:8px; min-height:24px; color:var(--teal-dark); font-size:12px; line-height:1.35; }
.sc-loader[hidden] { visibility:hidden; }
.sc-loader__spinner { flex:0 0 18px; width:18px; height:18px; border:2px solid var(--teal-tint); border-top-color:var(--teal); border-radius:50%; animation:sc-loader-spin .8s linear infinite; }
@keyframes sc-loader-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sc-loader__spinner { animation:none; border-color:var(--teal); opacity:.75; } }

.sc-card,
.sc-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 16px;
}
.sc-header,
.scoutly-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  margin: 0 0 16px;
  padding: 18px 20px 18px 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, #FFFFFF, #F6F9FC);
  box-shadow: var(--shadow-card);
  color: var(--navy);
}
.sc-header::before,
.scoutly-header::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--teal); }
.sc-header__logo,
.scoutly-header__logo { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 13px; object-fit: cover; }
.sc-header__copy,
.scoutly-header__copy { flex: 1 1 auto; min-width: 0; }
.sc-header__label,
.scoutly-header__label { margin: 0 0 4px; color: var(--teal-dark); font-size: 12px; font-weight: 600; letter-spacing: .12em; line-height: 1.2; }
.sc-header__title,
.scoutly-header__title { margin: 0 0 3px; color: var(--navy); font-size: 28px; font-weight: 700; line-height: 1.16; overflow-wrap: anywhere; }
.sc-header__subtitle,
.scoutly-header__subtitle { margin: 0; color: var(--slate); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.sc-header__extra,
.scoutly-header__extra { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.sc-header__actions,
.scoutly-header__actions { display: flex; flex: 0 1 auto; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; min-width: 0; }

.sc-tag,
.scoutly-header__tag { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--teal-tint); color: var(--teal-dark); font-size: 12px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: default; }
.sc-info-banner { padding: 10px 12px; border: 1px solid rgba(11,151,150,.16); border-radius: var(--radius-control); background: var(--teal-tint); color: var(--navy); font-size: 13px; line-height: 1.45; }
.sc-info { display: inline-flex; align-items: center; gap: 8px; color: var(--slate); font-size: 13px; line-height: 1.4; }
.sc-info-icon { flex: 0 0 18px; width: 18px; height: 18px; color: var(--slate); }

.sc-btn-primary,
.sc-btn-secondary,
.sc-btn-link {
  min-height: 40px;
  border-radius: var(--radius-control);
  font: 600 13px/1.2 var(--font);
  cursor: pointer;
  transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.sc-btn-primary { border: 1px solid var(--teal-dark); background: var(--teal-dark); color: #fff; }
.sc-btn-primary:hover:not(:disabled) { border-color: #0C625C; background: #0C625C; }
.sc-btn-secondary { border: 1px solid var(--teal-dark); background: #fff; color: var(--teal-dark); }
.sc-btn-secondary:hover:not(:disabled) { background: var(--teal-tint); }
.sc-btn-link { min-height: auto; padding: 4px 0; border: 0; background: transparent; color: var(--teal-dark); text-decoration: underline; text-underline-offset: 2px; }
.popup-small-secondary { min-height:30px; padding:4px 10px; font-size:11px; line-height:1.1; }
.dashboard-header-actions { display:flex; align-items:center; gap:8px; margin-left:auto; }
.sc-btn-primary:disabled,
.sc-btn-secondary:disabled,
.sc-btn-link:disabled,
button:disabled { opacity: .48; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
.sc-btn-primary:focus-visible, .sc-btn-secondary:focus-visible, .sc-btn-link:focus-visible {
  outline: 3px solid rgba(18,119,111,.28);
  outline-offset: 2px;
}

.sc-input,
.sc-select { width: 100%; min-width: 0; height: 40px; padding: 0 10px; border: 1px solid var(--border); border-radius: var(--radius-control); background: #fff; color: var(--navy); font: 14px var(--font); }
.sc-input::placeholder, .form-input::placeholder, .field-input::placeholder { color: #64748B; opacity: 1; }
.sc-input:focus,
.sc-select:focus { border-color: var(--teal-dark); outline: none; box-shadow: 0 0 0 3px rgba(18,119,111,.14); }
.sc-label { display: block; margin: 0 0 5px; color: var(--navy); font-size: 13px; font-weight: 600; }
.sc-section-label { margin: 14px 0 8px; color: var(--slate); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }

.sc-table { width: 100%; border-collapse: collapse; background: #fff; color: var(--navy); font-size: 13px; }
.sc-table thead th { padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--table-head-bg); color: var(--slate); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.sc-table tbody td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.sc-table tbody tr:last-child td { border-bottom: 0; }
.sc-stat-card { position: relative; min-width: 0; overflow: hidden; padding: 16px; }
.sc-stat-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--teal); }
.sc-stat-card__label { color: var(--slate); font-size: 11px; font-weight: 600; letter-spacing: .07em; line-height: 1.35; text-transform: uppercase; }
.sc-stat-card__value { margin-top: 10px; color: var(--navy); font-size: 28px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.sc-tabs { display: flex; align-items: stretch; gap: 4px; }
.sc-tabs > button,
.sc-tab { position: relative; flex: 1 1 0; min-width: 0; min-height: 60px; padding: 8px 4px 11px; border: 0; border-radius: 8px 8px 0 0; background: transparent; color: var(--slate); font: 600 12px/1.25 var(--font); text-align: center; white-space: normal; overflow-wrap: anywhere; cursor: pointer; }
.sc-tabs > button.active,
.sc-tab.active { background: var(--teal-tint); color: var(--teal-dark); }
.sc-tabs > button.active::after,
.sc-tab.active::after { position: absolute; right: 4px; bottom: 0; left: 4px; height: 3px; border-radius: 3px 3px 0 0; background: var(--teal); content: ""; }
.sc-success-box { background: var(--success-bg); color: var(--success-text); }

.sc-settings-landing, .sc-settings-section { width:100%; max-width:760px; transition:opacity .15s ease; }
#settingsPage > .sc-header { max-width:760px; }
.sc-settings-view-in { opacity:0; }
.sc-settings-landing { border-top:1px solid #DCE5EE; }
.sc-settings-link { display:flex; align-items:center; gap:12px; min-width:0; padding:14px 10px; border:1px solid transparent; border-bottom-color:#DCE5EE; border-radius:0; color:inherit; text-decoration:none; transition:background-color .15s ease,border-color .15s ease; }
.sc-settings-link:hover, .sc-settings-link:focus-visible { border-color:#DCE5EE; border-radius:10px; background:#fff; }
.sc-settings-link:focus-visible, .sc-settings-back:focus-visible { outline:3px solid rgba(18,119,111,.28); outline-offset:2px; }
.sc-settings-icon { display:grid; flex:0 0 36px; width:36px; height:36px; place-items:center; border-radius:10px; background:var(--teal-tint); color:var(--teal-dark); }
.sc-settings-icon svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.sc-settings-link-copy { display:flex; flex:1; min-width:0; flex-direction:column; gap:3px; }
.sc-settings-link-copy strong { color:var(--navy); font-size:16px; font-weight:600; line-height:1.25; }
.sc-settings-link-copy > span { overflow:hidden; color:var(--slate); font-size:13px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.sc-settings-chevron { flex:0 0 auto; color:var(--slate); font-size:24px; line-height:1; transition:transform .15s ease; }
.sc-settings-link:hover .sc-settings-chevron, .sc-settings-link:focus-visible .sc-settings-chevron { transform:translateX(2px); }
.sc-settings-section[hidden], .sc-settings-landing[hidden] { display:none; }
.sc-settings-back { display:inline-flex; align-items:center; gap:7px; margin:0 0 16px; color:var(--teal-dark); font-size:14px; text-decoration:none; }
.sc-settings-back:hover { text-decoration:underline; }
.sc-settings-section-heading { display:flex; align-items:center; gap:12px; padding:0 0 14px; border-bottom:1px solid #DCE5EE; }
.sc-settings-section-heading > div { min-width:0; }
.sc-settings-section-heading h2 { margin:0; color:var(--navy); font-size:22px; font-weight:700; line-height:1.25; }
.sc-settings-section-heading p { margin:4px 0 0; color:var(--slate); font-size:13px; line-height:1.4; }
.sc-settings-section-heading h2:focus { outline:3px solid rgba(18,119,111,.28); outline-offset:3px; border-radius:2px; }
.sc-setting-row { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:14px 0; border-bottom:1px solid #DCE5EE; }
.sc-setting-copy { min-width:0; }
.sc-setting-label { display:block; color:var(--navy); font-size:14px; font-weight:600; line-height:1.4; }
.sc-setting-help { margin:4px 0 0; color:var(--slate); font-size:13px; line-height:1.4; }
.sc-setting-row > .sc-switch { flex:0 0 42px; }
.sc-switch { position:relative; flex:0 0 42px; width:42px; height:24px; min-height:24px; padding:0; border:1px solid var(--border); border-radius:999px; background:var(--border); cursor:pointer; }
.sc-switch[aria-checked="true"] { border-color:var(--teal-dark); background:var(--teal-dark); }
.sc-switch__thumb { position:absolute; top:2px; left:2px; width:18px; height:18px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(15,42,74,.2); transition:transform .16s ease; }
.sc-switch[aria-checked="true"] .sc-switch__thumb { transform:translateX(18px); }
.sc-switch:focus-visible { outline:3px solid rgba(18,119,111,.28); outline-offset:2px; }
.sc-setting-field { display:flex; flex-direction:column; padding:14px 0; border-bottom:1px solid #DCE5EE; }
.sc-setting-field .sc-setting-label { margin-bottom:4px; }
.sc-setting-field .sc-select { align-self:flex-end; width:220px; max-width:100%; margin:8px 0 0; }
.sc-setting-field textarea.sc-input { width:100%; min-height:120px; margin-top:8px; padding:10px 12px; resize:vertical; }
.sc-setting-status { display:none; width:100%; max-width:760px; min-height:18px; margin:0 0 8px; color:var(--success-text); font-size:12px; opacity:1; text-align:right; transition:opacity .18s ease; }
#settingsPage[data-view="section"] .sc-setting-status:not(:empty) { display:block; }
.sc-setting-status.is-fading { opacity:0; }
.sc-settings-danger-row { margin-top:4px; }
.sc-settings-danger-row > button { border-color:#F3C9C9; background:#FDECEC; color:#A12A2A; }
.sc-settings-section .sc-btn-secondary { flex:0 0 auto; min-height:36px; padding:0 11px; }
.sc-setting-error { min-height:16px; margin:5px 0 0; color:var(--slate); font-size:12px; }
@media (max-width: 700px) {
  .sc-setting-row { align-items:flex-start; flex-wrap:wrap; gap:8px; }
  .sc-setting-row > .sc-switch, .sc-setting-row > button, .sc-setting-row > div:last-child { margin-left:auto; }
  .sc-setting-row > button:not(.sc-switch), .sc-setting-row > div:last-child > button { width:100%; }
  .sc-setting-field .sc-select { align-self:stretch; width:100%; }
}
@media (prefers-reduced-motion: reduce) { .sc-switch__thumb, .sc-setting-status, .sc-settings-link, .sc-settings-chevron, .sc-settings-landing, .sc-settings-section { transition:none; } }

/* Reusable dashboard navigation, top bar, chart controls and insight/tool rows. */
.sc-topbar { background: var(--card-bg); border-bottom: 1px solid var(--border); color: var(--navy); }
.sc-sidebar { background: var(--card-bg); border-right: 1px solid var(--border); }
.sc-nav-item { color: var(--slate); text-decoration: none; }
.sc-nav-item:hover { background: var(--teal-tint); color: var(--teal-dark); }
.sc-nav-item.active,
.sc-nav-item[aria-current="page"] { background: var(--teal-tint); color: var(--teal-dark); font-weight: 600; }
.sc-nav-item:focus-visible { outline: 3px solid rgba(18,119,111,.28); outline-offset: 2px; }
.sc-segmented { display: inline-flex; align-items: center; gap: 4px; }
.sc-segmented > button { min-height: 32px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--card-bg); color: var(--slate); font: 600 12px/1 var(--font); cursor: pointer; }
.sc-segmented > button:hover { border-color: var(--teal-dark); color: var(--teal-dark); }
.sc-segmented > button.selected,
.sc-segmented > button[aria-pressed="true"] { border-color: var(--teal-dark); background: var(--teal-dark); color: #fff; }
.sc-quick-row { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--card-bg); color: var(--navy); text-decoration: none; }
.sc-quick-row:hover { border-color: var(--teal); background: #FBFEFE; }
.sc-quick-row:focus-visible { outline: 3px solid rgba(18,119,111,.28); outline-offset: 2px; }
.sc-quick-row > :first-child { color: var(--teal-dark); }
.sc-quick-row > span { flex: 1; }
.sc-quick-row > b { color: var(--slate); font-size: 18px; font-weight: 400; }
.sc-insight-card { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--card-bg); }
.sc-insight-card > div { min-width: 0; }
.sc-insight-card strong { color: var(--navy); }
.sc-insight-card p { color: var(--slate); overflow-wrap: anywhere; }
.sc-insight-card .insight-icon { flex: 0 0 36px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--teal-tint); color: var(--teal-dark); }

/* Legacy page classes mapped to the shared product palette. */
.header, .app-header, body > header:not(.sc-header):not(.scoutly-header):not(.sc-topbar) { background: var(--card-bg) !important; color: var(--navy) !important; border: 1px solid var(--border) !important; border-radius: var(--radius-card) !important; box-shadow: var(--shadow-card) !important; }
.btn-primary, .action-btn { background: var(--teal-dark); color: #fff; }
.btn-primary:hover:not(:disabled), .action-btn:hover:not(:disabled) { background: #0C625C; }
.btn-secondary, .btn-outline { border-color: var(--teal-dark); background: #fff; color: var(--teal-dark); }
.btn-secondary:hover:not(:disabled), .btn-outline:hover:not(:disabled) { background: var(--teal-tint); }
.data-table th, .sc-table th { background: var(--table-head-bg); color: var(--slate); }
.card, .metric-card, .transparency-banner, .table-container, .chart-box, .history-table, .settings-modal, .detail-modal { border-color: var(--border); box-shadow: var(--shadow-card); }

@media (max-width: 700px) {
  .sc-header, .scoutly-header { align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 16px 14px 16px 18px; }
  .sc-header__logo, .scoutly-header__logo { flex-basis: 42px; width: 42px; height: 42px; border-radius: 11px; }
  .sc-header__title, .scoutly-header__title { font-size: clamp(21px, 6vw, 26px); }
  .sc-header__actions, .scoutly-header__actions { flex-basis: 100%; justify-content: flex-start; margin-left: 54px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Shared internal page shell */
.sc-app-page { box-sizing: border-box; min-width: 0; margin: 0 !important; padding: 0 !important; overflow-x: hidden; background: var(--page-bg); color: var(--navy); }
.sc-app-page *, .sc-app-page *::before, .sc-app-page *::after { box-sizing: border-box; }
.sc-app-topbar { position: fixed; z-index: var(--z-shell); inset: 0 0 auto; height: 80px; display: flex; align-items: center; gap: 20px; padding: 0 24px; border-bottom: 1px solid var(--border); }
.sc-app-brand { flex: 0 1 420px; min-width: 0; display: flex; align-items: center; gap: 13px; color: var(--navy); font-size: 23px; font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
.sc-app-brand img { display: block; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.sc-app-dashboard-slot { display: flex; flex: 1 1 auto; min-width: 0; align-items: center; gap: 12px; }
.sc-app-dashboard-slot:empty { display: none; }
.sc-app-menu { display: none; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--card-bg); color: var(--navy); cursor: pointer; }
.sc-app-menu svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.sc-app-sidebar { position: fixed; z-index: var(--z-shell); inset: 80px auto 0 0; width: 270px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding: 18px 14px 20px; overflow-y: auto; border-right: 1px solid var(--border); background: var(--card-bg); }
.sc-app-sidebar nav { display: grid; align-content: start; gap: 5px; }
.sc-app-sidebar .nav-item { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 13px; padding: 0 13px; border: 0; border-radius: 8px; background: transparent; color: var(--slate); text-align: left; text-decoration: none; font: 500 13px/1.35 var(--font); cursor: pointer; }
.sc-app-sidebar .nav-item svg { flex: 0 0 21px; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sc-app-sidebar .nav-item:hover, .sc-app-sidebar .nav-item.active { background: var(--teal-tint); color: var(--teal-dark); }
.sc-app-sidebar .nav-item:focus-visible, .sc-app-menu:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.sc-app-note { margin: 24px 0 0; padding: 15px; color: var(--navy); font-size: 12px; }
.sc-app-note strong { font-size: 12px; }
.sc-app-note p { margin: 7px 0 10px; color: var(--slate); line-height: 1.55; }
.sc-app-note a { color: var(--teal-dark); font-weight: 600; font-size: 12px; }
.sc-app-main { width: auto; min-width: 0; min-height: calc(100vh - 80px); margin: 80px 0 0 270px; padding: 20px 22px 34px; overflow-x: hidden; }
.sc-app-main.workspace { width: auto; max-width: none; height: calc(100vh - 80px); margin: 80px 0 0 270px; padding: 20px 22px 34px; overflow: auto; }
.sc-app-main > .container { width: 100%; max-width: 1800px; margin: 0 auto; }
.sc-app-main > .main-container { width: 100%; max-width: 1800px; margin: 0 auto; padding: 0; }
.sc-app-main > .layout { width: 100%; max-width: 1800px; margin: 0 auto; padding: 0; }
.sc-app-main > .recent-workspace { width: 100%; max-width: 1800px; margin: 0 auto; padding: 0; }
.sc-app-main > .scoutly-header { margin: 0 0 16px; }
.sc-app-page.calculator-page .sc-app-main > .scoutly-header { margin: 0 0 16px; }
.sc-app-page.calculator-page .sc-app-main > .layout { max-width: 1800px; margin: 0 auto; padding: 0; }
.sc-app-scrim { display: none; }
@media (max-width: 1400px) {
  .sc-app-brand { flex-basis: 340px; font-size: 20px; }
  .sc-app-topbar { gap: 16px; }
}
@media (max-width: 1000px) {
  .sc-app-sidebar { width: 64px; padding: 18px 7px 20px; }
  .sc-app-sidebar .nav-item { justify-content: center; gap: 0; padding: 0; }
  .sc-app-sidebar .nav-item span, .sc-app-note { display: none; }
  .sc-app-main, .sc-app-main.workspace { margin-left: 64px; }
}
@media (max-width: 850px) {
  .sc-app-topbar { position: sticky; height: auto; min-height: 80px; flex-wrap: wrap; gap: 10px 14px; padding: 11px 14px; }
  .sc-app-brand { flex: 1 1 320px; font-size: 18px; }
  .sc-app-brand img { flex-basis: 40px; width: 40px; height: 40px; }
  .sc-app-dashboard-slot { order: 3; flex: 1 1 100%; flex-wrap: wrap; }
  .sc-app-main, .sc-app-main.workspace { height: auto; min-height: calc(100vh - 120px); margin: 0 0 0 64px; padding: 15px; overflow: visible; }
  .sc-app-sidebar { top: 132px; }
}
@media (max-width: 700px) {
  .sc-app-topbar { position: sticky; min-height: 72px; }
  .sc-app-menu { display: inline-grid; }
  .sc-app-sidebar { z-index: var(--z-shell); top: 0; width: min(270px, 84vw); padding-top: 16px; transform: translateX(-105%); transition: transform 160ms ease; box-shadow: var(--shadow-card); }
  .sc-sidebar-open .sc-app-sidebar { transform: translateX(0); }
  .sc-app-sidebar .nav-item { justify-content: flex-start; gap: 13px; padding: 0 13px; }
  .sc-app-sidebar .nav-item span { display: inline; }
  .sc-app-note { display: block; }
  .sc-app-scrim { position: fixed; z-index: var(--z-shell); inset: 0; border: 0; background: var(--navy); opacity: .28; }
  .sc-sidebar-open .sc-app-scrim { display: block; }
  .sc-app-main, .sc-app-main.workspace { margin-left: 0; padding: 15px 12px 28px; }
  .sc-app-dashboard-slot { gap: 8px; }
  .sc-app-dashboard-slot .global-search { flex: 1 1 100%; min-width: 0; max-width: none; }
  .sc-app-dashboard-slot .market-wrap { flex: 1 1 150px; }
}
@media (prefers-reduced-motion: reduce) { .sc-app-sidebar { transition: none !important; } }
.sc-app-page.tracker-page { padding: 0 !important; }
.sc-app-page.calculator-page { margin: 0 !important; padding: 0 !important; }
.sc-app-main .container { max-width: 1800px; }
@media (max-width: 1000px) { .sc-app-main > .layout { grid-template-columns: 1fr; } }
@media (max-width: 1200px) { .sc-app-page.tracker-page .summary-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .sc-app-page.tracker-page .summary-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Unified Scoutly chrome. The brand declarations above are intentionally retained unchanged. */
:root { --sc-header-h: 100px; }
.sc-app-chrome { position: fixed; z-index: var(--z-shell); inset: 0 0 auto; height: var(--sc-header-h); background: #fff; }
.sc-app-topbar { position: relative; inset: auto; height: 72px; min-height: 72px; display: flex; flex-wrap: nowrap; align-items: center; gap: 16px; padding: 0 24px; border-bottom: 1px solid #DCE5EE; background: #fff; container-type: inline-size; }
.sc-app-dashboard-slot { display: flex; flex: 0 1 auto; width: auto; min-width: 0; align-items: center; gap: 12px; }
.sc-app-dashboard-slot:empty { display: none; }
.sc-global-search-wrap { position: relative; flex: 1 1 560px; min-width: 0; max-width: 560px; }
.sc-global-search-wrap .global-search { position: relative; display: flex; width: 100%; min-width: 0; height: 44px; align-items: center; gap: 8px; padding: 3px 4px 3px 38px; border: 1px solid #DCE5EE; border-radius: 10px; background: #fff; }
.sc-global-search-wrap .global-search:focus-within { border-color: #1A9B94; box-shadow: 0 0 0 2px rgba(26,155,148,.24); }
.sc-global-search-wrap .sc-search-icon, .global-search > svg:first-child { position: absolute; left: 12px; top: 11px; width: 20px; height: 20px; fill: none; stroke: #4A5B73; stroke-width: 1.8; stroke-linecap: round; }
.sc-global-search-wrap .global-search input { flex: 1 1 auto; width: 100%; min-width: 0; height: 34px; padding: 0 4px; border: 0; outline: 0; background: transparent; color: #0F2A4A; font: 400 13px/1.3 Inter, sans-serif; }
.sc-global-search-wrap .global-search input::placeholder { color: #4A5B73; opacity: .9; }
.sc-global-search-wrap .global-search button[type="submit"] { flex: 0 0 68px; height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: #12776F; color: #fff; font: 600 12px/1 Inter, sans-serif; cursor: pointer; }
.sc-search-expand, .sc-search-close { display: none; }
.sc-search-suggestions { position: absolute; z-index: var(--z-menu); top: calc(100% + 7px); left: 0; width: 100%; padding: 6px; border: 1px solid #DCE5EE; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(15,42,74,.14); }
.sc-suggestion { display: flex; width: 100%; min-height: 40px; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: #0F2A4A; text-align: left; font: 500 12px/1.35 Inter, sans-serif; cursor: pointer; }
.sc-suggestion svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: #4A5B73; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sc-suggestion kbd { margin-left: auto; padding: 3px 6px; border: 1px solid #DCE5EE; border-radius: 4px; color: #4A5B73; font: 10px Inter,sans-serif; }
.sc-suggestion.is-active, .sc-suggestion:hover { background: rgba(26,155,148,.10); color: #12776F; }
.sc-suggestion:disabled { color: #4A5B73; cursor: default; }
.sc-search-footer { padding: 8px 10px 4px; color: #4A5B73; font: 10.5px/1.3 Inter,sans-serif; }
.sc-global-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; margin-left: auto; }
.sc-topbar-icon { position: relative; display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; padding: 0; border: 1px solid #DCE5EE; border-radius: 8px; background: #fff; color: #4A5B73; cursor: pointer; }
.sc-topbar-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sc-topbar-icon:hover { background: rgba(26,155,148,.10); color: #12776F; }
.sc-topbar-icon:focus-visible, .sc-help-item:focus-visible, .sc-search-expand:focus-visible, .sc-search-close:focus-visible { outline: 2px solid #1A9B94; outline-offset: 2px; }
.sc-alert-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #12776F; color: #fff; font: 700 10px/18px Inter,sans-serif; text-align: center; }
.sc-help-wrap { position: relative; }
.sc-help-menu { position: absolute; z-index: var(--z-menu); top: calc(100% + 8px); right: 0; width: 240px; padding: 6px; border: 1px solid #DCE5EE; border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(15,42,74,.14); }
.sc-help-menu[hidden], .sc-search-suggestions[hidden] { display: none; }
.sc-help-item { display: flex; width: 100%; min-height: 38px; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: #0F2A4A; text-align: left; text-decoration: none; font: 500 12px/1.35 Inter,sans-serif; cursor: pointer; }
.sc-help-item:hover { background: rgba(26,155,148,.10); color: #12776F; }
.sc-help-menu .icon-button.sc-btn-secondary { flex: 1 1 auto; width: 100%; height: auto; min-height: 38px; display: flex; justify-content: flex-start; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: #0F2A4A; }
.sc-help-menu .icon-button.sc-btn-secondary:hover { background: rgba(26,155,148,.10); color: #12776F; }
.sc-help-item svg { flex: 0 0 17px; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sc-help-divider { height: 1px; margin: 5px 4px; background: #DCE5EE; }
.sc-help-version { padding: 7px 10px; color: #4A5B73; font: 400 11px/1.3 Inter,sans-serif; }
.sc-status-line { position: relative; display: flex; width: 100%; height: 28px; align-items: center; gap: 0; padding: 0 24px; background: #F3F6FA; color: #4A5B73; font: 400 12px/1 Inter,sans-serif; }
.sc-status-item { display: inline-flex; align-items: center; min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; white-space: nowrap; font: inherit; }
.sc-status-item + .sc-status-item::before { content: "·"; margin: 0 11px; color: #8B98A8; }
.sc-status-quickview, .sc-status-tracker { cursor: pointer; }
.sc-status-quickview i { width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #4A5B73; }
.sc-status-quickview i.is-on { background: #1A9B94; }
.sc-status-market { margin-left: 0; }
.sc-status-market .market-wrap { display: inline-flex; align-items: center; gap: 7px; margin: 0; font: inherit; }
.sc-status-market .sc-market-name { color: #4A5B73; }
.sc-status-market .market-wrap > span { color: #4A5B73; font-size: 10.5px; }
.sc-status-market .sc-select { height: 24px; min-width: 120px; padding: 0 22px 0 7px; font: 500 11px/1 Inter,sans-serif; }
.sc-info-page { min-height:100vh; }
.sc-info-content { width:min(760px,calc(100% - 40px)); margin:0 auto; padding:24px 0 48px; }
.sc-info-page .sc-header { margin:0 0 20px; }
.sc-info-article { color:#0F2A4A; font:400 16px/1.6 Inter,sans-serif; }
.sc-info-article h2 { margin:24px 0 8px; color:#0F2A4A; font-size:20px; font-weight:650; line-height:1.3; }
.sc-info-article p, .sc-info-article ol, .sc-info-article ul { margin:0 0 14px; }
.sc-info-article ol, .sc-info-article ul { padding-left:24px; }
.sc-info-article li { margin:0 0 8px; }
.sc-info-article a { color:#12776F; text-underline-offset:2px; }
.sc-info-article .sc-info-settings { margin-top:28px; color:#4A5B73; }
.sc-info-article [hidden] { display:none !important; }
.sc-app-sidebar { top: var(--sc-header-h); }
.sc-app-main { min-height: calc(100vh - var(--sc-header-h)); margin-top: var(--sc-header-h); }
.sc-app-main.workspace { height: calc(100vh - var(--sc-header-h)); margin-top: var(--sc-header-h); }
@container (max-width: 1099px) {
  .sc-app-dashboard-slot { display: none; }
  .sc-status-market { display: inline-flex; }
}
@container (max-width: 999px) {
  .sc-global-search-wrap { flex: 0 0 40px; width: 40px; max-width: 40px; }
  .sc-global-search-wrap .global-search { width: 40px; height: 40px; padding: 0; border-color: transparent; background: transparent; }
  .sc-global-search-wrap .global-search input, .sc-global-search-wrap .global-search button[type="submit"], .sc-global-search-wrap .sc-search-icon { display: none; }
  .sc-search-expand { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #DCE5EE; border-radius: 8px; background: #fff; color: #4A5B73; cursor: pointer; }
  .sc-global-search-wrap .global-search > .sc-search-expand { flex: 0 0 40px; width: 40px; height: 40px; min-height: 40px; padding: 0; }
  .sc-search-expand svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .sc-global-search-wrap .global-search.is-expanded { position: fixed; z-index: var(--z-menu); inset: 16px 24px auto; width: auto; max-width: none; padding: 3px 4px 3px 38px; border-color: #1A9B94; background: #fff; box-shadow: 0 0 0 2px rgba(26,155,148,.2); }
  .sc-global-search-wrap .global-search.is-expanded input, .sc-global-search-wrap .global-search.is-expanded button[type="submit"] { display: block; }
  .sc-global-search-wrap .global-search.is-expanded .sc-search-icon { display: block; }
  .sc-global-search-wrap .global-search.is-expanded .sc-search-expand { display: none; }
  .sc-global-search-wrap .global-search.is-expanded .sc-search-close { display: grid; flex: 0 0 30px; width: 30px; height: 30px; place-items: center; border: 0; background: transparent; color: #4A5B73; font: 20px/1 Inter,sans-serif; cursor: pointer; }
  .sc-app-topbar:has(.global-search.is-expanded) > .sc-app-brand, .sc-app-topbar:has(.global-search.is-expanded) > .sc-global-actions, .sc-app-topbar:has(.global-search.is-expanded) > .sc-app-menu { opacity: 0; pointer-events: none; }
}
@media (max-width: 700px) {
  :root { --sc-header-h: 72px; }
  .dashboard-page { --sc-header-h: 100px; }
  .sc-app-topbar { position: relative; height: 72px; min-height: 72px; flex-wrap: nowrap; gap: 8px; padding: 0 12px; }
  .sc-global-search-wrap .global-search.is-expanded { inset: 16px 12px auto; }
  .sc-app-chrome { height: auto; }
  .sc-status-line { display: none; }
  .sc-status-line.has-marketplace { display: flex; height: 28px; padding: 0 12px; }
  .sc-status-line.has-marketplace > :not(.sc-status-market) { display: none; }
  .sc-status-line.has-marketplace .sc-status-market { display: inline-flex; }
  .sc-app-sidebar { top: var(--sc-header-h); }
  .sc-app-main, .sc-app-main.workspace { margin-top: var(--sc-header-h); }
  .sc-app-main.workspace { height: auto; min-height: calc(100vh - var(--sc-header-h)); overflow: visible; }
}

/* Keep the dashboard's top-bar search and Marketplace control on one center line. */
.dashboard-page .sc-app-topbar { align-items: center; }
.dashboard-page .sc-app-topbar > * { align-self: center; margin: 0; }
.dashboard-page .sc-global-search-wrap { position: relative; display: flex; height: 44px; align-items: center; align-self: center; margin: 0; padding: 0; }
.dashboard-page .sc-global-search-wrap .global-search { align-self: center; height: 44px; margin: 0; padding: 3px 3px 3px 38px; }
.dashboard-page .sc-global-search-wrap > .sc-loader[data-read-sources="dashboard-lookup"] { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-height: 0; }
.dashboard-page .sc-global-search-wrap > .sc-loader[data-read-sources="dashboard-lookup"][hidden] { display: none !important; }
.dashboard-page .sc-global-search-wrap .sc-search-suggestions { top: calc(100% + 6px); right: 0; width: auto; }
.dashboard-page .sc-app-dashboard-slot { align-self: center; margin-block: 0; padding-block: 0; }
.dashboard-page .sc-app-dashboard-slot .market-wrap { display: flex; flex: 0 0 auto; width: auto; height: 44px; align-items: center; gap: 8px; margin: 0; padding: 0; }
.dashboard-page .sc-app-dashboard-slot .market-wrap > span { flex: 0 0 auto; color: #4A5B73; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.dashboard-page .sc-app-dashboard-slot .market-wrap .sc-select { flex: 0 0 235px; width: 235px; height: 44px; border: 1px solid #DCE5EE; border-radius: 10px; }

@media (max-width: 1000px) {
  .dashboard-page .sc-global-search-wrap { height: 40px; }
  .dashboard-page .sc-global-search-wrap .global-search { height: 40px; padding: 0; }
}
