body .field-help{font-size:12px;color:#586168;line-height:1.5;margin:8px 0 12px}
body .reminder-fields{border:1px solid #bec4c3;border-radius:14px;margin:20px 0;padding:12px}
body .reminder-fields legend{font-size:14px;font-weight:550;padding:0 6px}
body .notice{font-size:12px;line-height:1.5;padding:10px;border-radius:10px;background:#5b7ba114}
body .period-chart{display:block;height:auto;max-height:290px;overflow:auto;padding:0;margin-top:16px;border:0}
body .period-row{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px 2px;border-bottom:1px solid #bec4c350;font-size:12px}
body .period-row small{display:block;color:#586168;margin-top:3px}
body .period-row progress{grid-column:1/-1;width:100%;height:5px;accent-color:#5b7ba1}
body .period-chart+.chart-note{margin:16px 0 0;line-height:1.5}
body .activity-card{margin-top:16px}
body .calendar-heading{display:flex;justify-content:space-between;gap:8px;align-items:center;flex-wrap:wrap}
body .calendar-heading h3{font-size:15px;margin:0}
body .calendar-heading>div{display:flex;gap:8px;align-items:center;font-size:12px}
body .calendar-heading button{border:0;border-radius:50%;height:36px;width:36px;background:#f2f3f2;color:#263037}
body #activityGrid{display:flex;gap:5px;margin-top:14px}
body .week-labels{display:grid;grid-template-rows:repeat(7,1fr);gap:4px;font-size:9px;width:12px;text-align:center;align-items:center}
body .activity-cells{flex:1;min-width:0;display:grid;grid-auto-flow:column;grid-template-rows:repeat(7,1fr);grid-auto-columns:1fr;gap:4px}
body .activity-day{padding:0;border:0;border-radius:3px;aspect-ratio:1;min-width:0;width:100%}
body [data-level="0"]{background:#c7ceca}body [data-level="1"]{background:#bad2b4}body [data-level="2"]{background:#8cb78a}body [data-level="3"]{background:#5a9667}body [data-level="4"]{background:#316c49}
body .activity-day:disabled{background:transparent;outline:1px solid #bec4c360;opacity:.6}
body .calendar-legend{display:flex;gap:4px;align-items:center;justify-content:flex-end;margin-top:12px;font-size:10px;color:#586168}
body .calendar-legend i{width:12px;height:12px;border-radius:2px}
body #activityDetail{font-size:12px;line-height:1.6;min-height:38px;margin-bottom:0}
@media(max-width:400px){body .chart-card{padding:12px}body .activity-cells{gap:3px}}
body .account-menu{position:absolute;top:19px;right:max(14px,calc((100vw - 732px)/2));width:42px;height:42px;display:grid;place-items:center;border:1px solid #ffffff55;border-radius:50%;background:#eef0efb0;color:#34433e;cursor:pointer}
body .top .add{margin-right:50px}
body #today>.section-head{justify-content:space-between;margin-top:-3px;margin-bottom:8px}
body .undo-toast{position:fixed;bottom:max(18px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 28px);display:flex;align-items:center;gap:12px;padding:10px 12px 10px 16px;border-radius:20px;background:#34433e;color:#fff;box-shadow:0 8px 30px #26303730;z-index:10;font-size:13px}
body .undo-toast>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body .undo-toast button{border:0;background:#ffffff18;color:#fff;border-radius:99px;min-height:36px;padding:6px 12px;font:inherit;flex-shrink:0}
body #openOrder{display:grid;place-items:center;width:36px;height:36px;border:1px solid #ffffff60;border-radius:50%;background:#eef0ef90;color:#34433e;padding:0}
body .order-row{display:flex;align-items:center;gap:6px;border-bottom:1px solid #bec4c380;padding:6px 0;font-size:14px}
body .order-row>span{flex:1;min-width:0;overflow-wrap:anywhere}
body .order-row button{width:42px;height:42px;flex-shrink:0;border:0;border-radius:50%;background:#f2f3f2;color:#5b7ba1;font-size:20px}
body #orderStatus{font-size:12px;line-height:1.5;color:#586168}
body #closeOrder{width:100%;min-height:44px;border:0;border-radius:99px;background:#5b7ba1;color:white;font:inherit;margin-top:12px}
body .undo-toast{opacity:1;transition:opacity .35s ease}
body .undo-toast.fading{opacity:0;pointer-events:none}
body #toggleGoals{border:1px solid #ffffff60;border-radius:999px;padding:6px 12px;min-height:32px;background:#eef0ef90;color:#34433e;font-size:13px;font-weight:500}
body #toggleGoals[aria-pressed="true"]{background:#5b7ba1;color:white}
body #today:not(.editing-goals) .edit-row>span{display:none}
body .edit-row:disabled{opacity:1;cursor:default}
body .list-tools{gap:5px}
@media(max-width:440px){body #today>.section-head{flex-wrap:wrap;gap:8px}body #today>.section-head .list-tools{margin-left:auto}body #toggleGoals,body #toggleEdit{padding:6px 9px;font-size:12px}}
@media(prefers-reduced-motion:reduce){body .undo-toast{transition:none}}
body #accountSheet{width:min(430px,calc(100vw - 24px));padding:22px;border:1px solid #ffffff80;background:#e9ebea;box-shadow:0 20px 80px #26303730}
body #accountSheet::backdrop{background:#26303735;backdrop-filter:blur(5px)}
body .sheet-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
body .sheet-heading h2{margin:0;font-size:18px}
body #closeAccount{width:36px;height:36px;border:0;border-radius:50%;background:#2630370c;color:#586168;font-size:25px}
body .sheet-handle{display:none}
body #accountSheet .account-bar{padding:0;display:flex;gap:12px}
body #accountSheet #syncStatus{padding:12px;background:#ffffff65;border-radius:12px;font-size:13px;line-height:1.6}
body #accountSheet .account-bar details{width:100%;border-top:1px solid #bec4c380;padding-top:10px}
body #accountSheet .account-bar summary{font-size:14px;padding:12px 0}
body #accountSheet .account-tools{display:grid;gap:6px}
body #accountSheet .account-tools button,body #accountSheet .file-label{padding:13px;border-radius:12px;text-align:left;background:#ffffff65;font-size:13px}
body #accountSheet #signOut{color:#8b5142;background:transparent}
body .account-menu.needs-attention::after{content:'';position:absolute;right:1px;top:1px;width:8px;height:8px;border-radius:50%;background:#ad715f;border:2px solid #e9ebea}
body .sync-warning{font-size:12px;color:#8b5142;margin:8px auto;max-width:732px;padding:0 14px}
body .row-name .habit-meta{display:flex;align-items:center;gap:4px;color:#586168;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body .habit-bell{display:inline-flex;flex-shrink:0;color:#5b7ba1}
body .completion-mark{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border-radius:50%;background:#68887c22;color:#3f6353;margin-right:4px;vertical-align:middle}
body #today .goal-complete{background:#68887c08}
body .goal-complete .row-total{color:#3f6353}
@media(max-width:620px){body #accountSheet{margin:auto auto 12px;border-radius:26px;padding:12px 20px 24px;max-height:85dvh}body .sheet-handle{display:block;width:34px;height:4px;border-radius:99px;background:#26303730;margin:0 auto 18px}}
