:root {
  --radius: 14px;
  --radius-sm: 8px;
  --track: .015em;
  --track-wide: .035em;
  --font-latin: "Inter", "Segoe UI", Arial, system-ui;
  --header-h: 72px;
}
:root[data-theme="light"] {
  --bg: #edf5ff;
  --surface: #ffffff;
  --surface-2: #f5f9ff;
  --surface-3: #e8f1ff;
  --text: #10234d;
  --text-2: #354b73;
  --text-3: #687b9d;
  --line: #e0ebfa;
  --line-soft: #edf2fb;
  --line-strong: #c5dafa;
  --solid: #4d648a;
  --oil: #ef920a;
  --water: #139ff3;
  --gas: #8b42eb;
}
body { background: radial-gradient(ellipse at 90% 0%, #d8eaff 0, transparent 55%), var(--bg); }
:root[data-theme="dark"] body { background: radial-gradient(ellipse at 90% 0%, #102547 0, transparent 55%), #081220; }
:root[data-theme="dark"] { --bg: #081220; --surface: #101e32; --surface-2: #14263e; --surface-3: #203751; --line: #263b55; --line-soft: #20334a; --line-strong: #3d587b; }
.topbar, :root[data-theme="light"] .topbar, .topbar.is-stuck { background: color-mix(in srgb, var(--surface) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); padding-inline: clamp(20px, 2.6vw, 46px); gap: 16px; }
.brand-mark { width: 30px; height: 34px; border: 0; border-radius: 65% 35% 60% 40%; transform: rotate(12deg); background: linear-gradient(145deg, #51c4ff, #1262ff); box-shadow: 0 4px 12px #1975ff25; }
.brand-mark::after { inset: 12px 9px 5px; border-radius: 65% 35% 60% 40%; background: #fff; }
.brand-text b { font-size: 17px; letter-spacing: 0; }
.brand-text i { font-size: 10px; letter-spacing: .04em; margin-top: 2px; }
.topnav { gap: 8px; }
.user-chip { gap: 8px; }
.hero, :root[data-theme="light"] .hero { position: relative; isolation: isolate; overflow: hidden; min-height: 380px; padding: 120px clamp(24px, 3vw, 54px) 52px; border: 0; background: transparent; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 76% 50%, #badcff66, transparent 54%), linear-gradient(165deg, transparent 65%, #dbeeff66 65%, transparent 85%); }
.hero::after { content: ""; position: absolute; right: 5%; top: 78px; width: 38%; height: 300px; z-index: -1; background: url("./assets/earth-realistic-v1.webp") center / contain no-repeat; filter: drop-shadow(0 14px 22px #2366a824); }
.hero-eyebrow { color: #6fa6f5; font-size: 13px; letter-spacing: .02em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(36px, 4vw, 62px); letter-spacing: -.03em; line-height: 1.2; color: #196efa; max-width: 55%; }
.hero-sub { max-width: 49%; font-size: 14px; line-height: 1.9; margin-top: 16px; }
.hero-actions { margin-top: 26px; gap: 16px; }
.hero-actions .btn { min-width: 150px; height: 46px; }
.layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; padding: 10px clamp(16px, 1.7vw, 30px) 36px; }
.panel { border: 1px solid color-mix(in srgb, var(--line) 60%, transparent); box-shadow: 0 8px 34px #3275cb08; background: color-mix(in srgb, var(--surface) 95%, transparent); border-radius: 16px; }
.panel-head { padding: 21px 24px; border-bottom: 0; }
.panel-head h2 { font-size: 16px; letter-spacing: 0; color: var(--text); display: flex; align-items: center; gap: 10px; }
.panel-head h2::before { content: ""; width: 25px; height: 25px; border-radius: 8px; background: linear-gradient(145deg, #55b8ff, #1264ff); box-shadow: 0 3px 9px #1477ff30; }
.panel--result { top: 88px; }
.btn { border-radius: 9px; font-size: 12px; letter-spacing: 0; color: var(--text-2); border-color: var(--line); background: var(--surface); transition: box-shadow .18s, background .18s, border-color .18s; }
.btn:hover:not(:disabled), :root[data-theme="light"] .btn:hover:not(:disabled) { background: var(--surface-3); border-color: #8ab6ff; color: #176bf2; }
.btn--primary, :root[data-theme="light"] .btn--primary { background: linear-gradient(110deg, #1268ff, #218bff); border-color: #1976ff; color: #fff; box-shadow: 0 5px 14px #1873ff25; }
.btn--primary:hover:not(:disabled), :root[data-theme="light"] .btn--primary:hover:not(:disabled) { background: #0e61e8; border-color: #0e61e8; color: #fff; box-shadow: 0 7px 18px #1873ff38; }
.btn--sm { height: 32px; padding-inline: 11px; font-size: 11px; }
.btn--icon { border-radius: 9px; }
.tab-panel, .result-body { padding: 0 24px 24px; }
.dataset-bar { padding: 0 24px 12px; border-bottom: 0; align-items: center; gap: 10px; }
.dataset-tabs { gap: 6px; flex-wrap: wrap; }
.dataset-tab { border: 1px solid transparent; border-radius: 8px; background: var(--surface-2); padding: 8px 10px; letter-spacing: 0; color: var(--text-3); }
.dataset-tab.is-active { color: #fff; background: linear-gradient(120deg, #1969ff, #4485fb); border-color: #2472ff; box-shadow: 0 3px 9px #1c6fff20; }
.dataset-tab.is-active::after { display: none; }
.dataset-tab:disabled { opacity: .4; }
.toolbar { margin-bottom: 15px; }
.field-search { border-radius: 9px; background: var(--surface-2); border-color: var(--line); }
.field-search-count { min-height: 8px; margin-bottom: 8px; }
.form-group-head { margin-bottom: 16px; padding-bottom: 10px; gap: 10px; }
.form-group-head h3 { font-size: 16px; font-weight: 700; letter-spacing: 0; color: var(--text); }
.field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
.field-label { font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--text); }
.field input[type="text"], .field input[type="search"], .field select, .batch-input { border-radius: 9px; height: 42px; border-color: var(--line-soft); background-color: var(--surface-2); font-size: 13px; }
.field input:focus, .field select:focus, .batch-input:focus { outline: 2px solid #1878ff20; border-color: #69a6ff; background-color: var(--surface); }
.field-hint { font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.form-footer { padding-top: 20px; }
.form-submit { flex: 1; justify-content: flex-end; }
#submit-single { min-width: 170px; }
.result-meta { padding: 17px 18px; background: var(--surface-2); border: 0; border-radius: 12px; letter-spacing: 0; gap: 12px 24px; }
.result-meta b { font-size: 14px; margin-top: 5px; }
.result-actions { flex-wrap: wrap; }
.yield-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; background: transparent; border: 0; overflow: visible; }
.yield-card { border: 0; border-radius: 12px; padding: 15px 12px; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.yield-card h4 { color: var(--text-2); font-size: 10px; letter-spacing: 0; white-space: normal; min-height: 30px; }
.yield-card h4::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--accent); }
.yield-value { font-size: clamp(23px, 2.2vw, 34px); margin: 10px 0 16px; }
.interval-text, .interval-width { font-size: 10px; color: var(--text-2); }
.total-row { border: 0; border-radius: 10px; background: var(--surface-3); }
.cmp-figure, .stacked-wrap { border-color: var(--line-soft); }
.diag-block { border-radius: 12px; padding: 16px; background: var(--surface-2); border: 0; }
.placeholder { border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface-2); padding: 48px 22px; }
.footnote { border: 0; font-weight: 500; letter-spacing: .04em; justify-content: center; }
.auth-card, .modal { box-shadow: 0 18px 60px #17356918; border-radius: 16px; }
@media (min-width: 1600px) { .field-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .layout { grid-template-columns: 1fr; } .panel--result { position: static; } .topnav { gap: 5px; } .brand-text b { font-size: 14px; } .user-chip { flex-wrap: wrap; justify-content: flex-end; } }
@media (max-width: 760px) { .topbar { height: auto; min-height: 72px; flex-wrap: wrap; padding-block: 10px; } .topnav { flex-wrap: wrap; justify-content: flex-end; } .brand-text b { font-size: 13px; } .hero { padding-top: 150px; min-height: 350px; } .hero::after { opacity: .18; right: -15%; top: 120px; width: 80%; } .hero h1, .hero-sub { max-width: 100%; } .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .yield-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .panel-head, .tab-panel, .result-body { padding-inline: 18px; } .dataset-bar { padding-inline: 18px; } }
@media (max-width: 480px) { .topbar { position: relative; } .hero { padding-top: 35px; min-height: 320px; } .hero::after { top: 20px; } .field-grid { grid-template-columns: 1fr; } .layout { padding-inline: 12px; } .hero-actions .btn { min-width: 130px; } .form-footer { flex-wrap: wrap; gap: 16px; } .form-submit { width: 100%; } #submit-single { flex: 1; } }
.form-status-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.form-status-row #form-summary { min-width: 0; }
.form-clear { flex-shrink: 0; }
.result-disclosure { border: 1px solid var(--line-soft); border-radius: 10px; padding: 12px 14px; margin-top: 14px; }
.result-disclosure > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text); }
.result-disclosure[open] > summary { margin-bottom: 14px; }
.interval-width-list { font-size: 12px; color: var(--text-2); line-height: 1.8; }
.batch-row-diagnostics { margin-top: 16px; }
.schema-refresh { position: static; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; color: #2178f5; box-shadow: 0 3px 12px #235fa814; }
@media print { body { background: #fff; } .hero::before, .hero::after, .schema-refresh { display: none; } .panel { box-shadow: none; } }

.prediction-logo { width: 210px; height: 44px; overflow: hidden; position: relative; display: block; flex-shrink: 0; background: #fff; border-radius: 6px; }
.prediction-logo img { width: 225px; height: auto; display: block; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.backend-nav { max-width: 1120px; margin: 0 auto; padding: 34px 20px 0; }
.backend-nav h1 { margin: 0 0 18px; font-size: 28px; color: var(--text); }
.backend-nav nav { display: flex; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.backend-nav button[aria-pressed="true"] { color: #fff; background: #1976ff; border-color: #1976ff; }
.form-required-legend { color: var(--text-2); }
.field-label .req { color: inherit; }
.field-unit { font-weight: 400; }
.field-note { color: var(--text-2); font-size: 11px; line-height: 1.6; margin: 4px 0 8px; overflow-wrap: anywhere; }
.field-note:empty { display: block; }
.form-group-note { color: var(--text-2); font-size: 11px; line-height: 1.65; margin: -5px 0 16px; }
.form-required-legend { font-size: 11px; margin: 0 0 20px; }
.field { display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 5px; }
.field-label { grid-row: 1; }
.field-note { grid-row: 2; margin: 0; }
.field input, .field select { grid-row: 3; margin-top: 0; align-self: start; }
.field-hint { grid-row: 4; }
@media (max-width: 760px) { .prediction-logo { width: 164px; height: 40px; } .prediction-logo img { width: 176px; } }

.user-name-button { border: 0; border-radius: 6px; background: transparent; padding: 6px 4px; font-family: inherit; cursor: pointer; }
.user-name-button:hover { color: #2472ff; background: var(--surface-3); }
.user-name-button:focus-visible { outline: 2px solid #2472ff; outline-offset: 2px; }
