body { background: var(--page); color: var(--text); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; translate: 0 -160%; padding: 10px 14px; background: var(--text); color: white; border-radius: 8px; }
.skip-link:focus { translate: 0; }
.eyebrow { margin: 0; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tool-hero { width: min(1180px, calc(100% - 32px)); margin: auto; padding: clamp(54px,9vw,110px) 0 clamp(32px,5vw,58px); }
.tool-hero h1 { margin: 14px 0 22px; font-family: var(--font-serif); font-size: clamp(48px,7vw,96px); line-height: 1; letter-spacing: -.06em; }
.tool-hero h1 em { color: var(--accent); font-style: normal; }
.tool-hero > p:last-child { color: var(--muted); line-height: 1.8; }

.workspace { width: min(1450px, calc(100% - 24px)); margin: auto; display: grid; grid-template-columns: minmax(0,1fr) 280px minmax(0,1fr); gap: 14px; }
.editor-card, .options-card, .summary-card, .content-section { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.editor-card { overflow: hidden; }
.editor-card header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.editor-card h2, .options-card h2, .content-section h2 { margin: 7px 0 0; font-family: var(--font-serif); }
.editor-card header div:last-child { display: flex; gap: 8px; }
.editor-card button { min-height: 38px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--text); }
textarea { width: 100%; min-height: 520px; resize: vertical; border: 0; background: var(--surface); color: var(--text); padding: 20px; font-family: var(--font-mono); line-height: 1.7; }
.options-card { padding: 24px; align-self: start; }
.options-card label { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.options-card label:last-of-type { display: grid; gap: 7px; }
.options-card select { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); color: var(--text); padding-inline: 10px; }
.primary-button { width: 100%; min-height: 46px; margin-top: 20px; border: 0; border-radius: 11px; background: var(--primary); color: white; font-weight: 800; }
#app-status { color: var(--muted); font-size: 11px; line-height: 1.6; }

.summary-card { width: min(800px, calc(100% - 32px)); margin: 18px auto 0; display: grid; grid-template-columns: repeat(3,1fr); overflow: hidden; }
.summary-card div { padding: 20px; text-align: center; }
.summary-card div + div { border-left: 1px solid var(--line); }
.summary-card strong { display: block; font-size: 30px; }
.summary-card span { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; }

.content-section { width: min(1180px, calc(100% - 32px)); margin: 30px auto 0; padding: 28px; }

@media (max-width: 1050px) { .workspace { grid-template-columns: 1fr; } .options-card { order: -1; } }
@media (max-width: 620px) { .summary-card { grid-template-columns: 1fr; } .summary-card div + div { border-left: 0; border-top: 1px solid var(--line); } }
