:root{color-scheme:light;font-family:Inter,"Segoe UI",system-ui,sans-serif;color:#202b24;background:#f3f5f1;font-synthesis:none;--ink:#202b24;--muted:#526059;--line:#dfe5dc;--green:#23684f;--soft:#e3f1e8;--surface:#fff;--workspace:#f1f4ef;--side:218px}
*{box-sizing:border-box}body{margin:0;min-width:320px;height:100vh;height:100dvh;display:grid;grid-template-rows:72px 55px minmax(0,1fr) 46px}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:2px solid #25825d;outline-offset:3px}[hidden]{display:none!important}i[data-icon]{display:inline-flex;width:19px;height:19px;flex:none;align-items:center;justify-content:center}i[data-icon] svg{width:100%;height:100%}
.topbar,.toolbar,.statusbar{display:flex;align-items:center;background:var(--surface);min-width:0}.topbar{padding:0 27px;gap:26px;border-bottom:1px solid var(--line);position:relative;z-index:2}.brand{display:flex;align-items:center;gap:11px;flex:none}.brand h1{font-size:22px;letter-spacing:-.85px;line-height:1.06;margin:0;font-weight:750}.brand h1 span{color:#3f9170}.brand p{font-size:8.5px;font-weight:750;letter-spacing:1.85px;color:#65736b;margin:5px 0 0}.header-actions{display:flex;gap:9px;align-items:center;margin-left:auto;flex:none}.file-name{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);min-width:0;border-left:1px solid var(--line);padding-left:22px}.file-name span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.file-name i{width:16px;height:16px}
.button,.tool,.icon-button,.link-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:8px;border:1px solid transparent;background:none;color:var(--ink);white-space:nowrap;font-size:13px;font-weight:650;line-height:1}.button{height:38px;padding:0 13px}.button i{width:17px;height:17px}.button.quiet{border-color:#dce3db;background:#fff}.button.quiet:hover:not(:disabled),.button.small:hover,.icon-button:hover:not(:disabled),.tool:hover:not(:disabled){background:#eef3ed}.button.primary{background:var(--green);border-color:var(--green);color:#fff;box-shadow:0 1px 2px #183b2721}.button.primary:hover:not(:disabled){background:#19553f}.button.primary:disabled{background:#e4ede6;border-color:#dce7df;color:#455a4d;opacity:1;box-shadow:none}.icon-button{width:34px;height:34px;padding:0;color:#526158;flex:none}.icon-button.danger:hover:not(:disabled){color:#a83232;background:#fceeee}.link-button{color:var(--green);padding:8px 6px}.link-button:hover{text-decoration:underline}.link-button i{width:15px;height:15px}
.toolbar{padding:0 20px;border-bottom:1px solid var(--line);gap:8px;position:relative;z-index:1}.tools,.history{display:flex;align-items:center;gap:5px}.tools{overflow-x:auto;padding:5px 4px;scrollbar-width:thin}.tool{height:36px;padding:0 10px;color:#3b4940}.tool.active{color:#205c46;background:var(--soft);border-color:#d6e9dd}.tool i{width:17px;height:17px}.divider{width:1px;height:23px;background:var(--line);margin:0 4px;flex:none}.history{margin-left:auto}
.workspace{display:grid;grid-template-columns:var(--side) minmax(0,1fr);min-height:0;position:relative}.workspace.sidebar-closed{grid-template-columns:minmax(0,1fr)}.sidebar{background:#fbfcfa;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;min-width:0}.sidebar-title{display:flex;align-items:center;justify-content:space-between;padding:19px 19px 14px}.sidebar-title h2{margin:0;font-size:13px;font-weight:750}.count{padding:3px 7px;border-radius:6px;background:#eef2ed;color:#536158;font-size:11px;font-weight:650}.sidebar-empty{text-align:center;padding:31px 9px 12px;color:var(--muted)}.sidebar-empty i{width:29px;height:29px;color:#8ca094}.sidebar-empty p{font-size:13px;margin:10px 0 4px;font-weight:650}.sidebar-empty small{font-size:11px}.page-list{display:grid;grid-template-columns:minmax(0,1fr);align-content:start;gap:6px;overflow-y:auto;min-height:0;padding:0 12px 8px;scrollbar-width:thin}.page-list:empty{display:none}.thumb{display:grid;justify-items:center;gap:8px;padding:10px 5px 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:#43544a;font-size:11px;font-weight:700}.thumb:hover{background:#f0f4ee}.thumb[aria-current=true]{background:#e8f2eb;border-color:#bed9c8;color:#235b45}.thumb-preview{height:104px;width:110px;display:grid;place-items:center}.thumb-preview canvas{max-width:100%;max-height:100%;background:white;box-shadow:0 1px 4px #21392830;border:1px solid #e0e5de}.page-actions{margin-top:auto;padding:10px 12px 13px;border-top:1px solid var(--line);background:#fbfcfa}.page-action-row{display:flex;justify-content:space-between;gap:1px;margin-bottom:7px}.add-page{height:34px;border-color:#d9e3da;width:100%;font-size:12px;background:white}.add-page:hover{background:#edf4ee}
.workspace-main{position:relative;min-height:0;min-width:0;display:flex;flex-direction:column;background-color:var(--workspace);background-image:radial-gradient(#bdcabf 0.7px,transparent 0.7px);background-size:19px 19px}.context-bar{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:41px;padding:3px 17px;background:#f9fbf8;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted);z-index:1}.tool-options{display:flex;align-items:center;gap:12px;flex:none}.option{display:flex;align-items:center;gap:6px;font-weight:650}.option input{width:25px;height:25px;padding:1px;border:1px solid #c6d2c8;border-radius:5px;background:white;cursor:pointer}.option select{background:white;border:1px solid #c6d2c8;border-radius:5px;height:26px;padding:0 3px}.button.small{height:27px;padding:0 8px;border:1px solid var(--line);font-size:11px}.stage{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;outline-offset:-3px!important}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100%;gap:20px;padding:29px 24px}.empty-card{width:min(100%,500px);text-align:center;display:flex;flex-direction:column;align-items:center;background:#fbfdfa;border:1px dashed #a7bfb0;border-radius:17px;padding:29px 24px 24px;box-shadow:0 5px 25px #29473409}.illustration{height:112px;margin-bottom:11px}.eyebrow{font-size:10px;font-weight:800;color:#276b51;letter-spacing:1.95px}.empty-card h2{font-size:clamp(25px,3.2vw,38px);line-height:1.12;letter-spacing:-.045em;margin:10px 0 10px;font-weight:750}.empty-card p{color:#526259;line-height:1.6;font-size:14px;margin:0 0 22px}.choose{height:43px;padding:0 17px}.empty-card .link-button{margin-top:11px}.privacy-note{display:flex;align-items:center;gap:7px;margin:0;color:#506156;font-size:12px;font-weight:600}.privacy-note i{width:15px;height:15px;color:#34775e}
.paper-wrap{width:max-content;min-width:100%;padding:22px 24px 13px;display:grid;justify-items:center;gap:10px}.paper{position:relative;background:white;box-shadow:0 3px 19px #24423126;outline:1px solid #d4ded3}.paper canvas{display:block;width:100%;height:100%}.paper svg{position:absolute;inset:0;width:100%;height:100%;touch-action:none;user-select:none;overflow:hidden;cursor:default}.paper svg[data-tool]:not([data-tool=select]){cursor:crosshair}.paper svg[data-tool=text]{cursor:text}.paper svg[data-tool=select] [data-mark]{cursor:move}.sheet-label{font-size:11px;font-weight:650;color:var(--muted);padding:3px 8px;border-radius:5px;background:#f7f9f5;white-space:nowrap}.drop-indicator{display:grid;place-content:center;justify-items:center;gap:12px;position:absolute;inset:12px;z-index:4;border:2px dashed #4d9977;border-radius:16px;background:#e4f2eaf2;color:#195c42;font-weight:700;pointer-events:none}.drop-indicator i{width:32px;height:32px}.notice{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 28px);background:#243a2e;color:white;border-radius:9px;padding:11px 15px;font-size:13px;line-height:1.45;box-shadow:0 4px 18px #21332826;z-index:5}.notice[data-error=true]{background:#763934}
.statusbar{justify-content:space-between;border-top:1px solid var(--line);padding:0 18px;gap:8px;z-index:1;font-size:12px;color:#4b5c51}.local,.pagination,.zoom{display:flex;align-items:center;gap:7px}.local{min-width:165px;font-weight:650}.local span{width:7px;height:7px;border-radius:50%;background:#4e9b74;box-shadow:0 0 0 3px #e3f0e7}.statusbar .icon-button{width:29px;height:29px}.statusbar i{width:16px;height:16px}.zoom output{min-width:40px;text-align:center;font-variant-numeric:tabular-nums}.pagination span{white-space:nowrap;text-align:center;min-width:102px}
dialog{width:min(430px,calc(100% - 32px));border:1px solid #d6e4d9;border-radius:15px;background:white;color:var(--ink);padding:22px;box-shadow:0 18px 50px #112d2450}dialog::backdrop{background:#162e2660}dialog h2{margin:0 0 15px;font-size:20px;letter-spacing:-.3px}dialog p,dialog label{font-size:13px;color:var(--muted);line-height:1.5}dialog textarea{display:block;width:100%;margin-top:6px;padding:9px;border:1px solid #b9cbbf;border-radius:7px;resize:vertical}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:17px}.form-error{color:#993630}
@media(max-width:900px){:root{--side:170px}.topbar{padding-inline:17px}.toolbar{padding-inline:12px}.local{min-width:auto}.sidebar-title{padding-inline:14px}.sidebar-empty{padding-inline:5px}.thumb-preview{height:87px;width:85px}}
@media(max-width:700px){:root{--side:140px}body{grid-template-rows:63px 51px minmax(0,1fr) 43px}.topbar{gap:10px}.brand h1{font-size:19px}.brand p{letter-spacing:1.4px}.brand img{width:33px;height:33px}.file-name{display:none}.tools,.history{gap:2px}.tool{padding:0 7px}.toolbar{padding-inline:7px;gap:2px}.divider{margin-inline:2px}.desktop-label{display:none}.statusbar{padding-inline:8px}.pagination span{min-width:auto}.paper-wrap{padding:16px 14px 10px}.page-actions{padding-inline:4px}.page-action-row .icon-button{width:29px}}
@media(max-width:540px){.workspace,.workspace.sidebar-closed{grid-template-columns:minmax(0,1fr)}.sidebar{position:absolute;inset:0 auto 0 0;width:var(--side);z-index:3;box-shadow:6px 0 20px #1b382218}.topbar{padding-inline:11px}.header-actions{gap:5px}.header-actions .button{padding-inline:8px;font-size:12px}.brand{gap:7px}.brand p{font-size:7px}.tool span{display:none}.tool{width:33px}.tools{gap:1px}.icon-button{width:30px}.toolbar .divider{margin-inline:1px}.local{font-size:0;gap:0;padding-left:6px}.statusbar{font-size:11px}.pagination,.zoom{gap:3px}.zoom output{min-width:32px}.empty{padding:18px 15px;gap:14px}.empty-card{padding:20px 15px 17px}.context-bar{padding-inline:8px;font-size:11px}.tool-options{gap:5px}.option{gap:3px}}
@media(max-height:590px){.empty-card{padding-block:14px}.illustration{height:77px;margin-bottom:6px}.illustration svg{height:80px}.empty-card p{margin-bottom:12px}}
.thumb-sheet{display:block;position:relative;max-height:100%;max-width:100%;background:white;box-shadow:0 1px 4px #21392830;outline:1px solid #e0e5de}.thumb-sheet canvas,.thumb-sheet svg{display:block;position:absolute;inset:0;width:100%;height:100%;border:0;box-shadow:none}.thumb-sheet svg{pointer-events:none}
