/* Approved direction: white paper, restrained vermilion actions, colorful source content. */
:root{color-scheme:light;--accent:#26786c;--blue:var(--accent);--blue-soft:#f4f3f0;--action:#26786c;--selected-ink:#35332f;--selected-surface:#f1f0ed;--focus:#26786c;--primary-ink:#205b53;--primary-fill:linear-gradient(165deg,#e8f5ee,#cde9df);--primary-hover:linear-gradient(165deg,#d8eee3,#bcdfd1);--primary-pressed:#afd5c6;--edge:#e3e0da;--field-edge:#c8c4bd;--control-hover:#f5f4f1;--ink:#2d2c29;--muted:#706c65;--line:#e9e6e0;--paper:#faf9f6;--surface:#fff;--button-radius:999px;--control-shadow:0 1px 3px #30291e0e;--primary-shadow:inset 0 1px 0 #ffffffd9,0 2px 4px #344b5b0b;--primary-glow:inset 0 1px 0 #ffffffe6,0 4px 12px #286e581f;--orange:#f37655;--yellow:#f5d974;--radius:14px;--shadow:0 18px 70px #242b4524;font-family:"PingFang SC","Microsoft YaHei UI","Microsoft YaHei",sans-serif;color:var(--ink);background:#eef0ef;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.48;box-shadow:none}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid var(--blue);outline-offset:1px}::selection{background:#d5eade}button{border:0;background:none}svg{flex-shrink:0;vertical-align:middle}a{color:var(--blue);text-underline-offset:4px}p{line-height:1.8}h1,h2,h3,p{margin:0}h1,h2,h3{overflow-wrap:anywhere}h1{font-size:30px;line-height:1.35;letter-spacing:-.03em}h2{font-size:22px;line-height:1.5}h3{font-size:17px;line-height:1.5}small{font-size:12px}button,input,textarea{caret-color:var(--blue)}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{background:#cdd1cb;border-radius:6px}::-webkit-scrollbar-track{background:transparent}
.preview-bar{height:54px;background:#eeefec;color:#343b42;border-bottom:1px solid #dde0df;display:flex;align-items:center;justify-content:space-between;padding:0 24px;gap:14px;font-size:12px}.preview-brand{font-size:16px;font-weight:750;display:flex;gap:12px;align-items:center}.preview-brand span{font-weight:400;font-size:11px;color:#626a71}.preview-switch{display:flex;gap:3px;background:#e1e4e2;padding:3px;border-radius:8px}.preview-switch button{padding:6px 20px;color:#626a71;border-radius:5px;font-size:12px}.preview-switch button[aria-pressed=true]{background:white;color:#283344;box-shadow:0 1px 3px #22304118}.preview-help{color:#545e68;font-size:12px;padding:8px}.preview-help:hover{text-decoration:underline}
#device{container-type:inline-size;width:100%;height:calc(100dvh - 54px);margin:auto;background:white;transition:none}body.mobile-preview #device{width:390px;max-width:100%;height:min(844px,calc(100dvh - 84px));margin:15px auto;border-radius:28px;overflow:hidden;border:7px solid #2a2b32;box-shadow:var(--shadow)}body.mobile-preview{background:#e5e8ef}.app{height:100%;display:flex;overflow:clip;background:white}.sidebar{overflow-y:auto;width:212px;flex-shrink:0;background:var(--paper);border-right:1px solid var(--line);padding:28px 18px 16px;display:flex;flex-direction:column;gap:25px}.brand{display:flex;align-items:center;gap:10px;padding-left:3px}.brand b{font-size:29px;letter-spacing:-1px}.brand-caption{font-size:11px;color:var(--muted);margin:8px 0 20px 5px}.button{min-height:46px;border-radius:var(--button-radius);padding:10px 19px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:13px;font-weight:600;line-height:1.5;transition:background .18s,border-color .18s,box-shadow .2s,transform .18s;text-decoration:none}.button:hover:not(:disabled){background:var(--control-hover)}.button:active:not(:disabled){transform:scale(.975)}.primary{background:var(--primary-fill);color:var(--primary-ink);box-shadow:var(--primary-shadow);border:1px solid #a8cdbd;padding:6px 20px;gap:9px}.primary:has(>svg){padding-left:7px}.primary>svg{width:30px;height:30px;padding:6px;border-radius:50%;background:#ffffffa8;box-shadow:inset 0 1px 0 #fff;flex-shrink:0}.button.primary:hover:not(:disabled){background:var(--primary-hover)}.button.primary:active:not(:disabled){background:var(--primary-pressed);box-shadow:inset 0 1px 3px #286e5820;transform:scale(.97)}.primary:focus-visible{box-shadow:var(--primary-glow)}.outline{border:1px solid var(--edge);background:#fff;color:#514c45;box-shadow:0 1px 2px #342b2107}.outline:hover:not(:disabled){border-color:#c9c4bc;background:#faf9f6}.soft{background:var(--blue-soft);color:var(--selected-ink)}.soft:hover:not(:disabled){background:#ebe9e4}@media(hover:hover) and (pointer:fine){.button.primary:hover:not(:disabled){box-shadow:var(--primary-glow)}}.danger{color:#b43126}.full{width:100%}.icon-button{width:44px;height:44px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.icon-button:hover{background:var(--control-hover);color:var(--accent)}.nav-list{display:flex;flex-direction:column;gap:5px}.nav-item{display:flex;align-items:center;gap:12px;min-height:47px;padding:10px 13px;text-align:left;border-radius:18px;font-size:14px;font-weight:550}.nav-item:hover{background:var(--control-hover)}.nav-item.active{color:var(--accent);background:#fff;font-weight:650;box-shadow:0 1px 3px #30291e09}.nav-item .count{margin-left:auto;font-size:11px;background:#eeece7;color:#706c65;border-radius:999px;padding:2px 6px}.nav-divider{height:1px;background:var(--line);margin:18px 0}.sidebar-label{font-size:11px;color:var(--muted);margin-bottom:12px}.tag-link{display:flex;align-items:center;gap:10px;padding:10px 13px;font-size:13px;border-radius:8px}.tag-link:hover{background:#eee}.tag-dot{width:8px;height:8px;border-radius:3px;background:#f37655}.tag-link:nth-child(3) .tag-dot{background:var(--blue)}.tag-link:nth-child(4) .tag-dot{background:#dbb542}.sidebar-footer{margin-top:auto;font-size:12px;border-top:1px solid var(--line);padding-top:16px}.space-line{display:flex;align-items:center;gap:10px}.space-icon{background:#e9ece6;width:35px;height:35px;border-radius:50%;display:flex;align-items:center;justify-content:center}.space-line b{font-weight:600}.space-line small{display:block;color:var(--muted);margin-top:4px}.local-note{color:var(--muted);font-size:10px;margin-top:12px;line-height:1.6}
.workspace{display:flex;flex:1;min-width:0;position:relative;overflow:hidden}.collection{background:#fff;width:345px;flex-shrink:0;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.collection-head{padding:28px 23px 13px}.heading-line{display:flex;justify-content:space-between;align-items:center;gap:12px}.collection-head h1{font-size:28px}.subtitle{font-size:12px;color:var(--muted);margin-top:7px}.search{margin-top:24px;display:flex;align-items:center;gap:9px;padding:10px 11px;border:1px solid var(--edge);border-radius:999px;color:var(--muted);background:#faf9f7}.search input{border:0;background:none;width:100%;min-width:0;font-size:12px;color:var(--ink)}.search input:focus{outline:none}.search:focus-within{outline:2px solid var(--blue)}.filters{display:flex;gap:5px;margin-top:18px;flex-wrap:wrap}.filter{min-height:40px;padding:8px 14px;font-size:12px;border-radius:999px;white-space:nowrap;border:1px solid transparent}.filter.active{color:var(--ink);background:#fff;border-color:var(--edge);font-weight:650;box-shadow:var(--control-shadow)}.filter:hover{background:var(--control-hover)}.mobile-add{display:none}.list-scroll{overflow:auto;padding:8px 10px 24px;flex:1}.group-label{font-size:11px;font-weight:500;color:#6a6d66;padding:10px 13px 13px}.item{width:100%;display:flex;align-items:center;gap:13px;padding:15px 12px;text-align:left;border-radius:12px;position:relative;border-bottom:1px solid transparent;margin-bottom:5px}.item:hover{background:#faf9f7}.item.selected{background:#f4f3ef;border-color:transparent}.item.selected:before{display:none}.item-main{flex:1;min-width:0}.item-title{font-size:14px;font-weight:600;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.item-meta{display:flex;gap:6px;align-items:center;color:var(--muted);font-size:11px;margin-top:5px}.item-state{margin-top:6px;display:flex;gap:5px;align-items:center}.badge{display:inline-flex;align-items:center;font-size:10px;border-radius:999px;padding:3px 8px;line-height:1.3;white-space:nowrap;background:#edf0ea;color:#535c4c}.badge.ready{background:#fff0c2;color:#8b5611}.badge.saved{background:#e9f4df;color:#306332}.badge.processing{background:#e8f0f4;color:#45677d}.badge.error{background:#fff0ed;color:#aa3027}.sample-label{font-size:9px;color:#6c7068}.thumb{width:76px;height:76px;flex-shrink:0;border-radius:12px;overflow:hidden;position:relative;display:flex;align-items:center;justify-content:center;background:#f0f2f8;color:#526f81}.thumb img{width:100%;height:100%;object-fit:cover}.thumb.audio{background:#eaf0f3}.thumb.text{background:#fff4d7;color:#b0831f}.thumb.link{background:#e9eef1;color:#526b7b}.thumb.photo{background:#e8f0e2;color:#54713d}.poster{background:#ffb698;color:#2a2924;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;padding:10px;font-weight:800;line-height:1.2}.poster:after{content:"";position:absolute;right:-20px;bottom:-24px;width:85px;height:55px;background:#f5df76;transform:rotate(-18deg)}.poster span,.poster svg{z-index:1}.poster .poster-title{font-size:14px}.poster .poster-date{font-size:9px;font-weight:600}.wave{display:flex;align-items:center;gap:3px;height:35px}.wave i{width:3px;border-radius:4px;background:#809cac;height:18px}.wave i:nth-child(3n){height:33px}.wave i:nth-child(2n){height:25px}.wave i:nth-child(5n){height:12px}
.detail{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden;background:#fff}.detail-toolbar{height:73px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 28px;border-bottom:1px solid var(--line)}.breadcrumb{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:10px}.toolbar-actions{display:flex;align-items:center;gap:8px}.detail-scroll{overflow:auto;flex:1;background:#f5f4f0;padding:24px}.note-sheet{max-width:1080px;min-height:100%;margin:0 auto;background:var(--surface);border-radius:16px;box-shadow:0 2px 12px #28344207}.note-header{padding:32px 34px 26px}.note-header h1{max-width:23em;font-weight:650;line-height:1.5;letter-spacing:-.025em;text-wrap:balance}.metadata{display:flex;align-items:center;gap:8px;margin-top:12px;color:var(--muted);font-size:12px;flex-wrap:wrap}.tabs{display:flex;gap:4px;padding:4px;background:#f3f2ef;border:0;border-radius:999px;width:max-content;margin-top:23px}.tabs button{min-height:40px;padding:8px 18px;border-radius:999px;font-size:12px}.tabs button.active{background:white;color:var(--selected-ink);font-weight:600;box-shadow:var(--control-shadow)}.note-body{padding:0 34px 32px}.note-columns{display:grid;grid-template-columns:minmax(200px,1fr) minmax(170px,.65fr);gap:28px}.note-copy{min-width:0}.section-title{margin:23px 0 13px;font-size:17px;display:flex;gap:9px;align-items:center}.section-title:first-child{margin-top:3px}.section-title:before{display:none}.facts{margin:0}.facts div{display:flex;gap:18px;padding:12px 0;border-bottom:1px solid #eef0ec;font-size:13px}.facts dt{color:var(--muted);min-width:40px}.facts dd{margin:0;overflow-wrap:anywhere}.notice{display:flex;gap:9px;align-items:flex-start;background:#faf3df;color:#796032;padding:12px 13px;font-size:12px;line-height:1.7;border-radius:10px;margin:18px 0}.notice.info{background:#f5f4f1;color:#666158}.notice svg{margin-top:1px}.note-text{font-size:15px;line-height:2.05;white-space:pre-wrap;overflow-wrap:anywhere}.note-summary{font-size:14px;line-height:1.9;color:#60676b;margin-bottom:18px}.note-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:22px}.note-tag{font-size:11px;background:#f3f1ec;color:#675f53;padding:5px 10px;border-radius:999px}.note-tag:nth-child(2n){background:#f3f1ec;color:#675f53}.source-peek{border-left:1px solid var(--line);padding-left:22px}.source-peek .thumb{width:100%;height:225px;border-radius:12px}.source-peek .poster{padding:24px}.source-peek .poster-title{font-size:30px;line-height:1.3;transform:rotate(-5deg)}.source-peek .poster-date{font-size:16px}.source-peek .poster svg{width:52px;height:52px;align-self:flex-end;margin-right:12px}.source-peek .poster:after{width:230px;height:140px;right:-30px;bottom:-40px}.source-caption{font-size:11px;color:var(--muted);margin:10px 0;display:flex;justify-content:space-between;gap:8px}.source-caption button{color:var(--blue);font-size:11px}.next-actions{border-top:1px solid var(--line);margin-top:30px;padding-top:21px}.next-actions h3{margin-bottom:14px}.action-row{display:flex;gap:10px;flex-wrap:wrap}.footnote{font-size:11px;color:var(--muted);line-height:1.8;margin-top:13px}.back-mobile{display:none}.form-stack{display:flex;flex-direction:column;gap:17px}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600}.field input,.field textarea,.field select{width:100%;border:1px solid var(--field-edge);border-radius:14px;background:#fff;padding:11px 12px;font-size:14px;font-weight:400;line-height:1.7;color:var(--ink)}.field textarea{resize:vertical;min-height:120px}.field .title-input{font-size:22px;font-weight:700}.field small{font-weight:400;color:var(--muted);line-height:1.6}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.original-content{padding:0 34px 35px}.original-content>img{max-width:100%;max-height:500px;object-fit:contain;border-radius:12px}.original-content audio{width:100%;margin:12px 0}.original-text{white-space:pre-wrap;line-height:1.9;font-size:14px;overflow-wrap:anywhere;background:var(--paper);padding:22px;border-radius:12px}.empty{padding:60px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:260px;gap:15px}.empty p{font-size:13px;color:var(--muted);max-width:28em}.empty h2{font-size:21px}.empty-mark{width:78px;height:78px;border-radius:24px;background:#fff2c7;display:flex;align-items:center;justify-content:center;transform:rotate(-7deg);color:#b28729;margin-bottom:8px}.empty-mark svg{transform:rotate(7deg)}.empty.detail-empty{height:100%;background:#fdfdfa}.detail-empty h2{font-size:27px}.empty .button{margin-top:9px}.bottom-nav{display:none}
.page{overflow:auto;flex:1;padding:40px 44px 60px;background:#fff;min-width:0}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.page-inner{max-width:1000px;margin:auto}.page .subtitle{font-size:13px}.reminder-list{margin-top:27px;max-width:800px}.reminder-group{margin-top:30px}.reminder-group h3{font-size:15px;margin-bottom:12px;display:flex;gap:10px;align-items:center}.reminder-group h3 svg{color:#ba8d17}.reminder-row{display:flex;gap:16px;padding:21px 0;border-bottom:1px solid var(--line);align-items:flex-start}.check-button{width:44px;height:44px;border:10px solid transparent;box-shadow:inset 0 0 0 1.5px #a4aba1;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}.check-button.done{background:#54715a;background-clip:padding-box;color:#fff;box-shadow:none}.reminder-time{font-size:18px;font-weight:700;min-width:65px;font-variant-numeric:tabular-nums}.reminder-text{flex:1;min-width:0}.reminder-text b{font-size:15px;overflow-wrap:anywhere}.reminder-text.done b{text-decoration:line-through;color:var(--muted)}.reminder-text p{font-size:12px;color:var(--muted);margin-top:5px}.reminder-tools{display:flex;gap:2px}.reminder-tools .icon-button{width:44px;height:44px}.reminder-status{font-size:10px;color:#796128;margin-top:5px}.settings-list{max-width:760px;margin-top:30px;border-top:1px solid var(--line)}.settings-row{padding:22px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;align-items:center}.settings-row h3{font-size:15px}.settings-row p{font-size:12px;color:var(--muted);margin-top:6px;max-width:40em}.settings-row .button{flex-shrink:0}.version{font-size:11px;color:var(--muted);margin-top:30px}.prototype-note{border-radius:12px;padding:18px 20px;background:#f5f4f1;display:flex;gap:12px;margin:24px 0;color:#666158}.prototype-note b{font-size:13px}.prototype-note p{font-size:12px;margin-top:4px}
dialog{border:0;border-radius:22px;box-shadow:var(--shadow);padding:0;width:min(580px,calc(100vw - 32px));max-height:calc(100dvh - 40px);color:var(--ink);overflow:auto;background:white}dialog::backdrop{background:#24304055;backdrop-filter:blur(4px)}.modal-head{padding:24px 28px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2}.modal-head h2{font-size:20px}.modal-body{padding:26px 28px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:18px 26px;border-top:1px solid var(--line);background:#fff;position:sticky;bottom:0;z-index:2}.input-types{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-bottom:22px}.input-type{padding:15px 4px;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:11px;border:1px solid var(--edge);border-radius:20px;background:#fff}.input-type:hover{background:var(--control-hover)}.input-type.active{color:var(--accent);background:#fff;border-color:var(--accent);box-shadow:inset 0 0 0 .5px var(--accent)}.input-type svg{width:34px;height:34px;padding:6px;border-radius:50%}.input-type.active svg{background:#edf6f0}.drop-zone{border:1.5px dashed #c9c4bb;background:#fcfbf8;border-radius:20px;padding:27px 18px;text-align:center;display:block;cursor:pointer}.drop-zone.drag{background:#edf6f0}.drop-zone b{font-size:14px;display:block;margin-top:10px}.drop-zone p{font-size:11px;color:var(--muted);margin-top:6px}.file-input{display:block;width:100%;font-size:11px;margin-top:12px;color:var(--muted)}.file-input::file-selector-button{border:1px solid var(--field-edge);background:white;border-radius:999px;padding:10px 14px;margin-right:8px;font:inherit;color:var(--selected-ink)}.upload-preview{display:flex;gap:12px;align-items:center;margin-top:15px;padding:10px;background:#f5f6f3;border-radius:10px;font-size:12px;overflow:hidden}.upload-preview img{width:54px;height:54px;object-fit:cover;border-radius:7px}.upload-preview span{overflow-wrap:anywhere}.sample-action{width:100%;margin-top:18px;display:flex;gap:13px;align-items:center;text-align:left;padding:14px;border-radius:12px;background:#fff6de}.sample-action .mini-symbol{color:#ad6d35;background:#ffdfbc;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:9px}.sample-action b{font-size:12px}.sample-action small{display:block;font-size:10px;color:#7a6743;margin-top:4px}.sample-action>svg{margin-left:auto}.form-error{color:#a52d25;background:#fff0ed;padding:10px 12px;border-radius:8px;font-size:12px;margin-top:14px;line-height:1.7}.record-tools{display:flex;align-items:center;gap:12px;margin-top:16px}.record-time{font-size:17px;font-variant-numeric:tabular-nums}.recording{color:#be3e30}.explanation{font-size:12px;line-height:1.9;color:var(--muted)}.about-list{padding-left:20px;font-size:13px;line-height:2.2}.about-list li{margin-top:9px}.spinner{width:24px;height:24px;border:2px solid #ebe6df;border-top-color:var(--blue);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.card-dialog{width:min(960px,calc(100vw - 32px))}.card-layout{display:grid;grid-template-columns:1fr 300px;gap:28px}.card-stage{background:#f1efea;border-radius:12px;padding:22px;display:flex;flex-direction:column;align-items:center;gap:13px}.card-stage canvas{width:100%;max-width:360px;height:auto;border-radius:3px;box-shadow:0 3px 6px #2833260d,0 14px 30px #2833261c}.card-options{display:flex;flex-direction:column;gap:22px}.card-options .field textarea{min-height:160px}.swatches{display:flex;gap:10px;margin-top:10px}.swatch{width:40px;height:40px;border-radius:50%;border:5px solid white;outline:1px solid #dadcd6;background:#f5d974}.swatch[data-theme=blue]{background:#365be6}.swatch[data-theme=pink]{background:#ffd5c7}.swatch[data-theme=mint]{background:#d7ebce}.swatch.active{outline:2px solid var(--blue);outline-offset:2px}.check-field{display:flex;gap:10px;align-items:center;font-size:12px}.check-field input{accent-color:var(--blue);width:17px;height:17px}.pager{display:flex;align-items:center;gap:14px;font-size:12px}.pager button{width:44px;height:44px;background:white;border-radius:50%}.card-options .tabs{margin:0;width:100%;justify-content:space-between}.card-options .tabs button{padding:8px 13px}.card-hint{font-size:11px;color:var(--muted);line-height:1.8}.modal-save-intro{padding:15px;background:#f5f4f1;border-radius:16px;font-size:13px;line-height:1.8}
#toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,15px);background:#38352f;color:white;padding:12px 19px;border-radius:12px;font-size:13px;z-index:10;box-shadow:0 5px 24px #0002;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;max-width:calc(100vw - 32px);line-height:1.7;display:flex;gap:14px;align-items:center}#toast.visible{opacity:1;transform:translate(-50%,0);pointer-events:auto}#toast button{color:#d4eddf;font-size:12px;white-space:nowrap}.mobile-only{display:none}
@container (max-width:1100px){.sidebar{width:182px;padding:25px 13px}.collection{width:310px}.detail-toolbar{padding:0 20px}.detail-scroll{padding:18px}.note-header{padding:26px 26px 24px}.note-body{padding:0 24px 28px}.note-columns{grid-template-columns:1fr}.source-peek{display:none}.breadcrumb .crumb-parent{display:none}.toolbar-actions .button{padding:9px 12px}.page{padding:28px 30px}}
@container (max-width:800px){.sidebar{width:166px}.collection{width:100%;max-width:none}.detail{display:none}.workspace.has-detail .collection{display:none}.workspace.has-detail .detail{display:flex}.back-mobile{display:inline-flex}.detail-toolbar .breadcrumb{display:none}.detail-toolbar{justify-content:flex-start}.toolbar-actions{margin-left:auto}.source-peek{display:block}.note-columns{grid-template-columns:minmax(190px,1fr) minmax(150px,.6fr)}}
@container (max-width:600px){.sidebar{display:none}.app{flex-direction:column}.workspace{flex:1;min-height:0}.collection{border:0}.collection-head{padding:24px 21px 12px}.collection-head h1{font-size:29px}.collection-head .subtitle{font-size:12px;margin-top:8px}.mobile-add{display:flex;margin-top:20px;font-size:15px;min-height:46px}.search{margin-top:16px}.filters{margin-top:14px}.collection-head .heading-line .icon-button{display:inline-flex}.list-scroll{padding:0 11px 18px}.item{padding:16px 10px;gap:15px}.thumb{width:81px;height:81px}.item-title{font-size:14px}.item-meta{font-size:11px}.badge{font-size:10px}.group-label{padding:11px 12px}.item.selected{background:transparent}.item.selected:before{display:none}.bottom-nav{display:flex;justify-content:space-around;border-top:1px solid var(--line);padding:6px 7px max(6px,env(safe-area-inset-bottom));flex-shrink:0;background:white;min-height:65px}.bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:60px;min-height:48px;font-size:10px;border-radius:18px}.bottom-nav button.active{color:var(--accent);font-weight:650;background:transparent}.bottom-nav button.active svg{fill:#e2f1e9}.detail-scroll{padding:0;background:#fff}.note-sheet{border-radius:0;box-shadow:none}.detail-toolbar{height:68px;padding:0 12px;gap:5px}.toolbar-actions .button{font-size:12px;min-height:44px;padding:8px 11px}.toolbar-actions .button:not(.primary) svg{width:16px}.toolbar-actions .badge{display:none}.note-header{padding:23px 21px 20px}.note-header h1{font-size:27px}.note-body{padding:0 21px 28px}.note-columns{display:block}.source-peek{display:none}.metadata{font-size:11px}.note-text{font-size:15px;line-height:2}.note-summary{font-size:14px}.note-tags{margin-top:17px}.tabs{margin-top:20px}.section-title{font-size:17px}.facts div{font-size:13px}.next-actions{margin-top:24px;padding-top:20px}.next-actions .button{flex:1;font-size:13px}.page{padding:25px 21px 30px}.page-header{align-items:center}.page-header h1{font-size:29px}.page-header .button{font-size:12px;padding:9px 11px;white-space:nowrap;flex-shrink:0}.page-header .button span{display:none}.page .subtitle{font-size:12px;line-height:1.8}.reminder-row{gap:9px;flex-wrap:wrap;padding:21px 0}.reminder-time{font-size:18px;min-width:54px}.reminder-text b{font-size:14px}.reminder-tools{margin-left:auto}.reminder-text{min-width:120px}.reminder-group h3{font-size:14px}.reminder-list{margin-top:20px}.settings-row{align-items:flex-start;flex-direction:column;gap:12px}.settings-row .button{font-size:12px}.prototype-note{padding:15px}.empty{padding:40px 20px}.detail-empty{display:none}.original-content{padding:0 21px 25px}.mobile-only{display:block}.search-mobile-hidden{display:none}.field-row{grid-template-columns:1fr}.footnote{font-size:11px}.back-mobile{display:inline-flex}}
@media(max-width:600px){.preview-bar{height:44px;padding:0 12px}.preview-brand{font-size:14px}.preview-brand span{font-size:10px}.preview-switch{display:none}.preview-help{font-size:10px;padding:6px}#device,body.mobile-preview #device{height:calc(100dvh - 44px);width:100%;margin:0;border:0;border-radius:0;box-shadow:none}dialog{width:100%;max-width:100%;max-height:94dvh;margin:auto 0 0;border-radius:20px 20px 0 0}.modal-head{padding:17px 20px 13px}.modal-body{padding:20px}.modal-footer{padding:15px 20px max(16px,env(safe-area-inset-bottom));gap:9px}.modal-footer .button{flex:1}.input-type{min-height:72px;font-size:11px}.card-dialog{width:100%}.card-layout{grid-template-columns:1fr;gap:20px}.card-stage{padding:16px}.card-stage canvas{max-width:280px}.card-options{gap:16px}.card-options .field textarea{min-height:90px}.card-options .field-row{grid-template-columns:1fr 1fr}.field-row{grid-template-columns:1fr}.card-options .tabs button{flex:1}#toast{bottom:80px;width:max-content;max-width:calc(100vw - 28px)}}
body.mobile-preview dialog{width:376px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 96px)}body.mobile-preview .modal-head{padding:15px 19px}body.mobile-preview .modal-body{padding:20px}body.mobile-preview .modal-footer{padding:14px 18px}body.mobile-preview .modal-footer .button{flex:1;font-size:12px}body.mobile-preview .card-layout{grid-template-columns:1fr;gap:20px}body.mobile-preview .card-stage{padding:14px}body.mobile-preview .card-options{gap:16px}body.mobile-preview .card-options .field textarea{min-height:90px}body.mobile-preview .field-row{grid-template-columns:1fr}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

@media(max-width:600px){.field input,.field textarea,.field select{font-size:16px}}

@container (max-width:1100px){.toolbar-actions .primary:has(>svg){padding:6px 15px 6px 7px}}
@container (max-width:600px){.mobile-add{min-height:50px}.toolbar-actions .primary:has(>svg),.page-header .primary:has(>svg){padding:6px 14px 6px 7px}.filters .filter{min-height:44px}}

.reminder-note-link{display:inline-flex;align-items:center;gap:6px;min-height:44px;max-width:100%;padding:4px 0;color:var(--accent);font-size:12px;font-weight:600;background:transparent;border-radius:8px}.reminder-note-link:hover{color:var(--primary-ink);text-decoration:underline;text-underline-offset:4px}

@container (max-width:600px){.reminder-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;column-gap:10px;row-gap:0}.reminder-row>.check-button{grid-column:1;grid-row:1}.reminder-time{grid-column:2;grid-row:1;align-self:center}.reminder-tools{grid-column:3;grid-row:1;margin-left:0}.reminder-text{grid-column:2 / -1;grid-row:2;min-width:0}.reminder-text b{font-size:15px;line-height:1.6}.reminder-note-link{margin-top:4px}}

.ai-settings{margin:24px 0;padding:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.ai-settings h2{font-size:20px;margin-bottom:12px}.ai-settings .settings-row p{overflow-wrap:anywhere}.original-text{white-space:pre-wrap;overflow-wrap:anywhere}.modal-save-intro code{overflow-wrap:anywhere}

/* Personal edition: quiet management controls, recovery and foreground reminders. */
.filters{flex-wrap:wrap;row-gap:6px}.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:22px 0}.tool-grid .button{justify-content:flex-start;white-space:normal;text-align:left}.snapshot-list{margin-top:18px}.snapshot-row{padding:17px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:14px;align-items:center}.snapshot-row p{font-size:12px;color:var(--muted);margin-top:5px}.snapshot-row .action-row{flex-wrap:wrap;margin:0;gap:8px}.draft-hint{font-size:12px;color:var(--accent);margin-bottom:20px;line-height:1.8}.reminder-inline-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.reminder-inline-actions .button{font-size:12px;min-height:40px;padding:8px 12px}.settings-row>a{font-size:12px;text-decoration:none;white-space:nowrap}.capture-discard{margin-top:20px}.capture-discard p{font-size:13px}.capture-discard .action-row{margin-top:12px}
.due-banner{position:fixed;right:22px;bottom:22px;z-index:7;max-width:460px;width:calc(100vw - 44px);padding:18px 20px;background:#f4fbf7;border:1px solid #c6ded1;border-radius:20px;box-shadow:0 8px 32px #234e3521;display:flex;flex-direction:column;gap:12px}.due-banner[hidden]{display:none}.due-banner b{font-size:14px}.due-banner p{font-size:12px;overflow-wrap:anywhere;margin-top:4px;color:var(--muted)}.due-banner .action-row{margin:0;gap:8px;flex-wrap:wrap}.due-banner .button{font-size:12px;min-height:40px;padding:8px 13px}body:has(dialog[open]) .due-banner{display:none}
@container(max-width:600px){.reminder-row{grid-template-columns:38px minmax(0,1fr) 44px}.reminder-row .reminder-text{grid-column:2;grid-row:1/3;min-width:0}.reminder-row .reminder-tools{grid-column:3;grid-row:1/3;flex-direction:column}.toolbar-actions{gap:6px}.toolbar-actions .button{padding:7px 10px}.filters .filter{font-size:12px}.settings-row>a{white-space:normal}}
@media(max-width:600px){.due-banner{bottom:76px;right:12px;width:calc(100vw - 24px);padding:15px}.tool-grid{grid-template-columns:1fr}.snapshot-row{align-items:flex-start;flex-direction:column}}
body.mobile-preview .due-banner{bottom:80px;right:calc(50% - 175px);max-width:350px}body.mobile-preview .tool-grid{grid-template-columns:1fr}
/* Personal space connection. Status remains distinct from local save success. */
.sync-strip{height:34px;display:flex;align-items:center;justify-content:center;gap:8px;background:#eff7f3;border-bottom:1px solid #dbe9e1;color:#345e52;font-size:12px;padding:0 12px}.sync-strip[hidden]{display:none}.sync-strip button{color:#26786c;font-weight:600;text-decoration:underline;text-underline-offset:3px;min-height:32px}.sync-dot{width:6px;height:6px;border-radius:50%;background:#b18b50;flex-shrink:0}.sync-dot.ok{background:#48876e}body:has(.sync-strip:not([hidden])) #device{height:calc(100dvh - 88px)}body.mobile-preview:has(.sync-strip:not([hidden])) #device{height:min(844px,calc(100dvh - 118px))}.sync-settings{margin:24px 0;padding:24px;background:#f7faf8;border:1px solid #e1eae4;border-radius:20px}.sync-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}.sync-section-heading h2{font-size:21px}.sync-section-heading p{color:var(--muted);font-size:13px;margin:6px 0 18px}.sync-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.sync-state{font-weight:600;color:#326b5a;font-size:14px;margin:10px 0}.sync-facts{display:grid;grid-template-columns:1fr 1fr;gap:14px;font-size:13px;margin:24px 0}.sync-facts dt{color:var(--muted)}.sync-facts dd{margin:0;text-align:right}.sync-delivery-title{margin-top:26px}.sync-deliveries{padding-left:18px;font-size:12px;line-height:2;overflow-wrap:anywhere}
@media(max-width:600px){body:has(.sync-strip:not([hidden])) #device,body.mobile-preview:has(.sync-strip:not([hidden])) #device{height:calc(100dvh - 78px)}.sync-settings{padding:18px}.sync-section-heading{align-items:flex-start}.sync-section-heading .badge{font-size:10px}.sync-actions .button{min-height:44px;flex:1;font-size:12px}.sync-strip{font-size:11px}.bottom-nav{padding-bottom:env(safe-area-inset-bottom)}}
@media(display-mode:standalone){.preview-bar{padding-top:env(safe-area-inset-top);height:calc(44px + env(safe-area-inset-top))}#device{height:calc(100dvh - 44px - env(safe-area-inset-top))}body:has(.sync-strip:not([hidden])) #device{height:calc(100dvh - 78px - env(safe-area-inset-top))}}
@media(max-width:600px){.sync-actions .button{flex:1 1 140px}.sync-section-heading .badge{flex-shrink:0}.sync-section-heading p{overflow-wrap:anywhere}}
