:root{--paper:#fff;--ink:#1d1d1f;--muted:#6e6e73;--line:#e8e8ed;--orange:#0071e3;--sans:"SF Pro Text","SF Pro Display",-apple-system,BlinkMacSystemFont,"Helvetica Neue",Helvetica,Arial,sans-serif;--serif:var(--sans)}*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font:15px var(--sans);-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{cursor:default;opacity:.38}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #0071e380;outline-offset:3px}a{color:inherit;text-decoration:none}.app-header{height:68px;display:flex;align-items:center;padding:0 32px;border-bottom:1px solid var(--line);background:#fff}.wordmark{font-size:23px;font-weight:600;letter-spacing:-.7px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:16px}.save-status{font-size:12px;color:var(--muted);margin-right:8px}.button{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 15px;border:0;border-radius:20px;background:#f5f5f7;font-size:14px;font-weight:400;white-space:nowrap;transition:background .15s}.button:hover{background:#e8e8ed}.button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.button.dark,.button.orange{background:#1d1d1f;color:#fff}.button.dark:hover,.button.orange:hover{background:#333336}.button.quiet{background:transparent;min-width:36px;padding:7px;font-size:18px;color:var(--muted)}.workspace{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(350px,1fr);height:calc(100dvh - 68px);min-height:510px}.board-panel{position:relative;display:flex;flex-direction:column;min-width:0;padding:0 24px 0 32px}.panel-heading{display:flex;align-items:center;justify-content:space-between;height:86px;padding:0}.panel-heading h1{font-size:21px;font-weight:600;letter-spacing:-.4px;margin:0}.panel-heading h1 span{font-size:13px;font-weight:400;color:var(--muted);margin-left:9px;vertical-align:middle}.board-viewport{position:relative;flex:1;overflow:hidden;background:#fff;touch-action:none;min-height:230px}.board-world{position:absolute;transform-origin:0 0;width:1400px;height:1600px;background:#fff}.empty-board{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;pointer-events:none}.empty-board h2{font-size:24px;font-weight:600;letter-spacing:-.6px;margin:0 0 10px}.empty-board p{font-size:15px;color:var(--muted);line-height:1.5;margin:0 0 20px}.empty-board .text-button{pointer-events:auto}.text-button{border:0;padding:7px 0;background:transparent;font-size:14px;font-weight:400;color:#424245;white-space:nowrap}.text-button:hover{text-decoration:underline}.board-footer{min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:var(--muted)}.zoom-controls{display:flex;align-items:center;gap:3px}.zoom-controls button{border:0;background:transparent;min-height:36px;min-width:28px;font-size:18px}.zoom-controls button:nth-child(2){font-size:12px;min-width:45px}.source-panel{display:flex;flex-direction:column;border-left:1px solid var(--line);padding:31px 28px 0;background:#fff;min-height:0}.source-heading h2{font-size:21px;font-weight:600;letter-spacing:-.4px;margin:0}.import-controls{display:flex;gap:10px;padding:25px 0 24px}.import-controls .button{flex:1;border-radius:8px}.type-icon{font:18px Georgia,serif;line-height:16px}.source-meta{display:flex;align-items:center;justify-content:space-between;min-height:24px;margin-bottom:12px;font-size:12px;color:var(--muted)}.source-meta .text-button{font-size:12px;color:var(--muted)}.source-scroll{flex:1;min-height:150px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;background:#fff;border:1px solid #efeff2;border-radius:8px}.source-stage{position:relative;width:100%;line-height:0}.source-stage canvas{display:block;width:100%;height:auto}.source-stage #lassoCanvas{position:absolute;inset:0;touch-action:none}.tear-controls{padding:19px 0 24px}.tear-controls p{font-size:12px;color:var(--muted);margin:0 0 18px;line-height:1.5}.gesture-dot{display:none}.tear-actions{display:flex;justify-content:space-between;align-items:center}.tear-actions .button{min-width:130px}.clipping{position:absolute;padding:0;border:0;background:transparent;transform-origin:center;touch-action:none;cursor:grab;filter:drop-shadow(2px 5px 3px #38302233);transition:filter .15s}.clipping img{display:block;width:100%;pointer-events:none;user-select:none}.clipping.dragging{cursor:grabbing;filter:drop-shadow(5px 14px 10px #38302240);z-index:999!important}.clipping.selected:after{content:'';position:absolute;inset:-7px;border:1.5px dashed #0071e380;pointer-events:none}.clipping.pinned{cursor:pointer}.clip-pin{position:absolute;top:3px;left:48%;width:13px;height:13px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#eee,#777 70%);box-shadow:2px 3px 3px #2c261d55;pointer-events:none}.inspector{position:absolute;bottom:66px;left:32px;right:24px;background:#fffffff5;backdrop-filter:blur(16px);border:1px solid var(--line);border-radius:12px;padding:15px 17px;box-shadow:0 6px 28px #0000000f;z-index:1000}.inspector strong{font-size:13px;font-weight:500;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:12px}.inspector-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.inspector-controls label{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:5px}.inspector-controls input{width:75px;accent-color:#0071e3}.inspector-controls .button{min-height:32px;font-size:12px;padding:6px 10px}dialog{border:1px solid var(--line);border-radius:18px;padding:28px;background:#fff;color:var(--ink);max-width:510px;width:calc(100% - 32px);max-height:90dvh;box-shadow:0 20px 80px #0003}dialog::backdrop{background:#0004;backdrop-filter:blur(4px)}.dialog-top{display:flex;justify-content:flex-end}.dialog-top .button{margin:-12px -10px 0 0}dialog h2{font-size:28px;font-weight:600;letter-spacing:-.8px;margin:0 0 25px}dialog p{font-size:14px;line-height:1.6}dialog label{display:block;font-size:14px;margin:17px 0 8px}dialog input,dialog textarea{width:100%;border:1px solid #d2d2d7;border-radius:9px;background:#fff;padding:12px;font-size:16px;color:var(--ink)}dialog textarea{resize:vertical;min-height:140px}.muted{color:var(--muted);font-size:12px}.dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px}.help-list{padding-left:19px}.help-list li{padding-left:6px;margin:20px 0}.help-list strong{font-weight:500}.help-list p{color:var(--muted);margin:5px 0}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,10px);background:#1d1d1f;color:#fff;border-radius:10px;padding:13px 20px;max-width:calc(100% - 30px);font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;z-index:5000}.toast.visible{opacity:1;transform:translate(-50%,0)}.mobile-tabs{display:none}[hidden]{display:none!important}@media(min-width:1500px){.app-header{padding:0 48px}.board-panel{padding-left:48px;padding-right:40px}.source-panel{padding:31px 40px 0}.inspector{left:48px;right:40px}}@media(max-width:1000px){.app-header{padding:0 24px}.board-panel{padding:0 20px}.source-panel{padding:31px 22px 0}.workspace{grid-template-columns:minmax(0,1.2fr) minmax(340px,1fr)}.save-status{font-size:11px}.board-footer>span{max-width:160px;line-height:1.5}.inspector{left:20px;right:20px}}@media(max-width:700px){.app-header{height:60px;padding:0 20px}.wordmark{font-size:22px}.save-status{display:none}.header-actions{gap:10px}.button{min-height:42px}.header-actions .button{min-height:36px;font-size:13px}.mobile-tabs{display:flex;height:52px;margin:0 20px;padding:8px 0;gap:5px}.mobile-tabs button{flex:1;border:0;border-radius:7px;background:transparent;font-size:14px;color:var(--muted)}.mobile-tabs button[aria-pressed=true]{background:#f5f5f7;color:var(--ink)}.workspace{display:block;height:calc(100dvh - 112px);min-height:450px}.board-panel,.source-panel{height:100%}.workspace[data-mobile=board] .source-panel{display:none}.workspace[data-mobile=source] .board-panel{display:none}.source-panel{border:0;padding:17px 20px 0}.panel-heading{height:64px}.panel-heading h1,.source-heading h2{font-size:20px}.import-controls{padding:18px 0}.source-meta{margin-bottom:9px}.board-footer{min-height:52px;font-size:11px}.board-footer>span{max-width:180px}.empty-board h2{font-size:23px}.empty-board p{font-size:14px}.tear-controls{padding:14px 0 18px}.tear-controls p{margin-bottom:14px}.inspector{bottom:58px}.inspector-controls .button{min-height:40px}.zoom-controls button{min-height:40px;min-width:32px}.dialog-footer{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Compact floating controls echo the supplied material references. */
.import-controls{align-self:flex-start;flex:none;margin:23px 0 25px;padding:5px;gap:2px;border:1px solid #e9e9ed;border-radius:30px;background:linear-gradient(180deg,#fff 0%,#f7f7f9 100%);box-shadow:0 1px 1px #00000004,0 6px 20px #00000006,inset 0 1px 0 #fff}
.import-controls .button{flex:none;background:transparent;border-radius:22px;padding:10px 16px;min-height:40px}
.import-controls .button:hover{background:#ececef}
.source-scroll{border-radius:18px;box-shadow:0 5px 18px #00000003}
.clipping{filter:drop-shadow(0 1px 1px #37302528) drop-shadow(2px 6px 5px #37302524)}
.clipping:hover{filter:drop-shadow(0 1px 1px #37302528) drop-shadow(3px 8px 6px #3730252d)}
.clipping.dragging{filter:drop-shadow(3px 18px 12px #37302536)}
.inspector{border-radius:24px;background:#ffffffdc;box-shadow:inset 0 1px 0 #fff,0 7px 26px #0000000e}
@media(max-width:700px){.import-controls{margin:17px 0 18px;padding:4px}.import-controls .button{padding:10px 17px;min-height:42px}}

/* The working canvas sits inside the unfolded device, not a static mockup. */
body{background:#f7f7f8;padding:0 28px 28px}
.preview-bar{max-width:1180px;margin:auto;height:75px;display:flex;align-items:center;justify-content:space-between;font-size:17px;font-weight:600;letter-spacing:-.4px}.preview-caption{font-size:13px;color:#909095;font-weight:400;letter-spacing:0;margin-left:9px}.preview-bar button{font-size:12px;color:#8b8b90}
.device-shell{position:relative;max-width:1180px;height:min(810px,calc(100dvh - 106px));min-height:610px;margin:auto;padding:14px;border-radius:59px;background:linear-gradient(120deg,#8c8d8b,#242524 6%,#111 43%,#565752 50%,#161715 54%,#555 98%);box-shadow:0 0 0 1px #777,0 0 0 3px #bdbebc,0 20px 45px #00000019,inset 0 0 0 3px #3a3a39}
.device-shell:before,.device-shell:after{content:'';position:absolute;top:-5px;height:3px;width:80px;right:19%;border-radius:3px;background:#6f716e}.device-shell:after{right:30%;width:55px}
.device-screen{height:100%;overflow:hidden;position:relative;border-radius:45px;background:#fff}.device-screen:after{content:'';position:absolute;z-index:5;pointer-events:none;width:12px;top:0;bottom:0;left:calc(50% - 6px);background:linear-gradient(90deg,transparent,#00000006,transparent)}
.device-status{height:35px;position:absolute;left:30px;right:30px;top:8px;display:flex;align-items:center;justify-content:space-between;font-size:12px;font-weight:600;z-index:3;pointer-events:none}.device-status>span:first-child{color:white}
.app-header{position:absolute;top:36px;right:0;width:50%;height:40px;padding:0 25px;border:0;background:none;z-index:4}.app-header .wordmark{display:none}.header-actions{width:100%;justify-content:flex-end;gap:8px}.save-status{margin-right:auto;font-size:10px}.header-actions .button{font-size:11px;min-height:30px;padding:7px 10px}.header-actions .quiet{font-size:16px;min-width:28px}
.workspace{height:100%;min-height:0;grid-template-columns:1fr 1fr}.source-panel{grid-column:1;grid-row:1;border:0;padding:53px 24px 25px;position:relative;background:linear-gradient(#00000016,#00000008),url('/wallpaper.png') center center/cover}.source-heading{height:52px;display:flex;align-items:flex-start;padding:3px 7px 0}.source-heading h2{font-size:19px;color:white;font-weight:500;letter-spacing:-.5px;text-shadow:0 1px 10px #0004}
.source-widget{display:flex;flex-direction:column;min-height:0;flex:1;background:#fffffff5;border:1px solid #ffffffa0;border-radius:28px;padding:14px 15px 13px;box-shadow:0 12px 45px #0003,inset 0 1px 0 white;backdrop-filter:blur(24px);overflow:hidden}.article-address{display:flex;align-items:center;gap:7px;flex:none;padding:0 3px 8px;border-bottom:1px solid #e9e9e9}.article-address svg{width:17px;height:17px;fill:none;stroke:#777;stroke-width:1.4;flex:none}.article-address input{min-width:0;width:100%;border:0;background:transparent;font-size:12px;color:#555;outline-offset:0;text-overflow:ellipsis}.article-address .button{min-height:30px;width:30px;padding:4px;font-size:19px;background:#eeeeef}
.import-controls{margin:10px 0 7px;align-self:center;padding:3px;gap:2px;background:#ffffffb0;box-shadow:0 3px 13px #00000005}.import-controls .button{min-height:30px;padding:6px 13px;font-size:11px}.import-controls svg{height:14px;width:14px}.type-icon{font-size:15px}.source-meta{margin:2px 4px 5px;min-height:22px;font-size:10px}.source-meta .text-button{font-size:10px}.source-meta a{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:65%}.source-scroll{border:0;border-radius:13px;background:white;box-shadow:none;min-height:110px}.source-stage{background:#fff}.reader-status{font-size:13px;color:#747474;line-height:1.6;padding:25px 12px;margin:auto 0}.tear-controls{padding:10px 3px 0}.tear-controls p{font-size:10px;margin:0 0 8px}.tear-actions .button{font-size:12px;min-height:34px;min-width:108px}.tear-actions .text-button{font-size:11px}.page-controls{display:flex;justify-content:center;gap:16px;align-items:center;font-size:10px;color:#777;height:26px;flex:none}.page-controls button{background:none;border:0;font-size:21px;width:30px;height:26px}
.board-panel{grid-column:2;grid-row:1;padding:85px 26px 10px;background:#fefefb}.panel-heading{height:85px;flex:none;align-items:flex-start;padding-top:5px}.panel-heading h1{font-size:25px;letter-spacing:-.9px}.panel-subtitle{color:#93938d;font-size:12px;margin:9px 0 0}.board-viewport,.board-world{background-color:#fefefb;background-image:radial-gradient(#c2c2b9 0.7px,transparent .7px);background-size:18px 18px}.board-world{background-size:55px 55px;background-image:radial-gradient(#c2c2b9 1.8px,transparent 1.8px)}.board-viewport{border-radius:5px}.empty-board{padding:18px}.empty-board h2{max-width:260px;font-size:19px;line-height:1.25;letter-spacing:-.5px;font-weight:500}.empty-board p{font-size:12px;color:#91918a;line-height:1.7}.empty-board button{font-size:12px}.empty-paper{width:76px;height:87px;background:#fff;box-shadow:1px 6px 12px #00000012;transform:rotate(-8deg);margin:0 0 26px;display:grid;place-content:center;color:#c2c2bc;font-size:26px;clip-path:polygon(1% 1%,20% 3%,38% 0,55% 3%,75% 1%,98% 2%,100% 32%,98% 51%,100% 74%,98% 98%,75% 100%,55% 97%,35% 100%,16% 98%,1% 99%,3% 65%,0 45%,2% 25%)}.board-footer{min-height:42px;font-size:10px}.board-footer>span{max-width:170px}.zoom-controls button{font-size:16px}.zoom-controls button:nth-child(2){font-size:10px}.inspector{left:16px;right:16px;bottom:53px;padding:12px}.inspector-controls{gap:7px}.inspector-controls label{font-size:10px}.inspector-controls input{width:53px}
.frameless{padding:0}.frameless .preview-bar{height:45px;max-width:none;padding:0 24px}.frameless .device-shell{height:calc(100dvh - 45px);min-height:600px;max-width:none;margin:0;padding:0;border-radius:0;box-shadow:none}.frameless .device-screen{border-radius:0}.frameless .device-shell:before,.frameless .device-shell:after{display:none}
@media(max-width:850px) and (min-width:701px){body{padding:0 14px 20px}.device-shell{padding:10px;border-radius:44px}.device-screen{border-radius:35px}.source-panel{padding-left:14px;padding-right:14px}.source-widget{padding:12px}.board-panel{padding-left:20px;padding-right:20px}.save-status{display:none}}
@media(max-width:700px){body{padding:0;background:#fff}.preview-bar{height:44px;padding:0 18px}.preview-caption{display:none}.preview-bar button{display:none}.device-shell{min-height:0;height:calc(100dvh - 44px);padding:0;border-radius:0;box-shadow:none}.device-screen{border-radius:0}.device-status,.device-shell:before,.device-shell:after,.device-screen:after{display:none}.app-header{display:none}.mobile-tabs{display:flex;position:absolute;top:10px;left:14px;right:14px;margin:0;height:40px;background:#ffffffd9;backdrop-filter:blur(20px);border:1px solid #ffffff90;border-radius:24px;padding:4px;z-index:5}.mobile-tabs button{border-radius:22px;color:#666;font-size:12px}.mobile-tabs button[aria-pressed=true]{background:#fff;color:#1d1d1f;box-shadow:0 2px 9px #0001}.workspace{height:100%;min-height:0;display:block}.source-panel{padding:66px 16px 18px}.source-heading{height:37px}.source-heading h2{font-size:17px}.source-widget{border-radius:25px;padding:13px}.board-panel{padding:73px 22px 10px}.panel-heading{height:77px}.panel-heading h1{font-size:25px}.source-meta .text-button{font-size:11px}.import-controls .button{min-height:34px}.tear-actions .button{min-height:40px}.source-scroll{min-height:80px}.board-footer{min-height:50px}.frameless .device-shell{height:calc(100dvh - 45px);min-height:0}}

.device-status{top:21px;right:26px;left:auto;width:43px;height:auto;display:flex;flex-direction:column;gap:5px;font-size:17px;letter-spacing:-.6px;line-height:1}.device-status>span:first-child{color:#171717}.device-status svg{width:41px;height:44px;overflow:visible}.app-header{right:77px;width:calc(50% - 77px);padding-right:10px}.source-meta #pdfLabel{max-width:62%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.import-controls .button{padding-left:10px;padding-right:10px}
@media(max-width:850px) and (min-width:701px){.device-status{right:22px}.header-actions .save-status{display:none}}
@media(max-width:700px){.device-status{display:none}}
/* Swapped panes: collection on the left, reading widget on the right. */
@media(min-width:701px){.board-panel{grid-column:1}.source-panel{grid-column:2}.app-header{left:0;right:auto;width:50%;padding-left:26px;padding-right:26px}.device-status{color:white;filter:drop-shadow(0 1px 3px #0008)}.device-status>span:first-child{color:white}.source-heading{padding-right:60px}.source-heading h2{font-size:18px}}

@media(min-width:701px){.device-status{top:16px;right:22px;width:58px;padding:9px 5px 5px;gap:4px;color:#222;filter:none;background:#ffffffdf;backdrop-filter:blur(18px);border:1px solid #ffffff8c;border-radius:20px;box-shadow:0 3px 12px #0000000c}.device-status>span:first-child{color:#222;font-size:15px}.device-status svg{width:40px;height:40px}}

/* Quiet white interface with cool, blue-grey neutrals. */
:root{--paper:#fff;--ink:#1c2026;--muted:#7c8796;--line:#e8edf3;--sans:"Helvetica Neue",Helvetica,-apple-system,BlinkMacSystemFont,Arial,sans-serif}
body{background:#fff;color:var(--ink)}
.preview-bar{font-size:18px;letter-spacing:-.6px}.preview-caption{display:none}.preview-bar .text-button{color:#86909e}
.device-shell{background:linear-gradient(125deg,#aab0b8,#292d32 5%,#20242a 48%,#757c86 50%,#272c32 53%,#5c626a);box-shadow:0 0 0 1px #7a8089,0 0 0 3px #d2d7de,0 20px 50px #28354812,inset 0 0 0 3px #42474f}
.source-panel{background:#f1f4f8;padding-left:27px;padding-right:27px}.source-heading{height:52px;padding-left:3px}.source-heading h2{color:#1c2026;text-shadow:none;font-size:23px;font-weight:500;letter-spacing:-.7px}.source-widget{background:#fff;border:1px solid #e5eaf1;border-radius:25px;padding:17px 16px 14px;box-shadow:0 6px 20px #273b5706;backdrop-filter:none}
.board-panel{background:#fff}.panel-heading h1{font-size:24px;font-weight:500;letter-spacing:-.7px}.panel-subtitle{display:none}.panel-heading{height:68px}.panel-heading h1 span{color:#95a0ad}
.board-viewport,.board-world{background-color:#fff}.board-viewport{background-image:radial-gradient(#c4cdd9 .7px,transparent .7px)}.board-world{background-image:radial-gradient(#c4cdd9 1.8px,transparent 1.8px)}
.app-header{background:transparent}.save-status{color:#8d97a5}.button{background:#edf1f6;color:#303945}.button:hover{background:#e3e9f0}.button.dark,.button.orange{background:#20242a;color:#fff}.button.dark:hover,.button.orange:hover{background:#363d47}.button.quiet{color:#8793a3}.button:disabled{opacity:.35}.text-button{color:#697686}.type-icon{font-family:"Helvetica Neue",Helvetica,sans-serif}
.article-address{padding-bottom:11px;border-color:#edf0f4}.article-address input{font-size:12px;color:#586677}.article-address svg{stroke:#8290a2}.article-address .button{background:#f0f3f7;color:#586677;border-radius:50%}.import-controls{border:0;background:#f2f5f8;box-shadow:none;margin:13px 0 10px;padding:4px;gap:3px;align-self:center}.import-controls .button{padding:7px 12px;min-height:33px;color:#566271;font-size:12px}.import-controls .button:hover{background:#e5ebf2}.import-controls svg{width:15px;height:15px}.source-meta{color:#8c98a8;font-size:10px;margin-bottom:8px}.source-meta .text-button{color:#8c98a8}.source-scroll{border-radius:13px}.tear-controls{padding-top:12px}.tear-controls p{color:#8b97a6}.tear-actions .text-button{color:#687587}.tear-actions .button{padding:10px 19px;min-height:36px}.board-footer{color:#8e99a8}.zoom-controls button{color:#6b788a}.empty-board p{color:#8d99a8}.empty-board h2{color:#526074;font-size:18px;font-weight:400}.empty-paper{color:#b8c4d3;box-shadow:1px 5px 14px #2c416019}.inspector{background:#ffffffed;border-color:#e6ebf1;box-shadow:0 8px 30px #273b5710}.reader-status{color:#7b8899}
@media(min-width:701px){.device-status{color:#222;background:transparent;border:0;box-shadow:none;backdrop-filter:none;top:19px;right:22px;padding:6px 5px;gap:5px}.device-status>span:first-child{color:#222}.source-heading h2{font-size:23px}.source-panel{padding-top:65px}.source-heading{height:56px}.board-panel{padding-top:104px}.app-header{top:43px}}
@media(max-width:850px) and (min-width:701px){.source-panel{padding-left:18px;padding-right:18px}.import-controls .button{padding:7px 8px}.source-widget{padding:13px 11px}.source-heading h2{font-size:21px}}
@media(max-width:700px){.source-panel{padding:67px 17px 17px;background:#f1f4f8}.source-heading h2{font-size:22px}.source-heading{height:45px}.source-widget{padding:14px;border-radius:24px}.board-panel{padding-top:76px}.mobile-tabs{background:#e9eef5d9;border:1px solid #e1e7f0}.mobile-tabs button{color:#7e8ca0}.mobile-tabs button[aria-pressed=true]{color:#28374a}.import-controls .button{padding:8px 12px}.tear-actions .button{min-height:42px}}
/* Keep the supplied wallpaper outside the quiet white reading widget. */
.source-panel{background:linear-gradient(#00000012,#00000008),url('/wallpaper.png') center/cover}.source-heading h2{color:white;text-shadow:0 1px 8px #0003}
@media(min-width:701px){.device-status{top:19px;right:23px;gap:13px;background:transparent;border:0;box-shadow:none;filter:drop-shadow(0 1px 3px #0005)}.device-status>span:first-child{color:#fff}.device-status svg [stroke]:not([stroke="none"]){stroke:#fff}.device-status svg [fill]:not([fill="none"]){fill:#fff}.source-panel{padding-top:65px}.source-heading{padding-right:65px;height:64px}}

/* Readable supporting text, including help and touch controls. */
dialog{max-width:560px;padding:30px;border-radius:26px;border-color:#e4eaf2}dialog p,dialog p.muted{font-size:16px;line-height:1.55;color:#627084}.help-heading{display:flex;align-items:center;gap:13px;font-size:28px;font-weight:500;margin-top:4px}.help-heading span{font-size:37px;line-height:1.2;filter:drop-shadow(0 3px 3px #243c5810)}.help-list{font-size:16px}.help-list li{margin:23px 0}.help-list strong{font-weight:500}.help-list p{margin:7px 0}.help-list+p.muted{padding-top:16px;border-top:1px solid #e9eef5;margin-top:25px}.dialog-footer .muted,dialog label .muted{font-size:14px}dialog .button[data-close]{min-height:42px;font-size:15px}.save-status{font-size:12px}.header-actions .button{font-size:12px;min-height:34px}.source-meta,.source-meta .text-button{font-size:12px}.source-meta{min-height:28px}.article-address input{font-size:13px}.tear-controls p{font-size:12px;line-height:1.45}.tear-actions .text-button{font-size:13px}.tear-actions .button{font-size:14px;min-height:40px}.board-footer{font-size:12px;line-height:1.4;min-height:52px}.board-footer>span{max-width:210px}.zoom-controls button:nth-child(2){font-size:12px}.page-controls{font-size:12px;height:30px}.reader-status{font-size:15px}.preview-bar .text-button{font-size:13px}.source-heading{padding-bottom:8px}.import-controls .button{font-size:13px}.inspector strong{font-size:14px}.inspector-controls label{font-size:12px}.inspector-controls .button{font-size:13px;min-height:36px}
@media(max-width:850px){.save-status{display:none}.board-footer>span{max-width:145px}.import-controls .button{padding-left:8px;padding-right:8px}}
@media(max-width:700px){dialog{padding:24px}.help-heading{font-size:25px;gap:10px}.help-heading span{font-size:33px}.source-panel .source-heading{height:47px}.board-footer>span{max-width:195px}.article-address input{font-size:16px}.import-controls .button{min-height:36px;padding:7px 11px}.source-meta,.source-meta .text-button{font-size:12px}}

:root{--accent:#187bff;--orange:#187bff}.button.orange{background:#187bff;color:white}.button.orange:hover{background:#0769ec}.button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline-color:#187bff80}.import-controls .button:hover{color:#187bff;background:#e6f0ff}.text-button:hover,.source-meta a:hover{color:#187bff}.inspector-controls input{accent-color:#187bff}.clipping.selected:after{display:none}.sketch-outline{display:none;position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}.clipping.selected .sketch-outline{display:block}.clipping:focus-visible{outline:0}.clipping:focus-visible .sketch-outline{display:block}.zoom-controls button:hover{color:#187bff}.mobile-tabs button[aria-pressed=true]{color:#187bff}.page-controls button:not(:disabled){color:#187bff}

/* One cool neutral palette across controls, notes, shadows and disabled states. */
:root{--ink:#1c2c44;--muted:#637b9d;--line:#dfe8f4;--surface:#edf3fb;--accent:#187bff}body,dialog{color:var(--ink)}.button{background:#edf3fb;color:#4b668b}.button:hover{background:#e0ebfa}.button.dark{background:#253b5c}.button.dark:hover{background:#314e79}.button.orange{background:#187bff;color:#fff}.button.orange:disabled{background:#dce7f7;color:#6d83a2;opacity:1}.text-button,.button.quiet{color:#607ca4}.save-status,.board-footer,.source-meta,.source-meta .text-button,.tear-controls p,.muted,.reader-status{color:#6882a5}.source-meta button:disabled{color:#9aacc6;opacity:1}.source-widget{background:#fff;border-color:#dae5f4;box-shadow:0 6px 24px #263f690a}.import-controls{background:#edf3fc}.import-controls .button{color:#506c94}.article-address input{color:#506c94}.article-address .button{background:#e8f0fc;color:#5474a3}.article-address{border-color:#e0e9f6}.article-address svg{stroke:#6b89b2}.board-panel,.board-world,.board-viewport{background-color:#fff}.board-viewport{background-image:radial-gradient(#bacde8 .7px,transparent .7px)}.board-world{background-image:radial-gradient(#bacde8 1.8px,transparent 1.8px)}.panel-heading h1{color:#1c2c44}.panel-heading h1 span{color:#7290b6}.zoom-controls button{color:#6582aa}.inspector{background:#fafdfff5;border-color:#dae5f4;box-shadow:0 8px 30px #263f6914}.inspector-controls label{color:#6882a5}.clipping{filter:drop-shadow(0 1px 1px #283e5b24) drop-shadow(2px 6px 5px #263f6924)}.clipping:hover{filter:drop-shadow(0 1px 1px #283e5b24) drop-shadow(3px 8px 6px #263f692b)}.clipping.dragging{filter:drop-shadow(3px 18px 12px #263f6936)}dialog::backdrop{background:#172b4540;backdrop-filter:blur(5px)}dialog input,dialog textarea{border-color:#ccd9eb;color:#243958}.preview-bar .text-button{color:#6c84a6}.device-shell:before,.device-shell:after{background:#72819a}.empty-board h2{color:#567298}.empty-board p{color:#728caf}
@media(min-width:701px){.app-header{padding-right:38px;padding-left:30px}.device-status{gap:14px}.device-status svg{width:40px;height:44px}}
#helpDialog{position:relative;width:calc(100% - 32px);max-width:560px;padding:38px 36px 32px;border-radius:28px;background:#fff;border:1px solid #e0e9f6;max-height:calc(100dvh - 40px);overflow:auto}#helpDialog .dialog-top{height:0}#helpDialog .dialog-top button{position:absolute;right:17px;top:16px;margin:0;width:32px;min-width:32px;min-height:32px;font-size:20px;padding:0}#helpDialog .help-heading{margin:6px 24px 30px 0;gap:14px;font-size:28px;line-height:1.2;font-weight:500;letter-spacing:-.8px}#helpDialog .help-heading span{font-size:38px;flex:none}#helpDialog .help-list{list-style:none;counter-reset:help;padding:0;margin:0;display:grid;gap:25px}#helpDialog .help-list li{counter-increment:help;position:relative;padding:0 0 0 34px;margin:0}#helpDialog .help-list li:before{content:counter(help,decimal-leading-zero);position:absolute;top:3px;left:0;font-size:12px;font-weight:500;color:#6b89b0}#helpDialog .help-list strong{display:block;font-size:16px;line-height:1.5;font-weight:500}#helpDialog .help-list p{font-size:16px;line-height:1.5;color:#5f789d;margin:6px 0 0}#helpDialog .help-notes{display:grid;gap:14px;border-top:1px solid #e1eaf6;margin-top:28px;padding-top:23px}#helpDialog .help-notes p{font-size:16px;line-height:1.5;margin:0;color:#5f789d}#helpDialog .help-done{width:100%;min-height:44px;margin-top:26px;border-radius:22px;font-size:16px}
@media(max-width:700px){#helpDialog{padding:34px 24px 24px}#helpDialog .help-heading{font-size:25px;margin-bottom:26px;gap:11px}#helpDialog .help-heading span{font-size:33px}#helpDialog .help-list{gap:21px}#helpDialog .help-list li{padding-left:30px}#helpDialog .help-notes{margin-top:24px;padding-top:20px}}

/* More room for the article, restrained reading typography. */
@media(min-width:701px){.source-panel{padding-top:54px;padding-bottom:15px}.source-heading{height:48px}.source-heading h2{font-size:21px}.source-widget{padding-top:12px;padding-bottom:12px}.article-address{padding-bottom:9px}.import-controls{margin-top:10px;margin-bottom:6px}.source-meta{margin-bottom:5px}.tear-controls{padding-top:9px}.tear-controls p{margin-bottom:7px}}
.clipping{user-select:none;-webkit-user-select:none}.board-viewport{overscroll-behavior:contain}

@media(min-width:701px){.device-status svg{width:42px;height:42px;aspect-ratio:1}.device-status{gap:14px}}

.mobile-export,.mobile-help{display:none}@media(max-width:700px){.mobile-help{display:inline-flex;font-size:17px;min-height:30px;width:30px;min-width:30px}.mobile-export{display:inline-flex;position:absolute;top:77px;right:22px;font-size:12px;min-height:33px;padding:8px 13px;background:#edf3fb;color:#4b668b}.panel-heading h1{padding-right:93px}}

.empty-paper{width:auto;height:auto;background:none;box-shadow:none;clip-path:none;transform:rotate(-9deg);font-size:56px;line-height:1.1;margin-bottom:25px;filter:drop-shadow(1px 5px 5px #304b701c)}.empty-board p{margin-bottom:0}@media(max-width:700px){.preview-bar .mobile-help{display:inline-flex}}

@font-face{font-family:Caveat;src:url('/caveat.ttf') format('truetype');font-weight:400 700;font-display:swap}
.brand{display:flex;align-items:center;gap:9px}.brand svg{width:27px;height:27px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.header-actions{width:100%;gap:10px}.header-actions h1{margin:0 auto 0 0;font-size:24px;font-weight:500;letter-spacing:-.7px}.header-actions h1 span{font-size:12px;color:#718bb0;margin-left:7px}.board-tools{justify-content:flex-start;gap:8px;flex:none;height:60px}.board-tools .button{font-size:13px}.board-tools #drawingControls{display:flex;gap:5px;margin-left:auto}.board-tools.drawing>#noteButton,.board-tools.drawing>#scribbleButton{display:none}
#drawingCanvas{position:absolute;inset:0;z-index:1100;touch-action:none;cursor:crosshair}.board-viewport.drawing .empty-board{display:none}
#noteStyle{font:15px var(--sans);padding:10px 12px;border:1px solid #c8d8ee;background:#eef4ff;color:#385782;border-radius:10px;width:100%}#noteText{font:30px/1.35 Caveat,cursive;background:#f5f8ff}#noteText.plain{font:17px/1.6 var(--sans)}#noteDialog .dialog-footer{font-size:14px;color:#6782a7}
.source-widget{background:#f3f7ff;border-color:#d7e4f7;box-shadow:0 8px 25px #203f7214}.source-scroll{background:#f3f7ff}.import-controls{background:#e5eefc}.import-controls .button:hover{background:#d7e6fb}.button{background:#e9f0fc}.button:disabled{opacity:1;background:#e1eafa;color:#7c94b7}.button.dark:disabled{background:#e1eafa;color:#7c94b7}.reader-status{background:#eef4ff}.clip-pin{background:radial-gradient(circle at 35% 25%,#f6f9ff,#6a84a8 70%);box-shadow:2px 3px 3px #203c6155}
@media(min-width:701px){.app-header{top:34px}.board-panel{padding-top:86px}.source-panel{padding-top:36px;padding-bottom:10px}.source-heading{height:43px;flex:none}.source-heading h2{padding-top:9px}.source-widget{flex:1;min-height:0}.device-status{top:12px;gap:9px}.device-status svg{width:34px;height:34px}}
@media(max-width:700px){.app-header{display:flex;top:57px;left:0;width:100%;padding:0 20px;height:44px;z-index:4}.app-header .wordmark{display:none}.app-header .header-actions{gap:6px}.header-actions h1{font-size:22px}.header-actions .button{padding:7px 11px}.app-header:has(~.workspace[data-mobile=source]){display:none}.board-panel{padding-top:105px}.board-tools{height:57px}.mobile-export{display:none}.board-tools .button{min-height:37px}.source-panel{padding-top:59px;padding-bottom:10px}.source-panel .source-heading{height:36px}}
#lassoCanvas,#drawingCanvas{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cdefs%3E%3ClinearGradient id='p'%3E%3Cstop stop-color='%23ffffff'/%3E%3Cstop offset='.5' stop-color='%23f8faff'/%3E%3Cstop offset='1' stop-color='%23bdcadd'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform='rotate(38 24 24)'%3E%3Cpath d='M21 6Q24 2 27 6L27 32 24 42 21 32Z' fill='url(%23p)' stroke='%23758aaa' stroke-width='.8'/%3E%3Cpath d='M21 32h6M24 39v3' stroke='%23758aaa' stroke-width='.8'/%3E%3C/g%3E%3C/svg%3E") 13 38,crosshair}
/* Frosted perimeter keeps off-canvas pieces from ending abruptly. */
.board-viewport:after{content:'';position:absolute;inset:0;z-index:1200;pointer-events:none;background:#f5f9ff66;backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);mask-image:linear-gradient(to right,#000,transparent 25px,transparent calc(100% - 25px),#000),linear-gradient(to bottom,#000,transparent 25px,transparent calc(100% - 25px),#000);-webkit-mask-image:linear-gradient(to right,#000,transparent 25px,transparent calc(100% - 25px),#000),linear-gradient(to bottom,#000,transparent 25px,transparent calc(100% - 25px),#000)}
.clipping[data-kind=note],.clipping[data-kind=scribble]{filter:none}.clipping[data-kind=note].dragging,.clipping[data-kind=scribble].dragging{filter:none}
.app-header .header-actions .button{height:38px;min-height:38px;max-height:38px;padding:0 14px;font:400 13px/1 "Helvetica Neue",Helvetica,Arial,sans-serif;border-radius:19px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box}.app-header #helpButton{width:38px;min-width:38px;padding:0}.app-header #exportButton span{font:inherit;line-height:1}.header-actions{align-items:center}
@media(max-width:700px){.app-header .header-actions .button{padding:0 10px;font-size:12px}.app-header #helpButton{width:30px;min-width:30px}}
.board-tools #drawingControls{position:absolute;bottom:64px;left:30px;right:26px;z-index:1500;justify-content:flex-end;padding:13px 16px;background:#f8fbfff2;backdrop-filter:blur(18px);border:1px solid #dae5f4;box-shadow:0 8px 30px #263f6914;border-radius:24px;gap:10px}.board-tools #drawingControls:before{content:'Scribble';margin-right:auto;align-self:center;color:#304e79;font-size:14px}
.board-viewport{mask-image:linear-gradient(to right,transparent,#000 48px,#000 calc(100% - 48px),transparent),linear-gradient(to bottom,transparent,#000 48px,#000 calc(100% - 48px),transparent);mask-composite:intersect;-webkit-mask-image:linear-gradient(to right,transparent,#000 48px,#000 calc(100% - 48px),transparent),linear-gradient(to bottom,transparent,#000 48px,#000 calc(100% - 48px),transparent);-webkit-mask-composite:source-in}.board-viewport:after{backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);background:#ffffff55}
.reader-modes{display:flex;gap:4px;align-items:center;margin-bottom:10px}.reader-modes .button{font-size:12px;min-height:30px;padding:6px 10px;background:transparent}.reader-modes .button[aria-pressed=true]{background:#dce9fc;color:#235493}.reader-modes a{margin-left:auto;font-size:11px;color:#6882a5}#websiteFrame{width:100%;flex:1;min-height:100px;border:0;border-radius:14px;background:white}
.inspector,.board-tools #drawingControls{background:linear-gradient(135deg,#ffffffb8,#edf5ff66);backdrop-filter:blur(26px) saturate(160%);-webkit-backdrop-filter:blur(26px) saturate(160%);border:1px solid #ffffffd9;box-shadow:inset 0 1px 0 #fff,0 8px 28px #24436b1a,0 1px 3px #274a7020;border-radius:26px;padding:10px 13px;left:24px;right:24px}.inspector strong{display:none}.inspector-controls{gap:6px;justify-content:center}.inspector-controls .button,.board-tools #drawingControls .button{background:transparent;font-size:12px;min-height:34px;padding:6px 9px}.inspector-controls .button:hover,.board-tools #drawingControls .button:hover{background:#ffffff88}.inspector-controls label{font-size:11px;gap:4px}.inspector-controls input{width:48px}.board-tools #drawingControls .button.orange{background:#187bff;color:white}.board-tools #drawingControls:before{font-size:13px}.inspector-controls #closeInspector{min-width:24px;padding:0}
/* Clear glass perimeter: preserve colour while progressively blurring it. */
.board-viewport{mask-image:none;-webkit-mask-image:none;border-radius:30px}.board-viewport:after{inset:0;border-radius:30px;background:linear-gradient(135deg,#ffffff18,#cfe3ff0a);backdrop-filter:blur(20px) saturate(140%);-webkit-backdrop-filter:blur(20px) saturate(140%);box-shadow:inset 0 1px 1px #ffffffa6,inset 1px 0 1px #ffffff66;mask-image:linear-gradient(to right,#000,transparent 65px,transparent calc(100% - 65px),#000),linear-gradient(to bottom,#000,transparent 65px,transparent calc(100% - 65px),#000);-webkit-mask-image:linear-gradient(to right,#000,transparent 65px,transparent calc(100% - 65px),#000),linear-gradient(to bottom,#000,transparent 65px,transparent calc(100% - 65px),#000);mask-composite:add;-webkit-mask-composite:source-over}
.source-widget,.source-scroll{background:#fff}.import-controls{background:#f1f4f8}.source-widget{border-color:#e6ecf4}.reader-modes .button[aria-pressed=true]{background:#edf3fb}.tear-controls p:empty{display:none}.sticker-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}.sticker-choice{border:0;border-radius:16px;background:#f4f7fb;padding:10px;font:36px/1.3 "Apple Color Emoji","Segoe UI Emoji",sans-serif;transition:transform .15s,background .15s}.sticker-choice:hover{background:#e7effb;transform:scale(1.08)}.board-tools.drawing>#stickerButton{display:none}.clipping[data-kind=sticker]{filter:drop-shadow(1px 3px 3px #294d731a)}@media(max-width:700px){.sticker-grid{grid-template-columns:repeat(4,1fr)}}
#articleOriginal{display:none!important}.source-meta{min-height:0;margin:0;justify-content:flex-end}.source-meta:has(#resetSelection:disabled):has(#pdfLabel[hidden]){display:none}.source-meta #resetSelection:not(:disabled){padding:7px 0}.article-address #toggleImports{font-size:21px;flex:none;width:30px;height:30px;min-height:30px;padding:0;background:transparent}.article-address{gap:8px}.reader-modes{margin-top:10px}#pdfLabel{padding:8px 0;margin-right:auto}
#selectionHint,#previousPage,#nextPage,#pageLabel{display:none!important}.page-controls{padding:5px 12px;height:26px}#readingProgress{width:100%;height:16px;accent-color:#748caf;cursor:ew-resize}.tear-actions{gap:14px}.tear-actions #websiteOriginal{font-size:12px;margin-right:auto}.tear-actions .button{min-width:105px}.article-address #loadArticleButton{background:transparent;color:#75859c;border-radius:0;box-shadow:none}.article-address #loadArticleButton:hover,.article-address #loadArticleButton:active{background:transparent;color:#187bff}.article-address #loadArticleButton:focus:not(:focus-visible){outline:none}.source-scroll{margin-top:10px}.inspector,.board-tools #drawingControls{z-index:2000;isolation:isolate}.inspector-controls{color:#304e79}.inspector-controls label{color:#627b9d}
.board-viewport{border-radius:22px}.board-viewport:after{background:transparent;backdrop-filter:url(#glassRefraction) saturate(110%);-webkit-backdrop-filter:url(#glassRefraction) saturate(110%);mask-image:linear-gradient(to right,#000,transparent 20px,transparent calc(100% - 20px),#000),linear-gradient(to bottom,#000,transparent 20px,transparent calc(100% - 20px),#000);-webkit-mask-image:linear-gradient(to right,#000,transparent 20px,transparent calc(100% - 20px),#000),linear-gradient(to bottom,#000,transparent 20px,transparent calc(100% - 20px),#000);border-radius:22px;box-shadow:inset 0 1px 1px #ffffffaa}
@media(min-width:701px){.workspace{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr)}.app-header{width:54%}.device-screen:after{left:calc(54% - 6px)}.board-panel{padding-left:24px;padding-right:20px}.source-panel{padding-left:22px;padding-right:22px}}
#readingProgress{-webkit-appearance:none;appearance:none;height:24px;background:transparent;border:0;padding:0;margin:0;outline-offset:3px}#readingProgress::-webkit-slider-runnable-track{height:5px;border-radius:8px;background:linear-gradient(180deg,#dce3ec,#edf2f8);box-shadow:inset 0 1px 2px #29425c16,0 1px 0 #fff}#readingProgress::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:15px;margin-top:-5px;border-radius:10px;border:1px solid #7890ad;background:linear-gradient(145deg,#91a5bdcc,#3d587dcc);box-shadow:inset 0 1px 1px #ffffffaa,0 2px 5px #263e6426}#readingProgress::-moz-range-track{height:5px;border-radius:8px;background:#e3e9f1}#readingProgress::-moz-range-thumb{width:26px;height:15px;border-radius:10px;border:1px solid #7890ad;background:linear-gradient(145deg,#91a5bd,#3d587d);box-shadow:inset 0 1px 1px #ffffffaa,0 2px 5px #263e6426}.page-controls{padding:4px 12px;background:#f6f9fc66;border-radius:16px;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.article-address #loadArticleButton{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;min-height:32px;max-height:32px;padding:7px;margin:0;line-height:1}.article-address #loadArticleButton svg{display:block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;margin:0}
.board-panel{overflow:hidden;isolation:isolate}.board-viewport{position:absolute;inset:0;min-height:0;overflow:visible;border-radius:0;mask-image:none;-webkit-mask-image:none;background-color:#fff;z-index:0}.board-viewport:after{display:none}.board-world{background:transparent;width:0;height:0;overflow:visible}.board-tools{position:relative;z-index:2;align-self:flex-start;height:50px;margin-top:0}.board-tools>.button{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);background:#edf3fbd9}.board-footer{position:absolute;bottom:9px;left:24px;right:20px;z-index:2;background:#ffffffc9;backdrop-filter:blur(12px);border-radius:20px;padding:0 8px;min-height:38px}.app-header{z-index:4}.header-actions{position:relative}.empty-board{padding-top:130px;padding-bottom:70px}.board-tools #drawingControls{position:fixed}.board-panel:has(.board-tools.drawing) .board-tools{position:static}.board-tools #drawingControls{position:absolute;bottom:62px}.inspector{bottom:62px}
#readingProgress::-webkit-slider-thumb{border-color:#1977ec;background:linear-gradient(145deg,#65a9ff,#187bff);box-shadow:inset 0 1px 1px #ffffffaa,0 2px 5px #187bff26}#readingProgress::-moz-range-thumb{border-color:#1977ec;background:linear-gradient(145deg,#65a9ff,#187bff)}
.app-header .header-actions{border-radius:22px;background:#ffffffb8;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);padding:4px 0}.app-header{height:46px}.header-actions h1{padding-left:3px}
.inspector-controls #noteColour{appearance:none;-webkit-appearance:none;width:24px;height:24px;padding:0;border:1px solid #ced9e8;border-radius:50%;overflow:hidden;background:transparent;cursor:pointer}.inspector-controls #noteColour::-webkit-color-swatch-wrapper{padding:0}.inspector-controls #noteColour::-webkit-color-swatch{border:0;border-radius:50%}.inspector-controls #noteColour::-moz-color-swatch{border:0;border-radius:50%}
.board-footer{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;isolation:isolate;border:1px solid #ffffffbd;box-shadow:inset 0 1px 0 #ffffffef,0 3px 14px #263f6912}.board-footer:before{content:'';position:absolute;inset:0;z-index:-1;border-radius:inherit;background:linear-gradient(130deg,#ffffff85,#e8f3ff38);backdrop-filter:url(#glassRefraction) blur(2px) saturate(140%);-webkit-backdrop-filter:url(#glassRefraction) blur(2px) saturate(140%);pointer-events:none}.board-footer>span,.board-footer .zoom-controls{position:relative;z-index:1}
#removeDialog{width:calc(100% - 40px);max-width:420px;padding:32px;border-radius:28px;background:#fff;border:1px solid #e7edf5;box-shadow:0 24px 80px #172b4530}#removeDialog h2{font:500 25px/1.3 "Helvetica Neue",Helvetica,Arial,sans-serif;letter-spacing:-.6px;margin:0;color:#1c2c44}.remove-actions{display:flex;gap:12px;margin-top:30px}.remove-actions .button{flex:1;height:44px;padding:0 20px;font-size:15px;border-radius:23px}.remove-actions #cancelRemove{background:#eef2f7;color:#4c6381}.remove-actions #confirmRemove{background:#253b5c;color:#fff}
@media(min-width:701px){.workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.app-header{width:50%}.device-screen:after{left:calc(50% - 6px)}}

/* Consistent glass slider controls. */
:is(#readingProgress,#sizeControl,#angleControl,#noteWidth){-webkit-appearance:none;appearance:none;height:24px;background:transparent;border:0;padding:0;margin:0;outline-offset:3px}:is(#readingProgress,#sizeControl,#angleControl,#noteWidth)::-webkit-slider-runnable-track{height:5px;border-radius:8px;background:linear-gradient(180deg,#dce3ec,#edf2f8);box-shadow:inset 0 1px 2px #29425c16,0 1px 0 #fff}:is(#readingProgress,#sizeControl,#angleControl,#noteWidth)::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:15px;margin-top:-5px;border-radius:10px;border:1px solid #7890ad;background:linear-gradient(145deg,#91a5bdcc,#3d587dcc);box-shadow:inset 0 1px 1px #ffffffaa,0 2px 5px #263e6426}:is(#readingProgress,#sizeControl,#angleControl,#noteWidth)::-moz-range-track{height:5px;border-radius:8px;background:#e3e9f1}:is(#readingProgress,#sizeControl,#angleControl,#noteWidth)::-moz-range-thumb{width:26px;height:15px;border-radius:10px;border:1px solid #7890ad;background:linear-gradient(145deg,#91a5bd,#3d587d);box-shadow:inset 0 1px 1px #ffffffaa,0 2px 5px #263e6426}.page-controls{padding:4px 12px;background:#f6f9fc66;border-radius:16px;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
:is(#readingProgress,#sizeControl,#angleControl,#noteWidth)::-webkit-slider-thumb{border-color:#1977ec;background:linear-gradient(145deg,#65a9ff,#187bff);box-shadow:inset 0 1px 1px #ffffffaa,0 2px 5px #187bff26}:is(#readingProgress,#sizeControl,#angleControl,#noteWidth)::-moz-range-thumb{border-color:#1977ec;background:linear-gradient(145deg,#65a9ff,#187bff)}
#clipCount{display:none}

/* The supplied photograph is the device frame; the live app covers its display. */
@media(min-width:701px){
 body:not(.frameless) .device-shell{width:min(100%,calc((100dvh - 100px)*961/692));max-width:none;height:auto;min-height:0;aspect-ratio:961/692;padding:0;border:0;border-radius:0;box-shadow:none;background:url('/device-frame.jpg') 50% 78.88%/213.11% auto no-repeat;}
 body:not(.frameless) .device-shell:before,body:not(.frameless) .device-shell:after{display:none}
 body:not(.frameless) .device-screen{position:absolute;left:2.35%;right:2.35%;top:3.65%;bottom:3.35%;height:auto;border-radius:5.4% / 7.7%}
 .workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .app-header{width:50%}
}

#stickerDialog{max-height:calc(100dvh - 48px);overflow-y:auto}.sticker-choice{display:grid;place-items:center}.sticker-choice img{width:46px;height:46px;object-fit:contain}

.article-address #clearReader{flex:0 0 28px;width:28px;height:30px;min-height:30px;padding:0;background:transparent;color:#75859c;font-size:20px;line-height:1}.article-address #clearReader:hover{color:#187bff}.article-address #clearReader[hidden]{display:none}

.article-address #clearReader{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;min-height:30px;padding:6px;line-height:1}
.article-address #clearReader[hidden]{display:none}
.article-address #clearReader svg{display:block;width:18px;height:18px;margin:0;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
#exportButton,#tearButton{background:#dce7f7;color:#4b668b;border:0;border-radius:22px;font:400 13px/1 "Helvetica Neue",Helvetica,Arial,sans-serif;box-shadow:none}
#exportButton:hover:not(:disabled),#tearButton:hover:not(:disabled){background:#cbdcf3;color:#304e79}
#exportButton:disabled,#tearButton:disabled{background:#dce7f7;color:#6d83a2;opacity:1}
.tear-actions #wholeButton,.tear-actions #websiteOriginal{font:400 12px/1.4 "Helvetica Neue",Helvetica,Arial,sans-serif;color:#607ca4;letter-spacing:normal}

.inspector-controls{flex-wrap:wrap}.inspector-controls #noteWidth{width:64px}

#readerStatus.reader-empty{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:transparent;margin:0;padding:28px 18px 65px;color:#728caf;font-size:12px;line-height:1.7}#readerStatus.reader-empty[hidden]{display:none}.reader-empty-emoji{font-size:56px;line-height:1.1;margin-bottom:25px;filter:drop-shadow(1px 5px 5px #304b701c)}.reader-empty-title{font-size:19px;line-height:1.25;letter-spacing:-.5px;font-weight:500;color:#567298;margin-bottom:12px}
.article-address #readerURL:focus,.article-address #readerURL:focus-visible{outline:none;box-shadow:none}.article-address:focus-within{border-bottom-color:#92a8c4}
/* Consistent inset around the reader heading and card. */
@media(min-width:701px){.source-panel{padding:24px;gap:12px}.source-heading{height:43px;padding:0;align-items:center}.source-heading h2{padding-top:0}.source-widget{margin:0;width:100%;padding:16px}.device-status{top:12px;right:24px}}
@media(max-width:700px){.source-panel{padding:59px 16px 16px;gap:12px}.source-heading{padding-left:0;padding-right:0}.source-widget{padding:16px}}
@media(min-width:701px){.source-panel{gap:12px}.source-heading{height:28px;min-height:28px;padding-right:96px}.device-status{top:24px;right:24px;left:auto;width:auto;height:28px;display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:12px;padding:0;background:none;border:0;box-shadow:none;backdrop-filter:none}.device-status>span:first-child{font-size:14px;line-height:1;color:white}.device-status svg{width:28px;height:28px}.source-widget{flex:1;min-height:0}}

#readerStatus.reader-loading{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;margin:0;padding:32px 20px;background:transparent;color:#6c84a6;font-size:13px;font-weight:400;letter-spacing:.1px}#readerStatus.reader-loading:before{content:'';width:30px;height:30px;border:2px solid #e2eaf5;border-top-color:#6d96ce;border-radius:50%;animation:reader-spin 1.1s linear infinite}#readerStatus.reader-loading[hidden]{display:none}@keyframes reader-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){#readerStatus.reader-loading:before{animation:none;border-color:#a7bfdc}}
.app-header .header-actions #exportButton,.app-header .header-actions #exportButton:hover,.app-header .header-actions #exportButton:disabled{background:transparent;border:0;box-shadow:none;color:#607ca4;font:400 12px/1.4 "Helvetica Neue",Helvetica,Arial,sans-serif;padding:0 4px;border-radius:0}.app-header .header-actions #exportButton:hover:not(:disabled){text-decoration:underline}.app-header .header-actions #exportButton:disabled{opacity:.5}

/* Attribution stays outside the workspace, in the same quiet style as the frame toggle. */
body{min-height:100dvh;display:flex;flex-direction:column;padding-bottom:0}
.preview-bar{width:100%;flex-shrink:0}
.device-shell{flex-shrink:0}
.site-credit{display:flex;align-items:center;justify-content:center;flex-shrink:0;min-height:40px;margin-top:auto;font:400 13px/1.4 "Helvetica Neue",Helvetica,Arial,sans-serif;letter-spacing:normal;color:#6c84a6;text-align:center}
.site-credit a:hover{text-decoration:underline}
@media(min-width:701px){body:not(.frameless) .device-shell{width:min(100%,calc((100dvh - 115px)*961/692))}.frameless .device-shell{height:calc(100dvh - 85px)}}
@media(max-width:700px){.device-shell{height:calc(100dvh - 84px)}.frameless .device-shell{height:calc(100dvh - 85px)}}
