
/* 首屏试排：说明按需打开，日常评星优先。 */
.shell{max-width:1240px;padding-top:18px}header{margin-bottom:14px}.version{margin-left:auto}.guide-panel{margin-bottom:12px}.guide-compact{padding:10px 14px}.guide-compact button{padding:7px 12px}.local-data-note{font-size:12px;color:#64766d;margin:20px 0}.family-toolbar{padding:10px 14px;margin-bottom:16px}.child-card{padding:8px 12px}.child-avatar{width:42px;height:42px;font-size:30px}.child-card strong{font-size:17px}.child-card small{font-size:11px;margin-top:0}#starsPanel>.intro{display:none}.shop-balance{display:flex;align-items:center;gap:18px;padding:14px 20px;margin-bottom:12px}.shop-balance strong{font-size:34px}.shop-balance p{margin:0 0 0 auto;font-size:13px}.stars-tabs{margin:12px 0 18px}#starsStatus:empty{display:none}#starsStatus{font-size:12px}.habit-group{margin:12px 0 18px}.habit-group .habit-rating{padding:12px;gap:8px}.habit-group .habit-rating>select{grid-column:2;grid-row:1}.fixed-bonus-panel{margin:0}.fixed-bonus-panel .section-head{align-items:flex-start;flex-wrap:wrap}.fixed-bonus-panel .bonus-item{display:flex;flex-wrap:nowrap;width:100%}.fixed-bonus-panel .bonus-item>[data-bonus]{flex:1;text-align:left;font-size:14px}#helpDialog{max-width:850px}#helpDialog .guide-head h2{font-size:22px}
@media(max-width:540px){.shell{padding:12px 12px 36px}header{gap:8px}.brand{font-size:17px}.version{display:none}.welcome-detail{display:none}.guide-compact{font-size:12px;gap:8px;flex-wrap:nowrap}.guide-compact button{white-space:nowrap}.family-toolbar{gap:8px;padding:8px;margin-bottom:10px}.child-card{padding:5px 8px;gap:7px}.child-avatar{width:32px;height:32px;font-size:25px}.child-card strong{font-size:15px}.family-edge{padding:7px 9px}.shop-balance{padding:10px 12px;gap:12px}.shop-balance>span{font-size:13px}.shop-balance strong{font-size:28px}.shop-balance p{display:none}.stars-tabs{gap:6px;margin:10px 0 12px}.stars-tabs button{font-size:14px;padding:8px 10px}#settle>.muted{font-size:12px}#settle>.section-head h2{font-size:16px}.daily-project-heading button{font-size:13px}.habit-group .habit-rating{min-height:90px}}

.shell>.family-toolbar{padding:10px 14px;gap:10px}.family-toolbar .child-card{padding:6px 12px;gap:10px}.family-toolbar .child-avatar{width:40px;height:40px;font-size:30px}.family-toolbar .child-card strong{font-size:17px}.family-toolbar .child-card small{font-size:11px;margin-top:0}.shell>.guide-panel{margin-bottom:12px}.guide-panel .guide-compact{padding:10px 14px}@media(max-width:540px){.shell>.family-toolbar{padding:8px;gap:6px}.family-toolbar .child-card{padding:4px 8px}.family-toolbar .child-avatar{width:30px;height:30px;font-size:24px}.family-toolbar .child-card strong{font-size:15px}.family-toolbar .family-edge{font-size:12px;padding:7px 9px}}

/* 分类列表：新增与编辑留在设置里，日常界面只负责记星。 */
#settle:not([hidden]){display:block}#settle>.section-head:first-child{margin-bottom:4px}.rating-help{margin:0 0 20px;color:#64766d;font-size:13px}.rating-help summary{list-style:none;cursor:pointer;width:max-content}.rating-help p{max-width:760px;padding:10px 14px;background:#edf2ed;border-radius:10px}.daily-project-heading{margin-bottom:12px}#addHabitQuick,#addBonusQuick{font-size:13px;padding:6px 10px;font-weight:400;background:transparent;border-color:transparent;color:#64766d}#addHabitQuick:hover,#addBonusQuick:hover{background:#e8eee7;color:#245c48}#habitRatings .habit-group{background:#eff4fc;border:1px solid #dce5f2;border-radius:14px;padding:14px 18px;margin:0 0 12px}#habitRatings .habit-group:nth-child(3n+2){background:#eff6ed;border-color:#dce8d7}#habitRatings .habit-group:nth-child(3n){background:#fff7e8;border-color:#eee3ca}#habitRatings .habit-group h3{font-size:14px;color:#5c7164;margin:0 0 4px}#habitRatings .habit-grid{display:block}#habitRatings .habit-rating{grid-template-columns:minmax(0,1fr) 100px;min-height:0;gap:4px 18px;background:transparent;border:0;border-bottom:1px solid #d9e2dc;border-radius:0;padding:12px 0;align-items:center}#habitRatings .habit-rating:last-child{border-bottom:0}#habitRatings .habit-rating>strong{font-size:16px;grid-column:1;grid-row:1}#habitRatings .habit-rating>select{grid-column:2;grid-row:1/3;align-self:start}#habitRatings .habit-rating>details{grid-column:1;grid-row:2;font-size:12px;color:#64766d;margin:0}#habitRatings .habit-rating>details[open]{grid-column:1/-1;padding-top:4px}#habitRatings .habit-rating>details[open]>summary{margin-right:120px}#habitRatings .habit-rating>details p{color:#283b35}#settlementBar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 0 22px}#settleSummary{margin:0;font-size:14px;color:#64766d}#settleStars{flex-shrink:0}.fixed-bonus-panel{margin:4px 0 0;padding:18px;border:1px solid #e6dfce;border-radius:14px;background:#fffaf0}.fixed-bonus-panel .section-head{align-items:center;flex-wrap:nowrap}.fixed-bonus-panel .muted{font-size:13px}#fixedBonusButtons{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:10px;margin-top:14px}.fixed-bonus-panel .bonus-item{display:block;width:auto}.fixed-bonus-panel [data-bonus]{width:100%;text-align:left;padding:12px 14px;font-size:14px;font-weight:500;background:#fff;border:1px solid #e8dcc0}.fixed-bonus-panel [data-bonus]:hover{background:#fff2d1;border-color:#d2b15e}
@media(max-width:540px){#settle>.section-head:first-child h2{font-size:18px}#starDate{width:145px;font-size:13px}.rating-help{margin-bottom:14px}#habitRatings .habit-group{padding:10px 12px}#habitRatings .habit-rating{grid-template-columns:minmax(0,1fr) 82px;gap:4px 10px;padding:10px 0}#habitRatings .habit-rating>strong{font-size:15px}#settlementBar{gap:10px;align-items:flex-start}#settleSummary{font-size:12px}#settleStars{font-size:13px;padding:10px}#fixedBonusButtons{grid-template-columns:1fr}.fixed-bonus-panel{padding:14px}}

#ratingCalendar{display:grid;grid-template-columns:minmax(0,1fr) minmax(330px,480px);gap:24px;background:#fff;border:1px solid #d8e2dd;border-radius:16px;padding:20px;margin:12px 0 20px}.record-date{align-self:center}.record-date>span{font-size:14px;color:#64766d}.record-date>strong{display:block;font-size:26px;color:#245c48;margin:8px 0}.record-date .date-caution{font-weight:700;color:#9b531e;background:#fff1d5;padding:8px 12px;border-radius:8px}.calendar-nav{display:flex;align-items:center;gap:8px;margin-bottom:10px}.calendar-nav strong{flex:1;text-align:center}.calendar-nav button{padding:4px 10px;font-size:13px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.calendar-week{text-align:center;font-size:12px;color:#64766d}.calendar-grid button{min-height:52px;padding:5px 2px;display:flex;align-items:center;justify-content:flex-start;flex-direction:column;border:1px solid transparent;border-radius:8px;font-size:14px;gap:0}.calendar-grid small{font-size:11px;min-height:16px;color:#a66c16}.calendar-grid em{font-size:9px;line-height:12px;font-style:normal;color:#7b5a0b}.calendar-grid button.today{border-color:#9bb9a6}.calendar-grid button.selected{background:#245c48;color:#fff}.calendar-grid button.selected small,.calendar-grid button.selected em{color:#ffe09b}.calendar-legend{font-size:11px;color:#64766d}.behavior-standards{grid-column:1/-1;padding-top:8px}.behavior-standards>p{font-size:14px;line-height:1.65;margin:5px 0;display:flex;gap:12px}.behavior-standards b{white-space:nowrap;min-width:30px;color:#245c48}.behavior-standards details{margin-top:10px;font-size:12px;color:#64766d}#habitRatings .habit-rating>select{grid-row:1}#settlementBar{margin-top:20px;padding:18px;background:#eef4fc;border:1px solid #cbdcf1;border-radius:12px}#settleSummary{color:#28455c}.bonus-choice{border:1px solid #dddfdf;border-radius:12px;background:#fff;overflow:hidden}.bonus-choice.chosen{border-color:#83a9d3}.fixed-bonus-panel .bonus-choice>[data-bonus]{display:flex;justify-content:space-between;align-items:center;gap:12px;border:0;background:transparent;padding:14px;min-height:70px}.bonus-choice small{display:block;color:#64766d;font-size:12px;margin-top:4px}.bonus-result{display:grid;place-items:center;min-width:68px;min-height:38px;padding:4px 8px;background:#e9f1fc;border-radius:8px;color:#24558a;font-size:16px}.bonus-count{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:0 12px 10px;font-size:13px;color:#64766d}.bonus-count button{padding:1px 10px}#bonusLegacyNote:empty{display:none}@media(max-width:640px){#ratingCalendar{grid-template-columns:1fr;padding:14px;gap:12px}.record-date>strong{font-size:22px}.record-date .muted{display:none}.calendar-grid button{min-height:48px}.behavior-standards>p{font-size:13px;gap:8px}#settlementBar{flex-direction:column;align-items:stretch}#settleStars{width:100%}}

/* 月历缩为右侧工具栏，主栏保留项目和结算。 */
#ratingWorkspace{display:grid;grid-template-columns:minmax(0,1fr) 294px;gap:22px;align-items:start}.rating-projects{min-width:0}#ratingWorkspace #ratingCalendar{display:block;padding:14px;margin:0;position:sticky;top:16px;border-radius:12px}#ratingWorkspace .record-date{padding-bottom:10px;margin-bottom:10px;border-bottom:1px solid #e3e9e4}#ratingWorkspace .record-date>span{font-size:12px}#ratingWorkspace .record-date>strong{font-size:16px;margin:4px 0}#ratingWorkspace .record-date>p{font-size:12px;margin:4px 0}#ratingWorkspace .record-date>.muted{display:none}#ratingWorkspace .calendar-nav{gap:4px}#ratingWorkspace .calendar-nav strong{font-size:13px}#ratingWorkspace .calendar-nav button{font-size:12px;padding:3px 7px}#ratingWorkspace .calendar-grid{gap:2px}#ratingWorkspace .calendar-grid button{min-height:38px;padding:2px 0;font-size:12px}#ratingWorkspace .calendar-grid small{font-size:10px;min-height:14px}#ratingWorkspace .calendar-grid em{font-size:9px}#ratingWorkspace .calendar-legend{font-size:10px;line-height:1.5;margin:8px 0 0}.rating-projects #settlementBar{align-items:flex-start}.rating-projects #settleSummary{font-size:13px}.rating-projects #settleStars{font-size:14px}
@media(max-width:900px){#ratingWorkspace{display:flex;flex-direction:column;gap:16px}#ratingWorkspace #ratingCalendar{position:static;order:-1;width:100%;display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:16px}#ratingWorkspace .record-date{border-bottom:0;margin:0;padding:0}.rating-projects{width:100%}}
@media(max-width:540px){#ratingWorkspace #ratingCalendar{display:block}#ratingWorkspace .record-date{padding-bottom:8px;margin-bottom:8px;border-bottom:1px solid #e3e9e4}#ratingWorkspace .calendar-grid button{min-height:36px}#ratingWorkspace .record-date>strong{font-size:17px}}

.rating-projects>.section-head:first-child{margin-bottom:4px}.rating-projects>.rating-help{margin-bottom:20px}

#settlementBar{align-items:center}.rating-projects #settleSummary{color:#223f56;font-size:16px;line-height:1.7}.settle-date{display:block;font-size:13px;font-weight:600;color:#4c6276;margin-bottom:4px}.settle-calculation{display:block}.settle-calculation b{font-size:20px;color:#1e4d72}.settle-total{display:block;font-size:17px;font-weight:600;margin-top:3px}.settle-total>strong{font-size:30px;color:#1e4d72}.settle-delta{display:inline-block;font-size:13px;font-weight:500;background:#dce9f8;border-radius:6px;padding:2px 8px;margin-left:10px}@media(max-width:640px){.rating-projects #settleSummary{font-size:15px}.settle-total>strong{font-size:28px}.settle-delta{margin-left:6px}}

.product-version{margin-top:22px;padding-top:14px;border-top:1px solid #e0e7e1;color:#718077;font-size:12px;text-align:center}header .guide-help-button{margin-left:0;white-space:nowrap}header{justify-content:flex-start;gap:18px}

/* 愿望卡片不随数量拉伸，少量项目也保持一致规格。 */
#rewardCards{grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),280px));gap:16px;justify-content:start;align-items:start}#rewardCards .reward-card{height:440px;padding:18px;border-width:2px;overflow-wrap:anywhere}#rewardCards .reward-heading{flex:0 0 114px;gap:12px;margin:0;justify-content:flex-start;font-size:17px;line-height:1.5;overflow:auto}#rewardCards .reward-icon{font-size:44px}#rewardCards .reward-rules{flex:1 1 auto;min-height:0;overflow:auto;margin:12px 0 16px;padding-left:20px;font-size:13px;line-height:1.65;scrollbar-width:thin}#rewardCards .reward-card>strong{flex:0 0 auto;font-size:24px;line-height:1.4;margin-top:auto;padding-top:8px}#rewardCards .reward-card>p{flex:0 0 auto;margin:10px 0}#rewardCards .redeem-button{min-height:42px;font-size:14px}#rewardCards .reward-card>details{flex:0 0 auto;margin-top:8px;font-size:13px}#rewardCards .reward-card:has(>details[open]){height:auto;min-height:440px}#rewardCards .reward-card:has(>details[open]) .reward-rules{max-height:134px;flex-basis:134px}@media(max-width:600px){#rewardCards{grid-template-columns:minmax(0,360px)}#rewardCards .reward-card{height:420px}#rewardCards .reward-card:has(>details[open]){min-height:420px}}

header .guide-help-button{white-space:nowrap}@media(max-width:540px){header{gap:8px}header .guide-help-button{font-size:12px;padding:7px 8px}}
