

* {
    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-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-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;
}



[hidden] {
    display: none !important;
}


.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-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;
}


.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;
}

#cabinet-section-notifications > .notification-settings {
    grid-template-columns: minmax(0, 1fr);
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.assessment-module-card.notification-reminder-card,
.assessment-module-card.notification-device-card,
.assessment-module-card.notification-test-card {
    display: grid;
    gap: 7px;
    min-width: 0;
    padding: 8px 10px;
    background: var(--app-color-card);
}

.assessment-module-card.notification-device-card[hidden],
.assessment-module-card.notification-test-card[hidden] {
    display: none;
}

.notification-action-card__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    min-width: 0;
}

.notification-action-card__header h2,
.notification-action-card__header p {
    margin: 0;
}

#cabinet-section-notifications button.notification-card-action {
    position: relative;
    display: inline-grid;
    justify-self: end;
    height: 30px;
    min-height: 30px;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    appearance: none;
    background: transparent;
    color: #000;
    cursor: pointer;
    place-items: center end;
    touch-action: manipulation;
}

#cabinet-section-notifications button.notification-card-action::before {
    position: absolute;
    inset: -7px;
    content: "";
}

.notification-reminder-card__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    min-width: 0;
}

.notification-reminder-card__header h2 {
    margin: 0;
}

#cabinet-section-notifications button.notification-reminder-switch {
    position: relative;
    display: inline-grid;
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    padding: 0;
    border: 0;
    appearance: none;
    background: transparent;
    color: #000;
    cursor: pointer;
    place-items: center;
    touch-action: manipulation;
}

#cabinet-section-notifications button.notification-reminder-switch::before {
    position: absolute;
    inset: -7px;
    content: "";
}

.notification-reminder-time-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    align-items: center;
    gap: 8px;
    min-width: 0;
    min-height: 44px;
}

.notification-reminder-time {
    box-sizing: border-box;
    width: 92px;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    padding: 8px;
    background: #fff;
    color: #000;
    font: inherit;
    font-variant-numeric: tabular-nums;
}

.notification-reminder-time:disabled {
    background: #e7e7eb;
    color: #707070;
}

.notification-reminder-message {
    min-width: 0;
    margin: 0;
    color: #0f766e;
}

.notification-reminder-message:empty {
    display: none;
}

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

.notification-install-caption {
    grid-column: 1 / -1;
    margin: 0;
    color: #525252;
}

.notification-settings button.notification-install-link,
.morning-questionnaire button.notification-install-link {
    position: relative;
    display: inline;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
    white-space: nowrap;
}

.notification-install-link::before {
    position: absolute;
    inset: -15px -6px;
    content: "";
}

.notification-status {
    min-width: 0;
    min-height: 24px;
    margin: 0;
    color: #000;
}

.notification-device-card .notification-status {
    min-height: 0;
}

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

.notification-status:empty {
    display: none;
}

.wearables-detail-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.wearables-detail-status {
    min-width: 0;
    margin: 0 0 8px;
    overflow-wrap: anywhere;
    text-align: left;
    text-transform: none;
}

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

.wearables-detail-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.wearables-detail-actions button {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    max-width: 100%;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 10px 16px;
    appearance: none;
    corner-shape: var(--app-corner-shape);
    background: #fff;
    color: #000;
    cursor: pointer;
    overflow-wrap: anywhere;
    white-space: normal;
    touch-action: manipulation;
}

.wearables-detail-actions .intervals-oauth-connect-button {
    background: #000;
    color: #fff;
}

.wearables-detail-actions .intervals-full-sync-button:hover {
    background: #f4d35e;
    color: #000;
}

.wearables-detail-actions button[hidden] {
    display: none;
}

.wearables-detail-actions .intervals-disconnect-button {
    border-color: #e13333;
    color: #e13333;
}

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

.settings-quick-actions {
    display: grid;
}

.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 {
    margin: 0;
}

.account-settings.account-detail-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.account-detail-card .cabinet-user {
    min-width: 0;
    margin: 0 0 8px;
    overflow-wrap: anywhere;
    text-align: left;
    text-transform: none;
}

.account-detail-card .cabinet-logout {
    width: 100%;
    min-height: 44px;
    border: 1px solid #000;
    padding: 10px 16px;
    background: #fff;
    text-decoration: none;
}

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

.account-detail-card__danger {
    display: grid;
    gap: 8px;
}

.account-detail-card__danger[hidden] {
    display: none;
}

.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 {
    width: 100%;
    min-height: 44px;
    border: 1px solid #e13333;
    padding: 10px 16px;
    background: #fff;
    color: #e13333;
}

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

.account-delete-panel {
    margin-top: 2px;
}

.account-delete-panel[hidden] {
    display: none;
}

.account-delete-form {
    padding: 14px 0 0;
}

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

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

.account-delete-panel-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;
    outline: none;
}

.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-install-guides {
    display: grid;
    gap: 22px;
}

.pwa-install-guide {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.pwa-install-guide h2 {
    margin: 0;
}

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

.pwa-install-step {
    padding: 10px 0;
    border-top: 1px solid var(--app-line-subtle, #d8d8d8);
}

.pwa-install-step:last-child {
    border-bottom: 1px solid var(--app-line-subtle, #d8d8d8);
}

.pwa-install-inline-action {
    white-space: nowrap;
}

.pwa-install-inline-icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-inline-end: 4px;
    vertical-align: -0.125em;
}

.pwa-install-inline-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.pwa-install-step-copy {
    min-width: 0;
    margin: 0;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.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;
}


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

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

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

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


.cabinet-body #cabinet-section-settings .settings-quick-actions > .modules-hub-card .modules-hub-module-open {
    top: -1px;
    right: -1px;
    bottom: -1px;
    left: -1px;
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    place-items: center end;
    padding: 0 11px;
    border-radius: var(--app-radius-surface);
}

.cabinet-body #cabinet-section-settings .settings-quick-actions > .modules-hub-card .assessment-module-card__heading {
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 8px;
}

.cabinet-body .settings-quick-action-icon {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    color: #707070;
}

.cabinet-body .settings-quick-action-icon svg {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    transform: translate(-50%, -50%);
}

.science-modules,
.science-module {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

.science-modules {
    gap: 32px;
}

.science-module {
    gap: 12px;
}

.science-module :where(h2, p) {
    margin: 0;
}

.science-module a {
    color: inherit;
    overflow-wrap: anywhere;
    text-underline-offset: 0.16em;
}


.home-loading {
    display: grid;
    min-height: 180px;
    align-content: center;
    justify-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--app-line-card);
    border-radius: var(--app-radius-surface);
    text-align: center;
}
.home-loading[hidden] { display: none; }
.home-loading p { margin: 0; }
.home-loading button { min-height: 44px; }
#cabinet-section-home[data-assessment-gate="false"][data-modules-resolved="false"] > :not([data-home-loading]) {
    display: none;
}

.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: var(--app-page-inline);
    bottom: calc(var(--app-bottom-nav-height) + env(safe-area-inset-bottom) + 8px);
    left: var(--app-page-inline);
    z-index: 1;
    align-items: center;
    box-sizing: border-box;
    width: auto;
    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 {
    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;
}

.today-empty {
    margin: 0;
}

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

.morning-questionnaire-journal-link {
    min-height: 44px;
}

.morning-questionnaire-journal-link,
.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-assessment-gate="true"] > :not([data-home-tasks]),
#cabinet-section-home[data-assessment-gate="true"] > [data-home-tasks] > :not([data-today-list]) {
    display: none !important;
}

#cabinet-section-home[data-home-gate="setup"] > :not([data-home-tasks]),
#cabinet-section-home[data-home-gate="setup"] > [data-home-tasks] > :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="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-item-readiness {
    position: relative;
}

.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-warning {
    min-width: 0;
    overflow-wrap: anywhere;
}

.today-item-warning {
    margin: 0;
}

.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;
}

.recovery-recommendation {
    --recovery-level-1: #e13333;
    --recovery-level-2: #eb7b49;
    --recovery-level-3: #f4d35e;
    --recovery-level-4: #8edfc4;
    --recovery-level-5: #0f766e;
    --recovery-level-empty: #d8d2cf;
}

.modules-hub-steps-impact {
    --impact-best: #0f766e;
    --impact-gain-low: #cceee4;
    --impact-gain-medium: #8edfc4;
    --impact-gain-high: #3baa91;
    --impact-neutral: #d8d2cf;
    --impact-penalty-low: #f4d35e;
    --impact-penalty-medium: #eb7b49;
    --impact-penalty-high: #e13333;
}

.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);
    align-items: center;
    justify-content: space-between;
    gap: 0;
    min-width: 0;
    padding-inline-end: 40px;
}

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

.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);
}

.modules-hub-steps-impact-pill[data-impact-tone="best"] {
    --recovery-segment-color: var(--impact-best);
}

.modules-hub-steps-impact-pill[data-impact-tone="neutral"] {
    --recovery-segment-color: var(--impact-neutral);
}

.modules-hub-steps-impact-pill[data-impact-tone="gain"][data-impact-strength="low"] {
    --recovery-segment-color: var(--impact-gain-low);
}

.modules-hub-steps-impact-pill[data-impact-tone="gain"][data-impact-strength="medium"] {
    --recovery-segment-color: var(--impact-gain-medium);
}

.modules-hub-steps-impact-pill[data-impact-tone="gain"][data-impact-strength="high"] {
    --recovery-segment-color: var(--impact-gain-high);
}

.modules-hub-steps-impact-pill[data-impact-tone="penalty"][data-impact-strength="low"] {
    --recovery-segment-color: var(--impact-penalty-low);
}

.modules-hub-steps-impact-pill[data-impact-tone="penalty"][data-impact-strength="medium"] {
    --recovery-segment-color: var(--impact-penalty-medium);
}

.modules-hub-steps-impact-pill[data-impact-tone="penalty"][data-impact-strength="high"] {
    --recovery-segment-color: var(--impact-penalty-high);
}

.modules-hub-steps-impact-item[data-current-band="false"]
    > :is(
        .modules-hub-steps-impact-label,
        .modules-hub-steps-impact-value
    ) {
    opacity: 0.2;
}

.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="loading"],
    [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="loading"],
    [data-display-state="unavailable"],
    [data-display-state="learning"],
    [data-display-state="stale"]
) .recovery-readiness-segment::after {
    content: none;
}

.recovery-readiness-current-label {
    min-block-size: 2lh;
    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-recommendation[data-display-state="loading"] .recovery-readiness-current-label {
    color: transparent;
    background: var(--recovery-level-empty);
    border-radius: var(--app-radius-data);
    width: 70%;
    justify-self: center;
}

.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;
}
.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;
}

#journal-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.morning-questionnaire[hidden],
.morning-questionnaire-form[hidden],
.morning-questionnaire-block[hidden],
.morning-questionnaire-note[hidden] {
    display: none;
}
.morning-questionnaire-card {
    position: relative;
    display: grid;
    min-width: 0; min-height: 38px;
}
.morning-questionnaire-home { display: grid; }
.morning-questionnaire-card :is(h2, h3, p) {
    margin-block: 0;
}
.morning-questionnaire-form {
    display: grid;
    min-width: 0;
    gap: 32px;
}
.morning-questionnaire-section {
    display: grid;
    min-width: 0;
    gap: 16px;
}
.morning-questionnaire-section:not(:has(> .morning-questionnaire-block:not([hidden]))) {
    display: none;
}
.morning-questionnaire-section > .app-type-page-title {
    margin: 0;
}
.morning-questionnaire-block {
    display: grid;
    min-width: 0;
    gap: 12px;
    margin: 0;
}
.morning-questionnaire .checkin-scale .app-type-control {
    height: 30px;
    min-height: 30px;
}
.morning-questionnaire .checkin-context label > .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 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
}

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

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

.morning-questionnaire-sleep-fields input {
    --app-type-input-size: max(16px, calc(16px / var(--app-scale, 1)));
    width: 100%;
    height: 30px;
    min-height: 30px;
    border: 1px solid #777;
    border-radius: var(--app-radius-control);
    padding: 4px 8px;
    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 :is(legend, .morning-questionnaire-note) {
    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-square-choices {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
    align-items: center;
}

.morning-questionnaire-square-choices label > span {
    width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: var(--app-radius-data);
    padding: 0;
}

.morning-questionnaire-square-choices svg {
    width: 18px;
    height: 18px;
}

.morning-questionnaire-square-choices input[data-binary-answer="yes"]:checked + span {
    border-color: var(--app-color-success);
    background: var(--app-color-success);
}

.morning-questionnaire-square-choices input:disabled + span {
    opacity: 0.5;
    cursor: default;
}

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

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

.morning-questionnaire [data-morning-questionnaire-form-message]:not([data-type="error"]),
.morning-questionnaire-home .assessment-message:empty,
.morning-questionnaire .assessment-message:empty {
    display: none;
}

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

.morning-questionnaire .assessment-message[data-type="success"] {
    color: #35633f;
}

.cabinet-journal {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 12px;
}

.cabinet-journal[hidden] { display: none; }

.journal-heading {
    min-width: 0;
}

.journal-heading h1 { margin: 0; }

.journal-date-strip {
    display: flex;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 6px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 2px 0 6px;
    scrollbar-width: none;
    scroll-snap-type: inline proximity;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.journal-date-strip::-webkit-scrollbar { display: none; }

.journal-date-strip.is-dragging {
    scroll-snap-type: none;
    cursor: grabbing;
    user-select: none;
}

.journal-date-button {
    display: grid;
    width: 52px;
    min-width: 52px;
    min-height: 58px;
    place-content: center;
    gap: 2px;
    border: 1px solid var(--app-line-card);
    border-radius: var(--app-radius-control);
    padding: 4px;
    background: var(--app-color-card);
    color: #000;
    scroll-snap-align: center;
    cursor: grab;
}

.journal-date-strip.is-dragging .journal-date-button { cursor: grabbing; }

.journal-date-button.is-selected {
    border-color: #000;
    background: #000;
    color: #fff;
}

.journal-date-weekday { text-transform: uppercase; }
.journal-date-day { font-weight: 800; }
.morning-questionnaire-home .assessment-message:empty { display: none; }

.cabinet-body .morning-questionnaire .checkin-question {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.cabinet-body .morning-questionnaire .checkin-scale {
    grid-template-columns: repeat(5, 30px);
    width: auto;
    gap: 4px;
}

.cabinet-body .morning-questionnaire .morning-questionnaire-face-control {
    box-sizing: border-box;
    width: 30px;
    min-width: 30px;
    border-radius: var(--app-radius-data);
    padding: 0;
}
#cabinet-section-home [data-home-widget-visible="false"] {
    display: none;
}

.cabinet-body [data-modules-home]:not(:has([data-home-streak-panel]:not([hidden]):not([data-home-widget-visible="false"]))),
.cabinet-body .today-readiness-list:not(:has([data-today-readiness-item]:not([hidden]))) {
    display: none;
}


.cabinet-body [data-home-health-dashboard]:not(:has(
    [data-home-customization-widget="longevity"]:not([data-home-widget-visible="false"]),
    [data-home-streak-panel]:not([hidden]):not([data-home-widget-visible="false"]),
    [data-home-customization-widget="training-readiness"]:not([data-home-widget-visible="false"]) [data-today-readiness-item]:not([hidden]),
    [data-nutrition-progress-card]:not([hidden]):not([data-home-widget-visible="false"])
)) {
    display: contents;
}

.cabinet-body [data-home-health-dashboard]:not(:has(
    [data-home-customization-widget="longevity"]:not([data-home-widget-visible="false"]),
    [data-home-streak-panel]:not([hidden]):not([data-home-widget-visible="false"]),
    [data-home-customization-widget="training-readiness"]:not([data-home-widget-visible="false"]) [data-today-readiness-item]:not([hidden]),
    [data-nutrition-progress-card]:not([hidden]):not([data-home-widget-visible="false"])
)) > .home-health-dashboard-title {
    display: none;
}

.cabinet-body .home-customization-dialog .dialog-form {
    display: grid;
    gap: 16px;
}

.cabinet-body .home-customization-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cabinet-body .home-customization-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    align-items: center;
    gap: 4px 12px;
    min-height: 44px;
}

.cabinet-body .home-customization-row .modules-hub-power {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
}

.cabinet-body .home-customization-row .modules-hub-power:disabled {
    cursor: default;
}

.cabinet-body .home-customization-row p {
    grid-column: 1 / -1;
    margin: 0;
}

.cabinet-body .home-customization-dialog [data-type="error"] {
    color: var(--app-line-danger);
}


.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;
}


.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;
}

.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;
}

.cabinet-body #cabinet-section-weight :where(
    .body-metrics-panel,
    .body-metrics-module-content
) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.cabinet-body #cabinet-section-weight .body-metrics-module-content {
    display: grid;
    gap: inherit;
}

.cabinet-body #cabinet-section-weight .body-metrics-module-content[hidden] {
    display: none;
}

.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;
}

.workouts-summary article.wellness-card {
    padding: 16px;
}

.workouts-summary article.wellness-card strong {
    margin: 10px 0 0;
}

.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;
}

.steps-panel,
.steps-module-content,
.workouts-module-content {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.steps-module-content {
    display: grid;
    gap: 18px;
}

.workouts-module-content {
    display: grid;
    gap: 20px;
}

.training-workspace-content {
    display: grid;
    min-width: 0;
    gap: 16px;
}

.steps-module-progress {
    margin: 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.steps-module-content[hidden],
.workouts-module-content[hidden] {
    display: none;
}

.training-workspace-content[hidden] {
    display: none;
}

.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;
}

.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;
    }

.training-workspace-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
}

.training-workspace-panel {
    min-width: 0;
}

.training-workspace-tabs[hidden],
.training-workspace-panel[hidden] {
    display: none;
}
.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;
}

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

.wellbeing-entry {
    min-width: 0;
}

.wellbeing-entry-content {
    display: grid;
    min-width: 0;
    gap: 14px;
}

.wellbeing-entry-date {
    display: grid;
    min-width: 0;
    gap: 6px;
}

.wellbeing-entry-date input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 48px;
}

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

.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);
}

.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;
}

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

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

.checkin-form {
    display: grid;
    min-width: 0;
    margin: 0;
}

.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 .morning-questionnaire-face-control {
    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 + .morning-questionnaire-face-control {
    background: var(--assessment-ink);
    color: var(--assessment-paper);
}

.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);
}

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

.assessment-history-card[hidden] {
    display: none;
}

.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-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-history-card {
    padding: 15px;
}

.checkin-scale {
    gap: 2px;
}

.checkin-scale .morning-questionnaire-face-control {
    min-width: 44px;
}

.assessment-history-heading {
    align-items: stretch;
    flex-direction: column;
}


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-bottom-nav-height: 64px;
    --cabinet-section-header-height: 44px;
    --cabinet-section-header-gap: 4px;
    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-content:has(> .cabinet-section-header:not([hidden])) {
    gap: 16px;
}

.cabinet-body :is(.cabinet-home, .home-area) {
    display: grid;
}

.cabinet-body .home-area {
    gap: 16px;
    min-width: 0;
}

.cabinet-body .home-area > .app-type-page-title {
    margin-block-end: 0;
}

.cabinet-body .cabinet-section-header {
    position: sticky;
    z-index: 90;
    top: env(safe-area-inset-top);
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: var(--cabinet-section-header-gap);
    width: 100%;
    height: var(--cabinet-section-header-height);
    min-height: var(--cabinet-section-header-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-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-label {
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.cabinet-body .cabinet-back-button .cabinet-back-chevron {
    transform: rotate(135deg);
    transition: none;
}

.cabinet-body .cabinet-section-header-content,
.cabinet-body .cabinet-section-module-heading {
    min-width: 0;
}

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

.cabinet-body .cabinet-section-module-heading .module-detail-heading[hidden] {
    display: none;
}

.cabinet-body .cabinet-section-module-heading .module-detail-heading {
    width: 100%;
}

.cabinet-body .cabinet-section-module-heading .assessment-module-card__title {
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cabinet-body .app-bottom-nav {
    position: fixed;
    z-index: 100;
    right: auto;
    top: auto;
    bottom: 0;
    left: calc(var(--app-frame-left, 0px) / var(--app-scale, 1));
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    justify-content: stretch;
    column-gap: 0;
    box-sizing: border-box;
    width: var(--app-logical-width, 100cqi);
    height: calc(var(--app-bottom-nav-height) + env(safe-area-inset-bottom));
    min-height: calc(var(--app-bottom-nav-height) + env(safe-area-inset-bottom));
    margin: 0;
    padding: 0 0 env(safe-area-inset-bottom);
    background: #fff;
    pointer-events: auto;
}

.cabinet-body .app-bottom-nav::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 1px;
    background: rgba(0, 0, 0, 0.16);
    content: "";
    pointer-events: none;
}

html[data-app-keyboard-active="true"] .cabinet-body .app-bottom-nav {
    visibility: hidden;
    pointer-events: none;
}

.cabinet-body .app-bottom-nav-primary {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    width: 100%;
    height: var(--app-bottom-nav-height);
    box-sizing: border-box;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    pointer-events: auto;
}

.cabinet-body .app-bottom-nav-item {
    appearance: none;
    display: grid;
    place-items: center;
    grid-template-rows: 30px 14px;
    align-content: start;
    gap: 2px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: var(--app-bottom-nav-height);
    min-height: var(--app-bottom-nav-height);
    border: 0;
    border-radius: 0;
    padding: 8px 4px 10px;
    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-journal,
    .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-label {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    color: inherit;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.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 :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-module-content > .nutrition-panel,
.cabinet-body #cabinet-section-nutrition > .nutrition-module-content > .nutrition-history-panel {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.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 :where(
    .notification-settings-controls,
    .wellness-header-actions
) {
    width: 100%;
}

.cabinet-body :where(
    .notification-settings-controls button,
    .intervals-disconnect-button,
    .wellness-sync,
    .weight-sync,
    .account-detail-card .cabinet-logout
) {
    width: 100%;
}

.cabinet-body [data-app-message]:empty {
    display: none;
}


.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 .today-debug-toggle {
    appearance: none;
    position: absolute;
    z-index: 1;
    right: var(--app-page-inline);
    bottom: calc(var(--app-bottom-nav-height) + env(safe-area-inset-bottom) + 8px);
    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 .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 .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 #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 .workouts-summary article.wellness-card {
    min-height: 0;
    padding: 10px 8px;
    background: var(--app-color-card);
}

.cabinet-body #cabinet-section-activity .workouts-summary article.wellness-card strong {
    margin: 7px 0 0;
}

.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-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 #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 .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: 22%;
}

.cabinet-body #cabinet-section-night-metrics .wellness-history thead th:nth-child(2) {
    width: 20%;
}

.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: 15%;
}

.cabinet-body #cabinet-section-night-metrics .wellness-history thead th:nth-child(5) {
    width: 28%;
}

.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 .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 #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 .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 .account-detail-card .cabinet-user {
    line-height: var(--app-type-body-line);
}

.cabinet-body .account-detail-card button {
    width: 100%;
    min-height: 44px;
}

.cabinet-body .account-detail-card .account-delete-panel-status:empty {
    display: none;
}


.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 .habit-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cabinet-body .habit-day:last-child {
    grid-column: 1 / -1;
}



.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 #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 .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 .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 .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-consistency {
    display: grid;
    min-width: 0;
    gap: 16px;
}

.cabinet-body .sleep-consistency :where(h2, h3, p) {
    margin: 0;
}

.cabinet-body .sleep-module-content {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 16px;
}

.cabinet-body .sleep-module-content[hidden] {
    display: none;
}

.cabinet-body .sleep-consistency-status {
    min-height: 18px;
}

.cabinet-body .sleep-consistency-status[data-type="error"] {
    color: #a11c13;
}

.cabinet-body :where(
    .sleep-confirmation-form,
    .sleep-chart-panel
) {
    min-width: 0;
    border: 1.5px solid #000;
    padding: 16px;
    background: #fff;
}

.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-duration-chart-panel {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.cabinet-body .sleep-duration-chart-panel .weight-chart-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.cabinet-body .sleep-duration-chart-panel .weight-chart-wrap {
    min-width: 0;
    overflow-x: hidden;
}

.cabinet-body .sleep-duration-chart-panel .wellness-chart {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
}

.cabinet-body .sleep-duration-chart-panel .wellness-average-controls {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
}

.cabinet-body .sleep-duration-chart-panel :where(
    .wellness-average-toggle,
    .wellness-average-window
) {
    min-width: 0;
    min-height: 44px;
    gap: 5px;
    white-space: nowrap;
}

.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 .sleep-primary-action {
    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-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 {
    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-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 .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 .module-detail {
    display: grid;
    min-width: 0;
    gap: 16px;
}

.cabinet-body .module-detail :where(h2, h3, p) {
    margin: 0;
}

.cabinet-body .module-detail-overview {
    display: grid;
    min-width: 0;
    gap: 12px;
}

.cabinet-body .module-detail-external-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 48px;
    border: 1px solid #000;
    border-radius: var(--app-radius-surface);
    padding: 12px 14px;
    background: var(--app-color-card);
    color: #000;
    text-decoration: none;
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
    overflow-wrap: anywhere;
    touch-action: manipulation;
}

.cabinet-body .module-detail-external-link:hover {
    background: #f4d35e;
    color: #000;
}

.cabinet-body .module-detail-external-link__icon {
    font-size: 20px;
    line-height: 1;
}

.cabinet-body .module-detail-impact-card .module-explanation-embedded {
    border-top: 1px solid var(--app-line-subtle);
    padding-top: 8px;
}

.cabinet-body .module-detail-impact-card--grouped {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.cabinet-body .module-detail-impact-card--grouped .module-explanation-embedded {
    gap: 12px;
    border-top: 0;
    padding-top: 0;
}

.cabinet-body .module-detail-impact-group {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.cabinet-body .module-detail-impact-group > .modules-hub-steps-impact {
    border: 1px solid var(--app-line-subtle);
    border-radius: var(--app-radius-control);
    padding: var(--app-today-card-padding);
    background: var(--app-color-background);
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}

.cabinet-body .module-detail-impact-card--grouped .modules-hub-impact-heading {
    color: var(--app-color-text, #000);
    white-space: normal;
    overflow-wrap: anywhere;
}

.cabinet-body .module-detail-impact-caption {
    gap: 4px;
    border-top: 0;
    padding-top: 0;
}

.cabinet-body .module-detail-status[data-type="error"] {
    color: #a11c13;
}

.cabinet-body .module-detail-retry {
    justify-self: start;
}


.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;
    }
}
.assessment-module-groups {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    min-width: 0;
    margin-top: 40px;
}

.assessment-module-group,
.assessment-module-group__cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    min-width: 0;
}

.assessment-module-group__title {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.assessment-module-group__caption {
    min-width: 0;
    margin: -4px 0 4px;
    color: var(--app-color-text-muted, #625d5a);
    overflow-wrap: anywhere;
}

.assessment-module-group__caption-highlight {
    display: inline-block;
    padding: 0 4px;
    border-radius: var(--app-radius-pill);
    background: #2563eb;
    color: #fff;
    white-space: nowrap;
    vertical-align: baseline;
}

.assessment-module-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    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);
    color: var(--app-color-text, #000);
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}

.assessment-module-card__content {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.assessment-module-card__heading {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.assessment-module-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.assessment-module-card__title {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.assessment-module-card__potential.is-gain {
    flex: 0 0 auto;
    padding-block: 1px;
    padding-inline: 4px;
    background: #2563eb;
    color: #fff;
}

.cabinet-body .assessment-module-card__potential:is(.is-loading, .is-unavailable) {
    flex: 0 0 auto;
    padding-block: 1px;
    background: #f1efec;
    color: var(--app-color-text-muted, #625d5a);
}

.assessment-module-card__potential:is(.is-complete, .is-pending, .is-review) {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: var(--app-radius-circle);
    color: #fff;
}

.assessment-module-card__potential.is-complete {
    border-color: var(--app-color-accent);
    background: var(--app-color-accent);
}

.assessment-module-card__potential.is-pending {
    border-color: #625d5a;
    background: #625d5a;
}


.assessment-module-card__potential.is-review {
    border-color: #f4b400;
    background: #f4b400;
    color: #332600;
}

.assessment-module-card .modules-hub-steps-impact {
    display: grid;
    gap: 4px;
    min-width: 0;
    margin-top: 0;
}

.assessment-module-card .modules-hub-impact-heading {
    min-width: 0;
    margin: 0;
    color: var(--app-color-text-muted, #625d5a);
    overflow-wrap: anywhere;
}

.assessment-impact-gradient {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.assessment-impact-gradient__track {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    height: 12px;
    margin: 18px 0;
}

.assessment-impact-gradient__segments {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    height: 12px;
}

.assessment-impact-gradient__segment {
    position: relative;
    min-width: 0;
}

.assessment-impact-gradient__segment-pill {
    display: block;
    width: 100%;
}

.assessment-impact-gradient__segment:nth-child(-n + 2)
    .assessment-impact-gradient__segment-pill {
    --recovery-segment-color: var(--impact-penalty-high);
}

.assessment-impact-gradient__segment:nth-child(n + 3):nth-child(-n + 4)
    .assessment-impact-gradient__segment-pill {
    --recovery-segment-color: var(--impact-penalty-medium);
}

.assessment-impact-gradient__segment:nth-child(5)
    .assessment-impact-gradient__segment-pill {
    --recovery-segment-color: var(--impact-penalty-low);
}

.assessment-impact-gradient__segment:nth-child(n + 6):nth-child(-n + 7)
    .assessment-impact-gradient__segment-pill {
    --recovery-segment-color: var(--impact-neutral);
}

.assessment-impact-gradient__segment:nth-child(n + 8):nth-child(-n + 9)
    .assessment-impact-gradient__segment-pill {
    --recovery-segment-color: var(--impact-gain-medium);
}

.assessment-impact-gradient__segment:nth-child(n + 10):nth-child(-n + 11)
    .assessment-impact-gradient__segment-pill {
    --recovery-segment-color: var(--impact-gain-high);
}

.assessment-impact-gradient__segment:nth-child(12)
    .assessment-impact-gradient__segment-pill {
    --recovery-segment-color: var(--impact-best);
}

.assessment-impact-gradient__segment-pill[data-selected="true"] {
    z-index: 1;
    opacity: 1;
}

.assessment-impact-gradient__marker {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid #000;
    border-radius: var(--app-radius-circle);
    background: #fff;
    box-sizing: border-box;
    transform: translate(-50%, -50%);
    transition: left 180ms ease;
}

.assessment-impact-gradient__boundary {
    position: absolute;
    z-index: 2;
    inset: 0;
    opacity: 0.2;
}

.assessment-impact-gradient__segment[data-selected="true"]
    .assessment-impact-gradient__boundary {
    opacity: 1;
}

.assessment-impact-gradient__marker-value,
.assessment-impact-gradient__marker-impact,
.assessment-impact-gradient__boundary-value,
.assessment-impact-gradient__boundary-impact {
    position: absolute;
    left: 50%;
    color: var(--app-color-text, #000);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    line-height: 14px;
    white-space: nowrap;
    transform: translateX(-50%);
}

.assessment-impact-gradient__marker-value,
.assessment-impact-gradient__boundary-value {
    bottom: calc(100% + 4px);
}

.assessment-impact-gradient__marker-impact,
.assessment-impact-gradient__boundary-impact {
    top: calc(100% + 4px);
}

.assessment-impact-gradient__marker[data-label-alignment="start"]
    :is(.assessment-impact-gradient__marker-value, .assessment-impact-gradient__marker-impact) {
    left: 50%;
    transform: none;
}

.assessment-impact-gradient__marker[data-label-alignment="end"]
    :is(.assessment-impact-gradient__marker-value, .assessment-impact-gradient__marker-impact) {
    right: 50%;
    left: auto;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .assessment-impact-gradient__marker {
        transition: none;
    }
}

.assessment-module-card .modules-hub-steps-impact-items {
    grid-template-rows: auto 12px auto;
    padding-block-end: 0;
}

.assessment-module-card .modules-hub-steps-impact-items[data-band-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.assessment-module-card .modules-hub-steps-impact-items[data-band-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.assessment-module-card .modules-hub-steps-impact-items[data-band-count="4"] {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.assessment-module-card .modules-hub-steps-impact-items[data-band-count="5"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.assessment-module-card .modules-hub-steps-impact-items[data-band-count="6"] {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.assessment-module-card .modules-hub-steps-impact-item {
    display: grid;
    grid-row: 1 / span 3;
    grid-template-rows: subgrid;
    gap: 4px;
    min-width: 0;
    text-align: center;
}

.assessment-module-card .modules-hub-steps-impact-label {
    align-self: end;
    white-space: normal;
}

@media (max-width: 359px) {
    .assessment-module-card {
        padding-inline: 10px;
    }

    .assessment-module-card__heading {
        gap: 6px;
    }
}
.alcohol-module-panel {
    display: grid;
    gap: 18px;
    width: 100%;
    min-width: 0;
    max-width: 760px;
    margin: 0 auto;
}

.alcohol-module-content {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.alcohol-module-content[hidden] {
    display: none;
}

.alcohol-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    border: 0;
    padding: 0;
}

.alcohol-summary-card,
.alcohol-history {
    border: 1px solid var(--app-border, #d8d8dc);
    border-radius: var(--app-radius-surface);
    background: var(--app-card-background, #fff);
    padding: 18px;
}

.cabinet-body #cabinet-section-alcohol .alcohol-summary-card {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
    padding: 12px;
}

.alcohol-summary-card p,
.alcohol-summary-card small,
.alcohol-message {
    margin: 0;
}

.alcohol-summary-card strong {
    min-width: 0;
    margin: 3px 0 0;
    overflow-wrap: anywhere;
}

.alcohol-summary-card small {
    margin-top: 2px;
}

.alcohol-history h3 {
    margin: 0;
}

.alcohol-entry-form {
    gap: 16px;
}

.alcohol-entry-datetime {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.alcohol-entry-datetime label,
.alcohol-volume {
    display: grid;
    gap: 6px;
}

.alcohol-entry input[type="date"],
.alcohol-entry input[type="time"],
.alcohol-entry input[type="number"] {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
}

.alcohol-drink-types {
    margin: 0;
    padding: 0;
    border: 0;
}

.alcohol-drink-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.alcohol-drink-options label {
    position: relative;
}

.alcohol-drink-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.alcohol-drink-options span {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #b8b8bd;
    border-radius: var(--app-radius-pill);
}

.alcohol-drink-options input:checked + span {
    border-color: #111;
    background: #111;
    color: #fff;
}

.alcohol-preview {
    display: grid;
    gap: 6px;
    padding: 14px;
    border-radius: var(--app-radius-surface);
    background: #f2f2f5;
}

.alcohol-preview p {
    margin: 0;
}

.alcohol-submit {
    min-height: 48px;
}

.alcohol-history {
    display: grid;
    gap: 12px;
}

.alcohol-history-list {
    display: grid;
    gap: 8px;
}

.alcohol-history-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid #dedee2;
}

.alcohol-history-item:first-child {
    border-top: 0;
}

.alcohol-history-item p,
.alcohol-history-item small {
    margin: 0;
}

.alcohol-history-delete {
    min-width: 44px;
    min-height: 44px;
}

@media (max-width: 393px) {
    .alcohol-entry-datetime {
        grid-template-columns: minmax(0, 1fr);
    }
}
.assessment-choice-control {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.assessment-choice-option {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 18px;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    background: #fcf8f7;
    color: #000;
    cursor: pointer;
    font: inherit;
    overflow-wrap: anywhere;
}

.assessment-choice-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    margin: 0;
    appearance: none;
}

.assessment-choice-option:has(input:focus-visible) {
    outline: 3px solid var(--app-focus-ring, #000);
    outline-offset: 3px;
}

.assessment-choice-option span {
    display: block;
    min-width: 0;
}

.assessment-choice-option:has(input:checked) {
    background: #000;
    color: #fcf8f7;
}
.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-loading-shell {
    order: 1;
    display: grid;
    grid-template-rows: 80px 54px auto;
    box-sizing: border-box;
    width: 100%;
    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 .modules-health-assessment .health-assessment-loading-shell__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    align-items: center;
    gap: 4px 16px;
    padding: 8px clamp(12px, 3vw, 24px) 7px;
}

.cabinet-body .modules-health-assessment .health-assessment-loading-shell__title {
    grid-column: 1 / -1;
    margin: 0;
    color: #000;
}

.cabinet-body .modules-health-assessment .health-assessment-loading-shell__progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-content: center;
    gap: 16px;
    padding: 2px clamp(12px, 3vw, 24px);
}

.cabinet-body .modules-health-assessment .health-assessment-loading-shell__history {
    display: grid;
    align-content: end;
    gap: 8px;
    min-width: 0;
    padding: 8px clamp(12px, 3vw, 24px) 7px;
}

.cabinet-body .modules-health-assessment .health-assessment-loading-shell__bar {
    display: block;
    width: min(100%, 132px);
    height: 12px;
    border-radius: var(--app-radius-pill);
    background: #e8e8e8;
}

.cabinet-body .modules-health-assessment .health-assessment-loading-shell__bar--value {
    height: 22px;
}

.cabinet-body .modules-health-assessment .health-assessment-loading-shell__bar--dates {
    width: 42%;
    height: 10px;
}

.cabinet-body .modules-health-assessment .health-assessment-loading-shell__chart {
    display: block;
    width: 100%;
    aspect-ratio: 20 / 3;
    border-bottom: 2px solid #e8e8e8;
}

.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) .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 :is(.modules-health-assessment, .interactive-kamalama-result) .health-assessment-journey--without-history {
    grid-template-rows: 80px 54px;
    height: 136px;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .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) .health-assessment-journey__title {
    min-width: 0;
    margin: 0;
    color: #000;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .health-assessment-journey__heading {
    grid-column: 1 / -1;
    min-width: 0;
}

.cabinet-body .home-health-dashboard-title {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.cabinet-body .home-health-dashboard-icon {
    display: grid;
    flex: 0 0 20px;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: var(--app-radius-circle);
    background: var(--app-line-danger);
    color: #fff;
}

.cabinet-body .home-health-dashboard-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .health-assessment-journey__metric {
    min-width: 0;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .health-assessment-journey__label,
.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .health-assessment-journey__value,
.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .health-assessment-journey__progress-label,
.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .health-assessment-journey__progress-value {
    margin: 0;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .health-assessment-journey__label {
    color: #5f5f5f;
    white-space: nowrap;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .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) .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) .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) .health-assessment-journey__progress-metric {
    display: grid;
    justify-items: start;
    gap: 2px;
    min-width: 0;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .health-assessment-journey__progress-metric--remaining {
    justify-items: start;
    text-align: left;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .health-assessment-journey__progress-metric--remaining:only-child {
    grid-column: 2;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .health-assessment-journey__progress-label {
    color: #5f5f5f;
    white-space: nowrap;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .health-assessment-journey__progress-value {
    white-space: nowrap;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .health-assessment-journey__progress-value.interactive-kamalama-result__metric-gain {
    background: #2563eb;
    color: #fff;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .health-assessment-journey__progress-value--realized {
    color: var(--app-color-accent);
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .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) .health-assessment-journey__chart-frame {
    position: relative;
    min-width: 0;
    aspect-ratio: 20 / 3;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .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) .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) .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) .health-assessment-journey__axis-label--maximum {
    top: 0;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .health-assessment-journey__axis-label--minimum {
    bottom: 0;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .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) .health-assessment-journey__point {
    fill: #000;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .opzh-range-history-area {
    fill: #73777d;
    fill-opacity: 0.12;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .opzh-range-history-marker,
.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .opzh-range-history-whisker-cap {
    stroke: #73777d;
    stroke-width: 1;
    stroke-linecap: round;
    opacity: 0.45;
    vector-effect: non-scaling-stroke;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .opzh-range-history-marker--potential,
.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .opzh-range-history-whisker-cap--potential {
    stroke: #2563eb;
    opacity: 0.65;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .opzh-range-history-potential-link {
    fill: none;
    stroke: #2563eb;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 5 5;
    vector-effect: non-scaling-stroke;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .opzh-range-history-potential-point {
    fill: #2563eb;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .health-assessment-journey__dates {
    position: relative;
    min-height: 1em;
    color: #5f5f5f;
}

.cabinet-body :is(.modules-health-assessment, .interactive-kamalama-result) .health-assessment-journey__date {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    white-space: nowrap;
}

.cabinet-body .modules-health-assessment .health-assessment-heading {
    order: 2;
    padding-top: 0;
}

.cabinet-body .modules-health-assessment .health-assessment-heading:has(.health-assessment-intro[hidden]) {
    position: absolute;
}

.cabinet-body .modules-health-assessment .health-assessment-intro {
    margin-top: 0 !important;
}

.cabinet-body .modules-hub-group {
    gap: 12px;
}

.cabinet-body .modules-hub-group .assessment-module-group__title {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.cabinet-body .modules-hub-group-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    fill: none;
    stroke: #707070;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.cabinet-body .modules-hub-group .assessment-module-group__title > span {
    min-width: 0;
}

.cabinet-body .modules-hub-group + .modules-hub-group {
    margin-block-start: calc(36px - var(--app-content-gap));
}

.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 :where(.modules-hub-group, .modules-home)[hidden] {
    display: none;
}

.cabinet-body :where(.modules-hub-list, .modules-home-list) {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cabinet-body .modules-home-list {
    grid-template-columns: minmax(0, 1fr);
}

.cabinet-body .modules-home-list-item {
    min-width: 0;
}

.cabinet-body .modules-hub-card:not(.assessment-module-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-hub-card:not(.assessment-module-card) {
    gap: 8px;
    min-width: 0;
    border: 1px solid var(--app-line-card);
    border-radius: var(--app-radius-surface);
    background: var(--app-color-card);
    corner-shape: var(--app-corner-shape);
}

.cabinet-body .modules-home-card {
    gap: 10px;
    box-sizing: border-box;
    min-width: 0;
    height: 100%;
    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: 8px;
    min-width: 0;
}

.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-steps-impact-items {
    padding-block-end: 0;
}

.cabinet-body .modules-hub-steps-impact-items[data-band-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.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 :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[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
    .assessment-module-card__heading,
.cabinet-body .modules-hub-card.has-details
    .assessment-module-card__heading {
    padding-inline-end: 40px;
}

.cabinet-body .modules-hub-card.is-module-summary
    .assessment-module-card__heading {
    padding-inline-end: 52px;
}

.cabinet-body .modules-hub-card:not(.assessment-module-card).has-details
    .modules-hub-card-copy {
    padding-inline-end: 40px;
}

.cabinet-body .modules-hub-power-icon {
    position: relative;
    display: block;
    box-sizing: border-box;
    width: 30px;
    height: 18px;
    border: 1.5px solid currentColor;
    border-radius: var(--app-radius-pill);
    background: transparent;
}

.cabinet-body .modules-hub-power-icon::after {
    position: absolute;
    top: 1.5px;
    left: 1.5px;
    width: 12px;
    height: 12px;
    border-radius: var(--app-radius-circle);
    background: currentColor;
    content: "";
}

.cabinet-body .modules-hub-unavailable.app-card-disclosure-companion { color: var(--app-line-control); cursor: default; }

.cabinet-body .modules-hub-unavailable .modules-hub-power-icon { border-style: dashed; }

.cabinet-body .modules-hub-unavailable .modules-hub-power-icon::after {
    box-sizing: border-box; border: 1px solid currentColor; background: transparent;
}

.cabinet-body button.modules-hub-power.is-enabled
    .modules-hub-power-icon {
    border-color: #000;
    background: #000;
    color: #fff;
}

.cabinet-body button.modules-hub-power.is-enabled
    .modules-hub-power-icon::after {
    transform: translateX(12px);
}

.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: calc(-1 * var(--app-today-card-padding));
    pointer-events: auto;
}

.cabinet-body .modules-hub-recommendation-why summary {
    list-style: none;
}

.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-section {
    display: grid;
    gap: 7px;
}

.cabinet-body .modules-hub-recommendation-section + .modules-hub-recommendation-section {
    border-top: 1px solid var(--app-line-subtle);
    padding-top: 8px;
}

.cabinet-body .modules-hub-recommendation-section-title {
    margin: 0;
    font-weight: 700;
}

.cabinet-body .modules-home-streak-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-width: 0;
}

.cabinet-body .modules-home-streak-column {
    display: grid;
    grid-template-rows: 34px 28px 22px;
    justify-items: center;
    align-items: start;
    gap: 4px;
    box-sizing: border-box;
    min-width: 0;
    min-height: 96px;
    margin: 0;
    padding: 4px 2px 6px;
    border: 0;
    border-radius: var(--app-radius-control);
    appearance: none;
    background: transparent;
    color: #000;
    cursor: pointer;
    text-align: center;
    text-transform: none;
    touch-action: manipulation;
}

.cabinet-body .modules-home-streak-icon {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cabinet-body .modules-home-streak-caption {
    display: grid;
    min-width: 0;
    min-height: 28px;
}

.cabinet-body .modules-home-streak-value {
    display: block;
    min-width: 0;
    margin: 0;
}

.cabinet-body :where(.modules-hub-card-description, .modules-home-card p) {
    color: #333;
}

.cabinet-body .modules-hub-card-progress-warmup {
    color: #555;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.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: minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    padding-top: 12px;
}

.cabinet-body .modules-hub-checkins-toolbar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
}

.cabinet-body .modules-hub-checkins-instructions {
    margin: 0;
    color: #555;
    white-space: pre-line;
}

.cabinet-body .modules-hub-checkins-nav-button {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid #c9c9c9;
    padding: 0;
    background: #fff;
    color: #000;
    touch-action: manipulation;
}

.cabinet-body .modules-hub-checkins-month {
    min-width: 0;
    margin: 0;
    text-align: center;
}

.cabinet-body .modules-hub-checkins-weekdays,
.cabinet-body .modules-hub-checkins .habit-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: clamp(2px, 1cqi, 4px);
    min-width: 0;
}

.cabinet-body .modules-hub-checkins-weekdays span {
    min-width: 0;
    color: #555;
    text-align: center;
    text-transform: lowercase;
}

.cabinet-body .modules-hub-checkins .habit-day-cell {
    display: grid;
    min-width: 0;
    aspect-ratio: 1;
}

.cabinet-body .modules-hub-checkins .habit-days[data-leading-days="1"] .habit-day-cell:first-child {
    grid-column-start: 2;
}

.cabinet-body .modules-hub-checkins .habit-days[data-leading-days="2"] .habit-day-cell:first-child {
    grid-column-start: 3;
}

.cabinet-body .modules-hub-checkins .habit-days[data-leading-days="3"] .habit-day-cell:first-child {
    grid-column-start: 4;
}

.cabinet-body .modules-hub-checkins .habit-days[data-leading-days="4"] .habit-day-cell:first-child {
    grid-column-start: 5;
}

.cabinet-body .modules-hub-checkins .habit-days[data-leading-days="5"] .habit-day-cell:first-child {
    grid-column-start: 6;
}

.cabinet-body .modules-hub-checkins .habit-days[data-leading-days="6"] .habit-day-cell:first-child {
    grid-column-start: 7;
}

.cabinet-body .modules-hub-checkins .habit-day-today,
.cabinet-body .modules-hub-checkins .habit-day-weekday,
.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: 42px;
    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;
    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-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-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-hub-list-item > .is-module-summary { min-height: 38px; align-content: center; }
.cabinet-body .modules-hub-list-item > .is-module-summary .assessment-module-card__heading { padding-inline-end: 26px; }
.cabinet-body .modules-hub-card .modules-hub-module-open {
    position: absolute; z-index: 1; inset: -1px;
    display: inline-grid; width: auto; min-width: 0; height: auto; min-height: 0;
    place-items: center end; padding: 0 11px; border: 0;
    border-radius: var(--app-radius-surface); background: transparent; color: #000;
    cursor: pointer; text-transform: none; touch-action: manipulation;
}
.cabinet-body [data-modules-hub][data-module-display-mode="compact"]
    .is-module-summary .modules-hub-steps-impact {
    display: none;
}

.cabinet-body [data-modules-hub][data-module-display-mode="compact"]
    .is-module-summary .assessment-module-card__content {
    gap: 0;
}

.cabinet-body [data-modules-hub][data-module-display-mode="compact"]
    .is-module-summary {
    box-sizing: border-box;
    height: 38px;
    overflow: hidden;
}

.cabinet-body [data-modules-hub][data-module-display-mode="compact"]
    .is-module-summary .assessment-module-card__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cabinet-body [data-modules-hub][data-module-display-mode]
    .modules-hub-card .modules-hub-module-open {
    inset: -1px -1px auto;
    box-sizing: border-box;
    height: 38px;
    min-height: 38px;
}

.cabinet-body .module-hub-display-dialog .dialog-form {
    display: grid;
    gap: 16px;
}

.cabinet-body .module-hub-display-options {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.cabinet-body .module-hub-display-option {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 4px 10px;
    min-height: 56px;
    border: 1px solid var(--app-line-subtle);
    border-radius: var(--app-radius-control);
    padding: 8px 10px;
    background: #fff;
    cursor: pointer;
}

.cabinet-body .module-hub-display-option input[type="radio"] {
    grid-row: 1 / span 2;
    width: 22px;
    height: 22px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    accent-color: #000;
    appearance: auto;
    -webkit-appearance: radio;
}

.cabinet-body .module-hub-display-option-copy {
    min-width: 0;
    color: var(--app-color-text-muted);
}

.cabinet-body .module-hub-display-preview {
    grid-column: 1 / -1;
    justify-self: start;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
    overflow: hidden;
    pointer-events: none;
}

.cabinet-body .module-hub-display-preview:empty {
    display: none;
}

.cabinet-body .module-hub-display-preview-card {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    background: var(--app-color-card);
    box-shadow: none;
}

.cabinet-body [data-module-hub-display-preview="compact"]
    .modules-hub-steps-impact {
    display: none;
}

.cabinet-body [data-module-hub-display-preview="compact"]
    .assessment-module-card__content {
    gap: 0;
}

.cabinet-body [data-module-hub-display-preview="compact"]
    .module-hub-display-preview-card {
    height: 38px;
    overflow: hidden;
}

.cabinet-body [data-module-hub-display-preview="compact"]
    .assessment-module-card__title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cabinet-body .module-hub-display-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cabinet-body .module-hub-display-actions [data-module-hub-display-retry] {
    grid-column: 1 / -1;
}

.cabinet-body .module-hub-display-dialog [data-type="error"] {
    color: var(--app-line-danger);
}
.assessment-review-question { min-width: 0; margin: 8px 0; overflow-wrap: anywhere; }
.assessment-review-question p { margin: 8px 0; }
.assessment-review-badge { display: inline-block; padding: 4px 10px; border-radius: var(--app-radius-pill); background: #f4b400; color: #332600; }
.assessment-review-question button, .assessment-review-status button { min-height: 44px; white-space: normal; text-align: left; }
.assessment-review-question fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.assessment-review-question .interactive-input-row { max-width: 100%; }
.assessment-review-question .interactive-input { min-width: 0; width: 100%; }
.assessment-review-question .interactive-option { min-height: 44px; }
.assessment-review-question > span:not(.assessment-review-badge) { display: block; margin: 8px 0 0; }
.assessment-review-question > button, .assessment-review-status > button { text-decoration: underline; }
.modules-hub-answer-editor {
    display: grid;
    gap: 12px;
    min-width: 0;
    margin-top: 8px;
}

.modules-hub-answer-editor.is-inline {
    display: inline;
    margin: 0;
}

.modules-hub-answer-editor fieldset {
    display: grid;
    gap: 10px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.modules-hub-answer-question,
.modules-hub-answer-description,
.modules-hub-answer-status {
    margin: 0;
}

.modules-hub-answer-question {
    padding: 0;
    font-weight: 700;
}

.modules-hub-answer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.modules-hub-answer-action {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    min-width: 0;
    min-height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #000;
    cursor: pointer;
}

.modules-hub-answer-action-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid #000;
    border-radius: var(--app-radius-pill);
    background: #fff;
}

.modules-hub-answer-action:hover .modules-hub-answer-action-label {
    background: #000;
    color: #fff;
}

.modules-hub-answer-action:disabled {
    cursor: default;
    opacity: 0.45;
}

.modules-hub-answer-action:disabled .modules-hub-answer-action-label {
    background: #fff;
    color: #000;
}

.modules-hub-answer-action.is-link {
    display: inline;
    min-height: 0;
    color: inherit;
    vertical-align: baseline;
}

.modules-hub-answer-action.is-link .modules-hub-answer-action-label {
    display: inline;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    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);
    letter-spacing: var(--app-letter-spacing);
    text-decoration: underline;
}

.modules-hub-answer-action.is-link:hover .modules-hub-answer-action-label {
    background: transparent;
    color: inherit;
}

.modules-hub-answer-status[data-type="error"] {
    color: var(--app-color-error, #b42318);
}

@media (max-width: 393px) {
    .modules-hub-answer-editor,
    .modules-hub-answer-editor fieldset,
    .modules-hub-answer-editor .assessment-choice-control {
        max-width: 100%;
    }
}
.cabinet-body .nutrition-progress-card {
    position: relative;
    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: 0;
    min-width: 0;
    padding-inline-end: 78px;
}

.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-add-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
    border-radius: var(--app-radius-circle);
    background: #000;
    corner-shape: round;
}

.cabinet-body .nutrition-progress-add-icon::before,
.cabinet-body .nutrition-progress-add-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border-radius: var(--app-radius-pill);
    background: #fff;
    transform: translate(-50%, -50%);
}

.cabinet-body .nutrition-progress-add-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.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;
    }
}
.interactive-plan-cards {
    display: grid;
    gap: 12px;
    width: 100%;
    max-width: 760px;
    min-width: 0;
}

.interactive-plan-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    border: 1px solid var(--app-line-subtle);
    border-radius: var(--app-radius-surface);
    padding: var(--app-today-card-padding);
    background: #fff;
    color: var(--app-color-text, #000);
    corner-shape: var(--app-corner-shape);
    box-shadow: var(--app-card-shadow);
}

.interactive-plan-card--coaching {
    background: #ebf0f8;
}

.interactive-plan-card__title,
.interactive-plan-card__price {
    margin: 0;
}

.interactive-plan-card__title {
    overflow-wrap: anywhere;
}

.interactive-plan-card__benefits {
    display: grid;
    gap: 6px;
    margin: 0;
    padding-left: 20px;
}

.interactive-plan-card__benefits li {
    padding-left: 2px;
}

.interactive-plan-card__pricing {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.interactive-plan-card__offer {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.interactive-plan-card__price {
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    justify-self: start;
    width: fit-content;
    height: 30px;
    border: 1px solid #000;
    border-radius: var(--app-radius-pill);
    padding: 0 12px;
    background: var(--app-color-background, #fff);
    corner-shape: round;
    white-space: nowrap;
}

.interactive-plan-card__action {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.interactive-registration-submit,
.interactive-registration-secondary {
    display: inline-grid;
    place-items: center;
    width: fit-content;
    min-height: 52px;
    border: 1px solid #000;
    border-radius: var(--app-radius-control);
    padding: 14px 22px;
    font: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.interactive-registration-submit {
    background: #000;
    color: #fff;
}

.interactive-plan-card .interactive-registration-submit,
.interactive-plan-card .interactive-registration-secondary {
    width: 100%;
    min-height: 52px;
    font-size: var(--app-type-caption-size);
    line-height: var(--app-type-caption-line);
    text-transform: uppercase;
    overflow-wrap: normal;
    touch-action: manipulation;
}

.interactive-registration-secondary {
    background: transparent;
    color: #000;
}

.interactive-registration-submit:disabled,
.interactive-registration-secondary:disabled {
    cursor: wait;
    opacity: 0.65;
}

@media (max-width: 393px) {
    .interactive-registration-submit,
    .interactive-registration-secondary {
        width: 100%;
    }
}


.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-h1-size: 32px;
    --app-type-landing-h1-line: 32px;
    --app-type-landing-h2-size: 22px;
    --app-type-landing-h2-line: 24px;
    --app-type-metric-size: 18px;
    --app-type-metric-line: 22px;
    --app-type-page-size: 18px;
    --app-type-page-line: 22px;
    --app-type-card-size: 15px;
    --app-type-card-line: 15px;
    --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-home-card-row-gap: 16px;
    --app-home-card-column-gap: 12px;
    --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-h1 {
    font-family: var(--app-font-family);
    font-size: var(--app-type-landing-h1-size);
    font-weight: var(--app-font-weight-extra-bold);
    line-height: var(--app-type-landing-h1-line);
    text-transform: uppercase;
}

body.cabinet-body .app-type-landing-h2 {
    font-family: var(--app-font-family);
    font-size: var(--app-type-landing-h2-size);
    font-weight: var(--app-font-weight-extra-bold);
    line-height: var(--app-type-landing-h2-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);
    letter-spacing: var(--app-letter-spacing);
}

.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 .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-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 .account-settings.account-detail-card {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}


.cabinet-body :is(.home-area--tasks, .home-setup-actions, .modules-hub-list, .settings-quick-actions) {
    row-gap: 12px;
}


.cabinet-body .home-area--tasks > .app-type-page-title {
    margin-block-end: 4px;
}

.cabinet-body .home-setup-actions { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.cabinet-body .home-setup-action {
    --app-navigation-border-width: 1px;
    position: relative;
    display: grid; grid-template-columns: 22px minmax(0, 1fr) 8px; align-content: center; align-items: center; column-gap: 10px;
    min-width: 0; height: 38px; min-height: 38px; border: 1px solid var(--app-line-card); border-radius: var(--app-radius-surface); padding: 4px 8px;
    background: var(--app-color-card); color: #000; text-align: left; cursor: pointer; touch-action: manipulation;
}
.cabinet-body .home-setup-action-copy { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cabinet-body .home-setup-action-copy > .app-action-copy { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cabinet-body [data-completed="true"] .app-action-copy { text-decoration: line-through; }
.cabinet-body .app-action-complete-mark { color: #000; background: transparent; }
.cabinet-body .home-setup-action::after { content: ""; position: absolute; inset: -3px 0; }
.cabinet-body .home-setup-action[hidden] { display: none; }
.cabinet-body .upgrade-status { margin: 0; }
.cabinet-body .upgrade-status:empty { display: none; }
.cabinet-body .upgrade-status[data-tone="error"] { color: #e13333; }
.cabinet-body .home-setup-action:disabled { cursor: wait; opacity: 0.55; }
.cabinet-body .home-setup-action-icon { display: block; width: 22px; height: 22px; color: #707070; }
.cabinet-body .home-setup-action-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.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 {
    --app-today-card-gap: var(--app-home-card-row-gap);
    gap: 32px var(--app-home-card-column-gap);
}

.cabinet-body #cabinet-section-home :is(
    .sleep-observation-home,
    .wellbeing-home-checkin
) {
    margin: 0;
}

.cabinet-body #cabinet-section-home :is(.today-list, .modules-home-list) {
    gap: var(--app-home-card-row-gap) var(--app-home-card-column-gap);
}

.cabinet-body #cabinet-section-home > .today-list:not(:has(> :not([hidden]))) {
    display: none;
}

.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);
}

.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 .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 {
    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 .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);
}

@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);
    }
}

.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-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-module-content > .nutrition-panel,
.cabinet-body #cabinet-section-nutrition > .nutrition-module-content > .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,
    .sleep-reminder-option,
    .wellness-average-toggle,
    .modules-hub-settings-toggle,
    .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(
    .auth-tab.is-active,
    .manual-activity-type-options input:checked + span,
    .manual-activity-intensity-options input:checked + span
) {
    border-color: var(--app-line-active);
}


.cabinet-body :is(
    .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,
    .cabinet-back-button,
    .manual-activity-entry-toggle,
    .weight-legend i,
    input[type="radio"]
) {
    border-radius: var(--app-radius-circle);
    corner-shape: round;
}


.cabinet-body :is(
    .app-card-disclosure-companion,
    .app-card-disclosure-toggle
) {
    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 .app-card-disclosure-companion {
    position: absolute;
    z-index: 1;
    top: 3px;
    right: 34px;
    margin: 0;
    border: 0;
    appearance: none;
    background: transparent;
    color: #000;
    cursor: pointer;
    touch-action: manipulation;
}

.cabinet-body .app-card-disclosure-toggle {
    position: absolute;
    z-index: 1;
    top: 5px;
    right: 0;
    margin: 0;
    border: 0;
    appearance: none;
    background: transparent;
    color: #000;
    cursor: pointer;
    touch-action: manipulation;
}

.cabinet-body .app-card-disclosure-chevron {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-4px) rotate(45deg);
    transition: transform 160ms ease;
}


.cabinet-body :is(.home-setup-action-chevron, .modules-hub-module-open-icon) {
    position: absolute;
    top: calc(19px - 4px - var(--app-navigation-border-width, 0px));
    right: calc(15px - 4px - var(--app-navigation-border-width, 0px));
    color: #000;
    opacity: 1;
    transform: rotate(-45deg);
    transition: none;
}

.cabinet-body :is(
    .app-card-disclosure-toggle[aria-expanded="true"],
    details[open] > .app-card-disclosure-toggle
) > .app-card-disclosure-chevron {
    transform: translateY(2px) rotate(225deg);
}

.cabinet-body :is(
    .recovery-readiness-details,
    .nutrition-progress-details,
    .modules-hub-recommendation-why-body
) :is(h3, h4) {
    text-transform: none;
}


.cabinet-body :is(
    .recovery-readiness-segment,
    .wellness-chart-tooltip,
    .steps-chart-legend,
    .weight-legend
) {
    border-radius: var(--app-radius-data);
    corner-shape: round;
}


.cabinet-body .account-detail-card .account-delete-open,
.cabinet-body .account-delete-submit {
    border-color: var(--app-line-danger);
    border-radius: var(--app-radius-control);
    corner-shape: var(--app-corner-shape);
}

.cabinet-body .account-detail-card .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 .account-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,
    .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;
}
