@import url('/tokens.css');
*{box-sizing:border-box}html,body{margin:0;min-height:100%;height:100%;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--canvas)}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.42}button{border:0}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button:active:not(:disabled){transform:translateY(1px)}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.app-shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100dvh}.sidebar{display:flex;flex-direction:column;border-right:1px solid var(--line);padding:34px 20px 20px;background:var(--sidebar)}.brand{display:flex;align-items:center;gap:9px;white-space:nowrap;margin:0 5px 38px;font:600 25px Georgia,serif;letter-spacing:-.9px}.brand i{color:var(--accent)}.brand small{font:600 9px -apple-system,sans-serif;letter-spacing:1.6px;color:var(--muted);margin-left:2px;align-self:center}.brand-mark{display:grid;place-items:center;background:var(--wash);width:30px;height:34px;border-radius:10px;color:var(--accent);flex-shrink:0}.brand-mark svg{width:24px;height:24px}.primary{background:var(--fill);color:white;border-radius:11px;padding:11px 18px;font-size:14px;font-weight:600;min-height:42px;box-shadow:0 3px 10px #00000008}.primary:hover:not(:disabled){filter:brightness(1.1)}.new-note{display:flex;align-items:center;gap:9px;width:100%;margin-bottom:34px;min-height:47px}.new-note>span{font-size:23px;font-weight:300}.new-note kbd{margin-left:auto;background:#ffffff20;border-radius:4px;padding:3px 5px;font-size:10px}.sidebar-label,.eyebrow{font-size:10px;font-weight:650;letter-spacing:1.8px;color:var(--muted)}.sidebar-label{margin:0 12px 12px}.collection{display:flex;gap:10px;align-items:center;text-align:left;color:var(--accent);background:var(--wash);padding:13px 12px;border-radius:10px;font-size:14px;font-weight:600;min-height:46px}.collection>span:first-child{font-size:19px}.count{margin-left:auto;font-size:11px;padding:3px 7px;border-radius:7px;background:var(--card);color:var(--accent)}.sidebar-bottom{margin-top:auto;padding-top:48px}.cloud-card{display:flex;align-items:flex-start;gap:11px;padding:18px 10px 23px;border-bottom:1px solid var(--line);margin-bottom:12px}.cloud-icon{font-size:24px;color:var(--accent)}.cloud-card strong{font-size:12px;font-weight:600}.cloud-card p{font-size:12px;color:var(--muted);line-height:1.7;margin:5px 0 0}.sidebar-button{display:flex;align-items:center;gap:10px;background:none;color:var(--muted);padding:12px 10px;font-size:12px;width:100%;text-align:left}.sidebar-button span{font-size:18px}.sidebar-button:hover{color:var(--ink)}#main-content{min-width:0;display:flex;flex-direction:column}.topbar{height:82px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:0 34px;flex-shrink:0;background:var(--card)}.breadcrumbs{display:flex;align-items:center;gap:15px;font-size:12px;color:var(--muted)}.breadcrumbs strong{color:var(--ink);font-weight:500}.top-actions{display:flex;align-items:center;gap:15px}.sync-status{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:11px;max-width:270px}.status-dot{width:6px;height:6px;background:var(--accent);border-radius:50%;display:inline-block;flex-shrink:0}.sync-status[data-state=error]{color:var(--danger)}.sync-status[data-state=busy] .status-dot{animation:pulse 1s infinite alternate}.icon-button{width:36px;height:36px;border-radius:9px;display:inline-grid;place-items:center;font-size:23px;color:var(--muted);background:transparent;flex-shrink:0}.icon-button:hover:not(:disabled){background:var(--wash);color:var(--accent)}.icon-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.danger{color:var(--danger)}.welcome{display:grid;grid-template-columns:1.1fr 1fr;gap:40px;align-items:center;flex:1;padding:80px 7%;min-height:600px;max-width:1400px;margin:auto;width:100%}.welcome .eyebrow{color:var(--accent)}.welcome h1{font:500 clamp(40px,4.3vw,68px)/1.08 Georgia,serif;letter-spacing:-2.7px;margin:24px 0}.welcome h1 em{color:var(--accent);font-weight:500}.welcome-copy>p{font-size:15px;line-height:1.85;color:var(--muted);max-width:370px}.welcome #apple-sign-in-button{margin-top:28px;min-height:12px}.connection-message{font-size:12px!important;max-width:390px}.privacy-note{display:flex;align-items:flex-start;gap:10px;margin-top:30px;max-width:350px;color:var(--muted);font-size:11px;line-height:1.7}.privacy-note svg{width:18px;height:18px;flex-shrink:0;color:var(--accent);margin-top:2px}.welcome-art{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:420px}.art-grid{position:absolute;inset:0;background:radial-gradient(circle,var(--accent) 1px,transparent 1px);background-size:20px 20px;opacity:.09;mask-image:radial-gradient(ellipse,black,transparent 70%)}.note-illustration{position:relative;width:210px;height:270px;background:var(--paper);border-radius:20px 35px 20px 20px;box-shadow:0 28px 65px #1d42261a,0 3px 8px #1d422608;transform:rotate(-8deg);padding:85px 37px 35px;border:1px solid var(--line)}.note-fold{position:absolute;top:-1px;right:-1px;width:53px;height:56px;background:var(--wash);border-radius:0 33px 0 15px;box-shadow:-3px 4px 7px #00000008}.illustration-line{height:8px;width:90px;display:block;background:var(--accent);opacity:.35;border-radius:8px;margin-bottom:13px}.illustration-line.long{width:128px}.illustration-wave{height:66px;display:flex;align-items:center;justify-content:center;gap:9px;margin-top:25px}.illustration-wave i{display:block;width:10px;border-radius:8px;background:var(--accent);height:22px}.illustration-wave i:nth-child(2),.illustration-wave i:nth-child(4){height:42px}.illustration-wave i:nth-child(3){height:62px}.art-label{z-index:1;margin-top:40px;border:1px solid var(--line);background:var(--card);box-shadow:0 4px 12px #00000004;padding:10px 15px;border-radius:30px;font-size:11px;color:var(--muted);display:flex;align-items:center;gap:8px;transform:rotate(3deg)}.workspace{display:grid;grid-template-columns:328px minmax(0,1fr);flex:1;min-height:0}.notes-panel{border-right:1px solid var(--line);background:var(--list);display:flex;flex-direction:column;min-width:0}.list-header{padding:30px 22px 22px}.list-header .eyebrow{font-size:9px;letter-spacing:1.5px}.list-header h1{font:500 25px Georgia,serif;letter-spacing:-.7px;display:flex;align-items:center;gap:9px;margin:10px 0 22px}.list-header h1 span{font:500 11px -apple-system,sans-serif;padding:4px 7px;border:1px solid var(--line);border-radius:6px;color:var(--muted)}.search{display:flex;align-items:center;gap:8px;padding:9px 11px;background:var(--card);border:1px solid var(--line);border-radius:9px}.search svg{width:15px;height:15px;fill:none;stroke:var(--muted);stroke-width:1.6;flex-shrink:0}.search input{width:100%;font-size:12px;background:transparent;color:var(--ink);border:0;outline:0!important;padding:2px 0}.search:focus-within{outline:2px solid var(--focus);outline-offset:1px}.notes-list{padding:0 12px 22px;overflow-y:auto;max-height:calc(100dvh - 260px)}.note-item{width:100%;display:block;text-align:left;padding:18px 14px;background:transparent;color:var(--ink);border-radius:11px;margin:0 0 6px;border:1px solid transparent;position:relative}.note-item:hover{background:var(--wash)}.note-item.selected{background:var(--card);border-color:var(--line);box-shadow:0 3px 12px #00000003}.note-item.selected:before{content:"";position:absolute;left:-1px;top:20px;bottom:20px;width:3px;background:var(--accent);border-radius:4px}.note-item h2{font:600 17px Georgia,serif;margin:0 0 8px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.note-item p{font-size:12px;line-height:1.6;margin:0;color:var(--muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.note-item time{display:block;margin-top:12px;font-size:10px;color:var(--muted)}.editor-panel{background:var(--card);min-width:0}.editor-panel form{display:flex;flex-direction:column;min-height:calc(100dvh - 82px);height:100%}.editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:22px 32px;border-bottom:1px solid var(--line);min-height:85px}.editor-state{font-size:11px;color:var(--muted)}.editor-state[data-dirty=true]{color:var(--accent)}.editor-actions{display:flex;align-items:center;gap:10px}.writing-area{padding:30px 40px 20px;display:flex;flex:1;flex-direction:column;min-height:350px}.writing-area input{width:100%;border:0;background:none;color:var(--ink);font:500 clamp(26px,2.4vw,38px)/1.25 Georgia,serif;letter-spacing:-1px;padding:5px 0 22px}.writing-area textarea{width:100%;min-height:330px;flex:1;resize:vertical;background:none;border:0;color:var(--ink);font-size:15px;line-height:1.95;padding:0}.writing-area input::placeholder,.writing-area textarea::placeholder{color:var(--placeholder)}.writing-area input:focus,.writing-area textarea:focus{outline:0!important}.editor-footer{display:flex;justify-content:space-between;gap:16px;padding:18px 35px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}.editor-empty{height:100%;min-height:500px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:40px;text-align:center}.empty-symbol{display:grid;place-items:center;width:70px;height:70px;border-radius:23px;background:var(--wash);color:var(--accent);font-size:33px;margin-bottom:24px}.editor-empty h2{font:500 29px Georgia,serif;letter-spacing:-.7px;margin:0 0 12px}.editor-empty p{font-size:13px;line-height:1.8;color:var(--muted);max-width:270px}.text-button{color:var(--accent);font-size:13px;background:none;padding:10px 0}.editor-empty .text-button{margin-top:12px}.list-empty{padding:35px 25px;text-align:center;color:var(--muted)}.list-empty>span{display:block;font-size:28px;color:var(--accent);margin-bottom:16px}.list-empty strong{font:500 19px Georgia,serif;color:var(--ink)}.list-empty p{font-size:12px;line-height:1.7}.secondary{padding:11px 16px;border:1px solid var(--line);border-radius:10px;background:var(--card);color:var(--ink);font-size:13px;min-height:42px}dialog{border:1px solid var(--line);border-radius:22px;background:var(--card);color:var(--ink);padding:30px;max-width:440px;width:calc(100% - 40px);box-shadow:0 25px 90px #0002}dialog::backdrop{background:#17231c50;backdrop-filter:blur(4px)}dialog h2{font:500 28px Georgia,serif;letter-spacing:-.7px;margin:16px 0 12px}dialog p{color:var(--muted);font-size:13px;line-height:1.8}.dialog-icon{display:grid;place-items:center;width:44px;height:44px;color:var(--accent);background:var(--wash);border-radius:13px;font-size:25px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}.dialog-heading{display:flex;justify-content:space-between;align-items:center}.dialog-heading h2{margin-bottom:0}.dialog-heading .eyebrow{font-size:9px}.palette-options{border:0;margin:24px 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.palette-choice{position:relative;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 8px;border:1px solid var(--line);border-radius:12px;font-size:11px}.palette-choice:has(input:checked){border-color:var(--accent);background:var(--wash)}.palette-choice input{position:absolute;opacity:0;width:100%;height:100%;inset:0;margin:0;cursor:pointer}.palette-choice:has(input:focus-visible){outline:3px solid var(--focus)}.swatch{width:27px;height:27px;border-radius:50%;background:var(--swatch)}.appearance-label{display:flex;align-items:center;justify-content:space-between;font-size:13px;border-top:1px solid var(--line);padding-top:20px}.appearance-label select{padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--canvas);color:var(--ink);font-size:12px}.settings-footnote{font-size:11px!important;margin:20px 0 0}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:min(600px,calc(100% - 32px));padding:14px 20px;background:var(--ink);color:var(--card);font-size:13px;line-height:1.6;border-radius:12px;box-shadow:0 8px 35px #0002;z-index:10}.toast[data-error=true]{background:var(--danger);color:white}.back-button{display:none}.muted{color:var(--muted)}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}#apple-sign-out-button{padding:8px 10px}#test-banner{padding:8px;background:#fcdf9c;color:#513904;text-align:center;font-size:12px}@keyframes pulse{to{opacity:.35}}@media(min-width:1500px){.sidebar{padding-top:40px}.app-shell{grid-template-columns:260px 1fr}.workspace{grid-template-columns:360px 1fr}.writing-area{padding:45px 65px}.topbar{padding-inline:45px}}@media(max-width:1100px){.app-shell{grid-template-columns:200px 1fr}.sidebar{padding-inline:15px}.brand{font-size:23px;gap:6px}.brand small{display:none}.workspace{grid-template-columns:285px 1fr}.editor-toolbar{padding-inline:22px}.writing-area{padding-inline:25px}.welcome{padding:55px 6%;gap:10px}.note-illustration{width:175px;height:240px;padding:73px 25px 25px}.illustration-line.long{width:120px}.welcome h1{font-size:48px}.topbar{padding-inline:24px}}@media(max-width:850px){.app-shell{grid-template-columns:1fr}.sidebar{flex-direction:row;align-items:center;padding:16px 22px;border-right:0;border-bottom:1px solid var(--line);gap:20px}.brand{margin:0;font-size:25px}.sidebar-label,.collection,.cloud-card{display:none}.sidebar-bottom{margin:0 0 0 auto;padding:0;display:flex;align-items:center}.sidebar-button{font-size:0;width:36px;padding:4px}.sidebar-button span{font-size:21px}.new-note{margin:0 0 0 auto;width:auto;min-height:39px;font-size:12px;padding:6px 12px}.new-note kbd{display:none}.sidebar-bottom{margin-left:0}#apple-sign-out-button{padding:0 0 0 10px}.topbar{height:62px}.breadcrumbs{font-size:11px}.breadcrumbs>span{display:none}.workspace{grid-template-columns:285px 1fr}.editor-panel form{min-height:calc(100dvh - 136px)}.editor-toolbar{min-height:72px;padding:15px 18px}.editor-state{font-size:10px}.editor-actions{gap:4px}.editor-actions .primary{font-size:12px;padding:8px 12px}.welcome{min-height:600px;padding:55px 8%;gap:30px}.welcome h1{font-size:49px}.welcome-art{min-height:330px}.note-illustration{width:165px;height:220px;padding:65px 23px 25px}.illustration-wave{margin-top:15px}.welcome-copy>p{font-size:14px}}@media(max-width:620px){.sidebar{padding:14px 18px;gap:12px}.brand{font-size:24px}.brand-mark{width:27px;height:30px}.new-note{font-size:0;padding:5px 10px;min-width:38px}.new-note>span{font-size:23px}.sidebar-bottom{gap:0}#apple-sign-out-button{padding:0 0 0 6px}.topbar{padding-inline:20px;height:56px}.sync-status{font-size:10px;max-width:200px}.top-actions{gap:5px}.workspace{display:block;min-height:calc(100dvh - 129px)}.notes-panel{border-right:0}.list-header{padding:28px 22px 20px}.notes-list{max-height:none;padding:0 14px 24px}.note-item{padding:18px 16px}.editor-panel{display:none}.workspace.show-editor .notes-panel{display:none}.workspace.show-editor .editor-panel{display:block}.editor-panel form{min-height:calc(100dvh - 129px)}.editor-empty{min-height:400px}.writing-area{padding:26px 24px}.writing-area textarea{min-height:360px;font-size:16px}.writing-area input{font-size:31px}.back-button{display:block}.editor-toolbar{gap:8px;padding-inline:20px}.editor-state{display:none}.editor-footer{padding-inline:24px}.welcome{grid-template-columns:1fr;padding:54px 28px 35px;min-height:0;gap:30px;align-items:start}.welcome-copy{z-index:1}.welcome h1{font-size:52px;margin-top:22px}.welcome-copy>p{max-width:360px}.welcome-art{min-height:270px}.note-illustration{width:150px;height:190px;padding:60px 22px 22px;transform:rotate(-8deg);border-radius:16px 30px 16px 16px}.note-fold{width:42px;height:44px}.illustration-line{height:6px;width:75px;margin-bottom:10px}.illustration-line.long{width:105px}.illustration-wave{height:42px;gap:7px;margin-top:13px}.illustration-wave i{width:8px;height:15px}.illustration-wave i:nth-child(2),.illustration-wave i:nth-child(4){height:28px}.illustration-wave i:nth-child(3){height:42px}.art-label{margin-top:28px}.privacy-note{margin-top:22px}.dialog-actions{flex-wrap:wrap}.dialog-actions button{flex:1}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}}
#test-banner{position:sticky;top:0;z-index:20}
.apple-auth-button:focus-visible{outline:3px solid var(--focus);outline-offset:4px;border-radius:6px}
