/* Author area layout (R-0066 / A-0066). Adult surface: loaded after brand.css and parent-theme.css,
   whose tokens it consumes and never redeclares (DESIGN.md). Layout and author-only components only.
   Spec references: R-0066, A-0066. */
/* Base type for the Book Foundry pages (author, story requests, review). These pages set no body font
   of their own, so the browser's default (a serif, with tight single spacing) showed through (Matt,
   2026-11-15: "fonts here are pretty small and very compact/tight"). The family and line height are the
   home page's; sizes are the brand tokens. Fredoka and Hanken Grotesk are loaded by each page's <head>. */
body{ font-family:var(--font-body,'Hanken Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif);
  font-size:var(--fs-body,16px); line-height:1.6; -webkit-font-smoothing:antialiased; }
p, li{ line-height:1.6; }
.wrap{ max-width:var(--page-max,1080px); margin:0 auto; padding:24px 16px 72px; }
.narrow{ max-width:760px; }
h1{ font-size:var(--fs-h1,32px); margin:8px 0 4px; }
.sub{ color:var(--muted); margin:0 0 18px; max-width:70ch; }
.card{ padding:18px 20px; margin:14px 0; }
.card h2{ font-size:var(--fs-title,20px); margin:0 0 6px; }
.muted{ color:var(--muted); }
.small{ font-size:var(--fs-sm,14px); }
label{ display:block; font-weight:600; margin:14px 0 6px; }
label.inline{ display:flex; gap:10px; align-items:flex-start; font-weight:400; margin:10px 0; }
label.inline input{ margin-top:4px; width:20px; height:20px; flex:none; }
input[type=text], textarea, select{ width:100%; box-sizing:border-box; font:inherit; font-size:var(--fs-body,16px);
  padding:10px 12px; border:1px solid var(--line); border-radius:var(--r-input,12px); background:#fff; color:var(--ink); }
textarea{ min-height:120px; resize:vertical; line-height:1.5; }
textarea:focus, input[type=text]:focus, select:focus{ outline:2px solid #cfe0ff; outline-offset:1px; border-color:var(--blue); }
.count{ font-size:var(--fs-caption,12px); color:var(--muted); text-align:right; margin-top:4px; }
.count.over{ color:var(--danger,#dc2626); font-weight:600; }
.example{ background:var(--soft,#eff6ff); border-radius:10px; padding:10px 12px; font-size:var(--fs-sm,14px); color:var(--ink); margin:6px 0 10px; }
.example b{ color:var(--blue-d); }
.row{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.row > *{ flex:1 1 200px; }
.actions{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px; }
.actions .btn{ flex:0 0 auto; }
.btn.ghost{ background:#fff; color:var(--blue-d); border:1.5px solid var(--line); box-shadow:none; }
.btn.ghost:hover{ border-color:var(--blue); background:#fff; color:var(--blue-d); }
.btn.quiet{ background:#fff; color:var(--danger,#dc2626); border:1.5px solid #f3c9c6; box-shadow:none; }
.btn.quiet:hover{ background:#fdecea; color:var(--danger,#dc2626); }
.badge{ display:inline-block; border-radius:var(--r-pill,999px); padding:3px 10px; font-size:var(--fs-caption,12px); font-weight:700;
  background:var(--chip,#eff6ff); color:var(--blue-d); vertical-align:middle; }
.badge.warn{ background:var(--gold-bg,#fff6df); color:var(--gold,#9a6b00); }
.badge.ok{ background:var(--ok-bg,#eef7ee); color:var(--ok,#0b6e3d); }
.badge.off{ background:#f1f1f1; color:var(--muted); }
.msg{ padding:10px 14px; border-radius:10px; margin:12px 0; font-weight:600; background:var(--ok-bg,#eef7ee); color:var(--ok,#0b6e3d); }
.msg.err{ background:#fdecea; color:#b3261e; }
.note{ border-left:3px solid var(--blue); padding:6px 12px; margin:10px 0; white-space:pre-wrap; background:#fff; border-radius:0 8px 8px 0; }
.empty{ border:1px dashed var(--line); border-radius:14px; padding:26px; text-align:center; }
.tabs{ display:flex; gap:4px; border-bottom:1px solid var(--line); margin:18px 0 6px; }
.tabs button{ background:none; border:0; border-bottom:3px solid transparent; padding:12px 16px; min-height:44px; font:inherit;
  font-weight:600; color:var(--muted); cursor:pointer; }
.tabs button[aria-selected=true]{ color:var(--ink); border-bottom-color:var(--blue); }
.req-head{ display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; }
.req-head h3{ margin:0; font-size:var(--fs-lead,18px); }
.ref{ font-variant-numeric:tabular-nums; color:var(--muted); font-size:var(--fs-sm,14px); }
.element{ border:1px solid var(--line); border-radius:12px; padding:12px; margin:10px 0; background:#fff; }
.element .row{ align-items:flex-start; }
.group h3{ margin:18px 0 4px; font-size:var(--fs-lead,18px); }
fieldset{ border:0; padding:0; margin:0; }
legend{ font-weight:600; margin:14px 0 6px; padding:0; }
.choice{ display:flex; gap:10px; flex-wrap:wrap; }
.choice label{ flex:1 1 220px; border:1.5px solid var(--line); border-radius:12px; padding:12px; margin:0; font-weight:400; cursor:pointer; background:#fff; }
.choice label:has(input:checked){ border-color:var(--blue); background:var(--soft,#eff6ff); }
.choice label b{ display:block; }
.sounds{ font-size:var(--fs-sm,14px); }
.sounds code{ background:#fff; border:1px solid var(--line); border-radius:6px; padding:1px 5px; margin:2px; display:inline-block; }
.terms ul{ padding-left:20px; margin:8px 0; } .terms li{ margin:6px 0; }
.saved{ font-size:var(--fs-caption,12px); color:var(--muted); }
.history li{ margin:4px 0; }
