:root {
  color-scheme: dark;
  --bg: #0b0b0a;
  --surface: #14130f;
  --surface-2: #1b1811;
  --line: #373023;
  --text: #f7f4ed;
  --muted: #aca69a;
  --orange: #ffad28;
  --orange-2: #ff8614;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
a { color: var(--orange); overflow-wrap: anywhere; }
.panel > *, .two-col > * { min-width: 0; }
.expression, .answer { overflow-wrap: anywhere; white-space: pre-wrap; }
.tabs { margin-top: 24px; }
input[type=file] { max-width: 100%; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% 5%, #261907 0, var(--bg) 32rem); color: var(--text); }
button, input, textarea, select { font: inherit; }
.site-header { height: 72px; padding: 0 max(24px, calc((100vw - 1080px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #28241c; background: rgba(11,11,10,.88); backdrop-filter: blur(14px); }
.brand { display: flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none; font-weight: 750; font-size: 20px; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: #161006; background: linear-gradient(135deg,var(--orange),var(--orange-2)); font-size: 12px; font-weight: 900; }
.studio-label { color: var(--muted); font-size: 14px; }
main { width: min(1080px, calc(100% - 32px)); margin: 0 auto; padding: 70px 0 80px; }
.intro { max-width: 730px; margin-bottom: 40px; }
.eyebrow { color: var(--orange); letter-spacing: .14em; font-size: 12px; font-weight: 850; }
h1 { margin: 12px 0 16px; font-size: clamp(40px, 7vw, 72px); line-height: .98; letter-spacing: -.055em; }
h2 { margin: 9px 0 12px; font-size: clamp(28px,4vw,44px); letter-spacing: -.04em; }
p { color: var(--muted); line-height: 1.6; }
.tabs { display: flex; gap: 4px; width: fit-content; margin-bottom: -1px; padding: 5px; border: 1px solid var(--line); border-radius: 14px 14px 0 0; background: #100f0c; }
.tab { min-width: 130px; border: 0; border-radius: 9px; padding: 12px 18px; color: var(--muted); background: transparent; cursor: pointer; font-weight: 750; }
.tab.active { color: #181006; background: var(--orange); }
.panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; padding: clamp(24px, 5vw, 58px); border: 1px solid var(--line); border-radius: 0 22px 22px 22px; background: linear-gradient(145deg, rgba(27,24,17,.96), rgba(16,15,12,.96)); box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.panel[hidden] { display: none; }
.panel-copy { align-self: start; position: sticky; top: 24px; }
.tool-form { display: grid; gap: 18px; }
label, legend { color: #e8e3da; font-size: 14px; font-weight: 700; }
input, textarea, select { width: 100%; margin-top: 8px; border: 1px solid #494033; border-radius: 11px; padding: 13px 14px; color: var(--text); background: #0f0e0b; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,173,40,.12); }
textarea { resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload { display: block; padding: 16px; border: 1px dashed #62533e; border-radius: 12px; background: rgba(255,173,40,.03); }
.upload input { margin: 10px 0 0; padding: 8px; border: 0; background: transparent; }
.upload span { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
fieldset { margin: 0; padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.checks label { display: flex; align-items: center; gap: 8px; font-weight: 550; }
.checks input { width: auto; margin: 0; accent-color: var(--orange); }
.primary { border: 0; border-radius: 999px; padding: 15px 22px; color: #171006; background: linear-gradient(135deg,var(--orange),var(--orange-2)); cursor: pointer; font-weight: 850; }
.primary:disabled { opacity: .55; cursor: wait; }
.status { min-height: 1.4em; margin: -6px 0 0; font-size: 14px; }
.status.error { color: #ff968f; }
.result { margin-top: 8px; padding: 18px; border: 1px solid #4f432f; border-radius: 14px; background: #0e0d0a; }
.result h3 { margin: 0 0 12px; }
.result ol { padding-left: 22px; }
.result li { margin: 12px 0; color: var(--muted); }
.expression { display: block; margin-top: 4px; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.verified { color: #94d997; font-weight: 700; }
.unverified { color: #ffb75c; font-weight: 700; }
.install-note { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; margin-top: 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 16px; }
.install-note span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #211506; background: var(--orange); font-weight: 900; }
.install-note p { margin: 0; font-size: 13px; }

@media (max-width: 760px) {
  main { padding-top: 42px; }
  .panel { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
  .panel-copy { position: static; }
  .two-col, .checks { grid-template-columns: 1fr; }
  .install-note { grid-template-columns: auto 1fr; }
  .tab { min-width: 115px; }
}
