body { background: var(--page); color: var(--text); }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; translate: 0 -160%; padding: 10px 14px; border-radius: 8px; background: var(--text); color: white; }
.skip-link:focus { translate: 0; }
.tool-hero { width: min(1180px, calc(100% - 32px)); margin: auto; padding: clamp(60px,10vw,130px) 0 clamp(36px,6vw,72px); }
.eyebrow { margin: 0; color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.tool-hero h1 { margin: 14px 0 22px; font-family: var(--font-serif); font-size: clamp(50px,8vw,108px); line-height: .98; letter-spacing: -.065em; }
.tool-hero h1 em { color: var(--accent); font-style: normal; }
.tool-hero > p:last-child { max-width: 720px; color: var(--muted); line-height: 1.9; }

.counter-workspace { width: min(1400px, calc(100% - 24px)); margin: auto; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(300px,.6fr); gap: 14px; }
.editor-card, .stats-card, .keyword-card { border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.editor-card { overflow: hidden; }
.editor-card header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px; border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.editor-card h2, .stats-card h2, .keyword-card 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); }
#text-input { width: 100%; min-height: 600px; resize: vertical; border: 0; background: var(--surface); color: var(--text); padding: 26px; font-family: var(--font-serif); font-size: 18px; line-height: 1.9; }
.editor-card footer { display: flex; justify-content: space-between; gap: 18px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); font-size: 11px; }

.stats-card { padding: 28px; align-self: start; }
.stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-top: 24px; }
.stat-grid div { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-soft); }
.stat-grid strong { display: block; font-size: 30px; line-height: 1; }
.stat-grid span { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }
.stats-card dl { display: grid; margin: 24px 0 0; }
.stats-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.stats-card dt { color: var(--muted); font-size: 11px; }
.stats-card dd { margin: 0; font-weight: 700; }

.keyword-card { width: min(1180px, calc(100% - 32px)); margin: 30px auto 0; padding: 28px; }
.keyword-list { display: grid; gap: 8px; margin-top: 20px; }
.keyword-item { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.keyword-item span:last-child { color: var(--muted); font-size: 11px; }
.keyword-list > p { color: var(--muted); }

@media (max-width: 980px) { .counter-workspace { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .editor-card header, .editor-card footer { align-items: stretch; flex-direction: column; } .stat-grid { grid-template-columns: 1fr; } }
