:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Microsoft YaHei",system-ui,sans-serif;color:#27272a;background:#f8f8f8;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}#app{max-width:680px;min-height:100dvh;margin:auto;background:#f8f8f8;padding-bottom:94px}header{display:flex;align-items:center;justify-content:space-between;padding:24px 20px 18px}.brand{font-size:29px;font-weight:850;letter-spacing:-1px}.brand span{font-size:10px;color:#aaa;font-weight:500;letter-spacing:3px;margin-left:5px}.head-actions{display:flex;gap:11px}.head-actions button{background:none;border:none;font-size:29px;line-height:1;color:#303030;padding:3px 5px}.page{padding:8px 20px 24px}.filters,.chips{display:flex;gap:10px;overflow:auto;scrollbar-width:none;padding:3px 0 16px}.pill{border:0;border-radius:99px;padding:10px 16px;background:#fff;white-space:nowrap;color:#656565;font-size:13px}.pill.active{background:#2d2d2d;color:#fff}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.module{border:0;background:white;text-align:left;border-radius:23px;padding:18px 17px 16px;min-height:162px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 1px 1px #e5e5e530}.module-top{display:flex;justify-content:space-between;align-items:flex-start}.mod-icon{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;font-size:18px;background:var(--soft,#ececff)}.quick-add{border:0;background:#f8f8f8;border-radius:50%;height:34px;width:34px;font-size:26px;color:#555;line-height:1}.module h3{margin:0 0 6px;font-weight:650;font-size:15px}.module small{font-size:11px;color:#aaa}.add-module{border:2px dashed #e4e4e4;background:transparent;align-items:center;justify-content:center;gap:10px;color:#777}.add-module b{font-size:29px;font-weight:350}.section-title{font-size:19px;font-weight:720;margin:8px 0 18px}.subtle{color:#999;font-size:12px;line-height:1.7}.page-head{display:flex;justify-content:space-between;align-items:center;margin:4px 0 20px}.page-head h2{margin:0;font-size:23px}.icon-btn{border:0;background:#fff;border-radius:12px;padding:10px 13px}.entry{background:white;border-radius:19px;padding:17px;margin:12px 0;display:block;width:100%;border:0;text-align:left;line-height:1.65}.entry .meta{font-size:12px;color:#aaa;margin-bottom:9px}.entry .body{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.photos{display:flex;gap:8px;overflow-x:auto;margin-top:12px}.photos img{width:84px;height:84px;object-fit:cover;border-radius:12px;flex:none}.vertical{border-left:2px solid #e4e4e4;margin-left:9px;padding-left:18px}.vertical .node{position:relative;margin-bottom:16px}.vertical .node:before{content:"";position:absolute;top:23px;left:-25px;width:12px;height:12px;border-radius:50%;background:#a5acd9;border:3px solid #f8f8f8}.date{font-size:12px;color:#999;margin:18px 0 7px}.notice{font-size:12px;color:#8a6e49;background:#fff9e9;border-radius:14px;padding:12px 14px;line-height:1.7;margin:10px 0 16px}.empty{padding:55px 10px;text-align:center;color:#aaa;font-size:13px;line-height:2}.btn{border:0;border-radius:13px;background:#2f2f2f;color:white;padding:13px 17px;font-size:14px;font-weight:600}.btn.secondary{background:#f3f3f3;color:#555}.btnrow{display:flex;gap:10px}.btnrow>*{flex:1}.field{margin:15px 0}.field label{display:block;font-size:12px;color:#777;margin-bottom:8px}input[type=text],input[type=date],input[type=time],input[type=number],textarea,select{width:100%;border:1px solid #e9e9e9;background:#fff;border-radius:12px;padding:13px;color:#333;outline:none}textarea{min-height:175px;resize:vertical;line-height:1.7}input:focus,textarea:focus,select:focus{border-color:#aaa}#nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:680px;display:flex;justify-content:space-around;background:#fff;border-top:1px solid #f0f0f0;padding:10px 8px max(12px,env(safe-area-inset-bottom));z-index:4}#nav button{border:0;background:none;color:#aaa;font-size:10px;display:flex;flex-direction:column;gap:5px;align-items:center;min-width:48px}#nav button span{font-size:24px;line-height:1.1}#nav button.active{color:#292929;font-weight:700}dialog{border:0;border-radius:23px 23px 0 0;box-shadow:0 -12px 55px #0002;position:fixed;top:auto;bottom:0;width:min(100%,680px);max-height:94dvh;margin:auto auto 0;padding:0;overflow:auto}dialog::backdrop{background:#0005}#sheetBody{padding:22px 20px max(28px,env(safe-area-inset-bottom))}.sheet-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.sheet-head h2{margin:0;font-size:20px}.close{background:none;border:0;font-size:29px;color:#777}.photo-actions{display:flex;gap:9px;margin-top:12px}.photo-actions button{flex:1;border:1px solid #e7e7e7;border-radius:12px;background:#fafafa;padding:13px;color:#444}.preview{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:10px}.preview-item{position:relative}.preview img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:11px}.preview-item button{position:absolute;top:0;right:0;background:#222a;color:#fff;border:0;border-radius:50%;width:23px;height:23px}.split{display:grid;grid-template-columns:1fr 1fr;gap:10px}.checkbox{display:flex;gap:9px;align-items:center;font-size:13px;margin:15px 0}.tag{border:1px solid #ececec;border-radius:99px;padding:7px 12px;font-size:12px;background:#fff}.tag.on{color:white;background:#333}.tag-list{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.timeline-tabs{display:flex;gap:8px;margin:15px 0;overflow:auto}.horizontal{display:flex;gap:15px;overflow-x:auto;padding:50px 6px 30px;border-bottom:2px solid #ddd}.horizontal button{width:150px;min-height:120px;border:0;background:#fff;border-radius:15px;padding:14px;flex:none;text-align:left;position:relative}.horizontal button:after{content:"";position:absolute;bottom:-37px;left:20px;width:13px;height:13px;border-radius:50%;background:#a5acd9}.horizontal small{color:#999;display:block;margin-bottom:10px}#toast{position:fixed;z-index:11;bottom:105px;left:50%;transform:translateX(-50%);background:#303030;color:white;padding:11px 18px;border-radius:14px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s;max-width:90vw}#toast.on{opacity:1}.todo{display:flex;gap:10px;align-items:flex-start;padding:13px 0;border-bottom:1px solid #eee}.todo:last-child{border:0}.todo input{accent-color:#333;margin-top:5px}.todo b{font-size:13px;font-weight:550}.todo .done b{text-decoration:line-through;color:#aaa}.todo small{display:block;color:#aaa;margin-top:5px}.minor{background:none;border:0;color:#aaa;font-size:12px}.searchbar{margin-bottom:15px}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;text-align:center}.calendar-grid>button{border:0;border-radius:10px;background:#fff;min-height:42px;color:#555}.calendar-grid>button.has{background:#eceafa}.calendar-grid>button.selected{outline:2px solid #777}.muted{color:#aaa}.group-section{margin:24px 0 10px;font-weight:650;font-size:14px}.tiny-label{font-size:11px;color:#aaa;margin:8px 0}.actions{display:flex;flex-wrap:wrap;gap:8px}.actions button{border:1px solid #ddd;background:#fff;border-radius:10px;padding:9px;font-size:12px}

input[type=search]{width:100%;border:1px solid #e9e9e9;background:#fff;border-radius:12px;padding:13px;color:#333}
.record-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9}
.detail-photo img{display:block;width:100%;border-radius:14px;margin-top:10px}
.detail-photo .minor{padding:8px;color:#555}
#sheetStatus{display:none}
#sheetStatus.on{display:block;position:sticky;bottom:0;background:#303030;color:#fff;padding:12px 20px;font-size:13px;line-height:1.5}
.split>*{min-width:0}
