/* The Humanizer (/humanizer; HumanizerApp.astro, humanizer.js). Since 5 Dec 2026 ("the mirror"): on a cobalt band like
   the checker, your text and the rewrite are two white sheets side by side; their heads and feet line up. Tokens from
   /assets/app.css; the band is .tool-band (app.css). */
.hz-app { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: stretch; padding-bottom: 12px; }
.hz-app .input-card { border: 0; box-shadow: var(--shadow-cobalt); display: flex; flex-direction: column; }
.hz-app .input-card:has(textarea:focus, input[type="url"]:focus) { outline: 3px solid var(--focus-on-cobalt); outline-offset: 5px; }
.hz-app #hz-form { flex: 1; display: flex; flex-direction: column; }
.hz-app #p-text { flex: 1; display: flex; flex-direction: column; }
.hz-app #p-file, .hz-app #p-url { flex: 1; padding: 22px; }
#hz-text { flex: 1; min-height: 320px; resize: vertical; padding: 18px 24px; caret-color: var(--cobalt); }
#hz-url { width: 100%; font: inherit; border: 1px solid var(--control-edge); border-radius: var(--r); padding: 10px 14px; min-height: 52px; }
.hz-app .input-bar { padding: 12px 16px 12px 24px; }
.hz-app .input-bar .btn.primary { min-height: 52px; padding: 0 30px; font-size: 17px; font-weight: 700; }
/* the rewrite is a text, so it sits on a sheet like the input */
.hz-sheet { background: var(--sheet); color: var(--ink); border-radius: var(--r-sheet); padding: 20px 24px 22px; min-height: 420px; box-shadow: var(--shadow-cobalt); }
.hz-out { white-space: pre-wrap; font: 400 17.5px/1.75 var(--font-read); margin: 0; }
.hz-hint { color: var(--ink-2); font-size: 15px; margin: 10px 0 0; text-wrap: balance; }
.input-card .hz-hint { padding: 0 24px 16px; margin: 0; }
#hz-empty { color: var(--ink-3); font: 400 17.5px/1.75 var(--font-read); }
.hz-warn { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; font-size: 15px; color: var(--ink-2); margin: 12px 0 0; }
.hz-fb { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 18px; }
.hz-fb h3, .hz-fb .hz-fb-q { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }   /* labels, not headings (5 Dec 2026: no H1 to H3 skip) */
.hz-fb .row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.hz-fb textarea { width: 100%; min-height: 76px; resize: vertical; font: 400 16px/1.5 var(--font-text); border: 1px solid var(--control-edge); border-radius: var(--r); padding: 10px 12px; }
.hz-fb textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 1px var(--cobalt); }
.hz-wait { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hz-sub { margin: 12px 0 0; font-size: 17px; font-weight: 500; line-height: 1.5; color: var(--cobalt-l); max-width: none; }
@media (max-width: 980px) { .hz-app { grid-template-columns: minmax(0, 1fr); } .hz-sheet { min-height: 0; } }
@media (max-width: 640px) {
  .hz-sheet { padding: 16px 18px 18px; }
  .input-card .hz-hint { padding: 0 18px 14px; }
  #hz-text { min-height: 240px; padding: 14px 18px; }
  .hz-app .input-bar { padding: 12px; }
  .hz-app .input-bar .btn.primary { flex: 1 1 100%; }
}
/* the queue line sits under both sheets, never in the grid's second column (it pushed the rewrite underneath) */
.hz-app > .tw-qline { grid-column: 1 / -1; margin: 0; }
.tw-qline:empty { display: none; }
