:root {
  color-scheme: dark;
  --bg: #0c0d10;
  --panel: rgba(24, 25, 30, .86);
  --panel-strong: #17181d;
  --line: rgba(255, 255, 255, .09);
  --muted: #96969e;
  --soft: #c6c2b9;
  --gold: #e8c47d;
  --gold-light: #f4dfaa;
  --mint: #72d7b2;
  --blue: #87bcf6;
  --rose: #f1849c;
  --danger: #ff8794;
  --shadow: 0 24px 80px rgba(0, 0, 0, .32);
  --radius: 22px;
  font-family: 'Leelawadee UI', 'Noto Sans Thai', Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 84% 8%, rgba(232, 196, 125, .095), transparent 29rem),
    radial-gradient(ellipse at 6% 58%, rgba(97, 121, 155, .065), transparent 24rem),
    var(--bg);
  color: #f4f2ee;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .16;
  background-image: radial-gradient(rgba(255,255,255,.4) .65px, transparent .65px);
  background-size: 37px 37px;
  mask-image: linear-gradient(to bottom, black, transparent 58%);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.ambient { position: absolute; z-index: -1; border-radius: 50%; filter: blur(85px); pointer-events: none; }
.ambient-one { width: 290px; height: 290px; top: 170px; right: 17%; background: rgba(212, 163, 84, .075); }
.ambient-two { width: 190px; height: 190px; top: 780px; left: 7%; background: rgba(89, 135, 169, .065); }

.topbar {
  height: 72px;
  margin-top: 17px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  background: rgba(22,23,28,.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 36px rgba(0,0,0,.16);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(232,196,125,.4); color: var(--gold-light);
  background: radial-gradient(circle at 30% 25%, rgba(244,223,170,.25), rgba(232,196,125,.05) 70%);
  font-family: 'Segoe UI', sans-serif; font-weight: 800; font-size: 17px;
}
.brand strong { display: block; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.brand small { display: block; margin-top: 1px; color: #9e9a91; font: 8px 'Segoe UI', sans-serif; letter-spacing: .14em; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.location-pill, .small-pill, .mini-chip, .admin-identity {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line);
  border-radius: 999px; background: rgba(255,255,255,.035); color: #c8c6c0;
}
.location-pill { padding: 8px 13px; font-size: 11px; }
.live-dot, .status-dot, .legend-dot, .chart-footnote-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 11px rgba(114,215,178,.52); }
.admin-link { color: #d6d2c8; font-size: 12px; transition: color .2s; }
.admin-link:hover, .text-link:hover { color: var(--gold-light); }
.admin-link span { color: var(--gold); margin-left: 5px; }
.button-plain { padding: 0; border: 0; background: transparent; cursor: pointer; }

.hero { min-height: 448px; display: grid; grid-template-columns: 1.13fr .87fr; gap: 42px; align-items: center; padding: 52px 3% 46px; }
.hero-copy { max-width: 600px; }
.eyebrow { margin: 0 0 14px; color: #b5a786; font: 10px 'Segoe UI', sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; vertical-align: middle; width: 28px; height: 1px; margin-right: 9px; background: var(--gold); }
h1, h2, p { margin-top: 0; }
.hero h1 { margin: 0; color: #f4f1eb; font-size: clamp(39px, 5vw, 63px); line-height: 1.2; letter-spacing: -.035em; font-weight: 600; }
.hero h1 span, .admin-heading h1 .gold-text, .login-content h1 span { color: var(--gold-light); }
.hero-description { max-width: 490px; margin: 20px 0 24px; color: #aaa8a3; font-size: 14px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 20px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 44px; padding: 0 19px; border: 1px solid transparent; border-radius: 13px; font-size: 12px; font-weight: 600; cursor: pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.button:hover { transform: translateY(-2px); }
.button:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.button-gold { color: #211b11; background: linear-gradient(110deg, #f2dfa9, #d6ad63); box-shadow: 0 7px 28px rgba(212,163,84,.17); }
.button-gold:hover { box-shadow: 0 10px 32px rgba(212,163,84,.28); }
.button-gold span { font-size: 16px; }
.button-outline { background: rgba(255,255,255,.045); border-color: var(--line); color: #ebe5d8; white-space: nowrap; }
.text-link { color: #bbb8b1; font-size: 12px; transition: color .2s; }
.hero-facts { display: flex; gap: 35px; margin-top: 38px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 465px; }
.hero-facts div { display: grid; gap: 1px; }
.hero-facts strong { color: #e9e4d9; font: 700 18px 'Segoe UI', sans-serif; }
.hero-facts span { color: #8d8b85; font-size: 10px; }

.glass { border: 1px solid rgba(255,255,255,.1); background: linear-gradient(140deg, rgba(31,32,38,.94), rgba(18,19,23,.93)); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.forecast-card { position: relative; width: min(100%, 375px); min-height: 358px; justify-self: center; padding: 22px 24px 18px; border-radius: 27px; overflow: hidden; }
.forecast-card::after { content: ""; position: absolute; width: 190px; height: 190px; right: -74px; top: 28px; border-radius: 50%; border: 1px solid rgba(232,196,125,.065); box-shadow: 0 0 0 20px rgba(232,196,125,.018), 0 0 0 40px rgba(232,196,125,.014); pointer-events: none; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; z-index: 1; }
.status-label { display: inline-flex; align-items: center; gap: 8px; color: #d1cec5; font-size: 11px; }
.status-label .live-dot { width: 6px; height: 6px; background: #eabd72; box-shadow: 0 0 9px #eabd72; }
.small-pill { padding: 5px 10px; font: 9px 'Segoe UI', sans-serif; letter-spacing: .04em; color: var(--gold-light); }
.forecast-orbit { position: relative; width: 198px; height: 198px; margin: 22px auto 10px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, rgba(243,187,95,.11) 0, rgba(243,187,95,.045) 48%, transparent 69%); }
.forecast-orbit::before, .forecast-orbit::after { content: ""; position: absolute; inset: 15px; border-radius: 50%; border: 1px solid rgba(232,196,125,.13); }
.forecast-orbit::after { inset: 4px; border-color: rgba(255,255,255,.045); border-style: dashed; animation: slow-rotate 38s linear infinite; }
.orbit-glow { position: absolute; inset: 27px; border-radius: 50%; border: 4px solid rgba(232,196,125,.1); border-right-color: rgba(232,196,125,.83); border-top-color: rgba(232,196,125,.42); transform: rotate(34deg); filter: drop-shadow(0 0 7px rgba(232,196,125,.31)); }
.forecast-number { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; }
.muted-label { color: #929098; font-size: 10px; }
.forecast-number strong { margin: 0; font: 700 53px/.98 'Segoe UI', sans-serif; letter-spacing: -.06em; color: #fbf7ef; }
.unit { margin-top: 4px; color: #c7c0b3; font: 11px 'Segoe UI', sans-serif; }
.forecast-status { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--gold-light); font-size: 11px; }
.status-dot { width: 6px; height: 6px; background: var(--gold); box-shadow: 0 0 8px rgba(232,196,125,.55); }
.forecast-context { display: flex; justify-content: space-between; gap: 10px; margin-top: 19px; padding: 10px 12px; border: 1px solid rgba(255,255,255,.07); border-radius: 11px; color: #99979a; font-size: 9px; background: rgba(255,255,255,.025); }
.forecast-context strong { color: #d5cfbf; font-weight: 500; text-align: right; }
.forecast-card-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; color: #89878b; font-size: 9px; }
.mini-chip { padding: 5px 9px; color: #e6d2a2; font: 9px 'Segoe UI', sans-serif; white-space: nowrap; }
@keyframes slow-rotate { to { transform: rotate(360deg); } }

.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 4px 0 76px; }
.metric-card { display: flex; align-items: center; gap: 13px; min-height: 97px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(22,23,28,.7); }
.metric-icon { flex: 0 0 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(255,255,255,.055); font: 700 13px 'Manrope', sans-serif; }
.icon-gold { color: var(--gold); }.icon-blue { color: var(--blue); }.icon-rose { color: var(--rose); }.icon-mint { color: var(--mint); font-size: 10px; }
.metric-name { display: block; margin-bottom: 2px; color: #9a9894; font: 9px 'Segoe UI', sans-serif; letter-spacing: .07em; }
.metric-card strong { display: block; font: 600 20px/1.25 'Segoe UI', sans-serif; color: #efede8; }
.metric-card strong small { font-size: 9px; color: #9d9a93; font-weight: 400; }
.metric-caption { display: block; margin-top: 3px; color: #76757c; font-size: 9px; }

.section-block { margin: 0 0 76px; scroll-margin-top: 28px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 19px; }
.section-heading h2, .panel-title-row h2 { margin: 0; font-size: 22px; font-weight: 500; color: #f1eee7; letter-spacing: -.02em; }
.section-heading .eyebrow, .panel-title-row .eyebrow { margin-bottom: 7px; }
.section-subtitle { margin: 7px 0 0; color: #99979b; font-size: 11px; line-height: 1.8; }
.legend { display: flex; align-items: center; gap: 17px; padding-bottom: 5px; color: #a7a5a2; font-size: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 8px; height: 8px; display: inline-block; }
.legend-dot.actual { background: #84a1b8; box-shadow: 0 0 8px rgba(132,161,184,.35); }
.legend-dot.forecast { background: var(--gold); box-shadow: 0 0 8px rgba(232,196,125,.4); }
.chart-card { border-radius: 21px; padding: 20px 20px 14px; }
.chart-scroll { width: 100%; overflow-x: auto; scrollbar-color: rgba(232,196,125,.3) transparent; }
.chart-scroll svg { display: block; width: 100%; min-width: 700px; height: 310px; overflow: visible; }
.chart-grid-line { stroke: rgba(255,255,255,.075); stroke-width: 1; }
.chart-axis-label { fill: #85848c; font: 10px 'Leelawadee UI', sans-serif; }
.chart-x-label { fill: #aaa8a6; font: 9px 'Leelawadee UI', sans-serif; }
.chart-line-actual { fill: none; stroke: #87a8c2; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .84; }
.chart-line-forecast { fill: none; stroke: #e8c47d; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.chart-point-actual { fill: #a6c2d5; stroke: #14212b; stroke-width: 2; }
.chart-point-forecast { fill: #f1d597; stroke: #332819; stroke-width: 2; }
.chart-footnote { display: flex; align-items: center; gap: 8px; margin-top: 5px; padding-top: 13px; border-top: 1px solid var(--line); color: #8d8b90; font-size: 9px; }
.chart-footnote-dot { width: 5px; height: 5px; background: var(--gold); box-shadow: none; }
.empty-state { padding: 25px; text-align: center; color: #96939a; font-size: 12px; }

.two-column { display: grid; grid-template-columns: .88fr 1.12fr; gap: 17px; }
.panel-card { border-radius: 21px; padding: 24px; }
.compact-heading { align-items: center; margin-bottom: 9px; }
.compact-heading h2 { font-size: 19px; }
.panel-intro { color: #96949a; font-size: 10px; line-height: 1.7; margin: 8px 0 15px; }
.factor-list { display: grid; gap: 6px; }
.factor-row { min-height: 37px; display: grid; grid-template-columns: 27px 1fr auto; gap: 10px; align-items: center; padding: 5px 8px; border-radius: 10px; color: #dad7d0; font-size: 10px; }
.factor-row:nth-child(odd) { background: rgba(255,255,255,.026); }
.factor-icon { color: var(--gold); font: 14px 'Segoe UI', sans-serif; text-align: center; }
.factor-row small { color: #828087; font: 9px 'Segoe UI', sans-serif; }
.model-equation { display: grid; gap: 4px; margin-top: 16px; padding: 13px 15px; border: 1px solid rgba(232,196,125,.15); border-radius: 12px; background: rgba(232,196,125,.045); }
.equation-label { color: #ac966b; font: 8px 'Segoe UI', sans-serif; letter-spacing: .15em; }
.secret-calculator-key { width: fit-content; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.secret-calculator-key:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; border-radius: 3px; }
.admin-secret-link { width: fit-content; margin-top: 4px; color: var(--gold-light); font-size: 10px; }
.admin-secret-link span { color: var(--gold); margin-left: 4px; }
.model-equation strong { color: #eee2c6; font: 600 12px 'Segoe UI', sans-serif; }
.model-equation strong i { color: var(--gold); font-style: normal; margin: 0 4px; }
.model-equation small { color: #928d83; font-size: 9px; }
.comparison-card { overflow: hidden; }
.table-scroll { width: 100%; overflow-x: auto; }
.comparison-table, .records-table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; }
.comparison-table { margin-top: 8px; }
.comparison-table th { padding: 9px 8px; border-bottom: 1px solid var(--line); color: #89878d; font: 8px 'Segoe UI', sans-serif; letter-spacing: .04em; }
.comparison-table td { padding: 11px 8px; border-bottom: 1px solid rgba(255,255,255,.045); color: #c9c6c0; font: 10px 'Segoe UI', 'Leelawadee UI', sans-serif; }
.comparison-table .ann-row td { color: var(--gold-light); }
.comparison-table tr:last-child td { border-bottom: 0; }
.report-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; padding: 10px 11px; border-radius: 10px; background: rgba(255,255,255,.035); color: #929097; }
.report-note > span, .info-symbol { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border: 1px solid rgba(232,196,125,.34); border-radius: 50%; color: var(--gold); font: 10px 'Manrope', sans-serif; }
.report-note p { margin: 0; font-size: 9px; line-height: 1.65; }
.info-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 54px; padding: 17px 20px; border-radius: 16px; }
.info-banner > div:nth-child(2) { flex: 1; }
.info-banner strong { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 500; }
.info-banner p { margin: 0; color: #96939a; font-size: 9px; line-height: 1.7; }
.info-symbol { width: 26px; height: 26px; flex-basis: 26px; font-size: 12px; }
.footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); color: #75747b; font-size: 9px; }
.footer-brand .brand-mark { width: 31px; height: 31px; font-size: 14px; }
.footer-brand strong { font-size: 11px; }.footer-brand small { font-size: 7px; }

/* Admin workspace */
.admin-main { min-height: calc(100vh - 185px); padding-top: 57px; padding-bottom: 55px; }
.admin-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 28px; }
.admin-heading h1, .login-content h1 { margin: 0; font-size: clamp(33px, 4.3vw, 48px); line-height: 1.25; font-weight: 600; letter-spacing: -.035em; }
.admin-heading h1 .gold-text { display: inline-block; margin-left: 8px; }
.admin-identity { padding: 9px 13px; font-size: 10px; white-space: nowrap; }
.admin-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: start; gap: 17px; }
.admin-panel, .records-panel { padding: 24px; border-radius: 20px; }
.panel-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-title-row h2 { font-size: 19px; }
.admin-form { margin-top: 18px; }
.admin-form label, .stack-form label { display: grid; gap: 7px; color: #c9c6c0; font-size: 10px; }
.form-row { display: grid; grid-template-columns: .7fr 1.3fr; gap: 11px; }
.admin-form input, .admin-form select, .stack-form input {
  min-width: 0; width: 100%; min-height: 43px; padding: 0 12px;
  border: 1px solid rgba(255,255,255,.11); border-radius: 10px;
  background: rgba(8,9,12,.48); color: #f0ede7; font-size: 12px;
}
.admin-form input::placeholder, .stack-form input::placeholder { color: #68666c; }
.admin-form input:focus, .admin-form select:focus, .stack-form input:focus { border-color: rgba(232,196,125,.58); outline: none; box-shadow: 0 0 0 3px rgba(232,196,125,.08); }
.admin-form select option { color: #f4f2ee; background: #191a1f; }
.form-divider { display: flex; align-items: center; gap: 10px; margin: 19px 0 13px; color: #85838a; font-size: 9px; }
.form-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label > span { display: flex; justify-content: space-between; align-items: center; color: #c9c6c0; }
.form-grid label small { color: #807d83; font-size: 9px; }
.wide-field { grid-column: 1 / -1; }
.form-hint { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0; padding: 10px; border-radius: 10px; background: rgba(232,196,125,.06); }
.hint-icon { width: 16px; height: 16px; flex: 0 0 16px; display: grid; place-items: center; border: 1px solid rgba(232,196,125,.35); border-radius: 50%; color: var(--gold); font: 9px 'Manrope', sans-serif; }
.form-hint p { margin: 0; color: #a9a293; font-size: 9px; line-height: 1.65; }
.full-button { width: 100%; min-height: 46px; }
.form-message { margin: 11px 0; padding: 9px 11px; border-radius: 9px; font-size: 10px; line-height: 1.55; }
.error-message { color: #ffc0c3; border: 1px solid rgba(255,135,148,.2); background: rgba(255,135,148,.075); }
.success-message { color: #a7e8ce; border: 1px solid rgba(114,215,178,.2); background: rgba(114,215,178,.075); }
.admin-aside { display: grid; gap: 15px; }
.result-preview { min-height: 316px; padding: 22px; border-radius: 20px; background: radial-gradient(circle at 86% 12%, rgba(232,196,125,.12), transparent 11rem), linear-gradient(140deg, rgba(31,32,38,.94), rgba(18,19,23,.93)); }
.result-preview .eyebrow { margin-bottom: 22px; }
.preview-number { display: flex; align-items: baseline; gap: 8px; margin: 7px 0 19px; }
.preview-number strong { color: #f6efdf; font: 700 48px/1 'Segoe UI', sans-serif; letter-spacing: -.06em; }
.preview-number span { color: #a7a196; font: 11px 'Segoe UI', sans-serif; }
.preview-separator { height: 1px; margin-bottom: 13px; background: var(--line); }
.preview-meta { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; color: #918e93; font-size: 9px; }
.preview-meta strong { color: #d5d0c5; font-size: 9px; font-weight: 500; text-align: right; }
.preview-note { margin: 13px 0 0; padding-top: 11px; border-top: 1px solid var(--line); color: #827f86; font-size: 9px; line-height: 1.7; }
.admin-tip { display: flex; gap: 12px; padding: 16px; border-radius: 15px; }
.tip-symbol { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: var(--gold); background: rgba(232,196,125,.11); }
.admin-tip strong { display: block; margin-bottom: 4px; font-size: 10px; font-weight: 500; }
.admin-tip p { margin: 0; color: #96939a; font-size: 9px; line-height: 1.7; }
.records-panel { margin-top: 17px; }
.records-title { margin-bottom: 15px; }
.records-table th { padding: 11px 10px; border-bottom: 1px solid var(--line); color: #8e8b91; font: 8px 'Segoe UI', sans-serif; }
.records-table td { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,.055); color: #c9c6c0; font: 10px 'Segoe UI', 'Leelawadee UI', sans-serif; }
.records-table td:first-child { color: #e8dfc9; }
.records-table .pm-value { color: var(--gold-light); font-weight: 600; }
.record-origin { display: block; margin-top: 3px; color: #77757b; font: 8px 'Leelawadee UI', sans-serif; }
.delete-button { padding: 6px 9px; border: 1px solid rgba(255,135,148,.17); border-radius: 8px; color: #e598a2; background: rgba(255,135,148,.05); font-size: 9px; cursor: pointer; }
.delete-button:hover { background: rgba(255,135,148,.12); }
.records-footnote { margin: 14px 0 0; color: #807d84; font-size: 9px; }
.admin-footer { min-height: 66px; }
.admin-footer a { color: #b9b5ab; font-size: 10px; }

.login-shell { display: grid; grid-template-columns: .8fr 1.2fr; max-width: 790px; min-height: 480px; margin: 15px auto 45px; border-radius: 24px; overflow: hidden; }
.login-decoration { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle at 50% 42%, rgba(232,196,125,.16), transparent 13rem), rgba(232,196,125,.035); border-right: 1px solid var(--line); }
.login-decoration::before, .login-decoration::after { content: ""; position: absolute; width: 215px; height: 215px; border: 1px solid rgba(232,196,125,.1); border-radius: 50%; }
.login-decoration::after { width: 270px; height: 270px; border-style: dashed; opacity: .55; }
.login-orbit { display: grid; place-items: center; width: 145px; height: 145px; border: 1px solid rgba(232,196,125,.42); border-radius: 50%; color: var(--gold-light); background: radial-gradient(circle, rgba(232,196,125,.14), rgba(232,196,125,.015)); font: 700 38px 'Segoe UI', sans-serif; box-shadow: 0 0 50px rgba(232,196,125,.13), inset 0 0 28px rgba(232,196,125,.06); }
.login-decoration p { margin: 20px 0 0; color: #978766; font: 8px 'Segoe UI', sans-serif; letter-spacing: .18em; }
.login-content { align-self: center; padding: 45px; }
.login-content h1 { font-size: 35px; }
.login-content .section-subtitle { margin-bottom: 23px; }
.stack-form { display: grid; gap: 14px; }
.stack-form input { min-height: 45px; }
.login-footnote { margin: 16px 0 0; color: #77757b; font-size: 9px; line-height: 1.7; }

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .hero { gap: 20px; padding-inline: 0; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); margin-bottom: 60px; }
  .two-column { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-aside { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .result-preview { min-height: 100%; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .topbar { height: 62px; margin-top: 10px; padding: 0 13px; }
  .brand { gap: 8px; }.brand-mark { width: 33px; height: 33px; }
  .brand strong { font-size: 12px; }.brand small { font-size: 7px; }
  .topbar-right { gap: 9px; }.location-pill { padding: 7px 9px; font-size: 9px; }
  .admin-link { font-size: 10px; }.topbar-right .text-link { font-size: 10px; }
  .hero { grid-template-columns: 1fr; padding: 43px 0 32px; gap: 28px; }
  .hero h1 { font-size: 42px; }.hero-description { font-size: 12px; margin: 15px 0 20px; }
  .hero-facts { gap: 25px; margin-top: 25px; }
  .forecast-card { width: 100%; max-width: 380px; min-height: 335px; }
  .metric-strip { gap: 8px; margin: 0 0 55px; }
  .metric-card { min-height: 84px; padding: 11px; gap: 9px; }
  .metric-icon { flex-basis: 29px; height: 29px; border-radius: 9px; font-size: 11px; }
  .metric-card strong { font-size: 17px; }.metric-caption { font-size: 8px; }
  .section-block { margin-bottom: 54px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  .section-heading h2 { font-size: 19px; }.legend { padding: 0; }
  .chart-card { padding: 14px 11px 12px; }.chart-scroll svg { height: 265px; }
  .panel-card { padding: 17px; }.compact-heading { flex-direction: row; align-items: center; }
  .compact-heading h2 { font-size: 17px; }
  .comparison-table th, .comparison-table td { padding-inline: 7px; font-size: 9px; }
  .info-banner { align-items: flex-start; flex-wrap: wrap; padding: 15px; margin-bottom: 34px; }
  .info-banner .button { width: 100%; }
  .footer { flex-wrap: wrap; justify-content: space-between; padding: 15px 0; }
  .footer > span:nth-child(2) { order: 3; width: 100%; }
  .admin-main { padding-top: 37px; }
  .admin-heading { align-items: flex-start; flex-direction: column; margin-bottom: 20px; }
  .admin-heading h1 { font-size: 34px; }.admin-heading h1 .gold-text { margin-left: 5px; }
  .admin-panel, .records-panel { padding: 17px; }.panel-title-row h2 { font-size: 17px; }
  .admin-aside { grid-template-columns: 1fr; }
  .result-preview { min-height: 0; }.records-title { align-items: flex-start; }
  .login-shell { grid-template-columns: 1fr; margin-top: 5px; }
  .login-decoration { min-height: 155px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-orbit { width: 87px; height: 87px; font-size: 24px; }.login-decoration p { margin-top: 9px; }
  .login-decoration::before { width: 130px; height: 130px; }.login-decoration::after { width: 165px; height: 165px; }
  .login-content { padding: 25px 22px 27px; }.login-content h1 { font-size: 30px; }
}
