.intro{padding:32px 0 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}.intro h1{font-size:26px;font-weight:650;letter-spacing:-.03em}.intro-copy{font-size:14px;color:var(--muted);margin-top:8px}.privacy-badge{font-size:12px;display:flex;align-items:center;gap:6px;color:var(--muted);flex-shrink:0}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px;align-items:start}.editor-panel,.result-card,.settings-card,.limit-card,.preview-card{border:1px solid var(--border);border-radius:8px;background:#fff;box-shadow:0 1px 2px #00000008;min-width:0}.editor-panel{overflow:hidden}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;border-bottom:1px solid var(--border)}.panel-header h2,.settings-title h2,.result-label h2{font-size:14px;font-weight:600}.editor-actions{display:flex;gap:4px}.editor-actions button{font-size:12px}#text{display:block;width:100%;min-height:330px;padding:16px;border:0;border-radius:0;resize:vertical;background:#fff;font-size:16px;line-height:1.9;color:var(--ink);box-shadow:none}#text::placeholder{color:#a1a1aa}.editor-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 16px;padding:8px 0;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}.source-stats{display:grid;grid-template-columns:1fr 1fr 1.5fr;padding:16px;gap:12px;border-top:1px solid var(--border)}.source-stats>div{display:flex;flex-direction:column;gap:4px}.source-stats span{font-size:12px;color:var(--muted)}.source-stats strong{font-size:20px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.source-stats small{font-size:12px;font-weight:400;color:var(--muted)}.count-panel{display:flex;flex-direction:column;gap:16px}.result-card{padding:20px}.result-label{display:flex;justify-content:space-between;gap:8px;align-items:center}.result-label>span{font-size:11px;background:#f4f4f5;border-radius:4px;padding:3px 6px;color:var(--muted)}.big-count{display:flex;align-items:baseline;gap:8px;margin:12px 0}.big-count>span:first-child{font-size:48px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.2;letter-spacing:-.04em;overflow-wrap:anywhere;min-width:0}.big-count .unit{font-size:14px;color:var(--muted)}.width-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding-top:14px;border-top:1px solid var(--border);gap:8px}.width-counts>div{display:flex;flex-direction:column;gap:4px}.width-counts span{font-size:12px;color:var(--muted)}.width-counts strong{font-size:20px;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.unit-note{font-size:12px;color:var(--muted);margin-top:12px}.settings-card{padding:16px}.settings-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.settings-title button{font-size:12px}.select-label,.exclude-label{font-size:13px;display:block;color:var(--muted);margin-bottom:8px}.settings-card select{width:100%;border:1px solid var(--border);border-radius:6px;background:#fff;min-height:44px;padding:8px 12px;font-size:14px}.exclude-label{margin-top:16px}.filter-options label{position:relative;display:flex;align-items:center;gap:10px;min-height:44px;font-size:13px;cursor:pointer}.filter-options input{position:absolute;width:18px;height:18px;opacity:0;margin:0}.custom-check{display:grid;place-items:center;width:16px;height:16px;flex-shrink:0;border:1px solid #a1a1aa;border-radius:4px;background:#fff}.filter-options input:checked+.custom-check{background:#18181b;border-color:#18181b}.filter-options input:checked+.custom-check:after{content:'✓';font-size:12px;color:#fff;line-height:1}.filter-options input:focus-visible+.custom-check{outline:2px solid #a1a1aa;outline-offset:3px}.filter-hint{font-size:11px;color:#a1a1aa;margin-left:auto}.limit-card,.preview-card{padding:20px}.limit-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.limit-top h2{font-size:14px;font-weight:600}.limit-input{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}.limit-input input{width:115px;border:1px solid var(--border);border-radius:6px;min-height:44px;padding:8px 10px;text-align:right;background:#fff;font-size:16px}.limit-input input::placeholder{font-size:13px}.limit-presets{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px}.limit-presets>span{font-size:12px;color:var(--muted)}.limit-presets button{font-size:12px;padding:8px 10px;min-height:40px;border:1px solid var(--border);border-radius:6px;background:#fff}.limit-presets button[aria-pressed=true]{background:#18181b;color:#fff;border-color:#18181b}.progress-track{height:6px;background:#f4f4f5;border-radius:3px;overflow:hidden;margin-top:16px}#progress-fill{height:100%;max-width:100%;background:#18181b}#remaining{font-size:13px;color:var(--muted);margin-top:8px;text-align:right}.over-limit #progress-fill{background:#dc2626}.over-limit #remaining,#limit-error{color:#b91c1c}#limit-error{font-size:13px;margin-top:10px}.preview-card{grid-column:1/-1}.preview-card summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;font-size:14px;font-weight:500;list-style:none}.preview-card summary::-webkit-details-marker{display:none}.preview-chevron{font-size:18px;color:var(--muted)}.preview-card details[open] .preview-chevron{transform:rotate(45deg)}.preview-note{font-size:13px;color:var(--muted);margin:16px 0 8px}#filtered-preview{font:inherit;font-size:14px;background:#fafafa;border:1px solid var(--border);border-radius:6px;padding:14px;min-height:80px;max-height:300px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 12px}.site-footer strong{font-size:14px;color:var(--ink)}@media(min-width:761px){.count-panel{grid-column:2;grid-row:1/3}.limit-card{grid-column:1}}@media(max-width:760px){.intro{display:block;padding:24px 0 20px}.intro h1{font-size:24px}.privacy-badge{margin-top:12px}.workspace{display:flex;flex-direction:column}.editor-panel,.count-panel,.limit-card,.preview-card{width:100%}.count-panel{display:contents}.result-card{width:100%;order:-1}.settings-card{width:100%;order:1}.limit-card{order:2}.preview-card{order:3}.filter-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.filter-hint{display:none}#text{min-height:240px}.big-count>span:first-child{font-size:40px}.panel-header{padding:10px 12px}.source-stats{padding:14px}.editor-bottom{margin:0 12px}.editor-bottom button{font-size:12px}.limit-top{flex-wrap:wrap}.limit-presets>span{width:100%}}@media(max-width:360px){.source-stats{gap:8px}.source-stats span{font-size:11px}.editor-actions{gap:0}.editor-actions button{padding:8px}.editor-bottom{align-items:flex-start;flex-direction:column}}
/* Keep the count directly below the text, with one reading order on every screen. */
.workspace{display:flex;flex-direction:column;gap:18px}.workspace>section{width:100%;order:initial}.editor-panel .panel-header{padding:14px 20px}.editor-actions{gap:8px;flex-wrap:wrap}.editor-actions #copy-source{color:var(--ink)}#text{min-height:270px;padding:20px}.editor-panel .result-card{background:#f8f7fc;color:var(--ink);border:0;border-top:1px solid var(--border);border-radius:0;padding:20px 24px;box-shadow:none}.editor-panel .result-label h2{color:var(--ink);font-size:13px}.editor-panel .result-label>span{background:#eeebf7;color:#6b6283}.count-summary{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(0,4fr);gap:32px;align-items:center;margin-top:8px}.editor-panel .big-count{margin:0;gap:8px}.editor-panel .result-card .big-count>span:first-child{font-size:64px;line-height:1.15;font-weight:650;color:var(--ink);letter-spacing:-.05em}.editor-panel .result-card .unit{color:var(--muted)}.editor-panel .width-counts{grid-template-columns:repeat(6,minmax(0,1fr));padding:0 0 0 28px;border:0;border-left:1px solid #e4dfef;gap:18px}.editor-panel .result-card .width-counts span{font-size:12px;color:var(--muted)}.editor-panel .result-card .width-counts strong{font-size:23px;color:var(--ink);font-weight:600;overflow-wrap:anywhere}.editor-panel .result-card #bytes{font-size:23px;color:var(--ink)}.width-counts small{font-size:11px;font-weight:400;color:var(--muted)}.workspace>.settings-card{padding:22px 24px}.workspace>.settings-card select{max-width:340px}.workspace>.settings-card .filter-options{display:flex;flex-wrap:wrap;gap:4px 30px}.workspace>.settings-card .filter-options label{gap:8px}.workspace>.settings-card .filter-hint{display:none}.preview-card{grid-column:auto}.result-card[data-long=true] .big-count>span:first-child{font-size:48px}
@media(max-width:1000px){.editor-panel .width-counts{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 20px}.count-summary{grid-template-columns:minmax(140px,1fr) minmax(0,3fr);gap:20px}}
@media(max-width:760px){.editor-panel .panel-header{padding:12px 16px;align-items:flex-start;flex-wrap:wrap}.panel-header h2{padding-top:10px}.editor-actions{gap:2px;margin-left:auto}.editor-actions button{font-size:11px;padding:8px}.editor-panel .result-card{order:initial;padding:18px 20px}.count-summary{grid-template-columns:1fr;gap:18px;margin-top:10px}.editor-panel .result-card .big-count>span:first-child{font-size:56px}.editor-panel .width-counts{border:0;border-top:1px solid #e4dfef;padding:16px 0 0;gap:16px}.editor-panel .result-card .width-counts strong,.editor-panel .result-card #bytes{font-size:22px}.workspace>.settings-card{padding:20px}.workspace>.settings-card select{max-width:none}.workspace>.settings-card .filter-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}#text{min-height:230px;padding:16px}.result-card[data-long=true] .big-count>span:first-child{font-size:42px}}
@media(max-width:360px){.editor-panel .panel-header{display:block}.editor-actions{justify-content:flex-end}.editor-panel .width-counts{gap:14px 8px}.editor-panel .result-card .width-counts span{font-size:11px}}

/* The count stays directly below the editor, on the original dark surface. */
.editor-panel .result-card{background:#23232f;color:#fff;border-top-color:#23232f}
.editor-panel .result-label h2{color:#c4c0db}
.editor-panel .result-label>span{background:#ffffff0b;color:#c7c0f1}
.editor-panel .result-card .big-count>span:first-child{color:#fff}
.editor-panel .result-card .unit,.editor-panel .result-card .width-counts span,.editor-panel .width-counts small{color:#bbb6ce}
.editor-panel .result-card .width-counts strong,.editor-panel .result-card #bytes{color:#e0dafc}
.editor-panel .width-counts{border-color:#ffffff20}
