/* ZIP14 unit 8, also used by the app's canonical hybrid writer route. */
html body #xpage .wc .wc-top{display:flex!important;gap:8px!important;padding:8px 10px!important;align-items:center;min-height:60px!important}
html body #xpage .wc .wc-top>b[hidden],html body #xpage .wc .wc-top>.sp{display:none!important}
html body #xpage .wc .wc-top .wc-board-wrap{flex:1;min-width:0;margin:0!important}
html body #xpage .wc .wc-top .wc-category-picker{gap:7px!important;padding:0!important;border:0!important;font-size:14px!important;font-weight:700!important;min-height:44px}
html body #xpage .wc .wc-top .wc-category-picker strong{font-weight:700;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body #xpage .wc .wc-channel-initial{display:grid;place-items:center;flex:none;width:30px;height:30px;border-radius:50%;background:var(--s);font-size:13px;font-weight:800;color:var(--t2)}
html body #xpage .wc .wc-top .ibtn{flex:none;width:32px!important;height:44px!important;padding:0!important;font-size:24px}
html body #xpage .wc .wc-top #wSave{display:block!important;flex:none;height:34px;padding:0 12px!important;border:1px solid var(--ln);font-size:13px;border-radius:17px;white-space:nowrap}
html body #xpage .wc .wc-top #wGoTop{display:block!important;flex:none;height:34px!important;margin:0!important;padding:0 14px!important;font-size:14px;border-radius:17px}
html body #xpage .wc .wc-tools.wc-tools-six{display:flex;overflow-x:auto!important;scrollbar-width:none;padding:6px 8px env(safe-area-inset-bottom)!important;gap:2px!important;border-top:1px solid var(--ln);border-bottom:1px solid var(--ln);background:var(--s)!important}
html body #xpage .wc .wc-tools.wc-tools-six button{flex:none!important;width:46px!important;height:44px!important;min-width:46px;min-height:44px;padding:0!important;border-radius:10px;color:var(--t2)}
html body #xpage .wc .wc-tools.wc-tools-six button>span{display:none}
html body #xpage .wc .wc-tools.wc-tools-six svg{width:26px!important;height:26px!important}
html body #xpage .wc .wc-tools.wc-tools-six #wBold b{font-family:Georgia,serif;font-size:22px;font-weight:900}
html body #xpage .wc .wc-tools.wc-tools-six [aria-pressed=true]{color:var(--lk)!important}
html body #xpage .wc .wc-tools.wc-tools-six .wc-tool-count{display:block;position:absolute;top:2px;right:0;min-width:18px;height:18px;line-height:18px;padding:0 5px;border-radius:9px;font-size:10px;font-weight:800;background:var(--pt);color:white}
html body #xpage .wc .wc-tools.wc-tools-six [data-keyboard-dismiss]{position:sticky;right:-8px;min-width:50px;width:50px!important;height:52px!important;flex:none!important;background:var(--s);border-left:1px solid var(--ln);border-radius:0;margin-left:auto!important}
html body #xpage .wc .wc-poll-preview{display:block;text-align:left;margin:8px 16px 12px;padding:14px;border:1px solid var(--ln);border-radius:14px;background:var(--s)}
html body #xpage .wc .wc-poll-preview[hidden]{display:none}
html body #xpage .wc .wc-poll-preview strong{display:block;margin-top:8px;font-size:16px;font-weight:700;line-height:1.4}
.wc-poll-meta{font-size:12px;font-weight:700;color:var(--t2)}
.wc-poll-option{display:flex;align-items:center;gap:10px;min-height:42px;margin-top:8px;padding:0 12px;border:1px solid var(--ln);border-radius:10px;background:var(--bg);font-size:15px}
.wc-poll-option i{width:18px;height:18px;border:2px solid var(--t3);border-radius:50%;flex:none}
.wc-poll-edit{display:block;margin-top:10px;font-size:13px;font-weight:700;color:var(--lk)}
.wc-sheet-actions{display:flex;align-items:center;gap:8px;margin-top:16px}
.wc-sheet-actions button{flex:1;min-height:44px;border-radius:12px;font-weight:700}
.wc-sheet-actions .xmain{margin:0}
.wc-sheet-actions .xmain:disabled{background:var(--ln);color:var(--t3);opacity:1}
.sheet .wc-draft>[data-draft-restore]{flex:1;text-align:left;min-width:0}
.sheet .wc-draft>[data-draft-delete]{flex:none;color:var(--t3)}
@media(max-width:999px){html body #xpage .wc .wc-top{padding-top:calc(8px + env(safe-area-inset-top))!important}html body #xpage .wc[data-keyboard=true] .wc-tools.wc-tools-six{padding-bottom:0!important}}
.sheet #wLinkNote{display:flex;align-items:center;gap:12px;overflow-wrap:anywhere}.sheet #wLinkNote span{min-width:0}

/* Measured against ZIP14: keep these above the writer's legacy inline widths. */
html body #xpage .wc .wc-tools.wc-tools-six[role=toolbar]{padding-left:8px!important;padding-right:8px!important}
html body #xpage .wc .wc-tools.wc-tools-six>button[id]{flex:0 0 46px!important;width:46px!important;min-width:46px!important;max-width:46px!important;padding:0!important}
html body #xpage .wc .wc-tools.wc-tools-six>button[data-keyboard-dismiss]{width:50px!important;min-width:50px!important;max-width:50px!important;flex:0 0 50px!important;padding:0!important}
html body #xpage .wc .wc-tools.wc-tools-six .wc-tool-count[hidden]{display:none!important}
html body #xpage .wc .wc-top{padding:22px 12px 10px!important;gap:10px!important;min-height:67px!important}
html body #xpage .wc .wc-top .wc-category-picker{font-size:16px!important;min-height:34px}
html body #xpage .wc .wc-top .wc-channel-initial{font-size:12px;background:var(--ctl,var(--tx));color:var(--on,var(--bg))}
html body #xpage .wc .wc-top #wX{width:24px!important;height:34px!important}
html body #xpage .wc .wc-top #wMenuTop{width:34px!important;height:34px!important}
html body #xpage .wc .wc-top #wSave{font-size:14px;font-weight:700}
html body #xpage .wc .wc-top #wGoTop{padding:0 16px!important;font-weight:800}
.wc-sheet-intro{margin:0 16px 16px;color:var(--t3);font-size:12px;line-height:1.5}
.writer-poll-sheet .wc-poll-fields{padding:0 16px 16px}
.writer-poll-sheet .wc-poll-fields label{padding:0;margin:0 0 16px}
.writer-poll-sheet .wc-poll-fields input:not([type=checkbox]){box-sizing:border-box;margin-top:0;min-height:42px;padding:10px 14px;border:0;border-radius:10px;background:var(--s);font-size:14px;color:var(--tx)}
.writer-poll-sheet .wc-poll-question{font-size:0}
.writer-poll-sheet .wc-poll-choice{position:relative;display:flex!important;gap:8px;align-items:center}
.writer-poll-sheet .wc-poll-choice button{font-size:0;min-height:28px;width:28px;padding:0;color:var(--t3)}
.writer-poll-sheet .wc-poll-choice button:after{content:'×';font-size:20px}
.writer-poll-sheet .wc-poll-choice button:disabled{display:none}
.writer-poll-sheet #wPollMore{padding:0;margin:0 0 24px;color:var(--lk);font-size:14px;font-weight:600}
.writer-poll-sheet .wc-poll-fields .wc-poll-multiple{display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;font-size:14px;margin-bottom:16px}
.writer-poll-sheet .wc-poll-multiple small{display:block;margin-top:6px;color:var(--t3);font-size:12px;font-weight:400}
.writer-poll-sheet #wPollMultiple{appearance:none;-webkit-appearance:none;position:relative;flex:none;width:44px;height:26px;min-height:26px;padding:0;margin:0;border:0;border-radius:13px;background:var(--ln);cursor:pointer}
.writer-poll-sheet #wPollMultiple:before{content:'';position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003}
.writer-poll-sheet #wPollMultiple:checked{background:var(--lk)}
.writer-poll-sheet #wPollMultiple:checked:before{left:21px}
.writer-poll-sheet .wc-poll-deadline{font-size:12px;color:var(--t3)}
.writer-poll-sheet .wc-poll-deadline input{margin-top:6px!important}
.writer-poll-sheet .wc-poll-error:empty{display:none}
.writer-poll-sheet .wc-sheet-actions{margin-top:16px}
.writer-poll-sheet .wc-sheet-actions button{height:50px;border-radius:14px;font-size:14px;background:var(--s);color:var(--tx)}
.writer-poll-sheet .wc-sheet-actions .xmain{background:var(--lk);color:#fff}
.writer-poll-sheet .wc-sheet-actions .xmain:disabled{background:var(--ln);color:var(--t3)}
.writer-link-sheet #wLinkUrl{box-sizing:border-box;width:calc(100% - 32px);min-height:46px;margin:0 16px;padding:12px 14px;border:0;border-radius:10px;background:var(--s);font-size:14px;color:var(--tx)}
.writer-link-sheet #wLinkNote{margin:14px 16px;color:var(--t3);font-size:12px}
.writer-link-sheet .wc-sheet-actions,.writer-draft-sheet .wc-sheet-actions{padding:0 16px 16px}
.writer-link-sheet .wc-sheet-actions button,.writer-draft-sheet .wc-sheet-actions button{height:50px;border-radius:14px;background:var(--s);font-size:14px}
.writer-link-sheet .wc-sheet-actions .xmain,.writer-draft-sheet .wc-sheet-actions .xmain{background:var(--lk);color:#fff}
.writer-link-sheet .wc-sheet-actions .xmain:disabled{background:var(--ln);color:var(--t3)}
@media(max-width:999px){html body #xpage .wc .wc-top{padding-top:calc(22px + env(safe-area-inset-top))!important}}

html body #xpage .wc .wc-top #wMenuTop svg{width:22px!important;height:22px!important}

html body #xpage .wc .wc-tools.wc-tools-six[role=toolbar]{padding-right:0!important}
html body #xpage .wc .wc-tools.wc-tools-six>button[data-keyboard-dismiss]{right:0!important}
:is(.writer-poll-sheet,.writer-link-sheet,.writer-draft-sheet) .wc-sheet-actions>button{box-sizing:border-box;flex:1 1 0%!important;min-width:0!important;padding:0 12px!important}

/* Current writer screenshot: one author chip and uninterrupted body-to-tools. */
html body #xpage .wc>.wc-author-modes{display:flex;flex:0 0 auto;order:0;height:55px;padding:10px 16px;min-height:55px;gap:10px;border-bottom:1px solid var(--ln);align-items:center;flex-wrap:nowrap}
html body #xpage .wc>.wc-author-modes>[data-write-author]{flex:none;min-height:34px;height:34px;padding:0 14px;border:0;border-radius:17px;background:var(--s);color:var(--tx);font-size:13px;font-weight:800;white-space:nowrap}
html body #xpage .wc>.wc-author-modes>[data-write-author][hidden]{display:none!important}
html body #xpage .wc>.wc-len,html body #xpage .wc>.wc-legal,html body #xpage .wc>.wc-anon,html body #xpage .wc>#wSet{display:none!important}
html body #xpage .wc>#wDraft{display:flex;gap:12px;margin:0;padding:10px 16px;min-height:39px;border-radius:0;border-bottom:1px solid var(--ln);background:var(--bg);font-size:13px;font-weight:400}
html body #xpage .wc>#wDraft .wc-draft-clock{display:flex;flex:none;color:var(--t3)}
html body #xpage .wc>#wDraft .wc-draft-summary{display:flex;flex:1;min-width:0;gap:8px;align-items:center}
html body #xpage .wc>#wDraft .wc-draft-summary b{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
html body #xpage .wc>#wDraft .wc-draft-summary small{flex:none;margin:0;color:var(--t3);font-size:12px}
html body #xpage .wc>#wDraft #wLoad{height:24px;padding:0;border-radius:0;background:none;color:var(--lk);font-size:14px;font-weight:700;white-space:nowrap}
html body #xpage .wc>#wDraft #wDrop{display:flex;align-items:center;padding:0;color:var(--t3);text-decoration:none}
.wc-handoff-sheet .wc-settings-legal{margin:14px 0;padding:12px 0;border-top:1px solid var(--ln);font-size:12px;color:var(--t3);line-height:1.6}

/* Measured shared link sheet: reserve the prototype's 8px input/action gutters. */
.writer-link-sheet #wLinkUrl{height:42px!important;min-height:42px!important;margin:8px 16px;padding:12px 14px}
.writer-link-sheet #wLinkNote{margin:0;padding:10px 16px;font-size:13px;line-height:1.6}
.writer-link-sheet .wc-sheet-actions{margin:0;padding:8px 16px}
.writer-link-sheet .wc-sheet-actions button{font-size:15px}

/* Header 67px, member row 55px and title 57px measured in the original scene. */
html body #xpage .wc .wc-title input{padding:18px 16px 14px!important}
@media(max-width:999px){html body:has(#xpage .wc):has(>#appScroll){padding-top:67px!important}html body #xpage .wc{height:var(--wc-visible-height,calc(100dvh - 67px))!important}}

@media(max-width:999px){html body #xpage:has(>.wc){border-left:0!important;border-right:0!important}}
