:root {
  --navy: #3a1a52;
  --orange: #6B2D8B;
  --orange-ink: #521f6e;
  --bg: #F8F5FA;
  --surface: #FFFFFF;
  --surface-2: #f3eaf8;
  --line: #E4D6EE;
  --fg: #1a0a2e;
  --muted: #62507a;
  --navy-soft: #f3eaf8;
  --font: 'Lato', 'Segoe UI', sans-serif;
  --serif: 'Merriweather', Georgia, serif;
  --r: 2px;
}
body { font-size: 15px; line-height: 1.65; }
::selection { background: #E4D6EE; }
:focus-visible { outline: 3px solid #6B2D8B; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 16px; padding: 12px 20px; background: #FFFFFF; color: #3a1a52; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.bar { background: #3a1a52; }
.bar-in { max-width: 1320px; padding: 24px 40px 0; gap: 22px; }
.brand { gap: 18px; }
.brand-l { gap: 14px; }
.mark { width: 44px; height: 44px; border-radius: 0; background: #f3eaf8; color: #3a1a52; font-family: var(--serif); font-size: 24px; font-weight: 400; border-bottom: 3px solid #C8873A; }
.brand h1 { font-family: var(--serif); font-size: 30px; font-weight: 400; line-height: 1.1; }
.brand small { font-size: 10px; letter-spacing: .03em; }
.stamp { background: transparent; border: 1px solid #8f7aa6; border-radius: 0; font-size: 10px; padding: 5px 10px; white-space: normal; }
.tabs { margin-inline: -10px; padding-inline: 10px; gap: 6px; scrollbar-width: thin; scrollbar-color: #8f7aa6 transparent; }
.tab { font-size: 11px; letter-spacing: .02em; padding: 13px 12px; color: #E4D6EE; border-bottom-width: 2px; }
.tab[aria-selected="true"] { border-bottom-color: #C8873A; }
main { max-width: 1320px; padding: 28px 40px 70px; }
.desk-notice { font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 38px; }
.head { gap: 12px; margin-bottom: 12px; }
.head h2 { font-family: var(--serif); font-size: clamp(35px, 4vw, 55px); font-weight: 400; letter-spacing: -.035em; line-height: 1.08; }
.head h2 em { color: var(--orange); }
.head .eyebrow { font-size: 9px; letter-spacing: .16em; }
.lede { font-size: 14px; max-width: 80ch; line-height: 1.8; }
.tiles { gap: 0; border: 1px solid var(--line); background: var(--surface); }
.tile { min-width: 0; border: none; border-right: 1px solid var(--line); padding: 23px; background: transparent; }
.tile:last-child { border-right: none; }
.tile.hot { border-color: var(--line); background: #f3eaf8; box-shadow: none; }
.tile .v { font-family: var(--serif); font-size: 38px; font-weight: 400; margin-block: 7px; }
.tile .k { font-size: 9px; letter-spacing: .1em; }
.tile .s { font-size: 11px; }
.box { padding: 25px; }
.box h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.grid2, .grid3 { gap: 20px; }
.list li { padding-block: 16px; }
.list b { font-size: 13px; }
.list span.d { font-size: 12px; line-height: 1.75; }
.list .when { font-size: 10px; padding-top: 3px; }
.btn { font-size: 12px; border-radius: 2px; padding: 11px 16px; }
.btn.sm { min-height: 36px; padding: 6px 12px; }
.btn.alt:hover { background: #f3eaf8; filter: none; }
.seg button { border-radius: 2px; padding: 11px 13px; font-size: 12px; }
input, select, textarea { border-radius: 2px; padding: 11px 12px; font-size: 13px; }
label.f { font-size: 11px; gap: 8px; }
.form { gap: 15px; }
textarea { font-size: 11px; min-height: 120px; }
.note, .src { font-size: 11px; line-height: 1.7; }
.example { background: #f3eaf8; color: #3d2860; border-radius: 0; font-size: 10px; }
.chip { font-size: 9px; border-radius: 2px; }
.result { border-radius: 2px; }
table { font-size: 12px; }
th { font-size: 9px; letter-spacing: .08em; padding: 14px 16px; }
td { padding: 13px 16px; }
.storage-status { padding: 12px 16px; background: #f3eaf8; border: 1px solid var(--line); display: flex; justify-content: space-between; gap: 15px; align-items: center; font-size: 12px; }
.storage-status.is-error { background: #f8e7df; color: #87382a; }
.storage-status.is-loading { animation: storage-pulse 1.2s ease-in-out infinite alternate; }
.chartbox { height: 320px; }
.foot { border-color: var(--line); padding: 28px 40px; font-size: 11px; }
[hidden] { display: none !important; }
@keyframes storage-pulse { to { opacity: .55; } }
@media (max-width: 820px) {
  .bar-in { padding: 20px 20px 0; gap: 16px; }
  .brand h1 { font-size: 27px; }
  .stamp { display: none; }
  .brand small { font-size: 9px; }
  .tabs { margin-inline: -20px; padding-inline: 12px; }
  .tab { font-size: 11px; padding-block: 13px; }
  main { padding: 22px 20px 50px; }
  .desk-notice { margin-bottom: 28px; }
  .box { padding: 20px; }
  .tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tile { padding: 17px; }
  .tile:nth-child(2) { border-right: none; }
  .tile:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tile .v { font-size: 31px; }
  .chartbox { height: 260px; }
  .foot { padding-inline: 20px; }
}
@media (max-width: 360px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { border-right: none; border-bottom: 1px solid var(--line); }
  .tile:last-child { border-bottom: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
