:root{color-scheme:light;--bg:#f4f3eb;--sheet:#fffef8;--ink:#242f28;--muted:#5d6961;--line:#d5d9ce;--brand:#245849;--on:#fff;--papel:#fcfbf5;--salvia:#dfebd8;--areia:#f4e5be;--lavanda:#e6dff3;--azul:#dbeaf1;--rosa:#f1dfda;font:16px/1.5 "DM Sans",system-ui,sans-serif}
:root[data-theme=dark]{color-scheme:dark;--bg:#222a26;--sheet:#2a342e;--ink:#f3f2e8;--muted:#bcc7bb;--line:#48544c;--brand:#b3d8ae;--on:#20392c;--papel:#333c36;--salvia:#364c39;--areia:#514932;--lavanda:#494254;--azul:#344b54;--rosa:#54413e}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}[hidden]{display:none!important}button,input,textarea,select{font:inherit;color:inherit}button{cursor:pointer;background:var(--sheet);border:1px solid var(--line);border-radius:12px;padding:.55rem 1rem;font-weight:600}button:hover{filter:brightness(.95)}:focus-visible{outline:3px solid #779d90;outline-offset:3px}button.primary{background:var(--brand);color:var(--on);border:0;padding:.8rem 1.25rem}button:disabled{opacity:.6;cursor:wait}input:not([type=checkbox]),textarea,select{width:100%;padding:.75rem .9rem;border:1px solid var(--line);background:var(--sheet);border-radius:10px}textarea{resize:vertical}label{display:block;font-size:.9rem;font-weight:600}label input,label textarea,label select{margin-top:.35rem}form>label,dialog>label{margin:.9rem 0}h1,h2,h3,p{margin:0}h1,h2{font-family:Georgia,serif;font-weight:normal;letter-spacing:-.045em;line-height:1.1}h2{font-size:2rem}h1 em{font-weight:400}.brand{display:flex;align-items:center;gap:.6rem;font:700 1.7rem Georgia,serif;letter-spacing:-.06em}.brand img{width:39px;border-radius:12px}
#login{width:min(820px,92%);margin:max(6vh,30px) auto;min-height:460px;display:grid;grid-template-columns:1fr 1fr;background:var(--sheet);border-radius:28px;border:1px solid var(--line);overflow:hidden}.cover{position:relative;background:#245849;color:#f8f4d9;padding:30px;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.cover h1{font-size:clamp(3rem,6vw,5rem);z-index:1}.notebook{position:absolute;width:140px;height:155px;top:64px;right:28px;transform:rotate(16deg);border-radius:6px 18px 18px 6px;background:repeating-linear-gradient(0deg,#dfd99a 0 1px,#e8e5ac 1px 21px);box-shadow:8px 7px #b6c794,15px 13px #608d77; border-left:14px solid #b4c18b}.notebook i{display:block;width:18px;height:7px;background:#183e36;margin:26px 0 0 -20px;border-radius:5px}.auth{align-self:center;padding:clamp(22px,4vw,50px)}.auth h2{margin-bottom:1.8rem}.auth button{width:100%;display:flex;justify-content:space-between}.auth b{font-size:1.15rem}#desk{max-width:1250px;margin:auto;padding:0 clamp(18px,4vw,56px) 32px}header,.mast,.toolbar,.row,.options,.actions,nav,#colors{display:flex;align-items:center;gap:.6rem}header,.mast,.toolbar,.row{justify-content:space-between}header{height:78px;border-bottom:1px solid var(--line)}.mast{padding:clamp(25px,5vw,60px) 0 26px}.mast h1{font-size:clamp(2.5rem,6vw,4.8rem)}#count,.date,#status,.empty{color:var(--muted)}#count{font-size:.85rem}.toolbar{flex-wrap:wrap;margin-bottom:16px}.toolbar input{width:min(100%,300px)}nav{padding:4px;background:var(--line);border-radius:14px}nav button{border:0;background:transparent}nav [aria-pressed=true]{background:var(--sheet)}#grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(260px,100%),1fr));gap:15px}.card{border-radius:20px;padding:20px;background:var(--card);text-align:left;min-height:172px;display:flex;flex-direction:column;align-items:stretch;gap:8px;color:var(--ink);font-weight:400;overflow:hidden}.card strong{font:600 1.25rem/1.2 Georgia,serif}.excerpt,.card strong{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}.card strong{-webkit-line-clamp:2}.date{margin-top:auto;padding-top:12px;font-size:.75rem}.empty{border:1px dashed var(--line);border-radius:18px;text-align:center;padding:50px 18px}.empty:empty,p:empty{display:none}dialog{width:min(520px,94vw);max-height:92dvh;background:var(--bg);color:var(--ink);border:1px solid var(--line);border-radius:22px;padding:24px}dialog::backdrop{background:#14271fd1}.close{padding:.15rem .65rem;font-size:1.4rem}.options{margin-top:12px;gap:20px}.options label{display:flex;align-items:center;gap:4px}.options input{margin:0}#colors button{width:32px;height:32px;padding:0;border-radius:50%;background:var(--card)}#colors [aria-pressed=true]{outline:2px solid var(--ink);outline-offset:1px}.danger{color:#ab4f46}.row:last-child{margin-top:16px}.row .primary{margin-left:auto}[role=alert]:not(:empty),#status:not(:empty){margin:.7rem 0;font-weight:600}#pwForm{margin-top:20px;border-top:1px solid var(--line);padding-top:15px}
@media(max-width:620px){#login{grid-template-columns:1fr}.cover{min-height:210px}.cover h1{font-size:3rem}.notebook{transform:rotate(16deg) scale(.7);transform-origin:top right;right:30px;top:45px}.toolbar input{width:100%}.auth{padding:28px}.mast{gap:6px}.mast button{padding:.7rem}.mast h1{font-size:2.5rem}header{height:66px}}
