@font-face{font-family:Karla;src:url('/fonts/karla.ttf') format('truetype');font-weight:400 700;font-display:swap}
@font-face{font-family:Alexandria;src:url('/fonts/alexandria.ttf') format('truetype');font-weight:400 700;font-display:swap}
:root{color-scheme:light;--paper:#fff;--ground:#f6f8fc;--ink:#192d49;--muted:#637086;--line:#e2e7ef;--blue:#254ff0;--blue-soft:#edf1ff;--danger:#a53536;--ease:cubic-bezier(.16,1,.3,1);font-family:Karla,Alexandria,sans-serif;color:var(--ink);background:var(--ground)}
*{box-sizing:border-box}html{scroll-behavior:smooth;height:100%}body{margin:0;min-width:300px;height:100%;font-size:16px}button,input,textarea{font:inherit}button{cursor:pointer;color:inherit;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--blue);outline-offset:4px}button{border:0;background:none}button,svg{touch-action:manipulation}button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;transition:transform .3s var(--ease)}button:hover svg{transform:translateY(-1px)}button:active svg{transform:scale(.9)}[hidden]{display:none!important}textarea,input{color:var(--ink);border:0;border-radius:0;background:transparent;appearance:none;-webkit-appearance:none;outline:none}textarea{resize:none}textarea::placeholder,input::placeholder{color:#6b7689;opacity:1}.app{max-width:780px;margin:0 auto;min-height:100dvh;height:100dvh;display:flex;flex-direction:column;background:var(--ground);position:relative}.topbar{min-height:64px;padding:10px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:12px;flex-shrink:0}.brand{display:flex;align-items:center;gap:9px;font-weight:700;font-size:18px;letter-spacing:-.035em;flex:1;min-height:38px}.mark{width:25px;height:29px;fill:none;stroke:var(--blue);stroke-width:1.7;stroke-linejoin:round}.window-actions{display:flex;gap:2px}.icon-button{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px;transition:background .22s,color .22s,transform .22s}.icon-button:hover{background:#e9eef7}.icon-button:active{transform:scale(.94)}.icon-button[aria-pressed=true]{color:var(--blue);background:var(--blue-soft)}.desktop-only,.android-only{display:none!important}.desktop .desktop-only{display:flex!important}.android .android-only{display:flex!important}.desktop .brand{-webkit-app-region:drag}.window-actions,button,input,textarea{-webkit-app-region:no-drag}main{flex:1;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#cbd4e3 transparent;padding:0 22px 18px}.notebook-head{padding-top:24px;position:sticky;top:0;background:var(--ground);z-index:2}.title-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}h1{font-size:31px;line-height:1.13;margin:0;font-weight:600;letter-spacing:-.04em}.title-dot{color:var(--blue)}#note-count{font-size:13px;color:var(--muted)}.notebook-tools{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-top:13px}.tabs{display:flex;gap:23px}.tab{position:relative;padding:13px 0;font-size:14px;color:var(--muted);transition:color .2s}.tab::after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;transform:scaleX(0);transform-origin:left;background:var(--blue);transition:transform .28s var(--ease)}.tab.active{color:var(--blue);font-weight:600}.tab.active::after{transform:scaleX(1)}.search-wrap{padding:10px 0;animation:unfold .28s var(--ease)}.search-wrap input{width:100%;padding:10px 12px;background:#eaf0f9;border-radius:9px;font-size:16px}.notes{display:flex;flex-direction:column}.note{padding:19px 0 12px;border-bottom:1px solid var(--line);animation:note-in .4s var(--ease) both;transform-origin:50% 0}.note.removing{animation:note-out .2s ease forwards}.note-meta{display:flex;align-items:center;gap:9px;font-size:11px;color:var(--muted);margin-bottom:9px;min-height:15px}.note-source{font-size:10px;text-transform:uppercase;letter-spacing:.09em}.note-source:empty{display:none}.note-pending{margin-left:auto;color:#805012;font-size:10px}.note-body{display:block;text-align:start;padding:0;width:100%;font-size:16px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;font-weight:400;user-select:text}.note-body:hover{color:#254268}.note-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;min-height:32px}.note-actions{display:flex;align-items:center;gap:0;margin-left:auto}.note-actions .icon-button{width:33px;height:33px;color:var(--muted)}.note-actions .icon-button svg{width:16px;height:16px}.note-actions .icon-button[aria-pressed=true]{color:var(--blue);background:var(--blue-soft)}.note-actions .note-trash:hover{color:var(--danger);background:#fbecec}.quiet-button{font-size:12px;padding:7px 5px;color:var(--muted);transition:color .2s}.quiet-button:hover{color:var(--blue)}.original-text{font-size:13px;line-height:1.7;color:var(--muted);background:#eaf0f8;padding:12px;margin:10px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;animation:unfold .25s var(--ease)}.note-conflict{font-size:11px;color:#805012}.note-edit{animation:unfold .25s var(--ease)}.edit-input{width:100%;min-height:120px;background:var(--paper);padding:12px;border-radius:8px;line-height:1.6;box-shadow:inset 0 0 0 1px #c8d3e4}.edit-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:10px}.small-primary{font-size:12px;background:var(--blue);color:white;border-radius:7px;padding:9px 12px;transition:transform .2s,background .2s}.small-primary:hover{background:#173ed2}.empty-state{text-align:center;display:flex;min-height:220px;flex-direction:column;align-items:center;justify-content:center;padding:28px 6px 20px}.empty-art{width:112px;height:97px;margin:0 0 18px}.empty-back{fill:#e4eafd;stroke:#d5def7;stroke-width:1.2;transform-origin:center;animation:paper-in .65s var(--ease)}.empty-sheet{fill:#fff;stroke:#b6c5e2;stroke-width:1.2}.empty-fold{fill:#edf1ff;stroke:#b6c5e2;stroke-width:1.2}.empty-line{stroke:#96a9cb;stroke-width:1.5;fill:none;stroke-dasharray:45;stroke-dashoffset:45;animation:draw .8s .15s ease forwards}.empty-signal{stroke:var(--blue);stroke-width:2.5;stroke-linecap:round;fill:none}.empty-state h2{font-size:18px;font-weight:500;letter-spacing:-.025em;margin:0 0 7px}.empty-state p{font-size:14px;color:var(--muted);margin:0}.capture{padding:0 16px max(14px,env(safe-area-inset-bottom));flex-shrink:0;background:var(--ground);position:relative;z-index:3}.sync-line{min-height:31px;padding:4px 8px;display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}.sync-mark{width:6px;height:6px;background:#537b69;transform:rotate(45deg);transition:background .25s}.sync-line[data-state=pending] .sync-mark{background:#ac7c32;animation:pulse 1.2s ease infinite}.sync-line[data-state=error] .sync-mark{background:#b04f46}.sync-line button{color:var(--blue);font-size:11px;margin-left:auto;padding:4px 8px}.composer{padding:14px;background:var(--paper);border-radius:14px;box-shadow:0 4px 22px -9px #263d6b30;transition:box-shadow .3s}.composer:focus-within{box-shadow:0 5px 24px -9px #254ff03b}.composer>textarea{width:100%;display:block;line-height:1.5;min-height:48px;max-height:150px;margin-bottom:12px;font-size:16px}.capture-actions{display:flex;gap:8px;align-items:center}.voice-button{display:flex;align-items:center;gap:9px;background:var(--blue);color:white;padding:12px 17px;border-radius:9px;min-height:46px;font-size:14px;font-weight:600;transition:background .2s,transform .25s var(--ease)}.voice-button:hover{background:#173fd7}.voice-button:active{transform:scale(.97)}#voice-icon{height:20px;display:flex;align-items:center}.voice-button svg{width:19px;height:19px}.voice-button:disabled{opacity:.6}.save-button{margin-left:auto;width:45px;height:45px;display:flex;align-items:center;justify-content:center;background:#edf1fa;color:var(--blue);border-radius:9px;transition:background .2s,opacity .2s,transform .2s}.save-button:disabled{opacity:.4}.save-button:not(:disabled):hover{background:#dfe7fc}.save-button:not(:disabled):active{transform:scale(.94)}.capture-hint{font-size:10px;display:flex;justify-content:space-between;color:var(--muted);padding:10px 5px 0;gap:8px}.voice-state{display:flex;align-items:center;gap:12px;padding:13px 0 20px;font-size:13px;color:var(--blue)}#voice-time{margin-left:auto;font-variant-numeric:tabular-nums;color:var(--muted)}.wave{height:24px;display:flex;gap:3px;align-items:center;width:61px}.wave i{display:block;width:2px;height:8px;background:var(--blue);transform:scaleY(.4);animation:wave .8s ease-in-out infinite alternate}.wave i:nth-child(3n){height:22px;animation-delay:.3s}.wave i:nth-child(3n+1){height:15px;animation-delay:.15s}.recording .voice-button{background:var(--ink)}.processing .wave i{animation:pulse 1s ease infinite}.recording-recovery{padding:12px 0 0;display:flex;gap:10px;align-items:center;font-size:11px;color:var(--muted);flex-wrap:wrap}.recording-recovery button{font-size:12px;color:var(--blue);padding:4px}.recording-recovery button:last-child{color:var(--muted)}.settings-panel{position:absolute;z-index:5;top:64px;bottom:0;left:0;right:0;background:var(--ground);padding:28px 23px;overflow:auto;animation:panel-in .32s var(--ease)}.settings-panel.closing{animation:panel-out .2s ease forwards}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:22px}.panel-heading h2{font-size:24px;letter-spacing:-.035em;font-weight:500;margin:0;max-width:240px}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 0;border-bottom:1px solid var(--line)}.setting-row strong{font-size:14px;font-weight:600}.setting-row p{font-size:12px;color:var(--muted);margin:5px 0 0;line-height:1.6}#connection-state{font-size:11px;color:var(--blue)}.switch{width:42px;height:24px;background:#c1cada;border-radius:7px;padding:3px;flex-shrink:0;transition:background .2s}.switch span{height:18px;width:17px;display:block;background:#fff;border-radius:4px;transition:transform .3s var(--ease)}.switch[aria-checked=true]{background:var(--blue)}.switch[aria-checked=true] span{transform:translateX(19px)}.shortcut-info{display:grid!important;grid-template-columns:1fr auto;gap:14px;margin:25px 0;font-size:12px;color:var(--muted)}:not(.desktop) .shortcut-info{display:none!important}kbd{font:inherit;font-size:11px;color:var(--ink)}.text-action{display:flex;justify-content:space-between;align-items:center;width:100%;padding:15px 0;font-size:14px;text-align:left;color:var(--blue);border-bottom:1px solid var(--line)}.privacy-note{font-size:11px;line-height:1.8;color:var(--muted);margin-top:27px}.version{font-size:11px;color:var(--muted)}.toast{position:fixed;bottom:210px;left:50%;transform:translateX(-50%);background:var(--ink);color:#fff;font-size:13px;padding:12px 18px;border-radius:9px;max-width:calc(100vw - 32px);width:max-content;z-index:10;box-shadow:0 8px 24px -12px #192d4960;animation:toast-in .25s var(--ease)}.toast.closing{animation:toast-out .18s ease forwards}.link-state{padding:35px 8px}.link-state h2{font-weight:500;font-size:24px}.link-state p{color:var(--muted);line-height:1.7;font-size:14px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}::selection{background:#dce5ff}::-webkit-scrollbar{width:5px}::-webkit-scrollbar-thumb{background:#cbd4e3;border-radius:3px}@media(min-width:600px){.app{max-width:680px}.topbar{padding-left:32px;padding-right:32px}main{padding-left:38px;padding-right:38px}.notebook-head{padding-top:34px}.capture{padding-left:30px;padding-right:30px;padding-bottom:20px}.empty-state{min-height:270px}.note{padding-top:22px;padding-bottom:15px}.note-body{font-size:17px}.composer{padding:18px}.settings-panel{padding:32px 38px}}@media(max-height:560px){.topbar{min-height:52px}.notebook-head{padding-top:15px}h1{font-size:25px}.capture-hint{display:none}.composer>textarea{min-height:30px;margin-bottom:6px}.composer{padding:10px}.empty-state{min-height:130px;padding:15px 0}.empty-art{width:65px;height:55px;margin-bottom:8px}.settings-panel{top:52px}}@keyframes note-in{from{opacity:0;transform:translateY(9px) scaleY(.97)}to{opacity:1;transform:none}}@keyframes note-out{to{opacity:0;transform:translateX(12px) scale(.98)}}@keyframes unfold{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}@keyframes paper-in{from{transform:rotate(-7deg) translate(-3px,4px)}to{transform:none}}@keyframes draw{to{stroke-dashoffset:0}}@keyframes wave{to{transform:scaleY(1)}}@keyframes pulse{50%{opacity:.35}}@keyframes panel-in{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}@keyframes panel-out{to{opacity:0;transform:translateX(18px)}}@keyframes toast-in{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}@keyframes toast-out{to{opacity:0;transform:translate(-50%,4px)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
