.auth-page{background:var(--surface);grid-template-columns:1.08fr 1fr;min-height:100dvh;display:grid}.auth-story{background:var(--surface-muted);flex-direction:column;padding:40px clamp(28px,4.4vw,76px);display:flex}.auth-brand{width:fit-content;color:var(--accent);letter-spacing:-.9px;align-items:center;gap:11px;font-size:23px;font-weight:800;text-decoration:none;display:inline-flex}.auth-story-copy{max-width:560px;padding:68px 0 36px}.auth-story-copy h1{letter-spacing:-2.3px;margin:16px 0 20px;font-size:clamp(36px,3.65vw,58px);font-weight:650;line-height:1.12}.auth-story-copy>p:not(.eyebrow){color:var(--muted);max-width:390px;font-size:15px;line-height:1.7}.auth-methods{color:var(--accent);flex-wrap:wrap;gap:26px;margin-top:26px;font-size:12px;font-weight:650;display:flex}.auth-methods span{align-items:center;gap:8px;display:inline-flex}.auth-form-side{justify-content:center;align-items:center;padding:56px 40px;display:flex}.auth-form-content{width:100%;max-width:390px}.auth-form-content h2{letter-spacing:-1.3px;margin:14px 0 12px;font-size:34px;font-weight:650;line-height:1.2}.auth-form-content>.page-description{margin-bottom:32px}.account-form{gap:21px;display:grid}.auth-submit{justify-content:space-between;width:100%;margin-top:5px}@media (width>=1600px){.auth-page{border-inline:1px solid var(--line);max-width:1600px;margin:auto}}@media (width<=1023px){.auth-story{padding:30px 32px}.auth-story-copy{padding-top:54px}.auth-story-copy h1{letter-spacing:-1.8px}.auth-form-side{padding-inline:30px}}@media (width<=767px){.auth-page{grid-template-columns:1fr}.auth-story{padding:24px}.auth-story-copy{padding:30px 0 0}.auth-story-copy h1{letter-spacing:-1.1px;margin-bottom:14px;font-size:clamp(26px,8vw,34px)}.auth-story-copy>p:not(.eyebrow){max-width:440px;font-size:14px}.auth-methods{gap:22px;margin-top:18px}.auth-form-side{padding:38px 24px 48px}.auth-form-content{max-width:480px}.auth-form-content h2{font-size:30px}}.dash-page{gap:26px;display:grid}.dash-page>.page-header{margin-bottom:0}.section-heading{letter-spacing:-.03em;margin:0;font-size:18px;font-weight:650}.panel-heading{flex-wrap:wrap;justify-content:space-between;align-items:start;gap:14px;display:flex}.panel-heading h2,.panel-heading h3{letter-spacing:-.4px;margin:0;font-size:16px;font-weight:700}.panel-heading p{color:var(--muted);margin:7px 0 0;font-size:12px}.goal-note,.count-pill{color:var(--muted);white-space:nowrap;font-size:11px}.count-pill{background:var(--surface-muted);border-radius:999px;padding:4px 10px}.query-error{justify-items:start;gap:12px;display:grid}.back-link{width:fit-content;color:var(--muted);align-items:center;gap:6px;font-size:13px;font-weight:650;text-decoration:none;display:inline-flex}.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0;display:grid}.kpi{padding:20px 22px}.kpi dt{color:var(--muted);margin-bottom:8px;font-size:12px}.kpi dd{letter-spacing:-1px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:0;font-size:30px;font-weight:650;line-height:1.25}.kpi p{color:var(--muted);margin:6px 0 0;font-size:12px;line-height:1.5}.kpi-skeleton{border-radius:20px;height:108px}.chart-box{width:100%;height:300px;margin-top:20px}.attention-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:14px;display:grid}.attention-list{gap:4px;margin:14px 0 0;padding:0;list-style:none;display:grid}.attention-row{color:var(--ink);border-radius:10px;justify-content:space-between;align-items:center;gap:12px;padding:11px 10px;text-decoration:none;transition:background-color .15s;display:flex}.attention-row strong{font-size:13px;display:block}.attention-row small{color:var(--muted);margin-top:4px;font-size:11px;display:block}.attention-row svg{color:var(--muted)}.attention-empty{margin:16px 0 0;font-size:13px}.attention-more{color:var(--accent);margin-top:12px;font-size:12px;font-weight:650;display:inline-block}.attention-skeleton{border-radius:20px;height:220px}.search-field{width:min(340px,100%);display:block;position:relative}.search-field svg{color:var(--muted);position:absolute;top:13px;left:13px}.search-field .input{padding-left:38px}.table-card{padding:0;overflow:hidden}.table-scroll{overscroll-behavior-x:contain;overflow-x:auto}.data-table{border-collapse:collapse;width:100%;min-width:860px;font-size:13px}.data-table[data-stale]{opacity:.6}.data-table th,.data-table td{text-align:left;white-space:nowrap;border-bottom:1px solid var(--line);padding:13px 16px}.data-table .num{text-align:right;font-variant-numeric:tabular-nums}.data-table thead th{background:var(--surface-muted);padding:4px 8px}.data-table thead th.num{text-align:right}.data-table tbody tr:last-child td{border-bottom:0}.sort-button{min-height:40px;color:var(--muted);background:0 0;border:0;border-radius:8px;align-items:center;gap:5px;padding:0 8px;font-size:12px;font-weight:700;display:inline-flex}[aria-sort=ascending] .sort-button,[aria-sort=descending] .sort-button{color:var(--accent)}.clickable-row{cursor:pointer;transition:background-color .15s}.row-link{color:var(--ink);font-weight:650;text-decoration:none}.table-skeleton{border-radius:20px;height:420px}.header-skeleton{border-radius:20px;height:96px}.day-skeleton{border-radius:20px;height:220px;margin-top:16px}.day-bar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;margin-bottom:16px;display:flex}.day-controls{align-items:center;gap:6px;display:flex}.day-controls .btn{min-width:42px;padding-inline:10px}.day-input{width:160px}.day-layout{grid-template-columns:minmax(0,1.8fr) minmax(240px,1fr);align-items:start;gap:16px;display:grid}.day-groups{gap:16px;min-width:0;display:grid}.meal-group h3,.day-totals h3{text-transform:capitalize;margin:0 0 6px;font-size:14px;font-weight:650}.meal-row{padding:16px 0}.meal-row+.meal-row{border-top:1px solid var(--line)}.meal-row-head{align-items:baseline;gap:12px;margin-bottom:12px;font-size:12px;display:flex}.meal-row-head time{color:var(--muted);font-variant-numeric:tabular-nums}.meal-row-head strong{font-variant-numeric:tabular-nums;margin-left:auto;font-size:15px}.meal-items{gap:9px;margin:0;padding:0;list-style:none;display:grid}.meal-items li{grid-template-columns:minmax(0,1fr) 70px 80px;gap:12px;font-size:13px;display:grid}.meal-items li>:first-child{overflow-wrap:anywhere}.meal-items li>:nth-child(2){color:var(--muted)}.meal-items li>:not(:first-child){text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.meal-note{background:var(--surface-muted);color:var(--muted);overflow-wrap:anywhere;border-radius:8px;margin:12px 0 0;padding:10px 12px;font-size:12px;line-height:1.6}.day-totals dl{margin:8px 0 0;display:grid}.day-totals dl>div{border-bottom:1px solid var(--line);justify-content:space-between;align-items:baseline;gap:12px;padding:12px 0;display:flex}.day-totals dl>div:last-child{border-bottom:0;padding-bottom:0}.day-totals dt{color:var(--muted);font-size:13px}.day-totals dd{font-variant-numeric:tabular-nums;margin:0;font-size:18px;font-weight:650}.day-totals dd span{color:var(--muted);font-size:12px;font-weight:500}.attention-row:active,.clickable-row:active{background:var(--accent-soft)}@media (hover:hover) and (pointer:fine){.back-link:hover,.row-link:hover{color:var(--accent)}.attention-row:hover,.clickable-row:hover{background:var(--accent-soft)}.sort-button:hover{color:var(--ink)}}@media (width<=1023px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.day-layout{grid-template-columns:minmax(0,1fr)}}@media (width<=639px){.kpi-grid,.attention-grid{grid-template-columns:minmax(0,1fr)}.kpi dd{font-size:26px}.chart-box{height:260px}.meal-items li{grid-template-columns:minmax(0,1fr) 54px 66px;gap:8px;font-size:12px}}@media (prefers-reduced-motion:reduce){.clickable-row,.attention-row{transition:none}}.badge{white-space:nowrap;border-radius:999px;align-items:center;padding:3px 10px;font-size:11px;font-weight:700;line-height:1.5;display:inline-flex}.badge-neutral{background:var(--surface-muted);color:var(--muted)}.badge-accent{background:var(--accent-soft);color:var(--accent)}.badge-danger{background:var(--danger-soft);color:var(--danger)}.badge-list{flex-wrap:wrap;gap:6px;display:flex}.data-table.wrap-cells td{white-space:normal;vertical-align:top}.data-table .actions-col{text-align:right}.row-actions{flex-wrap:wrap;justify-content:flex-end;gap:6px;display:flex}.row-actions .btn{min-height:34px;padding:6px 12px}.name-cell{align-items:center;gap:8px;font-weight:650;display:flex}.role-key{color:var(--muted);margin-top:3px;font-family:ui-monospace,monospace;font-size:11px;display:block}.role-desc{max-width:280px;color:var(--muted);line-height:1.5}.perm-chips{flex-wrap:wrap;gap:5px;min-width:200px;max-width:360px;display:flex}.dialog{overscroll-behavior:contain;border:1px solid var(--line);background:var(--surface);width:min(520px,100vw - 32px);max-height:calc(100dvh - 32px);color:var(--ink);border-radius:20px;margin:auto;padding:0;box-shadow:0 20px 60px #00000040}.dialog::backdrop{background:#141d188c}.dialog-body{padding:26px}.dialog-title{letter-spacing:-.5px;margin:0 0 8px;font-size:20px;font-weight:700}.dialog-description{color:var(--muted);margin:0 0 18px;line-height:1.6}.dialog-form{gap:18px;margin-top:18px;display:grid}.dialog-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;margin-top:20px;display:flex}.dialog-form .dialog-actions{margin-top:4px}.inline-field{gap:8px;display:flex}.inline-field .btn{flex-shrink:0}.field-hint{color:var(--muted);margin:6px 0 0;font-size:11px;line-height:1.5}fieldset.check-group{border:0;min-width:0;margin:0;padding:0}.check-group legend{color:var(--muted);margin-bottom:8px;padding:0;font-size:12px;font-weight:700}.check-list{gap:6px;display:grid}.check-item{border:1px solid var(--line);border-radius:10px;align-items:flex-start;gap:10px;padding:10px 12px;display:flex}.check-item input{width:16px;height:16px;accent-color:var(--accent);flex-shrink:0;margin:2px 0 0}.check-item strong{font-size:13px;display:block}.check-item small{color:var(--muted);margin-top:2px;font-size:11px;line-height:1.5;display:block}.check-item.is-disabled{opacity:.6;background:var(--surface-muted);cursor:not-allowed}.check-scroll{overscroll-behavior:contain;max-height:40dvh;overflow-y:auto}.matrix-wrap{margin-top:16px}.matrix{border-collapse:collapse;width:100%;font-size:12px}.matrix th,.matrix td{border-bottom:1px solid var(--line);text-align:center;padding:9px 12px}.matrix thead th{background:var(--surface-muted);color:var(--muted);white-space:nowrap;font-weight:700}.matrix tbody th,.matrix thead th:first-child{text-align:left;font-weight:650}.matrix tbody tr:last-child>*{border-bottom:0}.matrix .yes{color:var(--accent);font-weight:800}.matrix .no{color:var(--line)}@media (width<=767px){.dialog-body{padding:20px}}.audit-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.audit-toolbar .audit-search{flex:240px;max-width:360px}.audit-summary{white-space:normal;max-width:560px;line-height:1.5}.audit-summary strong{font-weight:650}.audit-details-row td{background:var(--surface-muted);padding:0 16px 16px}.audit-details{border:1px solid var(--line);background:var(--surface);color:var(--ink);white-space:pre-wrap;overflow-wrap:anywhere;border-radius:10px;margin:0;padding:14px;font:12px/1.6 ui-monospace,monospace}.audit-more{color:var(--muted);justify-content:center;align-items:center;gap:12px;margin-top:16px;font-size:12px;display:flex}.credits-list{gap:16px;max-width:760px;margin-top:24px;display:grid}.credits-list p{margin:12px 0 0;font-size:13px;line-height:1.6}.credit-link{color:inherit;text-underline-offset:3px;font-weight:650;text-decoration:underline}.app-footer a{color:inherit;text-underline-offset:2px;text-decoration:underline}.dash-page{--series-1:#2a78d6;--series-2:#eb6834;--series-3:#1baf7a}html[data-theme=dark] .dash-page{--series-1:#3987e5;--series-2:#d95926;--series-3:#199e70}@media (prefers-color-scheme:dark){html:not([data-theme=light]) .dash-page{--series-1:#3987e5;--series-2:#d95926;--series-3:#199e70}}.points-footnote{color:var(--muted);border-top:1px solid var(--line);margin:0;padding:14px 20px 18px;font-size:12px;line-height:1.6}.points-table-view{margin-top:12px}.points-table-view summary{cursor:pointer;color:var(--accent);font-size:12px;font-weight:650}.points-table-view .table-scroll{max-height:320px;margin-top:10px;overflow:auto}.points-fieldset{border:0;gap:12px;margin:0;padding:0;display:grid}.points-fieldset legend{margin-bottom:8px;font-size:13px;font-weight:750}.points-warning{color:var(--danger)}.link-button{color:var(--accent);font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-weight:650;text-decoration:underline}
