:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#253e3b;background:#f7f5f0;font-synthesis:none;-webkit-tap-highlight-color:transparent}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}a{color:#23736a}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #e7a168;outline-offset:2px}
.site-shell{min-height:100dvh;margin:0 auto;max-width:800px;padding-bottom:calc(104px + env(safe-area-inset-bottom))}.topbar{display:flex;align-items:center;justify-content:space-between;padding:22px 20px 12px;gap:12px}.brand{display:flex;gap:10px;align-items:center}.brand-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:15px;background:#e7f0e9;color:#23766c;font-size:26px}.brand strong{display:block;font-size:18px;letter-spacing:.4px}.brand small{display:block;color:#87938e;font-size:11px;margin-top:3px}.user-button{border:1px solid #e6e5de;border-radius:50px;background:#fffdf8;padding:10px 14px;color:#45645e;font-size:13px}.page{padding:4px 19px 30px}.muted{color:#83918d}.page-title{font-size:27px;letter-spacing:-.7px;margin:12px 0 4px;font-weight:800}.page-subtitle{color:#85938e;font-size:13px;margin:0 0 20px;line-height:1.6}
.hero{background:linear-gradient(135deg,#e6efe2 0%,#eef0da 48%,#f7e6d8 100%);border-radius:27px;padding:25px;position:relative;overflow:hidden;margin:10px 0 23px;min-height:215px}.hero:after{content:"✈";position:absolute;font-size:132px;right:-11px;top:46px;transform:rotate(-20deg);color:#ffffff7c;pointer-events:none}.hero .eyebrow{color:#607d73;font-size:13px;font-weight:600}.hero h1{font-size:34px;margin:14px 0 9px;line-height:1.2;letter-spacing:1px}.hero p{color:#657c72;font-size:13px;margin:0}.hero-stats{display:flex;margin-top:24px;gap:16px;position:relative;z-index:1}.hero-stat{display:flex;flex-direction:column;gap:3px;border-right:1px solid #ffffffa8;padding-right:18px}.hero-stat:last-child{border:0}.hero-stat b{font-size:25px;line-height:1}.hero-stat span{font-size:11px;color:#667e73}
.section-heading{display:flex;align-items:center;justify-content:space-between;margin:23px 0 12px;gap:8px}.section-heading h2{font-size:17px;margin:0}.text-button{border:0;background:none;color:#287a6d;font-size:13px;font-weight:700;padding:8px 2px}.small-title{font-size:13px;color:#90a09a;margin:0 0 10px}
.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.quick-card{background:#fffefa;border:1px solid #eeeae2;border-radius:19px;padding:20px 17px;text-align:left;min-height:125px;box-shadow:0 2px 10px #2c443805;transition:transform .15s}.quick-card:active,.record:active{transform:scale(.99)}.quick-card .emoji{font-size:25px;display:block;margin-bottom:10px}.quick-card strong{display:block;font-size:16px}.quick-card small{display:block;color:#87938e;margin-top:4px;font-size:11px}
.record-list{display:flex;flex-direction:column;gap:10px}.record{background:#fffefa;border:1px solid #eae9e2;border-radius:19px;padding:16px;box-shadow:0 1px 9px #42524208}.record-top{display:flex;gap:12px;align-items:flex-start}.record-main{flex:1;min-width:0}.record h3{font-size:16px;line-height:1.4;margin:1px 0 6px;overflow-wrap:anywhere}.record .desc{font-size:12px;color:#85938e;line-height:1.6;overflow-wrap:anywhere;margin:4px 0 0;white-space:pre-wrap}.record .meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:11px}.pill{display:inline-flex;align-items:center;border-radius:999px;background:#f3f4ef;color:#637971;font-size:11px;padding:5px 9px}.pill.status-done{background:#e5f3e9;color:#277354}.pill.status-progress{background:#fff0dc;color:#a36a2e}.pill.status-todo{background:#f6f1e9;color:#837666}.square-check{width:29px;height:29px;flex:none;border-radius:10px;border:2px solid #a5b6ab;background:transparent;font-size:18px;color:#fff;display:grid;place-items:center}.square-check.checked{background:#3e8f78;border-color:#3e8f78}.chevron{font-size:24px;color:#b6bdb7;border:none;background:transparent;margin:-5px -4px 0 0;padding:5px}.record-actions{display:flex;gap:8px;margin-top:11px;flex-wrap:wrap}.file-pill{border:0;padding:7px 10px;border-radius:9px;background:#eef1ec;color:#45645e;font-size:11px}.file-pill[disabled]{opacity:.55}.day-label{font-weight:800;color:#45685e;margin:22px 2px 10px;font-size:15px}.day-label:first-child{margin-top:7px}
.empty{text-align:center;background:#fffdfa;border:1px dashed #e2e2d9;padding:35px 20px;border-radius:20px;margin-top:11px}.empty-icon{font-size:32px;display:block;margin-bottom:11px}.empty strong{font-size:17px}.empty p{color:#8b9994;font-size:13px;line-height:1.7}.primary{border:0;background:#276f64;color:white;font-weight:700;border-radius:14px;padding:13px 18px;font-size:14px}.primary:disabled{opacity:.6}.add-row{display:flex;justify-content:flex-end;margin:14px 0 12px}.filter-pills{display:flex;gap:7px;overflow-x:auto;padding:0 0 5px}.filter-pills button{border:1px solid #e8e8e0;border-radius:50px;background:#fffefa;padding:9px 15px;white-space:nowrap;font-size:13px;color:#6d7f77}.filter-pills button.selected{background:#2e7667;color:white;border-color:#2e7667}.progress{height:8px;border-radius:20px;background:#e8e9e1;overflow:hidden;margin:12px 0}.progress-fill{height:100%;background:#65a58b;transition:width .2s}.summary-card{background:#e9f0e8;padding:16px 20px;border-radius:18px;margin:15px 0 22px}.summary-card strong{font-size:20px}.summary-card .row{display:flex;justify-content:space-between;font-size:12px;color:#648071;align-items:center}
.bottom-nav{position:fixed;z-index:5;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:800px;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #ebe9e2;background:#fffdfaf5;backdrop-filter:blur(15px);padding:12px 4px calc(8px + env(safe-area-inset-bottom));box-shadow:0 -8px 25px #213b2707}.bottom-nav[hidden]{display:none}.bottom-nav button{border:0;background:none;display:flex;align-items:center;flex-direction:column;gap:4px;color:#9eaaa1;font-size:11px;font-weight:500;min-height:50px}.bottom-nav button span{font-size:25px;line-height:26px}.bottom-nav button.active{color:#247464;font-weight:800}
.sheet{position:fixed;inset:auto 0 0;max-width:700px;width:100%;max-height:93dvh;margin:0 auto;border:0;background:#fffcf7;border-radius:24px 24px 0 0;padding:0;box-shadow:0 -15px 70px #15251d3b;color:inherit}.sheet::backdrop{background:#192c2780}.sheet-inner{display:flex;flex-direction:column;width:100%;min-width:0;max-height:93dvh;margin:0}.sheet-head{display:flex;align-items:center;justify-content:space-between;padding:18px 17px;border-bottom:1px solid #ebeae2;gap:8px;flex:none}.sheet-head h2{font-size:17px;margin:0}.sheet-head-spacer{width:64px}.ghost{border:0;background:transparent;color:#647d72;padding:9px 5px;min-width:61px;font-size:14px}.submit-button{border:0;background:#2c7d6b;color:#fff;padding:10px 16px;border-radius:13px;min-width:64px;font-size:14px;font-weight:700}.sheet-fields{width:100%;min-width:0;max-width:100%;padding:20px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.form-grid{display:grid;width:100%;min-width:0;grid-template-columns:minmax(0,1fr);gap:0}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:15px;min-width:0}.field label{color:#526c62;font-size:13px;font-weight:700}.field input,.field textarea,.field select{display:block;width:100%;min-width:0;max-width:100%;font-size:16px;border:1px solid #dfebe1;border-radius:13px;padding:13px;background:#fff;color:#314a40;min-height:49px}.field input[type="date"],.field input[type="time"]{box-sizing:border-box;inline-size:100%;min-inline-size:0;max-inline-size:100%;overflow:hidden}
.field input[type="date"]::-webkit-date-and-time-value,.field input[type="time"]::-webkit-date-and-time-value{text-align:left}
/* Native iOS date/time fields can have an intrinsic width larger than their
   CSS width. A fixed-size visual shell avoids overflow; the invisible native
   control remains full-size and tappable to open Apple's date/time picker. */
.picker-control{position:relative;display:flex;align-items:center;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:49px;padding:13px;border:1px solid #dfebe1;border-radius:13px;background:#fff;color:#314a40;overflow:hidden}
.picker-display{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px;line-height:22px}
.picker-placeholder{color:#8f9e97}
.picker-icon{flex:none;margin-left:10px;color:#536e64;font-size:20px;line-height:1}
.field .picker-control>input[type="date"],.field .picker-control>input[type="time"]{position:absolute;inset:0;display:block;box-sizing:border-box;width:100%;height:100%;min-width:0;max-width:100%;min-height:0;max-height:100%;margin:0;padding:0;border:0;border-radius:0;opacity:0;cursor:pointer;-webkit-appearance:none;appearance:none}
.field textarea{min-height:92px;resize:vertical}.hint{font-size:11px;color:#9ba7a0}.sheet-bottom{padding:5px 20px 22px;text-align:center}.danger-button{border:1px solid #efc5c0;background:#fff3ef;color:#c24f49;border-radius:11px;padding:12px 17px;font-weight:700}
/* The editor has one scrolling pane. Attachments and delete live in its flow,
   never in a fixed footer which could obscure input fields on mobile. */
#editor.sheet{height:93dvh}
#editor .sheet-inner{height:100%;max-height:100%}
#editor .sheet-scroll{flex:1 1 auto;min-height:0;width:100%;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding-bottom:calc(12px + env(safe-area-inset-bottom))}
#editor .sheet-fields{overflow:visible;padding-bottom:0}
.attachment-area{padding:12px 20px 22px}
.attachment-picker{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:45px;box-sizing:border-box;max-width:100%;border:1px solid #c8e0d1;border-radius:12px;background:#ebf3ec;color:#286d60;font-size:14px;font-weight:700;padding:11px 16px;cursor:pointer;overflow:hidden}
.attachment-picker:focus-within{outline:3px solid #e7a168;outline-offset:2px}
.attachment-picker input[type="file"]{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;opacity:0;cursor:pointer;font-size:100px}
.attachment-picked{margin-top:8px;font-size:12px;color:#567469;overflow-wrap:anywhere}
.attachment-help{margin-top:9px!important}
.import-file-picker{position:relative;display:inline-flex;align-items:center;justify-content:center;overflow:hidden;cursor:pointer;border:1px solid #c8dfd1;border-radius:13px;color:#276f64;background:#eaf3ec;font-size:13px;font-weight:700;padding:12px 14px}
.import-file-picker:focus-within{outline:3px solid #e7a168;outline-offset:2px}
.import-file-picker input[type="file"]{position:absolute;inset:0;width:100%;height:100%;min-height:0;opacity:0;cursor:pointer}
.flight-import-notice{font-size:12px;color:#46685d;line-height:1.6;margin:2px 0 15px;overflow-wrap:anywhere}
.flight-import-notice:empty{display:none}
.attachment-area strong{font-size:14px}.attachment-area p{font-size:12px;color:#88978f;line-height:1.6}.attachment-row{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:10px}.file-link{display:inline-flex;padding:8px;border-radius:9px;background:#ecf3eb;font-size:12px;max-width:100%;overflow-wrap:anywhere}.file-delete{color:#b04943;border:0;background:none;padding:5px}.upload-field{margin:12px 0;font-size:14px;max-width:100%}
.auth-wrap{min-height:87dvh;display:flex;flex-direction:column;justify-content:center;padding:26px;max-width:460px;margin:auto}.auth-logo{font-size:48px;margin-bottom:16px}.auth-wrap h1{font-size:32px;margin:0 0 8px}.auth-wrap p{color:#85938b;font-size:14px;line-height:1.7;margin-bottom:24px}.auth-card{background:#fffdf9;border:1px solid #e8e9df;border-radius:21px;padding:21px}.auth-card .field{margin-bottom:12px}.auth-card button{width:100%;margin-top:8px}.toast{position:fixed;bottom:calc(95px + env(safe-area-inset-bottom));left:50%;transform:translate(-50%,20px);background:#263e36;color:#fff;z-index:30;opacity:0;pointer-events:none;transition:opacity .2s, transform .2s;border-radius:13px;padding:13px 18px;min-width:150px;text-align:center;max-width:85%;box-shadow:0 8px 30px #1f38293d;font-size:13px}.toast.visible{opacity:1;transform:translate(-50%,0)}.row{display:flex;align-items:center;gap:8px}.member-card{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid #eaeae1}.member-avatar{width:41px;height:41px;background:#e5f0e9;border-radius:15px;display:grid;place-items:center;font-weight:800;color:#398073}.member-info strong{display:block}.member-info small{display:block;color:#8fa098;margin-top:3px}.mini-note{background:#f0f2e8;padding:15px;border-radius:14px;color:#5d7968;font-size:13px;line-height:1.7;margin-top:16px}.footer-note{text-align:center;color:#9ba8a0;font-size:12px;padding:30px 5px}
@media(min-width:600px){.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.page{padding:5px 30px 40px}.topbar{padding:26px 30px 14px}.quick-grid{grid-template-columns:repeat(4,1fr)}.quick-card{min-height:140px}.hero{min-height:235px}.hero h1{font-size:42px}.record-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.record{align-self:start}.sheet{border-radius:26px 26px 0 0}.bottom-nav{padding-bottom:15px}}

/* Family trip: compact Sunday-start calendar with an accessible selected-day agenda. */
.calendar-panel{margin-top:15px;padding:15px 10px 12px;border-radius:18px;background:#fffefa;border:1px solid #e8e9df}
.calendar-heading{display:flex;justify-content:space-between;align-items:baseline;gap:6px;padding:0 6px 13px;flex-wrap:wrap}
.calendar-heading strong{font-size:15px;color:#385c50}
.calendar-heading small{font-size:11px;color:#82948a}
.calendar-weekdays,.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.calendar-weekdays span{text-align:center;font-size:11px;color:#8b9c90;font-weight:600;padding:0 0 8px}
.calendar-day{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:56px;border:1px solid #e8e9e2;border-radius:10px;background:#fbfcf9;color:#385b50;gap:1px;padding:5px 1px;font-size:14px}
.calendar-day.selected{background:#297667;color:#fff;border-color:#297667;font-weight:800}
.calendar-day.has-events:not(.selected){border-color:#a5cdb9;background:#eff6ee}
.calendar-day-num{line-height:20px}
.calendar-day-mark{font-size:10px;line-height:12px;height:12px;color:#308b72}
.calendar-day.selected .calendar-day-mark{color:#fff}
.calendar-day small{position:absolute;top:1px;left:3px;font-size:8px;color:#8c998f}
.calendar-day.selected small{color:#fff}
.calendar-outside{visibility:hidden}
.calendar-hint{margin:11px 5px 0;color:#899a91;font-size:11px}
.calendar-empty{padding:24px 16px;margin-top:0}
.baobao-checkbox{display:flex;align-items:center;gap:11px;padding:13px 14px;margin:0 0 15px;border:1px solid #d9e6da;border-radius:13px;background:#f3f7f0;font-size:14px;font-weight:700;color:#45695b;cursor:pointer}
.baobao-checkbox input{flex:none;width:20px;height:20px;accent-color:#287563;margin:0}
@media(max-width:370px){.calendar-weekdays,.calendar-grid{gap:2px}.calendar-day{min-height:49px;font-size:13px}.calendar-panel{padding:12px 8px}}
