:root {
  --ink: #18212b;
  --muted: #697684;
  --line: #dce3e8;
  --paper: #ffffff;
  --wash: #f5f7f8;
  --accent: #146c94;
  --accent-dark: #0d506f;
  --danger: #a43d3d;
  --success: #236b4b;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--wash); color: var(--ink); font: 15px/1.5 Inter, ui-sans-serif, system-ui, sans-serif; }
.centered { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: 0 8px 30px rgba(24, 33, 43, .05); }
.login-card { max-width: 440px; text-align: center; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
h1 { margin: 6px 0 10px; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; }
h2 { margin: 0; font-size: 18px; }
.muted, .hint, .fine-print { color: var(--muted); }
.fine-print { font-size: 12px; margin: 18px 0 0; }
.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: var(--accent); color: #fff; cursor: pointer; font: inherit; font-weight: 700; padding: 11px 18px; text-decoration: none; }
.button:hover { background: var(--accent-dark); }
.google-button { width: 100%; margin-top: 16px; }
.topbar { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: var(--paper); padding: 18px max(24px, calc((100vw - 1120px) / 2)); }
.brand { color: var(--ink); font-size: 13px; font-weight: 900; letter-spacing: .15em; text-decoration: none; }
.account { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: 13px; }
.account form { margin: 0; }
.link-button { border: 0; background: transparent; color: var(--accent); cursor: pointer; font: inherit; padding: 0; }
.shell { max-width: 1120px; margin: 0 auto; padding: 56px 24px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; }
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label { display: block; font-weight: 700; margin: 0 0 8px; }
label + input, label + textarea { margin-bottom: 20px; }
.file-label { color: var(--muted); font-size: 12px; font-weight: 600; }
input[type="file"] { background: #fff; font-size: 12px; padding: 8px; }
input, textarea { display: block; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfc; color: var(--ink); font: inherit; padding: 11px 12px; }
textarea { min-height: 250px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); outline: 3px solid rgba(20, 108, 148, .12); }
.hint { font-size: 12px; margin: -10px 0 0; }
code { border-radius: 4px; background: #edf3f5; color: var(--accent-dark); padding: 2px 5px; font-family: ui-monospace, monospace; font-size: 12px; }
.variable-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 18px; }
.label-small { width: 100%; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.secondary { background: #e8eff2; color: var(--accent-dark); }
.secondary:hover { background: #dce8ed; }
.alert { border-radius: 8px; margin: 0 0 20px; padding: 12px 14px; }
.alert.error { background: #fbecec; color: var(--danger); }
.alert.success { background: #e9f6ef; color: var(--success); }
.preview { margin-top: 20px; }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.section-title span { color: var(--muted); font-size: 12px; }
.preview-frame { overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-height: 100px; padding: 22px; }
@media (max-width: 760px) {
  .workspace { grid-template-columns: 1fr; }
  .actions { grid-column: auto; flex-direction: column; }
  .actions .button { width: 100%; }
  .page-heading, .topbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .account { width: 100%; justify-content: space-between; }
}
