.calculator-page.linear-page .tool-card { padding:clamp(16px,3vw,32px); }
.linear-page h1 { font-size:clamp(2rem,4vw,2.85rem); text-wrap:balance; }
.linear-page .heading-copy { max-width:65ch; }
.linear-workspace { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); gap:28px; align-items:start; }
.linear-inputs { grid-column:1; grid-row:1; min-width:0; }
.linear-results { grid-column:2; grid-row:1; padding:24px; background:var(--green-dark); color:var(--surface); border-radius:3px; min-width:0; }
.linear-results h2 { margin:0 0 12px; font-size:1rem; font-weight:600; }
.linear-net { font-family:Georgia,serif; font-size:clamp(1.75rem,3vw,2.5rem); line-height:1.2; margin:12px 0; overflow-wrap:anywhere; }
.linear-equation { padding:14px 0; border-block:1px solid #809788; line-height:1.6; overflow-wrap:anywhere; }
.linear-results p, .linear-results li, .linear-results textarea { font-variant-numeric:tabular-nums; }
.linear-results :is(.linear-conversion,.linear-status,.copy-status,.linear-boundary) { color:#e2e9de; font-size:.85rem; line-height:1.6; }
.linear-ledger { padding:0; margin:18px 0; list-style:none; }
.linear-ledger li { padding:12px 0; border-bottom:1px solid #809788; }
.linear-ledger :is(strong,span,small) { display:block; overflow-wrap:anywhere; line-height:1.6; }
.linear-ledger small { color:#e2e9de; }
.linear-results .button { background:var(--surface); color:var(--ink); }
.linear-results .button { margin:4px 0; }
.linear-results[data-state="empty"] :is(#linear-copy,.linear-boundary,.linear-conversion,.copy-status) { display:none; }
.linear-results .button:hover { background:#e8eee5; }
.linear-results textarea { width:100%; max-width:100%; background:white; color:var(--ink); font-size:14px; margin-top:12px; }
.linear-run { min-width:0; margin:0 0 22px; padding:18px 0; border:0; border-top:1px solid var(--line); }
.linear-run legend { padding-right:12px; font-size:1rem; font-weight:650; }
.linear-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:14px; }
.linear-opening { margin-top:18px; padding:12px; border-left:3px solid var(--accent); background:var(--soft); }
.linear-opening .linear-pair { margin-top:0; }
.linear-opening button { margin-top:12px; }
.linear-row-actions,.linear-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.linear-page .field { min-width:0; }
.linear-page input { width:100%; }
.linear-page :is(button,input) { touch-action:manipulation; }
.linear-page :is(button,a,input,textarea,summary):focus-visible { outline:3px solid #bc603e; outline-offset:3px; }
.linear-page .notice { margin:16px 0; }
.linear-page [hidden] { display:none !important; }
.linear-diagram { margin:24px 0; max-width:760px; }
.linear-diagram img { width:100%; height:auto; }
.linear-diagram figcaption { font-size:.9rem; color:var(--muted); line-height:1.6; }
.linear-page :is(h1,h2,h3,section[id]) { scroll-margin-top:24px; }
@media(max-width:960px) { .linear-workspace { grid-template-columns:minmax(0,1fr); } .linear-results { grid-column:1; grid-row:1; } .linear-inputs { grid-column:1; grid-row:2; } }
@media(max-width:600px) { .linear-results { padding:18px; } .linear-net { font-size:1.8rem; } .linear-page .tool-heading { display:block; } .linear-page .status-pill { margin-bottom:18px; } .linear-page .button { flex-grow:1; } }

.strip-section { padding-block:28px; border-block:1px solid var(--line); margin-block:32px; }
.strip-section > p { max-width:65ch; }
.strip-workspace { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:28px; align-items:start; }
.strip-result-panel { grid-column:2; grid-row:1; min-width:0; padding:22px; background:var(--soft); border-left:3px solid var(--green-dark); }
.strip-result-panel h3 { margin:0; font-size:1rem; }
.strip-result-panel :is(p,textarea) { font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.strip-result { font-family:Georgia,serif; font-size:clamp(1.6rem,3vw,2.2rem); line-height:1.3; margin:14px 0; }
.strip-equation { line-height:1.7; }
.strip-result-panel textarea { width:100%; max-width:100%; margin-top:12px; }
.strip-form { grid-column:1; grid-row:1; min-width:0; }
.strip-form > .field { margin-bottom:16px; }
.strip-width-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }
.strip-section :is(input,select) { width:100%; min-height:44px; }
.strip-section :is(select):focus-visible { outline:3px solid #bc603e; outline-offset:3px; }
.strip-section .strip-status { font-size:.9rem; line-height:1.65; color:var(--muted); }
@media(max-width:700px) { .strip-workspace { grid-template-columns:minmax(0,1fr); gap:20px; } .strip-result-panel { grid-column:1; grid-row:1; padding:18px; } .strip-form { grid-column:1; grid-row:2; } }
