:root {
  --ink: #20222a; --muted: #667085; --paper: #f7f6f2; --panel: #fff; --line: #e2e2e6;
  --accent: #5846e8; --soft: #efedff; --good: #147d58;
}
html { background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
body { margin: 0; }
.studio-page { box-sizing: border-box; max-width: 1180px; margin: 0 auto; padding: 18px 24px 80px; }
.studio-page a { color: var(--accent); text-underline-offset: 3px; }
.hero { padding: 56px 0 40px; max-width: 780px; }
.hero h1, .page-intro h1, .app-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.045em; margin: 12px 0 18px; }
.hero p, .page-intro p, .app-head p { color: var(--muted); font-size: 1.06rem; line-height: 1.6; max-width: 68ch; }
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .12em; color: var(--accent); }
.button-primary, .button-secondary, .button-danger, .button-quiet {
  display: inline-flex; min-height: 44px; align-items: center; justify-content: center; box-sizing: border-box;
  padding: 0 18px; border: 1px solid transparent; border-radius: 12px; font-weight: 700; text-decoration: none;
  cursor: pointer; font-size: .95rem;
}
.button-primary { background: var(--accent); color: white !important; }
.button-secondary { background: var(--panel); border-color: var(--line); color: inherit; }
.button-quiet { background: var(--panel); border-color: var(--line); min-height: 38px; padding: 0 14px; font-size: .9rem; color: inherit; }
.button-primary:disabled, .button-secondary:disabled, .button-quiet:disabled { opacity: .55; cursor: not-allowed; }
.section-heading { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; margin: 34px 0 18px; }
.section-heading h2 { font-size: 1.6rem; letter-spacing: -.02em; margin: 8px 0 0; }
.section-heading p { color: var(--muted); margin: 0; max-width: 46ch; font-size: .95rem; }
.app-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.app-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px 22px; }
.app-card h3 { font-size: 1.22rem; line-height: 1.25; margin: 10px 0 10px; letter-spacing: -.015em; }
.app-card p { color: var(--muted); line-height: 1.55; font-size: .97rem; }
.app-limits { margin: 12px 0 16px; padding-left: 18px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.app-limits li { margin-bottom: 6px; }
.app-licence { font-size: .85rem; border-top: 1px dashed var(--line); padding-top: 12px; }
.limit-list { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.6; max-width: 78ch; }
.limit-list li { margin-bottom: 8px; }
.fine-print { color: var(--muted); font-size: .86rem; line-height: 1.5; max-width: 74ch; }
.app-head { display: grid; gap: 12px; margin: 30px 0 18px; }
.app-head h1 { margin: 8px 0 6px; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.app-commands { display: flex; flex-wrap: wrap; gap: 8px; }
.app-status { min-height: 22px; margin: 4px 0 0; font-size: .95rem; color: var(--muted); }
.app-output { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; overflow: auto; max-height: 260px; font-size: .82rem; }
.app-files { margin: 18px 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.app-files h2 { font-size: 1.05rem; margin: 0 0 10px; }
.app-files ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.app-files li { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.file-name { font-size: .95rem; overflow-wrap: anywhere; }
.app-frame-wrap { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #1c1c1c; }
.app-frame { display: block; width: 100%; height: min(78vh, 900px); border: 0; }
.app-missing { color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; padding: 22px; }
.page-intro { padding: 40px 0 10px; }
@media (max-width: 520px) {
  .studio-page { padding: 12px 16px 60px; }
  .hero { padding: 34px 0 26px; }
  .app-frame { height: 72vh; }
}

/* Theme tokens (Shared presets: a person's theme and light/dark follow), over the palette above. */
:root {
  --ink: var(--text-primary, #e6edf7); --muted: var(--text-secondary, #96a7c2); --paper: var(--bg-primary, #0a0f1c);
  --panel: var(--bg-card, #131c2e); --line: var(--border, #26344d); --accent: var(--accent-light, #60a5fa);
  --soft: color-mix(in srgb, var(--accent, #3b82f6) 12%, transparent); --good: var(--success, #22c55e);
}
html { background: var(--paper); color: var(--ink); }

/* The short home (11-08): three features per app as quiet chips, one width buttons on a phone. */
.app-features { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; padding: 0; }
.app-features li { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; color: var(--muted); }
.app-card h3 { font-size: 1.5rem; margin: 0 0 6px; }
#limits { margin-top: 44px; }
#limits h2 { font-size: 1.25rem; margin: 0 0 10px; }
#licences .fine-print a { color: inherit; }
@media (max-width: 600px) { .hero .button-primary, .hero .button-secondary { display: flex; align-items: center; justify-content: center; min-height: 48px; padding-top: 0; padding-bottom: 0; margin: 0 0 10px; } }
