

* {
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable both-edges;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: #fcf8f7;
    color: #0f0f0f;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.cabinet-body {
    --habit-done-background: #0f766e;
    --habit-done-color: #fff;
    --habit-not-done-border: #b42318;
    --habit-not-done-background: #fee4e2;
    --habit-not-done-color: #7a271a;
    min-height: var(--app-logical-height, 100vh);
    background: #fcf8f7;
}

.cabinet-shell {
    width: 100%;
    min-height: var(--app-logical-height, 100vh);
    padding: clamp(32px, 5cqi, 72px) clamp(18px, 5cqi, 72px) clamp(64px, 8cqi, 112px);
}

.week-toolbar,
.habit-form,
.habit-row,
.habit-title-row,
.habit-actions,
.habit-days,
.notification-settings-controls {
    display: flex;
    align-items: center;
}

.auth-submit,
.habit-form button,
.today-button,
.dialog-form button,
.notification-settings button,
.privacy-settings button {
    min-height: 42px;
    border: 1px solid #000;
    padding: 10px 16px;
    background: #fff;
    color: #000;
    text-decoration: none;
    white-space: nowrap;
}

.today-button:hover,
.dialog-form button:hover,
.notification-settings button:hover,
.privacy-settings button:hover {
    background: #f4d35e;
}

.auth-panel,
.cabinet-setup,
.habit-summary > div,
.habit-row,
.habits-empty {
    border: 1px solid #000;
    background: #fff;
}

.auth-form input,
.habit-form input,
.dialog-form input {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    border: 1px solid #000;
    padding: 11px 14px;
    background: #fff;
    color: #000;
}

.auth-submit,
.habit-form button,
.dialog-form button[data-edit-save] {
    background: #000;
    color: #fff;
}

.auth-submit:hover,
.habit-form button:hover,
.dialog-form button[data-edit-save]:hover {
    background: #e13333;
}

.cabinet-app {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    width: min(100%, 1120px);
    margin: 0 auto;
}

.cabinet-app > *,
.cabinet-section-view,
.cabinet-section-view > *,
.wellness-panel,
.wellness-panel > *,
.weight-panel,
.weight-panel > *,
.weight-chart-panel,
.weight-history,
.weight-history-table,
.steps-summary,
.habit-summary,
.habits-list,
.habit-row {
    min-width: 0;
}

.cabinet-section-view,
.wellness-panel,
.weight-panel,
.wellness-charts,
.habits-list {
    grid-template-columns: minmax(0, 1fr);
}

.cabinet-sections {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.cabinet-section-button {
    min-width: 0;
    min-height: 52px;
    border: 1px solid #000;
    padding: 9px 10px;
    background: #fff;
    color: #000;
    text-transform: uppercase;
}

.cabinet-section-button:hover {
    background: #f4d35e;
}

.cabinet-section-button.is-active {
    transform: translate(2px, 2px);
    background: #000;
    color: #fff;
}

.cabinet-section-view {
    display: grid;
    gap: 22px;
}

.cabinet-section-placeholder {
    display: grid;
    min-height: 280px;
    align-content: center;
    border: 1px solid #000;
    padding: clamp(24px, 5cqi, 54px);
    background: #fff;
}

.section-placeholder-eyebrow {
    margin: 0 0 10px;
    color: #0f766e;
}

.cabinet-section-placeholder h2 {
    margin: 0;
}

.cabinet-section-placeholder > p:last-child {
    max-width: 680px;
    margin: 18px 0 0;
}

.weight-legend i.steps-legend-bar {
    border-radius: var(--app-radius-data);
    background: #0f766e;
}

.weight-legend i.steps-legend-trend {
    width: 20px;
    height: 3px;
    border: 0;
    border-radius: var(--app-radius-data);
    background: #e13333;
}

.cabinet-dialog {
    width: min(420px, calc(100% - 32px));
    border: 1px solid #000;
    padding: 0;
    background: #fff;
}

.cabinet-dialog::backdrop {
    background: rgba(0, 0, 0, 0.35);
}

.dialog-form {
    padding: 22px;
}

.dialog-form h2 {
    margin: 0 0 8px;
}

.dialog-form menu {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 8px 0 0;
    padding: 0;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.cabinet-content {
    display: grid;
    gap: 30px;
}

.cabinet-content[hidden],
.app-bottom-nav[hidden] {
    display: none !important;
}

.cabinet-sections {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cabinet-section-button {
    min-width: 0;
    min-height: 52px;
    border: 1px solid #000;
    padding: 9px 10px;
    background: #fff;
    color: #000;
    text-transform: uppercase;
}

.cabinet-section-button:hover {
    background: #f4d35e;
}

.cabinet-section-button.is-active {
    transform: translate(2px, 2px);
    background: #000;
    color: #fff;
}

.cabinet-section-view {
    display: grid;
    gap: 22px;
}

.health-assessment-heading {
    padding: 8px 0 0;
}

.health-assessment-heading p {
    margin: 0;
}

.health-assessment-intro {
    max-width: 720px;
    margin-top: 14px !important;
}

.health-assessment-message:empty {
    display: none;
}

.health-assessment-grid {
    min-width: 0;
}

.health-assessment-grid[aria-busy="true"] {
    display: none;
}

.health-assessment {
    display: grid;
    gap: var(--app-content-gap, 20px);
    min-width: 0;
}

.health-assessment--stale,
.health-assessment--missing {
    border: 1px solid #000;
    padding: clamp(18px, 4cqi, 30px);
}

.health-assessment--stale {
    background: #fff0cc;
}

.health-assessment--missing {
    border-style: dashed;
    background: #fcf8f7;
}

.health-history__content {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.health-history__message {
    margin: 0;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 14px 16px;
    background: #fcf8f7;
}

.health-assessment__notice,
.health-assessment__empty {
    margin: 0;
}

.health-assessment__footer {
    min-width: 0;
}

.health-assessment__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    border: 1px solid #000;
    padding: 10px 16px;
    background: #000;
    color: #fff;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.health-assessment__action:hover {
    background: #e13333;
}



.cabinet-section-button.is-locked,
.cabinet-section-button.is-locked:hover {
    transform: none;
    background: #e8e5e3;
    color: #777;
    cursor: not-allowed;
    opacity: 0.72;
}

[hidden] {
    display: none !important;
}


.cabinet-sections {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }



.cabinet-shell {
        width: 100%;
        padding: clamp(32px, 5cqi, 72px) clamp(18px, 5cqi, 72px) clamp(40px, 8cqi, 112px);
    }

.cabinet-setup,
    .recovery-recommendation,
    .wellness-panel,
    .weight-panel,
    .habit-summary > div,
    .habit-row,
    .habits-empty,
    .cabinet-dialog,
    .notification-settings,
    .privacy-settings {
    }

.cabinet-content {
        gap: 20px;
    }

.cabinet-sections {
        grid-template-columns: 1fr;
        gap: 5px;
    }

.cabinet-section-button {
        min-height: 44px;
        padding: 6px 4px;
    }


.cabinet-auth {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: min(100%, 1120px);
    margin: 0 auto;
}
.cabinet-auth[data-auth-view] {
    flex-direction: column;
    align-items: center;
    gap: clamp(24px, 5cqi, 40px);
}

.auth-home-logo {
    display: block;
    width: min(520px, 100%);
    aspect-ratio: 1029.36 / 84.2267;
}

.auth-home-logo img {
    display: block;
    width: 100%;
    height: 100%;
}

.cabinet-setup h1 {
    margin: 0;
}

.auth-panel {
    width: min(420px, 100%);
    padding: 22px;
    box-shadow: none;
}

.auth-panel[data-email-otp-root] > h1 {
    margin: 0 0 12px;
}

.auth-loading-panel {
    display: grid;
    gap: 16px;
    padding: clamp(28px, 5cqi, 48px) 22px;
    text-align: center;
}

.auth-loading-panel h1,
.auth-loading-copy {
    margin: 0;
}

.auth-loading-track {
    position: relative;
    overflow: hidden;
    height: 14px;
    border: 1px solid #000;
    border-radius: var(--app-radius-pill);
    background: #fcf8f7;
}

.auth-loading-track::after {
    position: absolute;
    inset: 0 auto 0 0;
    width: 42%;
    border-radius: inherit;
    background: #0f766e;
    content: "";
    animation: cabinet-auth-loading 1.1s ease-in-out infinite alternate;
}

@keyframes cabinet-auth-loading {
    from {
        transform: translateX(-15%);
    }

    to {
        transform: translateX(155%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-loading-track::after {
            width: 100%;
            animation: none;
            transform: none;
        }
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 22px;
}

.auth-tab {
    min-height: 44px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
}

.auth-tab.is-active {
    background: #000;
    color: #fff;
}

.auth-form,
.dialog-form {
    display: grid;
    gap: 12px;
}

.auth-field-state {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.auth-field-state[hidden] {
    display: none;
}

.interactive-registration-auth .auth-panel > h1 {
    display: none;
}

.auth-form input:disabled {
    background: #f3f1ec;
    color: #5f5d58;
}

.auth-form input:-webkit-autofill {
    -webkit-text-fill-color: #000;
    box-shadow: 0 0 0 1000px #fff inset;
}

.auth-form [data-otp-code] {
    font-variant-numeric: tabular-nums;
}

.auth-password-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.auth-email-summary {
    display: grid;
    gap: 6px;
}

.auth-email-summary[hidden] {
    display: none;
}

.auth-email-summary > div {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 10px 14px;
    background: #fff;
}

.auth-email-summary strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.auth-inline-action,
.auth-secondary {
    border: 0;
    padding: 0;
    background: transparent;
    color: #000;
    text-decoration: underline;
    text-decoration-thickness: 0.06em;
    text-underline-offset: 0.16em;
    text-transform: lowercase;
}

.auth-inline-action {
    flex: 0 0 auto;
}

.auth-secondary {
    justify-self: center;
}

.auth-resend {
    min-height: 44px;
    padding: 10px 8px;
}

.auth-inline-action:hover,
.auth-secondary:hover {
    color: #e13333;
}

.auth-submit {
    min-height: 48px;
    -webkit-appearance: none;
    appearance: none;
}

.cabinet-message {
    min-height: 24px;
    margin: 14px 0 0;
}

.cabinet-message[data-type="error"] {
    color: #e13333;
}

.cabinet-message[data-type="success"] {
    color: #0f766e;
}

.cabinet-setup {
    margin-bottom: 28px;
    padding: 22px;
    width: min(100%, 1120px);
    margin-left: auto;
    margin-right: auto;
}

.cabinet-setup p {
    margin: 12px 0 0;
}


.cabinet-support-open {
    align-self: center;
    justify-self: center;
    min-height: 44px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #000;
    text-decoration: underline;
    text-decoration-thickness: 0.06em;
    text-underline-offset: 0.16em;
}
.cabinet-support-open:hover {
    color: #e13333;
}

.notification-settings {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 24px;
    padding: 18px;
    border: 1px solid #000;
    background: #fff;
}

.notification-settings-copy h2 {
    margin: 0;
}

.notification-settings-copy p {
    margin: 8px 0 0;
}

.notification-settings-controls {
    align-self: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.notification-settings button[data-notification-enable] {
    background: #000;
    color: #fff;
}

.notification-settings button[data-notification-disable] {
    border: 0;
    padding-right: 0;
    padding-left: 0;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.notification-status {
    grid-column: 1 / -1;
    min-height: 24px;
    margin: 0;
    color: #0f766e;
}

.notification-status[data-type="error"] {
    color: #e13333;
}

.privacy-settings {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 24px;
    padding: 18px;
    border: 1px solid #000;
    background: #fff;
}

.privacy-settings-copy h2 {
    margin: 0;
}

.privacy-settings-copy p {
    margin: 8px 0 0;
}

.privacy-settings button {
    align-self: center;
}

.intervals-connect-button {
    background: #000;
    color: #fff;
}

.intervals-oauth-actions {
    display: flex;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.intervals-oauth-connect-button {
    min-height: 48px;
    padding-inline: 18px;
}

.privacy-settings .intervals-oauth-connect-button {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

.privacy-settings .intervals-full-sync-button {
    display: grid;
    place-items: center;
    padding: 0;
    border-color: #000;
    background: #000;
    color: #fff;
}

.intervals-full-sync-button[hidden] {
    display: none;
}

.intervals-full-sync-button svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.privacy-settings .intervals-full-sync-button:hover {
    border-color: #0f766e;
    background: #0f766e;
    color: #fff;
}

.intervals-full-sync-button.is-busy svg {
    animation: intervals-full-sync-spin 900ms linear infinite;
}

@keyframes intervals-full-sync-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .intervals-full-sync-button.is-busy svg {
            animation: none;
        }
}

.intervals-disconnect-button {
    justify-self: start;
    border-color: #e13333;
    color: #e13333;
}

.intervals-disconnect-button:hover {
    background: #e13333;
    color: #fff;
}

.danger-zone {
    display: grid;
    gap: 18px;
    margin-top: clamp(28px, 5cqi, 52px);
    padding: 18px;
    border: 2px solid #e13333;
    background: #fff1ef;
}

.danger-zone .privacy-settings,
.danger-zone .account-settings {
    border-color: #e13333;
}

.data-settings .data-delete-open {
    border-color: #e13333;
    color: #e13333;
}

.data-settings .data-delete-open:hover {
    background: #e13333;
    color: #fff;
}

.privacy-settings-status {
    grid-column: 1 / -1;
    min-height: 24px;
    margin: 0;
    color: #0f766e;
}

.privacy-settings-status[data-type="error"] {
    color: #e13333;
}

.settings-quick-actions {
    display: grid;
    gap: 14px;
}

.settings-utility-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 0;
    border: 1px solid #000;
    padding: 18px;
    background: #fff;
    color: #000;
}

.settings-utility-copy h2,
.settings-support-copy strong {
    margin: 0;
}

.settings-account-card .cabinet-user {
    margin-top: 8px;
    text-align: left;
}

.settings-account-card .cabinet-logout {
    align-self: center;
    min-height: 42px;
    border: 1px solid #000;
    padding: 10px 16px;
    background: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

.settings-account-card .cabinet-logout:hover {
    background: #f4d35e;
    color: #000;
}

.settings-support-card {
    align-self: stretch;
    justify-self: stretch;
    cursor: pointer;
    text-align: left;
    text-decoration: none;
}

.settings-support-copy {
    display: grid;
    gap: 6px;
}

.settings-support-card:hover {
    background: #f4d35e;
    color: #000;
}

.account-settings {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px 24px;
    padding: 18px;
    border: 1px solid #000;
    background: #fff;
}

.account-settings-copy h2 {
    margin: 0;
}

.account-settings-copy p,
.account-delete-form > p {
    margin: 8px 0 0;
}

.account-delete-open {
    align-self: center;
    min-height: 42px;
    border: 1px solid #e13333;
    padding: 10px 16px;
    background: #fff;
    color: #e13333;
}

.account-delete-open:hover {
    background: #e13333;
    color: #fff;
}

.account-delete-status {
    grid-column: 1 / -1;
    min-height: 24px;
    margin: 0;
    color: #e13333;
}

.account-delete-dialog {
    width: min(calc(100% - 32px), 560px);
}

.account-delete-form > p {
    margin-top: 0;
}

.account-delete-form strong {
    color: #e13333;
}

.account-delete-dialog-status {
    min-height: 24px;
    margin: 0;
    color: #e13333;
}

.account-delete-form .account-delete-submit {
    background: #e13333;
    color: #fff;
}

.account-delete-form .account-delete-submit:disabled {
    border-color: #888;
    background: #ddd;
    color: #666;
    cursor: not-allowed;
}

.cabinet-user {
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.cabinet-logout {
    min-height: 0;
    border: 0;
    padding: 0;
    background: transparent;
    color: #000;
    text-decoration: underline;
    text-decoration-thickness: 0.06em;
    text-underline-offset: 0.16em;
    text-transform: lowercase;
}

.cabinet-logout:hover {
    color: #e13333;
}

.cabinet-dialog.wearable-onboarding-dialog {
    position: fixed;
    top: 0;
    left: calc(var(--app-frame-left, 0px) / var(--app-scale, 1));
    width: var(--app-logical-width, 100cqi);
    max-width: none;
    height: var(--app-logical-height, 100dvh);
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fffdf7;
    box-shadow: none;
}

.wearable-onboarding-shell {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.wearable-onboarding-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    padding: max(12px, env(safe-area-inset-top)) 16px 10px;
    border-bottom: 1px solid #000;
    background: #fff;
}

.wearable-onboarding-heading {
    grid-column: 2;
    min-width: 0;
    text-align: center;
}

.wearable-onboarding-header [data-wearable-onboarding-close] {
    grid-column: 3;
}

.wearable-onboarding-heading p {
    margin: 0 0 3px;
    text-transform: uppercase;
}

.wearable-onboarding-heading h2 {
    overflow-wrap: anywhere;
    margin: 0;
}

.wearable-onboarding-icon-button {
    display: grid;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    margin: 0;
    border: 1px solid #000;
    border-radius: var(--app-radius-circle);
    padding: 0;
    background: #fff;
    color: #000;
}

.wearable-onboarding-icon-button[hidden] {
    visibility: hidden;
    display: grid;
}

.wearable-onboarding-icon-button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.wearable-onboarding-progress {
    height: 6px;
    overflow: hidden;
    background: #e7e0d4;
}

.wearable-onboarding-progress > span {
    display: block;
    width: 12.5%;
    height: 100%;
    background: #ffc400;
    transition: width 180ms ease;
}

.wearable-onboarding-content {
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 22px 16px calc(22px + var(--app-keyboard-inset, 0px));
    scroll-padding-block-end: calc(var(--app-keyboard-inset, 0px) + 16px);
    outline: none;
    overscroll-behavior: contain;
}

.wearable-onboarding-lead,
.wearable-onboarding-copy,
.wearable-onboarding-status {
    margin: 0;
}

.wearable-onboarding-data-path {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-top: 14px;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 12px;
    background: #f3eee5;
}

.wearable-onboarding-data-path strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.wearable-onboarding-data-path span {
    flex: 0 0 auto;
}

.wearable-onboarding-data-path + .wearable-onboarding-copy {
    margin-top: 14px;
}

.wearable-onboarding-copy + .wearable-onboarding-copy,
.wearable-onboarding-lead + .wearable-onboarding-copy,
.wearable-onboarding-callout + .wearable-onboarding-copy {
    margin-top: 14px;
}

.wearable-device-list {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wearable-device-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    margin: 0;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 10px 12px;
    background: #fff;
    color: #000;
    text-align: left;
}

.wearable-device-option strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.wearable-device-option:hover {
    background: #fff2b8;
}

.wearable-device-option.is-unsupported {
    border-color: #a6a8a5;
    background: #efefed;
    color: #686a67;
    cursor: default;
    opacity: 1;
}

.wearable-device-badge {
    display: inline-flex;
    max-width: 150px;
    align-items: center;
    min-height: 26px;
    border: 1px solid #000;
    border-radius: var(--app-radius-pill);
    padding: 4px 8px;
    background: #f3eee5;
    text-align: center;
    text-transform: uppercase;
}

.wearable-device-badge[data-mode="activity_only"] {
    background: #dcecff;
}

.wearable-device-option.is-unsupported .wearable-device-badge {
    border-color: #8d908b;
    background: #d8dad6;
    color: #50524f;
}

.wearable-onboarding-choices {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.wearable-onboarding-choice {
    min-height: 72px;
    margin: 0;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 14px;
    background: #fff;
    color: #000;
    text-align: left;
}

.wearable-onboarding-callout {
    margin-top: 18px;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 14px;
    background: #fff2b8;
}

.wearable-onboarding-callout.is-warning {
    border-color: #a51f1f;
    background: #fff1ef;
    color: #7c1717;
}

.wearable-onboarding-step-list {
    display: grid;
    gap: 12px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: wearable-guide-step;
}

.wearable-onboarding-step-list li {
    position: relative;
    min-height: 48px;
    padding: 12px 12px 12px 54px;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    background: #fff;
    counter-increment: wearable-guide-step;
}

.wearable-onboarding-step-list li::before {
    content: counter(wearable-guide-step);
    position: absolute;
    top: 10px;
    left: 10px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #000;
    border-radius: var(--app-radius-circle);
    background: #ffc400;
}

.wearable-onboarding-step-list strong,
.wearable-onboarding-step-list span {
    display: block;
}

.wearable-onboarding-step-list span {
    margin-top: 3px;
}

.wearable-onboarding-status {
    min-height: 0;
    padding: 0 16px;
    color: #a51f1f;
}

.wearable-onboarding-status:empty {
    display: none;
}

.wearable-onboarding-actions {
    display: grid;
    gap: 9px;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid #000;
    background: #fff;
}

.cabinet-body .wearable-onboarding-actions button,
.cabinet-body .wearable-onboarding-actions a {
    display: grid;
    width: 100%;
    min-height: 48px;
    place-items: center;
    margin: 0;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 10px 14px;
    background: #ffc400;
    color: #000;
    text-align: center;
    text-decoration: none;
}

.cabinet-body .wearable-onboarding-actions .is-secondary {
    border-color: #000;
    background: #fff;
}

.cabinet-body .wearable-onboarding-actions .is-tertiary {
    border-color: #000;
    background: transparent;
    box-shadow: none;
    text-decoration: none;
}


.wearable-onboarding-header {
        gap: 2px;
        padding-right: 4px;
        padding-left: 4px;
    }

    .wearable-onboarding-heading h2 {
        overflow-wrap: normal;
        word-break: normal;
    }




.support-dialog {
    width: min(520px, calc(100% - 32px));
}

.support-channels {
    display: grid;
    gap: 10px;
}

.support-channel {
    display: grid;
    gap: 3px;
    border: 1px solid #000;
    padding: 13px 14px;
    background: #fff;
    color: #000;
    text-decoration: none;
}

.support-channel span {
    overflow-wrap: anywhere;
}

.support-channel:hover {
    background: #f4d35e;
}

.support-dialog-form button[data-support-close] {
    background: #000;
    color: #fff;
}

.pwa-dialog {
    width: min(520px, calc(100% - 32px));
}

.pwa-dialog-form {
    display: grid;
    gap: 14px;
}

.pwa-dialog-form > p,
.pwa-install-steps {
    margin: 0;
}

.pwa-install-steps {
    display: grid;
    gap: 12px;
    padding-left: 0;
    list-style: none;
}

.pwa-dialog-form menu {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: 0;
}

.pwa-dialog-form menu button {
    min-height: 44px;
}

.pwa-dialog-form [data-pwa-install-close],
.pwa-dialog-form [data-pwa-push-enable] {
    background: #000;
    color: #fff;
}

.pro-payment-copy,
.pro-payment-total,
.pro-payment-legal {
    margin: 4px 0;
}

.pro-payment-message {
    min-height: 22px;
    margin: 2px 0;
}

.pro-payment-message[data-kind="error"] {
    color: #e13333;
}

.pro-payment-message[data-kind="success"] {
    color: #0f766e;
}

.pro-payment-legal a {
    color: inherit;
}

.pending-account-settings strong {
    overflow-wrap: anywhere;
}


.danger-zone {
        gap: 14px;
        padding: 14px;
    }

.cabinet-user {
        text-align: left;
    }

.settings-utility-card {
        grid-template-columns: 1fr;
        padding: 14px;
    }

.settings-support-card {
        grid-template-columns: minmax(0, 1fr) auto;
    }

.settings-account-card .cabinet-logout {
        width: 100%;
    }

.notification-settings {
        grid-template-columns: 1fr;
    }

.privacy-settings {
        grid-template-columns: 1fr;
    }

.intervals-oauth-actions {
        align-items: stretch;
        flex-direction: column;
        flex-wrap: nowrap;
    }

.intervals-oauth-actions button,
    .intervals-disconnect-button {
        width: 100%;
    }

.account-settings {
        grid-template-columns: 1fr;
    }

.notification-settings-controls {
        justify-content: flex-start;
    }

.notification-status {
        grid-column: 1;
    }

.privacy-settings-status {
        grid-column: 1;
    }

.account-delete-status {
        grid-column: 1;
    }


.today-debug-actions {
    display: grid;
    grid-template-columns:
        30px
        minmax(0, 1.45fr)
        30px
        minmax(0, 1fr)
        clamp(36px, 10cqi, 40px)
        clamp(38px, 11cqi, 44px);
    grid-template-rows: 24px;
    position: absolute;
    right: 0;
    bottom: calc(var(--app-bottom-nav-height) + 8px);
    left: 0;
    z-index: 1;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-width: 0;
    gap: clamp(2px, 0.8cqi, 4px);
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--app-radius-control);
    background: rgb(252 248 247 / 94%);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}
.today-debug-actions[hidden] {
    display: none;
}

.today-debug-actions > * {
    box-sizing: border-box;
    min-width: 0;
    min-height: 24px;
}

.today-debug-button,
.today-debug-date,
.today-debug-time {
    display: inline-flex;
    width: 100%;
    height: 24px;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e13333;
    background: #fcf8f7;
    color: #e13333;
}

.cabinet-body .today-debug-actions :is(
    .today-debug-date,
    .today-debug-time
) {
    border-color: #e13333;
    color: #e13333;
    -webkit-text-fill-color: #e13333;
}

.today-debug-button {
    min-width: 30px;
    padding: 0 clamp(2px, 1cqi, 6px);
    cursor: pointer;
    touch-action: manipulation;
}

.cabinet-body .today-debug-actions .today-debug-day-button {
    padding-inline: 0;
}

.today-debug-day-button[data-today-debug-next] {
    justify-self: stretch;
    width: 100%;
}

.today-debug-time {
    min-width: 0;
    padding: 0 1px;
    color: #e13333;
    accent-color: #e13333;
    font-variant-numeric: tabular-nums;
    text-align: center;
    -webkit-text-fill-color: #e13333;
}

.today-debug-date {
    min-width: 0;
    padding: 0 1px;
    color: #e13333;
    accent-color: #e13333;
    font-variant-numeric: tabular-nums;
    text-align: center;
    -webkit-text-fill-color: #e13333;
}

.today-debug-date::-webkit-calendar-picker-indicator,
.today-debug-time::-webkit-calendar-picker-indicator {
    margin: 0;
    padding: 0;
    filter: brightness(0) saturate(100%) invert(27%) sepia(91%) saturate(1880%) hue-rotate(340deg) brightness(94%) contrast(91%);
    opacity: 1;
}

.today-debug-reset[hidden] {
    display: none;
}





.today-debug-button:not(:disabled):hover {
    background: #e13333;
    color: #fcf8f7;
}

.today-debug-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.today-debug-button[aria-busy="true"] {
    cursor: wait;
    opacity: 0.55;
}

.today-status,
.home-install-prompt,
.home-wearable-prompt {
    display: grid;
    min-height: 150px;
    place-content: center;
    justify-items: center;
    gap: 8px;
    min-width: 0;
    border: 1px solid #777;
    border-radius: var(--app-radius-surface);
    padding: 18px;
    background: #fff;
    color: #57534e;
    text-align: center;
}

.home-install-prompt[hidden],
.home-wearable-prompt[hidden] {
    display: none;
}

.home-install-prompt h2,
.home-install-prompt p,
.home-wearable-prompt h2,
.home-wearable-prompt p {
    max-width: 330px;
    margin: 0;
}

.home-install-prompt h2,
.home-wearable-prompt h2 {
    color: #000;
}

.home-install-prompt button,
.home-wearable-prompt button {
    box-sizing: border-box;
    width: min(100%, 330px);
    min-height: 44px;
    margin-top: 4px;
    border: 1px solid #000;
    padding: 9px 12px;
    appearance: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    touch-action: manipulation;
}

.home-install-prompt button:disabled,
.home-wearable-prompt button:disabled {
    border-color: #8b8582;
    background: #e5e0dd;
    color: #625d5a;
    cursor: wait;
}

.home-wearable-prompt-status {
    min-height: 0;
    color: #991b1b;
}

.home-wearable-prompt-status:empty {
    display: none;
}

.morning-questionnaire {
    --assessment-ink: #000;
    --assessment-paper: #fff;
    --assessment-muted: #57504d;
    --assessment-accent: #0f766e;
    --assessment-highlight: #f4d35e;
    --assessment-danger: #b42318;
    min-width: 0;
    margin: 0;
}

.morning-questionnaire[hidden],
.morning-questionnaire-form[hidden],
.morning-questionnaire-block[hidden],
.morning-questionnaire-note[hidden],
.morning-questionnaire-metrics-fields > label[hidden],
.morning-questionnaire-readiness-fields[hidden] {
    display: none;
}

.morning-questionnaire-card {
    display: grid;
    min-width: 0;
    border: 1px solid var(--app-line-card);
    border-radius: var(--app-radius-surface);
    padding: var(--app-today-card-padding);
    background: var(--app-color-card);
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}

.morning-questionnaire-card :is(h2, h3, p) {
    margin-block: 0;
}

.morning-questionnaire-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.morning-questionnaire-header h2 {
    min-width: 0;
    overflow-wrap: anywhere;
}

.morning-questionnaire-header button {
    min-width: 88px;
    min-height: 44px;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 8px 12px;
    background: #fff;
    color: #000;
    cursor: pointer;
}

.morning-questionnaire-form {
    display: grid;
    min-width: 0;
}

.morning-questionnaire-block {
    display: grid;
    min-width: 0;
    gap: 12px;
    margin-top: 16px;
    border-top: 1px solid var(--app-line-card);
    padding-top: 16px;
}

.morning-questionnaire .checkin-scale .app-type-control {
    height: 30px;
    min-height: 30px;
}

.morning-questionnaire .checkin-context .app-type-control {
    box-sizing: border-box;
    height: 30px;
    min-height: 30px;
    padding: 4px 11px;
}

.morning-questionnaire-face-sprite {
    position: absolute;
    overflow: hidden;
    pointer-events: none;
}

.morning-questionnaire-face-control svg {
    display: block;
    width: 22px;
    height: 22px;
}

.morning-questionnaire-sleep-fields,
.morning-questionnaire-metrics-fields,
.morning-questionnaire-readiness-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
}

.morning-questionnaire-readiness-fields {
    grid-column: 1 / -1;
}

.morning-questionnaire-form label,
.morning-questionnaire-form input {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

.morning-questionnaire-sleep-fields label,
.morning-questionnaire-metrics-fields label,
.morning-questionnaire-readiness-fields label {
    display: grid;
    gap: 5px;
}

.morning-questionnaire-sleep-fields input,
.morning-questionnaire-metrics-fields input,
.morning-questionnaire-readiness-fields input {
    width: 100%;
    min-height: 46px;
    border: 1px solid #777;
    border-radius: var(--app-radius-control);
    padding: 10px;
    background: #fff;
    color: #000;
}

.morning-questionnaire-binary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.morning-questionnaire-binary legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
}

.morning-questionnaire-binary label {
    position: relative;
    min-width: 0;
}

.morning-questionnaire-binary input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.morning-questionnaire-binary label > span {
    display: grid;
    box-sizing: border-box;
    height: 30px;
    min-height: 30px;
    place-items: center;
    border: 1px solid #000;
    border-radius: var(--app-radius-pill);
    padding: 4px 12px;
    background: #fff;
    color: #000;
    cursor: pointer;
}

.morning-questionnaire-binary input:checked + span {
    background: #000;
    color: #fff;
}

.morning-questionnaire-binary input:focus-visible + span {
    outline: 3px solid var(--app-focus-ring, #000);
    outline-offset: 3px;
}

.morning-questionnaire-note {
    color: #625d5a;
}

.morning-questionnaire-required-marker {
    color: var(--assessment-danger);
    font-weight: 700;
}

.morning-questionnaire-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    margin-top: 16px;
    border-top: 1px solid var(--app-line-card);
    padding-top: 16px;
}

.morning-questionnaire-required-caption {
    grid-column: 1 / -1;
    color: var(--assessment-muted);
}

.morning-questionnaire-actions button {
    min-width: 0;
    min-height: 44px;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 8px 10px;
    background: #fff;
    color: #000;
    cursor: pointer;
}

.morning-questionnaire-actions button[type="submit"] {
    background: #000;
    color: #fff;
}

.morning-questionnaire-actions button:disabled,
.morning-questionnaire-header button:disabled {
    cursor: wait;
    opacity: 0.45;
}

.morning-questionnaire .assessment-message:empty {
    display: none;
}

.morning-questionnaire .assessment-message[data-type="error"] {
    color: #9f1d1d;
}

@media (max-width: 359px) {
    .morning-questionnaire-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

.today-empty {
    margin: 0;
}

.today-status[data-type="error"] {
    color: #9f1d1d;
}

.today-status-support {
    margin: 0;
    border: 0;
    padding: 0;
    appearance: none;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.12em;
    cursor: pointer;
}

.today-status-support:hover {
    color: #6f1515;
}

.intervals-initial-sync {
    display: grid;
    min-width: 0;
    gap: 10px;
    border: 1px solid #000;
    padding: 13px 14px;
    background: #fff;
}

.intervals-initial-sync[hidden] {
    display: none;
}

.intervals-initial-sync[data-state="complete"] {
    background: #eef5ec;
}

.intervals-initial-sync-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.intervals-initial-sync-heading h2,
.intervals-initial-sync-copy {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.intervals-initial-sync-dismiss {
    min-width: 44px;
    min-height: 44px;
    border: 0;
    padding: 0 2px;
    background: transparent;
    color: #0f766e;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.intervals-initial-sync-dismiss:hover {
    color: #000;
}

.intervals-initial-sync-track {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 12px;
    border: 1px solid #000;
    border-radius: var(--app-radius-pill);
    background: #fcf8f7;
}

.intervals-initial-sync-fill {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #0f766e;
    transition: width 240ms ease;
}

@media (prefers-reduced-motion: reduce) {
    .intervals-initial-sync-fill {
            transition: none;
        }
}

.today-list {
    display: grid;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

#cabinet-section-home[data-home-gate="assessment"] > [data-today-debug-actions],
#cabinet-section-home[data-home-gate="assessment"] > [data-today-status] {
    display: none !important;
}

#cabinet-section-home[data-assessment-gate="true"] > :not([data-today-list]) {
    display: none !important;
}

#cabinet-section-home[data-home-gate="longevity"] > :not([data-longevity-home]) {
    display: none !important;
}

#cabinet-section-home[data-home-gate="setup"] > :not([data-today-list]):not([data-today-status]) {
    display: none !important;
}

body[data-onboarding-gate="assessment"] [data-cabinet-view]:not(#cabinet-section-home),
body[data-onboarding-gate="longevity"] [data-cabinet-view]:not(#cabinet-section-home),
body[data-onboarding-gate="setup"] [data-cabinet-view]:not(#cabinet-section-home) {
    display: none !important;
}

.today-list[hidden],
.today-status[hidden],
.today-empty[hidden],
.today-item[hidden] {
    display: none;
}

.today-item {
    min-width: 0;
    border: 2px solid #000;
    padding: 14px;
    background: #fff;
    color: #000;
    box-shadow: none;
}

.today-item.is-complete {
    background: #eef5ec;
}

.today-item-card,
.today-item-copy-group {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.today-item-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-width: 0;
}

.today-item-heading.has-marker {
    grid-template-columns: 32px minmax(0, 1fr);
}

.today-item-heading.has-inline-action {
    grid-template-columns: minmax(0, 1fr) auto;
}

.today-item-heading.has-marker.has-inline-action {
    grid-template-columns: 32px minmax(0, 1fr) auto;
}

.today-item-marker {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    border: 2px solid #0f766e;
    border-radius: var(--app-radius-circle);
    background: #0f766e;
    color: #fff;
}

.today-action-inline {
    box-sizing: border-box;
    min-width: 0;
    min-height: 44px;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 8px 13px;
    appearance: none;
    background: #fff;
    color: #000;
    cursor: pointer;
    touch-action: manipulation;
}

.today-action-inline:disabled {
    border-color: #8b8582;
    background: #e5e0dd;
    color: #625d5a;
    cursor: not-allowed;
}

.today-item-title {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.today-item.is-complete .today-item-title {
    text-decoration: line-through;
    text-decoration-thickness: 2px;
}

.today-item-copy,
.today-action-note {
    margin: 0;
    overflow-wrap: anywhere;
}

.today-item-details {
    display: grid;
    gap: 9px;
    min-width: 0;
}

.today-inline-form {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin-top: 4px;
}

.today-inline-label,
.today-inline-note,
.today-inline-options {
    min-width: 0;
    margin: 0;
}

.today-inline-label {
    display: grid;
    gap: 6px;
}

.today-inline-weight-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    border: 1px solid var(--app-line-control);
    border-radius: var(--app-radius-control);
    corner-shape: var(--app-corner-shape);
    padding: 0 14px;
    background: #fff;
}

.today-inline-weight-field input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border: 0;
    padding: 10px 0;
    background: transparent;
    color: #000;
    font: inherit;
    outline: none;
}

.cabinet-body .today-inline-weight-field input[inputmode="decimal"] {
    border: 0;
    border-radius: 0;
}

.today-inline-sleep-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

.today-inline-sleep-fields input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border: 1px solid #000;
    padding: 8px 10px;
    background: #fff;
    color: #000;
}

.today-inline-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 7px;
    border: 0;
    padding: 0;
}

.today-inline-options label {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 44px;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 8px 12px;
    background: #fff;
    cursor: pointer;
}

.today-inline-options input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #000;
}

.today-inline-options label:has(input:checked) {
    background: #f6df70;
}

.today-inline-note {
    color: #625d5a;
}

.today-inline-submit {
    width: 100%;
    min-height: 48px;
    border: 1px solid #000;
    padding: 10px 12px;
    background: #000;
    color: #fff;
    cursor: pointer;
    touch-action: manipulation;
}

.today-inline-submit:disabled {
    border-color: #8b8582;
    background: #e5e0dd;
    color: #625d5a;
    cursor: not-allowed;
}

.today-install-steps {
    display: grid;
    gap: 7px;
    min-width: 0;
    margin: 0;
    padding-inline-start: 1.4em;
}

.today-install-steps li,
.today-install-fallback,
.today-item-inline-status,
.today-item-warning {
    min-width: 0;
    overflow-wrap: anywhere;
}

.today-item-inline-status,
.today-item-warning {
    margin: 0;
}

.today-item-inline-status {
    color: var(--app-color-success);
}

.today-item-inline-status[data-type="error"] {
    color: #9f1d1d;
}

.today-item-warning {
    border-left: 3px solid #9f1d1d;
    padding-left: 9px;
    color: #625d5a;
}

.today-item-actions {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin-top: 12px;
}

.today-item-actions :where(button, a) {
    display: inline-grid;
    place-items: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 9px 12px;
    appearance: none;
    background: #fff;
    color: #000;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
    cursor: pointer;
    touch-action: manipulation;
}

.today-item-actions .today-action-primary {
    background: #000;
    color: #fff;
}

.today-item-actions :where(button, a):disabled,
.today-item-actions :where(button, a)[aria-disabled="true"] {
    border-color: #8b8582;
    background: #e5e0dd;
    color: #625d5a;
    cursor: not-allowed;
}

.today-action-note {
    color: #625d5a;
}

.today-readiness-list,
.today-setup-list {
    min-width: 0;
}

.today-empty {
    display: grid;
    min-height: 180px;
    place-items: center;
    border: 1px solid #000;
    padding: 24px;
    background: #fff;
    text-align: center;
}

.today-item-readiness .recovery-recommendation {
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

:is(.recovery-recommendation, .modules-hub-steps-impact) {
    --recovery-level-1: #e13333;
    --recovery-level-2: #eb7b49;
    --recovery-level-3: #f4d35e;
    --recovery-level-4: #8edfc4;
    --recovery-level-5: #0f766e;
    --recovery-level-empty: #d8d2cf;
}

.recovery-recommendation {
    display: grid;
    gap: 12px;
    min-width: 0;
    margin: 0 0 22px;
    border: 2px solid #000;
    padding: 14px;
    background: #fff;
    color: #000;
}

.recovery-readiness-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.recovery-readiness-title {
    min-width: 0;
    margin: 0;
}

.recovery-readiness-help {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    border: 1px solid #000;
    border-radius: var(--app-radius-circle);
    padding: 0;
    appearance: none;
    background: #fff;
    color: #000;
    cursor: pointer;
    touch-action: manipulation;
}

.recovery-readiness-help[aria-expanded="true"] {
    background: #000;
    color: #fff;
}


.recovery-readiness-help:active {
    transform: translateY(1px);
}

.recovery-readiness-scale {
    display: grid;
    min-width: 0;
}

.recovery-readiness-segments {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    min-width: 0;
    padding: 3px 3px 11px;
}

.recovery-readiness-segment {
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    height: 12px;
    border: 1px solid #000;
    border-radius: var(--app-radius-data);
    background: var(--recovery-segment-color);
    opacity: 0.1;
}

.recovery-readiness-segment[data-recovery-level="1"] {
    --recovery-segment-color: var(--recovery-level-1);
}

.recovery-readiness-segment[data-recovery-level="2"] {
    --recovery-segment-color: var(--recovery-level-2);
}

.recovery-readiness-segment[data-recovery-level="3"] {
    --recovery-segment-color: var(--recovery-level-3);
}

.recovery-readiness-segment[data-recovery-level="4"] {
    --recovery-segment-color: var(--recovery-level-4);
}

.recovery-readiness-segment[data-recovery-level="5"] {
    --recovery-segment-color: var(--recovery-level-5);
}

.recovery-readiness-segment[data-current="true"] {
    z-index: 1;
    opacity: 1;
    outline: 0;
    transform: none;
}

.recovery-readiness-segment[data-current="true"]::after {
    position: absolute;
    top: calc(100% + 7px);
    left: 50%;
    width: 0;
    height: 0;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #000;
    border-left: 6px solid transparent;
    content: "";
    transform: translateX(-50%);
}

.recovery-recommendation:is(
    [data-display-state="unavailable"],
    [data-display-state="learning"],
    [data-display-state="stale"]
) .recovery-readiness-segment {
    background: var(--recovery-level-empty);
    opacity: 1;
    outline: 0;
    transform: none;
}

.recovery-recommendation:is(
    [data-display-state="unavailable"],
    [data-display-state="learning"],
    [data-display-state="stale"]
) .recovery-readiness-segment::after {
    content: none;
}

.recovery-readiness-current-label {
    display: -webkit-box;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    overflow: hidden;
    text-align: center;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.recovery-readiness-details {
    display: grid;
    gap: 10px;
    min-width: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.45);
    padding-top: 12px;
}

.recovery-readiness-details[hidden] {
    display: none;
}

.recovery-readiness-details > * {
    min-width: 0;
}

.recovery-readiness-advice {
    max-width: 880px;
    margin: 0;
}

.recovery-readiness-source {
    margin: 0;
    overflow-wrap: anywhere;
}

.recovery-readiness-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.recovery-readiness-signal {
    max-width: 100%;
    border: 1px solid #000;
    border-radius: var(--app-radius-pill);
    padding: 7px 11px 6px;
    background: rgba(255, 255, 255, 0.72);
    overflow-wrap: anywhere;
}

.recovery-readiness-signal[data-signal-level="1"] {
    background: var(--recovery-level-1);
    color: #000;
}

.recovery-readiness-signal[data-signal-level="2"] {
    background: var(--recovery-level-2);
    color: #000;
}

.recovery-readiness-signal[data-signal-level="3"] {
    background: var(--recovery-level-3);
    color: #000;
}

.recovery-readiness-signal[data-signal-level="4"] {
    background: var(--recovery-level-4);
    color: #000;
}

.recovery-readiness-signal[data-signal-level="5"] {
    background: var(--recovery-level-5);
    color: #fff;
}

.recovery-readiness-signal[data-signal-state="missing"],
.recovery-readiness-signal[data-signal-state="insufficient"] {
    border-style: dashed;
    background: transparent;
}

.recovery-readiness-note {
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.28);
    padding-top: 10px;
    overflow-wrap: anywhere;
}


.longevity-home {
    display: grid;
    min-width: 0;
    gap: 12px;
    border: 2px solid #000;
    padding: 14px;
    background: #f4d35e;
    color: #000;
    overflow-wrap: anywhere;
}
.longevity-home[hidden] {
    display: none;
}

.longevity-home-content,
.longevity-home-header {
    display: grid;
    min-width: 0;
    gap: 12px;
}

.longevity-home-eyebrow,
.longevity-home-title,
.longevity-home-copy,
.longevity-home-status {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.longevity-selection-legend-card {
    display: grid;
    box-sizing: border-box;
    min-width: 0;
    gap: 12px;
    border: 1px solid var(--app-line-control);
    border-radius: var(--app-radius-surface);
    padding: 12px;
    background: transparent;
    corner-shape: var(--app-corner-shape);
}

.longevity-selection-legend-card > .longevity-selection-legend-item {
    margin: 0;
}

.longevity-selection-legend-item.has-marker {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: start;
    column-gap: 8px;
    min-width: 0;
}

.longevity-selection-legend-description {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 6px;
}

.longevity-selection-legend-description,
.longevity-selection-legend-separator,
.longevity-selection-legend-copy {
    min-width: 0;
}

.cabinet-body .longevity-selection-question {
    display: inline-grid;
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    min-height: 30px;
    place-items: center;
    border: 1px solid var(--app-line-control);
    border-radius: var(--app-radius-control);
    background: transparent;
    corner-shape: var(--app-corner-shape);
}

.longevity-domain-groups,
.longevity-domain-group {
    display: grid;
    min-width: 0;
}

.longevity-domain-groups {
    gap: 0;
    padding-top: 16px;
}

.longevity-domain-group-title {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.longevity-domain-error {
    min-width: 0;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 12px;
    background: #fff;
}

.longevity-domain-status,
.longevity-domain-count {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.longevity-domain-group {
    gap: 10px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.longevity-domain-group + .longevity-domain-group {
    margin-top: 16px;
    border-top: 1px solid #d8d2cf;
    padding-top: 16px;
}

.longevity-domain-group-header {
    display: grid;
    min-width: 0;
    grid-template-columns: 14px minmax(0, 1fr);
    gap: 5px 9px;
    align-items: center;
}

.longevity-domain-indicator {
    grid-row: 1;
    align-self: center;
    width: 14px;
    height: 14px;
    margin-top: 0;
    border: 1px solid #000;
    border-radius: var(--app-radius-circle);
    background: #d4d4d4;
}

.longevity-domain-group[data-status="green"] .longevity-domain-indicator,
.longevity-selection-priority-marker[data-status="green"] {
    background: #2f9e44;
}

.longevity-domain-group[data-status="yellow"] .longevity-domain-indicator,
.longevity-selection-priority-marker[data-status="yellow"] {
    background: #f4c430;
}

.longevity-domain-group[data-status="red"] .longevity-domain-indicator,
.longevity-selection-priority-marker[data-status="red"] {
    background: #d94841;
}

.longevity-domain-count {
    grid-column: 2;
    color: #57534e;
}

.longevity-domain-error {
    display: grid;
    gap: 10px;
    background: #fff4f2;
}

.longevity-primary-button,
.longevity-secondary-button {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border: 1px solid #000;
    padding: 10px 12px;
    appearance: none;
    text-align: center;
    overflow-wrap: anywhere;
    touch-action: manipulation;
}

.longevity-primary-button {
    background: #000;
    color: #fff;
}

.longevity-secondary-button {
    background: #fff;
    color: #000;
}

.longevity-primary-button:disabled,
.longevity-secondary-button:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.longevity-home-status:empty {
    display: none;
}

.longevity-home-status[data-type="error"] {
    color: #9f1d1d;
}

.longevity-home-status[data-type="success"] {
    color: var(--app-color-success);
}

.longevity-opportunity-grid,
.longevity-opportunity-card,
.longevity-active-target,
.longevity-checkin-actions {
    display: grid;
    min-width: 0;
}

.longevity-opportunity-grid,
.longevity-active-target {
    gap: 10px;
}

.longevity-opportunity-grid {
    grid-template-columns: minmax(0, 1fr);
}

.longevity-opportunity-title {
    margin: 0;
}

.cabinet-body .longevity-opportunity-gain {
    justify-self: start;
    box-sizing: border-box;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    border-radius: var(--app-radius-pill);
    padding: 3px 8px;
    background: var(--app-color-accent);
    color: #fff;
    overflow-wrap: anywhere;
}

.longevity-opportunity-heading {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.longevity-opportunity-heading:not(:has(.longevity-opportunity-select)) {
    grid-template-columns: minmax(0, 1fr);
}

.longevity-opportunity-meta {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cabinet-body .longevity-opportunity-soon {
    justify-self: start;
    box-sizing: border-box;
    border: 1px solid currentColor;
    border-radius: var(--app-radius-pill);
    padding: 2px 7px;
    color: #666;
    white-space: nowrap;
}

.longevity-opportunity-card.is-soon {
    background: #f6f6f6;
}

.longevity-opportunity-select,
.longevity-selection-checkbox {
    width: 22px;
    height: 22px;
    margin: 1px;
    accent-color: #0f766e;
}

.longevity-selection-checkbox {
    pointer-events: none;
}

.longevity-opportunity-card,
.longevity-active-target {
    gap: 9px;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 12px;
    background: #fff;
}

.longevity-opportunity-card[data-selected="true"] {
}

.longevity-opportunity-select:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.longevity-opportunity-why {
    min-width: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.25);
    padding-top: 8px;
}

.longevity-opportunity-why summary {
    width: fit-content;
    min-height: 44px;
    padding-block: 11px;
    text-decoration: underline;
    cursor: pointer;
}

.longevity-opportunity-why-body {
    display: grid;
    min-width: 0;
    gap: 7px;
    padding-bottom: 4px;
}

.longevity-opportunity-why-body p {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.longevity-opportunity-sources a {
    color: inherit;
}

.longevity-checkin-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
}

.cabinet-body #cabinet-section-home .longevity-active-target
    .longevity-checkin-actions[data-has-checkin="true"] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
}

.cabinet-body #cabinet-section-home
    .longevity-checkin-option[aria-pressed="true"][data-longevity-checkin-value="done"] {
    background: var(--habit-done-background);
    color: var(--habit-done-color);
}

.cabinet-body #cabinet-section-home
    .longevity-checkin-option[aria-pressed="true"][data-longevity-checkin-value="not_done"] {
    border-color: var(--habit-not-done-border);
    background: var(--habit-not-done-background);
    color: var(--habit-not-done-color);
}

.cabinet-body #cabinet-section-home .longevity-checkin-hide {
    width: auto;
    min-width: 64px;
    padding-inline: 8px;
}


.wellness-panel {
    display: grid;
    gap: 18px;
    border: 1px solid #000;
    padding: 22px;
    background: #fff;
}
.wellness-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.wellness-header-actions {
    display: grid;
    flex: 0 0 auto;
    justify-items: end;
    gap: 7px;
}

.wellness-header h2 {
    margin: 0;
}

.wellness-status {
    min-height: 22px;
    margin: 10px 0 0;
}

.wellness-status[data-type="error"] {
    color: #e13333;
}

.wellness-status[data-type="success"] {
    color: #0f766e;
}

.wellness-sync {
    flex: 0 0 auto;
    min-height: 42px;
    border: 1px solid #000;
    padding: 10px 16px;
    background: #000;
    color: #fff;
    white-space: nowrap;
}

.wellness-sync:hover {
    background: #e13333;
}

.wellness-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.wellness-card {
    min-width: 0;
    border: 1px solid #000;
    padding: 16px;
    background: #fcf8f7;
}

.wellness-card p {
    margin: 0;
}

.wellness-charts {
    display: grid;
    gap: 16px;
    min-width: 0;
}

.wellness-chart-panel,
.wellness-chart-panel .weight-chart-wrap {
    min-width: 0;
}

.wellness-chart-panel .weight-chart-wrap {
    position: relative;
}

.wellness-chart-point {
    transition: r 120ms ease;
}

.wellness-chart-point:hover {
    r: 6px;
}

.wellness-average-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 12px;
}

.wellness-average-toggle,
.wellness-average-window {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wellness-average-toggle input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #e13333;
}

.wellness-average-window input {
    width: 72px;
    min-height: 38px;
    border: 1px solid #000;
    padding: 6px 8px;
    background: #fff;
    color: #000;
    text-align: center;
}

.wellness-average-window input:disabled {
    background: #e7e1de;
    color: #78716c;
}

.wellness-moving-average-line {
    fill: none;
    stroke: #e13333;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 4;
}

.wellness-moving-average-point {
    fill: #e13333;
    stroke: #fff;
    stroke-width: 1.5;
}

.wellness-chart-tooltip {
    position: absolute;
    z-index: 3;
    width: max-content;
    max-width: none;
    transform: translateX(-50%);
    border: 1px solid #000;
    border-radius: var(--app-radius-data);
    padding: 7px 9px;
    background: #000;
    color: #fff;
    pointer-events: none;
    white-space: nowrap;
}

.wellness-chart-tooltip[hidden] {
    display: none;
}

.wellness-card strong {
    display: block;
    margin-top: 10px;
}

.wellness-card strong em {
    font-style: normal;
}

.wellness-card small {
    display: block;
    margin-top: 10px;
    color: #0f766e;
}

.manual-night-metrics-form {
    gap: 10px;
}

.cabinet-body #cabinet-section-night-metrics .manual-night-metrics-form .body-metrics-form-toggle {
    padding: 0;
    background: #fff;
    color: #000;
}

.cabinet-body #cabinet-section-night-metrics .manual-night-metrics-form .body-metrics-form-toggle[aria-expanded="true"] {
    background: #000;
    color: #fff;
}

.manual-night-metrics-message:empty {
    display: none;
}

.wellness-history td.is-manual {
    background: #fff3bd;
    font-weight: 700;
}

.night-metrics-history-actions {
    text-align: center;
}

.night-metrics-history-actions button {
    width: 100%;
    min-height: 44px;
    border: 1px solid #000;
    padding: 6px;
    background: #fff;
    color: #000;
}

.night-metrics-history-actions button:hover {
    background: #e13333;
    color: #fff;
}

.wellness-history {
    max-height: 360px;
    overflow: auto;
    border: 1px solid #000;
}

.wellness-history table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

.wellness-history caption {
    padding: 12px 14px;
    background: #000;
    color: #fff;
    text-align: left;
}

.wellness-history th,
.wellness-history td {
    border-bottom: 1px solid #d8d2cf;
    padding: 10px 14px;
    white-space: nowrap;
}

.wellness-history thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f4d35e;
    color: #000;
}

.wellness-history thead th:first-child,
.wellness-history tbody th {
    text-align: left;
}

.wellness-history tbody tr:last-child th,
.wellness-history tbody tr:last-child td {
    border-bottom: 0;
}

.weight-panel {
    display: grid;
    gap: 20px;
    border: 1px solid #000;
    padding: 22px;
    background: #fff;
}

.weight-header,
.weight-chart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.weight-header h2 {
    margin: 0;
}

.weight-status {
    min-height: 22px;
    margin: 10px 0 0;
}

.weight-status[data-type="error"],
.weight-message[data-type="error"] {
    color: #e13333;
}

.weight-status[data-type="success"],
.weight-message[data-type="success"] {
    color: #0f766e;
}

.weight-sync,
.weight-form button {
    min-height: 42px;
    border: 1px solid #000;
    padding: 10px 16px;
}

.weight-sync,
.weight-form button {
    background: #000;
    color: #fff;
}

.weight-sync {
    flex: 0 0 auto;
    white-space: nowrap;
}

.weight-sync:hover,
.weight-form button:hover {
    background: #e13333;
}

.weight-current-card,
.weight-form,
.weight-chart-panel,
.weight-history {
    border: 1px solid #000;
    background: #fcf8f7;
}

.weight-current-card,
.weight-form {
    padding: 18px;
}

.weight-current-card > p {
    margin: 0;
}

.weight-current-card strong {
    display: block;
    margin-top: 14px;
}

.weight-current-card strong em {
    font-style: normal;
}

.weight-current-card small {
    display: block;
    margin: 12px 0;
    color: #0f766e;
}

.weight-form {
    display: grid;
    align-content: start;
    gap: 12px;
}

.body-metrics-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.body-metrics-form-content {
    display: grid;
    gap: 12px;
}

.body-metrics-form-content[hidden] {
    display: none;
}

.cabinet-body #cabinet-section-weight .weight-form .body-metrics-form-toggle {
    padding: 0;
    background: #fff;
    color: #000;
}

.cabinet-body #cabinet-section-weight .weight-form .body-metrics-form-toggle[aria-expanded="true"] {
    background: #000;
    color: #fff;
}

.weight-form h3,
.weight-chart-header h3 {
    margin: 0;
}

.weight-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.weight-form label {
    display: grid;
    gap: 6px;
}

.weight-form input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #000;
    padding: 10px 12px;
    background: #fff;
    color: #000;
}

.weight-form > p {
    margin: 0;
    color: #57534e;
}

.weight-message {
    margin: -6px 0 0;
}

.weight-message:empty {
    display: none;
}

.weight-chart-panel,
.weight-history {
    padding: 18px;
}

.weight-chart-header {
    align-items: center;
}

.weight-ranges {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    height: 30px;
    border-radius: var(--app-radius-pill);
    background: var(--app-color-card, #f5f5f8);
    corner-shape: round;
}

body.cabinet-body .weight-ranges button {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 30px;
    min-height: 30px;
    border: 0;
    border-radius: var(--app-radius-pill);
    padding: 2px;
    background: transparent;
    background-clip: content-box;
    color: #000;
    corner-shape: round;
    white-space: nowrap;
}

body.cabinet-body .weight-ranges button:hover {
    background-color: rgb(255 255 255 / 56%);
}

body.cabinet-body .weight-ranges button.is-active {
    background-color: var(--app-color-background, #fff);
    color: #000;
}

.weight-chart-wrap {
    margin-top: 16px;
    overflow-x: auto;
    border: 1px solid #000;
    background: #fff;
}

.weight-chart {
    display: block;
    width: 100%;
    min-width: 620px;
    height: auto;
}

.weight-chart-grid {
    stroke: #d8d2cf;
    stroke-width: 1;
}

.weight-chart-axis,
.weight-chart-empty {
    fill: #57534e;
}

.weight-chart-line {
    fill: none;
    stroke: #000;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.weight-chart-point {
    stroke: #000;
    stroke-width: 2;
}

.weight-chart-point.is-intervals {
    fill: #0f766e;
}

.weight-chart-point.is-manual {
    fill: #f4d35e;
}

.weight-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 12px;
}

.weight-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.weight-legend i {
    width: 13px;
    height: 13px;
    border: 1px solid #000;
    border-radius: var(--app-radius-circle);
}

.weight-legend i.is-intervals {
    background: #0f766e;
}

.weight-legend i.is-manual {
    background: #f4d35e;
}

.weight-history-table {
    max-height: 360px;
    margin-top: 16px;
    overflow: auto;
    border: 1px solid #000;
    background: #fff;
}

.weight-history table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.weight-history th,
.weight-history td {
    border-bottom: 1px solid #d8d2cf;
    padding: 10px 12px;
    text-align: left;
}

.weight-history thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f4d35e;
}

.weight-history tbody tr:last-child th,
.weight-history tbody tr:last-child td {
    border-bottom: 0;
}

.weight-history-empty {
    color: #57534e;
    text-align: center !important;
}

.weight-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.weight-row-actions button {
    min-height: 32px;
    border: 1px solid #000;
    padding: 6px 10px;
    background: #fff;
    color: #000;
}

.weight-row-actions button:hover {
    background: #f4d35e;
}

.weight-row-actions button.is-delete {
    color: #b42318;
}

.weight-row-actions button.is-delete:hover {
    background: #e13333;
    color: #fff;
}

.weight-readonly-label {
    color: #78716c;
    white-space: nowrap;
}

.body-metrics-history-disclosure,
.body-metrics-history-disclosure-content,
.body-metrics-history-disclosure-chart-card {
    min-width: 0;
}

.body-metrics-history-disclosure {
    border-top: 0;
    padding-top: 0;
}

.body-metrics-history-disclosure-chart-card {
    margin: 0;
}

.body-metrics-history-disclosure-chart-wrap {
    position: relative;
    min-width: 0;
    overflow-x: hidden;
}

.body-metrics-history-disclosure-chart {
    min-width: 100%;
}

.body-metrics-history-disclosure-legend {
    margin-top: 8px;
}

.wellness-header {
        display: grid;
    }

.wellness-header-actions {
        justify-items: stretch;
    }

.weight-header,
    .weight-chart-header {
        display: grid;
    }

.wellness-sync,
    .weight-sync {
        width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
    }

.wellness-chart-tooltip {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        text-align: center;
        white-space: normal;
    }

.wellness-cards {
        grid-template-columns: 1fr;
    }

.weight-form-fields {
        grid-template-columns: 1fr;
    }


.steps-chart-wrap {
    position: relative;
}
.steps-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.steps-summary article {
    min-width: 0;
    border: 1px solid #000;
    padding: 18px;
    background: #fff;
}

.steps-summary p,
.steps-summary small {
    margin: 0;
}

.steps-summary strong {
    display: block;
    margin: 8px 0 2px;
    overflow-wrap: anywhere;
}

.steps-summary small {
    color: #0f766e;
}

.steps-period-total {
    min-height: 18px;
    margin: 5px 0 0;
    color: #0f766e;
}

.steps-chart-bar {
    fill: #0f766e;
    stroke: #000;
    stroke-width: 0.7;
}

.steps-chart-trend {
    fill: none;
    stroke: #e13333;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.steps-chart-trend-point {
    fill: #e13333;
    stroke: #000;
    stroke-width: 1;
}

.activity-view,
.workouts-view,
.workouts-history,
.workouts-list,
.workout-card {
    min-width: 0;
}

.activity-view {
    display: grid;
    gap: 20px;
}

.workouts-history {
    display: grid;
    gap: 16px;
    border: 1px solid #000;
    padding: 18px;
    background: #fcf8f7;
}

.workouts-message {
    min-height: 20px;
    margin: 6px 0 0;
    color: #57534e;
}

.workouts-message:empty {
    display: none;
}

.workouts-message[data-type="error"] {
    color: #e13333;
}

.workouts-message[data-type="warning"] {
    color: #8a5200;
}

.workouts-message[data-type="success"] {
    color: #0f766e;
}

.workouts-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 12px;
}

.workout-card {
    display: grid;
    align-content: start;
    gap: 14px;
    border: 1px solid #000;
    padding: 16px;
    background: #fff;
}

.workout-card header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.workout-card time {
    display: block;
    margin-bottom: 5px;
    color: #57534e;
}

.workout-card h4 {
    margin: 0;
    overflow-wrap: anywhere;
}

.workout-sport {
    flex: 0 0 auto;
    border: 1px solid #000;
    border-radius: var(--app-radius-pill);
    padding: 5px 9px;
    background: #cfe6e1;
    color: #0b2239;
    white-space: nowrap;
}

.workout-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.workout-metrics div {
    min-width: 0;
    border-top: 1px solid #d8d2cf;
    padding-top: 8px;
}

.workout-metrics dt {
    color: #57534e;
}

.workout-metrics dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.workout-source {
    margin: 0;
    color: #57534e;
}

.workout-source {
    overflow-wrap: anywhere;
}

.workout-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.workout-card.is-manual .workout-sport {
    background: #f4d35e;
}

.workout-delete {
    flex: 0 0 auto;
    min-height: 44px;
    border: 0;
    padding: 7px 4px 7px 10px;
    background: transparent;
    color: #b42318;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.workout-delete:hover {
    background: #fff1ef;
}

.workout-delete:disabled {
    cursor: wait;
    opacity: 0.55;
}

.workouts-empty {
    display: grid;
    grid-column: 1 / -1;
    min-height: 220px;
    place-content: center;
    gap: 8px;
    border: 1px dashed #777;
    padding: 24px;
    color: #57534e;
    text-align: center;
}

.workouts-empty p {
    margin: 0;
}

.workouts-more {
    justify-self: center;
    min-height: 44px;
    border: 1px solid #000;
    padding: 9px 16px;
    background: #fff;
    color: #000;
}

.workouts-more:hover {
    background: #f4d35e;
}

.manual-activity-entry {
    scroll-margin-top: 88px;
    border: 1px solid #000;
    background: #fff;
}

.manual-activity-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.manual-activity-entry-header h3 {
    min-width: 0;
    margin: 0;
}

.manual-activity-entry-toggle {
    display: grid;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    margin: 0;
    border: 1px solid #000;
    border-radius: var(--app-radius-circle);
    padding: 0;
    background: #fff;
    color: #000;
    cursor: pointer;
}

.manual-activity-entry-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
    transition: transform 180ms ease;
}

.manual-activity-entry-toggle[aria-expanded="true"] {
    background: #000;
    color: #fff;
}

.manual-activity-entry-toggle[aria-expanded="true"] svg {
    transform: rotate(45deg);
}

.manual-activity-entry-toggle:disabled {
    cursor: wait;
    opacity: 0.55;
}

.manual-activity-form {
    display: grid;
    gap: 14px;
    margin: 0;
}

.manual-activity-form[hidden] {
    display: none;
}

.manual-activity-datetime {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.manual-activity-datetime label,
.manual-activity-duration {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.manual-activity-datetime input,
.manual-activity-duration input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 48px;
}

.manual-activity-weight p,
.manual-activity-preview p,
.manual-activity-message {
    margin: 0;
}

.manual-activity-type,
.manual-activity-intensity {
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.manual-activity-type legend,
.manual-activity-intensity legend {
    margin-bottom: 6px;
}

.manual-activity-type-options,
.manual-activity-intensity-options {
    display: grid;
    gap: 5px;
}

.manual-activity-type-options {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.manual-activity-intensity-options {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.manual-activity-type-options label,
.manual-activity-intensity-options label {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.manual-activity-type-options label {
    grid-column: span 3;
}

.manual-activity-type-options label:nth-last-child(-n + 3) {
    grid-column: span 4;
}

.manual-activity-type-options input,
.manual-activity-intensity-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    opacity: 0;
}

.manual-activity-type-options span,
.manual-activity-intensity-options span {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 42px;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 4px;
    background: #fff;
    text-align: center;
}

.manual-activity-type-options span {
    min-height: 40px;
}

.manual-activity-type-options input:checked + span,
.manual-activity-intensity-options input:checked + span {
    background: #000;
    color: #fff;
}

.manual-activity-type-options input:focus-visible + span,
.manual-activity-intensity-options input:focus-visible + span {
    outline: 3px solid var(--app-focus-ring, #000);
    outline-offset: 3px;
}

.manual-activity-type-options input:disabled + span,
.manual-activity-intensity-options input:disabled + span {
    cursor: wait;
    opacity: 0.55;
}

.manual-activity-weight {
    display: grid;
    gap: 8px;
    border: 1px solid #000;
    padding: 12px;
    background: #f7f2e8;
}

.manual-activity-weight[data-type="missing"],
.manual-activity-weight[data-type="error"] {
    border-color: #e13333;
    background: #fff1ef;
}

.manual-activity-form .manual-activity-weight button {
    justify-self: start;
    min-height: 44px;
    background: #000;
    color: #fff;
}

.manual-activity-preview {
    display: grid;
    gap: 7px;
    border: 1px solid #000;
    padding: 14px;
    background: #cfe6e1;
}

.manual-activity-preview[hidden] {
    display: none;
}

.manual-activity-message {
    color: #57534e;
}

.manual-activity-message[hidden] {
    display: none;
}

.manual-activity-message[data-type="error"] {
    color: #e13333;
}

.manual-activity-form .manual-activity-submit {
    width: 100%;
    min-height: 50px;
    background: #000;
    color: #fff;
}

.manual-activity-form .manual-activity-submit:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.movement-module-view {
    width: 100%;
    min-width: 0;
}

.movement-module-detail,
.movement-module-entry {
    display: grid;
    min-width: 0;
    gap: 10px;
    border: 1px solid #000;
    border-radius: var(--app-radius-surface);
    padding: clamp(14px, 4cqi, 20px);
    background: #fff;
}

.movement-module-detail {
    margin-bottom: 18px;
}

.movement-module-entry.manual-activity-entry {
    display: block;
    padding: 0;
}

.manual-steps-entry-content {
    display: grid;
    min-width: 0;
    gap: 10px;
    padding: 0 14px 14px;
}

.manual-steps-entry-content[hidden] {
    display: none;
}

.movement-module-detail :where(h2, h3, p),
.movement-module-entry :where(h3, p) {
    margin: 0;
    overflow-wrap: anywhere;
}

.movement-module-progress {
    width: 100%;
    height: 14px;
    overflow: hidden;
    border: 1px solid #000;
    border-radius: var(--app-radius-pill);
    background: #fff;
}

.movement-module-progress > span {
    display: block;
    width: 0;
    height: 100%;
    background: #000;
    transition: width 180ms ease;
}

.strength-training-progress {
    display: grid;
    min-width: 0;
    gap: 18px;
}

.strength-training-progress[hidden] {
    display: none;
}

.strength-training-overview {
    display: grid;
    gap: 5px;
}

.strength-training-chart-figure {
    min-width: 0;
    margin: 0;
}

.strength-training-chart-figure figcaption {
    margin-bottom: 8px;
    text-transform: uppercase;
}

.strength-training-chart {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.strength-training-chart-grid {
    stroke: #d6d3d1;
    stroke-width: 0.75;
}

.strength-training-chart-bar {
    fill: #000;
}

.strength-training-chart-axis,
.strength-training-chart-value {
    fill: #57534e;
}

.strength-training-chart-value {
    fill: #000;
}

.movement-module-review,
.movement-module-entry form {
    display: grid;
    min-width: 0;
    gap: 10px;
}

.movement-module-review[hidden] {
    display: none;
}

.movement-module-review button,
.movement-module-entry button:not(.manual-activity-entry-toggle) {
    min-height: 44px;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 10px 14px;
    background: #000;
    color: #fff;
    text-transform: uppercase;
}

.movement-module-entry button.is-secondary,
.movement-module-review button:last-child {
    background: #fff;
    color: #000;
}

.movement-module-entry label {
    display: grid;
    min-width: 0;
    gap: 6px;
    text-transform: uppercase;
}

.movement-module-entry input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 8px 10px;
    background: #fff;
    color: #000;
    font: inherit;
}


.steps-summary {
        grid-template-columns: 1fr;
    }
.self-assessment,
.sleep-observation-home,
.wellbeing-home-checkin {
    --assessment-ink: #000;
    --assessment-paper: #fff;
    --assessment-muted: #57504d;
    --assessment-accent: #0f766e;
    --assessment-highlight: #f4d35e;
    --assessment-danger: #b42318;
    color: var(--assessment-ink);
}

#cabinet-section-wellbeing {
    --assessment-accent: #000;
    gap: var(--app-today-card-gap);
}

#cabinet-section-wellbeing .assessment-history-card {
    --assessment-accent: #0f766e;
}

.self-assessment *,
.sleep-observation-home *,
.wellbeing-home-checkin * {
    box-sizing: border-box;
}

.self-assessment button,
.self-assessment input,
.sleep-observation-home button,
.sleep-observation-home input,
.wellbeing-home-checkin button,
.wellbeing-home-checkin input {
    font: inherit;
}

.sleep-observation-home,
.wellbeing-home-checkin {
    min-width: 0;
    margin: 0 0 18px;
}

.wellbeing-checkin-card,
.assessment-history-card {
    min-width: 0;
    border: 1px solid var(--assessment-ink);
    background: var(--assessment-paper);
}

.checkin-card-period {
    margin: 0 0 7px;
    color: var(--assessment-accent);
}

.wellbeing-home-checkin .checkin-card-period {
    color: var(--assessment-ink);
}

.assessment-day-picker {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    align-items: stretch;
    overflow: hidden;
    width: 100%;
    min-height: 54px;
    border: 1px solid var(--app-line-subtle);
    border-radius: var(--app-radius-control);
    background: var(--assessment-paper);
    corner-shape: var(--app-corner-shape);
}

.assessment-day-picker strong {
    display: grid;
    place-items: center;
    min-width: 0;
    padding: 8px 10px;
    text-align: center;
    text-transform: uppercase;
}

.assessment-day-button {
    display: grid;
    place-items: center;
    min-width: 54px;
    min-height: 54px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: var(--assessment-ink);
    cursor: pointer;
    touch-action: manipulation;
}

.assessment-day-button:first-of-type {
    border-right: 1px solid var(--assessment-ink);
}

.assessment-day-button:last-of-type {
    border-left: 1px solid var(--assessment-ink);
}

.assessment-day-button:hover {
    background: var(--assessment-highlight);
}

.assessment-day-button:disabled {
    cursor: default;
    opacity: 0.3;
}

.assessment-day-button:disabled:hover {
    background: transparent;
}

.checkin-scale input:focus-visible + span,
.checkin-context input:focus-visible + span {
    outline: 3px solid var(--app-focus-ring, #000);
    outline-offset: 3px;
}

.assessment-backfill {
    margin: 0;
    border: 1px solid var(--assessment-ink);
    border-left: 7px solid var(--assessment-highlight);
    border-radius: var(--app-radius-control);
    padding: 12px 14px;
    background: var(--assessment-paper);
}

.assessment-message {
    min-height: 1.25em;
    margin: 10px 0 0;
    color: var(--assessment-muted);
}

.assessment-message[data-type="error"] {
    color: var(--assessment-danger);
}

.assessment-message[data-type="success"] {
    color: var(--assessment-accent);
}

.wellbeing-checkin-card > .assessment-message:empty {
    display: none;
}

.assessment-history-status {
    min-height: 0;
    margin: 0;
}

.assessment-history-status:empty {
    display: none;
}

.assessment-editor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--app-today-card-gap);
    margin: 0;
}

.assessment-editor-grid > section {
    min-width: 0;
}

.wellbeing-checkin-card {
    padding: 18px;
}

.checkin-card-header,
.assessment-history-heading,
.checkin-summary,
.checkin-actions {
    display: flex;
    align-items: center;
}

.checkin-card-header,
.assessment-history-heading {
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.checkin-form {
    margin-top: 16px;
}

.sleep-observation-home .sleep-confirmation-form {
    margin-top: 16px;
}

.sleep-observation-prefill {
    margin: 9px 0 0;
    color: var(--assessment-muted);
}

.checkin-questions {
    display: grid;
    gap: 16px;
}

.checkin-question {
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.checkin-question legend {
    width: 100%;
    margin: 0 0 7px;
    padding: 0;
}

.checkin-scale {
    display: grid;
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    gap: 4px;
    width: 100%;
}

.checkin-scale label {
    position: relative;
    min-width: 0;
}

.checkin-scale input,
.checkin-context input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.checkin-scale span {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--assessment-ink);
    border-radius: var(--app-radius-pill);
    background: var(--assessment-paper);
    color: var(--assessment-ink);
    cursor: pointer;
}

.checkin-scale input:checked + span {
    background: var(--assessment-ink);
    color: var(--assessment-paper);
}

.checkin-scale-labels {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 5px;
    color: var(--assessment-muted);
}

.checkin-scale-labels span:last-child {
    text-align: right;
}

.checkin-context {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 18px 0 0;
    border: 0;
    padding: 0;
}

.checkin-context legend {
    width: 100%;
    margin: 0 0 3px;
    padding: 0;
}

.checkin-context label {
    position: relative;
}

.checkin-context span {
    display: grid;
    place-items: center;
    min-height: 44px;
    border: 1px solid var(--assessment-ink);
    border-radius: var(--app-radius-pill);
    padding: 7px 11px;
    background: var(--assessment-paper);
    cursor: pointer;
}

.checkin-context input:checked + span {
    background: var(--assessment-highlight);
}

.checkin-actions {
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.assessment-action {
    min-height: 44px;
    border: 1px solid var(--assessment-ink);
    padding: 8px 13px;
    background: var(--assessment-paper);
    color: var(--assessment-ink);
    cursor: pointer;
}

.assessment-action[data-primary] {
    background: var(--assessment-ink);
    color: var(--assessment-paper);
}

.assessment-action:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.assessment-action:not(:disabled):hover {
    background: var(--assessment-highlight);
    color: var(--assessment-ink);
}

.checkin-summary {
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--assessment-ink);
    padding-top: 13px;
}

.checkin-summary p {
    margin: 0;
    color: var(--assessment-muted);
}

.checkin-summary strong {
    display: block;
    margin-top: 3px;
    color: var(--assessment-accent);
}

.sleep-observation-home .checkin-summary p,
.sleep-observation-home .checkin-summary .checkin-card-period,
.sleep-observation-home .checkin-summary strong,
.wellbeing-home-checkin .checkin-summary p,
.wellbeing-home-checkin .checkin-summary .checkin-card-period,
.wellbeing-home-checkin .checkin-summary strong {
    color: var(--assessment-ink);
}

.checkin-summary-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.wellbeing-checkin-card[data-collapsed="true"] {
    padding: 12px 14px;
}

#cabinet-section-wellbeing .wellbeing-checkin-card[data-collapsed="true"] {
    padding: var(--app-card-padding);
}

.wellbeing-checkin-card[data-collapsed="true"] .checkin-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    margin: 0;
    border: 0;
    padding: 0;
}

.wellbeing-checkin-card[data-collapsed="true"] .checkin-summary p {
    display: flex;
    min-width: 0;
    width: 100%;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.wellbeing-checkin-card[data-collapsed="true"] .checkin-card-period,
.wellbeing-checkin-card[data-collapsed="true"] .checkin-summary strong {
    display: inline;
    margin: 0;
}

.wellbeing-checkin-card[data-collapsed="true"] .checkin-card-period {
    overflow-wrap: anywhere;
}

#cabinet-section-wellbeing .wellbeing-checkin-card[data-collapsed="true"] .checkin-card-period {
    color: var(--assessment-ink);
    text-transform: uppercase;
}

.wellbeing-checkin-card[data-collapsed="true"] .checkin-summary strong {
    flex: 0 0 auto;
    white-space: nowrap;
}

.wellbeing-checkin-card[data-collapsed="true"] .checkin-summary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 6px;
}

.wellbeing-checkin-card[data-collapsed="true"] .checkin-summary-actions .assessment-action {
    width: 100%;
    min-width: 0;
    padding-inline: 9px;
}

.wellbeing-checkin-card[data-collapsed="true"] .assessment-message {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.assessment-history-card {
    margin: 0;
    padding: 18px;
}

.assessment-chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px 11px;
    color: var(--assessment-muted);
}

.assessment-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.assessment-chart-legend i {
    width: 16px;
    height: 4px;
    border-radius: var(--app-radius-pill);
    background: var(--assessment-ink);
}

.assessment-chart-legend i[data-series="backfill"] {
    height: 10px;
    border: 2px dashed var(--assessment-muted);
    background: var(--assessment-paper);
}

.assessment-chart-wrap {
    min-height: 190px;
    margin-top: 14px;
    overflow: hidden;
}

.assessment-trend-chart {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
}

.assessment-chart-grid {
    stroke: #d8d1ce;
    stroke-width: 1;
}

.assessment-chart-axis-label,
.assessment-chart-empty,
.assessment-chart-date {
    fill: var(--assessment-muted);
}

.assessment-chart-line {
    fill: none;
    stroke: var(--assessment-ink);
    stroke-width: 2.5;
}

.assessment-chart-point {
    fill: var(--assessment-paper);
    stroke: var(--assessment-ink);
    stroke-width: 2;
}

.assessment-chart-point[data-backfilled="true"] {
    stroke-dasharray: 2 2;
    stroke-width: 3;
}

.assessment-empty {
    margin: 12px 0 0;
    color: var(--assessment-muted);
}






.wellbeing-checkin-card,
.assessment-history-card {
    padding: 15px;
}

#cabinet-section-wellbeing .wellbeing-checkin-card[data-collapsed="true"] {
    padding: 15px;
}

.checkin-scale {
    gap: 2px;
}

.checkin-scale span {
    min-width: 44px;
}

.checkin-card-header,
.assessment-history-heading,
.checkin-summary {
    align-items: stretch;
    flex-direction: column;
}

.wellbeing-checkin-card[data-collapsed="true"] .checkin-summary {
    align-items: center;
    flex-direction: row;
}

.wellbeing-checkin-card[data-collapsed="true"] .checkin-summary-actions {
    gap: 5px;
}

.wellbeing-checkin-card[data-collapsed="true"] .assessment-action {
    padding-inline: 9px;
}

.assessment-chart-legend {
    justify-content: flex-start;
}


html {
    overflow-x: clip;
    background: #fff;
}

.cabinet-body {
    --app-reference-viewport: 360px;
    --app-reference-height: 852px;
    --app-page-inline: clamp(14px, 4.071cqi, 18px);
    --app-page-top: clamp(22px, 6.107cqi, 28px);
    --app-page-bottom: clamp(40px, 12.214cqi, 56px);
    --app-content-gap: clamp(16px, 5.089cqi, 22px);
    --app-card-padding: clamp(14px, 4.071cqi, 18px);
    --app-control-gap: 5px;
    --app-bottom-nav-height: 44px;
    --details-section-row-height: 44px;
    --details-section-icon-size: 30px;
    --details-section-gap: 10px;
    container-name: app-frame;
    container-type: inline-size;
    width: var(--app-logical-width, min(100%, 450px));
    max-width: none;
    min-height: var(--app-logical-height, 100svh);
    margin: 0 auto;
    overflow-x: clip;
    background: #fff;
    zoom: var(--app-scale, 1);
}

.cabinet-body .cabinet-shell {
    width: 100%;
    min-height: var(--app-logical-height, 100svh);
    padding: var(--app-page-top) var(--app-page-inline) calc(var(--app-page-bottom) + var(--app-bottom-nav-height) + env(safe-area-inset-bottom) + var(--app-keyboard-inset, 0px));
    scroll-padding-block-end: calc(var(--app-bottom-nav-height) + env(safe-area-inset-bottom) + var(--app-keyboard-inset, 0px) + 16px);
}

.cabinet-body .cabinet-dialog:not(.wearable-onboarding-dialog) {
    max-height: calc(var(--app-visual-height, var(--app-logical-height, 100dvh)) - 32px);
    overflow-y: auto;
    scroll-padding-block-end: calc(var(--app-keyboard-inset, 0px) + 16px);
}

.cabinet-body .cabinet-shell:has(.cabinet-section-header:not([hidden])) {
    padding-top: env(safe-area-inset-top);
}

.cabinet-body :where(.cabinet-auth, .cabinet-setup, .cabinet-app) {
    width: 100%;
    max-width: none;
    margin-inline: auto;
}

.cabinet-body :where(.cabinet-content, .cabinet-section-view, .nutrition-section) {
    gap: var(--app-content-gap);
}

.cabinet-body .cabinet-home {
    display: grid;
    gap: var(--app-content-gap);
}

.cabinet-body .app-topbar {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 44px;
    margin-top: 0;
}

.cabinet-body .app-topbar[hidden] {
    display: none;
}

.cabinet-body .cabinet-section-header {
    position: sticky;
    z-index: 90;
    top: env(safe-area-inset-top);
    display: grid;
    grid-template-columns: 44px var(--details-section-icon-size) minmax(0, 1fr);
    align-items: center;
    gap: var(--details-section-gap);
    width: 100%;
    height: var(--details-section-row-height);
    min-height: var(--details-section-row-height);
    border: 0;
    border-radius: 0;
    padding: 0 10px 0 0;
    background: var(--app-color-background, #fff);
}

.cabinet-body .cabinet-section-header::after {
    position: absolute;
    top: 100%;
    right: 50%;
    width: 100cqi;
    height: 32px;
    transform: translateX(50%);
    background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0));
    content: "";
    pointer-events: none;
}

.cabinet-body .cabinet-section-header[hidden] {
    display: none;
}

.cabinet-body .cabinet-section-header.is-iconless {
    grid-template-columns: 44px minmax(0, 1fr);
}

.cabinet-body .cabinet-section-header.is-iconless .cabinet-section-header-icon {
    display: none;
}

.cabinet-body .cabinet-back-button {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    border: 0;
    border-radius: var(--app-radius-circle);
    padding: 0;
    appearance: none;
    background: transparent;
    color: #000;
    cursor: pointer;
    touch-action: manipulation;
}

.cabinet-body .cabinet-section-header-icon {
    display: grid;
    place-items: center;
    width: var(--details-section-icon-size);
    height: var(--details-section-icon-size);
    border-radius: var(--app-radius-circle);
    background: transparent;
    color: #707070;
}

.cabinet-body .cabinet-section-header-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.cabinet-body .cabinet-section-header-label {
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.cabinet-body .app-topbar-title {
    min-width: 0;
    margin: 0 8px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cabinet-body .app-topbar-title[hidden] {
    display: none;
}

.cabinet-body .cabinet-back-button svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.cabinet-body .cabinet-sections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--app-control-gap);
}

.cabinet-body .cabinet-section-button {
    min-height: 44px;
    padding: 6px 4px;
}

.cabinet-body .cabinet-section-button[data-pro-section] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.cabinet-body .cabinet-section-button.is-pro-locked,
.cabinet-body .cabinet-section-button.is-pro-locked:hover {
    transform: none;
    border-color: #81764a;
    background: #f1ede0;
    color: #625b43;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

.cabinet-body nav.details-section-picker {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
}

.cabinet-body nav.details-section-picker .cabinet-section-button,
.cabinet-body nav.details-section-picker .cabinet-section-button[data-pro-section] {
    display: grid;
    grid-template-columns: var(--details-section-icon-size) minmax(0, 1fr) auto;
    align-items: center;
    justify-content: stretch;
    gap: var(--details-section-gap);
    width: 100%;
    height: var(--details-section-row-height);
    min-height: var(--details-section-row-height);
    border-radius: var(--app-radius-surface);
    padding: 6px 10px;
    text-align: left;
    white-space: nowrap;
}

.cabinet-body .details-section-icon {
    display: grid;
    place-items: center;
    width: var(--details-section-icon-size);
    height: var(--details-section-icon-size);
    border-radius: var(--app-radius-circle);
    background: transparent;
    color: #707070;
}

.cabinet-body .details-section-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.cabinet-body .details-section-label {
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
}

.cabinet-body nav.details-section-picker .cabinet-section-button.is-active .details-section-icon {
    background: #000;
    color: #fff;
}

.cabinet-body nav.details-section-picker .cabinet-section-button.is-pro-locked .details-section-icon {
    background: transparent;
    color: #625b43;
}

.cabinet-body .cabinet-home .recovery-recommendation {
    min-width: 0;
    margin: 0;
    padding: 14px;
}

.cabinet-body .cabinet-home {
    min-width: 0;
    align-content: start;
}

.cabinet-body .today-debug-actions,
.cabinet-body .today-list,
.cabinet-body .today-item,
.cabinet-body .today-item-card,
.cabinet-body .today-item-actions {
    min-width: 0;
}

.cabinet-body .today-item {
    padding: var(--app-card-padding);
}

.cabinet-body .today-item-actions {
    grid-template-columns: minmax(0, 1fr);
}

.cabinet-body .today-item-readiness .recovery-recommendation {
    padding: 0;
}

.cabinet-body .today-item-actions :where(button, a) {
    max-width: 100%;
    min-height: 44px;
}

.cabinet-body .app-bottom-nav {
    position: fixed;
    z-index: 100;
    right: auto;
    top: calc(
        var(--app-visual-offset-top, 0px)
        + var(--app-visual-height, var(--app-logical-height, 100dvh))
        + var(--app-keyboard-inset, 0px)
        - var(--app-bottom-nav-height)
        - 10px
        - env(safe-area-inset-bottom)
    );
    bottom: auto;
    left: calc((var(--app-frame-left, 0px) / var(--app-scale, 1)) + var(--app-page-inline));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    column-gap: 0;
    height: var(--app-bottom-nav-height);
    width: calc(var(--app-logical-width, 100cqi) - (2 * var(--app-page-inline)));
    min-height: var(--app-bottom-nav-height);
    margin: 0;
    pointer-events: none;
}

.cabinet-body .app-bottom-nav-primary {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    display: grid;
    grid-template-columns: repeat(3, 60px);
    align-items: center;
    gap: 4px;
    height: var(--app-bottom-nav-height);
    box-sizing: border-box;
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: var(--app-radius-pill);
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    pointer-events: auto;
}

.cabinet-body .today-debug-toggle {
    appearance: none;
    position: absolute;
    z-index: 1;
    right: 0;
    bottom: 12px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: #e13333;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
}

.cabinet-body .today-debug-toggle[hidden] {
    display: none;
}

.cabinet-body .today-debug-toggle svg {
    grid-area: 1 / 1;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.cabinet-body .today-debug-toggle[aria-expanded="true"] .today-debug-eye-closed,
.cabinet-body .today-debug-toggle[aria-expanded="false"] .today-debug-eye-open {
    display: none;
}

.cabinet-body .today-debug-toggle:hover {
    background: transparent;
    color: #e13333;
}

.cabinet-body .app-bottom-nav-item {
    appearance: none;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border: 0;
    padding: 0 8px;
    background: transparent;
    color: #707070;
    font: inherit;
    touch-action: manipulation;
}

.cabinet-body .app-bottom-nav-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
    stroke: none;
}

.cabinet-body :is(
    .app-bottom-nav-home,
    .app-bottom-nav-modules,
    .app-bottom-nav-settings
) svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.cabinet-body .app-bottom-nav-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: var(--app-radius-circle);
    color: inherit;
}

.cabinet-body .app-bottom-nav-item.is-active {
    background: transparent;
    color: #000;
}

.cabinet-body .app-bottom-nav-item.is-active .app-bottom-nav-icon {
    background: #000;
    color: #fff;
}

.cabinet-body .manual-activity-entry-header {
    padding: 14px;
}

.cabinet-body .manual-activity-form {
    padding: 0 14px 14px;
}

.cabinet-body .manual-activity-type-options span,
.cabinet-body .manual-activity-intensity-options span,
.cabinet-body .manual-activity-submit {
    touch-action: manipulation;
}

@media (prefers-reduced-motion: reduce) {
    .cabinet-body .manual-activity-entry-toggle svg {
        animation: none;
        transition: none;
    }
}

.cabinet-body :where(
    .auth-panel,
    .wellbeing-checkin-card,
    .assessment-history-card,
    .recovery-recommendation,
    .wellness-panel,
    .weight-panel,
    .notification-settings,
    .privacy-settings,
    .account-settings,
    .settings-utility-card,
    .nutrition-panel,
    .nutrition-history-panel
) {
    padding: var(--app-card-padding);
    box-shadow: var(--app-card-shadow);
}

.cabinet-body #cabinet-section-night-metrics > .wellness-panel,
.cabinet-body #cabinet-section-weight > .weight-panel:first-of-type,
.cabinet-body #cabinet-section-activity > .steps-panel,
.cabinet-body #cabinet-section-nutrition > .nutrition-panel,
.cabinet-body #cabinet-section-nutrition > .nutrition-history-panel {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.cabinet-body #cabinet-section-night-metrics .wellness-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.cabinet-body #cabinet-section-night-metrics .wellness-card {
    padding: 10px 8px;
}

.cabinet-body #cabinet-section-night-metrics .wellness-card strong {
    margin-top: 7px;
}

.cabinet-body #cabinet-section-night-metrics .wellness-card small {
    margin-top: 7px;
}

.cabinet-body #cabinet-section-night-metrics .manual-night-metrics-form {
    padding: 14px;
}

.cabinet-body #cabinet-section-night-metrics .manual-night-metrics-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cabinet-body #cabinet-section-night-metrics .manual-night-metrics-date-field {
    grid-column: 1 / -1;
}

.cabinet-body #cabinet-section-night-metrics .manual-night-metrics-form label {
    min-width: 0;
}

.cabinet-body #cabinet-section-night-metrics .manual-night-metrics-form input {
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
}

.cabinet-body #cabinet-section-night-metrics .manual-night-metrics-form button {
    min-height: 44px;
}

.cabinet-body #cabinet-section-night-metrics .manual-night-metrics-form button[type="submit"] {
    padding: 8px 12px;
}

.cabinet-body #cabinet-section-night-metrics .manual-night-metrics-message {
    margin: -10px 0 0;
}

.cabinet-body #cabinet-section-night-metrics .wellness-chart-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.cabinet-body #cabinet-section-night-metrics .wellness-charts {
    gap: 34px;
    margin-top: 14px;
}

.cabinet-body #cabinet-section-night-metrics .wellness-chart-panel .weight-chart-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    gap: 10px;
}

.cabinet-body #cabinet-section-night-metrics .wellness-chart-panel .weight-chart-wrap {
    overflow-x: hidden;
}

.cabinet-body #cabinet-section-night-metrics .wellness-chart {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
}

.cabinet-body #cabinet-section-night-metrics .wellness-average-controls {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
}

.cabinet-body #cabinet-section-night-metrics :where(.wellness-average-toggle, .wellness-average-window) {
    min-width: 0;
    min-height: 44px;
    gap: 5px;
    white-space: nowrap;
}

.cabinet-body #cabinet-section-night-metrics .wellness-average-toggle input {
    width: 18px;
    height: 18px;
}

.cabinet-body #cabinet-section-night-metrics .wellness-average-window input {
    width: 56px;
    min-height: 40px;
    padding: 5px;
}

.cabinet-body #cabinet-section-night-metrics .wellness-history {
    overflow-x: hidden;
    overflow-y: auto;
}

.cabinet-body #cabinet-section-night-metrics .wellness-history table {
    table-layout: fixed;
}

.cabinet-body #cabinet-section-night-metrics .wellness-history caption {
    padding: 9px 7px;
    white-space: normal;
}

.cabinet-body #cabinet-section-night-metrics .wellness-history :where(th, td) {
    padding: 8px 3px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cabinet-body #cabinet-section-night-metrics .wellness-history thead th {
    white-space: normal;
}

.cabinet-body #cabinet-section-night-metrics .wellness-history thead th:first-child {
    width: 20%;
}

.cabinet-body #cabinet-section-night-metrics .wellness-history thead th:nth-child(2) {
    width: 15%;
}

.cabinet-body #cabinet-section-night-metrics .wellness-history thead th:nth-child(3),
.cabinet-body #cabinet-section-night-metrics .wellness-history thead th:nth-child(4) {
    width: 10%;
}

.cabinet-body #cabinet-section-night-metrics .wellness-history thead th:nth-child(5) {
    width: 23%;
}

.cabinet-body #cabinet-section-night-metrics .wellness-history thead th:nth-child(6) {
    width: 22%;
}

.cabinet-body #cabinet-section-night-metrics .wellness-history tbody th {
    white-space: normal;
}

.cabinet-body #cabinet-section-night-metrics .wellness-history .wellness-history-empty {
    text-align: center;
}

.cabinet-body #cabinet-section-night-metrics .night-metrics-history-actions {
    padding: 3px;
}

.cabinet-body #cabinet-section-night-metrics .night-metrics-history-actions button {
    min-width: 0;
    padding: 4px 2px;
}

.cabinet-body :where(
    .wellness-header,
    .weight-header,
    .weight-chart-header,
    .health-assessment-heading
) {
    align-items: stretch;
    flex-direction: column;
}

.cabinet-body :where(
    .notification-settings,
    .privacy-settings,
    .account-settings,
    .settings-utility-card,
    .weight-form-fields,
    .wellness-cards,
    .steps-summary,
    .habit-summary,
    .health-assessment-grid
) {
    grid-template-columns: minmax(0, 1fr);
}

.cabinet-body .settings-support-card {
    grid-template-columns: minmax(0, 1fr) auto;
}

.cabinet-body .settings-pro-card {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    border-width: 2px;
    background: #000;
    color: #fff;
}

.cabinet-body .settings-pro-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cabinet-body .settings-pro-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.cabinet-body .settings-pro-card h2 {
    margin: 0;
    min-width: 0;
}

.cabinet-body .settings-pro-card p {
    margin: 0;
}

.cabinet-body .settings-upgrade-placeholder {
    width: 100%;
    min-height: 44px;
    border: 1px solid #fff;
    border-radius: var(--app-radius-pill);
    padding: 8px 13px;
    background: #f4d35e;
    color: #000;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
}

.cabinet-body .settings-upgrade-placeholder:hover:not(:disabled) {
    background: #e13333;
    color: #fff;
}

.cabinet-body .settings-upgrade-placeholder:disabled {
    min-height: 44px;
    cursor: not-allowed;
    opacity: 1;
}

.cabinet-body .pro-payment-dialog {
    width: min(520px, calc(100% - 24px));
    max-height: calc(100svh - 24px);
    overflow: auto;
}

.cabinet-body .pro-payment-form {
    gap: 10px;
    padding: clamp(16px, 5cqi, 22px);
}

.cabinet-body .pro-payment-form h2 {
    overflow-wrap: anywhere;
}

.cabinet-body .pro-payment-copy,
.cabinet-body .pro-payment-total,
.cabinet-body .pro-payment-legal {
    overflow-wrap: anywhere;
}

.cabinet-body .pro-payment-promo {
    display: block;
}

.cabinet-body .pro-payment-promo summary {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #000;
    padding: 8px 12px;
    background: #fff;
    color: #000;
    cursor: pointer;
    list-style: none;
}

.cabinet-body .pro-payment-promo summary::-webkit-details-marker {
    display: none;
}

.cabinet-body .pro-payment-promo summary::after {
    content: "+";
    flex: 0 0 auto;
}

.cabinet-body .pro-payment-promo[open] summary::after {
    content: "−";
}

.cabinet-body .pro-payment-promo-body {
    display: grid;
    gap: 6px;
    padding-top: 8px;
}

.cabinet-body .pro-payment-promo-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.cabinet-body .pro-payment-promo-controls input {
    min-width: 0;
}

.cabinet-body .pro-payment-promo-controls button,
.cabinet-body .pro-payment-form menu button {
    width: 100%;
    min-height: 44px;
    white-space: normal;
}

.cabinet-body .pro-payment-form button[data-pro-submit] {
    background: #000;
    color: #fff;
}

.cabinet-body .pro-payment-form button[data-pro-submit]:hover {
    background: #e13333;
}

.cabinet-body .pro-payment-form menu {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.cabinet-body :where(
    .notification-settings-controls,
    .wellness-header-actions
) {
    width: 100%;
}

.cabinet-body :where(
    .notification-settings-controls button,
    .intervals-disconnect-button,
    .wellness-sync,
    .weight-sync,
    .settings-account-card .cabinet-logout
) {
    width: 100%;
}

.cabinet-body .intervals-oauth-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 50px;
    align-items: stretch;
    gap: 8px;
}

.cabinet-body .intervals-oauth-connect-button {
    grid-column: 1 / -1;
}

.cabinet-body .intervals-oauth-actions .intervals-disconnect-button {
    grid-column: 1;
    width: 100%;
    min-height: 50px;
}

.cabinet-body .intervals-oauth-actions .intervals-full-sync-button {
    grid-column: 2;
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
}

.cabinet-body .settings-account-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
}

.cabinet-body .settings-account-card .settings-utility-copy {
    min-width: 0;
}

.cabinet-body .settings-account-card .cabinet-user {
    display: block;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    text-transform: none;
}

.cabinet-body .settings-account-card .cabinet-logout {
    width: auto;
    min-width: 64px;
    min-height: 44px;
    padding: 8px;
    white-space: nowrap;
}

.cabinet-body .intervals-oauth-connect-button {
    min-height: 44px;
}

.cabinet-body .wellness-header-actions {
    justify-items: stretch;
}

.cabinet-body #cabinet-section-night-metrics .wellness-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.cabinet-body #cabinet-section-night-metrics .wellness-header > div:first-child {
    min-width: 0;
}

.cabinet-body #cabinet-section-night-metrics .wellness-status {
    min-height: 0;
    margin: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.cabinet-body #cabinet-section-night-metrics .wellness-header-actions {
    width: auto;
    justify-items: end;
}

.cabinet-body #cabinet-section-night-metrics .wellness-sync {
    width: auto;
    min-height: 44px;
    padding: 8px 12px;
}

.cabinet-body .nutrition-status {
    text-align: left;
}

.cabinet-body .nutrition-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cabinet-body .nutrition-status:empty {
    display: none;
}

.cabinet-body .nutrition-fields label:first-child {
    grid-column: 1 / -1;
}

.cabinet-body [data-app-message]:empty {
    display: none;
}

.cabinet-body #cabinet-section-settings .danger-zone {
    gap: 8px;
    margin-top: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.cabinet-body #cabinet-section-settings .danger-zone :where(.data-settings, .account-settings) {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 10px 12px;
    box-shadow: none;
}

.cabinet-body #cabinet-section-settings .danger-zone :where(.privacy-settings-copy p, .account-settings-copy p) {
    margin-top: 3px;
}

.cabinet-body #cabinet-section-settings .danger-zone :where(.data-delete-open, .account-delete-open) {
    justify-self: end;
    min-width: 44px;
    min-height: 44px;
    padding: 7px 10px;
}

.cabinet-body #cabinet-section-settings .danger-zone :where(.privacy-settings-status, .account-delete-status):empty {
    display: none;
}

.cabinet-body #cabinet-section-activity .steps-summary {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-flow: column;
    gap: 6px;
    width: 100%;
}

.cabinet-body #cabinet-section-activity .steps-summary article {
    width: auto;
    min-width: 0;
    min-height: 84px;
    padding: 6px 7px;
    background: transparent;
}

.cabinet-body #cabinet-section-activity .steps-summary strong {
    margin: 6px 0 3px;
    white-space: nowrap;
}

.cabinet-body #cabinet-section-activity .steps-summary small {
    display: block;
}

.cabinet-body #cabinet-section-activity .steps-chart-panel {
    display: flex;
    flex-direction: column;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cabinet-body #cabinet-section-activity .steps-chart-panel .weight-chart-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    order: 1;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
}

.cabinet-body #cabinet-section-activity .steps-chart-panel .steps-chart-wrap {
    order: 2;
    width: 100%;
    overflow-x: hidden;
}

.cabinet-body #cabinet-section-activity .steps-chart-panel .steps-chart {
    width: 100%;
    min-width: 0;
}

.cabinet-body #cabinet-section-activity .steps-chart-panel .steps-period-total {
    margin: 8px 0 0;
}

.cabinet-body #cabinet-section-activity .steps-chart-panel .steps-chart-legend {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 10px;
    margin: 0;
    padding: 3px 5px;
    border-radius: var(--app-radius-data);
    background: rgba(255, 255, 255, 0.9);
    pointer-events: none;
}

.cabinet-body #cabinet-section-activity .steps-chart-panel .wellness-average-controls {
    order: 3;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 6px;
}

.cabinet-body #cabinet-section-activity .steps-chart-panel :where(.wellness-average-toggle, .wellness-average-window) {
    min-width: 0;
    min-height: 44px;
    gap: 4px;
    white-space: nowrap;
}

.cabinet-body #cabinet-section-activity .steps-chart-panel .wellness-average-toggle input {
    width: 18px;
    height: 18px;
}

.cabinet-body #cabinet-section-activity .steps-chart-panel .wellness-average-window input {
    width: 48px;
    min-height: 38px;
    padding: 4px;
}

.cabinet-body #cabinet-section-activity .weight-history {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.cabinet-body #cabinet-section-activity .weight-history-table {
    width: 100%;
    overflow-x: hidden;
}

.cabinet-body #cabinet-section-activity .weight-history table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}

.cabinet-body #cabinet-section-activity .weight-history :where(th, td) {
    padding: 9px 10px;
    white-space: nowrap;
}

.cabinet-body #cabinet-section-activity .weight-history :where(th, td):first-child {
    width: 64%;
}

.cabinet-body #cabinet-section-activity .weight-history :where(th, td):last-child {
    width: 36%;
    text-align: right;
}

.cabinet-body #cabinet-section-activity .activity-view {
    gap: 18px;
}

.cabinet-body #cabinet-section-weight .body-metrics-panel {
    gap: 14px;
}

.cabinet-body #cabinet-section-weight .body-metrics-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-block: 1px solid rgba(0, 0, 0, 0.24);
    padding-block: 14px;
}

.cabinet-body #cabinet-section-weight :where(
    .weight-current-card,
    .weight-form,
    .weight-chart-panel,
    .weight-history
) {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.cabinet-body #cabinet-section-weight :where(
    .weight-form,
    .weight-chart-panel,
    .weight-history
) {
    border-top: 1px solid rgba(0, 0, 0, 0.24);
    padding-top: 16px;
}

.cabinet-body #cabinet-section-weight .weight-current-card {
    display: grid;
    min-width: 0;
    gap: 4px;
    padding-inline: 12px;
}

.cabinet-body #cabinet-section-weight .weight-current-card:first-child {
    border-right: 1px solid rgba(0, 0, 0, 0.24);
    padding-left: 0;
}

.cabinet-body #cabinet-section-weight .weight-current-card:last-child {
    padding-right: 0;
}

.cabinet-body #cabinet-section-weight .weight-current-card strong {
    margin: 3px 0 0;
}

.cabinet-body #cabinet-section-weight .weight-current-card small {
    margin: 2px 0 0;
}

.cabinet-body #cabinet-section-weight .weight-form {
    gap: 10px;
}

.cabinet-body #cabinet-section-weight .weight-form-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.cabinet-body #cabinet-section-weight .body-metrics-date-field {
    grid-column: 1 / -1;
}

.cabinet-body #cabinet-section-weight .weight-form label {
    min-width: 0;
}

.cabinet-body #cabinet-section-weight .weight-form input {
    min-height: 44px;
    min-width: 0;
    padding: 8px 10px;
}

.cabinet-body #cabinet-section-weight .weight-form button {
    min-height: 44px;
    padding: 8px 12px;
}

.cabinet-body #cabinet-section-weight .body-metrics-chart {
    min-width: 100%;
}

.cabinet-body #cabinet-section-weight :where(.body-metrics-axis, .body-metrics-axis-title).is-body-fat {
    fill: #0f766e;
}

.cabinet-body #cabinet-section-weight :where(.body-metrics-axis, .body-metrics-axis-title).is-missing {
    fill: #78716c;
}

.cabinet-body #cabinet-section-weight .body-metrics-chart-line.is-weight {
    stroke: #000;
}

.cabinet-body #cabinet-section-weight .body-metrics-chart-line.is-body-fat {
    stroke: #0f766e;
    stroke-dasharray: 10 7;
}

.cabinet-body #cabinet-section-weight .body-metrics-chart-point.is-weight {
    stroke: #000;
}

.cabinet-body #cabinet-section-weight .body-metrics-chart-point.is-body-fat {
    stroke: #0f766e;
    fill-opacity: 0.72;
}

.cabinet-body #cabinet-section-activity .activity-header {
    display: grid;
    gap: 12px;
}

.cabinet-body #cabinet-section-activity .activity-sync-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.cabinet-body #cabinet-section-activity .activity-sync-row .weight-status {
    min-width: 0;
    min-height: 0;
    margin: 0;
    white-space: nowrap;
}

.cabinet-body #cabinet-section-activity .activity-sync-row .weight-sync {
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding: 8px clamp(6px, 2cqi, 10px);
    white-space: nowrap;
    overflow-wrap: normal;
}

.cabinet-body #cabinet-section-activity .workouts-summary strong {
    margin: 4px 0 0;
    white-space: normal;
    overflow-wrap: normal;
}

.cabinet-body #cabinet-section-activity .workouts-history {
    gap: 14px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.cabinet-body #cabinet-section-activity [data-activities-results][hidden],
.cabinet-body #cabinet-section-activity [data-steps-results][hidden] {
    display: none !important;
}

.cabinet-body #cabinet-section-activity .workouts-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.cabinet-body #cabinet-section-activity .workout-card {
    gap: 12px;
    padding: 13px;
}

.cabinet-body #cabinet-section-activity .workout-card header {
    gap: 8px;
}

.cabinet-body #cabinet-section-activity .workout-sport {
    max-width: 42%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cabinet-body #cabinet-section-activity .workout-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cabinet-body #cabinet-section-activity .workout-footer {
    align-items: flex-end;
}

.cabinet-body #cabinet-section-activity .workout-source {
    min-width: 0;
}

.cabinet-body #cabinet-section-activity .workouts-more {
    width: 100%;
}

.cabinet-body #cabinet-section-activity .workouts-empty {
    min-height: 180px;
    padding: 18px;
}

.cabinet-body .habit-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cabinet-body .habit-day:last-child {
    grid-column: 1 / -1;
}











.cabinet-body .sleep-consistency {
    display: grid;
    min-width: 0;
    gap: 16px;
}

.cabinet-body .sleep-consistency :where(h2, h3, p) {
    margin: 0;
}

.cabinet-body .sleep-consistency-status {
    min-height: 18px;
}

.cabinet-body .sleep-consistency-status[data-type="error"] {
    color: #a11c13;
}

.cabinet-body :where(
    .sleep-timezone-card,
    .sleep-confirmation-form,
    .sleep-chart-panel
) {
    min-width: 0;
    border: 1.5px solid #000;
    padding: 16px;
    background: #fff;
}

.cabinet-body .sleep-timezone-card {
    display: grid;
    gap: 10px;
    background: #fff3bf;
}

.cabinet-body .sleep-timezone-actions,
.cabinet-body .sleep-observation-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cabinet-body .sleep-consistency-dashboard,
.cabinet-body .sleep-confirmation-form,
.cabinet-body .sleep-chart-panel {
    display: grid;
    gap: 14px;
}

.cabinet-body .sleep-confirmation-form label {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.cabinet-body .sleep-confirmation-form :is(input[type="time"], input[data-time-input-24h]) {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    border: 1.5px solid #000;
    padding: 10px 12px;
    background: #fff;
    color: #000;
    font: inherit;
}

.cabinet-body :where(
    .sleep-primary-action,
    .sleep-timezone-actions button
) {
    min-height: 44px;
    border: 1.5px solid #000;
    padding: 9px 14px;
    background: #fff;
    color: #000;
    font: inherit;
    cursor: pointer;
}

.cabinet-body .sleep-primary-action {
    background: #000;
    color: #fff;
}

.cabinet-body .sleep-confirmation-form .sleep-observation-fields {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cabinet-body .sleep-observation-home,
.cabinet-body .sleep-observation-home-card {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.cabinet-body .night-metrics-home-fields,
.cabinet-body .night-metrics-home-readiness-fields,
.cabinet-body .night-metrics-home-actions {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cabinet-body .night-metrics-home-readiness-fields:not([hidden]) {
    display: contents;
}

.cabinet-body .night-metrics-home-form :is(label, input, button) {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}


.cabinet-body :where(input[type="date"]:not([data-date-layout="compact"])) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    appearance: none;
    -webkit-appearance: none;
}

.cabinet-body :where(input[type="date"]:not([data-date-layout="compact"]))::-webkit-date-and-time-value {
    width: 100%;
    min-width: 0;
    text-align: center;
}


.cabinet-body .today-inline-sleep-fields > label,
.cabinet-body .today-inline-sleep-fields :is(input[type="time"], input[data-time-input-24h]),
.cabinet-body #cabinet-section-weight .body-metrics-date-field,
.cabinet-body .manual-activity-datetime > label,
.cabinet-body .manual-activity-datetime :is(input[type="time"], input[data-time-input-24h]),
.cabinet-body .habit-edit-reminder-row,
.cabinet-body .habit-edit-reminder-row :is(input[type="time"], input[data-time-input-24h]),
.cabinet-body .sleep-confirmation-form .sleep-observation-fields > label,
.cabinet-body .sleep-confirmation-form .sleep-observation-fields :is(input[type="time"], input[data-time-input-24h]) {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.cabinet-body .today-inline-sleep-fields :is(input[type="time"], input[data-time-input-24h]),
.cabinet-body .manual-activity-datetime :is(input[type="time"], input[data-time-input-24h]),
.cabinet-body #cabinet-section-nutrition .nutrition-entry-heading :is(input[type="time"], input[data-time-input-24h]),
.cabinet-body .habit-edit-reminder-row :is(input[type="time"], input[data-time-input-24h]),
.cabinet-body .sleep-confirmation-form .sleep-observation-fields :is(input[type="time"], input[data-time-input-24h]) {
    display: block;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.cabinet-body .today-inline-sleep-fields :is(input[type="time"], input[data-time-input-24h])::-webkit-date-and-time-value,
.cabinet-body .manual-activity-datetime :is(input[type="time"], input[data-time-input-24h])::-webkit-date-and-time-value,
.cabinet-body #cabinet-section-nutrition .nutrition-entry-heading :is(input[type="time"], input[data-time-input-24h])::-webkit-date-and-time-value,
.cabinet-body .habit-edit-reminder-row :is(input[type="time"], input[data-time-input-24h])::-webkit-date-and-time-value,
.cabinet-body .sleep-confirmation-form .sleep-observation-fields :is(input[type="time"], input[data-time-input-24h])::-webkit-date-and-time-value {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.cabinet-body #cabinet-section-nutrition .nutrition-entry-heading :is(input[type="time"], input[data-time-input-24h]) {
    flex: 0 1 84px;
    width: 84px;
    min-width: 0;
    max-width: 84px;
}

.cabinet-body input[data-time-input-24h] {
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.cabinet-body .sleep-chart-legend {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: clamp(5px, 1.7cqi, 8px);
    text-transform: uppercase;
}

.cabinet-body .sleep-chart-legend span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 4px;
    white-space: nowrap;
}

.cabinet-body .sleep-chart-legend i {
    display: inline-block;
    flex: 0 0 auto;
}

.cabinet-body .sleep-chart-legend-fact {
    width: 10px;
    height: 10px;
    border: 2px solid #000;
    border-radius: var(--app-radius-circle);
}

.cabinet-body .sleep-chart-legend-fact.is-onset {
    background: #ff7955;
}

.cabinet-body .sleep-chart-legend-fact.is-wake {
    background: #49aee8;
}

.cabinet-body .sleep-chart-legend-target {
    width: 16px;
    height: 10px;
    border-radius: var(--app-radius-data);
    opacity: 0.7;
}

.cabinet-body .sleep-chart-legend-target.is-onset {
    background: #ffb9a5;
}

.cabinet-body .sleep-chart-legend-target.is-wake {
    background: #9fd8ff;
}

.cabinet-body .sleep-chart {
    display: grid;
    min-width: 0;
    gap: 8px;
    overflow: hidden;
}

.cabinet-body .sleep-chart-scale,
.cabinet-body .sleep-chart-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
}

.cabinet-body .sleep-chart-scale::before {
    content: "";
}

.cabinet-body .sleep-chart-scale {
    grid-template-columns: 48px repeat(4, 1fr);
    color: #655b57;
}

.cabinet-body .sleep-chart-scale span:last-child {
    text-align: right;
}

.cabinet-body .sleep-chart-date {
    overflow: hidden;
    white-space: nowrap;
}

.cabinet-body .sleep-chart-track {
    position: relative;
    height: 26px;
    border-radius: var(--app-radius-data);
    background:
        linear-gradient(to right, transparent calc(33.33% - 0.5px), #d1c9c5 33.33%, transparent calc(33.33% + 0.5px)),
        linear-gradient(to right, transparent calc(66.66% - 0.5px), #d1c9c5 66.66%, transparent calc(66.66% + 0.5px)),
        #f5f1ef;
}

.cabinet-body .sleep-chart-band {
    position: absolute;
    top: 4px;
    height: 18px;
    border-radius: var(--app-radius-data);
    opacity: 0.55;
}

.cabinet-body .sleep-chart-band.is-onset {
    background: #ffb9a5;
}

.cabinet-body .sleep-chart-band.is-wake {
    background: #9fd8ff;
}

.cabinet-body .sleep-chart-point {
    position: absolute;
    z-index: 1;
    top: 7px;
    width: 12px;
    height: 12px;
    border: 2px solid #000;
    border-radius: var(--app-radius-circle);
    transform: translateX(-50%);
}

.cabinet-body .sleep-chart-point.is-onset {
    background: #ff7955;
}

.cabinet-body .sleep-chart-point.is-wake {
    background: #49aee8;
}

.cabinet-body .app-history-table {
    max-height: 360px;
    overflow: auto;
    border: 1px solid #000;
    background: #fff;
}

.cabinet-body .app-history-table table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    text-align: right;
}

.cabinet-body .app-history-table caption {
    padding: 10px 8px;
    background: #000;
    color: #fff;
    text-align: left;
    text-transform: uppercase;
}

.cabinet-body .app-history-table thead th {
    position: sticky;
    z-index: 1;
    top: 0;
    background: #ffe76a;
    text-transform: uppercase;
}

.cabinet-body .app-history-table :is(th, td) {
    overflow: hidden;
    border-bottom: 1px solid #000;
    padding: 8px 3px;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: top;
}

.cabinet-body .app-history-table tbody tr:last-child > * {
    border-bottom: 0;
}

.cabinet-body .app-history-table tbody th {
    padding-left: 7px;
    text-align: left;
}

.cabinet-body .app-history-table thead th:first-child {
    padding-left: 7px;
    text-align: left;
}

.cabinet-body .app-history-table tbody th small {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: #655b57;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.cabinet-body .sleep-history-date-column {
    width: 26%;
}

.cabinet-body .sleep-history-time-column {
    width: 16%;
}

.cabinet-body .sleep-history-duration-column {
    width: 20%;
}

.cabinet-body .sleep-history-result-column {
    width: 22%;
}

.cabinet-body .sleep-history-result {
    text-transform: uppercase;
}

.cabinet-body .sleep-history-result.is-hit {
    color: #0f766e;
}

.cabinet-body .sleep-history-result.is-miss {
    color: #a11c13;
}

.cabinet-body .sleep-history-result.is-neutral {
    color: #655b57;
}

.cabinet-body .sleep-history-empty {
    padding: 16px 8px;
    color: #5b514d;
    text-align: left;
    white-space: normal;
}


.cabinet-body .connection-quality-toast[hidden] {
    display: none;
}

.cabinet-body .connection-quality-toast {
    position: fixed;
    z-index: 110;
    top: calc(var(--app-visual-offset-top, 0px) + env(safe-area-inset-top) + 10px);
    left: calc((var(--app-frame-left, 0px) / var(--app-scale, 1)) + var(--app-page-inline));
    display: grid;
    box-sizing: border-box;
    width: calc(var(--app-logical-width, 100cqi) - (2 * var(--app-page-inline)));
    max-width: calc(450px - (2 * var(--app-page-inline)));
    min-width: 0;
    margin: 0;
    border: 1px solid #e13333;
    border-radius: var(--app-radius-surface);
    overflow: hidden;
    background: #e13333;
    color: #fff;
    box-shadow: var(--app-card-shadow);
}

.cabinet-body .connection-quality-toast-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 10px 10px 10px var(--app-today-card-padding, 14px);
}

.cabinet-body .connection-quality-toast p {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.cabinet-body .connection-quality-toast button {
    display: grid;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    place-items: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: var(--app-radius-control);
    background: transparent;
    color: #fff;
    cursor: pointer;
    touch-action: manipulation;
}

.cabinet-body .connection-quality-toast button svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentcolor;
    stroke-linecap: round;
    stroke-width: 2;
}

.cabinet-body .connection-quality-toast-progress {
    display: block;
    width: 100%;
    height: 3px;
    overflow: hidden;
    background: rgb(255 255 255 / 35%);
}

.cabinet-body .connection-quality-toast-progress > span {
    display: block;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: scaleX(1);
    transform-origin: left center;
    animation: connection-quality-toast-progress 5000ms linear forwards;
}

@keyframes connection-quality-toast-progress {
    to {
        transform: scaleX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cabinet-body .connection-quality-toast-progress > span {
        animation: none;
    }
}
.cabinet-body .modules-hub {
    width: 100%;
    max-width: 760px;
    margin-inline: auto;
}

.cabinet-body .modules-health-assessment {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.cabinet-body .modules-health-assessment .health-assessment-grid {
    display: contents;
}

.cabinet-body .modules-health-assessment .health-assessment-grid[aria-busy="true"] {
    display: none;
}

.cabinet-body .modules-health-assessment .health-assessment {
    order: 1;
}

.cabinet-body .modules-health-assessment .health-assessment--ready {
    display: contents;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey {
    container-type: inline-size;
    order: 1;
    display: grid;
    grid-template-rows: 80px 54px auto;
    width: 100%;
    height: auto;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--app-line-subtle);
    border-radius: var(--app-radius-control);
    background: var(--app-color-background);
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}

.cabinet-body .longevity-home-content .health-assessment-journey {
    order: 0;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey--without-history {
    grid-template-rows: 80px 54px;
    height: 136px;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto minmax(0, 1fr);
    align-items: center;
    gap: 4px 0;
    min-width: 0;
    padding: 8px clamp(12px, 3cqi, 24px) 7px;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__title {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
    color: #39415a;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__metric {
    min-width: 0;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__label,
.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__value,
.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__progress-label,
.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__progress-value {
    margin: 0;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__label {
    color: #5f5f5f;
    white-space: nowrap;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__value {
    display: flex;
    align-items: baseline;
    gap: clamp(4px, 1.4cqi, 8px);
    min-width: 0;
    white-space: nowrap;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__progress {
    display: grid;
    align-content: center;
    gap: 4px;
    min-width: 0;
    padding: 2px clamp(12px, 3cqi, 24px);
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__progress-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0;
    min-width: 0;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__progress-metric {
    display: grid;
    justify-items: start;
    gap: 2px;
    min-width: 0;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__progress-metric--remaining {
    justify-items: start;
    text-align: left;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__progress-metric--remaining:only-child {
    grid-column: 2;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__progress-label {
    color: #5f5f5f;
    white-space: nowrap;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__progress-value {
    white-space: nowrap;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__progress-value--realized {
    color: var(--app-color-accent);
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__history {
    display: grid;
    align-content: end;
    min-width: 0;
    padding: 8px clamp(12px, 3cqi, 24px) 7px;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__chart-frame {
    position: relative;
    min-width: 0;
    aspect-ratio: 20 / 3;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__chart {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: visible;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__guide {
    stroke: rgba(0, 0, 0, 0.1);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__axis-label {
    position: absolute;
    left: 0;
    width: 4.15%;
    color: #5f5f5f;
    text-align: right;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__axis-label--maximum {
    top: 0;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__axis-label--minimum {
    bottom: 0;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__line {
    fill: none;
    stroke: #000;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__point {
    fill: #000;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__current-halo {
    fill: color-mix(in srgb, var(--app-color-accent) 14%, transparent);
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__point--current {
    fill: var(--app-color-accent);
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__dates {
    position: relative;
    min-height: 1em;
    color: #5f5f5f;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__date {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__date--initial {
    transform: none;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result, .longevity-home-content) .health-assessment-journey__date--current {
    transform: translateX(-100%);
}

.cabinet-body .modules-health-assessment .health-assessment-heading {
    order: 2;
    padding-top: 0;
}

.cabinet-body .modules-health-assessment .health-assessment-intro {
    margin-top: 0 !important;
}

.cabinet-body .modules-hub-group h2,
.cabinet-body .modules-hub-card :where(h3, p),
.cabinet-body .modules-home :where(h3, p),
.cabinet-body .modules-hub-status {
    margin: 0;
}

.cabinet-body .modules-hub-group {
    display: grid;
    gap: 10px;
}

.cabinet-body :where(.modules-hub-group, .modules-home)[hidden] {
    display: none;
}

.cabinet-body :where(.modules-hub-list, .modules-home-list) {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cabinet-body .modules-hub-upcoming-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    border: 0;
    border-radius: var(--app-radius-surface);
    padding: var(--app-today-card-padding);
    background: #f6f6f6;
    color: #555;
}

.cabinet-body .modules-hub-upcoming-card h3 {
    margin: 0;
    overflow-wrap: anywhere;
}

.cabinet-body .modules-hub-card,
.cabinet-body .modules-home-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    border: 1px solid #000;
    padding: var(--app-today-card-padding);
    background: #fff;
    box-shadow: var(--app-card-shadow);
}

.cabinet-body .modules-home-card {
    gap: 10px;
    border-color: var(--app-line-subtle);
    border-radius: var(--app-radius-surface);
    corner-shape: var(--app-corner-shape);
    box-shadow: none;
}

.cabinet-body .modules-hub-card-copy {
    display: grid;
    gap: 6px;
}

.cabinet-body .modules-hub-card-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.cabinet-body .modules-hub-potential-complete {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    max-width: 100%;
    padding: 2px 7px;
    border: 1px solid currentColor;
    border-radius: var(--app-radius-pill);
    background: transparent;
    color: var(--app-color-accent);
}

.cabinet-body .modules-hub-potential-pending {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 2px 7px;
    border: 1px solid currentColor;
    border-radius: var(--app-radius-pill);
    background: transparent;
    color: var(--app-color-text-muted, #625d5a);
    overflow-wrap: anywhere;
}

.cabinet-body .modules-hub-potential-complete-icon {
    line-height: 1;
}

.cabinet-body .modules-hub-steps-impact {
    min-width: 0;
    margin-top: 4px;
}

.cabinet-body .modules-hub-card.has-module-power.has-details
    .modules-hub-steps-impact {
    width: calc(100% + 78px);
}

.cabinet-body .modules-hub-steps-impact-items {
    padding-block-end: 0;
}

.cabinet-body .modules-hub-steps-impact-items[data-band-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cabinet-body .modules-hub-steps-impact-items[data-band-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cabinet-body .modules-hub-steps-impact-item {
    display: grid;
    grid-template-rows: auto 12px minmax(28px, auto);
    gap: 4px;
    min-width: 0;
    text-align: center;
}

.cabinet-body :where(
    .modules-hub-steps-impact-label,
    .modules-hub-steps-impact-value
) {
    min-width: 0;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.cabinet-body .modules-hub-steps-impact-label {
    white-space: nowrap;
}

.cabinet-body .modules-hub-steps-impact[data-impact-mode="penalty"]
    :where(.modules-hub-steps-impact-label, .modules-hub-steps-impact-value) {
    font-size: clamp(10px, 3vw, var(--app-type-caption-size));
    line-height: clamp(12px, 3.56vw, var(--app-type-caption-line));
    letter-spacing: -0.02em;
}

.cabinet-body .modules-hub-steps-impact[data-impact-mode="penalty"]
    .modules-hub-steps-impact-label {
    display: flex;
    min-height: 18px;
    align-items: end;
    justify-content: center;
    white-space: normal;
}

.cabinet-body .modules-hub-steps-impact[data-impact-mode="penalty"]
    .modules-hub-steps-impact-value {
    white-space: nowrap;
}

.cabinet-body .modules-hub-steps-impact-pill {
    width: 100%;
}

.cabinet-body .modules-hub-steps-impact-pill[data-current="true"]::after {
    content: none;
}

.cabinet-body .modules-hub-upcoming-card.has-details
    .modules-hub-card-copy {
    padding-inline-end: 40px;
}

.cabinet-body .modules-hub-card.has-module-power .modules-hub-card-copy,
.cabinet-body .modules-hub-card.has-details .modules-hub-card-copy {
    padding-inline-end: 40px;
}

.cabinet-body .modules-hub-card.has-module-power.has-details
    .modules-hub-card-copy {
    padding-inline-end: 78px;
}

.cabinet-body .modules-hub-power {
    position: absolute;
    z-index: 1;
    top: var(--app-today-card-padding);
    right: var(--app-today-card-padding);
    color: #000;
    cursor: pointer;
}

.cabinet-body .modules-hub-card.has-details .modules-hub-power {
    right: calc(var(--app-today-card-padding) + 38px);
}

.cabinet-body .modules-hub-power.is-enabled {
    border-color: var(--app-line-danger);
}

.cabinet-body .modules-hub-power-icon {
    display: block;
    width: 16px;
    height: 16px;
    background: currentColor;
    --modules-hub-power-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2v10' fill='none' stroke='black' stroke-linecap='round' stroke-width='2'/%3E%3Cpath d='M18.36 6.64a9 9 0 1 1-12.72 0' fill='none' stroke='black' stroke-linecap='round' stroke-width='2'/%3E%3C/svg%3E");
    -webkit-mask: var(--modules-hub-power-icon) center / contain no-repeat;
    mask: var(--modules-hub-power-icon) center / contain no-repeat;
}

.cabinet-body .modules-hub-recommendation-why {
    grid-column: 1 / -1;
    min-width: 0;
}

.cabinet-body .modules-hub-recommendation-why:not([open]) {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cabinet-body .modules-hub-recommendation-why:not([open]) summary {
    right: 0;
    pointer-events: auto;
}

.cabinet-body .modules-hub-recommendation-why summary {
    position: absolute;
    z-index: 1;
    top: var(--app-today-card-padding);
    right: var(--app-today-card-padding);
    list-style: none;
    cursor: pointer;
}

.cabinet-body .modules-hub-recommendation-why summary::-webkit-details-marker {
    display: none;
}

.cabinet-body .modules-hub-recommendation-why[open] {
    border-top: 1px solid var(--app-line-subtle);
    padding-top: 8px;
}

.cabinet-body .modules-hub-recommendation-why-body {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.cabinet-body .modules-hub-recommendation-why-body p {
    margin: 0;
    overflow-wrap: anywhere;
}

.cabinet-body .modules-hub-recommendation-sources a {
    color: inherit;
}

.cabinet-body .modules-home-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}

.cabinet-body :where(.modules-hub-card-description, .modules-home-card p) {
    color: #333;
}

.cabinet-body .modules-hub-card-configuration {
    color: #000;
}

.cabinet-body .modules-hub-card-progress-warmup {
    color: #555;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.cabinet-body .modules-hub-card.has-module-power.has-details
    .modules-hub-card-progress-warmup {
    width: calc(100% + 78px);
}

.cabinet-body .modules-hub-card[data-module-id="exercise_duration"].has-module-power
    .modules-hub-card-progress {
    width: calc(100% + 40px);
}

.cabinet-body .modules-hub-card[data-module-id="exercise_duration"].has-module-power.has-details
    .modules-hub-card-progress {
    width: calc(100% + 78px);
}

.cabinet-body .modules-hub-card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.cabinet-body .modules-hub-card-status {
    justify-self: start;
    border: 1px solid #8a5a00;
    border-radius: var(--app-radius-pill);
    padding: 4px 8px;
    background: #fff4cc;
    color: #684300;
}

.cabinet-body .modules-hub-checkins {
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 44px));
    justify-content: space-between;
    gap: 8px clamp(2px, 0.8cqi, 6px);
    min-width: 0;
    padding-top: 12px;
}

.cabinet-body .modules-hub-checkins-nav-button {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1;
    border: 1px solid #c9c9c9;
    padding: 0;
    background: #fff;
    color: #000;
    touch-action: manipulation;
}

.cabinet-body .modules-hub-checkins .habit-days {
    display: contents;
}

.cabinet-body .modules-hub-checkins .habit-day-cell {
    display: grid;
    min-width: 0;
    aspect-ratio: 1;
}

.cabinet-body .modules-hub-checkins .habit-day-today,
.cabinet-body .modules-hub-checkins .habit-day-mark {
    display: none;
}

.cabinet-body .modules-hub-checkins .habit-day {
    display: grid;
    align-content: center;
    justify-items: center;
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1;
    border: 1px solid #c9c9c9;
    border-radius: var(--app-radius-control);
    padding: 2px;
    background: #f2f2f2;
    color: #333;
    text-align: center;
    touch-action: manipulation;
}

.cabinet-body .modules-hub-checkins .habit-day.is-done {
    border-color: #9acdb8;
    background: #dff3e8;
    color: #175c45;
}

.cabinet-body .modules-hub-checkins .habit-day.is-not-done {
    border-color: #e8a7a1;
    background: #fee4e2;
    color: #7a271a;
}

.cabinet-body .modules-hub-checkins .habit-day.is-unavailable,
.cabinet-body .modules-hub-checkins .habit-day:disabled {
    border-color: #dedede;
    background: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
    opacity: 1;
}

.cabinet-body .modules-hub-checkins .habit-day:not(:disabled):hover {
    filter: brightness(0.96);
}

.cabinet-body .modules-hub-checkins .habit-day-weekday {
    text-transform: lowercase;
}

.cabinet-body .modules-hub-checkins .habit-day-date {
    margin-top: 3px;
}

.cabinet-body .modules-hub-checkins-status {
    grid-column: 1 / -1;
    min-height: 18px;
    color: #555;
}

.cabinet-body .modules-hub-checkins-progress {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
    color: #555;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.cabinet-body .modules-hub-checkins-status:empty {
    display: none;
}

.cabinet-body .modules-hub-checkins-status[data-type="error"] {
    color: #8f1717;
}

.cabinet-body .modules-hub-checkins-retry {
    grid-column: 1 / -1;
    justify-self: start;
    min-width: 120px;
}

.cabinet-body .modules-hub-settings {
    display: grid;
    gap: 14px;
    min-width: 0;
    border-top: 1px solid #ddd;
    padding-top: 16px;
}

.cabinet-body .modules-hub-settings-label {
    display: grid;
    gap: 8px;
    color: #111;
}

.cabinet-body .modules-hub-settings-label :is(input[type="time"], input[data-time-input-24h]) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    border: 1px solid #000;
    padding: 10px 12px;
    background: #fff;
    color: #111;
    font: 400 16px/1.2 system-ui, sans-serif;
    appearance: none;
    -webkit-appearance: none;
}

.cabinet-body .modules-hub-settings-label :is(input[type="time"], input[data-time-input-24h])::-webkit-date-and-time-value {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.cabinet-body .modules-hub-sleep-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
}

.cabinet-body .modules-hub-sleep-settings .modules-hub-settings-toggle {
    align-items: start;
}

.cabinet-body .modules-hub-settings-help {
    color: #555;
}

.cabinet-body .modules-hub-settings-toggle {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.cabinet-body .modules-hub-settings-toggle input {
    width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #000;
}

.cabinet-body .modules-hub-card-actions > :only-child {
    grid-column: 1 / -1;
}

.cabinet-body .modules-hub-configuration {
    display: grid;
    grid-column: 1 / -1;
    gap: 12px;
    min-width: 0;
    border-top: 1px solid #000;
    padding-top: 14px;
}

.cabinet-body .modules-hub-configuration fieldset {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.cabinet-body .modules-hub-configuration legend {
    margin-bottom: 8px;
    text-transform: uppercase;
}

.cabinet-body .modules-hub-configuration label {
    display: flex;
    align-items: center;
    min-height: 48px;
    gap: 10px;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 10px 12px;
    touch-action: manipulation;
}

.cabinet-body .modules-hub-configuration label:has(input:checked) {
    background: #000;
    color: #fff;
}

.cabinet-body .modules-hub-configuration input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: #0f766e;
}

.cabinet-body .modules-hub-configuration-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.cabinet-body .modules-hub-action,
.cabinet-body .modules-hub-retry {
    min-width: 0;
    min-height: 44px;
    border: 1px solid #000;
    padding: 10px 14px;
    appearance: none;
    background: #000;
    color: #fff;
    text-transform: uppercase;
    touch-action: manipulation;
}

.cabinet-body .modules-hub-action.is-secondary {
    background: #fff;
    color: #000;
}

.cabinet-body :where(
    .modules-hub-action,
    .modules-hub-retry,
    .modules-hub-power
):disabled {
    cursor: wait;
    opacity: 0.5;
}


.cabinet-body .modules-hub-feedback {
    display: grid;
    gap: 8px;
}

.cabinet-body .modules-hub-status {
    color: #555;
}

.cabinet-body .modules-hub-status[hidden] {
    display: none;
}

.cabinet-body .modules-hub-status[data-type="error"] {
    color: #8f1717;
}

.cabinet-body .modules-hub-card-feedback {
    grid-column: 1 / -1;
    border-top: 1px solid var(--app-line-subtle);
    padding-top: 8px;
    overflow-wrap: anywhere;
}

.cabinet-body .modules-hub-retry {
    justify-self: start;
}

.cabinet-body .modules-home {
    display: grid;
    gap: 10px;
}

.cabinet-body .modules-home-card .modules-home-open {
    display: inline-grid;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    place-items: center;
    padding: 0;
    border-color: var(--app-line-control);
    border-radius: var(--app-radius-control);
    corner-shape: var(--app-corner-shape);
    background: transparent;
    color: #000;
    text-transform: none;
}
.cabinet-body .nutrition-progress-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border: 2px solid #000;
    padding: var(--app-card-padding, 16px);
    background: #fff;
    color: #000;
    box-shadow: var(--app-card-shadow);
}

.cabinet-body .nutrition-progress-card {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.cabinet-body .nutrition-progress-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    min-width: 0;
}

.cabinet-body .nutrition-progress-header > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 12px;
    min-width: 0;
}

.cabinet-body .nutrition-progress-header h2 {
    margin: 0;
    overflow-wrap: anywhere;
}

.cabinet-body .nutrition-progress-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
    min-width: 0;
}

.cabinet-body .nutrition-progress-item[data-nutrition-progress-metric="caloriesKcal"] {
    grid-column: 1 / -1;
}

.cabinet-body .nutrition-progress-item,
.cabinet-body .nutrition-progress-copy {
    min-width: 0;
}

.cabinet-body .nutrition-progress-item {
    display: grid;
    gap: 2px;
}

.cabinet-body .nutrition-progress-copy {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 4px;
}

.cabinet-body .nutrition-progress-copy strong {
    min-width: 0;
    font-variant-numeric: tabular-nums;
    text-align: right;
    overflow-wrap: anywhere;
}

.cabinet-body .nutrition-progress-track {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 12px;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #000;
    border-radius: var(--app-radius-pill);
    background: #f1eeec;
}

.cabinet-body .nutrition-progress-fill {
    display: block;
    width: 0;
    max-width: 100%;
    height: 100%;
    border-radius: inherit;
    background: #9d9793;
    transition: width 180ms ease, background-color 180ms ease;
}

.cabinet-body .nutrition-progress-details {
    display: grid;
    gap: 10px;
    min-width: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    padding-top: 10px;
}

.cabinet-body .nutrition-progress-details[hidden],
.cabinet-body .nutrition-progress-help[hidden] {
    display: none;
}

.cabinet-body .nutrition-progress-explanations {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.cabinet-body .nutrition-progress-explanation {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.cabinet-body .nutrition-progress-explanation h3,
.cabinet-body .nutrition-progress-explanation h4,
.cabinet-body .nutrition-progress-carryover-explanation h3 {
    min-width: 0;
    margin: 0;
    font: inherit;
}

.cabinet-body .nutrition-progress-explanation p,
.cabinet-body .nutrition-progress-explanation ul,
.cabinet-body .nutrition-progress-carryover-explanation p,
.cabinet-body .nutrition-progress-carryover-explanation ul {
    min-width: 0;
    margin: 0;
    font: inherit;
    overflow-wrap: anywhere;
}

.cabinet-body .nutrition-progress-calorie-summary {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.cabinet-body .nutrition-progress-calorie-summary p,
.cabinet-body .nutrition-progress-calorie-breakdown li {
    display: flex;
    gap: 12px;
    align-items: baseline;
    justify-content: space-between;
}

.cabinet-body .nutrition-progress-calorie-summary p:last-child {
    margin-top: 2px;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    padding-top: 6px;
}

.cabinet-body .nutrition-progress-calorie-summary strong,
.cabinet-body .nutrition-progress-calorie-breakdown strong {
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
}

.cabinet-body .nutrition-progress-calorie-breakdown {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin-top: 6px;
}

.cabinet-body .nutrition-progress-calorie-breakdown ul,
.cabinet-body .nutrition-progress-nutrient-explanation ul,
.cabinet-body .nutrition-progress-carryover-explanation ul {
    display: grid;
    gap: 4px;
    padding: 0;
    list-style: none;
}

.cabinet-body .nutrition-progress-nutrient-explanation li strong {
    font-weight: 700;
}

.cabinet-body .nutrition-progress-carryover-explanation {
    display: grid;
    gap: 8px;
    min-width: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    padding-top: 10px;
}

.cabinet-body .nutrition-progress-calorie-breakdown[hidden],
.cabinet-body .nutrition-progress-carryover-explanation[hidden] {
    display: none;
}

.cabinet-body .nutrition-progress-track[data-tone="goal"] .nutrition-progress-fill {
    background: #0f766e;
}

.cabinet-body .nutrition-progress-track[data-tone="over"] .nutrition-progress-fill {
    background: #e13333;
}

.cabinet-body .nutrition-progress-empty {
    display: grid;
    gap: 8px;
    min-width: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.3);
    padding-top: 14px;
}

.cabinet-body .nutrition-progress-empty p {
    margin: 0;
    overflow-wrap: anywhere;
}

.cabinet-body .nutrition-progress-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
}

.cabinet-body .nutrition-progress-retry-copy {
    max-width: 42ch;
    margin: 0;
    color: #7a271a;
}

.cabinet-body :where(
    .nutrition-progress-empty button,
    .nutrition-progress-retry
) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border: 1px solid #000;
    padding: 10px 14px;
    appearance: none;
    background: #000;
    color: #fff;
    cursor: pointer;
    touch-action: manipulation;
}

.cabinet-body .nutrition-progress-actions .nutrition-progress-retry {
    width: auto;
    min-width: 44px;
    padding-inline: 12px;
}

.cabinet-body :where(
    .nutrition-progress-empty button,
    .nutrition-progress-retry
):hover:not(:disabled) {
    background: #f4d35e;
    color: #000;
}

@media (prefers-reduced-motion: reduce) {
    .cabinet-body .nutrition-progress-fill {
        transition: none;
    }
}


.cabinet-body {
    --app-font-family: "Inter", system-ui, sans-serif;
    --app-font-weight-regular: 400;
    --app-font-weight-bold: 700;
    --app-font-weight-extra-bold: 800;
    --app-type-landing-title-size: 32px;
    --app-type-landing-title-line: 32px;
    --app-type-metric-size: 18px;
    --app-type-metric-line: 22px;
    --app-type-page-size: 18px;
    --app-type-page-line: 22px;
    --app-type-card-size: 18px;
    --app-type-card-line: 22px;
    --app-type-body-size: 16px;
    --app-type-body-line: 20px;
    --app-type-data-size: 14px;
    --app-type-data-line: 16px;
    --app-type-field-label-size: 12px;
    --app-type-field-label-line: 14px;
    --app-type-input-size: 16px;
    --app-type-input-line: 16px;
    --app-type-control-size: 14px;
    --app-type-control-line: 16px;
    --app-type-caption-size: 12px;
    --app-type-caption-line: 14px;
    --app-letter-spacing: -0.7px;
    --app-color-background: #fff;
    --app-color-card: #f5f5f8;
    --app-radius-surface: 16px;
    --app-radius-control: 12px;
    --app-radius-data: 6px;
    --app-radius-pill: 999px;
    --app-radius-circle: 50%;
    --app-line-subtle: rgba(0, 0, 0, 0.16);
    --app-line-card: rgba(0, 0, 0, 0);
    --app-line-control: rgba(0, 0, 0, 0.42);
    --app-line-active: #000;
    --app-line-danger: #e13333;
    --app-line-pro: #625b43;
    --app-color-accent: #0f766e;
    --app-color-success: var(--app-color-accent);
    --app-focus-ring: #000;
    --app-corner-shape: squircle;
    --app-card-shadow: none;
    --app-today-card-gap: var(--app-content-gap);
    --app-today-card-padding: 10px;
    background: var(--app-color-background) !important;
}


.cabinet-body {
    font-family: var(--app-font-family);
    font-size: var(--app-type-body-size);
    font-weight: var(--app-font-weight-regular);
    line-height: var(--app-type-body-line);
    letter-spacing: var(--app-letter-spacing);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}


body.cabinet-body .app-type-caption :where(
    :not(button, summary, input, select, textarea)
) {
    font-family: var(--app-font-family);
    font-size: var(--app-type-caption-size);
    font-weight: var(--app-font-weight-regular);
    line-height: var(--app-type-caption-line);
}

body.cabinet-body .app-type-data {
    font-family: var(--app-font-family);
    font-size: var(--app-type-data-size);
    font-weight: var(--app-font-weight-regular);
    line-height: var(--app-type-data-line);
}

body.cabinet-body .app-type-metric {
    font-family: var(--app-font-family);
    font-size: var(--app-type-metric-size);
    font-weight: var(--app-font-weight-bold);
    line-height: var(--app-type-metric-line);
}

body.cabinet-body .app-type-field-label {
    font-family: var(--app-font-family);
    font-size: var(--app-type-field-label-size);
    font-weight: var(--app-font-weight-regular);
    line-height: var(--app-type-field-label-line);
}

body.cabinet-body .app-type-landing-title {
    font-family: var(--app-font-family);
    font-size: var(--app-type-landing-title-size);
    font-weight: var(--app-font-weight-extra-bold);
    line-height: var(--app-type-landing-title-line);
    text-transform: uppercase;
}

body.cabinet-body .app-type-page-title {
    font-family: var(--app-font-family);
    font-size: var(--app-type-page-size);
    font-weight: var(--app-font-weight-bold);
    line-height: var(--app-type-page-line);
    text-transform: uppercase;
}

body.cabinet-body .app-type-card-title {
    font-family: var(--app-font-family);
    font-size: var(--app-type-card-size);
    font-weight: var(--app-font-weight-bold);
    line-height: var(--app-type-card-line);
    text-transform: uppercase;
}

body.cabinet-body .app-type-caption {
    font-family: var(--app-font-family);
    font-size: var(--app-type-caption-size);
    font-weight: var(--app-font-weight-regular);
    line-height: var(--app-type-caption-line);
}

body.cabinet-body .app-type-body {
    font-family: var(--app-font-family);
    font-size: var(--app-type-body-size);
    font-weight: var(--app-font-weight-regular);
    line-height: var(--app-type-body-line);
}

body.cabinet-body .app-type-control {
    font-family: var(--app-font-family);
    font-size: var(--app-type-control-size);
    font-weight: var(--app-font-weight-regular);
    line-height: var(--app-type-control-line);
}

.cabinet-body :is(
    p,
    li,
    dt,
    dd,
    figcaption,
    blockquote
) {
    font-family: var(--app-font-family);
    font-size: var(--app-type-body-size);
    font-weight: var(--app-font-weight-regular);
    line-height: var(--app-type-body-line);
}

.cabinet-body :is(h1, h2, h3, h4, h5, h6) {
    margin-block-start: 0;
}


.cabinet-body :is(h1, h2, h3, h4, h5, h6, small, sub, sup) {
    font-size: inherit;
    line-height: inherit;
}

.cabinet-body :is(h1, h2, h3, h4, h5, h6, strong, b, th) {
    font-weight: inherit;
}

.cabinet-body :is(code, kbd, samp, pre) {
    font-family: inherit;
}

.cabinet-body :is(
    button,
    summary
) {
    font-family: var(--app-font-family);
    font-size: var(--app-type-control-size);
    line-height: var(--app-type-control-line);
}

.cabinet-body :is(
    input,
    select,
    textarea
) {
    font-family: var(--app-font-family);
    font-size: var(--app-type-input-size);
    line-height: var(--app-type-input-line);
}

.cabinet-body :is(
    button,
    summary
) {
    font-weight: var(--app-font-weight-regular);
}

.cabinet-body :is(
    input,
    select,
    textarea
) {
    font-weight: var(--app-font-weight-regular);
}

.cabinet-body .today-debug-actions {
    background: rgb(255 255 255 / 94%);
}

.cabinet-body :is(
    .weight-readonly-label,
    .habit-day-today,
    .weight-form > p
) {
    font-family: var(--app-font-family);
}

.cabinet-body :is(
    .sleep-chart-legend,
    .weight-legend,
    .assessment-chart-legend
) {
    flex-wrap: wrap;
}


.cabinet-body :is(button, summary) {
    border-width: 1px;
    border-color: var(--app-line-subtle);
    border-radius: var(--app-radius-control);
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}

.cabinet-body :is(
    input:not([type]),
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"],
    input[type="url"],
    input[type="search"],
    input[type="tel"],
    select,
    textarea
) {
    border: 1px solid var(--app-line-control);
    border-radius: var(--app-radius-control);
    corner-shape: var(--app-corner-shape);
}

.cabinet-body :is(input[type="radio"], input[type="checkbox"]) {
    border-width: 1px;
    border-color: var(--app-line-control);
}


.cabinet-body :is(
    button,
    a[href],
    input,
    select,
    textarea,
    summary
):focus-visible {
    outline: 3px solid var(--app-focus-ring) !important;
    outline-offset: 3px !important;
}


.cabinet-body .auth-panel,
.cabinet-body .cabinet-setup,
.cabinet-body .wellbeing-checkin-card,
.cabinet-body .wellness-panel,
.cabinet-body .weight-panel,
.cabinet-body .notification-settings,
.cabinet-body .privacy-settings,
.cabinet-body .account-settings,
.cabinet-body .nutrition-progress-card,
.cabinet-body .nutrition-meal-journal,
.cabinet-body .nutrition-panel,
.cabinet-body .today-item,
.cabinet-body .home-install-prompt,
.cabinet-body .home-wearable-prompt,
.cabinet-body .today-empty,
.cabinet-body .cabinet-section-placeholder,
.cabinet-body .habits-empty,
.cabinet-body .intervals-initial-sync,
.cabinet-body .workouts-empty,
.cabinet-body .health-assessment--stale,
.cabinet-body .health-assessment--missing,
.cabinet-body .manual-activity-entry,
.cabinet-body .sleep-timezone-card,
.cabinet-body .sleep-schedule-form,
.cabinet-body .sleep-current-target,
.cabinet-body .sleep-confirmation-form,
.cabinet-body .sleep-chart-panel,
.cabinet-body .modules-hub-card,
.cabinet-body .modules-home-card {
    border: 1px solid var(--app-line-card);
    border-radius: var(--app-radius-surface);
    background: var(--app-color-card);
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}

.cabinet-body .home-wearable-prompt {
    background: #fcf8f7;
}

.cabinet-body .home-install-prompt {
    background: #ebf0f8;
}


.cabinet-body .assessment-history-card,
.cabinet-body .wellness-history,
.cabinet-body .weight-history,
.cabinet-body .weight-history-table,
.cabinet-body .nutrition-week-card,
.cabinet-body .nutrition-history-panel,
.cabinet-body .nutrition-table-wrap,
.cabinet-body .workouts-history,
.cabinet-body .settings-utility-card,
.cabinet-body .cabinet-dialog,
.cabinet-body .quick-add-sheet,
.cabinet-body .app-history-table {
    border: 1px solid var(--app-line-subtle);
    border-radius: var(--app-radius-surface);
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}


.cabinet-body .today-item-readiness > .recovery-recommendation {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: var(--app-card-shadow);
}

.cabinet-body .wellbeing-checkin-card .checkin-sleep-step.sleep-confirmation-form {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: var(--app-card-shadow);
}

.cabinet-body #cabinet-section-home .sleep-observation-home-card .sleep-confirmation-form {
    gap: 8px;
    margin-top: 8px;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: var(--app-card-shadow);
}


.cabinet-body #cabinet-section-home {
    gap: var(--app-today-card-gap);
}

.cabinet-body #cabinet-section-home :is(
    .sleep-observation-home,
    .wellbeing-home-checkin
) {
    margin: 0;
}

.cabinet-body #cabinet-section-home .today-list {
    gap: var(--app-today-card-gap);
}

.cabinet-body #cabinet-section-home :is(
    .intervals-initial-sync,
    .wellbeing-checkin-card,
    .today-item,
    .nutrition-progress-card,
    .today-empty
) {
    padding: var(--app-today-card-padding);
}

.cabinet-body #cabinet-section-home .longevity-home {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: var(--app-card-shadow);
}

.cabinet-body #cabinet-section-home .longevity-home-content {
    gap: 10px;
}

.interactive-kamalama-result__metric-gain {
    box-sizing: border-box;
    width: fit-content;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    border-radius: var(--app-radius-pill);
    padding: 3px 8px;
    background: var(--app-color-accent);
    color: #fff;
    overflow-wrap: anywhere;
}

.interactive-kamalama-result__metric-gain.is-positive {
    background: #eef5ec;
    color: #0f766e;
}

.cabinet-body #cabinet-section-home .longevity-home-header {
    gap: 6px;
}

.cabinet-body #cabinet-section-home .longevity-selection-copy {
    display: grid;
    gap: var(--app-type-body-line);
}

.cabinet-body #cabinet-section-home .longevity-selection-copy > p {
    margin: 0;
}


.cabinet-body .habit-summary > div,
.cabinet-body .habit-row,
.cabinet-body .wellness-card,
.cabinet-body .weight-current-card,
.cabinet-body .weight-form,
.cabinet-body .weight-chart-panel,
.cabinet-body .steps-summary article,
.cabinet-body .workout-card,
.cabinet-body .manual-activity-preview,
.cabinet-body .nutrition-entry-card,
.cabinet-body .nutrition-assumptions,
.cabinet-body .longevity-active-target {
    border-width: 1px;
    border-color: var(--app-line-card);
    border-radius: var(--app-radius-control);
    background: var(--app-color-card);
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}

.cabinet-body .longevity-opportunity-card {
    border: 1px solid var(--app-line-card);
    border-radius: var(--app-radius-control);
    background: var(--app-color-card);
    corner-shape: var(--app-corner-shape);
}


.cabinet-body .weight-chart-wrap,
.cabinet-body .manual-activity-weight,
.cabinet-body .support-channel,
.cabinet-body .nutrition-day-picker,
.cabinet-body .assessment-day-picker,
.cabinet-body .assessment-backfill {
    border-width: 1px;
    border-color: var(--app-line-subtle);
    border-radius: var(--app-radius-control);
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}

.cabinet-body #cabinet-section-home .longevity-home[data-longevity-view="active"] {
    gap: var(--app-today-card-gap);
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.cabinet-body #cabinet-section-home .longevity-home[data-longevity-view="active"]
    .longevity-home-content {
    gap: var(--app-today-card-gap);
}

.cabinet-body :is(
    .longevity-opportunity-card,
    .longevity-active-target
) {
    position: relative;
}

.cabinet-body .longevity-active-target {
    gap: 8px;
    border-radius: var(--app-radius-surface);
    padding: var(--app-today-card-padding);
    background: var(--app-color-card);
}

.cabinet-body .longevity-opportunity-card .longevity-opportunity-heading {
    padding-right: 38px;
}

.cabinet-body .longevity-active-header {
    display: grid;
    min-width: 0;
    padding-right: 96px;
}

.cabinet-body .longevity-active-kicker {
    min-width: 0;
    margin: 0;
}

.cabinet-body .longevity-opportunity-why {
    border-top: 1px solid var(--app-line-subtle);
}

.cabinet-body .longevity-opportunity-why summary {
    display: inline-grid;
    width: 30px;
    height: 30px;
    min-height: 30px;
    place-items: center;
    padding: 0;
    border: 1px solid var(--app-line-control);
    border-radius: var(--app-radius-control);
    background: transparent;
    corner-shape: var(--app-corner-shape);
    text-decoration: none;
}

.cabinet-body :is(
    .longevity-opportunity-card,
    .longevity-active-target
) > .longevity-opportunity-why {
    border-top: 0;
    padding-top: 0;
}

.cabinet-body .longevity-opportunity-card > .longevity-opportunity-why:not([open]) {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
}

.cabinet-body :is(
    .longevity-opportunity-card,
    .longevity-active-target
) > .longevity-opportunity-why summary {
    position: absolute;
    top: var(--app-today-card-padding);
    right: var(--app-today-card-padding);
}

.cabinet-body :is(
    .longevity-opportunity-card,
    .longevity-active-target
) > .longevity-opportunity-why[open] {
    border-top: 1px solid var(--app-line-subtle);
    padding-top: 8px;
}

.cabinet-body .longevity-active-target .longevity-checkin-actions {
    gap: 6px;
}

.cabinet-body .longevity-active-target
    .longevity-checkin-actions[data-longevity-checkin-kind="progress"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cabinet-body .longevity-active-target .longevity-checkin-actions > button {
    position: relative;
    min-height: 44px;
    padding: 5px 4px;
    border-radius: var(--app-radius-control);
    overflow: visible;
}

.cabinet-body .longevity-active-target .longevity-checkin-feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    display: block;
    width: 56px;
    height: 56px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    image-rendering: pixelated;
    pointer-events: none;
    transform-origin: center;
    animation: longevity-checkin-heart-rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.cabinet-body .longevity-active-target
    .longevity-checkin-feedback[data-longevity-checkin-feedback="done"] {
    background-image: url("/assets/icons/pixel-heart.svg?v=20260802-checkin-hearts-v1");
}

.cabinet-body .longevity-active-target
    .longevity-checkin-feedback[data-longevity-checkin-feedback="not_done"] {
    background-image: url("/assets/icons/pixel-heart-broken.svg?v=20260802-checkin-hearts-v1");
    animation-name: longevity-checkin-broken-heart-rise;
}

@keyframes longevity-checkin-heart-rise {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.65);
    }

    18% {
        opacity: 1;
        transform: translate(-50%, -75%) scale(1.15);
    }

    35% {
        transform: translate(-50%, -88%) scale(1);
    }

    70% {
        opacity: 1;
        transform: translate(-50%, -150%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -180%) scale(0.9);
    }
}

@keyframes longevity-checkin-broken-heart-rise {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.65);
    }

    18% {
        opacity: 1;
        transform: translate(-45%, -75%) scale(1.12);
    }

    28% {
        transform: translate(-55%, -88%) scale(1);
    }

    38% {
        transform: translate(-48%, -100%) scale(1);
    }

    70% {
        opacity: 1;
        transform: translate(-52%, -150%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -180%) scale(0.9);
    }
}

@keyframes longevity-checkin-heart-fade {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%);
    }

    20%,
    70% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cabinet-body .longevity-active-target .longevity-checkin-feedback {
        animation-name: longevity-checkin-heart-fade;
        animation-duration: 450ms;
        animation-timing-function: ease-out;
    }
}

.app-pixel-feedback {
    --app-pixel-feedback-animation: app-pixel-feedback-rise;
    position: fixed;
    z-index: 10000;
    display: block;
    width: 56px;
    height: 56px;
    background-image: var(--app-pixel-feedback-icon);
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    image-rendering: pixelated;
    pointer-events: none;
    transform-origin: center;
    animation: var(--app-pixel-feedback-animation) 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.app-pixel-feedback[data-pixel-feedback="meal"] {
    --app-pixel-feedback-icon: url("/assets/icons/pixel-meal.svg?v=20260802-action-feedback-v1");
}

.app-pixel-feedback[data-pixel-feedback="workout"] {
    --app-pixel-feedback-icon: url("/assets/icons/pixel-workout.svg?v=20260802-action-feedback-v1");
}

.app-pixel-feedback[data-pixel-feedback="measurement"] {
    --app-pixel-feedback-icon: url("/assets/icons/pixel-measurement.svg?v=20260802-action-feedback-v1");
}

.app-pixel-feedback[data-pixel-feedback="sleep"] {
    --app-pixel-feedback-icon: url("/assets/icons/pixel-sleep.svg?v=20260802-action-feedback-v1");
}

.app-pixel-feedback[data-pixel-feedback="done"] {
    --app-pixel-feedback-icon: url("/assets/icons/pixel-heart.svg?v=20260802-checkin-hearts-v1");
    --app-pixel-feedback-animation: longevity-checkin-heart-rise;
}

.app-pixel-feedback[data-pixel-feedback="not_done"] {
    --app-pixel-feedback-icon: url("/assets/icons/pixel-heart-broken.svg?v=20260802-checkin-hearts-v1");
    --app-pixel-feedback-animation: longevity-checkin-broken-heart-rise;
}

@keyframes app-pixel-feedback-rise {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(0) scale(0.55);
    }

    18% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(-14px) scale(1.15);
    }

    36% {
        transform: translate(-50%, -50%) translateY(-28px) scale(1);
    }

    72% {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(-54px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-72px) scale(0.9);
    }
}

@keyframes app-pixel-feedback-fade {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%);
    }

    20%,
    70% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-pixel-feedback {
        animation-name: app-pixel-feedback-fade;
        animation-duration: 450ms;
        animation-timing-function: ease-out;
    }
}


.cabinet-body .today-item-actions :is(a, button),
.cabinet-body .health-assessment__action,
.cabinet-body .pro-payment-promo summary {
    border-width: 1px;
    border-radius: var(--app-radius-control);
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}


.cabinet-body #cabinet-section-nutrition .nutrition-entry-card {
    border: 1px solid var(--app-line-card);
    border-radius: var(--app-radius-control);
    background: var(--app-color-card);
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}


.cabinet-body #cabinet-section-nutrition .nutrition-meal-journal {
    border: 1px solid var(--app-line-card);
    border-radius: var(--app-radius-surface);
    background: var(--app-color-card);
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}


.cabinet-body #cabinet-section-weight .body-metrics-summary {
    gap: 10px;
    border: 0;
    padding-block: 0;
}

.cabinet-body #cabinet-section-weight .weight-current-card,
.cabinet-body #cabinet-section-weight .weight-form {
    border: 1px solid var(--app-line-card);
    border-radius: var(--app-radius-control);
    padding: 14px;
    background: var(--app-color-card);
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}

.cabinet-body #cabinet-section-weight .weight-current-card:first-child,
.cabinet-body #cabinet-section-weight .weight-current-card:last-child {
    border: 1px solid var(--app-line-card);
    padding: 12px;
}

.cabinet-body .app-history-table:focus-visible {
    outline: 3px solid var(--app-focus-ring);
    outline-offset: 3px;
}

.cabinet-body #cabinet-section-weight .weight-legend {
    border-radius: var(--app-radius-data);
    corner-shape: round;
}

.cabinet-body #cabinet-section-activity .steps-chart-panel .steps-chart-legend {
    border-radius: var(--app-radius-data);
    corner-shape: round;
}


.cabinet-body .cabinet-section-button {
    border: 1px solid var(--app-line-subtle);
    border-radius: var(--app-radius-surface);
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}

.cabinet-body nav.details-section-picker :is(
    .cabinet-section-button,
    .cabinet-section-button[data-pro-section]
) {
    border-radius: var(--app-radius-surface);
    corner-shape: var(--app-corner-shape);
}


.cabinet-body #cabinet-section-night-metrics > .wellness-panel,
.cabinet-body #cabinet-section-weight > .weight-panel:first-of-type,
.cabinet-body #cabinet-section-activity > .steps-panel,
.cabinet-body #cabinet-section-nutrition > .nutrition-panel,
.cabinet-body #cabinet-section-nutrition > .nutrition-history-panel {
    border: 0;
    border-radius: 0;
    corner-shape: round;
    background: transparent;
    box-shadow: var(--app-card-shadow);
}

.cabinet-body #cabinet-section-nutrition .nutrition-week-card {
    border: 1px solid var(--app-line-subtle);
    border-radius: var(--app-radius-surface);
    background: #fff;
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}

.cabinet-body #cabinet-section-nutrition .nutrition-week-card :is(
    .nutrition-week-toolbar,
    .nutrition-table-wrap
) {
    border-radius: 0;
    corner-shape: round;
}

.cabinet-body #cabinet-section-nutrition .nutrition-week-card .nutrition-table-wrap {
    border: 0;
}


.cabinet-body :is(
    .auth-tab,
    .today-inline-options label,
    .sleep-reminder-option,
    .wellness-average-toggle,
    .modules-hub-settings-toggle,
    .modules-hub-configuration label,
    .manual-activity-type-options span,
    .manual-activity-intensity-options span
) {
    border: 1px solid var(--app-line-control);
    border-radius: var(--app-radius-control);
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}

.cabinet-body :is(
    .cabinet-section-button.is-active,
    .auth-tab.is-active,
    .today-inline-options input:checked + label,
    .manual-activity-type-options input:checked + span,
    .manual-activity-intensity-options input:checked + span
) {
    border-color: var(--app-line-active);
}

.cabinet-body .cabinet-section-button.is-pro-locked {
    border-color: var(--app-line-pro);
}


.cabinet-body :is(
    .app-bottom-nav-primary,
    .auth-loading-track,
    .today-status[data-type="loading"],
    .intervals-initial-sync-track,
    .recovery-readiness-signal,
    .workout-sport,
    .settings-upgrade-placeholder,
    .nutrition-progress-track
) {
    border-radius: var(--app-radius-pill);
    corner-shape: round;
}

.cabinet-body :is(
    .intervals-initial-sync-track,
    .nutrition-progress-track
) {
    border-color: var(--app-line-control);
}


.cabinet-body :is(
    .app-bottom-nav-icon,
    .details-section-icon,
    .cabinet-section-header-icon,
    .cabinet-back-button,
    .manual-activity-entry-toggle,
    .weight-legend i,
    input[type="radio"]
) {
    border-radius: var(--app-radius-circle);
    corner-shape: round;
}


.cabinet-body .recovery-readiness-header {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
}

.cabinet-body .nutrition-progress-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.cabinet-body :is(
    .recovery-readiness-help,
    .nutrition-progress-add,
    .nutrition-progress-help,
    .modules-hub-power,
    .modules-hub-recommendation-why summary
) {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    border: 1px solid var(--app-line-control);
    border-radius: var(--app-radius-control);
    corner-shape: var(--app-corner-shape);
    background: transparent;
    white-space: nowrap;
}

.cabinet-body :is(
    .recovery-readiness-help,
    .nutrition-progress-help
)[aria-expanded="true"] {
    border-color: var(--app-line-active);
    background: var(--app-line-active);
    color: #fff;
}

.cabinet-body :is(
    .recovery-readiness-details,
    .nutrition-progress-details,
    .longevity-opportunity-why-body,
    .modules-hub-recommendation-why-body
) :is(h3, h4) {
    text-transform: none;
}


.cabinet-body :is(
    .recovery-readiness-segment,
    .sleep-chart-legend-target,
    .wellness-chart-tooltip,
    .steps-chart-legend,
    .weight-legend
) {
    border-radius: var(--app-radius-data);
    corner-shape: round;
}


.cabinet-body #cabinet-section-settings .danger-zone :is(
    .data-settings,
    .account-settings
) {
    border: 1px solid var(--app-line-danger);
    border-radius: var(--app-radius-surface);
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}

.cabinet-body #cabinet-section-settings .danger-zone :is(
    .data-delete-open,
    .account-delete-open
),
.cabinet-body :is(
    .account-delete-submit,
    .data-delete-submit
) {
    border-color: var(--app-line-danger);
    border-radius: var(--app-radius-control);
    corner-shape: var(--app-corner-shape);
}

.cabinet-body #cabinet-section-settings .danger-zone :is(
    .data-delete-open,
    .account-delete-open
),
.cabinet-body :is(
    .today-debug-button,
    .today-debug-time,
    .intervals-disconnect-button,
    .workout-delete,
    .weight-row-actions button.is-delete,
    .habit-action[data-action="delete"]
) {
    border-color: var(--app-line-danger);
}

.cabinet-body :is(
    .account-delete-submit,
    .data-delete-submit
):disabled {
    border-color: var(--app-line-danger);
    background: var(--app-line-danger);
    color: #fff;
    opacity: 0.48;
}


.cabinet-body .sleep-observation-fields :is(input[type="time"], input[data-time-input-24h]) {
    border: 1px solid var(--app-line-control);
    border-radius: var(--app-radius-control);
    corner-shape: var(--app-corner-shape);
}


.cabinet-body :is(
    .recovery-readiness-details,
    .recovery-readiness-note,
    .nutrition-progress-details,
    .nutrition-progress-carryover-explanation,
    .nutrition-progress-empty
) {
    border-color: var(--app-line-subtle);
}

.cabinet-body :is(
    .app-history-table,
    .wellness-history,
    .weight-history-table
) :is(th, td),
.cabinet-body .nutrition-table-wrap tbody :is(th, td) {
    border-color: var(--app-line-subtle);
}


.cabinet-body .workouts-empty {
    border-style: dashed;
}

.cabinet-body #cabinet-section-home :is(
    .sleep-observation-home-card,
    .wellbeing-home-checkin
) .checkin-card-period {
    margin: 0;
    color: #000;
}


.cabinet-body .wearable-onboarding-dialog.cabinet-dialog {
    border: 0;
    border-radius: 0;
}


.cabinet-body .wearable-onboarding-dialog.cabinet-dialog .wearable-onboarding-heading h2 {
    overflow-wrap: normal;
    word-break: normal;
}
