/* Personal paper notes: colors and textures are CSS, with no image downloads. */
.memo-color-butter{--memo-paper:#fcf1c9;--memo-edge:#dfd099;--memo-rule:#a38a2d25;--memo-accent:#786730}
.memo-color-rose{--memo-paper:#f8e0e1;--memo-edge:#dab4bc;--memo-rule:#a96c7725;--memo-accent:#865861}
.memo-color-sage{--memo-paper:#e1eddc;--memo-edge:#b9cfb2;--memo-rule:#72976525;--memo-accent:#58734b}
.memo-color-sky{--memo-paper:#e0edf4;--memo-edge:#b6cedc;--memo-rule:#638ba025;--memo-accent:#4f758a}
.memo-color-lavender{--memo-paper:#ebe4f5;--memo-edge:#c9bbdd;--memo-rule:#8b76aa25;--memo-accent:#74618d}
.memo-color-peach{--memo-paper:#f9e4d1;--memo-edge:#e0bf9f;--memo-rule:#b4815125;--memo-accent:#986b42}
.memo-page-header{margin-bottom:25px}
.memo-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:172px;padding:29px 36px;margin-bottom:28px;border:1px solid #e7e6da;border-radius:15px;background:linear-gradient(115deg,#f0f2e8,#f7f0e3);overflow:hidden}
.memo-intro h2{font:400 clamp(21px,2vw,27px)/1.6 var(--serif);letter-spacing:.04em;color:#55654b}
.memo-intro p{display:flex;align-items:center;gap:7px;font-size:12px;color:#7c8971;margin:9px 0 11px}
.memo-intro p svg{width:13px;height:13px}
.memo-intro-total{font-size:11px;color:#8b927e;letter-spacing:.04em}
.memo-paper-stack{width:148px;height:112px;position:relative;flex-shrink:0;margin-right:17px}
.memo-paper-stack i{display:block;position:absolute;width:106px;height:104px;border-radius:2px 2px 12px 2px;box-shadow:2px 5px 9px #776c5016;font-style:normal;border:1px solid #00000007}
.memo-stack-back{background:#e4eadd;transform:rotate(-13deg);left:0;top:5px}
.memo-stack-middle{background:#ecdfe3;transform:rotate(11deg);left:27px;top:0}
.memo-paper-stack .memo-stack-front{background:#f7e9b7;transform:rotate(-3deg);left:16px;top:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#8a7950}
.memo-stack-front:before{content:"";position:absolute;top:-7px;left:32px;width:43px;height:17px;background:#fbfaf189;transform:rotate(4deg);border:1px solid #ffffff55}
.memo-stack-front svg{width:25px;height:25px;stroke-width:1.2}.memo-stack-front span{font:16px var(--serif)}
.memo-board-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:23px}
.memo-tabs{display:flex;flex-wrap:wrap;gap:7px}
.memo-tabs>button{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;min-height:40px;border:1px solid transparent;border-radius:7px;font-size:12px;color:#7c8777}
.memo-tabs>button svg{width:15px;height:15px}.memo-tabs>button:hover{background:#eef1e9}.memo-tabs>button.active{background:#eaf0e5;border-color:#d6e1cc;color:#476842;font-weight:600}
.memo-tab-count{font-size:10px;min-width:18px;color:#8e9d84;background:#ffffff80;border-radius:3px;padding:0 4px;text-align:center}
.memo-color-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.memo-all-colors{font-size:11px;color:#8b9585;padding:5px 2px;margin-right:3px}.memo-all-colors.active{color:#52734c}
.memo-swatch{width:25px;height:25px;border-radius:50%;background:var(--memo-paper);border:1px solid var(--memo-edge);padding:4px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--memo-accent);position:relative}
.memo-swatch svg{width:15px;height:15px;opacity:0;stroke-width:2}.memo-swatch.selected{outline:2px solid var(--memo-accent);outline-offset:3px}.memo-swatch.selected svg{opacity:1}
.memo-toolbar .search{width:280px}.memo-toolbar{margin-bottom:20px}
.memo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));gap:25px;align-items:stretch;padding:3px 1px 12px}
.memo-paper{background-color:var(--memo-paper);color:#41473a;position:relative;isolation:isolate}
.memo-card{min-width:0;min-height:266px;display:flex;flex-direction:column;padding:14px 22px 13px;border-radius:3px 3px 14px 3px;box-shadow:0 5px 12px #726b4510,1px 1px 0 #574a2010;transition:transform .18s,box-shadow .18s;border:1px solid #554b2410}
.memo-card:hover{transform:translateY(-3px);box-shadow:0 9px 22px #726b4520}.memo-card:focus-within{outline:2px solid var(--memo-accent);outline-offset:3px}
.memo-style-sticky:after{content:"";position:absolute;bottom:0;right:0;width:23px;height:23px;background:linear-gradient(135deg,#ffffff66 0 48%,var(--memo-edge) 50%);border-radius:3px 0 13px 0;opacity:.63;z-index:-1}
.memo-style-lined{background-image:repeating-linear-gradient(transparent 0 29px,var(--memo-rule) 29px 30px);background-position:0 14px}
.memo-style-grid{background-image:linear-gradient(var(--memo-rule) 1px,transparent 1px),linear-gradient(90deg,var(--memo-rule) 1px,transparent 1px);background-size:21px 21px}
.memo-style-tape{border-radius:2px;box-shadow:0 5px 12px #726b4518}.memo-style-tape:before{content:"";position:absolute;top:-9px;left:calc(50% - 31px);width:62px;height:23px;background:#fffdf099;border:1px solid #fffdf06b;box-shadow:0 1px 2px #63552909;transform:rotate(-3deg);z-index:1;pointer-events:none}
.memo-card-top{display:flex;align-items:center;justify-content:space-between;min-height:27px;margin-bottom:5px;gap:12px}
.memo-pinned-label{display:inline-flex;align-items:center;gap:5px;font-size:10px;letter-spacing:.02em;color:var(--memo-accent)}.memo-pinned-label svg{width:11px;height:11px}
.memo-pin{width:28px;height:28px;color:var(--memo-accent);opacity:.65}.memo-pin svg{width:16px;height:16px}.memo-pin.active{opacity:1;background:#ffffff55}.memo-pin:hover{background:#ffffff60;color:var(--memo-accent);opacity:1}
.memo-card-body{display:block;padding:0;text-align:left;width:100%;min-width:0;flex:1;outline-offset:6px!important}
.memo-card-body h2{font:600 18px/1.55 var(--sans);overflow-wrap:anywhere;margin:0 0 13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.memo-card-text{font-size:14px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:7;-webkit-box-orient:vertical;overflow:hidden;min-height:82px;max-height:191px;color:#555c4f}
.memo-card-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-top:16px;margin-top:10px;min-height:38px;border-top:1px solid #6a704714}
.memo-paper-label{font-size:10px;color:var(--memo-accent);opacity:.77}
.memo-card-actions{display:flex;gap:3px;margin-right:7px}.memo-card-actions .icon-button{width:29px;height:29px;color:var(--memo-accent);opacity:.7}.memo-card-actions .icon-button svg{width:15px;height:15px}.memo-card-actions .icon-button:hover{background:#ffffff60;opacity:1}
.memo-card.is-deleted{filter:saturate(.65)}.memo-card-footer>.btn{font-size:11px;min-height:29px;padding:3px 7px;color:var(--memo-accent)}.memo-card-footer>.btn svg{width:14px;height:14px}
.memo-new-tile{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;min-height:266px;padding:25px 20px;border:1px dashed #cdd7c3;border-radius:9px;color:#637a56;background:#f1f4eb88;text-align:center;transition:background .18s,border-color .18s}
.memo-new-tile:hover{background:#ebf0e3;border-color:#9dae8e}.memo-new-symbol{width:45px;height:45px;display:grid;place-items:center;border:1px solid #d5dec9;background:#eaf0e0;border-radius:50%;color:#849871}.memo-new-symbol svg{width:21px;height:21px;stroke-width:1.3}.memo-new-tile strong{font-size:16px;font-weight:500}.memo-new-tile>span:last-child{font-size:12px;color:#8c9981;line-height:1.9;white-space:pre-line}
.modal.memo-editor-dialog{max-width:920px}.memo-editor-dialog .modal-body{padding:30px}.memo-editor-dialog .modal-header{border-color:#e4e7dc}
.memo-editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 185px;gap:27px;align-items:start}
.memo-editor-paper{padding:25px 25px 19px;min-width:0;border:1px solid #73654414;border-radius:3px 3px 15px 3px;box-shadow:0 5px 12px #726b4512}
.memo-editor-paper .field{margin-bottom:19px}.memo-editor-paper .field>label{font-size:10px;letter-spacing:.08em;color:var(--memo-accent);opacity:.8;font-weight:500}
.memo-editor-paper .field input,.memo-editor-paper .field textarea{background:transparent;border:0;border-radius:0;padding:0;color:#41473a;box-shadow:none;min-height:0;width:100%}
.memo-editor-paper .field input{font-size:21px;font-weight:600;line-height:1.6;border-bottom:1px solid #5b603618;padding-bottom:12px}.memo-editor-paper .field textarea{font-size:16px;line-height:1.95;min-height:272px;resize:vertical}
.memo-editor-paper .field input::placeholder,.memo-editor-paper .field textarea::placeholder{color:#68745680}.memo-editor-paper input:focus,.memo-editor-paper textarea:focus{outline:0;box-shadow:0 2px 0 #77885c66}
.memo-editor-options{padding:4px 0;min-width:0}.memo-editor-options h3{font-size:13px;font-weight:600;color:#65765a;margin-bottom:23px}.memo-option-group{margin-bottom:22px}.memo-option-group>p{font-size:11px;color:#8b9583;margin-bottom:12px}.memo-editor-colors{display:flex;flex-wrap:wrap;gap:13px}.memo-editor-colors .memo-swatch{width:28px;height:28px}
.memo-style-choices{display:grid;grid-template-columns:1fr 1fr;gap:9px}.memo-style-choice{display:flex;flex-direction:column;align-items:center;gap:7px;padding:10px 5px 7px;font-size:10px;border:1px solid #e0e5d8;border-radius:6px;background:#f5f6ef;color:#7b8970}.memo-style-choice.selected{border-color:#96aa83;background:#eaf0e2;color:#536c43}
.memo-style-sample{display:block;width:38px;height:35px;position:relative;isolation:isolate;--memo-paper:#f8efcf;--memo-edge:#d8c99c;--memo-rule:#ac954326;background-color:var(--memo-paper);border:1px solid #ad9e5929;box-shadow:0 2px 3px #76622912}
.memo-style-sample.memo-style-lined{background-image:repeating-linear-gradient(transparent 0 7px,var(--memo-rule) 7px 8px)}.memo-style-sample.memo-style-grid{background-size:8px 8px}.memo-style-sample.memo-style-tape:before{width:22px;height:9px;left:7px;top:-4px}.memo-style-sample.memo-style-sticky:after{width:10px;height:10px;border-radius:0}
.memo-editor-pin{display:flex;align-items:center;gap:8px;border:1px solid #dfe5d6;border-radius:6px;padding:9px 11px;width:100%;font-size:11px;color:#7c8a70;background:#f9faf5}.memo-editor-pin svg{width:15px;height:15px}.memo-editor-pin.active{background:#eaf0e2;color:#536c43;border-color:#adbda0}
.memo-editor-private{display:flex;align-items:center;gap:6px;font-size:10px;color:#95a08b;margin-top:16px}.memo-editor-private svg{width:12px;height:12px}
.memo-editor-status{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:10px;color:#919c87;margin-top:18px}.memo-character-count{white-space:nowrap}
.memo-conflict{padding:15px 17px;background:#fff4db;border:1px solid #e7d6a4;border-radius:7px;margin-bottom:20px;color:#8b7136;font-size:12px;line-height:1.8}.memo-conflict strong{display:block;margin-bottom:4px}.memo-conflict p{font-size:11px}
.memo-category-filters{display:flex;gap:8px;flex-wrap:wrap;padding:0 0 22px;margin-top:-3px}
.memo-category-filter{display:inline-flex;align-items:center;gap:7px;border:1px solid #e0e5d8;background:#fcfcf8;color:#7f8b76;border-radius:6px;padding:7px 11px;min-height:37px;font-size:11px;max-width:100%}
.memo-category-filter:hover{background:#f0f3e9}.memo-category-filter.active{color:#4f6e41;background:#eaf0e3;border-color:#c6d5b8;font-weight:600}.memo-category-filter svg{width:13px;height:13px}.memo-category-filter-name{max-width:210px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.memo-category-badge{display:inline-flex;align-items:center;gap:5px;max-width:calc(100% - 76px);font-size:10px;line-height:1.5;color:var(--memo-accent);background:#ffffff40;border:1px solid #6e71330a;padding:4px 7px;border-radius:4px;min-width:0}.memo-category-badge svg{width:12px;height:12px}.memo-category-badge>span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.memo-editor-category{margin-bottom:24px;padding-bottom:18px;border-bottom:1px solid #e1e6d8}.memo-editor-category .field{margin-bottom:8px}.memo-editor-category .field label{font-size:11px;font-weight:500;color:#87937c}.memo-editor-category .field select{min-height:37px;padding:8px 10px;font-size:12px;border-color:#dce3d1;background:#f8faf3;max-width:100%}.memo-editor-category>.btn{font-size:11px;min-height:27px;padding:3px 0;color:#718462;gap:5px}.memo-editor-category>.btn svg{width:13px;height:13px}
.memo-inline-category-create{margin-top:9px}.memo-inline-category-create>input{width:100%;min-width:0;padding:8px 9px;font-size:12px;border:1px solid #d7e1ce;border-radius:5px;background:#fffefa}.memo-inline-category-create>div{display:flex;gap:6px;justify-content:flex-end;margin-top:8px}.memo-inline-category-create .btn{padding:6px 9px;min-height:29px;font-size:11px}.memo-inline-category-status{font-size:10px;color:#9c6653;line-height:1.7;margin-top:8px}
.modal.memo-category-dialog{max-width:620px}.memo-category-create{display:flex;gap:11px;align-items:flex-end;margin-bottom:23px}.memo-category-create .field{flex:1;min-width:0;margin-bottom:0}.memo-category-create .field input{min-height:42px;font-size:13px}.memo-category-create>.btn{flex-shrink:0}
.memo-category-manager-list{display:flex;flex-direction:column;gap:10px}.memo-category-manager-row{padding:13px 14px;border:1px solid #e0e5d8;border-radius:7px;background:#fffefa;display:flex;align-items:center;flex-wrap:wrap;gap:10px;min-width:0}.memo-category-row-info{display:flex;align-items:center;gap:9px;min-width:0;flex:1;color:#728164;font-size:12px}.memo-category-row-info>svg{width:17px;height:17px}.memo-category-row-info>span{overflow-wrap:anywhere;min-width:0}.memo-category-row-info small{font-size:10px;color:#9aa28f;white-space:nowrap;margin-left:auto}.memo-category-row-actions{display:flex;align-items:center;gap:5px;flex-shrink:0}.memo-category-row-actions .icon-button{width:29px;height:29px}.memo-category-row-actions .icon-button svg{width:15px;height:15px}
.memo-category-rename{display:flex;align-items:center;gap:10px;width:100%;min-width:0}.memo-category-rename>input{flex:1;width:0;min-width:0;background:white;border:1px solid #ced9c2;border-radius:5px;padding:8px 10px;font-size:13px}.memo-category-rename .btn{min-height:33px;padding:6px 10px;font-size:11px}
.memo-category-delete-confirm{flex-basis:100%;padding-top:11px;border-top:1px solid #e6e3d7}.memo-category-delete-confirm p{font-size:12px;line-height:1.8;color:#867967;overflow-wrap:anywhere;margin-bottom:13px}.memo-category-delete-confirm .memo-category-row-actions{justify-content:flex-end}.memo-category-delete-confirm .btn{font-size:11px;min-height:33px;padding:7px 11px}.memo-category-empty{padding:34px 18px;border:1px dashed #d7dfcb;border-radius:7px;background:#f4f7ed;display:flex;align-items:center;justify-content:center;gap:11px;color:#8a987b;font-size:12px;line-height:1.8}.memo-category-empty svg{width:21px;height:21px}
@media(min-width:1450px){.memo-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}}
@media(max-width:1100px){.memo-intro{padding:25px}.memo-board-controls{align-items:flex-start;flex-direction:column}.memo-grid{gap:21px;grid-template-columns:repeat(auto-fill,minmax(235px,1fr))}}
@media(max-width:760px){.main-nav{flex-wrap:wrap;justify-content:flex-start}.main-nav .nav-link{flex:1 0 auto;justify-content:center;padding:10px 8px}.memo-intro{padding:24px 21px;min-height:155px;gap:10px;margin-bottom:22px}.memo-intro h2{font-size:21px;max-width:230px}.memo-intro p{font-size:11px;align-items:flex-start;max-width:220px}.memo-intro p svg{margin-top:3px;flex-shrink:0}.memo-paper-stack{transform:scale(.8);transform-origin:right center;width:110px;margin-right:0}.memo-intro-total{font-size:10px}.memo-board-controls{gap:17px;margin-bottom:21px}.memo-tabs{gap:3px}.memo-tabs>button{padding:7px 9px;font-size:11px;gap:5px}.memo-tabs>button svg{width:13px;height:13px}.memo-color-filters{gap:10px}.memo-toolbar .search{width:215px}.memo-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:22px}.memo-card{padding:14px 23px 13px;min-height:267px}.memo-card-body h2{font-size:19px}.memo-card-text{font-size:15px}.memo-new-tile{min-height:220px}.memo-editor-dialog .modal-body{padding:25px 20px 20px}.memo-editor-layout{grid-template-columns:minmax(0,1fr);gap:22px}.memo-editor-paper{padding:23px 20px 18px}.memo-editor-paper .field textarea{min-height:230px}.memo-editor-options{display:grid;grid-template-columns:1fr 1fr;gap:18px}.memo-editor-options h3{display:none}.memo-option-group{margin:0}.memo-option-group>p{margin-bottom:13px}.memo-editor-colors{gap:12px;max-width:138px}.memo-editor-colors .memo-swatch{width:27px;height:27px}.memo-style-choice{padding:9px 5px 6px;gap:5px}.memo-style-sample{width:29px;height:23px}.memo-editor-pin{align-self:start;grid-column:1/2}.memo-editor-private{margin-top:0;align-self:center}.memo-editor-status{font-size:9px;gap:8px}.memo-editor-dialog .modal-footer{flex-wrap:wrap}.memo-editor-dialog .modal-footer .btn{font-size:12px;padding:9px 12px}}
@media(max-width:430px){.memo-paper-stack{display:none}.memo-intro h2{max-width:none;font-size:22px}.memo-intro p{max-width:none}.memo-toolbar{flex-wrap:wrap;gap:10px}.memo-toolbar .search{width:100%}.memo-grid{grid-template-columns:minmax(0,1fr)}.memo-tabs>button{padding:7px 8px}.memo-tabs{width:100%;justify-content:space-between}.memo-all-colors{margin-right:6px}.memo-card-body h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){.memo-card,.memo-new-tile{transition:none}.memo-card:hover{transform:none}}
@media(max-width:760px){.memo-category-filters{gap:7px;padding-bottom:20px}.memo-category-filter{min-height:35px;padding:7px 9px}.memo-editor-category{grid-column:1/-1;margin:0;padding-bottom:15px;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:0 12px}.memo-editor-category .field{margin:0}.memo-editor-category>.btn{min-height:37px;padding:6px}.memo-inline-category-create{grid-column:1/-1}.memo-inline-category-create>input{font-size:16px}.memo-category-create{gap:8px}.memo-category-create>.btn{font-size:11px;padding:9px 11px}.memo-category-manager-row{padding:11px}.memo-category-row-info{gap:7px}.memo-category-row-info small{font-size:9px}.memo-category-row-actions{gap:2px}.memo-category-create .field input,.memo-category-rename>input{font-size:16px}.memo-category-badge{font-size:11px}}
@media(max-width:400px){.memo-category-rename{flex-wrap:wrap}.memo-category-rename>input{flex:1 0 100%;width:100%}.memo-category-rename>.memo-category-row-actions{margin-left:auto}.memo-category-row-info{flex-wrap:wrap}.memo-category-row-info small{margin-left:0}}
