

:root{font-family:Arial,Helvetica,sans-serif;color-scheme:light;--bg:#f5f4f0;--paper:#fffefa;--ink:#191919;--muted:#777671;--line:#deddd8;--hover:#eae9e4;--red:#d8322d;background:var(--bg);color:var(--ink);font-synthesis:none}
:root[data-theme=black]{color-scheme:dark;--bg:#111111;--paper:#191919;--ink:#f5f4f0;--muted:#a4a39e;--line:#343434;--hover:#282828}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button{border:0;background:none;cursor:pointer}button:disabled{opacity:.25;cursor:default}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--red);outline-offset:4px}svg{width:18px;height:18px;flex-shrink:0}h1,h2,h3,p{margin:0}button{transition:background .12s,color .12s}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:10px 17px;border:1px solid var(--line);border-radius:3px;font-size:12px;background:transparent}.button:hover,.icon-button:hover{background:var(--hover)}.button.primary{background:var(--ink);color:var(--bg);border-color:var(--ink)}.button.primary:hover{opacity:.85}.button.small{font-size:11px;min-height:35px;padding:8px 12px}.icon-button{display:inline-flex;justify-content:center;align-items:center;width:36px;height:36px;border-radius:3px;flex-shrink:0}.icon-button[aria-pressed=true]{color:var(--red)}.text-button{font-size:12px;border-bottom:1px solid var(--ink);padding:0 0 5px}.account{font-size:12px;min-height:40px;padding:8px 0 8px 12px;white-space:nowrap}.library{max-width:1380px;margin:0 auto;padding:0 56px}.topbar{height:94px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px}.topbar nav,.topbar-actions{display:flex;align-items:center;gap:24px}.topbar-actions{gap:16px}.nav-item{font-size:12px;color:var(--muted);height:44px;padding:0;position:relative}.nav-item.selected{color:var(--ink)}.nav-item.selected:after{content:'';width:4px;height:4px;background:var(--red);border-radius:50%;position:absolute;bottom:1px;left:calc(50% - 2px)}.theme-switch{display:flex;gap:2px;border:1px solid var(--line);padding:3px;border-radius:3px}.theme-switch button{font-size:11px;padding:7px 10px;border-radius:1px;min-width:46px}.theme-switch button[aria-pressed=true]{background:var(--ink);color:var(--bg)}.theme-switch button:not([aria-pressed=true]):hover{background:var(--hover)}.library-content{padding:66px 0 24px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:36px}h1{font-size:38px;font-weight:400;letter-spacing:-1.8px;display:flex;align-items:baseline;gap:14px}.count{font-size:12px;letter-spacing:0;font-weight:400;color:var(--muted)}.new-actions{display:flex;gap:10px}.section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;gap:20px}.search{display:flex;align-items:center;gap:10px;color:var(--muted)}.search svg{width:15px;height:15px}.search input{border:0;background:none;font-size:12px;width:210px;padding:10px 0;outline-offset:2px}.search input::placeholder{color:var(--muted)}select{font-size:11px;background:var(--bg);border:0;padding:8px 4px;max-width:130px;color:var(--muted)}.notes-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 28px}.note-card{min-width:0}.note-preview{display:block;width:100%;aspect-ratio:1200/850;padding:0;overflow:hidden;border:1px solid var(--line);border-radius:2px;background:var(--paper)}.note-preview:hover{border-color:var(--muted)}.note-preview canvas{width:100%;height:auto;display:block}.note-preview[data-board=white]{background:#fffefa;color:#191919}.note-preview[data-board=black]{background:#191919;color:#f5f4f0}.text-preview{text-align:left;padding:28px}.text-preview>span{display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;font-size:13px;line-height:1.9}.note-info{padding:15px 0 0}.note-title{font-size:13px;text-align:left;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;padding:0}.note-meta{display:flex;justify-content:space-between;align-items:center;margin-top:6px;gap:6px}.note-meta>span{color:var(--muted);font-size:10px}.card-actions{display:flex;gap:3px}.card-actions .icon-button{height:30px;width:30px;color:var(--muted)}.card-actions .icon-button[aria-pressed=true]{color:var(--red)}.card-actions svg{width:14px;height:14px}.empty{min-height:340px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:22px}.empty p{font-size:15px;color:var(--muted)}.library-footer{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:66px;padding-top:18px}.status-button{padding:0;font-size:10px;color:var(--muted);text-align:left;line-height:1.6}.warning{color:var(--red)!important}.library-footer .icon-button{color:var(--muted)}.editor{height:100dvh;display:flex;flex-direction:column;overflow:hidden;background:var(--bg)}.editor-header{display:flex;align-items:center;gap:25px;padding:20px 28px;border-bottom:1px solid var(--line);min-height:88px}.back-button{display:flex;gap:8px;align-items:center;min-height:40px;font-size:12px;padding:0;color:var(--muted)}.title-wrap{flex:1;min-width:0;display:flex;align-items:center;gap:12px}.title-wrap input{border:0;background:none;font-size:15px;padding:4px 0;width:auto;flex:0 1 240px;min-width:7ch;max-width:42%}.title-wrap input::placeholder{color:var(--muted)}.editor-status{margin:0;white-space:nowrap;flex-shrink:0}.editor-actions{display:flex;align-items:center;gap:8px}.editor-actions .theme-switch{margin-right:10px}.editor-subheader{display:flex;align-items:center;justify-content:space-between;padding:7px 28px;min-height:47px;font-size:11px;color:var(--muted)}.editor-subheader>div{display:flex;align-items:center;gap:10px}.canvas-space{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto;padding:8px 28px 24px}.paper{width:min(100%,calc((100dvh - 265px) * 1200 / 850));aspect-ratio:1200/850;background:var(--paper);border:1px solid var(--line);flex-shrink:0;overflow:hidden}.paper canvas{display:block;width:100%;height:auto;touch-action:none;cursor:crosshair}.paper canvas.erasing{cursor:cell}.drawing-toolbar{align-self:center;display:flex;align-items:center;gap:10px;border:1px solid var(--line);background:var(--paper);padding:7px 10px;border-radius:4px;margin:0 12px max(24px,env(safe-area-inset-bottom));flex-shrink:0}.tool-group{display:flex;align-items:center;gap:4px;padding-right:10px;border-right:1px solid var(--line)}.tool-group:last-child{border:0;padding:0}.swatch{width:33px;height:36px;display:grid;place-items:center;border-radius:2px}.swatch:before{content:'';background:var(--swatch);width:15px;height:15px;border-radius:50%}.swatch[aria-pressed=true]:before{outline:1px solid var(--swatch);outline-offset:4px}.swatch:hover{background:var(--hover)}.thickness{gap:10px;font-size:10px;color:var(--muted)}input[type=range]{accent-color:var(--ink);width:65px}.thickness output{width:13px}.writing-paper{width:min(780px,100%);height:100%;aspect-ratio:auto}.writing-paper textarea{width:100%;height:100%;background:transparent;resize:none;border:0;padding:45px;font-size:18px;line-height:32px;outline-offset:-5px}.writing-paper textarea::placeholder{color:var(--muted)}.paper-dots{background-image:radial-gradient(var(--line) .8px,transparent .8px);background-size:24px 24px}.paper-lines{background-image:repeating-linear-gradient(transparent 0 31px,var(--line) 31px 32px);background-position:0 13px}.focus-mode .editor-header{display:none}.focus-mode .paper{width:min(100%,calc((100dvh - 170px) * 1200 / 850))}.focus-mode .writing-paper{width:min(900px,100%)}dialog{width:calc(100% - 32px);max-width:460px;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:4px;padding:25px}dialog::backdrop{background:#0008}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.dialog-header h2{font-size:24px;letter-spacing:-.7px;font-weight:400}.dialog-body p{font-size:12px;line-height:1.8;margin:12px 0}.muted,.small-copy{color:var(--muted)}.small-copy{font-size:11px!important}.notice{padding:13px;border:1px solid var(--line);font-size:12px;line-height:1.7;margin:15px 0}.dialog-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:10px;margin-top:24px}.dialog-actions .button{font-size:11px}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 0;border-bottom:1px solid var(--line)}.settings-row strong{font-size:12px;font-weight:500}.settings-row p{font-size:11px;margin:5px 0}.file-button{position:relative;overflow:hidden;cursor:pointer}.file-button input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.file-button:focus-within{outline:2px solid var(--red);outline-offset:3px}.shortcuts{display:grid;grid-template-columns:1fr auto;gap:14px;font-size:12px;margin:22px 0}.shortcuts dd{margin:0;color:var(--muted);font-size:11px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--bg);padding:13px 20px;border-radius:3px;font-size:12px;max-width:90vw;width:max-content;z-index:100;pointer-events:none;opacity:0;transition:opacity .15s;line-height:1.6}#toast.show{opacity:1}.boot,.startup-error{padding:12vh 8vw}.startup-error p{margin:20px 0}
@media(min-width:1600px){.library-content{padding-top:90px}}
@media(max-width:900px){.library{padding:0 32px}.topbar-actions{gap:9px}.topbar nav{gap:20px}.notes-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px 24px}.editor-header{gap:17px}.text-preview{padding:22px}}
@media(max-width:600px){.library{padding:0 22px}.topbar{height:auto;min-height:112px;flex-wrap:wrap;padding:18px 0 12px;gap:12px}.topbar nav{gap:26px;order:2;width:100%}.nav-item{height:34px}.topbar-actions{width:100%;justify-content:flex-end;gap:10px}.topbar-actions .theme-switch{margin-right:auto}.account{padding-left:0}.theme-switch button{min-height:31px;padding:5px 10px}.library-content{padding:36px 0 20px}.page-title{margin-bottom:28px;gap:10px}h1{font-size:32px;gap:10px}.new-actions{gap:7px}.button{font-size:11px;padding:9px 11px;min-height:40px}.button svg{width:15px;height:15px}.section-header{margin-bottom:20px}.search input{width:145px}.notes-grid{gap:25px 16px}.note-title{font-size:12px}.text-preview{padding:15px}.text-preview>span{font-size:11px;line-height:1.8;-webkit-line-clamp:4}.note-info{padding-top:12px}.note-meta{flex-wrap:wrap}.card-actions .icon-button{height:34px;width:30px}.library-footer{margin-top:44px}.editor-header{padding:12px;gap:12px;flex-wrap:wrap;min-height:105px}.back-button span{display:none}.title-wrap input{font-size:14px}.editor-actions{width:100%;justify-content:flex-end}.editor-actions .theme-switch{margin-right:auto}.editor-header .back-button{min-height:31px}.editor-actions .icon-button{height:31px;width:31px}.editor-subheader{padding:5px 12px;min-height:41px}.canvas-space{padding:8px 12px 22px}.paper{width:100%}.drawing-toolbar{gap:5px;padding:6px;margin-bottom:max(18px,env(safe-area-inset-bottom));max-width:calc(100% - 20px)}.tool-group{gap:0;padding-right:5px}.drawing-toolbar .icon-button{width:32px;height:36px}.swatch{width:29px}.thickness{gap:4px}.thickness input{width:42px}.thickness output{display:none}.writing-paper textarea{padding:24px;font-size:17px;line-height:32px}.focus-mode .paper{width:min(100%,calc((100dvh - 145px) * 1200 / 850))}.focus-mode .writing-paper{width:100%}.dialog-actions .button{flex:1}}
@media(max-height:550px) and (orientation:landscape){.editor-header{min-height:61px;padding:9px 20px}.editor-subheader{min-height:32px;padding:0 20px}.drawing-toolbar{margin-bottom:10px}.canvas-space{padding-bottom:10px}.paper{width:min(100%,calc((100dvh - 170px) * 1200 / 850))}.focus-mode .paper{width:min(100%,calc((100dvh - 115px) * 1200 / 850))}}
.logo{padding:0;display:flex;align-items:center;flex-shrink:0}.logo img{display:block;width:30px;height:30px;border-radius:3px}.topbar nav{margin-right:auto;margin-left:12px}
@media(max-width:600px){.topbar{column-gap:16px}.topbar-actions{width:auto;flex:1}.topbar-actions .theme-switch{margin-right:0;margin-left:auto}.topbar nav{margin-left:0;order:3}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.asset-dialog{max-width:650px}.asset-tabs{display:flex;gap:22px;border-bottom:1px solid var(--line);margin-bottom:20px}.asset-tabs>button{padding:0 0 12px;font-size:12px;color:var(--muted)}.asset-tabs>button[aria-pressed=true]{color:var(--ink);border-bottom:2px solid var(--red)}.asset-tabs span{margin-left:5px;font-size:10px}.asset-controls{display:flex;gap:8px;align-items:center;margin-bottom:24px}.asset-controls input[type=search]{flex:1;min-width:0;width:100px;border:0;background:transparent;font-size:12px;padding:10px 0}.asset-controls .button{font-size:11px;min-height:36px;padding:8px 11px}.asset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;max-height:46vh;overflow:auto;padding:4px}.asset-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;gap:13px;padding:18px 10px 12px;border:1px solid var(--line);min-height:115px;border-radius:2px}.asset-tile:hover{border-color:var(--muted);background:var(--hover)}.asset-tile svg{width:52px;height:52px}.asset-tile span{font-size:10px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.asset-tile canvas{width:100%;height:auto;max-height:100px;object-fit:contain}.saved-asset{position:relative}.saved-asset>.icon-button{position:absolute;top:2px;right:2px;width:25px;height:25px}.saved-asset>.icon-button svg{width:12px;height:12px}.field-label{display:block;font-size:12px;margin-bottom:10px}.dialog-input{width:100%;background:var(--paper);border:1px solid var(--line);padding:11px;font-size:13px}.selection-bar{display:flex;align-items:center;justify-content:center;gap:18px;position:absolute;left:50%;transform:translateX(-50%);top:142px;z-index:2;background:var(--paper);border:1px solid var(--line);padding:3px 10px;font-size:11px;max-width:calc(100% - 24px);box-shadow:0 2px 8px #0001}.selection-bar[hidden]{display:none}.selection-bar>span{max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.selection-bar>div{display:flex;align-items:center;gap:2px}.selection-bar .icon-button{width:30px;height:31px}.selection-bar .icon-button svg{width:15px;height:15px}.source-link{color:var(--muted);font-size:10px;text-decoration:none;margin-left:8px;white-space:nowrap}.paper canvas.selecting{cursor:grab}.focus-mode .selection-bar{top:50px}.editor-subheader .button{padding:4px 10px;min-height:31px;font-size:11px}
.dialog-error{color:var(--red);font-size:12px;line-height:1.7}
@media(max-width:600px){.asset-dialog{padding:18px}.asset-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:49vh}.asset-tile{padding:15px 7px 10px;min-height:105px}.asset-tile svg{height:42px;width:42px}.asset-controls{gap:6px}.asset-controls .button{padding:7px 9px}.asset-controls .button svg{display:none}.selection-bar{top:171px;gap:8px;padding:2px 5px;width:max-content}.selection-bar>span{max-width:65px;font-size:10px}.selection-bar .icon-button{width:28px}.source-link{display:none}.drawing-toolbar{gap:3px;padding:5px}.drawing-toolbar .icon-button{width:29px}.drawing-toolbar .swatch{width:26px}.tool-group{padding-right:4px}.thickness input{width:35px}.topbar nav{gap:24px}}

.paper canvas{aspect-ratio:1200 / 850}
.editor.focus-mode{position:fixed;inset:0;width:100%;height:100dvh;z-index:10;background:var(--paper);overflow:hidden}
.focus-mode .editor-header{display:none}
.focus-mode .canvas-space{position:absolute;inset:0;padding:0;display:block;overflow:hidden}
.focus-mode .paper{width:100%;height:100%;max-width:none;aspect-ratio:auto;border:0;box-shadow:none}
.focus-mode .paper canvas{width:100%;height:100%;aspect-ratio:auto}
.focus-mode .writing-paper textarea{height:100%;padding:72px 30px 30px;resize:none}
.focus-controls{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(12px,env(safe-area-inset-right));z-index:5;display:flex;gap:4px;background:var(--paper);border:1px solid var(--line);border-radius:4px;padding:3px}
.focus-controls .icon-button{width:38px;height:38px}
.focus-mode .editor-subheader,.focus-mode .drawing-toolbar,.focus-mode .selection-bar{display:none}
.focus-mode.tools-open .editor-subheader{display:flex;position:absolute;top:max(66px,calc(env(safe-area-inset-top) + 54px));right:12px;left:auto;z-index:4;padding:6px;gap:12px;background:var(--paper);border:1px solid var(--line);border-radius:4px;min-height:0}
.focus-mode .editor-subheader>div{display:flex;align-items:center;gap:10px}
.focus-mode.tools-open .drawing-toolbar{display:flex;position:absolute;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:4;margin:0;padding:7px;max-width:calc(100% - 24px);width:max-content;flex-wrap:wrap;justify-content:center;background:var(--paper)}
.focus-mode.tools-open .selection-bar:not([hidden]){display:flex;position:absolute;top:auto;bottom:125px;z-index:4}
.paper canvas.panning{cursor:grab}.paper canvas.panning:active{cursor:grabbing}

body{background:var(--bg);color:var(--ink)}


/* Branding + privacy link (Google OAuth home / privacy checks) */
.logo-text{margin-left:10px;font-size:15px;letter-spacing:-.4px;font-weight:400}
.footer-links{display:flex;align-items:center;gap:14px}
.privacy-link{font-size:12px;color:var(--muted);text-decoration:none;border-bottom:1px solid transparent;padding-bottom:2px}
.privacy-link:hover{color:var(--ink);border-bottom-color:var(--ink)}

/* Standalone privacy.html */
.legal-page{max-width:720px;margin:0 auto;padding:48px 28px 80px;line-height:1.75}
.legal-page header{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:36px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.legal-page .brand{font-size:15px;letter-spacing:-.4px;text-decoration:none;color:var(--ink)}
.legal-page .back{font-size:12px;color:var(--muted);text-decoration:none}
.legal-page .back:hover{color:var(--ink)}
.legal-page h1{font-size:32px;letter-spacing:-1.4px;margin-bottom:12px}
.legal-page .lede{font-size:14px;color:var(--muted);margin-bottom:32px}
.legal-page h2{font-size:16px;font-weight:500;letter-spacing:-.3px;margin:28px 0 10px}
.legal-page p,.legal-page li{font-size:13px;margin:0 0 12px}
.legal-page ul{padding-left:1.2em;margin:0 0 12px}
.legal-page a{color:var(--ink)}
.legal-page .updated{font-size:11px;color:var(--muted);margin-top:40px}
@media(max-width:600px){.legal-page{padding:28px 22px 60px}.legal-page h1{font-size:26px}}

/* Full-screen mode */
.fullscreen-button{letter-spacing:.02em}
.live-badge{display:inline-flex;align-items:center;gap:6px;align-self:center;margin:0 4px 0 2px;padding:0 10px;height:28px;border-radius:999px;font-size:10px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);border:1px solid var(--line);background:transparent;user-select:none;cursor:help}
.live-badge:hover{background:var(--hover)}
.live-badge:before{content:'';width:6px;height:6px;border-radius:50%;background:var(--muted)}
.live-badge.is-live{color:var(--ink);border-color:color-mix(in srgb,var(--red) 35%,var(--line))}
.live-badge.is-live:before{background:var(--red);box-shadow:0 0 0 3px color-mix(in srgb,var(--red) 22%,transparent)}
.connect-bot-button{white-space:nowrap}
.empty-connect{font-size:12px!important;margin:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:center}
.empty-connect .text-button{font-size:12px}
.connect-lede{margin:0 0 10px!important;font-size:13px!important;line-height:1.6}
.focus-controls{align-items:center}
.focus-mode .focus-controls{opacity:.55;transition:opacity .2s}
.focus-mode .focus-controls:hover,.focus-mode .focus-controls:focus-within{opacity:1}

/* Connect Board bot */
.connect-dialog{max-width:520px}
.connect-steps{margin:0 0 8px;padding-left:18px;font-size:12px;line-height:1.8}
.connect-steps li{margin:4px 0}
.token-card{margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:3px;background:var(--paper)}
.token-card .token-meta{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:8px;font-size:11px;color:var(--muted)}
.token-card textarea{width:100%;min-height:88px;resize:vertical;background:var(--bg);border:1px solid var(--line);border-radius:2px;padding:10px;font-size:10px;line-height:1.5;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;word-break:break-all}
.connect-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.connect-actions .button{font-size:11px;min-height:36px;padding:8px 12px}
