/* Shared responsive and theme layer for static equity reports. Loaded after page-local CSS. */
:root {
  color-scheme: light;
  --app-nav-top: max(10px, env(safe-area-inset-top));
  --app-nav-height: 56px;
  --app-nav-gap: 10px;
  --app-nav-sticky-offset: calc(var(--app-nav-top) + var(--app-nav-height) + var(--app-nav-gap));
  --anchor-scroll-offset: calc(var(--app-nav-sticky-offset) + 18px);
  --report-anchor-scroll-offset: calc(var(--app-nav-sticky-offset) + 96px);
}

[id] {
  scroll-margin-top: var(--anchor-scroll-offset);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e5eefb;
  --muted: #a8b8cc;
  --line: #29405f;
  --brand: #7db7ff;
  --bg: #08111f;
  --card: #101c2e;
  --good: #4ade80;
  --risk: #fb7185;
  --amber: #fbbf24;
}

html[data-theme="light"] {
  color-scheme: light;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

body {
  transition: background-color 160ms ease, color 160ms ease;
}

* {
  min-width: 0;
}

.wrap {
  width: min(1120px, 100%);
}

.card,
.hero,
.callout,
.pill,
table,
th,
td,
p,
li,
a,
code {
  overflow-wrap: anywhere;
  word-break: normal;
}

svg,
img {
  max-width: 100%;
  height: auto;
}

svg {
  display: block;
  color: var(--ink);
}

html[data-theme="dark"] .card,
html[data-theme="dark"] table {
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #030712, #0f3b75);
}

html[data-theme="dark"] .callout {
  background: rgba(59, 130, 246, .14);
}

html[data-theme="dark"] .callout.good,
html[data-theme="dark"] .good {
  background: rgba(22, 163, 74, .14);
}

html[data-theme="dark"] .callout.risk,
html[data-theme="dark"] .risk {
  background: rgba(220, 38, 38, .14);
}

html[data-theme="dark"] .callout.amber,
html[data-theme="dark"] .amber {
  background: rgba(217, 119, 6, .16);
}

html[data-theme="dark"] th,
html[data-theme="dark"] .pill {
  background: rgba(37, 99, 235, .20);
  color: #bfdbfe;
}

html[data-theme="dark"] code {
  background: rgba(148, 163, 184, .16);
  color: #e5eefb;
}

html[data-theme="dark"] svg rect[fill="#fff"],
html[data-theme="dark"] svg rect[fill="#ffffff"] {
  fill: var(--card);
}

html[data-theme="dark"] svg text[fill="#0f172a"],
html[data-theme="dark"] svg text[fill="#334155"] {
  fill: var(--ink);
}

html[data-theme="dark"] svg text[fill="#475569"] {
  fill: var(--muted);
}

html[data-theme="dark"] svg line[stroke="#cbd5e1"],
html[data-theme="dark"] svg line[stroke="#e2e8f0"] {
  stroke: var(--line);
}

.theme-toggle {
  position: fixed;
  z-index: 1000;
  right: max(14px, env(safe-area-inset-right));
  top: max(14px, env(safe-area-inset-top));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(148, 163, 184, .55);
  border-radius: 999px;
  padding: 9px 13px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  font: 700 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

.theme-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent);
  outline-offset: 2px;
}

.theme-toggle__icon {
  font-size: 15px;
  line-height: 1;
}

@media (max-width: 820px) {
  .wrap {
    padding: 22px 14px 44px !important;
  }

  .hero {
    border-radius: 18px !important;
    padding: 26px 18px !important;
  }

  .hero h1 {
    font-size: clamp(28px, 8vw, 34px) !important;
  }

  .card {
    border-radius: 16px !important;
    padding: 16px !important;
  }

  .grid,
  .two {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  h2 {
    font-size: 21px !important;
  }

  .metric,
  .kpi {
    font-size: clamp(22px, 7vw, 27px) !important;
  }

  .theme-toggle {
    top: auto;
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    min-height: 44px;
    padding: 10px 14px;
  }

  table.responsive-table {
    display: block;
    width: 100%;
    border: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    overflow: visible !important;
    margin: 12px 0;
  }

  table.responsive-table thead,
  table.responsive-table .table-header-row {
    display: none !important;
  }

  table.responsive-table tbody,
  table.responsive-table tr,
  table.responsive-table td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
  }

  table.responsive-table tr {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  }

  table.responsive-table td {
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 8px 0 !important;
  }

  table.responsive-table td:last-child {
    border-bottom: 0 !important;
  }

  table.responsive-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
  }

  table.responsive-table td:not([data-label])::before,
  table.responsive-table td[data-label=""]::before {
    display: none;
  }
}

@media print {
  :root,
  html[data-theme="dark"],
  html[data-theme="light"] {
    color-scheme: light;
    --ink: #0f172a;
    --muted: #475569;
    --line: #cbd5e1;
    --brand: #1d4ed8;
    --bg: #ffffff;
    --card: #ffffff;
    --good: #166534;
    --risk: #991b1b;
    --amber: #92400e;
  }

  html,
  body {
    overflow: visible !important;
  }

  body {
    background: #ffffff !important;
    color: #0f172a !important;
    transition: none !important;
  }

  .theme-toggle {
    display: none !important;
  }

  .wrap {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .hero,
  .card,
  table,
  table.responsive-table tr {
    background: #ffffff !important;
    box-shadow: none !important;
  }

  .hero {
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
  }

  .hero p,
  .subtitle {
    color: #334155 !important;
  }

  .card,
  table.responsive-table tr {
    break-inside: avoid;
  }

  a {
    color: #0f172a !important;
    text-decoration: underline;
  }
}

/* Institutional library/report refresh. Loaded last to override page-local generated CSS. */
:root {
  --brand: #2454a6;
  --brand-strong: #173d7a;
  --brand-soft: #edf4ff;
  --accent: #0f766e;
  --accent-soft: #e8f7f4;
  --amber-soft: #fff7e6;
  --shadow-soft: 0 1px 2px rgba(15, 23, 42, .06), 0 12px 30px rgba(15, 23, 42, .05);
}

html[data-theme="dark"] {
  --brand: #8dbfff;
  --brand-strong: #b8d7ff;
  --brand-soft: rgba(78, 142, 220, .18);
  --accent: #55d2c4;
  --accent-soft: rgba(20, 184, 166, .16);
  --amber-soft: rgba(245, 158, 11, .15);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, .5);
}

body {
  font-size: 16px;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--brand);
  text-underline-offset: .18em;
}

a:hover {
  color: var(--brand-strong);
}

th,
.label {
  letter-spacing: 0 !important;
}

.wrap {
  padding-top: 24px !important;
}

.card,
.callout,
table,
.chart svg {
  border-radius: 8px !important;
}

.card {
  border-color: var(--line) !important;
  box-shadow: none !important;
}

.card h2:first-child {
  margin-top: 0;
}

.callout {
  line-height: 1.55;
}

/* Theme toggle participates in layout instead of floating over mobile content. */
.theme-toggle {
  position: relative !important;
  inset: auto !important;
  display: flex;
  width: max-content;
  min-width: 44px;
  min-height: 44px;
  margin: 0 0 12px auto;
  border-radius: 8px;
  padding: 10px 13px;
  background: var(--card);
  color: var(--ink);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.theme-toggle__icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
}

/* Homepage library */
.library-shell {
  width: min(1180px, 100%);
}

.library-masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 28px;
  align-items: end;
  margin-bottom: 18px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--line);
}

.library-kicker {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.library-masthead > .theme-toggle {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
  justify-self: end;
  margin: 0;
}

.library-masthead__body {
  grid-column: 1;
}

.library-masthead h1 {
  max-width: 760px;
  margin: 0 0 8px;
  font-size: clamp(31px, 5vw, 50px);
  line-height: 1.02;
}

.library-masthead p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.library-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, auto));
  gap: 8px;
  margin: 0;
}

.library-stats div {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.library-stats dt {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.library-stats dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.library-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin: 18px 0 18px;
}

.library-search {
  margin: 0;
}

.library-search label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.library-search__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.library-search input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 13px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
}

.library-search input:focus {
  outline: 3px solid color-mix(in srgb, var(--brand) 28%, transparent);
  outline-offset: 1px;
  border-color: var(--brand);
}

.library-search button,
.ticker-strip button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  font: 800 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
}

.library-search button:hover,
.ticker-strip button:hover {
  border-color: var(--brand);
  color: var(--brand-strong);
}

.library-search__count,
.library-note {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.ticker-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ticker-strip button[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-card {
  position: relative;
  display: flex;
  min-height: 208px;
  flex-direction: column;
  gap: 11px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.report-card__top,
.report-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.report-card__top {
  justify-content: space-between;
}

.ticker-badge,
.date-chip,
.report-card__meta span,
.hero .pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
}

.ticker-badge {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.date-chip,
.report-card__meta span {
  border: 1px solid var(--line);
  color: var(--muted);
}

.report-card h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.22;
}

.report-card__link {
  color: var(--ink);
  text-decoration: none;
}

.report-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
}

.report-card:hover {
  border-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  box-shadow: 0 8px 26px rgba(15, 23, 42, .10);
}

.report-card:hover .report-card__link {
  color: var(--brand-strong);
}

.report-card p {
  margin: 0;
  color: var(--muted);
}

.report-card__meta {
  margin-top: auto;
}

.empty-state,
.methodology-panel {
  margin: 16px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
}

.methodology-panel h2 {
  margin: 0 0 6px;
  font-size: 21px;
}

.methodology-panel p {
  margin: 0;
}

/* Report pages */
main.wrap > .hero {
  margin-bottom: 14px !important;
  border: 1px solid rgba(129, 169, 219, .30);
  border-radius: 10px !important;
  padding: 24px 28px !important;
  background: linear-gradient(135deg, #101f35, #17447b) !important;
  box-shadow: none !important;
}

main.wrap > .hero h1 {
  max-width: 960px;
  margin: 8px 0 10px !important;
  font-size: clamp(28px, 4vw, 40px) !important;
  line-height: 1.06 !important;
}

main.wrap > .hero p,
main.wrap > .hero .subtitle {
  max-width: 900px;
  margin: 8px 0 0;
  color: #dbeafe !important;
  font-size: 15px !important;
}

main.wrap > .hero p:first-child {
  margin-top: 0;
}

main.wrap > .hero a {
  color: #dbeafe !important;
  text-decoration: none;
}

main.wrap > .hero a:hover {
  color: #ffffff !important;
  text-decoration: underline;
  text-underline-offset: .2em;
}

main.wrap > .hero .pill {
  margin: 3px 5px 3px 0 !important;
  border-color: rgba(219, 234, 254, .38) !important;
  background: rgba(255, 255, 255, .08) !important;
  color: #eaf2ff !important;
}

main.wrap > .hero .meta {
  gap: 7px !important;
  margin-top: 12px !important;
}

main.wrap > .hero + .grid,
main.wrap > .hero + .grid + .report-contents,
main.wrap > .hero + .grid ~ .report-contents {
  margin-top: 0;
}

main.wrap > .hero + .grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 0 0 14px !important;
}

main.wrap > .hero + .grid .card {
  min-height: 92px;
  margin-bottom: 0 !important;
  padding: 14px 15px !important;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand-soft) 24%, transparent), transparent 54%),
    var(--card);
}

.metric,
.kpi {
  color: var(--ink);
  font-size: clamp(24px, 2.4vw, 30px) !important;
  line-height: 1.05;
}

.label,
.note,
.small {
  color: var(--muted) !important;
}

.two {
  gap: 14px !important;
}

section.card,
.two > .card {
  margin-bottom: 14px !important;
}

section.card h2,
.two h2 {
  line-height: 1.18;
  scroll-margin-top: var(--report-anchor-scroll-offset);
}

section.card p,
section.card li,
.two p,
.two li {
  max-width: 78ch;
}

section.card ul,
section.card ol,
.two ul,
.two ol {
  padding-left: 1.25rem;
}

table {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
}

th {
  background: color-mix(in srgb, var(--brand-soft) 62%, var(--card)) !important;
  color: var(--muted) !important;
  font-size: 12px !important;
  text-transform: none !important;
}

th,
td {
  border-bottom: 1px solid var(--line) !important;
}

tr:last-child td {
  border-bottom: 0 !important;
}

.report-contents {
  position: sticky;
  z-index: 20;
  top: var(--app-nav-sticky-offset);
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.report-contents__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
}

.report-contents__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.report-contents__toggle {
  display: none;
}

.report-contents ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  overflow: visible;
  list-style: none;
}

.report-contents a {
  display: block;
  max-width: 235px;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-contents a:hover {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  color: var(--brand-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.report-contents a[aria-current="true"] {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: var(--brand-soft);
  color: var(--brand-strong);
  text-decoration: none;
}

html[data-theme="dark"] .report-card:hover {
  box-shadow: 0 8px 26px rgba(0, 0, 0, .30);
}

html[data-theme="dark"] main.wrap > .hero {
  background: linear-gradient(135deg, #0a1220, #12345f) !important;
}

html[data-theme="dark"] .report-contents,
html[data-theme="dark"] .theme-toggle {
  border-color: var(--line);
}

@media (max-width: 900px) {
  .library-masthead,
  .library-controls {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .library-masthead__body,
  .library-stats,
  .library-controls > * {
    grid-column: 1 / -1;
  }

  .library-masthead > .theme-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .library-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ticker-strip {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .library-grid {
    grid-template-columns: 1fr;
  }

  .report-card {
    min-height: 0;
  }

  .report-contents {
    top: var(--app-nav-sticky-offset);
  }

  .report-contents__inner {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
    padding: 8px;
  }

  .report-contents__label {
    display: none;
  }

  .report-contents__toggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 3px 10px;
    align-items: center;
    width: 100%;
    min-height: 52px;
    border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line));
    border-radius: 12px;
    padding: 8px 10px;
    background: var(--brand-soft);
    color: var(--text);
    text-align: left;
    cursor: pointer;
  }

  .report-contents__toggle-kicker {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .report-contents__current {
    min-width: 0;
    overflow: hidden;
    color: var(--brand-strong);
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .report-contents__toggle-action {
    align-self: center;
    border: 1px solid color-mix(in srgb, var(--brand) 38%, var(--line));
    border-radius: 999px;
    padding: 5px 8px;
    color: var(--brand-strong);
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
  }

  .report-contents ol {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    max-height: min(58vh, 430px);
    overflow: visible;
    padding-bottom: 0;
  }

  .report-contents:not(.is-open) ol {
    display: none;
  }

  .report-contents.is-open ol {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
  }

  .report-contents li {
    min-width: 0;
  }

  .report-contents a {
    width: 100%;
    max-width: 100%;
    min-height: 38px;
    border-radius: 12px;
    padding: 8px 10px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.25;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 14px 12px 34px !important;
  }

  .library-masthead {
    padding-top: 12px;
  }

  .library-masthead h1 {
    font-size: clamp(28px, 9vw, 35px);
  }

  .library-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-stats div:last-child {
    grid-column: 1 / -1;
  }

  .library-search__row {
    grid-template-columns: 1fr;
  }

  .library-search button,
  .ticker-strip button {
    width: 100%;
  }

  .ticker-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ticker-strip button {
    padding-left: 8px;
    padding-right: 8px;
  }

  .report-card {
    padding: 15px;
  }

  .report-card h2 {
    font-size: 18px !important;
  }

  main.wrap > .hero {
    border-radius: 8px !important;
    padding: 17px 16px !important;
  }

  main.wrap > .hero h1 {
    font-size: clamp(24px, 8vw, 30px) !important;
  }

  main.wrap > .hero p,
  main.wrap > .hero .subtitle {
    font-size: 14px !important;
  }

  main.wrap > .hero + .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  main.wrap > .hero + .grid .card {
    min-height: 82px;
    padding: 11px !important;
  }

  .metric,
  .kpi {
    font-size: clamp(21px, 7vw, 26px) !important;
  }

  main.wrap > .hero + .grid .label,
  main.wrap > .hero + .grid .small,
  main.wrap > .hero + .grid .note {
    font-size: 12px !important;
    line-height: 1.25;
  }

  .report-contents {
    margin-left: -4px;
    margin-right: -4px;
  }

  table.responsive-table tr {
    border-radius: 8px !important;
  }
}

/* Global app navigation snack bar */
.app-nav-snackbar {
  position: sticky;
  z-index: 1100;
  top: max(10px, env(safe-area-inset-top));
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: calc(100vw - 24px);
  margin: 14px auto 0;
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .18);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.app-nav-snackbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  font: 850 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.app-nav-snackbar__item:hover {
  border-color: color-mix(in srgb, var(--brand) 26%, var(--line));
  color: var(--brand-strong);
  text-decoration: none;
}

.app-nav-snackbar__item:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand) 36%, transparent);
  outline-offset: 2px;
}

.app-nav-snackbar__item[aria-current="page"] {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.app-nav-snackbar__icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand-soft) 72%, transparent);
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: -.04em;
}

html[data-theme="dark"] .app-nav-snackbar {
  border-color: color-mix(in srgb, var(--line) 75%, transparent);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .38);
}

@media (max-width: 640px) {
  :root {
    --app-nav-top: max(8px, env(safe-area-inset-top));
    --app-nav-gap: 8px;
  }

  .app-nav-snackbar {
    top: var(--app-nav-top);
    width: min(420px, calc(100vw - 18px));
    justify-content: space-between;
    border-radius: 22px;
  }

  .app-nav-snackbar__item {
    flex: 1 1 0;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    padding: 8px 7px;
    font-size: 12px;
  }

  .app-nav-snackbar__label {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 360px) {
  .app-nav-snackbar__item {
    gap: 0;
    padding-left: 5px;
    padding-right: 5px;
  }

  .app-nav-snackbar__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

@media print {
  .app-nav-snackbar {
    display: none !important;
  }
}

@media (max-width: 340px) {
  .ticker-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ticker-badge,
  .date-chip,
  .report-card__meta span,
  .hero .pill {
    padding-left: 7px;
    padding-right: 7px;
  }

  main.wrap > .hero + .grid {
    gap: 7px !important;
  }

  main.wrap > .hero + .grid .card {
    padding: 9px !important;
  }
}
