/* Reference-led refinement: warm canvas, white surfaces, quiet rows. */
.dashboard-custom-grid.widget-grid:has(.widget-size-control){grid-auto-rows:300px}
.widget-grid .energy-summary .energy-total>span{font-size:.75rem;color:var(--muted)}
.dashboard-custom-grid.widget-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:260px;grid-auto-flow:row dense;gap:20px}
.widget-grid .dashboard-widget{min-width:0;min-height:0;position:relative;display:flex;flex-direction:column;gap:8px}.widget-grid .widget-2x1,.widget-grid .widget-2x2{grid-column:span 2}.widget-grid .widget-1x2,.widget-grid .widget-2x2{grid-row:span 2}
.widget-grid .dashboard-widget>.card{width:100%;min-width:0;min-height:0;height:100%;margin:0;padding:24px;display:flex;flex-direction:column;gap:12px;overflow:auto;justify-content:flex-start;flex:1;border-radius:24px}
.widget-grid .card-head{margin:0}.widget-grid .card h3,.widget-grid .row>span:first-child{font-size:1rem}.widget-grid .card-head p{font-size:.75rem}.widget-grid .number{font-size:2.6rem;margin:0}.widget-grid .meta{font-size:.72rem;margin-top:auto}.widget-grid .streak-hero{margin:auto 0}.widget-grid .streak-hero strong{font-size:3.8rem;line-height:1}.widget-grid .streak-hero small{font-size:.85rem}.widget-grid .btn.icon{width:32px;height:32px;min-width:32px;padding:7px}.widget-grid .activity-list{min-height:0;overflow:auto;flex:1}.widget-grid .activity-item{padding:10px 0}.widget-grid .activity-item strong{font-size:.8rem}.widget-grid .activity-item small{font-size:.7rem}.widget-grid .activity-icon{width:32px;height:32px}.widget-grid .habit-check{width:26px;height:26px}.widget-grid .dashboard-today>.btn{margin-top:auto;font-size:.75rem;padding:10px}.widget-grid .energy-summary{gap:8px}.widget-grid .energy-total strong{font-size:2.4rem}.widget-grid .energy-baseline{padding:10px 0}.widget-grid .energy-summary .energy-explanation,.widget-grid .energy-summary>.meta{display:none}.widget-grid .energy-link{font-size:.7rem}.widget-grid .body-split{font-size:.75rem}.widget-grid .pill{font-size:.65rem;padding:6px 9px}
.widget-grid .weight-outlook{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:auto 0;gap:0}.weight-outlook>div{display:flex;flex-direction:column;gap:8px;padding:0 16px;border-left:1px solid var(--line)}.weight-outlook>div:first-child{padding-left:0;border-left:0}.weight-outlook>div>span{font-size:.75rem;color:var(--muted)}.weight-outlook strong{font-size:2rem;letter-spacing:-.05em;font-weight:500;white-space:nowrap}.weight-outlook strong small{font-size:.7rem;color:var(--muted);font-weight:400;letter-spacing:0}.weight-outlook>div>small{font-size:.65rem;color:var(--muted)}.weight-outlook em{font-size:.6rem;color:var(--muted);font-style:normal}.weight-outlook .outlook-current strong{font-weight:650}.widget-grid .outlook-note{font-size:.63rem;color:var(--muted);margin:0;line-height:1.5}.widget-grid .widget-1x1 .weight-outlook,.widget-grid .widget-1x2 .weight-outlook{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.widget-grid .widget-1x1 .weight-outlook strong{font-size:1.35rem}.widget-grid .widget-1x1 .weight-outlook>div{padding:0;border:0;gap:3px}.widget-grid .widget-1x1 .outlook-note{font-size:.55rem}.widget-size-control{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.7rem;flex-shrink:0}.widget-size-control select{width:auto;min-height:32px;padding:4px 28px 4px 10px;border-radius:10px}.widget-edit-hint{font-size:.8rem;color:var(--muted);margin:0 0 18px}
.rhythm-table-card .rhythm-table tbody tr td{border-radius:0!important;color:var(--muted);font-weight:400}.rhythm-table-card .rhythm-table tbody tr td:nth-child(2){color:var(--ink)}.rhythm-table-card .rhythm-table tbody tr td:first-child{color:var(--ink)}.rhythm-table-card .rhythm-table tbody tr td:nth-child(3),.rhythm-table-card .rhythm-table tbody tr td:nth-child(4){color:color-mix(in srgb,var(--ink) 80%,var(--muted))}.rhythm-table-card .rhythm-table tbody tr td:nth-child(6),.rhythm-table-card .rhythm-table thead th:nth-child(6),.rhythm-table-card .rhythm-table tbody tr td:nth-child(9),.rhythm-table-card .rhythm-table thead th:nth-child(9){border-left:1px solid color-mix(in srgb,var(--line) 55%,transparent);padding-left:18px}.rhythm-table-card .rhythm-table .table-unit{font-size:.65rem;font-weight:400;color:var(--muted)}
@media(max-width:1150px){.dashboard-custom-grid.widget-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:260px}}
@media(max-width:600px){.dashboard-custom-grid.widget-grid{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto}.widget-grid .dashboard-widget{grid-column:auto;grid-row:auto}.widget-grid .dashboard-widget>.card{height:auto;min-height:220px;overflow:visible}.widget-grid .weight-outlook{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.widget-grid .weight-outlook>div{border:0;padding:0}.widget-grid .activity-list{overflow:visible}.widget-grid .dashboard-today>.btn{margin-top:8px}}
.energy-summary{display:flex;flex-direction:column;gap:14px}.energy-summary h3{font-size:1rem;font-weight:500;margin:0}.energy-total{display:flex;align-items:baseline;gap:10px;margin-top:5px}.energy-total strong{font-size:2.8rem;line-height:1.1;font-weight:500;letter-spacing:-.06em}.energy-total>span{font-size:.8rem;color:var(--muted)}.energy-explanation{font-size:.8rem;line-height:1.5;color:var(--muted)}.energy-baseline{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:.8rem}.energy-baseline small{display:block;font-size:.68rem;color:var(--muted);font-weight:400;margin-top:4px}.energy-baseline>strong{font-weight:500;text-align:right;white-space:nowrap}.energy-summary .meta{font-size:.72rem;line-height:1.5;margin:0}.energy-link{display:flex;align-items:center;gap:6px;font-size:.75rem;margin-top:auto}.energy-link svg{width:14px;height:14px}.dashboard-today>.btn{width:100%;margin-top:16px}.dashboard-today .activity-item:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:12px}
.rhythm-table-card .rhythm-table tbody td{border-bottom:1px solid color-mix(in srgb,var(--line) 45%,transparent);font-variant-numeric:tabular-nums;letter-spacing:-.01em}
.rhythm-table-card .rhythm-table tbody tr:last-child td{border-bottom:0}
.rhythm-table-card .rhythm-table th:nth-child(n+3),.rhythm-table-card .rhythm-table td:nth-child(n+3){text-align:right}
.rhythm-table-card .rhythm-table thead th{padding-top:14px;padding-bottom:14px;color:var(--muted);font-weight:400}
.rhythm-table-card .rhythm-table td:first-child .table-primary{font-weight:500}
.rhythm-table-card .rhythm-table .weight-reading{gap:10px;flex-wrap:nowrap;justify-content:flex-start}
.rhythm-table-card .rhythm-table .weight-reading>strong{min-width:64px;font-weight:600}
.rhythm-table-card .rhythm-table .weight-change{font-size:.68rem}
@media(max-width:760px){.rhythm-table-card .rhythm-table .weight-reading{gap:3px;align-items:flex-start}.rhythm-table-card .rhythm-table .weight-reading>strong{min-width:0}}
.rhythm-table-card .rhythm-table tbody tr:nth-child(even){background:transparent}
.rhythm-table-card .rhythm-table tbody tr:hover,.rhythm-table-card .rhythm-table tbody tr:focus-visible{background:color-mix(in srgb,var(--canvas) 90%,var(--ink) 5%)}
.rhythm-table-card .rhythm-table tbody tr{transition:background-color 180ms ease}
.modal.panel-enter{animation:panel-arrive 260ms cubic-bezier(.2,.7,.2,1) both}.modal.panel-next{animation:panel-advance 280ms cubic-bezier(.2,.7,.2,1) both}
@keyframes panel-arrive{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes panel-advance{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:translateX(0)}}
.modal .add-panel .action-tile{background:var(--canvas);border-color:var(--line);transition:transform 180ms ease,background-color 180ms ease,box-shadow 180ms ease}
.modal .add-panel .action-tile:hover{background:color-mix(in srgb,var(--canvas) 85%,var(--ink) 5%);box-shadow:0 8px 18px -12px #0004}
.modal .add-panel .action-tile:active{transform:translateY(0) scale(.98)}
.reduce-motion .modal.panel-enter,.reduce-motion .modal.panel-next{animation:none}.reduce-motion .modal .action-tile,.reduce-motion .rhythm-table tbody tr{transition:none}.reduce-motion .modal .action-tile:hover,.reduce-motion .modal .action-tile:active{transform:none}
@media(prefers-reduced-motion:reduce){.modal.panel-enter,.modal.panel-next{animation:none}.modal .add-panel .action-tile,.rhythm-table-card .rhythm-table tbody tr{transition:none}.modal .add-panel .action-tile:hover,.modal .add-panel .action-tile:active{transform:none}}
.rhythm-table-card .rhythm-table th,.rhythm-table-card .rhythm-table td{padding-left:10px;padding-right:10px;white-space:nowrap}.rhythm-table-card .rhythm-table th small{display:block;font-size:.65rem;font-weight:400;margin-top:3px;color:var(--muted)}.rhythm-table-card .rhythm-table td:last-child,.rhythm-table-card .rhythm-table th:last-child{text-align:left}.rhythm-table-card .table-foot{justify-content:flex-end}
.measurement-summary{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:14px 18px;background:var(--canvas);border-radius:16px}.measurement-summary>div{display:grid;grid-template-columns:1fr auto;align-items:center;gap:3px 12px}.measurement-summary small{font-size:.75rem;color:var(--muted)}.measurement-summary strong{grid-row:1/3;grid-column:2;font-size:1.35rem;font-weight:500;letter-spacing:-.03em}.measurement-summary span{font-size:.7rem;color:var(--muted)}.measurement-actions{display:flex;align-items:center;justify-content:space-between;gap:20px}.measurement-actions>span{font-size:.72rem;color:var(--muted)}.measurement-actions .btn{padding:12px 24px}
@media(max-width:1100px) and (min-width:701px){.rhythm-table-card .table-wrap{overflow-x:auto}.rhythm-table-card .rhythm-table{min-width:980px}}
@media(max-width:700px){.rhythm-table-card .rhythm-table th:nth-child(n+4),.rhythm-table-card .rhythm-table td:nth-child(n+4){display:none}.rhythm-table-card .rhythm-table th:nth-child(8),.rhythm-table-card .rhythm-table td:nth-child(8){display:table-cell}.rhythm-table-card .rhythm-table td:nth-child(8){border-radius:0 16px 16px 0}.measurement-summary{grid-template-columns:1fr;gap:14px}.measurement-actions{align-items:stretch;flex-direction:column;gap:10px}}
.rhythm-table-card .rhythm-table{width:100%;table-layout:auto}.rhythm-table-card .rhythm-table td{height:62px;padding-top:12px;padding-bottom:12px}.rhythm-table-card .rhythm-table th:last-child,.rhythm-table-card .rhythm-table td:last-child{text-align:right;padding-right:18px}
.weight-reading{display:flex;align-items:center;gap:16px;flex-wrap:wrap}.table-unit{font-weight:400;color:var(--muted)}.weight-change{display:inline-flex;align-items:center;gap:4px;font-size:.72rem;white-space:nowrap;font-weight:500}.weight-change svg{width:18px;height:18px}.weight-change.positive{color:#287355}.weight-change.negative{color:#b54b3f}.weight-change.neutral,.weight-change.unknown{color:var(--muted)}
:root[data-theme="dark"] .weight-change.positive{color:#84ceaa}:root[data-theme="dark"] .weight-change.negative{color:#f19b91}
.modal.wide:has(#weight-form){max-width:1040px;padding:28px 32px}.modal:has(#weight-form) h2{font-size:1.8rem;padding-right:48px;margin:0 0 8px}.modal:has(#weight-form)>p{margin-bottom:18px}.modal:has(#weight-form) .weight-mode{margin-bottom:18px}
#weight-form{gap:18px}#weight-form .form-grid{gap:14px 20px}#weight-form .advanced-fields{grid-template-columns:repeat(4,minmax(0,1fr));padding-top:18px;border-top:1px solid var(--line)}#weight-form .field-label{font-size:.78rem;margin-bottom:6px}#weight-form .input{min-height:44px;height:44px;padding:10px 14px;border-radius:14px;font-size:.9rem}#weight-form>.btn{align-self:flex-end;min-width:190px;padding:12px 20px}
.overlay:has(#weight-form){padding-top:24px;padding-bottom:24px}
@media(max-width:760px){.modal.wide:has(#weight-form){padding:24px 20px}#weight-form .advanced-fields{grid-template-columns:repeat(2,minmax(0,1fr))}#weight-form>.btn{align-self:stretch}.weight-reading{gap:4px;flex-direction:column;align-items:flex-start}.weight-change{font-size:.65rem}.rhythm-table-card .table-foot{flex-wrap:wrap}}
.app-header .mainnav a.active,.app-header .mainnav a[aria-current="page"]{background:var(--ink);color:var(--canvas);font-weight:600;box-shadow:0 4px 12px #00000022}
.app-header .avatar.active{outline:2px solid var(--ink);outline-offset:3px}
.modal.wide:has(.add-panel){max-width:820px;padding:40px;border:1px solid var(--line);background:var(--surface);box-shadow:0 32px 100px #28233330}
.add-panel h2{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:500;letter-spacing:-.05em;padding-right:45px;margin:0 0 28px}
.add-panel .action-grid{width:100%;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.add-panel .action-tile{background:#ffffff55;border:1px solid #ffffff80;backdrop-filter:blur(12px);border-radius:22px;min-width:0;min-height:168px;padding:22px;color:#242326;font-size:1rem;font-weight:500;box-shadow:0 4px 12px #43364a05}
.add-panel .action-tile svg{width:25px;height:25px}.add-panel .action-tile:hover{background:#ffffffaa;transform:translateY(-3px)}.add-panel .action-tile:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.add-panel .quick-caption{margin:24px 0 0;text-align:left;color:#5e5863;font-size:.8rem}.modal:has(.add-panel) .close{background:#ffffff60;border-color:#ffffff80;color:#242326}
:root[data-theme="dark"] .modal.wide:has(.add-panel){background:var(--surface);border-color:#ffffff20}
:root[data-theme="dark"] .add-panel .action-tile{background:#ffffff0c;border-color:#ffffff25;color:#f3f0ed}:root[data-theme="dark"] .add-panel .action-tile:hover{background:#ffffff20}:root[data-theme="dark"] .add-panel .quick-caption{color:#c8bfcd}:root[data-theme="dark"] .modal:has(.add-panel) .close{background:#ffffff15;color:#f3f0ed;border-color:#ffffff25}
@media(max-width:600px){.modal.wide:has(.add-panel){padding:28px 22px}.add-panel .action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.add-panel .action-tile{min-height:128px;padding:20px}.add-panel h2{margin-bottom:24px}}
.brand,.app-header>.brand{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-weight:500;letter-spacing:-.055em;gap:10px;font-size:26px;color:var(--ink)}
.brand .ritmo-symbol{width:32px;height:24px;flex-shrink:0}.app-header>.brand>span:last-child:after{content:none}
.app-header{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:20px}.app-header>.brand{justify-self:start}.app-header>.mainnav{justify-self:center}.app-header>.header-tools{justify-self:end}
.mainnav{background:var(--surface)}.mainnav a.active{color:var(--canvas)}
.header-tools .search-toggle{width:42px;height:42px;min-width:42px;padding:0;display:inline-flex}
@media(min-width:761px) and (max-width:1100px){.app-header{gap:12px}.app-header .mainnav a{padding:10px;gap:5px}.header-tools{gap:6px}.app-header>.brand{font-size:23px}}
@media(max-width:760px){.app-header{grid-template-columns:1fr auto}.app-header>.brand{font-size:24px}.header-tools .search-toggle{display:inline-flex}}
.settings-page-head h1{font-size:2.25rem;letter-spacing:-.055em;font-weight:500}
.settings-page-head{margin:8px 0 28px}
.settings-layout.settings-v4{display:block;width:100%;max-width:1600px;margin:0 auto}
.settings-rail{position:sticky;top:24px;align-self:start}
.settings-rail a{padding:12px 14px;border-radius:999px;font-size:.82rem}
.settings-rail a.active{background:var(--ink);color:var(--canvas);box-shadow:0 5px 10px #00000012}
.settings-rail>span{font-size:.65rem;letter-spacing:.02em;text-transform:none}
.settings-heading{margin:0 0 22px}.settings-heading h2{font-size:1.65rem;font-weight:500;letter-spacing:-.045em}.settings-heading p{font-size:.88rem;line-height:1.5;margin-top:6px}.settings-kicker{display:none}
.settings-card-grid,.settings-card-grid.two{gap:20px;align-items:stretch}
.settings-section .settings-card,.settings-section .card{padding:26px 28px;border:1px solid color-mix(in srgb,var(--line) 55%,transparent);border-radius:28px;box-shadow:0 2px 2px #18181803,0 16px 28px -26px #18181855;min-height:0}
.settings-section .settings-card{margin-bottom:20px}.settings-card-grid>.settings-card{margin:0}
.settings-section h3,.settings-section .settings-card>h3{font-size:1.15rem;font-weight:500;color:var(--ink);letter-spacing:-.035em;padding:0;margin-bottom:7px}
.settings-section .support-copy,.settings-section .card-head p{font-size:.85rem;line-height:1.55;color:var(--muted)}
.settings-section .setting-line,.settings-section .setting-row{min-height:78px;padding:17px 0;border-bottom:1px solid color-mix(in srgb,var(--line) 45%,transparent);gap:22px}
.settings-section .setting-line:last-child,.settings-section .setting-row:last-child{border:0}
.settings-section .setting-line strong,.settings-section .setting-row strong{font-size:.86rem;font-weight:500}.settings-section small{font-size:.75rem;line-height:1.5}
.settings-section .setting-line select,.settings-section .setting-select{border:0;background:var(--canvas);border-radius:999px;min-height:40px;padding:10px 15px;font-size:.8rem;max-width:190px;min-width:130px}
.settings-section .input{border-radius:16px;min-height:48px;padding:12px 15px;font-size:.9rem;border-color:color-mix(in srgb,var(--line) 70%,transparent)}
.settings-section .field-label{font-size:.8rem;margin-bottom:8px}.settings-section .form-grid{gap:20px 24px}.settings-section .form-actions{margin-top:24px}.settings-section .btn{font-size:.8rem;padding:10px 17px;min-height:40px}
.settings-section .switch{flex-shrink:0;width:38px;height:23px}.settings-section .switch:before{width:17px;height:17px}.settings-section .switch:checked:before{transform:translateX(15px)}
.settings-card-grid.two>.settings-feature-card{display:block;padding:26px 28px}.settings-feature-card .settings-icon{display:none}.settings-feature-card>div:first-child p{font-size:.85rem}
.theme-choices{gap:12px;padding:20px 0 0;grid-template-columns:repeat(3,minmax(0,1fr))}.theme-choices>button{border:1px solid var(--line);background:transparent;border-radius:18px;padding:10px}.theme-choices>button.selected{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}.theme-preview{height:82px;border-radius:10px}.theme-choices strong{font-size:.78rem;font-weight:500;padding:10px 4px 2px}
.settings-note,.settings-section .formula{background:var(--canvas);border-radius:20px;color:var(--muted);padding:20px;font-size:.8rem;line-height:1.6}.settings-section .formula strong{font-weight:500;color:var(--ink)}
.cloud-hero{background:var(--canvas);margin:22px 0;padding:22px;border-radius:20px}.cloud-hero strong{font-size:2.6rem;font-weight:450}.cloud-status{padding-bottom:18px}.security-grid{gap:0 24px;margin-top:14px}.security-grid span{background:transparent;border-radius:0;padding:14px 0;border-bottom:1px solid var(--line)}
.settings-icon{background:var(--canvas);color:var(--ink);border-radius:14px}.settings-card-title{align-items:center}.settings-footnote{font-size:.75rem}.settings-section .profile-identity{border-bottom-color:var(--line)}
.settings-card-grid.two>.settings-feature-card{display:flex;align-items:center;justify-content:space-between;gap:24px}
.settings-feature-card .theme-choices{display:flex;padding:5px;gap:3px;border-radius:999px;background:var(--canvas);flex-shrink:0}
.settings-feature-card .theme-preview{display:none}.settings-feature-card .theme-choices>button{border:0;border-radius:999px;padding:10px 18px;color:var(--muted);box-shadow:none}.settings-feature-card .theme-choices>button.selected{background:var(--surface);color:var(--ink);box-shadow:0 2px 5px #00000012}.settings-feature-card .theme-choices strong{padding:0;font-size:.82rem;font-weight:400}
@media(max-width:900px){.settings-card-grid.two>.settings-feature-card{align-items:flex-start;flex-direction:column}.settings-feature-card .theme-choices{max-width:100%;align-self:flex-start}}
/* Shared control geometry and aligned card rows. */
.settings-card-grid>.settings-card,.settings-card-grid>.card{align-self:stretch}
.settings-preferences .settings-card:not(.settings-feature-card){display:flex;flex-direction:column}
.settings-preferences .settings-card>.setting-line{flex:1}
.settings-section select,.settings-section .setting-line select,.settings-section select.setting-select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23787873' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:16px;padding-right:42px}
.settings-section .setting-line select,.settings-section select.setting-select{height:42px;min-height:42px;min-width:144px;max-width:190px;border-radius:999px;padding:10px 42px 10px 18px;background-color:var(--canvas);border:1px solid transparent;line-height:20px;font-size:.82rem}
.settings-section select.input{padding-right:42px}
.settings-section select:hover{border-color:var(--line)}
.settings-section :is(select,input,button,a):focus-visible{outline:2px solid var(--ink);outline-offset:4px}
.settings-section .setting-line>span,.settings-section .setting-row>span{min-width:0}
.settings-section .setting-line small{margin-top:5px}
.settings-card-grid.two>.settings-accompaniment{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px}
.settings-accompaniment>h3{grid-column:1/-1;margin-bottom:12px}
.settings-accompaniment>.setting-line:nth-last-child(-n+2){border-bottom:0}
.settings-section .profile-access{display:flex;align-items:center;justify-content:space-between;gap:24px}
.profile-access .support-copy{margin:6px 0 0;max-width:65ch}.profile-access .btn{flex-shrink:0}
.cloud-status-card{display:flex;flex-direction:column;align-items:flex-start}
.cloud-status-card .cloud-status{width:100%;border-bottom:1px solid var(--line)}
.account-summary{display:flex;align-items:center;gap:14px;margin:24px 0 6px}
.account-summary small{display:block;margin-top:4px;color:var(--muted)}
.cloud-status-card .settings-footnote{line-height:1.6;margin:10px 0 24px;max-width:48ch}
.cloud-status-card>.btn{margin-top:auto;align-self:flex-start}
.settings-card-grid.two>.security-card{grid-column:auto}
.settings-section .device-row{flex-wrap:wrap;gap:12px}
.settings-section .profile-identity{padding:18px 0 24px;margin-bottom:24px}
@media(max-width:760px){.settings-card-grid.two>.settings-accompaniment{grid-template-columns:1fr}.settings-accompaniment>.setting-line:nth-last-child(2){border-bottom:1px solid var(--line)}.settings-section .profile-access{align-items:flex-start;flex-direction:column}.settings-section .setting-line select,.settings-section select.setting-select{min-width:116px;max-width:145px;padding-left:14px;padding-right:34px;background-position:right 12px center}.settings-section .setting-row{gap:14px;flex-wrap:wrap}}
/* Tables have plain rows; only hover/focus receives the rounded warm wash. */
.rhythm-table-card{padding:24px 12px 12px;border-radius:28px;border:1px solid color-mix(in srgb,var(--line) 55%,transparent);box-shadow:0 2px 2px #18181803,0 16px 28px -26px #18181855}
.rhythm-table-card .card-head{padding:0 14px;margin-bottom:18px}.rhythm-table-card .card-head h3{font-size:1.2rem;font-weight:500}.rhythm-table-card .card-head p{font-size:.78rem;line-height:1.5;margin-top:5px}.rhythm-table-card .card-head .btn{font-size:.78rem;padding:10px 16px}.rhythm-table-card .pill{font-size:.7rem}
.rhythm-table{border-collapse:separate;border-spacing:0;min-width:0}.rhythm-table thead th{text-transform:none;letter-spacing:0;font-size:.7rem;font-weight:400;padding:10px 14px;border-bottom:1px solid color-mix(in srgb,var(--line) 40%,transparent)}
.rhythm-table tbody tr{background:transparent;box-shadow:none;transform:none;transition:background .18s}.rhythm-table tbody tr:hover,.rhythm-table tbody tr:focus-visible{background:var(--canvas);transform:none;box-shadow:none;outline:2px solid transparent}.rhythm-table tbody tr:focus-visible{outline-color:var(--coral)}
.rhythm-table td{height:64px;padding:12px 14px;font-size:.8rem;border:0;font-variant-numeric:tabular-nums}.rhythm-table td strong,.table-primary{font-weight:500}.rhythm-table td:first-child{border-radius:16px 0 0 16px}.rhythm-table td:last-child{border-radius:0 16px 16px 0}.rhythm-table td>small{font-size:.68rem;color:var(--muted);margin-top:2px}.status-pill{padding:6px 11px;font-size:.7rem}.rhythm-table-card .table-foot{padding:20px 14px 8px;font-size:.7rem;color:var(--muted)}
@media(max-width:1100px){.settings-card-grid.two{grid-template-columns:1fr}.settings-v4{gap:24px;grid-template-columns:170px minmax(0,1fr)}}
@media(max-width:760px){.settings-v4{grid-template-columns:1fr;gap:22px}.settings-rail{position:static}.settings-section .settings-card,.settings-section .card,.settings-card-grid.two>.settings-feature-card{padding:22px 20px;border-radius:24px}.settings-section .setting-line{flex-direction:row;align-items:center;gap:14px}.settings-section .setting-line>span{min-width:0}.settings-section .setting-line select{width:auto;min-width:100px;max-width:140px}.settings-page-head h1{font-size:2rem}.settings-heading h2{font-size:1.45rem}.theme-preview{height:58px}.theme-choices{gap:8px}.rhythm-table-card .card-head .row{flex-wrap:wrap}.rhythm-table td,.rhythm-table th{padding-left:8px;padding-right:8px}.rhythm-table td:nth-child(7){border-radius:0 16px 16px 0}.rhythm-table-card .table-foot{gap:6px}.security-grid{grid-template-columns:1fr}}
/* Modular widgets: one square unit, with content adapted to each footprint. */
.widget-grid .widget-1x1 .dashboard-today .card-head p{display:none}.widget-grid .widget-1x1 .dashboard-today .activity-item{padding:1px 0;min-height:26px}.widget-grid .widget-1x1 .dashboard-today .habit-toggle{width:32px;height:20px}.widget-grid .widget-1x1 .dashboard-today .habit-toggle::after{width:14px;height:14px}.widget-grid .widget-1x1 .dashboard-today .habit-toggle.is-on::after{transform:translateX(12px)}
.day-habit[role=switch]{grid-template-columns:38px minmax(0,1fr) 40px;color:var(--ink)}
.dashboard-custom-grid.widget-grid,.dashboard-custom-grid.widget-grid:has(.widget-size-control){grid-auto-rows:var(--widget-unit,300px);align-items:stretch}
.widget-grid.is-editing{background-image:radial-gradient(var(--line) 1px,transparent 1px);background-size:16px 16px;border-radius:24px}
.widget-grid .dashboard-widget{container-type:inline-size}
.widget-grid .dashboard-widget>.card{overflow:hidden;padding:clamp(18px,6cqw,28px);transition:background-color .2s ease}
.widget-size-control{position:absolute;z-index:3;top:10px;left:12px;right:12px;padding:5px 8px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:12px;box-shadow:0 4px 16px #0001}
.widget-size-control label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.widget-grid.is-editing .dashboard-widget>.card{padding-top:64px}
.widget-resize-handle{position:absolute;right:10px;bottom:10px;z-index:4;width:30px;height:30px;display:grid;place-items:center;border-radius:10px;background:var(--canvas);color:var(--ink);border:1px solid var(--line);cursor:nwse-resize;touch-action:none;box-shadow:0 2px 8px #0002}.widget-resize-handle svg{width:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.widget-resize-handle:focus-visible{outline:3px solid #7f9d92;outline-offset:3px}.widget-grid .is-resizing>.card{outline:2px solid #7f9d92;box-shadow:0 12px 32px #0002}
.widget-grid .direction-simple{background:radial-gradient(ellipse at 95% 0%,#829aa7 0,transparent 55%),radial-gradient(ellipse at 5% 100%,#9b8964 0,transparent 60%),#345b52;color:#fff}
.widget-grid .direction-simple h3,.widget-grid .direction-simple .card-head p,.widget-grid .direction-simple .outlook-note,.widget-grid .direction-simple .weight-outlook small,.widget-grid .direction-simple .weight-outlook em,.widget-grid .direction-simple .weight-outlook>div>span{color:#ffffffd9}.widget-grid .direction-simple .weight-outlook>div{border-color:#ffffff30}
.widget-grid .weight-outlook{width:100%;margin:auto 0}.widget-grid .weight-outlook strong{font-size:clamp(25px,5cqw,52px)}.widget-grid .weight-outlook>div{min-width:0;padding:0 12px}.widget-grid .weight-outlook>div:first-child{padding-left:0}
.widget-grid .widget-2x2 .weight-outlook{grid-template-columns:repeat(2,minmax(0,1fr));gap:30px}.widget-grid .widget-2x2 .weight-outlook>div{border:0;padding:16px;background:#ffffff12;border-radius:18px}
.widget-grid .composition-card .composition-hero{margin:auto 0;display:flex;align-items:baseline;gap:8px}.widget-grid .composition-card .composition-hero strong{font-size:clamp(38px,16cqw,90px);line-height:1;font-weight:500}.widget-grid .composition-card .composition-hero small{color:#ffffffbf}
.widget-grid .composition-card .composition-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}.widget-grid .composition-grid>span{padding:10px;border-radius:14px;background:#ffffff1c;font-size:.65rem;display:flex;flex-direction:column;gap:4px;min-width:0;color:#ffffffd9}.widget-grid .composition-grid b{font-size:clamp(13px,4cqw,24px);color:white;white-space:nowrap}
.widget-grid .widget-1x1 .composition-card{gap:8px}.widget-grid .widget-1x1 .composition-hero strong{font-size:42px}.widget-grid .widget-1x1 .composition-grid>span{padding:7px}.widget-grid .widget-1x1 .composition-grid b{font-size:14px}.widget-grid .widget-2x1 .composition-card{display:grid;grid-template-columns:1fr 1.7fr;align-content:center;gap:18px}.widget-grid .widget-2x1 .composition-card>.row{grid-column:1/-1}.widget-grid .widget-2x1 .composition-hero{margin:0}.widget-grid .widget-1x2 .composition-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.widget-grid .widget-1x2 .composition-grid>span,.widget-grid .widget-2x2 .composition-grid>span{padding:20px 14px}
.habit-toggle{width:40px;height:24px;border-radius:99px;background:#d5d4d0;display:block;flex-shrink:0;position:relative;transition:background .2s ease}.habit-toggle::after{content:'';position:absolute;width:18px;height:18px;top:3px;left:3px;border-radius:50%;background:white;box-shadow:0 1px 3px #0002;transition:transform .2s ease}.habit-toggle.is-on{background:#397b66}.habit-toggle.is-on::after{transform:translateX(16px)}
.widget-grid .activity-item{display:grid;grid-template-columns:32px minmax(0,1fr) 40px;gap:12px;align-items:center}.widget-grid .activity-item>span:nth-child(2){min-width:0}.widget-grid .activity-item strong{font-size:.8rem;white-space:normal}.day-habit .habit-toggle{margin-left:auto}.day-habit[role=switch]{background:transparent}.day-habit[role=switch]:focus-visible{outline:2px solid #397b66;outline-offset:3px}
.widget-grid .widget-2x1 .activity-list,.widget-grid .widget-2x2 .activity-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;align-content:space-evenly}.widget-grid .widget-1x2 .activity-list{display:flex;flex-direction:column;justify-content:space-evenly}.widget-grid .activity-list{overflow:auto;margin:0}
.widget-grid .widget-1x1 .activity-item{grid-template-columns:minmax(0,1fr) 40px;padding:5px 0;gap:8px}.widget-grid .widget-1x1 .activity-icon,.widget-grid .widget-1x1 .activity-item small{display:none}.widget-grid .widget-1x1 .dashboard-today .card-head p{font-size:.65rem}.widget-grid .widget-1x1 .dashboard-today{gap:6px}.widget-grid .widget-1x1 .dashboard-today>.btn{padding:6px}
.widget-grid .widget-1x2 .energy-summary,.widget-grid .widget-2x2 .energy-summary{justify-content:space-between}.widget-grid .widget-1x2 .energy-summary .energy-explanation,.widget-grid .widget-2x2 .energy-summary .energy-explanation,.widget-grid .widget-1x2 .energy-summary>.meta,.widget-grid .widget-2x2 .energy-summary>.meta{display:block}.widget-grid .widget-1x1 .energy-summary .row{gap:4px}.widget-grid .widget-1x1 .energy-summary h3{font-size:.85rem}.widget-grid .widget-1x1 .energy-baseline{font-size:.7rem}.widget-grid .widget-2x2 .energy-total strong{font-size:5rem}
.widget-grid .widget-2x1 .streak-widget{display:grid;grid-template-columns:1fr 1fr;align-items:center}.widget-grid .widget-2x1 .streak-widget>.row{grid-column:1/-1}.widget-grid .widget-2x1 .streak-widget>.meta{margin:0}.widget-grid .widget-2x2 .streak-hero strong{font-size:8rem}.widget-grid .widget-1x2 .streak-hero strong{font-size:6rem}
.rhythm-table-card .rhythm-table tbody tr td,.rhythm-table-card .rhythm-table thead th{border-left:0!important;border-right:0!important}
@container(max-width:360px){.widget-grid .weight-outlook{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.widget-grid .weight-outlook>div{border:0;padding:0}.widget-grid .weight-outlook strong{font-size:27px}.widget-grid .outlook-note{font-size:.6rem}.widget-grid .card h3{font-size:.9rem}}
@media(max-width:600px){.dashboard-custom-grid.widget-grid,.dashboard-custom-grid.widget-grid:has(.widget-size-control){grid-auto-rows:auto}.widget-grid .dashboard-widget>.card{min-height:280px;height:auto;overflow:visible}.widget-grid .widget-1x2>.card,.widget-grid .widget-2x2>.card{min-height:440px}.widget-grid .widget-2x1 .composition-card{display:flex}.widget-grid .widget-2x1 .activity-list,.widget-grid .widget-2x2 .activity-list{display:flex;flex-direction:column}.widget-grid .activity-item{padding:10px 0}.widget-grid .widget-2x2 .weight-outlook{gap:16px}.widget-grid.is-editing .dashboard-widget>.card{padding-top:64px}.widget-resize-handle{display:none}}
@media(prefers-reduced-motion:reduce){.habit-toggle,.habit-toggle::after{transition:none}}

/* Fixed hierarchy: composition first, compact supporting cards. */
.dashboard-custom-grid.widget-grid.fixed-dashboard{grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:auto;grid-auto-flow:row;gap:20px}
.fixed-dashboard .dashboard-widget{grid-column:span 2;grid-row:auto;height:260px;container-type:normal}
.fixed-dashboard .widget-body{grid-column:span 4;height:440px}.fixed-dashboard .widget-today{height:440px}
.fixed-dashboard .dashboard-widget>.card{padding:24px;height:100%;overflow:hidden}
.fixed-dashboard .widget-body .composition-hero{margin:auto 0}.fixed-dashboard .widget-body .composition-hero strong{font-size:88px}.fixed-dashboard .widget-body .composition-grid{gap:12px}.fixed-dashboard .widget-body .composition-grid>span{padding:15px 18px;font-size:.8rem}.fixed-dashboard .widget-body .composition-grid b{font-size:1.35rem}
.composition-card .composition-hero small,.widget-grid .composition-card .composition-hero small{color:#19191b;background:#f2f0ea;border-radius:8px;padding:4px 7px;font-size:.85rem;line-height:1.3;letter-spacing:0;margin-left:8px}
.fixed-dashboard .widget-today .activity-list{display:flex;flex-direction:column;justify-content:space-evenly;overflow:auto}.fixed-dashboard .widget-today .activity-item{padding:5px 0}.fixed-dashboard .widget-today .card-head p{font-size:.7rem}
.fixed-dashboard .widget-direction .weight-outlook{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.fixed-dashboard .widget-direction .weight-outlook>div{padding:0;border:0;gap:3px}.fixed-dashboard .widget-direction .weight-outlook strong{font-size:1.8rem;line-height:1.1}.fixed-dashboard .widget-direction .weight-outlook em{display:none}.fixed-dashboard .widget-direction .outlook-note{font-size:.58rem;line-height:1.3}.fixed-dashboard .widget-direction .card-head h3{font-size:1rem}.fixed-dashboard .widget-direction .card-head p{font-size:.7rem}
.energy-summary .energy-total{font-size:inherit;letter-spacing:normal;line-height:1.2;gap:10px;flex-wrap:wrap}.widget-grid .energy-summary .energy-total>span{font-size:.8rem;letter-spacing:normal;line-height:1.4;color:var(--ink);white-space:nowrap;flex-shrink:0}.fixed-dashboard .energy-summary .energy-total strong{font-size:2.6rem}.fixed-dashboard .energy-baseline{font-size:.75rem;padding:10px 0}.fixed-dashboard .energy-summary h3{font-size:.9rem}.fixed-dashboard .energy-summary .row{gap:8px}.fixed-dashboard .energy-summary .energy-link{margin-top:auto}
.habit-toggle.is-on{background:#19191b}.day-habit[role=switch]:focus-visible{outline-color:var(--ink)}
@media(max-width:1100px){.dashboard-custom-grid.widget-grid.fixed-dashboard{grid-template-columns:repeat(2,minmax(0,1fr))}.fixed-dashboard .dashboard-widget{grid-column:span 1}.fixed-dashboard .widget-body,.fixed-dashboard .widget-today{height:440px}.fixed-dashboard .widget-body .composition-hero strong{font-size:64px}.fixed-dashboard .widget-body .composition-grid>span{padding:10px}.fixed-dashboard .widget-body .composition-grid b{font-size:1rem}}
@media(max-width:600px){.dashboard-custom-grid.widget-grid.fixed-dashboard{grid-template-columns:minmax(0,1fr)}.fixed-dashboard .dashboard-widget{grid-column:auto;height:auto}.fixed-dashboard .dashboard-widget>.card{min-height:0;height:auto}.fixed-dashboard .widget-body>.card{min-height:380px}.fixed-dashboard .widget-today>.card{min-height:430px}.fixed-dashboard .widget-direction>.card,.fixed-dashboard .widget-energy>.card{min-height:260px}.fixed-dashboard .widget-streaks>.card{min-height:180px}.fixed-dashboard .widget-body .composition-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* Day editor and calendar: quiet, neutral surfaces with a clear selected day. */
.day-editor-heading .settings-kicker{display:block;font-size:.7rem;color:var(--muted);letter-spacing:0}.day-habit-choice input.switch:before{width:18px;height:18px;top:3px;left:3px}.day-habit-choice input.switch:checked:before{transform:translateX(16px)}
.modal.wide:has(#day-form){max-width:780px;padding:26px 28px;background:var(--surface,#fff);border-radius:30px}.overlay:has(#day-form){align-items:center;padding:16px}
.day-editor-heading{padding-right:44px;margin-bottom:18px}.day-editor-heading h2{font-size:1.65rem;margin:5px 0}.day-editor-heading p{font-size:.8rem;color:var(--muted);margin:0}
.day-editor-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:20px}.day-editor-grid h3{font-size:.9rem;font-weight:550;margin:0 0 12px}.day-editor-context{padding-right:18px;border-right:1px solid var(--line)}.day-context-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:13px}.day-context-fields .input{min-width:0;width:100%;padding:9px 12px;min-height:40px}.day-context-fields .field-label{font-size:.72rem}.day-editor-context textarea{width:100%;min-height:70px;resize:vertical;padding:10px;font-size:.8rem}.day-editor-help{display:block;margin-top:5px;color:var(--muted);font-size:.65rem}
.day-habit-choices{display:grid;gap:0;max-height:255px;overflow:auto}.day-habit-choice{display:grid;grid-template-columns:26px minmax(0,1fr) 40px;align-items:center;gap:9px;padding:8px 0;border-bottom:1px solid var(--line);font-size:.8rem;cursor:pointer;background:none}.day-habit-choice:last-child{border:0}.day-habit-choice .metric-icon{width:26px;height:26px;border-radius:50%;background:var(--canvas);color:var(--ink)}.day-habit-choice .metric-icon svg{width:15px;height:15px}.day-habit-choice input.switch{width:40px;height:24px;min-width:40px;accent-color:#19191b}.day-habit-choice input.switch:checked{background:#19191b;border-color:#19191b}
.day-editor-footer{margin-top:16px;padding-top:14px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px}.day-editor-footer>span{font-size:.7rem;color:var(--muted)}.day-editor-footer .btn{padding:10px 17px}
.fixed-dashboard .widget-direction .direction-essential{background:var(--surface,#fff);color:var(--ink)}.widget-grid .direction-essential h3,.widget-grid .direction-essential .weight-outlook strong{color:var(--ink)}.widget-grid .direction-essential .card-head p,.widget-grid .direction-essential .outlook-note,.widget-grid .direction-essential .weight-outlook small,.widget-grid .direction-essential .weight-outlook>div>span{color:var(--muted)}.fixed-dashboard .widget-direction .direction-essential .weight-outlook{gap:20px;margin:auto 0}.fixed-dashboard .widget-direction .direction-essential .weight-outlook strong{font-size:2rem}.fixed-dashboard .widget-direction .direction-essential .outlook-note{font-size:.65rem}
.weekly-rhythm h3{margin:0}.week-headline{display:flex;align-items:baseline;gap:12px}.week-headline>strong{font-size:2rem;letter-spacing:-.04em;font-weight:550}.week-headline strong small{font-size:1rem;color:var(--muted);font-weight:400}.week-headline>span{font-size:.7rem;color:var(--muted)}.week-mini-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;margin:auto 0}.week-mini-bars>div{display:grid;gap:7px;text-align:center}.week-bar-track{height:50px;border-radius:7px;background:var(--canvas);display:flex;align-items:flex-end;overflow:hidden}.week-bar-track i{display:block;width:100%;background:var(--ink);border-radius:7px}.week-mini-bars small{font-size:.65rem;color:var(--muted)}.weekly-rhythm .energy-link{margin-top:0}
.calendar-refined{grid-template-columns:minmax(0,1fr) 340px;gap:24px}.calendar-refined .calendar-card{padding:28px;border-radius:28px;align-self:start}.calendar-refined .month-title{font-size:1.65rem;font-weight:500;letter-spacing:-.04em}.calendar-refined .card-head{margin-bottom:26px}.calendar-refined .calendar-weekdays{padding-bottom:14px;font-size:.7rem}.calendar-refined .calendar-grid{gap:0;border-top:1px solid var(--line);border-left:1px solid var(--line);border-radius:16px;overflow:hidden}
.calendar-refined .calendar-day{min-height:98px;border:0;border-radius:0;border-right:1px solid var(--line);border-bottom:1px solid var(--line);background:transparent;padding:12px;transition:background .15s ease;box-shadow:none}.calendar-refined .calendar-day:hover{transform:none;background:var(--canvas)}.calendar-refined .calendar-day.selected{background:var(--canvas);box-shadow:inset 0 0 0 1px var(--ink)}.calendar-refined .calendar-day>span{font-size:.8rem;font-weight:500}.calendar-refined .calendar-day.today>span{margin:-3px;background:var(--ink);color:var(--surface,#fff);width:25px;height:25px}.calendar-refined .calendar-day.outside{opacity:1;background:color-mix(in srgb,var(--canvas) 40%,transparent);color:var(--muted)}.calendar-refined .calendar-day.outside .day-signal,.calendar-refined .calendar-day.outside small{opacity:.45}
.calendar-refined .day-signal{padding:0;background:none!important;gap:4px;margin-top:14px;height:8px}.calendar-refined .day-signal i{width:4px;height:4px;background:var(--line);border-radius:50%}.calendar-refined .day-signal i.filled{background:var(--ink)}.calendar-refined .calendar-day small{font-size:.66rem;left:12px;bottom:12px;color:var(--muted)}.calendar-refined .composition-dot{background:#a59ab9;box-shadow:none;width:5px;height:5px}.calendar-refined .calendar-legend{font-size:.65rem;gap:16px;margin-top:18px}.calendar-refined .calendar-legend .legend-habit{width:5px;height:5px;background:var(--ink)}.calendar-refined .day-inspector>.card{border-radius:24px;padding:24px}.calendar-refined .day-inspector h3{font-size:1rem;line-height:1.3}.calendar-refined .day-inspector .card-head{margin-bottom:12px}.calendar-refined .day-inspector .card-head p{font-size:.72rem}.calendar-refined .day-inspector .pill{background:var(--canvas);color:var(--ink)}.calendar-refined .day-habit{font-size:.78rem;padding:9px 0}.calendar-refined .day-habit .metric-icon{width:30px;height:30px}.calendar-refined .form-actions{gap:8px;justify-content:space-between;margin-top:18px}.calendar-refined .form-actions .btn{padding:10px 12px;font-size:.7rem}
.calendar-context dl{display:grid;margin:16px 0 0}.calendar-context dl>div{display:flex;justify-content:space-between;padding:10px 0;border-bottom:1px solid var(--line);font-size:.75rem}.calendar-context dt{color:var(--muted)}.calendar-context dd{margin:0;font-weight:500}.calendar-context .meta,.calendar-day-note{font-size:.75rem;line-height:1.6;margin:16px 0 0;overflow-wrap:anywhere}.calendar-day-note{padding:12px;background:var(--canvas);border-radius:12px}
@media(max-width:1100px){.calendar-refined{grid-template-columns:minmax(0,1fr) 300px}.calendar-refined .calendar-card{padding:20px}.calendar-refined .calendar-day{min-height:84px;padding:8px}.calendar-refined .calendar-day small{left:8px;font-size:.6rem}}
@media(max-width:760px){.calendar-refined{grid-template-columns:minmax(0,1fr)}.calendar-refined .day-inspector{display:grid;grid-template-columns:1fr}.day-editor-grid{grid-template-columns:1fr;gap:22px}.day-editor-context{padding:0;border:0}.modal.wide:has(#day-form){padding:24px 20px}.day-editor-footer{align-items:stretch;flex-direction:column}.day-editor-footer .row{justify-content:flex-end}.calendar-refined .calendar-day{min-height:76px}.calendar-refined .calendar-card{padding:16px}.calendar-refined .calendar-legend>span:last-child{display:none}}
@media(max-width:560px){.day-context-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Final chart and context treatments. */
.progress-main .chart-stage:has(.combined-chart){height:auto;overflow:visible}.progress-main .combined-chart svg{height:auto;aspect-ratio:820/265}.progress-main .chart-card:has(.combined-chart){min-height:0}
.composition-card .composition-hero small,.widget-grid .composition-card .composition-hero small{color:#fff;background:transparent;border:0;padding:0;border-radius:0;font-size:1rem;letter-spacing:0}
.fixed-dashboard .widget-direction>.card.direction-essential{background:var(--surface,#fff)!important;color:var(--ink);background-image:none!important}
.fixed-dashboard .widget-direction>.card.direction-essential::before,.fixed-dashboard .widget-direction>.card.direction-essential::after{display:none}
.fixed-dashboard .widget-direction .direction-essential h3,.fixed-dashboard .widget-direction .direction-essential .weight-outlook strong{color:var(--ink)}
.combined-chart svg{width:100%;height:auto;display:block;overflow:visible}.combined-legend{display:flex;flex-wrap:wrap;gap:12px 20px;margin:18px 0 0}.combined-legend>span{display:grid;grid-template-columns:8px auto;align-items:center;gap:4px 7px;font-size:.7rem;color:var(--muted)}.combined-legend i{width:7px;height:7px;border-radius:50%}.combined-legend b{grid-column:2;font-size:.8rem;font-weight:500;color:var(--ink)}.combined-note{font-size:.65rem;color:var(--muted);line-height:1.5;margin-top:16px}.progress-main .chart-card .card-head p{max-width:520px}.metric-segment{max-width:100%;overflow-x:auto}.metric-segment button{white-space:nowrap}
.progress-change-cards .progress-change{min-height:0;padding:24px;display:flex;flex-direction:column;gap:15px;border-radius:24px}.change-label{display:flex;align-items:center;gap:8px;font-size:.8rem}.change-label i{width:8px;height:8px;background:var(--metric-color);border-radius:50%}.change-value{font-size:2.5rem;letter-spacing:-.05em;font-weight:500;color:var(--metric-color);line-height:1.1}.change-value small{font-size:.75rem;letter-spacing:0;color:var(--muted);margin-left:8px}.change-endpoints{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);padding-top:13px;font-size:.9rem}.change-endpoints small{display:block;margin-top:4px;color:var(--muted);font-size:.65rem}.change-endpoints>span:last-child{text-align:right}.change-endpoints>span:nth-child(2){color:var(--muted)}.progress-change p{font-size:.75rem;color:var(--muted)}
.fixed-dashboard .weekly-blocks{gap:6px}.weekly-blocks .week-caption{margin:0;font-size:.75rem;color:var(--muted)}.week-calendar-link{color:var(--muted)}.week-calendar-link svg{width:18px;height:18px}.week-block-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;margin-top:auto}.week-block-chart>div{display:grid;gap:9px;text-align:center}.week-block{display:block;height:64px;border-radius:13px}.week-block.recorded{background:var(--ink)}.week-block.unrecorded{background:repeating-linear-gradient(135deg,transparent 0 5px,var(--line) 5px 7px);border-radius:0}.week-block-chart small{font-size:.7rem;color:var(--muted)}.week-chart-note{font-size:.6rem;color:var(--muted);margin:8px 0 0}
.calendar-refined .context-designed{background:var(--surface,#fff);padding:24px}.context-eyebrow{display:block;color:var(--muted);font-size:.65rem;margin-bottom:5px}.context-designed .row h3{margin:0;font-weight:550}.context-designed .context-metrics{display:grid;gap:10px;margin-top:20px}.context-metric{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:var(--canvas)}.context-metric-icon{width:30px;height:30px;display:grid;place-items:center;color:var(--ink)}.context-metric-icon svg{width:19px;height:19px}.context-metric>span:last-child{display:flex;flex:1;align-items:center;justify-content:space-between;gap:10px}.context-metric small{font-size:.75rem;color:var(--muted)}.context-metric strong{font-size:.9rem;font-weight:500}.context-metric.is-empty strong{font-size:.7rem;color:var(--muted);font-weight:400}.context-note{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.context-note>span{font-size:.7rem;font-weight:550}.context-note p{font-size:.75rem;color:var(--muted);line-height:1.6;margin:8px 0 0;overflow-wrap:anywhere}
:root[data-theme=dark] .change-value{filter:brightness(1.4)}:root[data-theme=dark] .combined-chart polyline,:root[data-theme=dark] .combined-chart circle{filter:brightness(1.4)}
@media(max-width:600px){.combined-legend{gap:12px}.progress-change-cards .progress-change{padding:20px}.week-block{height:64px}.fixed-dashboard .weekly-blocks{min-height:240px}}
/* Registration dialogs and quieter settings. */
.settings-section .setting-line,.settings-section .setting-row,.settings-section .widget-line,.settings-section .profile-identity,.settings-section .security-grid span,.settings-section .cloud-status,.settings-card .widget-line{border-top:0!important;border-bottom:0!important}.settings-section hr,.settings-panel hr{display:none}.settings-section .widget-line{padding-top:18px;padding-bottom:18px}
.registration-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:12px}.registration-footer>span{font-size:.75rem;color:var(--muted)}
@media(min-width:900px){
 .overlay:has(form){align-items:center;padding:24px}
 .modal:has(#meal-form),.modal:has(#habit-form){width:min(1120px,calc(100vw - 64px));max-width:1120px;padding:32px;border-radius:30px;max-height:calc(100dvh - 48px);overflow:auto}
 .modal:has(form) h2{font-size:2rem;line-height:1.15;padding-right:45px}.modal:has(form)>p{font-size:.9rem;margin:12px 0 24px}
 .modal form .input{min-height:44px;padding:10px 14px;font-size:.9rem}.modal form .field-label{font-size:.78rem;margin-bottom:7px}
 #meal-form{gap:24px}#meal-form .meal-identity{grid-template-columns:1fr 1fr 2fr;gap:20px}#meal-form .meal-nutrients{grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}#meal-form .btn{min-width:190px}
 #habit-form{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:22px}#habit-form>.btn{grid-column:1/-1;justify-self:end;min-width:190px}.modal:has(#habit-form)>.pill{display:none}
 .modal form .day-editor-footer,.modal form .advanced-fields,.modal form .day-habit-choice{border-top:0;border-bottom:0}
}
@media(max-width:899px){#meal-form .meal-nutrients{grid-template-columns:repeat(2,minmax(0,1fr))}#meal-form .meal-identity{grid-template-columns:1fr 1fr}#meal-form .meal-identity>div:last-child{grid-column:1/-1}.registration-footer{flex-direction:column;align-items:stretch}}
/* Calendar, rhythm and motion refinement. */
.calendar-refined{align-items:start}.calendar-refined .calendar-card{align-self:start;display:flex;flex-direction:column;padding:30px;border-radius:30px}.calendar-refined .calendar-grid{flex:none;grid-auto-rows:108px;align-content:start;gap:8px;border:0;border-radius:0;overflow:visible}.calendar-refined .calendar-day{border:0;border-radius:16px;background:color-mix(in srgb,var(--canvas) 45%,var(--surface));min-height:0;padding:14px;box-shadow:none}.calendar-refined .calendar-day.outside{background:transparent;opacity:.4}.calendar-refined .calendar-day.selected{background:var(--ink);color:var(--surface);box-shadow:0 6px 18px #0002}.calendar-refined .calendar-day.selected small{color:var(--surface)}.calendar-refined .calendar-day.today>span{margin:0}.calendar-refined .calendar-day.selected.today>span{background:var(--surface);color:var(--ink)}.calendar-refined .calendar-day:hover:not(.selected){background:var(--soft);transform:translateY(-2px)}.calendar-refined .day-signal .day-track{display:block;width:38px;height:4px;border-radius:10px;background:var(--line);overflow:hidden}.day-track b{display:block;height:100%;background:#7d9c8d;border-radius:10px}.calendar-refined .day-inspector{align-self:start;display:flex;flex-direction:column;gap:20px}.calendar-refined .context-designed{flex:none}.calendar-refined .calendar-weekdays{font-size:.75rem;padding:8px 0 20px}.calendar-refined .month-title{text-transform:none}.calendar-refined .calendar-legend{padding-top:14px;margin-top:16px;border-top:1px solid var(--line)}
.streak-inline{display:inline-flex;align-items:center;gap:6px;padding:10px 14px;background:#f7ecdf;color:#80572e;border-radius:999px;font-size:.8rem;white-space:nowrap}.fixed-dashboard .widget-direction,.fixed-dashboard .widget-energy{grid-column:span 3}.week-block.complete{background:#598875}.week-block.partial{background:#d2af63}.week-block.starting{background:#cf8e7d}.week-block{transition:background .35s ease,transform .35s ease}.week-block:hover{transform:translateY(-4px)}.fixed-dashboard .weight-outlook .outlook-current strong{color:#598875!important}.confidence-number small{color:#fff!important}
.progress-main .chart-card,.progress-main .chart-card:has(.combined-chart){height:520px;min-height:520px;display:flex;flex-direction:column}.progress-main .chart-card .card-head{min-height:82px;margin-bottom:10px}.progress-main .chart-stage,.progress-main .chart-stage:has(.combined-chart){height:340px;min-height:0;flex:1;overflow:visible}.progress-main .chart-stage>svg,.progress-main .combined-chart svg{width:100%;height:255px;aspect-ratio:auto}.progress-main .combined-chart{height:100%}.combined-legend{margin-top:8px;gap:8px 18px}.combined-note{margin-top:8px;font-size:.6rem}.single-legend{display:flex;align-items:center;gap:8px;font-size:.8rem;margin-top:10px;height:52px}.single-legend[hidden]{display:none}.single-legend i{width:8px;height:8px;border-radius:50%}.single-legend span{color:var(--muted)}.chart-line{stroke-linecap:round;stroke-linejoin:round}
@keyframes page-arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
body:not(.reduce-motion) #main{animation:page-arrive .45s cubic-bezier(.22,1,.36,1) both}body:not(.reduce-motion) .chart-stage{animation:page-arrive .5s ease both}.btn,.calendar-day,.metric-segment button{transition:background .25s ease,color .25s ease,box-shadow .25s ease,transform .25s ease}
@media(prefers-reduced-motion:reduce){#main,.chart-stage{animation:none!important}*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:760px){.calendar-refined .calendar-card{padding:18px}.calendar-refined .calendar-grid{gap:4px}.calendar-refined .calendar-day{min-height:74px;padding:8px;border-radius:10px}.calendar-refined .day-signal .day-track{width:24px}.calendar-refined .calendar-day small{display:none}.fixed-dashboard .widget-direction,.fixed-dashboard .widget-energy{grid-column:1/-1}.progress-main .chart-card,.progress-main .chart-card:has(.combined-chart){height:560px;min-height:560px}.combined-legend{gap:8px 12px}.streak-inline{font-size:.7rem}}
.settings-section .account-summary,.settings-section .device-row,.settings-section .settings-footnote{border-top:0!important;border-bottom:0!important}
.widget-grid .composition-card .composition-grid>span,.composition-card .composition-grid>span{background:none!important;border:0;border-radius:0;box-shadow:none;padding:10px 4px;display:grid;grid-template-columns:28px 1fr;gap:4px 10px;align-items:center;color:#ffffffe0}
.composition-card .composition-grid>span>i{grid-row:1/3;align-self:start;padding-top:4px;font-style:normal;color:#fff}.composition-card .composition-grid>span>i svg{width:22px;height:22px}.composition-card .composition-grid>span>b{font-size:1.35rem;letter-spacing:-.03em}.composition-card .composition-grid{gap:14px 24px}
.native-series .series-name{font-family:var(--font);font-size:12px;font-weight:550}.native-series .series-value{font-family:var(--font);font-size:15px;font-weight:550}.progress-main .native-series svg{height:300px!important}.native-series .combined-note{margin-top:2px}
/* Proportional weekly bars and compact, continuous charts. */
.week-block-chart{margin-top:auto;gap:10px}.week-block-chart>div{display:flex;flex-direction:column;gap:8px}.week-bar-slot{height:110px;display:flex;flex-direction:column;justify-content:flex-end;gap:7px}.week-count{font-size:.72rem;font-weight:500;color:var(--muted)}.week-bar-slot .week-block{flex-shrink:0;border-radius:10px;min-height:4px}.weekly-blocks .week-caption{font-size:.7rem}
.fixed-dashboard .widget-direction{grid-column:span 2}.fixed-dashboard .widget-energy{grid-column:span 4}.fixed-dashboard .widget-direction .direction-essential .weight-outlook{gap:14px;justify-content:space-between;grid-template-columns:max-content max-content}.fixed-dashboard .widget-direction .direction-essential .weight-outlook strong{font-size:1.9rem}
.rhythm-table thead th{white-space:nowrap}.rhythm-table thead th small{display:inline!important;font-size:inherit;margin:0 0 0 3px;font-weight:400}
.modal>.pill,.modal>.badge{display:none}.modal>.pill+h2,.modal>.badge+h2{margin-top:0!important}
.progress-main .chart-card,.progress-main .chart-card:has(.combined-chart){height:450px;min-height:450px;padding:26px}.progress-main .chart-card .card-head{min-height:58px;margin-bottom:0}.progress-main .chart-stage,.progress-main .chart-stage:has(.combined-chart){flex:1;height:auto;margin-top:4px}.progress-main .combined-chart{display:flex;flex-direction:column;gap:6px;height:100%}.progress-main .chart-stage>svg,.progress-main .combined-chart svg{height:270px;width:100%;display:block}.progress-main .combined-legend{display:flex;gap:12px 22px;margin:0;align-items:center}.combined-legend>span{display:flex;gap:7px;font-size:.72rem;color:var(--muted)}.combined-legend i{width:18px;height:3px;border-radius:3px}.combined-note{margin:4px 0 0;font-size:.6rem}.single-legend{height:auto;margin:8px 0 0}.progress-main .confidence-card{min-height:450px}.progress-main .chart-grid line{stroke:var(--line)}
@media(max-width:1000px){.fixed-dashboard .widget-direction,.fixed-dashboard .widget-energy{grid-column:span 3}}
@media(max-width:760px){.fixed-dashboard .widget-direction,.fixed-dashboard .widget-energy{grid-column:1/-1}.progress-main .chart-card,.progress-main .chart-card:has(.combined-chart){height:460px;min-height:460px;padding:20px}.progress-main .combined-chart svg,.progress-main .chart-stage>svg{height:250px}.combined-legend>span{font-size:.65rem}.progress-main .combined-legend{gap:8px 12px}.week-bar-slot{height:110px}}

/* Today: denser reading order and a compact composition instrument. */
.today-pulse{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(0,2.3fr) auto;align-items:center;gap:22px;margin:0 0 20px;padding:18px 20px;background:var(--surface);border:1px solid var(--line);border-radius:24px;box-shadow:0 2px 2px #21211904,0 18px 32px -28px #26252242}
.today-pulse-copy{min-width:0;display:grid;gap:3px}.today-pulse-copy>span{font-size:.75rem;color:var(--muted)}.today-pulse-copy>strong{font-size:.9rem;font-weight:500;line-height:1.35;overflow-wrap:anywhere}
.today-pulse-signals{min-width:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center}
.today-signal{min-width:0;display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;gap:9px;padding:2px 14px;border-inline-start:1px solid var(--line)}.today-signal>span:first-child{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--canvas);color:var(--ink)}.today-signal svg{width:15px;height:15px}.today-signal small,.today-signal strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.today-signal small{font-size:.68rem;color:var(--muted)}.today-signal strong{font-size:.78rem;font-weight:500;margin-top:2px}.today-signal.is-missing strong{color:var(--muted);font-weight:400}
.today-pulse>.btn{white-space:nowrap}
.fixed-dashboard .widget-body,.fixed-dashboard .widget-today{grid-column:span 3;height:360px}
.fixed-dashboard .widget-direction,.fixed-dashboard .widget-energy{grid-column:span 3;height:280px}
.fixed-dashboard .widget-body .composition-hero{margin:8px 0}.fixed-dashboard .widget-body .composition-hero strong{font-size:64px}.fixed-dashboard .widget-body .composition-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.fixed-dashboard .widget-body .composition-grid>span{padding:10px 12px}.fixed-dashboard .widget-body .composition-grid b{font-size:1rem}

@media(max-width:1100px){.today-pulse{grid-template-columns:1fr auto}.today-pulse-signals{grid-column:1/-1;grid-row:2}.today-signal:first-child{border-inline-start:0;padding-inline-start:0}.fixed-dashboard .widget-body,.fixed-dashboard .widget-today{height:390px}}
@media(max-width:700px){.today-pulse{grid-template-columns:1fr;padding:18px}.today-pulse>.btn{width:100%}.today-pulse-signals{grid-column:auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 0}.today-signal:nth-child(odd){border-inline-start:0;padding-inline-start:0}.fixed-dashboard .widget-body,.fixed-dashboard .widget-today,.fixed-dashboard .widget-direction,.fixed-dashboard .widget-energy{height:auto}.fixed-dashboard .widget-body>.card{min-height:330px}.fixed-dashboard .widget-body .composition-hero strong{font-size:56px}}

.session-loading{min-height:100svh;display:grid;place-content:center;justify-items:center;gap:14px;color:var(--muted)}.session-loader{width:28px;height:28px;border:2px solid var(--line);border-top-color:var(--ink);border-radius:50%;animation:ritmo-spin .8s linear infinite}@keyframes ritmo-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.session-loader{animation:none;border-top-color:var(--line)}}

/* Production home mosaic: size communicates priority instead of repeating one card. */
.dashboard-mosaic{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:170px;grid-auto-flow:dense;gap:18px;margin-top:20px}.dashboard-mosaic>.mosaic-1x1{grid-column:span 1;grid-row:span 1}.dashboard-mosaic>.mosaic-2x1{grid-column:span 2;grid-row:span 1}.dashboard-mosaic>.mosaic-1x2{grid-column:span 1;grid-row:span 2}.dashboard-mosaic>.mosaic-2x2{grid-column:span 2;grid-row:span 2}.dashboard-mosaic>.mosaic-4x2{grid-column:1/-1;grid-row:span 2}.dashboard-mosaic>.dashboard-widget,.dashboard-mosaic>.dashboard-widget>.card{min-width:0;min-height:0;height:100%}.dashboard-mosaic>.dashboard-widget>.card{overflow:hidden}.measurements-home{margin-top:20px}
.dashboard-mosaic .composition-card{padding:24px}.dashboard-mosaic .composition-hero{margin:4px 0 10px}.dashboard-mosaic .composition-hero strong{font-size:clamp(3.4rem,6vw,5.8rem)}.dashboard-mosaic .composition-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 12px}.dashboard-mosaic .composition-grid>span{padding:5px 2px}.dashboard-mosaic .composition-grid>span>b{font-size:1rem}.dashboard-mosaic .composition-grid>span>i svg{width:17px;height:17px}
.dashboard-mosaic .dashboard-today{padding:24px}.dashboard-mosaic .dashboard-today .card-head{margin-bottom:10px}.dashboard-mosaic .dashboard-today .activity-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px;overflow:auto}.dashboard-mosaic .dashboard-today .activity-item{padding:8px 0}.dashboard-mosaic .dashboard-today>.btn{margin-top:auto}
.dashboard-mosaic .direction-essential{padding:22px;display:flex;flex-direction:column}.dashboard-mosaic .direction-essential .card-head p{font-size:.7rem}.dashboard-mosaic .direction-essential .weight-outlook{display:grid;grid-template-columns:1fr;gap:0;margin-top:auto}.dashboard-mosaic .direction-essential .weight-outlook>div{padding:11px 0;border-top:1px solid var(--line)}.dashboard-mosaic .direction-essential .weight-outlook span{font-size:.65rem}.dashboard-mosaic .direction-essential .weight-outlook strong{font-size:1.45rem}.dashboard-mosaic .direction-essential .outlook-note{font-size:.6rem;margin-top:8px}
.dashboard-mosaic .streak-widget{padding:22px;justify-content:space-between}.dashboard-mosaic .streak-hero strong{font-size:3rem}.dashboard-mosaic .streak-widget .meta{font-size:.66rem;line-height:1.45}.dashboard-mosaic .weekly-blocks{padding:22px}.dashboard-mosaic .weekly-blocks .week-bar-slot{height:76px}.dashboard-mosaic .weekly-blocks .week-block-chart{gap:8px}.dashboard-mosaic .weekly-blocks .week-count{font-size:.65rem}

.weekly-action-card{padding:26px 30px;display:grid;grid-template-columns:minmax(220px,.85fr) minmax(0,1.65fr);grid-template-rows:auto 1fr;gap:18px 30px}.weekly-action-head{grid-row:1/-1;display:flex;flex-direction:column;justify-content:space-between;min-width:0}.weekly-action-head h3{max-width:13ch;font-size:1.6rem;line-height:1.08;letter-spacing:-.035em}.weekly-action-head p{font-size:.72rem;color:var(--muted)}.weekly-score{display:grid;grid-template-columns:auto 1fr;align-items:end}.weekly-score strong{font-size:4.9rem;line-height:.88;letter-spacing:-.075em}.weekly-score>span{font-size:.8rem;color:var(--muted);padding:0 0 8px 7px}.weekly-score small{grid-column:1/-1;margin-top:9px;color:var(--muted);font-size:.68rem}.weekly-evidence{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-bottom:1px solid var(--line);padding-bottom:14px}.weekly-evidence>div{padding:0 16px;border-inline-start:1px solid var(--line);min-width:0}.weekly-evidence>div:first-child{padding-inline-start:0;border-inline-start:0}.weekly-evidence span,.weekly-evidence small{display:block;color:var(--muted);font-size:.65rem}.weekly-evidence strong{display:block;font-size:1.35rem;margin:7px 0 3px;white-space:nowrap}.weekly-actions{display:grid;gap:8px;align-content:start}.weekly-actions>div{display:grid;grid-template-columns:26px minmax(0,1fr) auto;gap:11px;align-items:center}.weekly-actions>div>span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:var(--canvas);font-size:.65rem;color:var(--muted)}.weekly-actions strong{font-size:.78rem}.weekly-actions p{font-size:.66rem;color:var(--muted);margin:2px 0 0;line-height:1.35}.weekly-actions .btn{white-space:nowrap;padding:8px 11px}

.community-card{padding:26px;display:flex;flex-direction:column}.community-card h3{font-size:1rem}.community-card p{font-size:.72rem;color:var(--muted);line-height:1.5}.community-plot{width:100%;height:170px;margin:8px 0}.community-plot>path{fill:none;stroke:var(--line);stroke-width:.6}.community-plot circle{fill:#ada2d7;stroke:var(--surface);stroke-width:1.5}.community-plot circle.leader{fill:#ff795e}.community-plot text{fill:var(--muted);font:3.5px var(--font)}.community-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:auto}.community-list>span{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 7px;min-width:0}.community-list b{grid-row:1/3;font-size:.65rem;color:var(--muted)}.community-list strong,.community-list small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.community-list strong{font-size:.7rem}.community-list small{font-size:.58rem;color:var(--muted)}.community-empty{justify-content:space-between}.community-empty-plot{height:120px;display:flex;align-items:flex-end;gap:12px;padding:12px 24px;border-bottom:1px solid var(--line)}.community-empty-plot i{width:18px;border-radius:18px 18px 5px 5px;background:var(--line)}.community-empty-plot i:nth-child(1){height:32%}.community-empty-plot i:nth-child(2){height:70%}.community-empty-plot i:nth-child(3){height:48%}.community-empty-plot i:nth-child(4){height:88%;background:#ada2d7}

.social-auth{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0 14px}.social-provider{min-width:0;justify-content:center;gap:9px}.social-provider svg{width:19px;height:19px;flex:0 0 auto}.auth-form>.divider{margin:14px 0}.session-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.session-actions .btn{padding:9px 12px;font-size:.7rem}.device-list{display:grid;gap:6px;max-height:220px;overflow:auto}.device-list .device-row{grid-template-columns:auto minmax(0,1fr) auto;padding:11px 0}.empty-inline{font-size:.75rem;color:var(--muted)}.community-settings .input.compact{max-width:190px;min-height:40px}.settings-card .community-settings p{max-width:55ch}
.social-auth{grid-template-columns:1fr}.social-auth .social-provider{width:min(100%,420px);margin-inline:auto}.social-auth .social-provider[hidden]{display:none}

/* The reference gradient is reserved for body composition in Hoy. */
.dashboard-mosaic .widget-body>.composition-card{background:linear-gradient(145deg,#a7c1b0 0%,#6f9080 42%,#344e47 100%);border:0;outline:0;overflow:hidden;background-clip:padding-box}
.dashboard-mosaic .widget-body>.composition-card::before{inset:-18%;background:radial-gradient(ellipse at 18% 12%,#bed6c4 0%,transparent 53%),radial-gradient(ellipse at 85% 76%,#899c64 0%,transparent 47%),linear-gradient(145deg,#87aa99,#344e47);filter:blur(28px)}
.dashboard-mosaic .widget-body>.composition-card .muted{color:#ffffffd9}
.greeting-streak{display:inline-flex;align-items:baseline;gap:.16em;white-space:nowrap;font-size:.68em;line-height:1;letter-spacing:0;vertical-align:baseline}

/* A compact seven-day instrument gives the weekly summary a human scale. */
.weekly-human-label{display:block;margin-bottom:11px;color:var(--green);font-size:.68rem;letter-spacing:0}
.weekly-day-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px;max-width:205px;margin-top:13px}
.weekly-day{display:grid;justify-items:center;gap:4px;min-width:0}
.weekly-day i{position:relative;width:100%;height:23px;overflow:hidden;border-radius:999px;background:var(--soft)}
.weekly-day i::after{content:"";position:absolute;inset:auto 0 0;height:var(--day-fill);border-radius:inherit;background:#87ab9a}
.weekly-day.is-recorded i{background:#dfe9e2}.weekly-day.is-empty i{background:repeating-linear-gradient(135deg,#e7e6e1 0 2px,#f3f2ee 2px 5px)}
.weekly-day.is-future i{background:var(--canvas);opacity:.55}
.weekly-day small{font-size:.58rem;line-height:1;color:var(--muted)}

@media(max-width:1100px){.dashboard-mosaic{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-mosaic>.mosaic-4x2{grid-column:1/-1}.dashboard-mosaic>.mosaic-2x2{grid-column:span 2}.weekly-action-card{grid-template-columns:210px minmax(0,1fr);padding:24px}.weekly-evidence{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.weekly-evidence>div:nth-child(3){border-inline-start:0;padding-inline-start:0}}
@media(max-width:780px){.dashboard-mosaic{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto}.dashboard-mosaic>.mosaic-1x1,.dashboard-mosaic>.mosaic-2x1,.dashboard-mosaic>.mosaic-1x2,.dashboard-mosaic>.mosaic-2x2,.dashboard-mosaic>.mosaic-4x2{grid-column:1/-1;grid-row:auto}.dashboard-mosaic>.dashboard-widget>.card{height:auto;min-height:280px}.dashboard-mosaic .direction-essential{min-height:360px}.weekly-action-card{grid-template-columns:1fr;grid-template-rows:auto;padding:24px}.weekly-action-head{grid-row:auto;display:grid;grid-template-columns:1fr auto;gap:14px}.weekly-score{justify-self:end}.weekly-score strong{font-size:3.4rem}.weekly-evidence{grid-template-columns:repeat(2,minmax(0,1fr))}.weekly-actions>div{grid-template-columns:26px minmax(0,1fr)}.weekly-actions .btn{grid-column:2;justify-self:start}.community-card{min-height:360px!important}.social-auth{grid-template-columns:1fr}.dashboard-mosaic .dashboard-today .activity-list{grid-template-columns:1fr}}

/* Compact date controls and a single, complete calendar inspector. */
.date-navigation{display:inline-flex;align-items:center;gap:8px}.date-navigation .btn,.page-head [data-action^="calendar-"]{min-height:42px}.date-arrow{width:44px;min-width:44px;padding:0!important;font-size:1.3rem;line-height:1}
.calendar-refined{grid-template-columns:minmax(0,1fr) minmax(320px,360px);align-items:start}.calendar-refined aside.stack{gap:0}.calendar-refined aside.stack>.card{min-width:0}
.calendar-inline-context{margin-top:18px;padding-top:15px;border-top:1px solid var(--line)}.calendar-inline-context h4{margin:0 0 10px;font-size:.78rem;font-weight:550}.calendar-inline-context .context-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0}.calendar-inline-context .context-metric{display:grid;justify-items:start;gap:4px;padding:9px;border-radius:11px}.calendar-inline-context .context-metric-icon{width:20px;height:20px}.calendar-inline-context .context-metric-icon svg{width:16px}.calendar-inline-context .context-metric>span:last-child{display:grid;gap:1px;min-width:0}.calendar-inline-context .context-metric small{font-size:.62rem}.calendar-inline-context .context-metric strong{font-size:.72rem;overflow-wrap:anywhere}.calendar-inline-context .context-note{margin-top:9px;padding-top:9px}

/* Measurement dialog uses two compact views so opening composition never grows the overlay. */
.overlay{overflow:hidden;align-items:center;padding:12px}
.overlay>.modal{max-height:calc(100dvh - 24px);overflow-x:hidden;overflow-y:auto}
.overlay:has(#product-weight-form){align-items:center;padding:12px;overflow:hidden}
.modal.wide:has(#product-weight-form){width:min(880px,100%);max-width:880px;max-height:calc(100dvh - 24px);overflow-x:hidden;overflow-y:auto;padding:24px 28px}
.modal:has(#product-weight-form)>p{margin-bottom:12px}
#product-weight-form{gap:12px}
#product-weight-form .weight-panel-tabs{display:flex;gap:8px;flex-wrap:wrap}
#product-weight-form .weight-panel-tabs .btn{padding:9px 16px;font-size:.78rem}
#product-weight-form .weight-primary-fields{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#product-weight-form .weight-composition-panel{border:0;padding:0;margin:0}
#product-weight-form .weight-composition-panel>summary{display:none}
#product-weight-form .weight-composition-panel>.form-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#product-weight-form .input{min-height:39px;padding:8px 11px}
#product-weight-form .product-measurement-note{display:grid;gap:5px;font-size:.75rem;font-weight:550}
#product-weight-form .product-measurement-note textarea{height:62px;min-height:62px;line-height:1.4;resize:vertical;font-weight:400}
#product-weight-form .field-label{margin-bottom:4px}
#product-weight-form .product-help{margin:0;font-size:.68rem;line-height:1.35;overflow-wrap:anywhere}
#product-weight-form>.btn{justify-self:end}
#product-weight-form [hidden]{display:none!important}
.modal:has(#product-weight-form) .close{top:19px;right:20px}

/* Keep switches fully within their row at every zoom level. */
.day-habit-choice{grid-template-columns:30px minmax(0,1fr) 44px;padding-right:5px;overflow:visible}
.day-habit-choice input.switch{display:block;width:40px;min-width:40px;height:24px;margin:0;justify-self:end;overflow:visible;border-radius:99px;appearance:none;-webkit-appearance:none}
.day-habit-choice input.switch::before{top:3px;left:3px;width:18px;height:18px;transform:translateX(0)}
.day-habit-choice input.switch:checked::before{transform:translateX(16px)}
.day-habit-choice:has(input:focus-visible){outline:2px solid var(--ink);outline-offset:2px}

@media(max-width:760px){.calendar-refined{grid-template-columns:1fr}.calendar-inline-context .context-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.modal.wide:has(#product-weight-form){padding:18px;width:calc(100vw - 20px)}#product-weight-form .weight-primary-fields,#product-weight-form .weight-composition-panel>.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
