:root{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#273c36;background:#f7f7f2;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--bg: #f7f7f2;--surface: #fffefa;--sidebar: #f0f1e9;--text: #273c36;--muted: #647367;--line: #e1e4d9;--green: #254c40;--active: #e2e8d8;--shadow: 0 16px 48px #243d3714}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{color:inherit;cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #80a899;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #7b9b8b;outline-offset:1px}button{border:0}a{color:inherit}button svg{flex-shrink:0}button{transition:background .15s,transform .15s}button:active:not(:disabled){transform:translateY(1px)}.app-shell{min-height:100vh;display:grid;grid-template-columns:245px 1fr}.sidebar{background:var(--sidebar);border-right:1px solid var(--line);padding:35px 22px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-size:32px;font-weight:650;letter-spacing:-1.2px;margin:0 11px 47px}.brand-mark{font-family:Georgia,serif;font-size:31px;line-height:39px;background:var(--green);color:#f5f4e7;width:39px;height:39px;border-radius:11px;text-align:center;font-style:italic;position:relative;letter-spacing:-7px;padding-right:8px}.brand-mark span{color:#d7eba8;position:absolute;top:-13px;right:9px;font-size:25px}.workspace-label,.folder-heading{font-size:10px;letter-spacing:1.5px;font-weight:650;color:var(--muted)}.workspace-label{padding-left:12px;margin-bottom:14px}nav{display:grid;gap:5px}nav button{background:transparent;display:flex;align-items:center;gap:12px;text-align:left;border-radius:10px;padding:12px;font-size:13px;font-weight:550;min-height:43px}nav button svg{width:18px;height:18px;color:var(--muted)}nav button small{margin-left:auto;font-weight:600;font-size:10px}nav button:hover,nav button.selected{background:var(--active)}nav button.selected svg{color:var(--green)}.folder-heading{margin:30px 5px 5px 12px;display:flex;justify-content:space-between;align-items:center}.folder-hint{font-size:11px;color:var(--muted);padding-left:12px}.folder-nav{overflow:auto}.sidebar-bottom{margin-top:auto;padding-top:35px}.profile{border-top:1px solid var(--line);display:flex;width:100%;background:transparent;gap:10px;align-items:center;text-align:left;margin-top:21px;padding:22px 0 0;font-size:11px}.profile>span:nth-child(2){flex:1;overflow:hidden}.profile strong{font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis}.profile small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.avatar{width:35px;height:35px;background:#e1e6d8;border-radius:50%;display:grid;place-items:center;color:#566d58}.library{min-width:0}.topbar{height:86px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 47px;font-size:12px}.breadcrumb{display:flex;gap:11px;align-items:center;color:var(--muted)}.top-actions{display:flex;gap:17px;align-items:center}.save-status{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:6px;background:transparent;border-radius:8px;flex-shrink:0}.icon-button svg{width:20px;height:20px}.icon-button:hover{background:var(--active)}.icon-button.active{background:var(--active);color:var(--green)}.library-content{max-width:1400px;margin:0 auto;padding:47px 47px 24px}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:33px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:650;color:#7e8b73;margin:2px 0 14px}h1{font-family:Georgia,Times New Roman,serif;font-size:42px;line-height:1.15;letter-spacing:-.7px;font-weight:400;margin:0 0 12px}.intro p{font-size:14px;color:var(--muted);margin:0}.create-actions{display:flex;gap:10px;align-items:center;margin-top:16px}.primary,.secondary,.danger,.text-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 15px;border-radius:10px;font-size:12px;font-weight:600;white-space:nowrap}.primary{background:var(--green);color:#fffef6;border:1px solid var(--green)}.primary:hover{background:#36614e}.secondary{background:var(--surface);border:1px solid var(--line)}.secondary:hover{background:var(--active)}.danger{background:#f4e2dd;color:#9e3e30;margin-top:8px}.text-button{background:transparent;color:var(--muted);padding:7px}.library-tools{display:flex;justify-content:space-between;align-items:center;margin-bottom:32px;gap:16px}.search{display:flex;gap:10px;align-items:center;border:1px solid var(--line);background:var(--surface);border-radius:12px;width:370px;max-width:100%;padding:0 12px;color:var(--muted)}.search input{width:100%;border:0;min-width:0;background:transparent;height:46px;font-size:13px;color:var(--text);outline:none}.search kbd{font:15px sans-serif;color:#a6aca0}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:22px 0}.section-heading h2{font-size:14px;font-weight:600;margin:0}.section-heading h2 span{margin-left:7px;color:var(--muted);font-size:10px;font-weight:400;border:1px solid var(--line);border-radius:4px;padding:1px 5px}.section-heading>span{color:var(--muted);font-size:10px}.folders{display:flex;gap:13px;flex-wrap:wrap}.folders>button{display:flex;align-items:center;gap:14px;padding:15px 20px;min-width:180px;border:1px solid var(--line);border-radius:8px;background:var(--surface);font-size:12px}.folders>button svg:first-child{color:#9b9f78}.folders>button svg:last-child{margin-left:auto;color:var(--muted)}.notebooks{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:31px 25px;align-items:start}.notebook{min-width:0;animation:appear .25s ease both}.notebook-cover{height:263px;width:100%;border-radius:5px 13px 13px 5px;color:#fffdf4;position:relative;text-align:left;display:flex;flex-direction:column;padding:28px 25px 23px 29px;overflow:hidden;box-shadow:3px 9px 20px #22392d1c,inset -3px 0 1px #ffffff13}.notebook-cover:after{content:"";position:absolute;border:1px solid #ffffff15;width:250px;height:250px;border-radius:50%;right:-130px;bottom:-60px;box-shadow:0 0 0 20px #ffffff08,0 0 0 40px #ffffff06,0 0 0 60px #ffffff04}.notebook-cover:hover{transform:translateY(-4px);box-shadow:4px 10px 14px #22392d26}.book-spine{position:absolute;top:0;bottom:0;left:8px;width:4px;border-left:1px solid #0000001a;border-right:1px solid #ffffff19;background:#00000008}.cover-caption{font-size:7px;font-weight:500;letter-spacing:2px;opacity:.65}.cover-title{font:27px/1.25 Georgia,serif;letter-spacing:.1px;margin-top:36px;max-width:100%;overflow:hidden;overflow-wrap:anywhere;max-height:105px;position:relative;z-index:1}.cover-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:auto;font-size:7px;letter-spacing:1.5px;opacity:.65}.pdf-badge{position:absolute;right:16px;top:22px;font-size:8px;border:1px solid #ffffff40;padding:3px 5px;border-radius:3px}.book-meta{display:flex;justify-content:space-between;gap:4px;padding-top:15px}.book-meta>div:first-child{min-width:0}.book-title{background:transparent;padding:0;font-size:12px;font-weight:600;text-align:left;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:100%}.book-meta p{font-size:9px;color:var(--muted);margin:7px 0 0}.book-actions{display:flex;align-items:flex-start}.book-actions .icon-button{height:24px;width:24px;padding:3px}.new-notebook{border:1px dashed #c9cfbf;background:#f0f2e94d;height:263px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:var(--muted)}.new-notebook>span{display:grid;place-items:center;width:48px;height:48px;background:#e9eddf;border-radius:50%;margin-bottom:20px;color:#78906e}.new-notebook strong{font:18px Georgia,serif;color:#617158;font-weight:400}.new-notebook small{font-size:10px;margin-top:10px}.new-notebook:hover{background:var(--active)}.library-footer{margin-top:66px;border-top:1px solid var(--line);padding-top:21px;display:flex;justify-content:space-between;color:#91998b;font-size:9px}.library-footer span:first-child{display:flex;align-items:center;gap:6px}.status-dot{width:5px;height:5px;background:#91a77b;border-radius:50%}.empty{display:flex;flex-direction:column;align-items:center;padding:60px 20px;color:var(--muted);gap:12px;text-align:center}.empty h3{font:25px Georgia,serif;margin:8px 0}.empty p{font-size:13px}.empty h2{font:26px Georgia,serif}dialog{width:470px;max-width:calc(100vw - 32px);max-height:90dvh;overflow:auto;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:16px;padding:26px;box-shadow:0 25px 100px #112e3838}dialog::backdrop{background:#192c2855;backdrop-filter:blur(3px)}dialog>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:18px}dialog h2{font:26px Georgia,serif;margin:0}dialog p{font-size:13px;line-height:1.6}.muted{color:var(--muted)}label{display:flex;flex-direction:column;gap:8px;font-size:12px;margin:16px 0;font-weight:500}label small{font-weight:400;color:var(--muted);font-size:10px}input,textarea,select{background:var(--bg);border:1px solid var(--line);padding:11px 12px;border-radius:7px;color:var(--text);min-width:0;max-width:100%}textarea{resize:vertical;line-height:1.5}input[type=color]{padding:3px;height:36px;width:50px}input[type=range]{padding:0;width:100%;accent-color:var(--green)}input[type=checkbox],input[type=radio]{accent-color:var(--green)}.checkbox{display:flex;flex-direction:row;align-items:center;font-size:11px;line-height:1.5}.form-row{display:flex;gap:16px}.form-row label{flex:1;min-width:0}.full{width:100%;margin-top:10px}.cover-choices{display:flex;border:0;gap:12px;padding:0;margin:14px 0 24px}.cover-choices legend{font-size:12px;margin-bottom:10px}.cover-choices label{width:43px;height:43px;display:block;position:relative;border-radius:8px;margin:0;cursor:pointer}.cover-choices input{position:absolute;opacity:0}.cover-choices span{display:grid;place-items:center;height:100%;color:#fff;opacity:0}.cover-choices input:checked+span{opacity:1;outline:2px solid #74866c;outline-offset:3px;border-radius:8px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%);z-index:30;background:var(--text);color:var(--surface);padding:10px 12px 10px 20px;display:flex;align-items:center;gap:16px;border-radius:10px;box-shadow:var(--shadow);max-width:90vw;font-size:13px}.toast .icon-button:hover{background:#ffffff20}.sync-notice{position:fixed;bottom:0;left:0;right:0;padding:8px 16px;font-size:11px;background:#fff0cd;color:#725a23;z-index:20;display:flex;justify-content:center;gap:15px}.sync-notice button{background:transparent;text-decoration:underline}.busy{position:fixed;top:10px;left:50%;transform:translate(-50%);z-index:50;padding:9px 18px;border:1px solid var(--line);background:var(--surface);border-radius:24px;font-size:12px;box-shadow:var(--shadow)}.editor{height:100dvh;display:flex;flex-direction:column;background:var(--bg);overflow:hidden}.editor-header{height:70px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:var(--surface);border-bottom:1px solid var(--line);gap:15px}.editor-title{display:flex;align-items:center;gap:13px;min-width:0}.editor-title>button:last-child{display:flex;flex-direction:column;text-align:left;background:transparent;gap:4px;padding:0;min-width:0}.editor-title strong{font-size:13px;max-width:30vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}.editor-title small{font-size:9px;color:var(--muted)}.mini-cover{width:22px;height:30px;border-radius:2px 4px 4px 2px;box-shadow:inset 3px 0 #00000020}.editor-actions{display:flex;align-items:center;gap:10px}.compact{min-height:34px;font-size:10px;padding:8px 12px}.toolbar{height:62px;display:flex;align-items:center;justify-content:center;gap:15px;background:var(--surface);border-bottom:1px solid var(--line);flex-shrink:0;padding:8px 16px;z-index:4}.tool-group{display:flex;align-items:center;gap:5px;border-right:1px solid var(--line);padding-right:16px}.tool-group:last-child{border:0;padding-right:0}.drawing-tools{gap:4px}.color-tools{gap:9px}.color-swatch{width:19px;height:19px;border-radius:50%;border:3px solid var(--surface);box-shadow:0 0 0 1px transparent}.color-swatch.chosen{box-shadow:0 0 0 1px #7a8b75}.color-tools input{width:21px;height:21px;border:0;padding:0;border-radius:50%;overflow:hidden}.pen-options{position:relative}.pen-options summary{cursor:pointer;padding:7px;list-style:none;display:flex}.pen-options>div{position:absolute;top:40px;right:0;width:265px;background:var(--surface);box-shadow:var(--shadow);border:1px solid var(--line);border-radius:10px;padding:16px;z-index:12}.pen-favorites{display:flex;gap:8px;margin-top:12px}.pen-favorites button{display:flex;gap:3px;align-items:center;font-size:10px;background:var(--bg);padding:4px}.editor-body{flex:1;min-height:0;display:flex}.page-rail{width:182px;flex-shrink:0;border-right:1px solid var(--line);padding:21px 16px 0;display:flex;flex-direction:column;background:var(--sidebar);overflow:auto}.page-rail-title{display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:1px;color:var(--muted);margin-bottom:13px}.page-rail-title strong{font-size:10px;font-weight:400}.add-page{font-size:10px;padding:6px;min-height:34px}.page-rail .text-button{font-size:9px;min-height:29px}.page-list{display:grid;gap:20px;padding:17px 12px 25px}.page-preview{background:transparent;display:flex;flex-direction:column;align-items:center;font-size:10px;color:var(--muted);gap:8px;padding:0}.page-mini{height:150px;width:106px;box-shadow:0 2px 5px #2b412210;background:#fffefb;border:1px solid #e0e3d6;border-radius:2px;position:relative;display:flex;flex-direction:column;gap:12px;padding:25px 15px;justify-content:center;align-items:center;color:#bbc3b7}.page-mini.paper-grid,.page-mini.paper-math{background-image:linear-gradient(#dae1d6 1px,transparent 1px),linear-gradient(90deg,#dae1d6 1px,transparent 1px);background-size:9px 9px}.page-mini.paper-lined,.page-mini.paper-writing{background-image:linear-gradient(#dae1d6 1px,transparent 1px);background-size:9px 9px}.page-mini.paper-dots{background-image:radial-gradient(#c2cdbd .7px,transparent .7px);background-size:8px 8px}.page-mini small{font-size:8px;position:absolute;bottom:8px;background:#fffefbdd;padding:3px;color:#85917e}.current .page-mini{outline:2px solid #648576;outline-offset:3px}.current>span:last-child{color:var(--green);font-weight:600}.editor-stage{flex:1;min-width:0;position:relative;display:flex;flex-direction:column;background:#e9ece5}.paper-scroll{overflow:auto;flex:1;padding:40px 50px 60px;overscroll-behavior:contain;scrollbar-gutter:stable}.paper-position{position:relative;margin:0 auto}.paper-rotation{position:absolute;left:50%;top:50%}.paper{position:relative;box-shadow:0 5px 24px #394a3424;background:#fffefb}.paper canvas{position:absolute;inset:0;width:100%;height:100%;display:block}.canvas-error{background:#ffefd1;padding:20px;position:absolute;max-width:90%;z-index:2;font-size:12px;color:#725a23}.editor-footer{height:44px;background:var(--surface);border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 17px;font-size:10px;gap:12px;flex-shrink:0}.editor-footer>div{display:flex;align-items:center;gap:3px}.editor-footer .icon-button{width:28px;height:28px}.tool-hint{font-size:10px;color:var(--muted)}.zoom-label{font-size:10px;background:transparent;min-width:49px}.selection-bar{position:absolute;top:8px;left:50%;transform:translate(-50%);z-index:3;display:flex;align-items:center;gap:4px;padding:4px 8px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:10px;white-space:nowrap}.selection-bar>span{font-size:10px;padding-right:7px}.paste-button{position:absolute;right:20px;top:12px;z-index:3;min-height:30px;padding:6px 9px;font-size:10px}.export-options>button{display:flex;align-items:center;gap:17px;width:100%;background:var(--bg);padding:17px 14px;text-align:left;margin-top:10px;border:1px solid var(--line);border-radius:9px}.export-options>button>span{flex:1}.export-options strong{font-size:12px;font-weight:600;display:block}.export-options small{font-size:10px;color:var(--muted);display:block;margin-top:6px}.share-person,.item-row{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:15px 0;font-size:11px;margin-top:15px}.share-person>span,.item-row>span{flex:1;overflow:hidden}.share-person small{display:block;color:var(--muted);margin-top:4px}.share-person button,.item-row>button{font-size:10px;background:var(--bg);padding:8px;border-radius:5px}.button-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:17px}.button-grid button{white-space:normal;font-size:10px;margin:0}.settings p{line-height:1.6}[data-theme=dark]{--bg: #1d2825;--surface: #25322d;--sidebar: #202d27;--text: #e1e7dc;--muted: #a3b1a1;--line: #3a493e;--green: #4f745c;--active: #364a3b;--shadow: 0 16px 48px #00000026}[data-theme=dark] .editor-stage{background:#18221d}[data-theme=dark] .new-notebook{background:#26362b}[data-theme=dark] .new-notebook strong{color:#c2d5b5}[data-theme=dark] .new-notebook>span{background:#394e35;color:#c9d8b8}@keyframes appear{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@media(min-width:1500px){.notebooks{grid-template-columns:repeat(4,1fr)}.notebook-cover,.new-notebook{height:310px}.cover-title{font-size:32px}}@media(max-width:1150px){.app-shell{grid-template-columns:215px 1fr}.sidebar{padding-left:15px;padding-right:15px}.topbar{padding:0 30px}.library-content{padding:37px 30px 22px}.intro{align-items:flex-start;flex-direction:column;gap:6px}.create-actions{align-self:flex-start}.notebooks{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:25px 20px}.notebook-cover,.new-notebook{height:240px}.toolbar{gap:8px;justify-content:flex-start}.tool-group{gap:1px;padding-right:8px}.toolbar .icon-button{width:32px}.color-tools{gap:6px}.color-tools .color-swatch:nth-child(n+3){display:none}.page-rail{width:150px;padding:18px 12px}.page-list{padding-left:6px;padding-right:6px}.paper-scroll{padding:30px 30px 50px}}@media(max-width:780px){.app-shell{grid-template-columns:75px 1fr}.sidebar{padding:24px 10px 12px;align-items:center}.brand{margin:0 0 36px}.sidebar .brand>span:last-child{display:none}.workspace-label,.folder-heading,.folder-nav,.folder-hint,nav button span,nav button small,.profile>span:nth-child(2),.profile>svg{display:none}nav button{padding:13px}.sidebar-bottom{width:100%}.profile{justify-content:center}.topbar{height:64px;padding:0 22px}.top-actions{gap:6px}.save-status{font-size:9px}.library-content{padding:28px 22px}.intro h1{font-size:32px}.intro p{font-size:11px}.eyebrow{font-size:8px}.notebooks{grid-template-columns:repeat(2,minmax(0,1fr));gap:25px 17px}.notebook-cover,.new-notebook{height:235px}.cover-title{font-size:24px}.library-tools{flex-wrap:wrap;gap:4px}.library-tools .search{width:100%}.library-tools>.text-button{font-size:10px}.library-footer span:last-child{display:none}.toolbar{overflow-x:auto;overflow-y:visible;justify-content:flex-start;height:58px;padding:8px}.pen-options>div{position:fixed;right:10px;top:128px}.editor-header{padding:0 12px;height:65px}.editor-actions{gap:5px}.editor-title{gap:8px}.editor-actions .compact span{display:none}.editor-actions .compact{padding:9px}.editor-title strong{max-width:34vw;font-size:12px}.tool-hint{display:none}.editor-footer{padding:0 6px}.page-rail{width:130px}.page-mini{width:85px;height:120px}.page-rail .secondary{font-size:9px;gap:4px;padding:4px}.page-rail-title{font-size:8px}.paper-scroll{padding:24px 24px 44px}.selection-bar{left:8px;transform:none;max-width:95%;overflow-x:auto;gap:0}.selection-bar .icon-button{width:30px;height:30px}.selection-bar>span{font-size:9px}}@media(max-width:480px){.app-shell{grid-template-columns:1fr}.sidebar{height:58px;position:sticky;top:0;z-index:4;display:flex;flex-direction:row;justify-content:space-between;padding:8px 14px;border-bottom:1px solid var(--line)}.brand{margin:0}.brand-mark{width:32px;height:32px;font-size:27px;line-height:32px}.brand-mark span{font-size:20px;right:7px;top:-11px}.sidebar>nav{display:flex}.sidebar-bottom{width:auto;margin:0;padding:0;display:flex}.sidebar-bottom nav{display:flex}.sidebar-bottom .profile{display:none}nav button{padding:9px;min-height:35px}.topbar{height:47px;padding:0 18px}.top-actions .icon-button{width:30px;height:30px}.save-status{display:none}.library-content{padding:25px 18px}.intro h1{font-size:31px}.create-actions{width:100%}.create-actions button{flex:1;font-size:10px}.notebooks{gap:23px 15px}.notebook-cover,.new-notebook{height:220px}.notebook-cover{padding:24px 18px 20px 22px}.cover-title{font-size:23px}.cover-caption{font-size:6px;letter-spacing:1.3px}.book-actions{flex-direction:column}.book-meta{padding-top:12px}.book-title{font-size:11px}.book-meta p{font-size:8px}.new-notebook strong{font-size:16px}.new-notebook small{font-size:8px}.page-rail,.editor-title .mini-cover{display:none}.editor-title strong{max-width:39vw}.editor-actions>.icon-button{display:none}.paper-scroll{padding:20px 20px 40px}.editor-footer>div:first-child .icon-button:nth-last-child(-n+2){display:none}.tool-group{padding-right:7px}.toolbar .icon-button{width:32px;height:36px}.color-tools{display:none}.toolbar{gap:8px}.editor-actions .compact{min-height:36px}.selection-bar .icon-button{width:29px}.selection-bar>span{max-width:40px;overflow:hidden}.toast{bottom:18px;padding:8px 10px 8px 14px;font-size:12px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}.auth-screen{min-height:100dvh;display:grid;place-items:center;padding:36px;background:var(--bg);color:var(--text)}.auth-layout{width:min(1180px,100%);display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.85fr);align-items:center;gap:clamp(36px,6vw,100px)}.auth-story{min-width:0;padding:6px 0}.auth-story .brand{margin:0 0 52px;width:fit-content}.auth-story .brand-mark{box-shadow:0 4px 10px #254c4015}.auth-story .eyebrow{font-size:10px;letter-spacing:1.8px;color:var(--muted)}.auth-story h1{font-size:clamp(38px,4.1vw,58px);line-height:1.12;letter-spacing:-1.4px;margin-bottom:20px}.auth-story h1 em{font-weight:400;color:var(--green)}.auth-story-copy>p{color:var(--muted);font-size:15px;line-height:1.8;margin:0}.auth-art{height:345px;position:relative;margin:25px 0 13px;max-width:580px}.art-orbit{position:absolute;width:300px;height:300px;border-radius:50%;background:#e6eadc;left:110px;top:16px}.art-orbit:after{content:"";position:absolute;inset:-22px;border:1px solid #9ca98b33;border-radius:50%}.art-book{position:absolute;top:24px;left:30px;width:217px;height:274px;background:#254c40;color:#faf7ed;border-radius:5px 15px 15px 5px;transform:rotate(-11deg);padding:26px 20px 22px 27px;box-shadow:6px 17px 25px #254c4026,inset 7px 0 #163c3259,inset -3px 0 #ffffff14;display:flex;flex-direction:column}.art-book-label{font-size:7px;letter-spacing:1.5px;color:#d4dec9}.art-book strong{font:28px/1.2 Georgia,serif;margin-top:30px;font-weight:400}.art-book>svg{width:155px;height:77px;color:#d6e5af;margin-top:8px}.art-book-footer{margin-top:auto;font-size:6px;letter-spacing:1.2px;display:flex;align-items:center;justify-content:space-between;color:#d4dec9}.art-page{position:absolute;left:224px;top:52px;width:226px;height:256px;background:repeating-linear-gradient(transparent 0 25px,#d9dfd657 25px 26px),#fffdf6;border:1px solid #e3e5d9;color:#345345;border-radius:3px;transform:rotate(9deg);box-shadow:0 12px 24px #273c3614;padding:26px 22px}.art-page>span{font-size:8px;text-transform:uppercase;letter-spacing:1.3px;color:#6f806d}.art-page strong{display:block;font:italic 23px/1.25 Georgia,serif;margin:17px 0}.art-page>div{display:flex;gap:10px;align-items:center;font-size:10px;height:26px}.art-unchecked>span{width:12px;height:12px;border:1px solid #9baa8b;border-radius:3px;margin:0 2px}.art-page>svg{width:160px;height:40px;color:#9cb273}.art-pencil{position:absolute;top:30px;left:455px;height:250px;width:9px;border-radius:5px 5px 1px 1px;transform:rotate(23deg);background:linear-gradient(90deg,#bca77c,#f0ddba 45%,#c2ab84);box-shadow:4px 6px 6px #273c3614}.art-pencil:after{content:"";position:absolute;bottom:-18px;border-left:4.5px solid transparent;border-right:4.5px solid transparent;border-top:18px solid #8b7250}.art-caption{position:absolute;bottom:0;left:98px;font:italic 15px Georgia,serif;color:var(--muted);transform:rotate(-3deg)}.auth-features{display:flex;flex-wrap:wrap;gap:12px 20px;margin-top:22px;color:var(--muted)}.auth-features span{display:inline-flex;gap:7px;align-items:center;font-size:11px}.auth-card{width:100%;padding:40px;background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:0 20px 70px #273c3609,0 2px 8px #273c3605}.auth-card-icon{width:50px;height:50px;display:grid;place-items:center;background:var(--active);color:var(--green);border-radius:15px;margin-bottom:28px}.account-form h2{font:32px/1.15 Georgia,serif;font-weight:400;letter-spacing:-.5px;margin:0 0 12px}.account-form>p{font-size:13px;line-height:1.7;margin:0 0 27px}.auth-card label{font-size:12px;margin:20px 0;gap:9px}.auth-card input{min-height:48px;background:var(--bg);border-radius:10px;font-size:15px;width:100%}.auth-card label small{font-size:11px;line-height:1.5}.auth-card .primary{min-height:48px;font-size:13px;margin-top:6px}.auth-card .text-button{font-size:12px;margin-top:6px;color:var(--text)}.auth-privacy{border-top:1px solid var(--line);padding-top:22px;font-size:11px;text-align:center;margin:23px 0 0;line-height:1.6}.auth-error{padding:12px;background:#fbe7df;border-radius:9px;color:#913b2b;font-size:13px;line-height:1.5}[data-theme=dark] .art-orbit{background:#34443a}[data-theme=dark] .auth-story h1 em{color:#b7cc9c}@media(max-width:1050px){.auth-screen{padding:28px}.auth-layout{gap:30px;grid-template-columns:minmax(0,1fr) minmax(320px,.9fr)}.auth-card{padding:30px}.auth-art{transform:scale(.8);transform-origin:left center;width:525px;margin-right:-105px;height:320px}.auth-features{max-width:300px;line-height:1.5}}@media(max-width:760px){.auth-screen{padding:28px 20px}.auth-layout{max-width:480px;grid-template-columns:minmax(0,1fr);gap:28px}.auth-story .brand{margin-bottom:35px;font-size:30px}.auth-story h1{font-size:clamp(36px,7.5vw,46px);letter-spacing:-.8px;margin-bottom:14px}.auth-story-copy>p{font-size:14px}.auth-art{display:none}.auth-features{max-width:none;gap:12px 17px;margin-top:20px}.auth-features span{font-size:10px}.auth-card{padding:28px;border-radius:18px}.auth-card-icon{display:none}.account-form h2{font-size:29px}}dialog:has(.notebook-setup){width:590px}.setup-preview{height:178px;border-radius:12px;background:var(--bg);display:flex;align-items:center;justify-content:center;gap:22px;padding:20px;overflow:hidden;margin-bottom:20px}.setup-cover{width:125px;height:154px;border-radius:3px 10px 10px 3px;color:#fffdf4;padding:17px;display:flex;flex-direction:column;transform:rotate(-8deg);box-shadow:4px 7px 12px #20362c24,inset 5px 0 #00000013}.setup-cover small{font-size:6px;letter-spacing:1px}.setup-cover strong{font:20px/1.15 Georgia,serif;margin:19px 0 auto;overflow:hidden;overflow-wrap:anywhere;max-height:72px}.setup-cover svg{flex-shrink:0}.setup-paper{height:142px;max-width:180px;transform:rotate(7deg);position:relative;box-shadow:0 5px 12px #20362c17}.setup-paper>span{position:absolute;bottom:12px;left:10px;background:#fffefbe8;padding:4px;font-size:9px;color:#526655}.cover-palette,.paper-choices{margin:20px 0;border:0;padding:0}.cover-palette legend,.paper-choices legend{font-size:12px;font-weight:600;margin-bottom:12px}.cover-palette legend span{font-weight:400;color:var(--muted);margin-left:10px}.cover-palette{display:flex;flex-wrap:wrap;gap:10px}.cover-palette>button{width:34px;height:42px;border-radius:3px 7px 7px 3px;color:#fff;display:grid;place-items:center;box-shadow:inset 3px 0 #00000015}.cover-palette>button[aria-pressed=true]{outline:2px solid var(--green);outline-offset:3px}.custom-cover{display:flex;flex-direction:row;align-items:center;gap:8px;margin:0;font-size:11px}.custom-cover input{width:38px;height:38px;padding:3px}.paper-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.paper-choices button{display:flex;flex-direction:column;align-items:center;background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:10px 6px;gap:8px;font-size:10px}.paper-choices button[aria-pressed=true]{border-color:var(--green);background:var(--active);box-shadow:0 0 0 1px var(--green)}.paper-choices .paper-sample{width:42px;height:55px}.paper-sample{background-color:#fffefb;border:1px solid #dce2d9}.paper-sample.paper-grid,.paper-sample.paper-math{background-image:linear-gradient(#d1dad4 1px,transparent 1px),linear-gradient(90deg,#d1dad4 1px,transparent 1px);background-size:8px 8px}.paper-sample.paper-math{background-size:5px 5px}.paper-sample.paper-lined,.paper-sample.paper-writing{background-image:repeating-linear-gradient(transparent 0 7px,#d1dad4 7px 8px)}.paper-sample.paper-writing{background-size:100% 12px}.paper-sample.paper-dots{background-image:radial-gradient(#acb9af 1px,transparent 1px);background-size:7px 7px}.paper-sample.paper-cornell{background-image:linear-gradient(90deg,transparent 25%,#acb9af 25% 27%,transparent 27%),linear-gradient(transparent 78%,#acb9af 78% 80%,transparent 80%)}.paper-sample.paper-music{background-image:repeating-linear-gradient(transparent 0 3px,#c2cdc4 3px 4px,transparent 4px 7px,#c2cdc4 7px 8px,transparent 8px 11px,#c2cdc4 11px 12px,transparent 12px 15px,#c2cdc4 15px 16px,transparent 16px 19px,#c2cdc4 19px 20px,transparent 20px 32px)}.toolbar{height:auto;min-height:62px;position:relative;overflow:visible;flex-wrap:wrap;padding:9px 18px;gap:12px;z-index:15}.tool-shelf{display:flex;align-items:center;justify-content:center;flex:1;gap:16px;min-width:0}.primary-tools,.quick-presets{display:flex;align-items:center;gap:4px}.tool-button{min-width:42px;height:44px;display:flex;align-items:center;justify-content:center;gap:1px;background:transparent;border-radius:10px}.tool-button>svg:first-child{width:22px;height:22px}.tool-button.active,.tool-button:hover{background:var(--active);color:var(--green)}.quick-presets{border-left:1px solid var(--line);padding-left:12px}.quick-presets>button{width:32px;height:40px;background:transparent;border-radius:9px;display:grid;place-items:center}.quick-presets>button.selected{background:var(--active)}.quick-presets span{display:block;border-radius:50%}.current-color span{width:18px;height:18px;background:currentColor;box-shadow:0 0 0 3px var(--surface),0 0 0 4px currentColor}.tool-popover{position:absolute;top:calc(100% + 9px);left:50%;transform:translate(-50%);width:350px;max-width:calc(100vw - 24px);max-height:min(650px,70dvh);overflow:auto;overscroll-behavior:contain;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 14px 55px #162c292b;padding:18px;color:var(--text)}.tool-popover>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:15px}.pen-types{display:grid;gap:4px}.pen-types>button{min-height:56px;display:flex;gap:12px;align-items:center;background:transparent;border-radius:10px;padding:9px 11px;text-align:left}.pen-types>button.selected,.eraser-modes button.selected,.size-choices button.selected{background:var(--active);box-shadow:inset 0 0 0 1px var(--green)}.pen-types span{flex:1}.pen-types strong{display:block;font-size:12px;font-weight:600}.pen-types small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.palette-heading{display:flex;justify-content:space-between;font-size:11px;font-weight:600;margin:20px 0 11px}.palette-heading output{color:var(--muted);font-weight:400}.tool-palette{display:flex;align-items:center;justify-content:space-between;gap:6px}.tool-palette>button{width:30px;height:30px;border-radius:50%;color:#fff;display:grid;place-items:center}.tool-palette label{margin:0}.tool-palette input{width:32px;height:32px;padding:2px;border-radius:50%}.size-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.size-choices button{min-height:56px;background:var(--bg);border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px}.size-choices span{display:block;border-radius:8px}.size-choices small{font-size:10px}.tool-popover .slider-label{font-size:11px;margin:16px 0}.tool-popover input[type=range]{padding:0;min-height:28px;width:100%;accent-color:var(--green)}.tool-popover .checkbox{line-height:1.5;font-size:11px}.eraser-modes{display:grid;grid-template-columns:1fr 1fr;gap:9px}.eraser-modes button{background:var(--bg);border-radius:12px;padding:15px 10px;display:flex;flex-direction:column;gap:8px;align-items:center;text-align:center}.eraser-modes strong{font-size:11px}.eraser-modes small,.tool-note{font-size:10px;color:var(--muted);line-height:1.5}.editor-actions button{min-height:40px}@media(max-width:1000px){.toolbar{gap:6px;justify-content:space-between}.tool-shelf{order:3;flex-basis:100%;justify-content:space-between;gap:4px;border-top:1px solid var(--line);padding-top:7px}.toolbar>.tool-group{border:0}.tool-popover{max-height:58dvh}}@media(max-width:480px){.toolbar{padding:5px 10px 7px}.tool-button{min-width:36px;height:44px}.primary-tools{gap:0}.quick-presets{padding-left:4px;gap:0}.quick-presets>button{width:28px}.quick-presets>.current-color{display:none}.editor-header{padding:8px 10px;gap:5px}.editor-actions{gap:4px}.editor-actions .compact{padding:8px 10px;min-width:40px}.editor-actions .compact span{display:none}.editor-title strong{max-width:35vw}.editor-footer{padding-left:8px;padding-right:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.paper-scroll{padding:18px 18px 40px}.paper-choices{gap:7px}.paper-choices button{font-size:9px;padding:9px 3px}.setup-preview{height:155px;gap:15px}.setup-cover{height:135px}.setup-paper{height:125px}dialog{padding:20px}.notebook-setup input,.notebook-setup select{font-size:16px}}@media(max-width:480px){.editor-body{position:relative}.page-rail{display:flex;position:absolute;inset:0 auto 0 0;width:160px;z-index:8;box-shadow:10px 0 30px #162c2926}}@media(min-width:390px)and (max-width:480px){.tool-button{min-width:44px}}
