@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap');
:root {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #24314a; background: #f5f7fb; font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: #f5f7fb; }
button, select, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #93b9ff; outline-offset: 3px;
}
.wrap { width: 100%; padding: 24px clamp(12px, 2vw, 36px) 36px; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 26px; margin-bottom: 36px; }
.eyebrow { display: flex; gap: 9px; align-items: center; font-size: .75rem; font-weight: 800; letter-spacing: .11em; color: #70809c; }
.eyebrow-dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: #15975a; }
h1 { font-size: clamp(2.1rem, 3vw, 3.8rem); letter-spacing: -.055em; line-height: 1.15; margin: 9px 0 8px; font-weight: 800; }
h1 span { font-weight: 400; color: #718099; }
.subtitle { margin: 0; color: #78859a; font-size: .99rem; }
.source-link { display: inline-flex; gap: 9px; align-items: center; flex: 0 0 auto; text-decoration: none; color: #1e477b; font-size: .9rem; font-weight: 700; border: 1px solid #d9e3f0; border-radius: 12px; padding: 12px 15px; background: #fff; }
.source-link:hover { background: #f0f6ff; }
h2, h3, p { margin-top: 0; }
h2 { font-size: clamp(1.4rem, 1.8vw, 1.9rem); letter-spacing: -.035em; margin-bottom: 3px; }
.section-kicker { font-size: .72rem; font-weight: 800; color: #8a9ab1; letter-spacing: .12em; margin-bottom: 7px; }
.overview { margin-bottom: 24px; }
.overview-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.observation { display: flex; align-items: center; gap: 8px; background: #e7f7ef; color: #267e54; border-radius: 99px; font-size: .85rem; padding: 10px 14px; font-weight: 700; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #189766; flex: none; }
.rate-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rate-card, .panel { background: #fff; border: 1px solid #e4eaf2; border-radius: 18px; box-shadow: 0 8px 30px rgba(36,49,74,.035); }
.rate-card { min-height: 166px; padding: 24px 28px 20px; }
.rate-label { display: flex; align-items: center; gap: 9px; font-size: .92rem; font-weight: 700; color: #68768f; }
.swatch { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.swatch-5 { background: #15975a; }
.swatch-7 { background: #377ce1; }
.swatch-10 { background: #9360da; }
.rate-value { font-size: clamp(2.4rem, 3.2vw, 3.65rem); letter-spacing: -.065em; font-weight: 800; margin-top: 9px; line-height: 1.12; font-variant-numeric: tabular-nums; }
.duration-5 .rate-value { color: #138b53; }
.duration-7 .rate-value { color: #377ce1; }
.duration-10 .rate-value { color: #8852ce; }
.rate-detail { margin-top: 8px; color: #8a98ab; font-size: .82rem; }
.main-panel { width: 100%; padding: 28px clamp(13px,2.6vw,35px) 14px; margin-bottom: 24px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.panel-subtitle { color: #8290a5; font-size: .89rem; line-height: 1.5; margin: 7px 0 0; }
.target-control, .window-control { display: flex; flex-direction: column; gap: 8px; color: #6c7b91; font-weight: 700; font-size: .84rem; flex: 0 0 auto; }
.input-wrap { display: flex; align-items: center; border: 1px solid #dbe4f0; border-radius: 11px; height: 45px; width: 148px; overflow: hidden; background: #fafdff; }
.input-wrap:focus-within { box-shadow: 0 0 0 2px #adcdf6; }
.input-wrap input { min-width: 0; width: 100%; border: 0; outline: none; background: transparent; padding: 11px 12px; font-size: 1rem; color: #26344b; font-weight: 800; appearance: textfield; }
.input-wrap input::-webkit-inner-spin-button, .input-wrap input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.input-wrap span { padding: 0 12px 0 0; color: #71829a; font-size: 1rem; }
.main-chart-wrap { width: 100%; overflow: hidden; }
#current-chart { height: 445px; width: 100%; }
.status { padding: 0 12px 10px; color: #8a98ab; font-size: .81rem; min-height: 26px; }
.history-launch { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 14px 2px 23px; }
.history-launch h2 { font-size: 1.4rem; margin: 0 0 7px; }
.history-launch p { color: #8996a9; margin: 0; font-size: .88rem; }
.history-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.button { white-space: nowrap; border-radius: 11px; padding: 13px 17px; display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: .87rem; font-weight: 800; border: 1px solid transparent; transition: background .15s, transform .15s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: #263c61; }
.button.primary:hover { background: #344f7d; }
.button.secondary { color: #263c61; background: #fff; border-color: #d9e3f0; }
.button.secondary:hover { background: #ebf3fc; }
.chevron { font-size: 1.1rem; line-height: .7; }
.history-section[hidden] { display: none; }
.history-section { display: grid; gap: 18px; margin-bottom: 24px; }
.history-panel { padding: 26px 26px 13px; }
.history-heading { align-items: start; }
.window-control select { padding: 11px 13px; background: #fafdff; border: 1px solid #dbe4f0; border-radius: 11px; color: #26344b; font-weight: 700; min-width: 178px; cursor: pointer; }
#history-chart { width: 100%; height: 560px; }
.table-panel { padding: 24px 25px; }
.table-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.table-heading h3 { font-size: 1.12rem; margin: 0 0 4px; }
.table-heading p { font-size: .84rem; color: #8290a5; margin: 0; }
.count-pill { background: #f1f5fa; color: #6b7b95; border-radius: 99px; padding: 7px 12px; font-size: .76rem; white-space: nowrap; font-weight: 700; }
.table-scroll { overflow-x: auto; max-height: 510px; overflow-y: auto; border: 1px solid #ebeff5; border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .86rem; }
thead { position: sticky; top: 0; background: #f8faff; z-index: 1; }
th, td { text-align: left; border-bottom: 1px solid #eef2f7; padding: 12px 16px; white-space: nowrap; }
th { color: #66768d; font-weight: 800; }
td { color: #394964; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: #f8fbff; }
.footnote { max-width: 1120px; font-size: .77rem; line-height: 1.65; color: #8e9aab; border-top: 1px solid #e0e6ef; padding-top: 18px; }
.footnote p { margin-bottom: 5px; }
@media (max-width: 880px) {
  .wrap { padding: 24px 18px 35px; }
  .topbar, .panel-heading, .history-launch { align-items: flex-start; flex-direction: column; }
  .topbar { margin-bottom: 28px; }
  .rate-cards { gap: 9px; }
  .rate-card { padding: 17px 14px; min-height: 139px; }
  .rate-value { font-size: clamp(1.8rem, 4.4vw, 2.5rem); }
  .rate-detail { font-size: .74rem; }
  .main-panel { padding: 21px 10px 10px; }
  #current-chart { height: 410px; }
  #history-chart { height: 450px; }
}
@media (max-width: 560px) {
  .wrap { padding: 20px 11px 29px; }
  h1 { font-size: 2.1rem; }
  .overview-heading { align-items: flex-start; flex-direction: column; }
  .rate-cards { grid-template-columns: 1fr; gap: 9px; }
  .rate-card { min-height: auto; display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 16px 20px; }
  .rate-value { margin-top: 0; font-size: 2.25rem; grid-row: span 2; grid-column: 2; }
  .rate-detail { grid-column: 1; }
  .history-actions { width: 100%; }
  .history-actions .button { flex: 1; justify-content: center; padding: 12px 13px; }
  .history-panel, .table-panel { padding: 18px 11px 10px; }
  #current-chart { height: 345px; }
  #history-chart { height: 380px; }
  .panel-subtitle { font-size: .83rem; }
  .source-link { font-size: .84rem; }
}


.chart-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 16px; }
.rate-mode-control { display: flex; align-items: center; gap: 10px; position: relative; font-size: .84rem; font-weight: 700; color: #6c7b91; cursor: pointer; min-height: 45px; }
.rate-mode-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-track { width: 44px; height: 26px; border-radius: 20px; background: #a5b1c4; position: relative; flex-shrink: 0; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: white; border-radius: 50%; transition: transform .15s; }
.rate-mode-control input:checked + .switch-track { background: #15975a; }
.rate-mode-control input:checked + .switch-track::after { transform: translateX(18px); }
.rate-mode-control input:focus-visible + .switch-track { outline: 3px solid #93b9ff; outline-offset: 3px; }
.period-help { color: #8290a5; font-size: .8rem; margin: 0 12px 10px; }
input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #be3a3a; }
.topbar { margin-bottom: 24px; }
@media (min-width: 881px) { .panel-heading { flex-wrap: wrap; } }

.page-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.page-nav a { padding: 11px 16px; color: #52647f; text-decoration: none; font-weight: 700; font-size: .9rem; border: 1px solid #d9e3f0; border-radius: 11px; background: #fff; }
.page-nav a[aria-current="page"] { color: #fff; background: #263c61; border-color: #263c61; }
.page-nav a:hover { box-shadow: 0 0 0 2px #c5d6ed; }
