:root {
  --ink: #171914;
  --muted: #687064;
  --paper: #f3f0e8;
  --card: #fffefb;
  --line: #d9d6cc;
  --acid: #dfff4f;
  --green: #1f6d48;
  --orange: #b65a22;
  --red: #a2392b;
  --shadow: 0 10px 30px rgba(37, 40, 31, .07);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif,
  system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
.topbar { height: 66px; padding: 0 max(20px, calc((100vw - 1100px)/2)); display: flex;
  align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line);
  background: rgba(243,240,232,.94); position: sticky; top: 0; z-index: 10; }
.brand { text-decoration: none; font-size: 20px; font-weight: 850; letter-spacing: -.04em; }
.brand span { color: var(--muted); font-weight: 500; }
.shell { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 80px; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 28px; }
h1 { font-size: clamp(38px, 6vw, 68px); line-height: .96; letter-spacing: -.055em; margin: 6px 0 14px; max-width: 760px; }
h2 { font-size: 25px; letter-spacing: -.035em; margin: 4px 0 10px; }
.eyebrow,.label { font-size: 11px; letter-spacing: .14em; font-weight: 850; color: var(--green); margin: 0; }
.muted { color: var(--muted); line-height: 1.55; }.small { font-size: 13px; }.stack { display:flex; flex-direction:column; gap:12px; }
.gap-lg { gap: 20px; }.compact { gap: 10px; }.card,.login-card { background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.login-card { width: min(470px, 100%); margin: 10vh auto; padding: 34px; }
.login-card h1 { font-size: 46px; }
label { font-size: 13px; font-weight: 700; color: #454a41; }
input,textarea,select { width: 100%; border: 1px solid #c9c7be; background: #fff; color: var(--ink);
  padding: 12px 13px; border-radius: 10px; font: inherit; font-size: 16px; }
input:focus,textarea:focus,select:focus { outline: 3px solid rgba(202,239,42,.35); border-color: #819510; }
button,.button-link { border: 0; border-radius: 10px; min-height: 46px; padding: 0 19px; font: inherit;
  font-weight: 800; cursor: pointer; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; }
button:disabled { opacity: .45; cursor: not-allowed; }.primary { background: var(--ink); color: white; }
.secondary { background: #e6ff72; color: var(--ink); border: 1px solid #bed63e; }.full { width:100%; }
.text-button { background: transparent; min-height: auto; padding: 8px; color: var(--muted); }
.run-state { flex: 0 0 auto; display:flex; gap:8px; align-items:center; border: 1px solid var(--line);
  padding: 10px 14px; border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 700; }
.dot { width:9px; height:9px; border-radius:50%; display:inline-block; background:#7d8578; }
.run-state.live .dot,.dot.warn { background: var(--orange); box-shadow:0 0 0 4px rgba(182,90,34,.12); }
.dot.ok { background: var(--green); }.schedule-card { display:grid; grid-template-columns: 2fr 1fr; gap:20px; align-items:end; }
.date-input { border:0; padding:5px 0 0; font-size: clamp(24px,5vw,42px); font-weight:800; letter-spacing:-.04em; background:transparent; }
.recurrence { grid-column:1/-1; display:flex; justify-content:space-between; align-items:center;
  gap:18px; border-top:1px solid var(--line); padding-top:18px; }
.recurrence p { margin-bottom:0; }.weekday-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:7px; }
.day-choice { min-width:52px; padding:10px 8px; border:1px solid var(--line); border-radius:10px;
  text-align:center; cursor:pointer; }.day-choice:has(input:checked) { border-color:#99ae20; background:#f8ffd9; }
.day-choice input { width:16px; height:16px; margin:0 auto 5px; display:block; accent-color:#596800; }
.day-choice span { font-size:12px; }
.section-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; }
.count { border:1px solid var(--line); border-radius:999px; padding:7px 11px; color:var(--muted); font-size:12px; }
.model-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin:18px 0; }
.model-choice { display:flex; gap:10px; align-items:flex-start; padding:12px; border:1px solid var(--line);
  border-radius:11px; cursor:pointer; min-width:0; }.model-choice:has(input:checked) { border-color:#99ae20; background:#f8ffd9; }
.model-choice input { width:17px; height:17px; margin:1px 0 0; accent-color:#596800; flex:0 0 auto; }
.model-choice span { min-width:0; }.model-choice strong,.model-choice small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.model-choice strong { font-size:13px; }.model-choice small { color:var(--muted); font-weight:500; margin-top:4px; font-size:10px; }
details { border-top:1px solid var(--line); padding-top:15px; margin-top:15px; } summary { font-weight:800; cursor:pointer; }
.form-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin:18px 0; }.form-grid div { min-width:0; }
.form-grid label { display:block; margin-bottom:6px; }.form-grid .wide { grid-column:span 3; }
.toggle { display:flex; align-items:center; gap:9px; margin:10px 0; }.toggle input { width:18px; height:18px; accent-color:#596800; }
.actions { display:flex; justify-content:flex-end; gap:10px; }.sticky-actions { position:sticky; bottom:14px; z-index:8;
  background:rgba(243,240,232,.94); backdrop-filter:blur(8px); padding:10px; border-radius:14px; border:1px solid var(--line); }
.two-col,.figure-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; margin-top:20px; }
.readiness { display:flex; align-items:center; gap:8px; font-size:13px; }.download { display:inline-block; margin-top:14px; font-weight:750; font-size:13px; }
.secondary-download { margin-left:14px; color:var(--muted); font-weight:650; }
.history { margin-top:20px; }.job-list { margin-top:12px; }.job-row { display:grid; grid-template-columns:90px 1fr 24px;
  gap:12px; align-items:center; padding:13px 0; border-top:1px solid var(--line); text-decoration:none; }
.job-row small { display:block; color:var(--muted); margin-top:3px; }.arrow { color:var(--muted); font-size:20px; }
.status { display:inline-flex; justify-content:center; border-radius:999px; padding:6px 9px; text-transform:uppercase;
  letter-spacing:.08em; font-size:10px; font-weight:850; background:#e8e7e1; }
.status.running,.status.queued { background:#fff0cf; color:#8a4c0d; }.status.succeeded { background:#dff4e5; color:#155d39; }
.status.failed { background:#f8deda; color:#8c2d21; }.status.large { padding:10px 15px; font-size:12px; }
.figure img { width:100%; display:block; margin-top:12px; border-radius:8px; }.notice { padding:13px 16px; border-radius:12px;
  background:#ecf6c4; border:1px solid #c8dc71; margin-bottom:20px; font-size:14px; overflow-wrap:anywhere; }
.notice.error { background:#f8deda; border-color:#e6aaa1; }.back { display:inline-block; margin-bottom:24px; font-weight:750; text-decoration:none; }
.terminal-card { background:#181b17; color:#e9eee5; border-radius:16px; padding:18px; margin-top:20px; box-shadow:var(--shadow); }
.terminal-card pre { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace; }
code { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.9em; }.job-hero { align-items:center; }
@media (max-width: 760px) {
  .shell { width:min(100% - 20px,1100px); padding-top:26px; }.topbar { padding:0 14px; }.hero { align-items:flex-start; flex-direction:column; }
  h1 { font-size:44px; }.card { padding:18px; border-radius:14px; }.schedule-card,.two-col,.figure-grid { grid-template-columns:1fr; }
  .model-grid { grid-template-columns:1fr; }.form-grid { grid-template-columns:1fr 1fr; }.form-grid .wide { grid-column:span 2; }
  .recurrence { align-items:stretch; flex-direction:column; }.weekday-grid { gap:5px; }
  .day-choice { min-width:0; padding:9px 3px; }
  .model-choice { padding:14px; }.model-choice strong { font-size:14px; }.model-choice small { font-size:11px; }
  .sticky-actions button { flex:1; }.date-input { font-size:31px; }.figure-grid { display:none; }
}
