/* Shared by the website and Studio. */
:root { --ink: #0b0d12; --muted: #4b5263; --faint: #5f6779; --ground: #f7f8fa; --line: #e3e6ed; --accent: #3f6212; --signal: #c9f45c; --display: 'Inter Tight', Inter, ui-sans-serif, system-ui, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 15px/1.55 Inter, ui-sans-serif, system-ui, sans-serif; background: var(--ground); color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; font: 600 14px Inter, ui-sans-serif, system-ui, sans-serif; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
button:hover:not(:disabled), .button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px #0b0d1255; color: var(--ink); }
button:disabled { opacity: .35; cursor: default; }
button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.button.signal { background: var(--signal); border-color: var(--signal); }
.brand { display: flex; align-items: center; gap: 10px; font: 700 19px var(--display); }

/* Studio */
.studio { display: flex; min-height: 100vh; }
.studio aside { position: sticky; top: 0; align-self: flex-start; height: 100vh; width: 232px; flex: none; display: flex; flex-direction: column; gap: 20px; padding: 24px 16px; background: var(--ink); color: #fff; }
.studio aside .brand { padding: 0 8px; color: #fff; }
.studio nav { display: flex; flex-direction: column; gap: 4px; }
.studio nav a { padding: 11px 12px; border-radius: 10px; color: #9aa3b5; font-weight: 500; }
.studio nav a:hover { color: #fff; background: #161a23; }
.studio nav a[aria-current] { color: #fff; background: #1e2330; font-weight: 600; }
.studio main { flex: 1; min-width: 0; max-width: 940px; padding: 40px clamp(16px, 4vw, 48px) 160px; }
.heading { margin-bottom: 24px; }
.studio h1 { margin: 0 0 16px; font-size: 32px; }
.heading h1 { margin: 0; }
.heading p { margin: 4px 0 0; color: var(--muted); }
.list { background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.item { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 18px 22px; }
.item + .item { border-top: 1px solid var(--line); }
.item > div { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.item a { font-weight: 600; }
.item small { display: block; color: var(--faint); font-size: 13px; }
.empty { margin: 0; padding: 32px 22px; color: var(--muted); }
.badge { padding: 4px 12px; border-radius: 99px; background: #edf9d2; color: #3d5709; font-size: 12px; font-weight: 600; }
.studio section, .studio article { margin-bottom: 16px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.studio article header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.studio article header b { flex: 1 1 160px; overflow-wrap: anywhere; font: 700 16px var(--display); }
.studio label { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 500; color: var(--muted); }
.studio input, .studio textarea, .studio select { display: block; width: 100%; min-height: 44px; margin-top: 5px; padding: 10px 12px; font: 400 15px Inter, ui-sans-serif, system-ui, sans-serif; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 11px; }
.studio textarea { resize: vertical; }
.studio article header select { width: auto; margin: 0; }
.studio input[type=color] { width: 72px; padding: 4px; cursor: pointer; }
.row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; margin-bottom: 12px; }
.row label { margin: 0; }
.said { padding: 10px 14px; background: #fbffee; border: 1px solid #dcefae; border-radius: 11px; font-size: 13px; }
.snippet { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px; background: var(--ink); border-radius: 16px; }
.snippet code { color: var(--signal); font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.bar { position: fixed; bottom: 0; left: 232px; right: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 12px; background: #ffffffee; backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
#status { flex-basis: 100%; margin: 0; text-align: center; font-size: 13px; color: var(--accent); }
#status:empty { display: none; }
@media (max-width: 720px) {
  .studio { display: block; }
  .studio aside { position: static; width: 100%; height: auto; gap: 12px; padding: 16px; }
  .studio nav { flex-direction: row; flex-wrap: wrap; }
  .bar { left: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } button, .button { transition: none; } }
.studio label.check { display: flex; align-items: center; gap: 8px; }
.studio label.check input { width: auto; margin: 0; }
.snippet code { white-space: pre-wrap; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.checklist .done { color: var(--muted); text-decoration: line-through; }
