@font-face{font-family:Newsreader;src:url('/assets/type/newsreader-latin-roman.woff2') format('woff2');font-weight:200 800;font-display:swap}
@font-face{font-family:Newsreader;src:url('/assets/type/newsreader-latin-italic.woff2') format('woff2');font-weight:200 800;font-style:italic;font-display:swap}
@font-face{font-family:Schibsted;src:url('/assets/type/schibsted-grotesk-latin.woff2') format('woff2');font-weight:400 900;font-display:swap}
:root{--ink:#292f2a;--sub:#677168;--green:#304f3f;--rule:#dce0d7;--serif:Newsreader,Georgia,serif;--sans:Schibsted,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color-scheme:light;font-family:var(--sans);color:var(--ink);background:#f9faf7;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
button,a,input,textarea{ -webkit-tap-highlight-color:transparent}
button{border:none;background:none;padding:0;cursor:pointer}
button:disabled{opacity:.42;cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #638b72;outline-offset:3px}
button:disabled:focus-visible{outline:0}
i,[data-icon]{display:inline-flex;align-items:center;justify-content:center;font-style:normal;flex-shrink:0}
svg{display:block}
[hidden]{display:none!important}
.masthead{border-bottom:1px solid var(--rule);background:#fff}
.masthead-inner,.desk{max-width:1560px;margin:0 auto;padding-inline:clamp(24px,4.25vw,78px)}
.masthead-inner{height:75px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.wordmark{display:inline-flex;align-items:center;gap:12px;color:#263e31;text-decoration:none;font:500 34px/.9 var(--serif);letter-spacing:-1.7px}
.wordmark>span:last-child{padding-top:6px}
.brand-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:10px;background:var(--green);color:#fffcef}
.brand-mark svg{width:27px;height:27px}
.header-actions,.btn,.text-action,.doc-name,.save-status,.preview-actions,.zoom-group,.stepper,.pagination,.stock-meta,.block-head h2,.preview-bar h2,.stamp-row label{display:inline-flex;align-items:center}
.header-actions{gap:10px}
.btn{justify-content:center;gap:9px;font-size:.875rem;line-height:1.2;font-weight:550;min-height:39px;padding:0 16px;border-radius:7px;white-space:nowrap;transition:background .15s}
.btn svg{width:16px;height:16px}
.btn-primary{background:var(--green);color:#fff}
.btn-primary:hover{background:#233e30}
.btn-outline{border:1px solid #cfd5cb;background:#fff}
.btn-outline:hover,.btn-quiet:hover,.icon-button:hover,.preview-actions button:hover,.pagination button:hover,.stepper button:hover{background:#edf1eb}
.btn-quiet{font-weight:500;color:#404a42}
.nav-rule{width:1px;height:22px;background:var(--rule);margin:0 7px 0 1px}
.desk{padding-top:32px;padding-bottom:34px}
.title-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:23px}
h1,h2,h3,p{margin:0}
h1{font:470 clamp(2.2rem,3.4vw,3.15rem)/1.08 var(--serif);letter-spacing:-.053em;margin:0 0 8px}
.doc-name{gap:7px;color:#626c62;font-size:.85rem;max-width:100%;min-height:23px;text-align:left}
.doc-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:min(55vw,60ch)}
.doc-name svg{width:15px;height:15px}
.doc-name .tiny{color:#858c80;transition:color .15s;margin-left:2px}
.doc-name .tiny svg{width:12px;height:12px}
.doc-name:hover,.doc-name:hover .tiny{color:#284f36}
.save-status{gap:7px;align-self:flex-end;margin-bottom:4px;font-size:.8rem;color:#5e6d60}
.save-status svg{width:17px;height:17px}
.workspace{display:grid;grid-template-columns:clamp(310px,26vw,380px) minmax(0,1fr);gap:22px;align-items:stretch}
.controls,.preview{border:1px solid #d4dacf;border-radius:13px;background:white}
.controls{align-self:start}
.block{padding:22px}
.block+.block{border-top:1px solid var(--rule)}
.block-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:15px}
.block-head h2,.preview-bar h2{font-size:.975rem;line-height:1.3;font-weight:610;letter-spacing:-.025em;gap:9px}
.block-head h2 svg{width:19px;height:19px;color:var(--green)}
.meta,.control-label,.stock-meta,.pagination,.size-group .stepper,.preview-actions{font-size:.8rem}
.meta,.control-label{color:var(--sub)}
#classic-input-slot #manuscript{width:100%;display:block;min-height:108px;height:clamp(135px,18vh,200px);padding:13px 14px 14px;border:1px solid #daddd3;border-radius:7px;resize:vertical;background:#fcfcfa;font-size:.9rem;line-height:1.6;scrollbar-color:#c5cabc transparent;scrollbar-width:thin}
.text-action{gap:5px;font-size:.78rem;font-weight:520;color:var(--green);padding:3px 0}
.text-action:hover{text-decoration:underline;text-underline-offset:3px}
.text-action svg{width:13px;height:13px}
.hand-select-wrap{position:relative}
.hand-select{min-height:53px;padding:6px 13px 6px 15px;border:1px solid #cbd5c8;border-radius:7px;display:flex;align-items:center;justify-content:space-between;text-align:left;gap:10px;width:100%;background:#f9fbf7}
.hand-select svg{width:15px;height:15px}
#font-name{font-size:1.9rem;line-height:1.18;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.hand-menu{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:5;padding:4px;border:1px solid var(--rule);border-radius:8px;background:white;box-shadow:0 8px 25px #25392525;max-height:260px;overflow:auto}
.hand-menu button{padding:7px 10px;display:flex;align-items:center;justify-content:space-between;width:100%;font-size:1.6rem;text-align:left;border-radius:5px;min-height:37px;gap:8px}
.hand-menu button:hover,.hand-menu button[aria-pressed=true]{background:#eef3ed}
.hand-menu span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hand-menu svg{width:15px;height:15px}
.type-controls{display:flex;flex-direction:column;align-items:stretch;gap:14px;margin-top:16px}
.control-label{display:block;margin-bottom:9px}
.ink-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.ink-name{font-family:var(--serif);font-size:.91rem;font-style:italic;color:#566b59}
.ink-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(37px,1fr));gap:4px;align-items:end;padding:8px 5px 5px;border:1px solid #e2e5dc;border-radius:7px;background:linear-gradient(#f8f8f3,#f1f2eb);box-shadow:inset 0 1px 3px #4251330c}
.ink-dot{position:relative;display:flex;align-items:center;justify-content:center;min-width:0;height:60px;border-radius:5px;transition:background .15s}
.ink-dot:hover{background:#e7ebe2}
.ink-dot[aria-pressed=true]{background:#e5ece2;box-shadow:inset 0 0 0 1px #8ea490}
.ink-bottle{position:relative;display:block;width:29px;height:49px;filter:drop-shadow(0 2px 1px #27332635);transition:transform .15s}
.ink-dot:hover .ink-bottle{transform:translateY(-2px)}
.ink-cap{position:absolute;z-index:2;top:1px;left:6px;width:17px;height:10px;border:1px solid #242a26;border-radius:2px 2px 1px 1px;background:repeating-linear-gradient(90deg,#2c302d 0 2px,#50534b 2px 3px,#262c27 3px 4px);box-shadow:inset 0 1px 1px #ffffff50,0 1px 2px #1115}
.ink-glass{position:absolute;top:10px;left:1px;width:27px;height:35px;overflow:hidden;border:1px solid #263b32a6;border-radius:4px 4px 5px 5px;background:linear-gradient(90deg,#ffffff55 0%,transparent 18%,transparent 68%,#101a1738 100%),linear-gradient(0deg,var(--color) 0 74%,#c2cfbb 75%,#eff4e2 100%);box-shadow:inset 1px 1px 1px #ffffffe0,inset -2px -2px 3px #13231a55,0 1px 1px #17241f38}
.ink-glass::before{content:'';position:absolute;left:3px;top:3px;width:3px;height:24px;border-radius:2px;background:linear-gradient(#ffffffbb,#ffffff16)}
.ink-bottle-label{position:absolute;left:5px;right:4px;top:12px;height:11px;border:1px solid #c6bda3;border-radius:1px;background:linear-gradient(#f7f3e6,#ded8c4);box-shadow:0 1px 1px #12291a35}
.ink-bottle-label::after{content:'';position:absolute;left:2px;right:2px;top:3px;height:1px;background:var(--color);box-shadow:0 2px 0 var(--color);opacity:.6}
.size-group{display:flex;align-items:center;justify-content:space-between;gap:8px}
.size-group .control-label{margin:0}
.stepper{border:1px solid #daddd3;border-radius:6px;height:30px;font-variant-numeric:tabular-nums;overflow:hidden}
.stepper button{width:27px;height:100%;display:grid;place-items:center;color:#5a655b}
.stepper svg{width:12px;height:12px}
.stepper span{min-width:24px;text-align:center}
.paper-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.paper-choice{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;font-size:.75rem;color:#687066}
.paper-choice span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.swatch{height:clamp(40px,3.6vw,55px);background-color:#f3ecda;background-size:cover;background-position:center;border-radius:5px;border:1px solid #0002;position:relative;display:block}
.paper-choice[aria-pressed=true]{color:#344f3e;font-weight:650}
.paper-choice[aria-pressed=true] .swatch{outline:2px solid #4f6a55;outline-offset:2px}
.swatch .badge{color:white;background:#39513f;width:15px;height:15px;border-radius:50%;position:absolute;right:3px;bottom:3px;display:grid;place-items:center}
.swatch .badge svg{width:11px;height:11px}
.stamp-row{border-top:1px solid #e4e7df;margin-top:17px;padding-top:15px;display:flex;align-items:center;justify-content:space-between;gap:9px}
.stamp-row label{font-size:.79rem;gap:7px;color:#5c665c;cursor:pointer}
.stamp-row svg{width:15px;height:15px}
#stamp-switch{margin:0;appearance:none;position:relative;border-radius:20px;width:29px;height:17px;background:#babfb6;cursor:pointer;transition:background .18s}
#stamp-switch:checked{background:#47644e}
#stamp-switch::after{content:'';position:absolute;left:3px;top:3px;width:11px;height:11px;border-radius:50%;background:white;transition:transform .18s}
#stamp-switch:checked::after{transform:translateX(12px)}
.preview{min-width:0;display:flex;flex-direction:column;overflow:hidden;align-self:stretch}
.preview-bar,.preview-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}
.preview-bar{height:50px;padding:0 16px 0 20px;border-bottom:1px solid #cfd5cb;flex-shrink:0}
.preview-bar h2{font-size:.875rem;gap:9px;font-weight:550}
.live-dot{background:#66846b;width:7px;height:7px;border-radius:50%}
.preview-actions{gap:9px;color:#5a645c}
.preview-actions button,.pagination button,.icon-button{display:grid;place-items:center;width:29px;height:29px;border-radius:5px}
.preview-actions button svg,.pagination button svg{width:16px;height:16px}
.zoom-group{gap:2px}
#zoom-reset{width:44px;font-size:.75rem;font-variant-numeric:tabular-nums}
.tool-rule{height:17px;width:1px;background:var(--rule)}
.stage{position:relative;isolation:isolate;flex:1 0 auto;display:flex;align-items:safe center;justify-content:safe center;padding:30px 24px;overflow:auto;min-height:420px;height:clamp(468px,calc(100svh - 306px),690px);background-color:#e7ebe3;background-image:radial-gradient(ellipse at 35% 0%,#ffffff2b,transparent 70%),radial-gradient(circle at 1px 1px,#65725a38 .75px,transparent .95px);background-size:auto,13px 13px;scrollbar-color:#abb4a5 transparent}
.paper-holder{--zoom:1;--fit:435px;width:calc(var(--fit)*var(--zoom));flex:none;position:relative;transform:rotate(-1deg);filter:drop-shadow(1px 3px 2px #443b262c) drop-shadow(4px 10px 10px #40443222)}
.paper-holder::before{content:'';position:absolute;inset:3px 2px -2px 2px;background:#e6dfcb;transform:rotate(.42deg);z-index:-1}
#sheet{display:block;width:100%;height:auto;aspect-ratio:700/790;background:#f9f3e5;clip-path:polygon(0 .1%,9% .05%,15% .25%,25% 0,36% .12%,43% .04%,57% .2%,68% .06%,79% .14%,93% .05%,99.9% .15%,99.8% 8%,100% 24%,99.9% 38%,100% 66%,99.85% 84%,99.95% 99.85%,95% 99.78%,88% 99.95%,75% 99.8%,60% 100%,48% 99.8%,35% 99.93%,20% 99.78%,8% 100%,.12% 99.8%,.2% 84%,0 65%,.1% 50%,0 38%,.15% 17%)}
.preview-foot{padding:0 18px;height:39px;flex-shrink:0;border-top:1px solid #d6dcd1;color:#626b61;background:#fdfefb}
.stock-meta{gap:7px;min-width:0}
.stock-meta span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.stock-meta svg{width:14px;height:14px}
.stock-meta,.pagination{font-size:.75rem}
.pagination{gap:5px;white-space:nowrap}
.pagination button{width:23px;height:23px}
#render-error{max-width:30ch;line-height:1.5;padding:16px;background:white;border-radius:8px}
.mobile-tabs{display:none}
body.is-expanded{overflow:hidden}
.preview.expanded{position:fixed;inset:12px;z-index:12;box-shadow:0 0 0 30px #1c271eb0}
.preview.expanded .stage{height:auto;min-height:0;flex:1 1 0}
body.is-shared .controls,body.is-shared .mobile-tabs{display:none}
body.is-shared .workspace{display:block}
body.is-shared .preview{display:flex}
body.is-shared .doc-name .tiny{display:none}
body.is-shared #shared-copy-wrap{margin-top:18px;text-align:center}
dialog{color:var(--ink);background:#fdfffa;border:1px solid #d1d7cd;box-shadow:0 18px 75px #1f30253b;border-radius:14px;width:min(440px,calc(100% - 32px));padding:24px;max-height:85svh}
dialog::backdrop{background:#24332958;backdrop-filter:blur(3px)}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.modal-head h2{font:480 29px/1.15 var(--serif);letter-spacing:-1.1px}
.modal-head .icon-button{align-self:flex-start}
.icon-button svg{width:18px;height:18px}
#modal-body{font-size:.9rem;line-height:1.5;overflow-wrap:anywhere}
#modal-body p{color:#606a60;margin-bottom:17px}
#modal-body input:not([type=checkbox]),#modal-body select{width:100%;height:42px;border:1px solid #bdc9bb;border-radius:6px;background:white;padding:0 10px;font-size:.9rem}
.field{display:block;margin-bottom:14px}
.field span{display:block;font-size:.8rem;margin-bottom:6px;color:#515d52}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;flex-wrap:wrap}
.library-list{display:grid;gap:6px;max-height:45vh;overflow:auto}
.library-item{display:flex;align-items:center;gap:12px;text-align:left;padding:9px 10px;width:100%;border:1px solid #d8dfd5;border-radius:7px;background:white}
.library-item:hover{background:#eff3ed}
.library-item>svg{width:19px;flex:none;color:var(--green)}
.library-item span{min-width:0;flex:1}
.library-item strong,.library-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-item small{color:var(--sub);font-size:.75rem;margin-top:2px}
.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:30;background:#283f30;color:white;border-radius:8px;padding:11px 17px;font-size:.86rem;max-width:min(92%,620px);box-shadow:0 3px 18px #152c2825}
@media(min-width:1600px){.stage{height:clamp(530px,calc(100svh - 345px),780px)}}
@media(max-width:900px){.masthead-inner,.desk{padding-inline:22px}.workspace{grid-template-columns:290px minmax(0,1fr);gap:15px}.block{padding:18px}.stage{padding:24px 15px}.ink-row{gap:7px}.header-actions{gap:6px}}
@media(max-width:720px){.masthead-inner,.desk{padding-inline:16px}.masthead-inner{height:62px;gap:5px}.wordmark{font-size:27px;gap:8px}.brand-mark{width:30px;height:30px;border-radius:8px}.brand-mark svg{width:22px;height:22px}.header-actions{gap:5px}.header-actions .btn{padding:0 10px;min-height:36px}.btn-quiet span,.btn-outline span,.nav-rule{display:none}.header-actions .btn-quiet,.header-actions .btn-outline{width:35px;padding:0}.header-actions .btn-outline{border-color:transparent}.header-actions .btn-primary{font-size:.79rem;gap:6px}.desk{padding-top:24px}.title-bar{margin-bottom:15px}.save-status{font-size:.73rem;gap:5px}.save-status svg{width:15px;height:15px}h1{font-size:2.5rem;margin-bottom:5px}.doc-name{font-size:.8rem}.workspace{display:block}.mobile-tabs{display:flex;border-bottom:1px solid var(--rule);gap:22px;margin-bottom:13px}.mobile-tabs button{font-size:.87rem;min-height:35px;color:var(--sub);border-bottom:2px solid transparent}.mobile-tabs button[aria-current]{color:var(--green);border-color:var(--green);font-weight:600}.workspace[data-mobile="preview"] .controls,.workspace[data-mobile="editor"] .preview{display:none}.preview.expanded{display:flex!important}.stage{min-height:290px;height:clamp(320px,calc(100svh - 296px),680px)}.block{padding:20px}.controls .block+.block{border-top:1px solid var(--rule)}#classic-input-slot #manuscript{height:170px}.paper-row{grid-template-columns:repeat(4,minmax(0,1fr))}.swatch{height:49px}.preview-bar{height:44px;padding-inline:14px 8px}.preview-foot{height:35px}.workspace .preview.expanded{display:flex}.doc-name span{max-width:49vw}}
@media(max-width:380px){.masthead-inner,.desk{padding-inline:12px}.header-actions .btn-primary span{font-size:0}.header-actions .btn-primary span::after{content:'Export';font-size:.8rem}.save-status{max-width:110px}.type-controls{gap:7px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
.writing-area{border:1px solid #daddd3;border-radius:7px;background:#fcfcfa;overflow:hidden}
.writing-area:focus-within{border-color:#879c86}
#classic-input-slot #manuscript{border:0;border-radius:0;background:transparent;height:clamp(120px,15.4vh,165px);padding:11px 13px;outline-offset:-2px;resize:vertical}
.format-bar{border-top:1px solid #e0e4da;padding:4px 7px;display:flex;align-items:center;justify-content:space-between;gap:6px;background:#f8faf5}
.alignment{display:flex;gap:2px}
.alignment button{display:grid;place-items:center;width:25px;height:24px;color:#727b70;border-radius:4px}
.alignment button:hover,.alignment button[aria-pressed=true]{background:#e6ece1;color:#3d5842}
.format-bar svg{width:14px;height:14px}
.leading{display:flex;align-items:center;position:relative;color:#657061;gap:5px}
.leading select{appearance:none;outline-offset:1px;border:0;background:transparent;font-size:.74rem;padding:4px 16px 4px 1px;color:#52614f;cursor:pointer}
.leading i:last-child{position:absolute;right:1px;pointer-events:none}
.leading i:last-child svg{width:11px;height:11px}
@media(max-width:720px){.stage{height:min(calc((100vw - 58px)*1.13 + 50px),calc(100svh - 260px));min-height:320px}.header-actions .btn-primary span{font-size:0}.header-actions .btn-primary span::after{content:'Export';font-size:.8rem}.masthead-inner{gap:4px}.header-actions{gap:2px}.wordmark{font-size:clamp(23px,6.8vw,27px)}.wordmark>span:last-child{padding-top:4px}#classic-input-slot #manuscript{height:160px}}
@media(max-width:355px){.header-actions .btn-quiet,.header-actions .btn-outline{width:29px}.header-actions .btn-primary{padding:0 8px}.wordmark{gap:6px}.brand-mark{width:27px;height:27px}}
.head-actions{display:inline-flex;align-items:center;gap:12px}
.material-item img{width:34px;height:34px;flex:none;border-radius:4px;border:1px solid #c9d0c5;object-fit:cover}
.material-item span{overflow-wrap:anywhere}
.library-row{display:flex;align-items:center;gap:6px}
.library-row>.library-item{flex:1;min-width:0}
.delete-draft{color:#697367;flex:none}
.delete-draft:hover{color:#833e36;background:#f6ece7}
.btn-danger{background:#83473c;color:white}
.sr-only{position:absolute;overflow:hidden;clip-path:inset(50%);width:1px;height:1px;padding:0;border:0;white-space:pre-wrap}

.title-bar {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:5px 16px;
}
.title-document {grid-area:1 / 1 / 3 / 2;min-width:0}
.desk-options {display:flex;align-items:center;justify-content:flex-end;gap:8px}
.title-bar .save-status {justify-self:end}
.mode-picker,#materials-toggle {
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:36px;
  border:1px solid #cbd4c8;
  border-radius:7px;
  background:#fff;
  color:var(--green);
  font-size:.84rem;
}
.mode-picker {position:relative}
.mode-picker:focus-within {outline:2px solid #638b72;outline-offset:2px}
.mode-picker select {
  appearance:none;
  position:relative;
  z-index:1;
  padding:7px 29px 7px 34px;
  border:0;
  border-radius:inherit;
  background:transparent;
  font-weight:560;
  cursor:pointer;
}
.mode-picker select:focus-visible {outline:none}
.mode-picker i {position:absolute;pointer-events:none}
.mode-picker i:first-child {left:11px}
.mode-picker i:last-child {right:9px}
.mode-picker svg,#materials-toggle svg {width:15px;height:15px}
.mode-picker i:last-child svg {width:12px;height:12px}
#materials-toggle {display:none;padding:0 11px;font-weight:550}
#materials-toggle[aria-expanded=true] {background:#e7efe6;border-color:#759078}
.live-only,.touch-hint {display:none}
.sheet-heading,.sheet-details {display:flex;align-items:center;gap:13px;min-width:0}
.sheet-heading h2 {white-space:nowrap}
body[data-desk-mode=live]:not(.is-shared) .live-only {display:inline}
body[data-desk-mode=live]:not(.is-shared) :is(.classic-only,.mobile-tabs,#classic-input-slot) {display:none}
body.is-shared .desk-options {display:none}
body.is-shared .title-bar {display:flex}
body[data-desk-mode=live]:not(.is-shared) .workspace {
  grid-template-columns:clamp(285px,23vw,342px) minmax(0,1fr);
  gap:0;
  border:1px solid #ced6ca;
  border-radius:13px;
  background:#fff;
}
body[data-desk-mode=live]:not(.is-shared) .controls {
  display:flex;
  flex-direction:column;
  align-self:stretch;
  border:0;
  border-right:1px solid var(--rule);
  border-radius:13px 0 0 13px;
}
body[data-desk-mode=live]:not(.is-shared) .hand-block {order:0;border-top:0}
body[data-desk-mode=live]:not(.is-shared) .paper-block {order:1}
body[data-desk-mode=live]:not(.is-shared) .text-block {order:2;border-top:1px solid var(--rule)}
body[data-desk-mode=live]:not(.is-shared) .format-bar {border:0;padding:5px 7px}
body[data-desk-mode=live]:not(.is-shared) .alignment button {width:31px;height:28px}
body[data-desk-mode=live]:not(.is-shared) .preview {border:0;border-radius:0 12px 12px 0}
body[data-desk-mode=live]:not(.is-shared) .preview.expanded {border-radius:12px}
body[data-desk-mode=live]:not(.is-shared) .stage {
  height:clamp(515px,calc(100svh - 290px),850px);
}
body[data-desk-mode=live]:not(.is-shared) .preview.expanded .stage {height:auto}
body[data-desk-mode=live]:not(.is-shared) .paper-holder {transform:none}
.sheet-hint {
  border-left:1px solid var(--rule);
  padding-left:13px;
  font-size:.78rem;
  color:var(--sub);
}
.preview:has(#manuscript:focus) .sheet-hint {visibility:hidden}
#live-word-count {
  padding-left:11px;
  border-left:1px solid var(--rule);
  font-size:.75rem;
  white-space:nowrap;
}
@media(hover:none) {
  .mouse-hint {display:none}
  .touch-hint {display:inline}
}
@media(min-width:721px) and (max-width:930px) {
  body[data-desk-mode=live]:not(.is-shared) .sheet-heading {display:block}
  body[data-desk-mode=live]:not(.is-shared) .sheet-hint {display:block;border:0;padding:0 0 0 16px;font-size:.73rem}
}
@media(max-width:720px) {
  .title-bar {gap:5px 8px}
  body[data-desk-mode=live]:not(.is-shared) .title-bar {display:flex;flex-wrap:wrap;gap:12px 6px}
  body[data-desk-mode=live]:not(.is-shared) .title-document {flex:1}
  body[data-desk-mode=live]:not(.is-shared) .desk-options {order:3;flex-basis:100%;justify-content:space-between}
  body[data-desk-mode=live]:not(.is-shared) #materials-toggle {display:inline-flex}
  body[data-desk-mode=live]:not(.is-shared) .workspace {position:relative;display:block}
  body[data-desk-mode=live]:not(.is-shared) .workspace .preview {display:flex;border-radius:12px}
  body[data-desk-mode=live]:not(.is-shared) .workspace .controls {display:none}
  body[data-desk-mode=live]:not(.is-shared) .workspace[data-materials=open] .controls {
    display:flex;
    position:absolute;
    z-index:6;
    top:-8px;
    right:0;
    width:min(332px,100%);
    max-height:min(53svh,540px);
    overflow-y:auto;
    overscroll-behavior:contain;
    border:1px solid #c9d4c5;
    border-radius:11px;
    box-shadow:0 9px 30px #273d2b29;
  }
  body[data-desk-mode=live]:not(.is-shared) .workspace .stage {
    height:clamp(330px,calc((100vw - 58px)*1.13 + 50px),790px);
    min-height:0;
  }
  body[data-desk-mode=live]:not(.is-shared) .workspace .preview.expanded .stage {height:auto}
  body[data-desk-mode=live]:not(.is-shared) .sheet-heading {display:block}
  body[data-desk-mode=live]:not(.is-shared) .sheet-hint {display:block;border:0;padding:0 0 0 16px;font-size:.73rem}
  body[data-desk-mode=live]:not(.is-shared) .preview-bar {height:48px}
}

.focus-exit { display:none; }
body.is-focus-mode { overflow:hidden; }
body.is-focus-mode .masthead,
body.is-focus-mode .title-bar,
body.is-focus-mode .mobile-tabs,
body.is-focus-mode #editor-panel,
body.is-focus-mode #shared-copy-wrap { display:none !important; }
body.is-focus-mode .desk { padding:0; max-width:none; }
body.is-focus-mode .workspace { display:block !important; border:0 !important; background:transparent !important; }
body.is-focus-mode .preview,
body.is-focus-mode .preview.expanded {
  position:fixed !important; inset:0 !important; z-index:30;
  display:flex !important; border:0 !important; border-radius:0 !important;
  box-shadow:none !important; background:#e7ebe3;
}
body.is-focus-mode .preview-bar { display:none; }
body.is-focus-mode .stage,
body[data-desk-mode=live].is-focus-mode:not(.is-shared) .workspace .stage {
  flex:1 1 0; height:auto; min-height:0; padding:36px 20px 12px;
}
body.is-focus-mode .preview-foot {
  justify-content:center; height:42px; background:transparent; border:0;
}
body.is-focus-mode .sheet-details { display:none; }
body.is-focus-mode .focus-exit:not([hidden]) {
  position:absolute; z-index:2; top:max(12px, env(safe-area-inset-top)); right:max(12px, env(safe-area-inset-right));
  display:block; min-height:38px; padding:0 13px; border:1px solid #c8d0c4; border-radius:7px;
  background:#fffffff2; color:#354c3b; font-size:.78rem; font-weight:600; box-shadow:0 2px 12px #283b2720;
}
body.is-focus-mode .focus-exit:hover { background:#eff4ed; }
body.is-focus-mode .pagination { background:#ffffffd9; padding:1px 8px; border-radius:6px; }
.stamp-actions { display:inline-flex; align-items:center; gap:12px; }

.opacity-group{display:grid;grid-template-columns:1fr auto;align-items:center;gap:4px 10px;font-size:.8rem;color:var(--sub)}
.opacity-group output{font-variant-numeric:tabular-nums}
.opacity-group input{grid-column:1 / -1;width:100%;margin:0;accent-color:var(--green);cursor:pointer}

.handwriting-guide-link{margin:-3px 0 11px}

.compare-letter-link{margin-top:14px;text-decoration:none}.compare-letter-link:hover{text-decoration:underline}

/* The desk leaves the writing surface in the foreground; tools open when needed. */
:root {
  background:#f5f6f2;
  --rule:#e0e5dc;
}
.masthead {
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:20;
  border-bottom:1px solid #dfe5db;
  background:#fbfcf9f5;
  backdrop-filter:blur(14px);
  transition:transform .2s ease,visibility .2s;
}
.masthead-inner {
  max-width:none;
  height:66px;
  padding-inline:clamp(20px,3vw,48px);
  gap:16px;
}
.wordmark {font-size:30px;gap:10px}
.brand-mark {width:32px;height:32px;border-radius:9px}
.brand-mark svg {width:24px;height:24px}
.header-actions {margin-left:auto}
.top-bar-close {
  display:grid;
  place-items:center;
  flex:none;
  width:34px;
  height:34px;
  border-radius:7px;
  color:#647168;
}
.top-bar-close:hover {background:#eaf0e8;color:#2f4e3a}
.top-bar-close svg {width:16px;height:16px}
.top-bar-reveal {
  position:fixed;
  z-index:21;
  top:0;
  left:50%;
  transform:translateX(-50%);
  display:none;
  place-items:center;
  width:64px;
  height:23px;
  padding:0;
  border:1px solid #ccd5c8;
  border-top:0;
  border-radius:0 0 9px 9px;
  background:#fbfcf9f2;
  box-shadow:0 2px 7px #344d3614;
}
.top-bar-reveal span {width:21px;height:2px;border-radius:2px;background:#849589}
.top-bar-reveal:hover span,.top-bar-reveal:focus-visible span {background:#304f3f}
body.top-bar-hidden .masthead {transform:translateY(-110%);visibility:hidden;pointer-events:none}
body.top-bar-hidden.top-bar-peek .masthead {transform:none;visibility:visible;pointer-events:auto}
body.top-bar-hidden .top-bar-reveal {display:grid}
body.top-bar-hidden.top-bar-peek .top-bar-reveal {display:grid}
body.is-focus-mode .top-bar-reveal,body.is-expanded .top-bar-reveal {display:none!important}
.desk {max-width:none;padding:90px clamp(20px,3vw,48px) 26px;transition:padding-top .2s ease}
body.top-bar-hidden .desk {padding-top:29px}
.title-bar {margin-bottom:16px;align-items:center}
.title-document {grid-area:auto;min-width:0;display:flex;align-items:baseline;gap:17px}
.title-bar {display:flex;gap:14px}
.title-bar .desk-options {margin-left:auto}
.title-bar .save-status {align-self:center;margin:0;white-space:nowrap}
.title-bar h1 {font-size:clamp(1.8rem,2vw,2.3rem);margin:0;white-space:nowrap;letter-spacing:-.04em}
.doc-name {max-width:30vw}
.mode-picker,#materials-toggle {background:#fbfcf9;border-color:#d7dfd3}
#materials-toggle {min-height:36px}
body[data-desk-mode=live]:not(.is-shared) #materials-toggle {display:inline-flex}
body[data-desk-mode=live]:not(.is-shared) .workspace {
  position:relative;
  display:block;
  border:1px solid #d9dfd5;
  border-radius:12px;
  background:#fff;
}
body[data-desk-mode=live]:not(.is-shared) .workspace .controls {display:none}
body[data-desk-mode=live]:not(.is-shared) .workspace[data-materials=open] .controls {
  display:flex;
  position:absolute;
  z-index:9;
  top:8px;
  right:8px;
  width:min(340px,calc(100% - 16px));
  max-height:min(72svh,780px);
  overflow-y:auto;
  overscroll-behavior:contain;
  align-self:auto;
  border:1px solid #d5dfd0;
  border-radius:10px;
  background:#fefefb;
  box-shadow:0 12px 35px #304b342b;
}
body[data-desk-mode=live]:not(.is-shared) .workspace .preview {display:flex;border-radius:11px}
body[data-desk-mode=live]:not(.is-shared) .workspace .stage {
  height:clamp(500px,calc(100svh - 224px),1000px);
  min-height:0;
}
body[data-desk-mode=live].top-bar-hidden:not(.is-shared) .workspace .stage {
  height:clamp(500px,calc(100svh - 163px),1060px);
}
body[data-desk-mode=live]:not(.is-shared) .preview.expanded .stage {height:auto}
.stage {
  background-color:#ebeee8;
  background-image:radial-gradient(ellipse at 50% 10%,#fff7,transparent 68%);
  background-size:auto;
  scrollbar-color:#abb4a5 transparent;
}
.paper-holder {filter:drop-shadow(0 3px 4px #3745331c) drop-shadow(0 12px 22px #37453312)}
.paper-holder::before {opacity:.6}
.preview-bar {height:45px;border-bottom-color:#e4e9e0}
.preview-foot {border-top-color:#e4e9e0;background:#fbfcf9}
.preview-bar h2 {font-weight:560}
.live-dot {display:none}
.sheet-hint {font-size:.78rem}
.block {padding:20px}
.block-head {margin-bottom:12px}
.block+.block {border-color:#e8ece5}
.btn-outline {background:transparent}
@media(max-width:900px) {
  .masthead-inner,.desk {padding-inline:20px}
  .desk {padding-top:86px}
  body.top-bar-hidden .desk {padding-top:27px}
  .title-bar .save-status {font-size:.75rem}
}
@media(max-width:720px) {
  .masthead-inner {height:59px;padding-inline:14px;gap:6px}
  .wordmark {font-size:25px;gap:7px}
  .brand-mark {width:28px;height:28px}
  .brand-mark svg {width:21px;height:21px}
  .header-actions {gap:2px}
  .top-bar-close {width:31px;height:34px}
  .desk {padding:77px 14px 20px}
  body.top-bar-hidden .desk {padding-top:27px}
  body[data-desk-mode=live]:not(.is-shared) .title-bar,
  .title-bar {display:flex;flex-wrap:wrap;align-items:center;gap:10px 8px;margin-bottom:13px}
  body[data-desk-mode=live]:not(.is-shared) .title-document,
  .title-document {display:flex;flex:1 1 auto;align-items:baseline;gap:9px;min-width:0}
  .title-bar h1 {font-size:1.75rem}
  .doc-name {max-width:min(42vw,220px)}
  .doc-name svg:first-child {display:none}
  body[data-desk-mode=live]:not(.is-shared) .desk-options {order:3;flex:1 0 100%;justify-content:space-between}
  .title-bar .save-status {font-size:.72rem;white-space:nowrap}
  body[data-desk-mode=live]:not(.is-shared) .workspace .controls {display:none}
  body[data-desk-mode=live]:not(.is-shared) .workspace[data-materials=open] .controls {
    display:flex;position:absolute;top:6px;right:6px;
    max-height:min(64svh,700px);
  }
  body[data-desk-mode=live]:not(.is-shared) .workspace .stage,
  body[data-desk-mode=live].top-bar-hidden:not(.is-shared) .workspace .stage {
    height:clamp(330px,calc((100vw - 52px)*1.13 + 38px),790px);
  }
  body[data-desk-mode=live]:not(.is-shared) .preview.expanded .stage {height:auto}
  body[data-desk-mode=live]:not(.is-shared) .sheet-hint {padding-left:0}
}
@media(max-width:380px) {
  .masthead-inner {padding-inline:10px;gap:4px}
  .desk {padding-inline:10px}
  .wordmark {font-size:23px}
  .title-bar h1 {font-size:1.55rem}
  .doc-name {max-width:38vw}
}
@media(prefers-reduced-motion:reduce) {.masthead,.desk {transition:none}}

/* The letter fills the desk; document and appearance controls live in the top bar. */
.masthead {
  position:fixed;
  inset:0 0 auto;
  z-index:20;
  width:100%;
  background:#fbfcf9f5;
  border-bottom:1px solid #d9e0d6;
  box-shadow:0 3px 22px #233b2512;
  backdrop-filter:blur(16px);
}
.masthead-inner {
  max-width:none;
  min-height:64px;
  height:auto;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:9px clamp(14px,2vw,28px);
}
.masthead .wordmark {font-size:27px;letter-spacing:-1.2px;gap:9px;margin-right:8px}
.masthead .brand-mark {width:31px;height:31px;border-radius:8px}
.masthead .brand-mark svg {width:23px;height:23px}
.masthead .title-bar {display:contents;margin:0}
.masthead .title-document {display:flex;min-width:0;align-items:center;gap:0}
.masthead .title-bar h1.sr-only {position:absolute;overflow:hidden;clip-path:inset(50%);width:1px;height:1px;white-space:nowrap}
.masthead .doc-name {max-width:160px;min-height:36px;padding:0 6px;font-size:.8rem}
.masthead .doc-name span {max-width:115px}
.masthead .desk-options {display:flex;align-items:center;gap:7px;margin:0}
.masthead .mode-picker,.masthead #materials-toggle {min-height:36px}
.masthead .save-status {align-self:center;margin:0;font-size:.72rem;color:#6c7a6c}
.masthead .save-status svg {width:15px;height:15px}
.top-bar-tools {display:flex;align-items:center;gap:7px;margin-left:auto}
.masthead .preview-actions {display:flex;align-items:center;gap:3px}
.masthead .preview-actions button {width:29px;height:32px}
.masthead .preview-actions #zoom-reset {width:40px}
.masthead #expand {display:none}
.masthead .preview-foot.top-bar-pages {
  display:flex;
  padding:0 4px;
  height:32px;
  border:0;
  background:none;
}
.masthead .preview-foot .sheet-details {display:none}
.masthead .pagination {font-size:.75rem}
.masthead .header-actions {display:flex;align-items:center;gap:5px}
.masthead .header-actions .nav-rule {display:none}
.masthead .header-actions .btn {min-height:36px;padding-inline:11px;font-size:.78rem}
.masthead .header-actions .btn-quiet {padding-inline:8px}
.masthead #shared-copy-wrap {margin:0}
.masthead #shared-copy-wrap .btn {min-height:36px}
#materials-panel-slot #editor-panel {display:none}
body:has(#workspace[data-materials="open"]):not(.is-shared) #materials-panel-slot #editor-panel {
  display:flex;
  position:absolute;
  top:calc(100% + 8px);
  right:clamp(12px,2vw,28px);
  z-index:22;
  flex-direction:column;
  width:min(340px,calc(100vw - 24px));
  max-height:min(72dvh,780px);
  overflow-y:auto;
  overscroll-behavior:contain;
  border:1px solid #d5dfd0;
  border-radius:10px;
  background:#fefefb;
  box-shadow:0 12px 35px #304b342b;
}
#materials-panel-slot #editor-panel .hand-block {order:0;border-top:0}
#materials-panel-slot #editor-panel .paper-block {order:1}
#materials-panel-slot #editor-panel .text-block {order:2;border-top:1px solid var(--rule)}
.masthead .mobile-tabs {display:none}
.desk,body.top-bar-hidden .desk {max-width:none;width:100%;height:100dvh;padding:0;transition:none}
.workspace,body[data-desk-mode=live]:not(.is-shared) .workspace {
  position:relative;
  display:block;
  width:100%;
  height:100%;
  border:0;
  border-radius:0;
  background:transparent;
}
#classic-controls-slot:empty {display:none}
.preview,body[data-desk-mode=live]:not(.is-shared) .workspace .preview {
  display:flex;
  width:100%;
  height:100%;
  border:0;
  border-radius:0;
  background:transparent;
}
.preview .preview-bar.sr-only {position:absolute;overflow:hidden;clip-path:inset(50%);width:1px;height:1px;padding:0;border:0}
.stage,body[data-desk-mode=live]:not(.is-shared) .workspace .stage,
body[data-desk-mode=live].top-bar-hidden:not(.is-shared) .workspace .stage {
  flex:1 1 0;
  height:auto;
  min-height:0;
  padding:34px 20px 24px;
  background:#ebeee8 radial-gradient(ellipse at 50% 15%,#fff8,transparent 70%);
}
body.is-shared .workspace {display:block}
body.is-shared .desk-options {display:none}
body.is-shared .top-bar-tools {margin-left:auto}
body.is-shared #shared-copy-wrap:not([hidden]) {display:block;margin:0}
#fullscreen-pagination-slot {display:none}
body.is-focus-mode #fullscreen-pagination-slot {display:flex;position:absolute;z-index:2;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);border-radius:6px;background:#fffdf5eb;color:#536355;padding:2px 8px}
body.is-expanded .expanded-exit:not([hidden]) {display:block;position:absolute;z-index:3;top:12px;right:12px;min-height:38px;padding:0 13px;border:1px solid #c8d0c4;border-radius:7px;background:#fff;color:#354c3b}
body[data-desk-mode="classic"]:not(.is-shared) .workspace {display:grid;grid-template-columns:minmax(290px,360px) minmax(0,1fr)}
body[data-desk-mode="classic"]:not(.is-shared) #classic-controls-slot {display:block;height:100%;overflow:auto;padding:82px 0 20px 20px}
body[data-desk-mode="classic"]:not(.is-shared) #classic-controls-slot .controls {display:block;height:auto}
body[data-desk-mode="classic"]:not(.is-shared) .preview {height:100%}
body[data-desk-mode="classic"]:not(.is-shared) #materials-toggle {display:none}
@media(max-width:1050px) {
  .masthead .save-status span {position:absolute;overflow:hidden;clip-path:inset(50%);width:1px;height:1px;white-space:nowrap}
  .masthead .header-actions .btn-quiet span,.masthead .header-actions .btn-outline span {display:none}
  .masthead .header-actions .btn-quiet,.masthead .header-actions .btn-outline {width:34px;padding:0}
}
@media(max-width:720px) {
  .masthead-inner {padding:8px 12px;gap:6px;align-items:center}
  .masthead .wordmark {font-size:0;margin:0}
  .masthead .wordmark > span:last-child {display:none}
  .masthead .brand-mark {width:29px;height:29px}
  .masthead .title-document {flex:1 1 135px}
  .masthead .doc-name {max-width:180px}
  .masthead .doc-name span {max-width:130px}
  .masthead .desk-options {order:4;flex:1 1 auto;justify-content:flex-start}
  .masthead .top-bar-tools {order:5;margin:0;gap:3px}
  .masthead .header-actions {order:2}
  .masthead .save-status {order:1}
  .masthead #shared-copy-wrap {order:3}
  .masthead .top-bar-close {order:3;flex:none}
  .masthead .mode-picker {min-height:33px}
  .masthead #materials-toggle {min-height:33px}
  .masthead .preview-actions button {width:28px;height:30px}
  .masthead .preview-actions #zoom-reset {width:38px}
  .masthead .preview-foot.top-bar-pages {height:30px;padding:0}
  .masthead .header-actions .btn-primary {padding:0 9px;font-size:.76rem}
  body[data-desk-mode="classic"]:not(.is-shared) .workspace {display:block}
  body[data-desk-mode="classic"]:not(.is-shared) #classic-controls-slot {height:100%;padding:95px 12px 12px}
  body[data-desk-mode="classic"]:not(.is-shared) .workspace[data-mobile="editor"] .preview {display:none}
  body[data-desk-mode="classic"]:not(.is-shared) .workspace[data-mobile="preview"] #classic-controls-slot {display:none}
  body[data-desk-mode="classic"]:not(.is-shared) .masthead .mobile-tabs {display:flex;gap:18px;margin:0 12px}
  .masthead .mobile-tabs button {min-height:31px}
}
@media(max-width:720px) {
  body .masthead .masthead-inner {display:flex;flex-wrap:wrap;align-items:center;column-gap:5px;row-gap:4px}
  body[data-desk-mode] .masthead .title-document {order:0;flex:1 1 70px;min-width:0}
  body[data-desk-mode] .masthead .desk-options {order:4;flex:0 0 auto;justify-content:flex-start;margin:0;gap:4px}
  body .masthead .wordmark {order:0;flex:none}
  body .masthead .save-status {order:1;flex:none}
  body .masthead .header-actions {order:2;flex:none}
  body .masthead .top-bar-close {order:3;flex:none}
  body .masthead .top-bar-tools {order:5;flex:1 1 auto;justify-content:flex-end;margin:0;gap:3px}
  body .masthead .mode-picker {padding:0 6px;gap:4px}
  body .masthead .mode-picker select {font-size:.72rem;padding:0 16px 0 0}
  body .masthead #materials-toggle {padding-inline:8px;font-size:.73rem}
  body .masthead .preview-actions button {width:24px}
  body .masthead .preview-actions #zoom-reset {width:36px;font-size:.71rem}
  body .masthead .top-bar-pages {font-size:.7rem}
  body .masthead .pagination {font-size:.7rem;gap:1px}
  body .masthead .pagination button {width:21px}
}
@media(max-width:360px) {
  body .masthead .doc-name {max-width:75px}
  body .masthead .doc-name span {max-width:55px}
  body .masthead .brand-mark {width:27px;height:27px}
  body .masthead .save-status {display:none}
  body .masthead .preview-actions #zoom-reset {width:33px}
  body .masthead .preview-actions button {width:22px}
  body .masthead .top-bar-tools {gap:0}
  body .masthead .pagination {font-size:.65rem}
  body .masthead .mode-picker select {font-size:.68rem}
  body .masthead #materials-toggle {padding-inline:6px}
}
body[data-desk-mode] .masthead .title-bar {display:contents}
@media(max-width:720px) {
  body .masthead .mode-picker {position:relative;padding:0 7px 0 8px}
  body .masthead .mode-picker select {padding:0 17px 0 2px}
}
@media(max-width:720px) {
  body .masthead .mode-picker i:first-child {display:none}
  body .masthead .mode-picker select {padding:0 17px 0 2px}
  body:has(#prev-page[hidden]) .masthead .pagination {display:none}
}
body[data-desk-mode="classic"].top-bar-hidden:not(.is-shared) #classic-controls-slot {padding-top:30px}
@media(max-width:720px) {
  body[data-desk-mode="classic"]:not(.is-shared) #classic-controls-slot {padding-top:130px}
  body[data-desk-mode="classic"].top-bar-hidden:not(.is-shared) #classic-controls-slot {padding-top:28px}
}

/* A stitched fabric tab sits at the edge of the bar in both positions. */
.top-bar-reveal,
body.top-bar-hidden .top-bar-reveal,
body.top-bar-hidden.top-bar-peek .top-bar-reveal {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:4px;
  width:72px;
  height:61px;
  top:0;
  z-index:23;
  border:0;
  border-radius:0;
  padding:9px 5px 15px;
  background:
    repeating-linear-gradient(0deg, #fff0 0 2px, #ffffff0b 2px 3px),
    repeating-linear-gradient(90deg, #0000 0 2px, #091a0b0c 2px 3px),
    linear-gradient(90deg,#395640,#5e7c61 13%,#67846a 51%,#405f49);
  clip-path:polygon(0 0,100% 0,100% 72%,50% 100%,0 72%);
  color:#fffdf2;
  filter:drop-shadow(0 3px 3px #1d2f2455);
  box-shadow:none;
  transition:top .2s ease,filter .15s ease;
}
body:not(.top-bar-hidden) .top-bar-reveal,
body.top-bar-hidden.top-bar-peek .top-bar-reveal {
  top:calc(var(--bar-height, 64px) - 1px);
  padding:17px 5px 7px;
  flex-direction:column-reverse;
  clip-path:polygon(50% 0,100% 28%,100% 100%,0 100%,0 28%);
}
.top-bar-reveal::before {
  content:'';
  position:absolute;
  pointer-events:none;
  inset:3px 4px 10px;
  border-left:1px dashed #f0f1d587;
  border-right:1px dashed #f0f1d587;
}
body:not(.top-bar-hidden) .top-bar-reveal::before,
body.top-bar-hidden.top-bar-peek .top-bar-reveal::before {inset:10px 4px 3px}
.top-bar-reveal .ribbon-text,
.top-bar-reveal:hover .ribbon-text,
.top-bar-reveal:focus-visible .ribbon-text {
  position:relative;
  width:auto;
  height:auto;
  background:transparent;
  color:inherit;
  font:600 12px/1.1 var(--sans);
  letter-spacing:.005em;
  white-space:nowrap;
  text-shadow:0 1px 1px #1a3022aa;
}
.top-bar-reveal .ribbon-chevron {
  width:14px;
  height:9px;
  flex:none;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body:not(.top-bar-hidden) .top-bar-reveal .ribbon-chevron,
body.top-bar-hidden.top-bar-peek .top-bar-reveal .ribbon-chevron {transform:rotate(180deg)}
.top-bar-reveal:hover {filter:drop-shadow(0 5px 5px #1d2f2466) brightness(1.08)}
.top-bar-reveal:focus-visible {outline:2px solid #254c34;outline-offset:3px}
@media(prefers-reduced-motion:reduce) {.top-bar-reveal {transition:none}}
.ink-scope {display:inline-block;margin-left:5px;color:#738073;font-size:.72rem;font-weight:400}
.custom-ink-control {display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px;color:var(--sub);font-size:.76rem}
.custom-ink-control input {width:34px;height:25px;padding:2px;border:1px solid #cdd7ca;border-radius:4px;background:#fff;cursor:pointer}
