/* Studio layout. Colors and type come from /brand/brand.css. */
html, body { overscroll-behavior: none; }
.app { position: relative; z-index: 1; max-width: 430px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; box-sizing: border-box; padding-bottom: env(safe-area-inset-bottom); }
.screen { display: flex; flex-direction: column; flex: 1; min-height: 100dvh; box-sizing: border-box; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 6px 20px; padding-top: max(14px, env(safe-area-inset-top)); min-height: 44px; }
.top.center { padding-left: 12px; }
.head { padding: 26px 24px 0; display: flex; flex-direction: column; gap: 10px; }
.head.tight { padding-top: 16px; }
.chips { display: flex; align-items: flex-end; gap: 6px; padding-top: 2px; min-height: 38px; flex-wrap: wrap; }
.chip { font: 22px var(--serif); color: var(--faint); padding: 0 4px 2px; border-bottom: 1.5px solid transparent; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; }
.chip.now { color: var(--ink); border-bottom-color: var(--ink); }
.chip svg { display: block; }
.padwrap { padding: 20px 24px 0; }
.padwrap.tight { padding-top: 16px; }
.pad { position: relative; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pad svg.lines { display: block; width: 100%; height: auto; }
.pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.pad .hint { position: absolute; left: 0; right: 0; top: 43%; text-align: center; font: italic 20px var(--serif); color: var(--faint); pointer-events: none; }
.pad .timer { position: absolute; left: 0; bottom: -3px; height: 2px; background: var(--ink); width: 0; opacity: 0.5; }
.saved { padding: 10px 24px 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-height: 20px; }
.spacer { flex: 1; min-height: 16px; }
.price { margin: 0 24px 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.row { padding: 0 24px 26px; display: flex; gap: 10px; }
.row .btn { flex: 1; }
.toggle { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; font-size: 15px; cursor: pointer; padding: 0 24px; }
.toggle .sw { position: relative; width: 48px; height: 28px; border-radius: 14px; border: 1px solid var(--line); display: inline-block; flex: none; box-sizing: border-box; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 10px; background: var(--ink); transition: left 0.15s; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle input:checked + .sw::after { left: 23px; }
.toggle input:focus-visible + .sw { outline: 2px solid var(--ink); outline-offset: 2px; }
.lefty .row { flex-direction: row-reverse; }

/* preview */
.hero-word { padding: 6px 24px 0; min-height: 96px; }
.hero-word svg { display: block; max-width: 100%; height: auto; overflow: visible; }
.section { padding: 18px 24px 0; }
.label { display: block; font: 500 11px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.preview-card { padding: 18px 18px 16px; min-height: 64px; }
.preview-card svg { display: block; width: 100%; height: auto; overflow: visible; }
.gap { fill: none; stroke: var(--faint); stroke-dasharray: 3 3; }
.gapbox { cursor: pointer; }
.need { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.need .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
.pens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pen { min-height: 72px; border: 1px solid var(--field); background: transparent; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; padding: 6px 2px; color: var(--ink); font: 500 12px var(--sans); -webkit-tap-highlight-color: transparent; }
.pen[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pen svg { display: block; height: 34px; width: auto; overflow: visible; }
.inks { display: flex; gap: 10px; }
.inkdot { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--field); background: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.inkdot span { width: 22px; height: 22px; border-radius: 11px; display: block; }
.inkdot[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.slider { width: 100%; accent-color: var(--ink); height: 44px; }
.slider-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: -6px; }
.actions { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.actions .two { display: flex; gap: 10px; }
.actions .two .btn { flex: 1; }

/* sheets */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 10; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; top: 104px; z-index: 11; max-width: 430px; margin: 0 auto; display: flex; flex-direction: column; overflow: auto; background: var(--paper); box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.16); padding-bottom: env(safe-area-inset-bottom); }
.sheet::before { content: ""; position: absolute; inset: 0; background-image: var(--paper-texture); opacity: var(--paper-texture-opacity); mix-blend-mode: multiply; pointer-events: none; }
.sheet > * { position: relative; }
.sheet.short { top: auto; max-height: 85dvh; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 0 24px; }
.ticks { list-style: none; margin: 0; padding: 14px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; }
.ticks svg { flex: none; margin-top: 1px; }
.steps { margin: 0; padding: 12px 24px 0 44px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.45; }
.menu-list { list-style: none; margin: 0; padding: 8px 12px 20px; }
.menu-list button, .menu-list label.mi { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 12px; border: 0; background: transparent; font: 16px var(--sans); color: var(--ink); text-align: left; cursor: pointer; border-bottom: 1px solid rgba(0, 0, 0, 0.06); box-sizing: border-box; }
.banner { margin: 12px 24px 0; padding: 12px 14px; border: 1px solid var(--line); font-size: 14px; line-height: 1.45; display: flex; flex-direction: column; gap: 8px; }
.note { margin: 10px 24px 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; font-size: 14px; z-index: 20; border-radius: 2px; max-width: 86vw; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.photo-img { width: 100%; height: auto; display: block; }
.box-label { font: 600 12px var(--sans); }
@media (min-width: 700px) {
  .app { padding-top: 24px; }
  .sheet { top: 80px; }
}
