@font-face{font-family:PostRounded;src:url("./fonts/MPLUSRounded1c-Medium.woff2") format("woff2");font-weight:400 600;font-display:swap}
@font-face{font-family:PostRounded;src:url("./fonts/MPLUSRounded1c-Bold.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:PostRounded;src:url("./fonts/MPLUSRounded1c-ExtraBold.woff2") format("woff2");font-weight:800 900;font-display:swap}
@font-face{font-family:PostUI;src:url("./fonts/ZenKakuGothicNew-Regular.woff2") format("woff2");font-weight:400 600;font-display:swap}
@font-face{font-family:PostUI;src:url("./fonts/ZenKakuGothicNew-Bold.woff2") format("woff2");font-weight:700 900;font-display:swap}
:root{color-scheme:light;--ink:#51414a;--muted:#796470;--blue:#b93d69;--page:#fffdfc;--pc:#fff6f8;--phone:#fff5e9;--pc-border:#f4d5e0;--phone-border:#efdfcd;--line:#eedce3;--button:#fff0df;--button-ink:#c83f73;--button-hover:#ffe7cf;--check:255,116,142;--editor-head:#fff0f4;--phone-ink:#91624c}
:root[data-pattern="lavender"]{--ink:#50465e;--muted:#6b637c;--blue:#8055af;--page:#fdfbff;--pc:#f1ecf8;--phone:#fff8e7;--pc-border:#d9cbe8;--phone-border:#e9dcb8;--line:#e0d8e9;--button:#e4d4f5;--button-ink:#71459c;--button-hover:#dac5f0;--check:179,155,216;--editor-head:#e6dcf2;--phone-ink:#8b6b37}
:root[data-pattern="mint"]{--ink:#36545a;--muted:#587078;--blue:#0b7782;--page:#fcffff;--pc:#effbfc;--phone:#fff7ee;--pc-border:#c7e9ec;--phone-border:#f1dfcd;--line:#d2e9eb;--button:#bae9e5;--button-ink:#0c6874;--button-hover:#a9e1dc;--check:100,215,214;--editor-head:#e1f7f7;--phone-ink:#946b4b}
:root[data-pattern="lemon"]{--ink:#374c5d;--muted:#536b7d;--blue:#007eaf;--page:#fcfeff;--pc:#eaf8ff;--phone:#fff9e4;--pc-border:#b6e5fa;--phone-border:#eee0aa;--line:#cce6f2;--button:#ffe58d;--button-ink:#735b20;--button-hover:#ffdf71;--check:100,200,245;--editor-head:#d8f2ff;--phone-ink:#836b28}
:root[data-pattern="cocoa"]{--ink:#5c4940;--muted:#77665e;--blue:#92644b;--page:#fdfbf7;--pc:#f4eae3;--phone:#fff8e9;--pc-border:#dfcbbf;--phone-border:#e6d9bb;--line:#e2d6ca;--button:#86604d;--button-ink:#fff;--button-hover:#704d3c;--check:189,160,138;--editor-head:#eadcd0;--phone-ink:#876b43}
/* Secondary colors distinguish wrapped lines from each theme's main color. */
:root{--secondary:#c1e0b6;--secondary-ink:#466e3d;--phone:#f1f8ee;--phone-border:#c2d9bb;--phone-ink:var(--secondary-ink);--button:var(--secondary);--button-ink:var(--secondary-ink);--button-hover:#b0d5a3}
:root[data-pattern="lavender"]{--secondary:#efcf87;--secondary-ink:#85621f;--phone:#fcf6e7;--phone-border:#e5d4ad;--phone-ink:var(--secondary-ink);--button:var(--secondary);--button-ink:var(--secondary-ink);--button-hover:#e7c173}
:root[data-pattern="mint"]{--secondary:#ffc6c2;--secondary-ink:#9c514e;--phone:#fff2f0;--phone-border:#edccc8;--phone-ink:var(--secondary-ink);--button:var(--secondary);--button-ink:var(--secondary-ink);--button-hover:#ffb5b0}
:root[data-pattern="lemon"]{--secondary:#fff0b5;--secondary-ink:#836b28}
:root[data-pattern="cocoa"]{--secondary:#ffc28a;--secondary-ink:#92501d;--phone:#fff3e6;--phone-border:#edcbac;--phone-ink:var(--secondary-ink);--button:var(--secondary);--button-ink:var(--secondary-ink);--button-hover:#ffb674}
/* Match the darker intersection of the header's two 16% gingham layers. */
:root,:root[data-pattern]{--editor-head:color-mix(in srgb,rgb(var(--check)) 29.44%,var(--page))}
*{box-sizing:border-box}[hidden]{display:none!important}html{scroll-behavior:auto}
body{margin:0;background:var(--page);color:var(--ink);font-family:"Segoe UI","Yu Gothic UI",Meiryo,sans-serif;font-size:14px;line-height:1.6}
button,input,:is(textarea,#draft),select{font:inherit;color:inherit}button,select,summary{cursor:pointer}button{border:0}button:disabled{opacity:.4;cursor:default}
button,a,summary,select{touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible,:is(textarea,#draft):focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sprite{position:absolute;width:0;height:0;overflow:hidden}
.site-header{height:62px;padding:10px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:white;border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:9px}.brand>svg{width:33px;height:33px}.brand strong{display:block;font-size:21px;font-weight:700;line-height:1.2}.brand span{display:block;font-size:10px;color:var(--muted);margin-top:2px}
.header-tools{display:flex;align-items:center;gap:24px}.private-note{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted)}.private-note svg{width:14px;height:14px}
.pattern-picker{display:flex;align-items:center;gap:8px}.pattern-picker>span{font-size:12px;color:var(--muted)}
select{height:36px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:5px 8px;min-width:0}select:hover{border-color:var(--blue)}.pattern-picker select{font-size:12px;width:180px;height:34px}
main{max-width:1720px;margin:auto;padding:18px 24px 12px}.workspace{display:grid;grid-template-columns:280px minmax(0,1fr);gap:20px;align-items:start}
h1,h2,h3,p{margin:0}h1{font-size:16px}h2{font-size:21px;line-height:1.4}h3{font-size:16px;font-weight:700}
.panel{background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 3px 12px #20344208;overflow:hidden}
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 14px 6px}
.text-button{background:transparent;color:var(--blue);font-size:12px;font-weight:600;min-height:30px;padding:4px 5px;border-radius:4px}.text-button:hover{background:var(--pc)}
.writing-surface{margin:0 14px}
:is(textarea,#draft){display:block;width:100%;height:200px;min-height:200px;max-height:clamp(220px,calc(100dvh - 365px),440px);padding:10px 0;background:#fff;border:0;color:#263844;font-family:"Segoe UI","Yu Gothic UI",Meiryo,sans-serif;font-size:14px;line-height:1.7;resize:vertical;overflow-y:auto;caret-color:var(--blue)}
:is(textarea,#draft):focus-visible{outline:0;box-shadow:inset 0 -2px var(--blue)}:is(textarea,#draft)::placeholder{color:#667784}
.editor-meta{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e5eaee;padding:3px 0;font-size:11px}.editor-meta strong{font-size:13px;font-variant-numeric:tabular-nums}.muted{color:var(--muted)}
.editor-footer{border-top:1px solid var(--line);padding:11px 14px;background:#fcfdfe}.budget{margin-bottom:12px}
.budget-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:12px;font-weight:600}.budget-heading>span:last-child{font-size:12px;font-weight:400;white-space:nowrap;font-variant-numeric:tabular-nums}.budget-heading strong{font-size:21px}
.meter{height:3px;border-radius:2px;background:#e5eaee;margin:5px 0;overflow:hidden}.meter span{display:block;height:100%;background:var(--blue)}
.budget-foot{display:flex;align-items:center;justify-content:space-between;gap:4px}.budget-foot p{font-size:12px}.budget-foot>span{font-size:10px;color:var(--muted);white-space:nowrap}
.budget.over .budget-heading strong,.budget.over #count-status{color:#ad4e44}.budget.over .meter span{background:#bd665b}.budget.over .budget-foot>span{display:none}.budget.over #count-status{font-size:11px}#over-help{font-size:11px;color:#865d57;margin-top:3px;line-height:1.5}
.primary-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:42px;padding:8px 12px;background:var(--button);color:var(--button-ink);border:1px solid #75652d18;border-radius:6px;font-size:14px;font-weight:700;box-shadow:0 2px 0 #40351520;transition:background .15s,transform .15s}.primary-button:hover{background:var(--button-hover)}.primary-button:active{transform:translateY(1px)}
.editor-status{display:grid;align-items:center;min-height:38px;padding-top:6px}.editor-status p{grid-area:1/1;font-size:11px;line-height:1.5}.copy-status{color:var(--blue);font-weight:600}.storage-note{color:var(--muted)}
.settings{margin-top:6px;padding-top:6px;border-top:1px solid var(--line);font-size:12px}.settings summary{padding:3px 0;list-style-position:inside}.settings summary:hover{color:var(--blue)}.settings label{display:block;margin:8px 0 3px}.settings input{width:100%;min-width:0;padding:6px 8px;border:1px solid var(--line);border-radius:5px;background:white}.handle-input{display:flex;align-items:center;gap:7px}
.comparison{min-width:0}.comparison-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;margin-bottom:7px}
.view-tools{display:flex;align-items:center;gap:15px}.switch-label{display:flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap;cursor:pointer}.switch-label input{accent-color:var(--blue);width:16px;height:16px;margin:0}
.segmented{display:flex;background:#e8edf1;border-radius:6px;padding:3px;gap:2px}.segmented button{background:transparent;padding:4px 10px;border-radius:4px;font-size:12px;color:var(--muted);min-height:28px}.segmented button.active{background:white;color:var(--ink);box-shadow:0 1px 3px #20394a20;font-weight:700}
.accuracy-line{display:flex;gap:6px;align-items:flex-start;font-size:12px;line-height:1.6;color:#a4544b;margin-bottom:12px}.accuracy-line strong{font-weight:600}.info-mark{display:none}
.preview-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:14px;align-items:stretch}
.device-column{min-width:0;display:grid;grid-template-rows:auto auto auto 1fr auto;padding:13px;border:1px solid var(--pc-border);border-radius:10px;background:var(--pc)}
.phone-column{background:var(--phone);border-color:var(--phone-border)}
.device-controls{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.device-title{display:flex;align-items:center;gap:7px}.device-title svg{width:19px;height:19px}.pc-label{font-size:12px;color:var(--muted)}
.device-picker{display:flex;gap:6px;min-width:0;margin-bottom:7px}.device-picker>svg{display:none}#phone-platform{width:86px;flex-shrink:0;font-size:13px}#phone-model{flex:1;width:0;font-size:13px;font-weight:600;border-color:var(--phone-border)}
.pc-context{height:36px;display:flex;align-items:center;gap:12px;font-size:13px;font-weight:600;margin-bottom:7px}.pc-context span{font-size:12px;font-weight:400;color:var(--muted)}
.device-caption{display:flex;justify-content:space-between;gap:4px;min-height:20px;margin-bottom:8px;font-size:11px;color:var(--muted)}.device-caption>span:last-child{white-space:nowrap}
.device-result{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;color:var(--muted);padding-top:4px}.device-result strong{font-size:18px;color:var(--ink);font-variant-numeric:tabular-nums}.device-result b{color:var(--ink)}
.insight{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.insight p{font-size:12px;color:var(--muted)}.insight button{border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--blue);font-size:12px;font-weight:600;min-height:32px;padding:4px 10px}.insight button:hover{border-color:var(--blue)}
.legend{display:flex;gap:16px;flex-wrap:wrap;margin-top:8px;font-size:11px;color:var(--muted)}.legend>span{display:flex;align-items:center;gap:5px}.legend i{display:inline-block;width:3px;height:9px;background:#4b91b3}.legend b{color:#1686be;font-weight:400}
.accuracy-note{margin-top:8px;font-size:12px;color:var(--muted)}.accuracy-note summary{font-size:12px;padding:3px 0;cursor:pointer;list-style-position:inside}.accuracy-note p{margin-top:8px}.accuracy-note a{color:var(--blue)}
footer{display:flex;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:14px;padding-top:8px;font-size:10px;color:var(--muted)}.footer-separator{padding:0 6px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.mobile-nav{display:none}#editor-title,#preview-title{scroll-margin-top:62px}
@media(min-width:1600px){.workspace{grid-template-columns:300px minmax(0,1fr)}}
@media(max-width:1200px){main{padding:16px}.workspace{grid-template-columns:250px minmax(0,1fr);gap:14px}.preview-grid{gap:10px}.device-column{padding:10px}.view-tools{gap:8px}.device-caption{min-height:36px;flex-wrap:wrap}.pattern-picker select{width:174px}}
@media(max-width:1000px){.workspace{grid-template-columns:240px minmax(0,1fr)}.preview-grid{grid-template-columns:1fr}.phone-column{grid-row:1}.comparison-heading{flex-wrap:wrap}.device-caption{min-height:0}.private-note{display:none}}
@media(max-width:760px){.site-header{height:68px;padding:10px 14px;gap:8px}.brand{gap:6px}.brand strong{font-size:18px}.brand>svg{width:28px;height:28px}.brand span{font-size:9px}.pattern-picker{display:block}.pattern-picker>span{display:block;font-size:10px;margin-bottom:2px}.pattern-picker select{font-size:16px;width:158px;height:32px;padding:3px}.header-tools{gap:0}main{padding:10px 14px 14px}.workspace{display:block}.editor{margin-bottom:20px}:is(textarea,#draft){font-size:16px;min-height:180px;max-height:420px}.editor-status{min-height:28px}.comparison-heading{align-items:flex-start;gap:10px;margin-bottom:10px}h2{font-size:20px}.view-tools{width:100%;justify-content:space-between}.segmented button{min-height:32px}.preview-grid{gap:14px}.device-column{padding:13px}#phone-platform,#phone-model{font-size:16px}#phone-platform{width:100px}.device-caption{font-size:11px}.accuracy-line{font-size:12px}.settings input{font-size:16px}.mobile-nav{display:flex;gap:8px;position:sticky;top:0;z-index:5;background:var(--page);padding:5px 0 10px;margin-bottom:5px}.mobile-nav a{flex:1;background:#fff;border:1px solid var(--line);border-radius:6px;color:var(--blue);font-size:12px;font-weight:600;text-align:center;text-decoration:none;padding:7px 3px}.insight{flex-wrap:wrap}footer{font-size:9px;gap:8px}}
@media(max-width:360px){.site-header{padding:8px 10px}.brand strong{font-size:16px}.brand>svg{width:23px;height:23px}.pattern-picker select{width:151px}main{padding-left:10px;padding-right:10px}.device-column{padding:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.device-stage{display:flex;align-items:flex-start;justify-content:center;overflow:hidden;padding:1px 0 12px;min-height:0}.scale-slot{position:relative;flex:none}.device{position:absolute;left:0;top:0;transform-origin:top left;background:white;color:#0f1419;border:1px solid #e6ecf0;border-radius:10px;overflow:hidden;font-family:Arial,"Hiragino Kaku Gothic ProN",Meiryo,sans-serif;--post-font:15px;--post-line:20px;box-shadow:0 4px 8px #294e6b09}.desktop-device{width:600px}.phone-device{width:393px}.feed-heading{display:none}
.post{display:flex;gap:12px;padding:16px}.avatar{width:40px;height:40px;flex:none;border-radius:50%;display:grid;place-items:center;background:#d1ecf8;color:#257a9f;font-size:18px;font-weight:600}.post-content{min-width:0;flex:1}.account{display:flex;align-items:center;gap:4px;white-space:nowrap;overflow:hidden;font-size:15px;line-height:20px;margin-bottom:5px}.account strong{max-width:43%;flex-shrink:0;overflow:hidden;text-overflow:ellipsis}.account span{color:#536471}.account .preview-handle{min-width:0;overflow:hidden;text-overflow:ellipsis;flex-shrink:1}.account .more{margin-left:auto;flex-shrink:0}
.body-wrap{position:relative;isolation:isolate}.post-body{font-size:var(--post-font);line-height:var(--post-line);white-space:pre-wrap;overflow-wrap:anywhere;word-break:normal;line-break:strict;min-height:var(--post-line);position:relative;z-index:1}.post-body.empty{color:#8799a4}.line-overlays{position:absolute;inset:0;pointer-events:none;z-index:0}.line-highlight{position:absolute;left:-2px;right:-2px;background:#4e9fc614;border-radius:2px}.line-highlight:before{content:"";position:absolute;left:-5px;top:4px;bottom:4px;width:2px;background:#4b91b3}.newline-mark{position:absolute;font-size:12px;line-height:16px;color:#1686be;font-family:Arial,sans-serif}
.post-actions{display:flex;justify-content:space-between;padding-top:14px;color:#536471}.post-actions svg{width:17px;height:17px}
.avatar{background:var(--pc);color:var(--blue)}
.comparison.dark .device{background:#252930;color:#edf0f3;border-color:#424851}.comparison.dark .account span,.comparison.dark .post-actions{color:#b3bbc4}.comparison.dark .line-highlight{background:#59b2e31f}.comparison.dark .line-highlight:before{background:#78bddf}.hide-wraps .line-overlays{display:none}
.comparison-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-top:8px}
.comparison-summary .insight{margin:0;flex:1;order:2;justify-content:flex-end}
.comparison-summary .legend{margin:0;order:1}
.device-controls{margin-bottom:6px}
.device-caption{margin-bottom:5px}
.device-column{padding:10px}
.device-result{padding-top:0}
.device-stage{padding-bottom:7px}
.pc-context{height:34px;margin-bottom:5px}
.device-picker{margin-bottom:5px}
.device-picker select{height:34px}
.section-heading{padding-top:9px}
:is(textarea,#draft){min-height:180px}
.editor-meta{padding:0}
.editor-footer{padding-top:8px;padding-bottom:8px}
.budget{margin-bottom:9px}
.editor-status{min-height:34px}
.settings{margin-top:4px;padding-top:4px}
footer{margin-top:10px;padding-top:6px}
@media(max-width:760px){.device-column{padding:12px}.comparison-summary{display:block}.comparison-summary .insight{justify-content:space-between;margin-bottom:8px}.device-caption{margin-bottom:8px}.editor-status{min-height:28px}}
@media(min-width:1001px) and (max-height:680px){.site-header{height:54px}main{padding-top:12px;padding-bottom:8px}.comparison-heading{min-height:32px}.accuracy-line{margin-bottom:8px}.device-column{padding:8px}footer{margin-top:6px;padding-top:4px}}

/* Approved gingham direction: keep decoration outside the post text. */
.site-header{background-color:var(--page);background-image:linear-gradient(90deg,rgba(var(--check),.16) 50%,transparent 50%),linear-gradient(rgba(var(--check),.16) 50%,transparent 50%);background-size:28px 28px;border-bottom-color:var(--pc-border)}
.brand{color:var(--blue)}.brand strong{font-size:23px;letter-spacing:.02em;font-weight:700}.brand span{color:var(--muted)}
.header-tools{gap:18px}.private-note{background:var(--page);padding:3px 7px;border-radius:4px}
.pattern-picker>span{color:var(--ink);font-weight:600}.pattern-picker select{border-color:var(--pc-border)}
.panel{border-color:var(--pc-border);border-radius:9px;box-shadow:0 3px 12px #63414708}
.section-heading{position:relative;background:var(--editor-head);padding:8px 14px 10px;margin-bottom:10px;color:var(--blue)}
.section-heading:after{content:"";position:absolute;left:0;right:0;bottom:-7px;height:8px;background:radial-gradient(ellipse 14px 8px at 50% 0,var(--editor-head) 97%,transparent 100%) 0 0/28px 8px repeat-x;pointer-events:none}
.section-heading h1{display:flex;align-items:center;gap:7px;font-size:16px}.section-heading h1 svg{width:17px;height:17px}
.section-heading .text-button{background:#ffffffc9;border:1px solid var(--pc-border);font-size:11px;min-height:28px;padding:3px 7px}.section-heading .text-button:hover{background:#fff;border-color:var(--blue)}
.writing-surface{border-bottom:0}:is(textarea,#draft){color:var(--ink)}
.editor-footer{background:var(--page);border-color:var(--line)}.editor-meta{border-color:var(--line)}
.primary-button{border:1px solid #0000000a;box-shadow:0 2px 0 #482a361a;border-radius:6px;font-weight:700}
.comparison{background:#fff;border:1px solid var(--pc-border);border-radius:9px;padding:12px}
.comparison-heading h2{color:var(--blue);font-size:20px;font-weight:700;display:flex;gap:8px;align-items:center}.comparison-heading h2 svg{width:21px;height:21px}
.segmented{background:var(--pc)}.segmented button.active{color:var(--blue)}
.device-column{border-radius:7px;box-shadow:none}
.device-controls{padding-bottom:8px;border-bottom:1px solid var(--pc-border);color:var(--blue)}
.phone-column .device-controls{border-color:var(--phone-border);color:var(--phone-ink)}
.pc-label{font-size:11px}.device-title h3{font-size:17px;font-weight:700}
.device{box-shadow:0 2px 6px #49303b06;border-radius:6px}
.device-result{border-top:1px solid var(--pc-border);padding-top:4px}.phone-column .device-result{border-color:var(--phone-border)}
.avatar{background:var(--editor-head)}
.accuracy-line{color:#a14c4c}
.insight button{border-color:var(--pc-border)}
.mobile-nav a{border-color:var(--pc-border)}
@media(min-width:1001px) and (max-height:680px){main{padding-bottom:2px}.comparison{padding:9px}.device-controls{padding-bottom:4px;margin-bottom:4px}.device-result{padding-top:2px}.comparison-heading{margin-bottom:5px}.accuracy-note{margin-top:4px}.comparison-summary{margin-top:5px}.section-heading{margin-bottom:6px}.device-stage{padding-bottom:4px}}
@media(max-width:760px){.brand strong{font-size:19px}.comparison{padding:12px}.comparison-heading h2{font-size:20px}.section-heading{padding:9px 14px 11px}.private-note{display:none}}
@media(max-width:360px){.brand strong{font-size:16px}.comparison{padding:9px}.brand{gap:4px}}
@media(min-width:1001px) and (max-height:620px){.site-header{height:50px}main{padding-top:10px}}

/* Rounded type and a workspace that grows with the usable window height. */
body{font-family:PostUI,Meiryo,"Hiragino Kaku Gothic ProN",sans-serif;font-weight:400;font-size:15px}
h1,h2,h3,.primary-button{font-family:PostRounded,"Hiragino Maru Gothic ProN",sans-serif}
button,input,:is(textarea,#draft),select{font-family:inherit}
.brand strong{font-family:PostRounded,sans-serif;font-size:30px;font-weight:800;letter-spacing:-.035em;line-height:1.15}
.brand>svg{width:35px;height:35px}.brand span{font-size:11px;font-weight:700;letter-spacing:.025em}
.site-header{height:72px}
main{max-width:1860px;padding:20px 26px 12px}
.workspace{grid-template-columns:320px minmax(0,1fr);gap:20px}
.comparison-heading h2{font-size:24px;font-weight:800}
.section-heading h1{font-size:19px;font-weight:800}
.device-title h3{font-size:19px;font-weight:800}
.device-title svg{width:22px;height:22px}
.comparison{padding:15px}
.comparison-heading{margin-bottom:10px}
.private-note,.pattern-picker>span{font-size:13px}
.pattern-picker select{font-size:14px;height:38px;width:240px}
.section-heading{padding:11px 14px 6px;margin-bottom:19px}
.section-heading .text-button{font-size:12px;min-height:31px}
.writing-surface{margin:0 12px;padding:0 12px;background:#fff;border:1px solid var(--line);border-radius:12px;transition:border-color .15s,box-shadow .15s}
.writing-surface:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px var(--pc)}
:is(textarea,#draft){font-family:Meiryo,"Hiragino Kaku Gothic ProN",sans-serif;font-weight:400;font-size:16px;line-height:1.8;height:clamp(190px,calc(100dvh - 500px),540px);min-height:190px;max-height:none;resize:none;padding:12px 0;background:transparent;outline:0;border:0;color:#343039}
:is(textarea,#draft):focus-visible{outline:0;box-shadow:none}
:is(textarea,#draft)::selection{background:var(--editor-head);color:var(--ink)}
.editor-meta{padding:3px 0;border-top:1px solid var(--line);font-size:12px}
.editor-meta strong{font-size:14px}
.editor-footer{border-top:0;padding:13px 14px 10px}
.budget-heading{font-size:13px}.budget-heading strong{font-size:24px}
.budget-foot p{font-size:13px}.budget-foot>span{font-size:11px}
.primary-button{font-size:16px;min-height:46px;font-weight:800;border-radius:9px;transition:transform .15s,box-shadow .15s}
.editor-status p{font-size:12px;line-height:1.6}
.editor-status{min-height:43px}
.settings{font-size:13px}.settings summary{padding:5px 0}
.switch-label,.segmented button{font-size:13px}
.segmented button{min-height:32px}
.accuracy-line{font-size:13px;line-height:1.65}
.device-controls{margin-bottom:8px;padding-bottom:8px}
.pc-label{font-size:12px}
.pc-context{font-size:14px;height:39px}
.pc-context span{font-size:13px}
.device-picker select{height:39px}
#phone-platform{width:100px;font-size:14px}
#phone-model{font-size:14px}
.device-caption{font-size:12px;line-height:1.6}
.device-result{font-size:13px;padding-top:7px}.device-result strong{font-size:22px}.device-result b{font-size:14px}
.insight p,.insight button,.legend,.accuracy-note summary{font-size:12px}
.insight button{min-height:36px}
.comparison-summary{gap:8px 12px}
.accuracy-note{margin-top:9px}
footer{font-size:11px;margin-top:12px}
@media(min-width:1500px) and (min-height:760px){.workspace{grid-template-columns:350px minmax(0,1fr);gap:24px}.site-header{height:80px}.brand strong{font-size:34px}.comparison{padding:20px}.comparison-heading h2{font-size:27px}.device-title h3{font-size:22px}.device-column{padding:16px}.device-controls{padding-bottom:12px;margin-bottom:12px}.device-caption,.pc-label,.legend,.accuracy-note summary,.insight p{font-size:14px}.accuracy-line{font-size:14px;margin-bottom:16px}.switch-label,.segmented button{font-size:14px}.device-result{font-size:15px}.device-picker select{height:44px}.pc-context{height:44px}#phone-platform,#phone-model{font-size:16px}#phone-platform{width:108px}.comparison-summary{margin-top:16px}.accuracy-note{margin-top:12px}.comparison-heading{margin-bottom:12px}.insight button{font-size:14px;min-height:40px}.primary-button{height:50px}}
@media(min-width:1001px) and (max-height:740px){.site-header{height:62px}main{padding:12px 20px 4px}.workspace{grid-template-columns:300px minmax(0,1fr);gap:16px}.brand strong{font-size:28px}.comparison{padding:10px}.comparison-heading h2{font-size:21px}.comparison-heading{margin-bottom:7px}.section-heading{padding:8px 12px 3px;margin-bottom:15px}.section-heading h1,.device-title h3{font-size:18px}.section-heading .text-button{min-height:28px;font-size:11px}:is(textarea,#draft){font-size:15px;line-height:1.7;height:clamp(182px,calc(100dvh - 430px),310px);min-height:182px}.writing-surface{margin:0 10px;padding:0 10px}.editor-meta{padding:0}.editor-footer{padding:8px 12px}.budget-heading strong{font-size:22px}.budget{margin-bottom:8px}.primary-button{min-height:42px;font-size:15px}.editor-status{min-height:38px}.editor-status p{font-size:11px}.settings summary{padding:3px 0}.settings{font-size:12px}.accuracy-line{font-size:12px;margin-bottom:8px}.pc-context,.device-picker select{height:34px}.device-controls{padding-bottom:5px;margin-bottom:5px}.device-title svg{width:19px;height:19px}.device-caption{font-size:11px}.device-result{font-size:12px;padding-top:3px}.device-result strong{font-size:19px}.device-result b{font-size:12px}.segmented button{min-height:28px}.view-tools{gap:10px}.switch-label,.segmented button{font-size:12px}.legend{font-size:11px}.insight p,.insight button{font-size:12px}.insight button{min-height:32px}.comparison-summary{margin-top:5px}.accuracy-note{margin-top:5px}footer{margin-top:7px;padding-top:5px;font-size:10px}}
@media(max-width:1000px){.workspace{grid-template-columns:290px minmax(0,1fr)}.view-tools{width:100%;justify-content:space-between}.device-caption{min-height:0}}
@media(max-width:760px){.site-header{height:76px;padding:10px 12px}.brand strong{font-size:22px}.brand>svg{width:28px;height:28px}.brand span{font-size:9px}.pattern-picker>span{font-size:11px}.pattern-picker select{font-size:16px;width:158px;height:35px}main{padding:10px 12px 14px}.workspace{display:block}.comparison{padding:12px}.comparison-heading h2{font-size:23px}.section-heading h1{font-size:19px}.device-title h3{font-size:20px}.section-heading .text-button{font-size:12px}.editor-status p{font-size:12px}.editor-status{min-height:36px}:is(textarea,#draft){font-size:16px;height:245px;min-height:220px}#phone-platform,#phone-model{font-size:16px}#phone-platform{width:100px}.device-caption{font-size:11px}.private-note{display:none}.mobile-nav a{font-size:13px}.comparison-summary .legend{font-size:12px}.comparison-summary .insight{justify-content:flex-start}.comparison-summary .insight p{font-size:12px}}
@media(max-width:360px){.brand strong{font-size:19px}.brand>svg{width:23px;height:23px}.pattern-picker select{width:145px}.comparison{padding:9px}.device-column{padding:9px}}
@media(min-width:1001px){.workspace{align-items:stretch}.comparison{display:flex;flex-direction:column}.comparison-shell,.comparison-canvas{display:flex;flex:1;flex-direction:column;min-height:0}.preview-grid{flex:1}.accuracy-note{flex:none}}
@media(min-width:1001px) and (max-height:620px){.site-header{height:52px}main{padding-top:8px;padding-bottom:2px}.comparison{padding:8px}.brand strong{font-size:26px}footer{margin-top:3px;padding-top:3px}}

/* Inspection marks never participate in the post's text or line layout. */
:root{--heading:#c83f73}
:root[data-pattern="lavender"],:root[data-pattern="mint"],:root[data-pattern="lemon"],:root[data-pattern="cocoa"]{--heading:var(--blue)}
:root[data-pattern="lemon"]{--heading:#0086c4}
.brand strong,.section-heading h1,.comparison-heading h2,.desktop-column .device-title{color:var(--heading)}
:root{--wrap-ink:var(--secondary-ink);--wrap-fill:var(--secondary)}
:root[data-pattern="lemon"]{--wrap-ink:var(--blue);--wrap-fill:color-mix(in srgb,var(--blue) 11%,white)}
:root[data-pattern="lemon"] .phone-column{--wrap-fill:var(--secondary);--wrap-ink:var(--secondary-ink)}
:root{--line-fill:color-mix(in srgb,var(--secondary) 40%,white);--dark-wrap-strength:18%}
:root[data-pattern="lemon"]{--line-fill:var(--wrap-fill);--dark-wrap-strength:30%}
:root[data-pattern="lemon"] .phone-column{--line-fill:var(--wrap-fill)}
.line-highlight{left:0;right:0;background:var(--line-fill);border-radius:3px;box-shadow:none}
.line-highlight:before{content:"↳";left:-17px;top:0;bottom:auto;width:11px;height:20px;background:none;color:var(--wrap-ink);font:700 15px/20px Arial,sans-serif}
.newline-mark{color:#77828d}
.wrap-total{display:inline-flex;align-items:center;gap:4px;border-radius:6px;padding:3px 7px;white-space:nowrap}
.wrap-total.has-wraps{background:var(--wrap-fill);color:var(--wrap-ink);font-weight:700}
.wrap-total.has-wraps b{color:inherit}
.wrap-total.has-wraps:before{content:"↳";font:700 17px/1 Arial,sans-serif}
.legend i{width:24px;height:15px;border:0;border-radius:2px;background:var(--line-fill)}
.legend b{color:#77828d;font-weight:700}
.comparison.dark .line-highlight{background:color-mix(in srgb,var(--wrap-ink) var(--dark-wrap-strength),#252930);box-shadow:none}
.comparison.dark .line-highlight:before{background:none;color:color-mix(in srgb,var(--wrap-ink) 45%,white)}
.comparison.dark .newline-mark{color:#a3aab3}
.settings summary,.accuracy-note summary{font-size:13px;font-weight:700;line-height:1.6;color:var(--ink)}
@media(min-width:1001px) and (max-height:740px){.wrap-total{padding:2px 5px;gap:3px}}
/* Keep the approved descriptive palette names readable on small screens. */
@media(max-width:760px){.site-header{height:auto;flex-wrap:wrap;gap:8px}.header-tools{width:100%}.pattern-picker{display:flex;align-items:center;gap:10px;width:100%}.pattern-picker>span{flex:none;margin:0}.pattern-picker select{flex:1;width:auto;min-width:0}}

/* Local review: subtle overflow highlight and session-only long-post mode. */
.draft-stack{position:relative}#draft-highlight{position:absolute;top:0;left:0;box-sizing:border-box;white-space:pre-wrap;overflow-wrap:break-word;overflow:hidden;color:transparent;pointer-events:none}#draft-highlight mark{color:transparent;background:#fbd9df;border-radius:2px}.draft-stack :is(textarea,#draft){position:relative;background:transparent}
#long-post{margin-top:6px;text-decoration:underline;text-underline-offset:3px}.editor{position:relative;overflow:visible}#editor-resize{position:absolute;right:-12px;top:30px;width:12px;height:70%;background:transparent;cursor:col-resize;touch-action:none}#editor-resize:after{content:'';position:absolute;width:3px;height:32px;top:40%;left:5px;border-radius:3px;background:var(--line)}#editor-resize:hover:after{background:var(--blue)}@media(max-width:760px){#editor-resize{display:none}}

#draft{white-space:pre-wrap;overflow-wrap:break-word;outline:none;cursor:text;box-sizing:border-box}#draft:empty:before{content:attr(data-placeholder);color:#667784;pointer-events:none}.draft-overflow{background:#fbd9df;color:inherit;border-radius:2px}#draft-highlight{display:none}.format-toolbar{display:flex;align-items:center;gap:4px;padding-top:6px;border-bottom:1px solid var(--line)}.format-toolbar button{width:30px;min-height:28px;border-radius:5px;background:transparent;font-size:16px}.format-toolbar button[aria-pressed=true]{background:var(--editor-head);color:var(--blue)}.format-toolbar button:hover{background:var(--pc)}.format-toolbar span{margin-left:auto;font-size:10px;color:var(--muted)}
#clear-dialog{max-width:min(440px,calc(100vw - 32px));border:1px solid var(--line);border-radius:12px;padding:24px;background:var(--page);color:var(--ink)}#clear-dialog::backdrop{background:#18283844}#clear-dialog h2{font-size:20px;margin:0 0 12px}#clear-dialog p{font-size:13px;line-height:1.7}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.dialog-actions button{padding:9px 16px;border-radius:6px;background:var(--pc)}.dialog-actions button[value=clear]{background:var(--button);color:var(--button-ink)}
