﻿[hidden] { display: none !important; }
.script-main { max-width: 1100px; padding: 40px 0 64px; }
.script-heading { display: flex; justify-content: space-between; gap: 32px; align-items: end; }
.script-heading h1 { margin: 12px 0 0; font-size: clamp(34px, 5vw, 58px); line-height: 1.05; letter-spacing: -.035em; }
.script-heading > p { max-width: 400px; color: #bcc3b5; margin: 0; }
.script-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 14px; padding: 28px 0 12px; }
.script-main label { display: grid; gap: 6px; color: #bcc3b5; font-size: 13px; }
.script-main select, .script-main button { min-height: 44px; border: 1px solid var(--line); border-radius: 0; padding: 10px 14px; font: 15px var(--body); }
.script-main select { background: var(--ink-deep); color: var(--paper); max-width: 100%; }
.script-main button { background: var(--panel); color: var(--paper); cursor: pointer; }
.script-main button.primary-action { color: var(--ink); background: var(--signal); font-weight: 650; }
.script-main button:disabled { opacity: .5; cursor: wait; }
.script-main :is(button, select):focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
#load-status { color: var(--muted); min-height: 24px; margin: 6px 0 18px; }
.script-sheet { border: 1px solid var(--line); background: var(--ink-deep); padding: clamp(20px, 4vw, 42px); }
.call-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-bottom: 2px solid var(--signal); padding-bottom: 20px; }
.call-heading h2 { font: 650 clamp(25px, 3vw, 34px)/1.2 var(--display); margin: 8px 0 0; letter-spacing: -.02em; }
.script-phone { color: var(--cyan); font: 600 clamp(20px, 3vw, 30px) var(--mono); text-underline-offset: 6px; overflow-wrap: anywhere; }
#routing-note { margin: 10px 0 0; color: #bcc3b5; }
.script-meta { font: 11px/1.6 var(--mono); color: var(--muted); margin: 12px 0 22px; }
.script-sheet section { padding: 18px 0; border-bottom: 1px solid var(--line); }
.script-sheet h3 { margin: 0 0 10px; font: 600 20px/1.3 var(--display); }
.script-sheet p { margin-top: 8px; margin-bottom: 8px; }
.script-sheet dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; margin: 16px 0; }
.script-sheet dl div { min-width: 0; }
.script-sheet dt { color: var(--muted); font-size: 12px; }
.script-sheet dd { margin: 2px 0 0; font-size: 18px; overflow-wrap: anywhere; }
.script-sheet .helper { color: var(--muted); font-size: 13px; }
.opening-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.opening-heading h3 { margin-bottom: 0; }
.opening-heading label { max-width: 55%; }
.opening-heading select { width: 100%; }
.script-sheet blockquote { border-left: 3px solid var(--cyan); margin: 14px 0 0; padding: 8px 0 8px 16px; color: var(--paper); font: 500 20px/1.45 var(--body); overflow-wrap: anywhere; }
.script-sheet ul { padding-left: 20px; margin: 10px 0; }
.script-sheet li + li { margin-top: 6px; }
.after-call p, .script-sheet li, #variation-text { color: #bcc3b5; }
.writing-line { display: flex; gap: 12px; align-items: end; padding-top: 12px; }
.writing-line span:empty { flex: 1; border-bottom: 1px solid var(--muted); min-width: 40px; }
.sheet-footer { width: 100%; min-height: 0; padding-top: 20px; border: 0; gap: 16px; line-height: 1.6; text-transform: none; letter-spacing: 0; flex-wrap: wrap; }
.print-only { display: none; }
@media (max-width: 640px) {
    .script-heading, .call-heading, .opening-heading { flex-direction: column; align-items: start; }
    .script-heading { gap: 20px; }
    .script-main { padding-top: 24px; }
    .script-main .opening-heading label { max-width: 100%; width: 100%; }
    .script-toolbar label { width: 100%; }
    .script-sheet dl { grid-template-columns: 1fr; }
    .script-sheet blockquote { font-size: 18px; }
}
@media print {
    @page { size: A4; margin: 14mm; }
    :root { color-scheme: light; --ink: white; --ink-deep: white; --paper: #111; --muted: #555; --line: #ccc; --cyan: #155b53; --signal: #222; }
    html, body { background: white !important; color: #111 !important; min-width: 0; font-size: 10pt; line-height: 1.3; }
    .site-header, .skip-link, .script-heading, .script-toolbar, #load-status, .script-sheet select, .script-sheet label, hug-offline-status { display: none !important; }
    .script-main { width: 100%; max-width: none; padding: 0; }
    .script-sheet { padding: 0; border: 0; }
    .script-sheet section { padding: 8px 0; break-inside: avoid; }
    .script-sheet h3 { font-size: 12pt; margin-bottom: 6px; }
    .script-sheet blockquote { font-size: 11pt; margin-top: 6px; padding-block: 2px; }
    .extra-check[data-variation="none"] { display: none; }
    .script-sheet dd { font-size: 11pt; }
    .script-sheet :is(p, li) { color: #222; }
    .script-sheet dl { margin: 8px 0; gap: 6px 24px; grid-template-columns: 1fr 1fr; }
    .call-heading { padding-bottom: 12px; flex-direction: row; }
    .call-heading h2 { font-size: 20pt; }
    .script-phone { color: #111; font-size: 17pt; text-decoration: none; }
    .script-meta { margin: 8px 0; }
    .print-only { display: block; }
    .sheet-footer { padding-top: 12px; font-size: 8pt; }
}
