:root {
    --nx-bg: #f4f3eb;
    --nx-surface: rgba(255, 255, 251, .9);
    --nx-surface-solid: #fffefa;
    --nx-container: #e8ece5;
    --nx-text: #173532;
    --nx-muted: #52615d;
    --nx-outline: #d6ddd5;
    --nx-control-outline: #7c9086;
    --nx-primary: #0c7169;
    --nx-primary-strong: #074d48;
    --nx-primary-soft: #dceee9;
    --nx-health: #397b68;
    --nx-finance: #26674d;
    --nx-wardrobe: #a95e4e;
    --nx-coral: #e68159;
    --nx-gold: #d5a447;
    --nx-shadow: 0 18px 55px rgba(26, 55, 50, .09);
    --nx-shadow-small: 0 8px 24px rgba(26, 55, 50, .075);
    --nx-radius-large: 28px;
    --nx-radius: 21px;
    --nx-radius-small: 14px;
    --nx-font-sans: "Manrope", "Avenir Next", "Century Gothic", sans-serif;
    --nx-font-display: "Fraunces", Georgia, serif;
    --nx-space-1: 4px;
    --nx-space-2: 8px;
    --nx-space-3: 12px;
    --nx-space-4: 16px;
    --nx-space-5: 24px;
    --nx-space-6: 32px;
    --danger: #b5443b;
    --text-main: var(--nx-text);
    --text-muted: var(--nx-muted);
}

* {
    box-sizing: border-box;
}

html,
body {
    color: var(--nx-text);
    font-family: var(--nx-font-sans);
    margin: 0;
    min-height: 100%;
}

body {
    line-height: 1.36;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.08;
}

h2 {
    font-size: 1.04rem;
    font-weight: 760;
}

h3 {
    font-size: .96rem;
    font-weight: 740;
}

button,
input,
textarea {
    font: inherit;
}

.nexo-page {
    min-height: 100dvh;
}

.nexo-topbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    left: 50%;
    max-width: 880px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px;
    position: fixed;
    top: 0;
    transform: translateX(-50%);
    width: calc(100% - 16px);
    z-index: 90;
}

.brand {
    align-items: center;
    display: inline-flex;
    font-size: 1.02rem;
    font-weight: 800;
    gap: 8px;
}

.brand-logo {
    border-radius: 10px;
    height: 30px;
    width: 30px;
}

.brand-dot {
    background: linear-gradient(145deg, #0c7169 0%, var(--nx-primary) 100%);
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(12, 113, 105, .35);
    display: inline-block;
    height: 10px;
    width: 10px;
}

.topbar-actions {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.topbar-icon,
.topbar-avatar {
    align-items: center;
    background: var(--nx-surface-solid);
    border: 1px solid var(--nx-outline);
    border-radius: 999px;
    color: var(--nx-muted);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.topbar-avatar {
    background: linear-gradient(145deg, #e3f0eb 0%, #fff 100%);
    color: var(--nx-primary);
}

.content {
    margin: 0 auto;
    max-width: 860px;
    width: 100%;
}

.shell-content {
    padding: calc(88px + env(safe-area-inset-top)) 12px calc(90px + env(safe-area-inset-bottom));
}

.safe-bottom {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.page-header {
    margin-bottom: 14px;
}

.eyebrow {
    color: var(--nx-muted);
    font-size: .74rem;
    font-weight: 760;
    letter-spacing: .06em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.page-subtitle {
    color: var(--nx-muted);
    font-size: .9rem;
    margin-top: 8px;
}

.glass-card {
    backdrop-filter: blur(12px);
    background: var(--nx-surface);
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 18px;
    box-shadow: var(--nx-shadow);
}

.section-card {
    margin-top: 14px;
    padding: 14px;
}

.module-page-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}

.module-page-head h1 {
    font-size: 1.7rem;
    margin: 0;
}

.module-add-button {
    align-items: center;
    background: var(--nx-primary);
    border: 0;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.module-filter-panel,
.module-inline-form,
.module-form-grid {
    display: grid;
    gap: 10px;
}

.module-inline-form {
    grid-template-columns: 1fr;
    margin-bottom: 12px;
}

.module-check-list {
    display: grid;
    gap: 8px;
}

.module-check-list label,
.module-balance-row {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.module-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.bento-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.bento-main {
    padding: 14px;
}

.metric-strip {
    display: grid;
    gap: 8px;
    margin: 12px 0;
}

.metric-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
    margin-top: 12px;
}

.metric-card {
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 11px;
}

.metric-card span {
    color: var(--nx-muted);
    display: block;
    font-size: .74rem;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    font-size: 1rem;
    margin-top: 4px;
}

.metric-card small {
    color: var(--nx-muted);
    display: block;
    font-size: .75rem;
    margin-top: 3px;
}

.module-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.dashboard-module-list {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.dashboard-module-card {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.wardrobe-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.wardrobe-card {
    display: grid;
    overflow: hidden;
}

.wardrobe-photo {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, .6);
    object-fit: cover;
    width: 100%;
}

.wardrobe-photo-empty {
    align-items: center;
    color: var(--nx-muted);
    display: flex;
    justify-content: center;
}

.wardrobe-card-body {
    display: grid;
    gap: 7px;
    padding: 10px;
}

.wardrobe-card-body span {
    color: var(--nx-muted);
    font-size: .8rem;
    min-height: 1rem;
}

.finance-summary-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
}

.finance-tabs {
    display: flex;
    gap: 8px;
    margin: 12px 0;
    overflow-x: auto;
    padding-bottom: 3px;
}

.finance-tab {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(23, 53, 50, .22);
    border-radius: 999px;
    color: var(--nx-muted);
    flex: 0 0 auto;
    font-size: .82rem;
    font-weight: 800;
    min-height: 38px;
    padding: 0 14px;
}

.finance-tab.active {
    background: var(--nx-text);
    color: #fff;
}

.finance-table-card {
    padding: 12px;
}

.finance-table-scroll {
    overflow-x: auto;
    width: 100%;
}

.finance-table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: .78rem;
    min-width: 920px;
    width: 100%;
}

.finance-table th,
.finance-table td {
    border-bottom: 1px solid rgba(23, 53, 50, .16);
    padding: 9px 8px;
    text-align: right;
    white-space: nowrap;
}

.finance-table th:first-child,
.finance-table td:first-child {
    text-align: left;
}

.finance-table th {
    color: var(--nx-muted);
    font-size: .72rem;
    text-transform: uppercase;
}

.finance-row-button {
    background: transparent;
    border: 1px solid rgba(23, 53, 50, .18);
    text-align: left;
    width: 100%;
}

.finance-chart {
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.finance-chart-legend {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finance-chart-legend span {
    align-items: center;
    color: var(--nx-muted);
    display: flex;
    font-size: .78rem;
    gap: 7px;
}

.finance-chart-legend i {
    border-radius: 999px;
    display: inline-block;
    height: 9px;
    width: 9px;
}

.finance-subform {
    border-top: 1px solid rgba(23, 53, 50, .16);
    margin-top: 12px;
    padding-top: 12px;
}

.dashboard-simple-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-simple-card {
    align-items: center;
    border: 1px solid transparent;
    color: var(--nx-text);
    display: grid;
    gap: 10px;
    justify-items: center;
    min-height: 118px;
    padding: 16px 10px;
    text-align: center;
}

.dashboard-simple-card span {
    font-size: .95rem;
    font-weight: 800;
}

.module-card {
    border: 1px solid transparent;
    display: grid;
    gap: 8px;
    padding: 14px;
}

.module-card-head,
.section-header,
.card-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.module-card p,
.empty,
.notice,
.history-row span,
.history-row small {
    color: var(--nx-muted);
}

.module-icon-wrap {
    align-items: center;
    background: rgba(255, 255, 255, .72);
    border-radius: 999px;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.module-toggle {
    background: var(--nx-surface-solid);
    border: 1px solid var(--nx-outline);
    border-radius: 12px;
    color: var(--nx-text);
    font-size: .88rem;
    font-weight: 700;
    min-height: 42px;
    padding: 10px 12px;
}

.nav-toggle.on {
    background: rgba(12, 113, 105, .1);
    border-color: rgba(12, 113, 105, .22);
    color: var(--nx-primary);
}

.pill {
    background: rgba(12, 113, 105, .10);
    border: 1px solid rgba(12, 113, 105, .18);
    border-radius: 999px;
    color: var(--nx-primary);
    display: inline-flex;
    font-size: .72rem;
    font-weight: 760;
    padding: 4px 10px;
}

.pill-on {
    background: rgba(16, 185, 129, .11);
    border-color: rgba(16, 185, 129, .26);
    color: #047857;
}

.pill-off {
    background: rgba(113, 113, 122, .11);
    border-color: rgba(113, 113, 122, .26);
    color: #52525b;
}

.primary-action {
    align-items: center;
    background: linear-gradient(145deg, #0f7c72 0%, var(--nx-primary) 100%);
    border: 0;
    border-radius: 14px;
    color: #fff;
    display: inline-flex;
    font-size: .9rem;
    font-weight: 760;
    gap: 7px;
    justify-content: center;
    min-height: 46px;
    padding: 10px 14px;
    text-decoration: none;
}

.settings-action,
.secondary-action {
    align-items: center;
    background: var(--nx-surface-solid);
    border: 1px solid var(--nx-outline);
    border-radius: 14px;
    color: var(--nx-primary);
    display: inline-flex;
    font-size: .9rem;
    font-weight: 760;
    gap: 7px;
    justify-content: center;
    min-height: 46px;
    padding: 10px 14px;
}

.settings-action {
    margin-bottom: 12px;
}

.text-link {
    color: var(--nx-primary);
    font-size: .88rem;
    font-weight: 760;
}

.module-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.module-chip {
    background: #fff;
    border: 1px solid var(--nx-outline);
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    padding: 6px 10px;
}

.module-page-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-top: 2px;
}

.module-add-button {
    align-items: center;
    background: linear-gradient(145deg, #0f7c72 0%, var(--nx-primary) 100%);
    border: 0;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.form-card {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
}

.form-card label {
    color: var(--nx-muted);
    display: grid;
    font-size: .84rem;
    font-weight: 700;
    gap: 6px;
}

.form-card input,
.form-card textarea {
    background: #fff;
    border: 1px solid var(--nx-outline);
    border-radius: 11px;
    color: var(--nx-text);
    min-height: 44px;
    padding: 10px 12px;
}

.form-card textarea {
    min-height: 86px;
}

.weight-summary-card {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding: 14px;
}

.weight-current-card {
    background: linear-gradient(160deg, rgba(12, 113, 105, .1), rgba(12, 113, 105, .03));
    border: 1px solid rgba(12, 113, 105, .18);
    border-radius: 14px;
    display: grid;
    gap: 8px;
    padding: 12px;
}

.weight-current-header {
    align-items: baseline;
    display: grid;
    gap: 4px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.weight-current-header span {
    color: var(--nx-muted);
    font-size: .8rem;
    font-weight: 780;
}

.weight-current-header small {
    color: var(--nx-muted);
    font-size: .72rem;
    font-weight: 700;
}

.weight-current-card > strong {
    color: var(--nx-text);
    font-size: 1.62rem;
    line-height: 1.05;
}

.weight-goal-card {
    background: linear-gradient(145deg, rgba(4, 120, 87, .12), rgba(255, 255, 255, .62));
    border: 1px solid rgba(4, 120, 87, .18);
    border-radius: 14px;
    display: grid;
    gap: 10px;
    padding: 12px;
}

.weight-goal-card > strong {
    color: var(--nx-text);
    font-size: 1.35rem;
}

.weight-link-button {
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(4, 120, 87, .22);
    border-radius: 999px;
    color: #047857;
    font-size: .74rem;
    font-weight: 820;
    padding: 5px 9px;
}

.weight-goal-progress {
    background: rgba(4, 120, 87, .12);
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
}

.weight-goal-progress span {
    background: linear-gradient(90deg, #047857, #34d399);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.weight-goal-grid {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weight-goal-grid span,
.weight-goal-card small,
.weight-average-card small {
    color: var(--nx-muted);
    font-size: .74rem;
    font-weight: 720;
}

.weight-goal-grid strong {
    color: var(--nx-text);
}

.weight-goal-form {
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--nx-outline);
    border-radius: 14px;
    display: grid;
    gap: 10px;
    padding: 12px;
}

.weight-goal-form label {
    color: var(--nx-muted);
    display: grid;
    font-size: .78rem;
    font-weight: 760;
    gap: 6px;
}

.weight-goal-form input {
    background: #fff;
    border: 1px solid var(--nx-outline);
    border-radius: 11px;
    color: var(--nx-text);
    min-height: 42px;
    padding: 9px 11px;
}

.weight-goal-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.weight-goal-actions button {
    background: var(--nx-health);
    border: 0;
    border-radius: 12px;
    color: #083344;
    font-weight: 780;
    min-height: 42px;
    padding: 0 12px;
}

.weight-goal-actions button.ghost {
    background: rgba(180, 35, 24, .1);
    color: #b42318;
}

.weight-averages-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weight-average-card {
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--nx-outline);
    border-radius: 12px;
    display: grid;
    gap: 6px;
    padding: 10px;
}

.weight-average-card span {
    color: var(--nx-muted);
    display: block;
    font-size: .76rem;
    font-weight: 740;
}

.weight-average-card strong {
    display: block;
    font-size: 1rem;
}

.weight-trend-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: .74rem;
    font-weight: 820;
    justify-self: start;
    line-height: 1.2;
    padding: 4px 8px;
}

.weight-trend-hint {
    color: var(--nx-muted);
    font-size: .76rem;
    margin: 0;
}

.weight-trend-badge.trend-up {
    background: rgba(180, 35, 24, .12);
    color: #b42318;
}

.weight-trend-badge.trend-down {
    background: rgba(4, 120, 87, .12);
    color: #047857;
}

.weight-trend-badge.trend-same,
.weight-trend-badge.trend-none {
    background: rgba(70, 69, 85, .1);
    color: var(--nx-muted);
}

.weight-insights {
    margin-top: 10px;
}

.weight-insights h2 {
    font-size: .92rem;
    margin: 0 0 8px;
}

.weight-insights-grid {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weight-insight-item {
    background: rgba(255, 255, 255, .58);
    border: 1px solid rgba(196, 187, 238, .68);
    border-radius: 10px;
    padding: 7px 8px;
}

.weight-insight-item span {
    color: var(--nx-muted);
    display: block;
    font-size: .68rem;
    font-weight: 760;
}

.weight-insight-item strong {
    color: var(--nx-text);
    display: block;
    font-size: .86rem;
    margin-top: 2px;
}

.weight-insight-item.insight-good strong {
    color: #047857;
}

.weight-insight-item.insight-bad strong {
    color: #b42318;
}

.weight-insight-item.insight-empty strong,
.weight-insight-item.insight-neutral strong {
    color: var(--nx-muted);
}

.weight-filter {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: flex-end;
}

.weight-filter .form-select {
    background: #fff;
    border: 1px solid var(--nx-outline);
    border-radius: 999px;
    color: var(--nx-text);
    font-size: .78rem;
    font-weight: 760;
    min-height: 34px;
    padding: 5px 28px 5px 10px;
}

.weight-wheel {
    background: rgba(255, 255, 255, .62);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 16px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 190px;
    padding: 10px;
    position: relative;
}

.weight-wheel-column {
    display: grid;
    gap: 6px;
    max-height: 170px;
    overflow-y: auto;
    padding: 56px 2px;
    scroll-snap-type: y mandatory;
}

.weight-wheel-column::-webkit-scrollbar {
    display: none;
}

.weight-wheel-item {
    background: transparent;
    border: 0;
    color: var(--nx-muted);
    display: block;
    font-size: 1rem;
    font-weight: 740;
    min-height: 40px;
    scroll-snap-align: center;
    text-align: center;
}

.weight-wheel-item.is-selected {
    color: var(--nx-text);
    font-size: 1.15rem;
    font-weight: 820;
}

.weight-wheel-selection {
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--nx-outline);
    border-radius: 12px;
    height: 42px;
    left: 10px;
    pointer-events: none;
    position: absolute;
    right: 10px;
    top: calc(50% - 21px);
}

.weight-wheel-readout {
    color: var(--nx-muted);
    font-size: .9rem;
    font-weight: 760;
    text-align: center;
}

.form-card > button {
    background: var(--nx-health);
    border: 0;
    border-radius: 12px;
    color: #083344;
    font-weight: 760;
    min-height: 44px;
}

.chart-wrap {
    margin-top: 10px;
    width: 100%;
}

.weight-chart {
    background: linear-gradient(180deg, rgba(12, 113, 105, .07) 0%, rgba(12, 113, 105, 0) 100%);
    border: 1px solid rgba(12, 113, 105, .1);
    border-radius: 12px;
    display: block;
    height: 196px;
    width: 100%;
}

.weight-line-current {
    stroke: var(--nx-primary);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 3;
}

.weight-line-average-7 {
    stroke: #047857;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.weight-line-average-30 {
    stroke: #0f766e;
    stroke-dasharray: 5 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.weight-line-goal {
    stroke: #b45309;
    stroke-dasharray: 6 4;
    stroke-linecap: round;
    stroke-width: 2;
}

.weight-chart-marker {
    stroke: #fff;
    stroke-width: 2;
}

.weight-chart-marker.min {
    fill: #047857;
}

.weight-chart-marker.max {
    fill: #b42318;
}

.weight-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.weight-chart-legend span {
    align-items: center;
    color: var(--nx-muted);
    display: inline-flex;
    font-size: .72rem;
    font-weight: 760;
    gap: 5px;
}

.weight-chart-legend i {
    border-radius: 999px;
    display: inline-block;
    height: 3px;
    width: 18px;
}

.weight-chart-legend .current {
    background: var(--nx-primary);
}

.weight-chart-legend .avg7 {
    background: #047857;
}

.weight-chart-legend .avg30 {
    background: #0f766e;
}

.weight-chart-legend .goal {
    background: #b45309;
}

.weight-axis {
    stroke: rgba(70, 69, 85, .55);
    stroke-width: 1;
}

.weight-grid-line {
    stroke: rgba(70, 69, 85, .14);
    stroke-width: 1;
}

.weight-grid-line-x {
    stroke: rgba(70, 69, 85, .08);
}

.weight-axis-label {
    fill: var(--nx-muted);
    font-size: 10px;
    font-weight: 760;
}

.history-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.history-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--nx-text);
    display: flex;
    font-size: 1.04rem;
    font-weight: 760;
    justify-content: space-between;
    padding: 0;
    text-align: left;
    width: 100%;
}

.history-row {
    align-items: center;
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--nx-outline);
    border-radius: 12px;
    display: grid;
    gap: 6px;
    grid-template-columns: 1fr auto;
    padding: 11px;
}

.history-row strong {
    font-size: .9rem;
}

.shopping-tabs {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.shopping-list-board {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

.shopping-list-card {
    border: 1px solid var(--nx-outline);
    color: var(--nx-text);
    display: grid;
    gap: 6px;
    min-height: 112px;
    padding: 16px;
    position: relative;
    text-align: left;
    width: 100%;
}

.shopping-list-card-main {
    background: transparent;
    border: 0;
    color: inherit;
    display: grid;
    gap: 6px;
    padding: 0;
    text-align: left;
    width: 100%;
}

.shopping-list-card-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.shopping-list-card strong {
    font-size: 1.02rem;
}

.shopping-list-card span,
.shopping-list-card small {
    color: var(--nx-muted);
    font-weight: 700;
}

.shopping-list-card em {
    background: rgba(12, 113, 105, .1);
    border-radius: 999px;
    color: var(--nx-primary);
    font-size: .72rem;
    font-style: normal;
    font-weight: 800;
    padding: 4px 8px;
    position: absolute;
    right: 12px;
    top: 12px;
}

.shopping-back {
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--nx-outline);
    border-radius: 999px;
    color: var(--nx-text);
    font-size: .82rem;
    font-weight: 800;
    min-height: 34px;
    padding: 6px 12px;
}

.shopping-tab {
    background: rgba(255, 255, 255, .65);
    border: 1px solid var(--nx-outline);
    border-radius: 11px;
    color: var(--nx-muted);
    font-size: .82rem;
    font-weight: 760;
    min-height: 40px;
    padding: 8px 10px;
}

.shopping-tab.active {
    background: rgba(12, 113, 105, .12);
    border-color: rgba(12, 113, 105, .26);
    color: var(--nx-primary);
}

.shopping-inline-form {
    display: grid;
    gap: 8px;
}

.shopping-create-grid {
    display: grid;
    gap: 14px;
}

.shopping-create-block {
    display: grid;
    gap: 10px;
}

.shopping-create-block fieldset {
    border: 0;
    display: grid;
    gap: 8px;
    margin: 0;
    min-inline-size: 0;
    padding: 0;
}

.shopping-create-block fieldset:disabled {
    opacity: .72;
}

.shopping-search-wrap {
    margin-top: 10px;
}

.shopping-quick-add {
    margin-top: 10px;
}

.shopping-quick-add .nexo-input {
    min-height: 46px;
}

.shopping-quick-options {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.shopping-category-trigger {
    background: rgba(255, 255, 255, .76);
    border: 1px solid var(--nx-outline);
    border-radius: 999px;
    color: var(--nx-text);
    font-size: .75rem;
    font-weight: 760;
    min-height: 34px;
    padding: 6px 12px;
}

.shopping-category-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.shopping-chip {
    background: rgba(255, 255, 255, .74);
    border: 1px solid var(--nx-outline);
    border-radius: 999px;
    color: var(--nx-muted);
    font-size: .72rem;
    font-weight: 780;
    min-height: 32px;
    padding: 5px 10px;
}

.shopping-chip.active {
    background: rgba(12, 113, 105, .12);
    border-color: rgba(12, 113, 105, .3);
    color: var(--nx-primary);
}

.shopping-suggestion-list {
    display: grid;
    gap: 6px;
}

.shopping-suggestion-item {
    background: rgba(255, 255, 255, .76);
    border: 1px solid var(--nx-outline);
    border-radius: 11px;
    color: var(--nx-text);
    display: grid;
    gap: 2px;
    padding: 9px 10px;
    text-align: left;
    width: 100%;
}

.shopping-suggestion-item strong {
    font-size: .88rem;
}

.shopping-suggestion-item small {
    color: var(--nx-muted);
    font-size: .72rem;
}

.shopping-category-form {
    margin-top: 12px;
}

.shopping-item-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.shopping-group-list {
    display: grid;
    gap: 12px;
    margin-top: 10px;
}

.shopping-group-list h3 {
    color: var(--nx-muted);
    font-size: .78rem;
    font-weight: 820;
    margin: 0;
}

.shopping-item-row {
    align-items: center;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--nx-outline);
    border-radius: 13px;
    display: grid;
    gap: 8px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px;
}

.shopping-item-row.purchased {
    opacity: .8;
}

.category-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.shopping-check {
    align-items: center;
    background: #fff;
    border: 2px solid var(--nx-outline);
    border-radius: 11px;
    color: var(--nx-primary);
    display: inline-flex;
    font-weight: 900;
    height: 32px;
    justify-content: center;
    padding: 0;
    width: 32px;
}

.shopping-check.checked {
    background: rgba(12, 113, 105, .12);
    border-color: rgba(12, 113, 105, .28);
}

.shopping-item-content {
    min-width: 0;
}

.shopping-item-content strong {
    display: block;
    font-size: .92rem;
}

.shopping-item-content small {
    color: var(--nx-muted);
    display: block;
    font-size: .75rem;
    margin-top: 3px;
}

.shopping-recipe-tag {
    align-self: start;
    background: rgba(12, 113, 105, .1);
    border-radius: 999px;
    color: var(--nx-primary);
    display: inline-flex;
    font-size: .7rem;
    font-weight: 800;
    margin-top: 6px;
    max-width: 100%;
    overflow: hidden;
    padding: 3px 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shopping-item-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.shopping-mini {
    background: var(--nx-surface-solid);
    border: 1px solid var(--nx-outline);
    border-radius: 10px;
    color: var(--nx-muted);
    font-size: .75rem;
    font-weight: 760;
    min-height: 32px;
    min-width: 32px;
    padding: 0 8px;
}

.shopping-mini:disabled {
    opacity: .5;
}

.nexo-empty-state {
    background: rgba(255, 255, 255, .7);
    border: 1px dashed rgba(12, 113, 105, .22);
    border-radius: 16px;
    display: grid;
    gap: 6px;
    padding: 14px;
}

.nexo-empty-state span {
    color: var(--nx-primary);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.nexo-empty-state strong {
    color: var(--nx-text);
    font-size: 1rem;
}

.nexo-empty-state p {
    color: var(--nx-muted);
    font-size: .84rem;
    font-weight: 700;
    margin: 0;
}

.nexo-empty-state-actions {
    margin-top: 4px;
}

.shopping-mini.danger {
    color: var(--danger);
}

.shopping-recurring-list {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.shopping-recurring-card {
    background: rgba(255, 255, 255, .74);
    border: 1px solid var(--nx-outline);
    border-radius: 13px;
    display: grid;
    gap: 8px;
    padding: 11px;
}

.shopping-recurring-top {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.shopping-recurring-top strong {
    font-size: .92rem;
}

.shopping-recurring-meta {
    color: var(--nx-muted);
    font-size: .74rem;
}

.shopping-recurring-actions {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.shopping-recurring-primary {
    min-height: 36px;
    padding: 0 12px;
}

.shopping-recurring-menu summary {
    background: var(--nx-surface-solid);
    border: 1px solid var(--nx-outline);
    border-radius: 10px;
    color: var(--nx-muted);
    cursor: pointer;
    font-size: .75rem;
    font-weight: 760;
    list-style: none;
    min-height: 32px;
    padding: 6px 10px;
}

.shopping-recurring-menu summary::-webkit-details-marker {
    display: none;
}

.shopping-recurring-menu[open] summary {
    border-color: rgba(12, 113, 105, .28);
    color: var(--nx-primary);
}

.shopping-recurring-menu-body {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 8px;
}

.shopping-recipe-ingredient-editor {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr);
}

.shopping-recipe-draft-list,
.shopping-recipe-detail-list {
    display: grid;
    gap: 8px;
}

.nexo-icon {
    height: 18px;
    width: 18px;
}

.tone-health {
    border-color: rgba(77, 182, 172, .35);
}

.tone-finance {
    border-color: rgba(5, 150, 105, .33);
}

.tone-wardrobe {
    border-color: rgba(251, 113, 133, .32);
}

.tone-shopping {
    border-color: rgba(12, 113, 105, .34);
}

.myinvestor-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.myinvestor-row {
    align-items: center;
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--nx-outline);
    border-radius: 13px;
    color: var(--nx-text);
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    padding: 10px;
    text-align: left;
    width: 100%;
}

.myinvestor-row.as-button {
    cursor: pointer;
}

.myinvestor-row strong,
.myinvestor-row span {
    display: block;
    font-size: .9rem;
    font-weight: 820;
}

.myinvestor-row small {
    color: var(--nx-muted);
    display: block;
    font-size: .74rem;
    margin-top: 3px;
}

.myinvestor-bars {
    display: grid;
    gap: 9px;
    margin-top: 10px;
}

.myinvestor-bar-row {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 54px minmax(0, 1fr) auto;
}

.myinvestor-bar-row span,
.myinvestor-bar-row strong {
    font-size: .76rem;
    font-weight: 780;
}

.myinvestor-bar-row div {
    background: rgba(12, 113, 105, .08);
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.myinvestor-bar-row i {
    background: var(--nx-primary);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.myinvestor-bar-row i.negative {
    background: #b42318;
}

.tone-indigo {
    border-color: rgba(12, 113, 105, .22);
}

.bottom-nav {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, .88);
    border-top: 1px solid var(--nx-outline);
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(14, 16, 28, .07);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    left: 0;
    min-height: 70px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 85;
}

.app-loading-indicator {
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(28, 71, 54, .12);
    border-radius: 999px;
    box-shadow: var(--nx-shadow);
    color: var(--nx-text);
    display: flex;
    font-size: .78rem;
    font-weight: 760;
    gap: 8px;
    min-height: 36px;
    padding: 7px 12px 7px 8px;
    pointer-events: none;
    position: fixed;
    right: max(12px, env(safe-area-inset-right));
    top: max(12px, env(safe-area-inset-top));
    z-index: 2000;
}

.app-loading-ring {
    animation: nexo-spin .85s linear infinite;
    border: 2px solid rgba(28, 71, 54, .18);
    border-radius: 999px;
    border-top-color: var(--nx-primary);
    height: 20px;
    width: 20px;
}

@keyframes nexo-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-loading-ring {
        animation: none;
    }
}

.nav-link {
    align-items: center;
    border-radius: 10px;
    color: var(--nx-muted);
    display: grid;
    font-size: .75rem;
    font-weight: 730;
    gap: 4px;
    justify-items: center;
    min-height: 46px;
    padding: 4px;
}

.nav-link.active {
    background: rgba(12, 113, 105, .1);
    color: var(--nx-primary);
}

.notice,
.empty {
    font-size: .9rem;
    padding: 8px 2px;
}

.validation-message,
.validation-summary-errors,
.field-error {
    color: var(--danger);
}

.auth-page,
.account-page {
    display: grid;
    gap: 14px;
}

.auth-shell {
    align-items: center;
    background:
        radial-gradient(circle at 20% 20%, rgba(73, 190, 170, .16), transparent 32%),
        linear-gradient(180deg, #f8faf8 0%, #edf4f1 100%);
    display: grid;
    min-height: 100dvh;
    padding: max(22px, env(safe-area-inset-top)) 16px max(22px, env(safe-area-inset-bottom));
}

.login-clean {
    display: grid;
    justify-items: center;
    margin: 0 auto;
    max-width: 390px;
    width: 100%;
}

.login-brand {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 18px;
    width: 100%;
}

.login-brand img {
    border-radius: 14px;
    height: 44px;
    width: 44px;
}

.login-brand span {
    color: var(--nx-text);
    font-size: 1.2rem;
    font-weight: 800;
}

.login-card {
    display: grid;
    gap: 12px;
    padding: 22px;
    width: 100%;
}

.login-field {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
}

.login-field label {
    color: var(--nx-muted);
    font-size: .82rem;
    font-weight: 700;
}

.login-remember {
    align-items: center;
    color: var(--nx-muted);
    display: flex;
    font-size: .86rem;
    font-weight: 700;
    gap: 10px;
    margin: 2px 0 10px;
}

.login-remember input {
    accent-color: var(--nx-primary);
    height: 18px;
    width: 18px;
}

.login-submit {
    border: 0;
    margin-top: 4px;
    width: 100%;
}

.account-grid {
    display: grid;
    gap: 10px;
}

.account-card {
    background: var(--nx-surface);
    border: 1px solid var(--nx-outline);
    border-radius: 16px;
    padding: 14px;
}

.account-nav .account-nav-list {
    gap: 6px;
}

.account-nav .account-nav-link {
    border: 1px solid var(--nx-outline);
    border-radius: 10px;
    color: var(--nx-text);
    margin: 0;
    padding: 10px 12px;
}

.account-nav .account-nav-link.active {
    background: rgba(12, 113, 105, .12);
    border-color: rgba(12, 113, 105, .22);
    color: var(--nx-primary);
}

.accounts-tabs {
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.accounts-section-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 4px 2px 0;
}

.accounts-section-heading h2 {
    font-size: 1.05rem;
    margin: 0;
}

.accounts-section-heading span {
    color: var(--nx-primary);
    font-size: .78rem;
    font-weight: 800;
}

.accounts-board {
    gap: 10px;
}

.accounts-list-card {
    align-items: center;
    display: grid;
    gap: 10px;
    padding: 12px;
}

.accounts-list-main {
    align-items: center;
    background: transparent;
    border: 0;
    color: inherit;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 0;
    text-align: left;
    width: 100%;
}

.accounts-avatar {
    align-items: center;
    background: linear-gradient(135deg, rgba(12, 113, 105, .18), rgba(73, 190, 170, .16));
    border-radius: 16px;
    color: var(--nx-primary);
    display: inline-grid;
    font-size: .78rem;
    font-weight: 900;
    height: 44px;
    justify-items: center;
    width: 44px;
}

.accounts-list-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.accounts-list-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accounts-list-copy small,
.accounts-list-copy em {
    color: var(--nx-muted);
    font-size: .76rem;
    font-style: normal;
}

.accounts-list-money {
    font-size: .9rem;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.accounts-list-actions {
    display: flex;
    justify-content: flex-end;
}

.accounts-empty {
    display: grid;
    gap: 4px;
}

.accounts-summary-card {
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .7), transparent 34%),
        linear-gradient(135deg, rgba(12, 113, 105, .12), rgba(73, 190, 170, .12));
    border: 1px solid rgba(12, 113, 105, .12);
    border-radius: 22px;
    box-shadow: 0 18px 44px rgba(35, 28, 90, .08);
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    padding: 18px;
}

.accounts-summary-card > span {
    color: var(--nx-muted);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.accounts-summary-card > strong {
    color: var(--nx-text);
    font-size: clamp(1.55rem, 6vw, 2.1rem);
    line-height: 1;
}

.accounts-summary-card > small {
    color: var(--nx-muted);
    font-weight: 700;
}

.accounts-summary-actions {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.accounts-balance-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.accounts-balance-card {
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--nx-outline);
    border-radius: 16px;
    display: grid;
    gap: 4px;
    padding: 12px;
}

.accounts-balance-card span,
.accounts-balance-card small {
    color: var(--nx-muted);
    font-size: .78rem;
    font-weight: 700;
}

.accounts-balance-card strong {
    font-size: 1.1rem;
}

.accounts-debt-list,
.accounts-recurring-list {
    margin-top: 10px;
}

.accounts-debt-row,
.accounts-recurring-row {
    align-items: center;
}

.accounts-share-summary {
    background: rgba(12, 113, 105, .06);
    border: 1px solid rgba(12, 113, 105, .12);
    border-radius: 16px;
    display: grid;
    gap: 6px;
    margin-top: 12px;
    padding: 12px;
}

.accounts-share-summary span {
    color: var(--nx-muted);
    font-size: .82rem;
    font-weight: 800;
}

.accounts-share-summary small {
    color: #2f7d55;
    font-size: .78rem;
    font-weight: 900;
}

.accounts-search {
    margin-bottom: 12px;
    min-height: 44px;
}

.accounts-recurring-form {
    margin: 12px 0;
}

.accounts-form-card .shopping-inline-form,
.accounts-recurring-form,
.accounts-movement-card .shopping-inline-form {
    display: grid;
    gap: 10px;
}

.accounts-form-card .nexo-input,
.accounts-form-card .form-select,
.accounts-recurring-form .nexo-input,
.accounts-recurring-form .form-select,
.accounts-movement-card .nexo-input,
.accounts-movement-card .form-select {
    min-height: 44px;
}

.accounts-form-summary {
    background: rgba(12, 113, 105, .08);
    border: 1px solid rgba(12, 113, 105, .14);
    border-radius: 14px;
    display: grid;
    gap: 3px;
    padding: 10px 12px;
}

.accounts-form-heading {
    display: grid;
    gap: 2px;
    margin: 14px 0 8px;
}

.accounts-form-heading span {
    color: var(--nx-text);
    font-size: .92rem;
    font-weight: 900;
}

.accounts-form-heading small,
.accounts-form-hint,
.validation-message {
    color: var(--nx-muted);
    font-size: .78rem;
    font-weight: 800;
}

.accounts-form-hint,
.validation-message {
    color: #b42318;
}

.accounts-form-summary strong {
    color: var(--nx-text);
    font-size: 1rem;
}

.accounts-form-summary small {
    color: var(--nx-muted);
    font-weight: 700;
}

.money-positive,
.pill-on {
    color: #2f7d55;
}

.money-negative,
.pill-off {
    color: #b42318;
}

.money-neutral {
    color: var(--nx-muted);
}

.calendar-tabs {
    margin: 12px 0;
}

.calendar-shell-header {
    margin-bottom: 8px;
}

.calendar-month-card {
    display: grid;
    gap: 12px;
}

.calendar-toolbar {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.calendar-toolbar > div {
    display: grid;
    gap: 2px;
    text-align: center;
}

.calendar-toolbar span,
.calendar-modal-eyebrow,
.calendar-form-hint {
    color: var(--nx-muted);
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.calendar-toolbar strong {
    color: var(--nx-text);
    font-size: 1.18rem;
    text-transform: capitalize;
}

.calendar-toolbar-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
}

.calendar-weekdays,
.calendar-month-grid {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
    color: var(--nx-muted);
    font-size: .68rem;
    font-weight: 900;
    text-align: center;
}

.calendar-day-cell {
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--nx-outline);
    border-radius: 14px;
    display: grid;
    gap: 4px;
    min-height: 92px;
    padding: 6px;
}

.calendar-day-cell.muted {
    opacity: .48;
}

.calendar-day-cell.today {
    border-color: rgba(12, 113, 105, .38);
    box-shadow: 0 0 0 2px rgba(12, 113, 105, .08);
}

.calendar-day-cell.selected {
    background: rgba(12, 113, 105, .08);
}

.calendar-day-cell.has-events {
    border-color: rgba(73, 190, 170, .3);
}

.calendar-day-button,
.calendar-event-pill,
.calendar-more-pill,
.calendar-agenda-button,
.calendar-event-detail-trigger {
    background: transparent;
    border: 0;
    color: inherit;
    padding: 0;
    text-align: left;
}

.calendar-day-button {
    display: grid;
    gap: 1px;
}

.calendar-day-button span {
    color: var(--nx-text);
    font-size: .86rem;
    font-weight: 900;
}

.calendar-day-button small {
    color: var(--nx-muted);
    font-size: .58rem;
    font-weight: 800;
}

.calendar-day-events {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.calendar-event-pill,
.calendar-more-pill {
    border-radius: 999px;
    font-size: .62rem;
    font-weight: 850;
    line-height: 1.15;
    min-width: 0;
    overflow: hidden;
    padding: 3px 5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event-pill {
    background: rgba(12, 113, 105, .11);
    color: var(--nx-primary);
}

.calendar-event-pill.recurring {
    background: rgba(47, 125, 85, .12);
    color: #2f7d55;
}

.calendar-event-pill.exception {
    border: 1px solid rgba(180, 35, 24, .24);
}

.calendar-more-pill {
    color: var(--nx-muted);
}

.calendar-agenda-button {
    width: 100%;
}

.calendar-recurring-card {
    align-items: center;
}

.calendar-event-detail-trigger {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.calendar-event-detail-trigger small,
.calendar-form-hint {
    text-transform: none;
}

.calendar-reminder-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.calendar-form {
    display: grid;
    gap: 10px;
}

.calendar-form .nexo-input,
.calendar-form .form-select {
    min-height: 44px;
}

.calendar-weekday-picker {
    max-height: 220px;
    overflow: auto;
}

@media (min-width: 780px) {
    .calendar-day-cell {
        min-height: 124px;
    }

    .calendar-event-pill,
    .calendar-more-pill {
        font-size: .72rem;
    }

}

#blazor-error-ui {
    background: rgba(255, 255, 255, .96);
    border: 1px solid #fed7aa;
    border-radius: 18px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    box-shadow: 0 18px 50px rgba(27, 27, 36, .18);
    display: none;
    left: 12px;
    margin: 0 auto;
    max-width: 620px;
    padding: 14px;
    position: fixed;
    right: 12px;
    z-index: 1200;
}

.app-error-panel {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.app-error-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.app-error-copy strong {
    color: var(--danger);
    font-size: .9rem;
}

.app-error-copy span {
    color: var(--nx-muted);
    font-size: .78rem;
}

.app-error-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
}

.app-error-actions button {
    border-radius: 999px;
    cursor: pointer;
    min-height: 38px;
    padding: 8px 12px;
}

.app-error-reload {
    background: var(--nx-primary);
    border: 1px solid var(--nx-primary);
    color: #fff;
    font-weight: 750;
}

.app-error-dismiss {
    background: transparent;
    border: 1px solid var(--nx-outline);
    color: var(--nx-muted);
}

@media (max-width: 460px) {
    .app-error-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .app-error-actions {
        display: grid;
        grid-template-columns: 1fr auto;
    }
}

@media (min-width: 500px) {
    .shell-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .metric-strip,
    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bento-main {
        grid-column: span 2;
    }

    .shopping-list-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .weight-insights-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 760px) {
    .metric-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shopping-list-board {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .auth-grid,
    .account-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .account-grid {
        grid-template-columns: minmax(210px, .9fr) minmax(0, 2.1fr);
    }

    .weight-insights-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 980px) {
    .shell-content {
        padding-top: 108px;
    }

    .bottom-nav {
        border: 1px solid var(--nx-outline);
        border-radius: 16px;
        bottom: 18px;
        left: 50%;
        max-width: 520px;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 32px);
    }
}

.baby-hero {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(232,248,239,.86));
}

.baby-hero h2 {
    margin: .15rem 0;
}

.baby-hero p {
    margin: 0;
    color: var(--text-muted);
}

.baby-week-actions,
.baby-selector {
    display: flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
}

.baby-chip {
    border: 1px solid rgba(24, 49, 36, .12);
    background: rgba(255,255,255,.72);
    border-radius: 999px;
    padding: .55rem .85rem;
    font-weight: 800;
    color: var(--text-main);
}

.baby-chip.active {
    background: #193b2b;
    color: #fff;
    box-shadow: 0 10px 24px rgba(25, 59, 43, .18);
}

.baby-chip.add {
    border-style: dashed;
}

.baby-tabs {
    margin-top: .9rem;
}

.baby-week-board {
    display: grid;
    gap: .85rem;
}

.baby-day-card {
    padding: .9rem;
    border: 1px solid rgba(24, 49, 36, .08);
}

.baby-day-card.today {
    outline: 2px solid rgba(39, 132, 85, .28);
}

.baby-day-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: .75rem;
}

.baby-day-head span {
    color: var(--text-muted);
    font-size: .86rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.baby-slot-list,
.baby-recipe-list {
    display: grid;
    gap: .65rem;
}

.baby-slot-card,
.baby-recipe-main {
    width: 100%;
    border: 1px solid rgba(24, 49, 36, .1);
    border-radius: 18px;
    padding: .78rem .85rem;
    text-align: left;
    background: rgba(255,255,255,.82);
    display: grid;
    gap: .2rem;
    color: var(--text-main);
}

.baby-slot-card.filled {
    background: linear-gradient(135deg, rgba(239, 251, 244, .96), rgba(255, 255, 255, .88));
    border-color: rgba(39, 132, 85, .22);
}

.baby-slot-card strong,
.baby-recipe-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.baby-slot-card span,
.baby-slot-card small,
.baby-recipe-main small,
.baby-assignment-preview {
    color: var(--text-muted);
}

.baby-info {
    justify-self: start;
    margin-top: -.35rem;
}

.baby-recipe-card {
    border: 1px solid rgba(24, 49, 36, .08);
    border-radius: 20px;
    padding: .7rem;
    background: rgba(255,255,255,.62);
    display: grid;
    gap: .6rem;
}

.baby-recipe-main {
    grid-template-columns: auto 1fr;
    align-items: center;
}

.baby-protein {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: rgba(39, 132, 85, .12);
    color: #193b2b;
    font-size: .72rem;
    font-weight: 900;
}

.baby-ingredient-editor {
    display: grid;
    gap: .5rem;
}

@media (min-width: 780px) {
    .baby-week-board {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .baby-day-card {
        min-height: 14rem;
    }

    .baby-ingredient-editor {
        grid-template-columns: 1fr .7fr auto;
        align-items: center;
    }
}

.baby-week-actions {
    flex-wrap: nowrap;
    white-space: nowrap;
}

.baby-week-actions .shopping-mini {
    min-width: 2.4rem;
}

.baby-field-label {
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.baby-help {
    display: block;
    margin-top: -.35rem;
    color: var(--text-muted);
}

.baby-ingredient-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-top: .35rem;
}

.baby-ingredient-head div {
    display: grid;
    gap: .1rem;
}

.baby-ingredient-head small {
    color: var(--text-muted);
}

.baby-ingredient-list {
    display: grid;
    gap: .55rem;
}

.baby-ingredient-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: .5rem;
    padding: .65rem;
    border: 1px solid rgba(24, 49, 36, .09);
    border-radius: 18px;
    background: rgba(255,255,255,.72);
}

.baby-protein-form {
    align-items: end;
}

@media (min-width: 640px) {
    .baby-ingredient-row {
        grid-template-columns: 1fr .65fr auto;
        align-items: center;
    }
}

@media (max-width: 520px) {
    .baby-hero {
        align-items: stretch;
    }

    .baby-week-actions {
        justify-content: space-between;
    }
}

.finance-table-scroll {
    border-radius: 12px;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scrollbar-color: var(--nx-control-outline) var(--nx-container);
    scrollbar-width: thin;
}

.finance-table-scroll:focus-visible {
    outline: 3px solid var(--nx-primary);
    outline-offset: 3px;
}

.finance-table {
    border-collapse: separate;
    border-spacing: 0;
    font-size: .8rem;
}

.finance-table th {
    background: var(--nx-container);
    color: var(--nx-text);
    font-size: .75rem;
    letter-spacing: .035em;
    position: sticky;
    top: 0;
    z-index: 1;
}

.finance-table th:first-child {
    background: #dfe7dd;
    left: 0;
    position: sticky;
    z-index: 3;
}

.finance-table td:first-child {
    background: var(--nx-surface-solid);
    font-weight: 800;
    left: 0;
    position: sticky;
    z-index: 1;
}

.finance-table tbody tr:nth-child(even) td {
    background: #f5f7f2;
}

.finance-table tbody tr:hover td {
    background: var(--nx-primary-soft);
}

.finance-table tbody tr td:first-child {
    box-shadow: 2px 0 6px rgba(23, 53, 50, .07);
}

.shopping-check {
    border-color: var(--nx-control-outline);
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.shopping-check:hover {
    background: var(--nx-primary-soft);
    border-color: var(--nx-primary);
}

.shopping-check.checked,
.shopping-check.checked:hover {
    background: var(--nx-primary-strong);
    border-color: var(--nx-primary-strong);
    color: #fff;
}

.shopping-check:active {
    transform: scale(.93);
}

.nexo-sr-only {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.nexo-field {
    min-width: 0;
}

.nexo-field > label {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: 0 4px;
}

.nexo-field-required-marker {
    color: var(--danger);
    font-weight: 900;
}

.nexo-field-hint {
    color: var(--nx-muted);
    line-height: 1.45;
}

.nexo-field-error {
    align-items: flex-start;
    background: #fff3ef;
    border-left: 3px solid var(--danger);
    border-radius: 0 9px 9px 0;
    color: #8b2924;
    display: flex;
    font-size: .8rem;
    font-weight: 700;
    gap: 7px;
    line-height: 1.45;
    padding: 8px 10px;
}

.nexo-field-error::before {
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    content: "!";
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .7rem;
    height: 16px;
    justify-content: center;
    margin-top: 1px;
    width: 16px;
}

.nexo-field.has-error > input,
.nexo-field.has-error > select,
.nexo-field.has-error > textarea {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(181, 68, 59, .1);
}

.home-quick-panel[hidden] {
    display: none;
}

.home-add-button .nexo-icon {
    transition: transform .18s ease;
}

.home-add-button[aria-expanded="true"] .nexo-icon {
    transform: rotate(45deg);
}

/* Sistema visual Nexo consolidado */
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("/fonts/manrope-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Fraunces";
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url("/fonts/fraunces-latin.woff2") format("woff2");
}

/* Shared Nexo visual rules follow legacy module styles. */

* {
    scrollbar-color: rgba(12, 113, 105, .28) transparent;
}

html {
    background: var(--nx-bg);
    color-scheme: light;
}

html,
body {
    background:
        radial-gradient(circle at 8% 8%, rgba(230, 129, 89, .12), transparent 27rem),
        radial-gradient(circle at 94% 24%, rgba(12, 113, 105, .11), transparent 31rem),
        linear-gradient(145deg, #f8f6ef 0%, #eff3ed 52%, #f5f0e9 100%);
    color: var(--nx-text);
    font-family: var(--nx-font-sans);
}

body {
    line-height: 1.48;
    overflow-x: hidden;
}

body::before {
    background-image: radial-gradient(rgba(23, 53, 50, .12) .65px, transparent .65px);
    background-size: 18px 18px;
    content: "";
    inset: 0;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .28), transparent 34rem);
    opacity: .16;
    pointer-events: none;
    position: fixed;
    z-index: -2;
}

::selection {
    background: rgba(12, 113, 105, .19);
}

h1,
h2,
h3,
strong {
    letter-spacing: -.025em;
}

h1 {
    font-size: clamp(2rem, 7vw, 3.35rem);
    font-weight: 800;
}

h2 {
    font-size: 1.12rem;
    font-weight: 800;
}

h3 {
    font-weight: 800;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

button,
[role="button"] {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .48;
}

:focus-visible {
    outline: 3px solid var(--nx-primary);
    outline-offset: 3px;
}

.skip-link {
    background: var(--nx-primary-strong);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(7, 77, 72, .2);
    color: #fff;
    font-size: .9rem;
    font-weight: 800;
    left: 50%;
    padding: 12px 18px;
    position: fixed;
    top: max(10px, env(safe-area-inset-top));
    transform: translate(-50%, -160%);
    transition: transform .18s ease;
    z-index: 2000;
}

.skip-link:focus-visible {
    transform: translate(-50%, 0);
}

#main-content {
    scroll-margin-top: calc(100px + env(safe-area-inset-top));
}

#main-content:focus {
    outline: none;
}

.nexo-page,
.app-shell {
    isolation: isolate;
    min-height: 100dvh;
    position: relative;
}

.app-ambient {
    border-radius: 999px;
    filter: blur(10px);
    opacity: .6;
    pointer-events: none;
    position: fixed;
    z-index: -1;
}

.app-ambient-one {
    background: rgba(227, 143, 104, .12);
    height: 22rem;
    left: -12rem;
    top: 18rem;
    width: 22rem;
}

.app-ambient-two {
    background: rgba(48, 137, 125, .12);
    height: 28rem;
    right: -17rem;
    top: 4rem;
    width: 28rem;
}

.content {
    max-width: 940px;
}

.shell-content {
    padding: calc(94px + env(safe-area-inset-top)) 13px calc(118px + env(safe-area-inset-bottom));
}

.safe-bottom {
    padding-bottom: calc(118px + env(safe-area-inset-bottom));
}

.glass-card {
    backdrop-filter: none;
    background: rgba(255, 254, 249, .97);
    border: 1px solid rgba(255, 255, 250, .94);
    border-radius: var(--nx-radius);
    box-shadow: var(--nx-shadow-small);
}

.nexo-topbar.glass-card {
    background: rgba(255, 254, 249, .84);
    backdrop-filter: blur(14px) saturate(120%);
    border: 1px solid rgba(255, 255, 251, .88);
    border-radius: 22px;
    box-shadow: 0 12px 40px rgba(27, 57, 52, .095);
    min-height: 62px;
    padding: calc(8px + env(safe-area-inset-top)) 10px 8px;
    top: 8px;
    width: calc(100% - 22px);
}

.brand {
    gap: 10px;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(145deg, #e9f2ec, #fffaf1);
    border: 1px solid rgba(12, 113, 105, .12);
    border-radius: 13px;
    display: inline-flex;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.brand-logo {
    border-radius: 10px;
    height: 31px;
    width: 31px;
}

.brand-copy {
    display: grid;
    line-height: 1.05;
}

.brand-copy strong {
    color: var(--nx-primary-strong);
    font-size: 1.03rem;
    font-weight: 850;
}

.brand-copy small {
    color: var(--nx-muted);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .035em;
    margin-top: 4px;
}

.topbar-actions {
    gap: 7px;
}

.topbar-icon,
.topbar-avatar {
    background: rgba(245, 247, 241, .9);
    border: 1px solid rgba(23, 53, 50, .1);
    color: #49625e;
    height: 44px;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
    width: 44px;
}

.topbar-icon:hover {
    background: var(--nx-primary-soft);
    color: var(--nx-primary);
    transform: translateY(-1px);
}

.topbar-icon .nexo-icon {
    height: 19px;
    width: 19px;
}

/* Floating navigation dock */

.bottom-nav {
    align-items: stretch;
    backdrop-filter: blur(22px) saturate(135%);
    background: rgba(255, 254, 249, .92);
    border: 1px solid rgba(255, 255, 251, .94);
    border-radius: 25px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 18px 48px rgba(20, 55, 49, .18);
    display: flex;
    gap: 3px;
    left: 12px;
    max-width: 590px;
    padding: 6px;
    right: 12px;
    width: auto;
}

.bottom-nav .nav-link {
    border-radius: 18px;
    color: var(--nx-muted);
    flex: 1 1 0;
    gap: 3px;
    min-height: 58px;
    min-width: 0;
    padding: 7px 3px 5px;
    position: relative;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.bottom-nav .nav-link::before {
    background: var(--nx-primary);
    border-radius: 99px;
    content: "";
    height: 3px;
    left: 50%;
    opacity: 0;
    position: absolute;
    top: 4px;
    transform: translateX(-50%) scaleX(.4);
    transition: opacity .2s ease, transform .2s ease;
    width: 18px;
}

.bottom-nav .nav-link .nexo-icon {
    height: 21px;
    width: 21px;
}

.bottom-nav .nav-link span {
    font-size: clamp(.65rem, 2.7vw, .72rem);
    font-weight: 780;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bottom-nav .nav-link:hover {
    background: rgba(12, 113, 105, .06);
    color: var(--nx-primary);
}

.bottom-nav .nav-link.active {
    background: var(--nx-primary-soft);
    color: var(--nx-primary-strong);
    transform: translateY(-1px);
}

.bottom-nav .nav-link.active::before {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

/* Home */

.home-hero {
    background:
        radial-gradient(circle at 82% 16%, rgba(238, 184, 115, .2), transparent 11rem),
        linear-gradient(142deg, #0b4c47 0%, #106d63 62%, #1d776a 100%);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 31px;
    box-shadow: 0 24px 70px rgba(7, 64, 59, .22);
    color: #f8f7ef;
    min-height: 304px;
    overflow: hidden;
    padding: 25px 22px 22px;
    position: relative;
}

.home-hero::before {
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 50%;
    content: "";
    height: 24rem;
    position: absolute;
    right: -17rem;
    top: -16rem;
    width: 24rem;
}

.home-hero-copy {
    max-width: 82%;
    position: relative;
    z-index: 2;
}

.home-kicker,
.modules-kicker,
.module-head-eyebrow,
.module-card-category,
.module-catalog-heading span,
.home-section-heading span,
.login-showcase-kicker,
.login-card-heading > span {
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-kicker {
    align-items: center;
    color: #bfe4d7;
    display: inline-flex;
    gap: 8px;
}

.home-kicker i {
    background: #f0b66c;
    border-radius: 99px;
    box-shadow: 0 0 0 5px rgba(240, 182, 108, .12);
    height: 6px;
    width: 6px;
}

.home-date {
    color: rgba(242, 249, 243, .66);
    font-size: .75rem;
    font-weight: 650;
    margin-top: 7px;
}

.home-hero h1 {
    color: #fffef6;
    font-size: clamp(2.3rem, 11vw, 4.6rem);
    line-height: .94;
    margin-top: 22px;
}

.home-hero h1 em,
.modules-hero h1 em,
.login-showcase h1 em {
    color: #f0b66c;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
}

.home-intro {
    color: rgba(244, 249, 244, .76);
    font-size: .82rem;
    line-height: 1.55;
    margin-top: 16px;
    max-width: 21rem;
}

.home-hero-meta {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 20px;
}

.home-hero-meta > span {
    color: rgba(244, 249, 244, .75);
    font-size: .72rem;
}

.home-hero-meta > span strong {
    color: #fff;
    font-size: .85rem;
}

.home-hero-meta a {
    align-items: center;
    color: #fff9ee;
    display: inline-flex;
    font-size: .74rem;
    font-weight: 800;
    gap: 6px;
    min-height: 36px;
}

.home-hero-meta a .nexo-icon {
    height: 14px;
    width: 14px;
}

.home-hero-visual {
    bottom: -19px;
    height: 174px;
    opacity: .9;
    position: absolute;
    right: -27px;
    width: 174px;
}

.home-orbit {
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 50%;
    inset: 12px;
    position: absolute;
}

.home-orbit-two {
    inset: 38px;
}

.home-orbit-core,
.home-orbit-node {
    align-items: center;
    backdrop-filter: blur(9px);
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #fff;
    display: flex;
    height: 41px;
    justify-content: center;
    position: absolute;
    width: 41px;
}

.home-orbit-core {
    height: 52px;
    left: 61px;
    top: 61px;
    width: 52px;
}

.home-orbit-node .nexo-icon {
    height: 17px;
    width: 17px;
}

.home-orbit-core .nexo-icon {
    height: 21px;
    width: 21px;
}

.node-health {
    background: rgba(149, 209, 168, .25);
    left: 4px;
    top: 57px;
}

.node-finance {
    background: rgba(240, 182, 108, .24);
    right: 9px;
    top: 12px;
}

.node-home {
    background: rgba(235, 129, 89, .27);
    bottom: 3px;
    right: 20px;
}

.home-section-heading,
.module-catalog-heading {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin: 27px 3px 13px;
}

.home-section-heading span,
.module-catalog-heading span {
    color: var(--nx-primary);
}

.home-section-heading h2,
.module-catalog-heading h2 {
    font-size: 1.55rem;
    margin-top: 2px;
}

.home-section-heading a,
.module-catalog-heading > strong {
    align-items: center;
    color: var(--nx-muted);
    display: inline-flex;
    font-size: .74rem;
    font-weight: 800;
    min-height: 36px;
}

.dashboard-v2-grid {
    display: grid;
    gap: 11px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-v2-card,
.module-card {
    --card-accent: #0c7169;
    --card-soft: #e3f0eb;
    --card-deep: #174f49;
}

.tone-health {
    --card-accent: #397b68;
    --card-soft: #e2efe6;
    --card-deep: #245c4f;
}

.tone-shopping {
    --card-accent: #bb6244;
    --card-soft: #f8e7dd;
    --card-deep: #783d2d;
}

.tone-accounts,
.tone-indigo {
    --card-accent: #32718b;
    --card-soft: #e1edf1;
    --card-deep: #204f63;
}

.tone-calendar {
    --card-accent: #3e7594;
    --card-soft: #e2edf3;
    --card-deep: #234f69;
}

.tone-family {
    --card-accent: #72884e;
    --card-soft: #edf1df;
    --card-deep: #45582e;
}

.tone-finance {
    --card-accent: #356f53;
    --card-soft: #e1ede5;
    --card-deep: #1f5039;
}

.tone-wardrobe {
    --card-accent: #a95e4e;
    --card-soft: #f4e5df;
    --card-deep: #6f4037;
}

.tone-admin {
    --card-accent: #5c707b;
    --card-soft: #e7ecee;
    --card-deep: #374952;
}

.dashboard-v2-card {
    background: linear-gradient(150deg, rgba(255, 255, 251, .96), var(--card-soft));
    border: 1px solid rgba(255, 255, 252, .9);
    border-radius: 23px;
    box-shadow: var(--nx-shadow-small);
    color: var(--card-deep);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 166px;
    overflow: hidden;
    padding: 15px;
    position: relative;
    transition: box-shadow .25s ease, transform .25s ease;
}

.dashboard-v2-card::after {
    background: var(--card-accent);
    border-radius: 50%;
    content: "";
    filter: blur(1px);
    height: 7rem;
    opacity: .06;
    position: absolute;
    right: -3rem;
    top: -3rem;
    width: 7rem;
}

.dashboard-v2-card:hover {
    box-shadow: 0 17px 40px rgba(31, 63, 58, .13);
    transform: translateY(-3px);
}

.dashboard-v2-card.featured {
    background:
        radial-gradient(circle at 92% 10%, rgba(255, 255, 255, .13), transparent 8rem),
        linear-gradient(145deg, var(--card-deep), var(--card-accent));
    color: #fff;
    grid-column: 1 / -1;
    min-height: 190px;
}

.dashboard-v2-card-top {
    align-items: center;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 9px;
    position: relative;
    z-index: 1;
}

.dashboard-v2-icon,
.dashboard-v2-arrow {
    align-items: center;
    background: rgba(255, 255, 255, .68);
    border: 1px solid rgba(255, 255, 255, .74);
    border-radius: 14px;
    color: var(--card-accent);
    display: inline-flex;
    height: 39px;
    justify-content: center;
    width: 39px;
}

.featured .dashboard-v2-icon,
.featured .dashboard-v2-arrow {
    background: rgba(255, 255, 255, .13);
    border-color: rgba(255, 255, 255, .18);
    color: #fff;
}

.dashboard-v2-icon .nexo-icon {
    height: 18px;
    width: 18px;
}

.dashboard-v2-arrow {
    background: transparent;
    border-color: transparent;
    height: 31px;
    transition: transform .2s ease;
    width: 31px;
}

.dashboard-v2-card:hover .dashboard-v2-arrow {
    transform: translateX(3px);
}

.dashboard-v2-eyebrow {
    color: var(--card-accent);
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.featured .dashboard-v2-eyebrow {
    color: rgba(255, 255, 255, .72);
}

.dashboard-v2-copy {
    position: relative;
    z-index: 1;
}

.dashboard-v2-copy strong {
    display: block;
    font-size: 1.16rem;
}

.dashboard-v2-copy p {
    color: color-mix(in srgb, currentColor 72%, transparent);
    font-size: .72rem;
    line-height: 1.42;
    margin-top: 4px;
}

.featured .dashboard-v2-copy strong {
    font-size: 1.42rem;
}

.home-empty {
    margin-top: 18px;
}

/* Shared module hero */

.module-view {
    --module-hero: #0b504a;
    --module-hero-2: #197368;
    --module-accent: #e7b067;
    --module-soft: #e2efea;
}

.module-tone-health {
    --module-hero: #174c42;
    --module-hero-2: #347b68;
    --module-accent: #abd5ad;
    --module-soft: #e4efe6;
}

.module-tone-shopping {
    --module-hero: #713828;
    --module-hero-2: #b85d40;
    --module-accent: #f3be8f;
    --module-soft: #f8e8df;
}

.module-tone-accounts {
    --module-hero: #173f52;
    --module-hero-2: #2e708b;
    --module-accent: #9ed2db;
    --module-soft: #e1edf1;
}

.module-tone-calendar {
    --module-hero: #22445f;
    --module-hero-2: #467c9a;
    --module-accent: #b5d9e6;
    --module-soft: #e4eef3;
}

.module-tone-family {
    --module-hero: #3d512c;
    --module-hero-2: #71884e;
    --module-accent: #e1d794;
    --module-soft: #edf1df;
}

.module-tone-finance {
    --module-hero: #173d2e;
    --module-hero-2: #347354;
    --module-accent: #c5d9a8;
    --module-soft: #e1ede5;
}

.module-tone-wardrobe {
    --module-hero: #633c34;
    --module-hero-2: #a95e4e;
    --module-accent: #efc3a3;
    --module-soft: #f4e5df;
}

.module-tone-admin {
    --module-hero: #30424b;
    --module-hero-2: #60737d;
    --module-accent: #c4d3d5;
    --module-soft: #e7ecee;
}

.module-page-head {
    align-items: flex-end;
    background:
        radial-gradient(circle at 88% 8%, rgba(255, 255, 255, .15), transparent 10rem),
        linear-gradient(140deg, var(--module-hero), var(--module-hero-2));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--nx-radius-large);
    box-shadow: 0 22px 60px color-mix(in srgb, var(--module-hero) 25%, transparent);
    color: #fff;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin: 0 0 16px;
    min-height: 166px;
    overflow: hidden;
    padding: 21px;
    position: relative;
}

.module-page-head::after {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: "";
    height: 12rem;
    position: absolute;
    right: -7rem;
    top: -7rem;
    width: 12rem;
}

.module-head-copy {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.module-head-eyebrow {
    align-items: center;
    color: color-mix(in srgb, var(--module-accent) 84%, white);
    display: flex;
    gap: 8px;
}

.module-head-icon {
    align-items: center;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 12px;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.module-head-icon .nexo-icon {
    height: 16px;
    width: 16px;
}

.module-page-head h1 {
    color: #fff;
    font-size: clamp(2rem, 9vw, 3.1rem);
    line-height: 1;
    margin: 16px 0 0;
}

.module-page-head p {
    color: rgba(255, 255, 255, .88);
    font-size: .76rem;
    line-height: 1.45;
    margin-top: 8px;
    max-width: 23rem;
}

.module-add-button {
    align-items: center;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 16px;
    box-shadow: 0 9px 24px rgba(0, 0, 0, .12);
    color: var(--module-hero);
    display: inline-flex;
    flex: 0 0 auto;
    gap: 6px;
    height: auto;
    justify-content: center;
    min-height: 44px;
    padding: 9px 12px;
    position: relative;
    transition: background-color .2s ease, transform .2s ease;
    width: auto;
    z-index: 2;
}

.module-add-button .nexo-icon {
    height: 17px;
    transition: transform .2s ease;
    width: 17px;
}

.module-add-button span {
    font-size: .72rem;
    font-weight: 850;
}

.module-add-button:hover {
    transform: translateY(-2px);
}

.module-add-button.is-open {
    background: var(--module-accent);
}

.module-add-button.is-open .nexo-icon {
    transform: rotate(45deg);
}

.module-create-panel {
    animation: nexo-panel-in .28s ease both;
    margin-bottom: 15px;
}

.module-create-panel > .glass-card,
.module-create-panel > .form-card {
    border: 1px solid color-mix(in srgb, var(--module-hero) 13%, white);
    box-shadow: 0 16px 40px color-mix(in srgb, var(--module-hero) 10%, transparent);
    margin-top: 0;
}

.module-body {
    display: flow-root;
}

.module-body > * {
    animation: nexo-rise .34s ease both;
}

.module-inactive-state {
    margin-top: 3rem;
    min-height: 17rem;
}

/* Generic surfaces and controls */

.section-card {
    margin-top: 12px;
    padding: 17px;
}

.section-header,
.card-head {
    gap: 12px;
}

.section-header h2 {
    color: var(--nx-text);
    font-size: 1.08rem;
}

.empty,
.notice,
.history-row span,
.history-row small {
    color: var(--nx-muted);
}

.pill {
    background: var(--nx-primary-soft);
    border: 1px solid rgba(12, 113, 105, .12);
    color: var(--nx-primary);
    font-size: .66rem;
    font-weight: 820;
    letter-spacing: .025em;
    padding: 5px 9px;
}

.pill-on {
    background: #e1f0e8;
    border-color: rgba(39, 120, 84, .17);
    color: #287252;
}

.pill-off {
    background: #eceeeb;
    border-color: rgba(90, 105, 101, .13);
    color: #697470;
}

.primary-action,
.form-card > button,
.weight-goal-actions button {
    background: linear-gradient(145deg, #0f7c72, var(--nx-primary-strong));
    border: 1px solid rgba(7, 77, 72, .08);
    border-radius: var(--nx-radius-small);
    box-shadow: 0 8px 19px rgba(7, 77, 72, .14);
    color: #fff;
    min-height: 46px;
    transition: box-shadow .2s ease, transform .2s ease;
}

.primary-action:hover,
.form-card > button:hover,
.weight-goal-actions button:hover {
    box-shadow: 0 12px 24px rgba(7, 77, 72, .2);
    transform: translateY(-1px);
}

.settings-action,
.secondary-action,
.module-toggle,
.shopping-mini,
.weight-link-button {
    background: var(--nx-surface-solid);
    border: 1px solid var(--nx-outline);
    border-radius: var(--nx-radius-small);
    color: var(--nx-primary-strong);
    font-weight: 780;
}

.settings-action {
    margin-bottom: 0;
}

.settings-action .nexo-icon {
    height: 15px;
    width: 15px;
}

.module-toggle {
    min-height: 44px;
}

.shopping-mini {
    min-height: 44px;
    min-width: 44px;
}

.shopping-back,
.shopping-tab,
.finance-tab,
.shopping-category-trigger,
.shopping-chip,
.baby-chip,
.nexo-dialog-close,
.nexo-pwa-close {
    min-height: 44px;
}

.shopping-check {
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    width: 44px;
}

.shopping-mini.danger {
    background: #fff7f5;
    border-color: rgba(181, 68, 59, .16);
    color: var(--danger);
}

.nexo-input,
.form-select,
.form-card input,
.form-card textarea,
.module-form-grid input,
.module-form-grid select,
.module-form-grid textarea {
    background: rgba(255, 255, 252, .95);
    border: 1px solid var(--nx-control-outline);
    border-radius: 13px;
    color: var(--nx-text);
    min-height: 46px;
    padding: 10px 12px;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.nexo-input:focus-visible,
.form-select:focus-visible,
.form-card input:focus-visible,
.form-card textarea:focus-visible,
.module-form-grid input:focus-visible,
.module-form-grid select:focus-visible,
.module-form-grid textarea:focus-visible {
    background: #fff;
    border-color: var(--nx-primary);
    box-shadow: 0 0 0 4px rgba(12, 113, 105, .09);
}

label {
    color: #49635e;
    font-size: .8rem;
    font-weight: 760;
}

.form-card,
.module-form-grid,
.shopping-inline-form {
    gap: 11px;
}

.form-card {
    padding: 17px;
}

.module-filter-panel {
    background: rgba(238, 242, 235, .86);
    border-color: rgba(23, 53, 50, .07);
}

.shopping-tabs,
.finance-tabs {
    background: rgba(232, 237, 230, .72);
    border: 1px solid rgba(23, 53, 50, .07);
    border-radius: 17px;
    gap: 4px;
    margin: 13px 0;
    padding: 5px;
}

.shopping-tab,
.finance-tab {
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: var(--nx-muted);
    min-height: 44px;
    padding: 8px 13px;
}

.shopping-tab.active,
.finance-tab.active {
    background: var(--nx-surface-solid);
    box-shadow: 0 5px 15px rgba(28, 59, 54, .09);
    color: var(--nx-primary-strong);
}

.nexo-empty-state {
    background:
        radial-gradient(circle at 80% 12%, rgba(12, 113, 105, .08), transparent 10rem),
        rgba(255, 255, 251, .88);
    border: 1px dashed rgba(12, 113, 105, .22);
    border-radius: var(--nx-radius);
    color: var(--nx-text);
    min-height: 12rem;
    padding: 28px 22px;
}

.nexo-empty-state span {
    color: var(--nx-primary);
}

.nexo-empty-state strong {
    font-size: 1.2rem;
}

.nexo-empty-state p {
    color: var(--nx-muted);
    max-width: 30rem;
}

.metric-grid,
.metric-strip,
.finance-summary-grid {
    gap: 10px;
}

.metric-card {
    background: linear-gradient(145deg, rgba(255, 255, 251, .97), rgba(238, 242, 235, .8));
    border: 1px solid rgba(23, 53, 50, .07);
    border-radius: 17px;
    min-height: 92px;
    padding: 13px;
}

.metric-card span,
.metric-card small {
    color: var(--nx-muted);
}

.metric-card strong {
    color: var(--nx-text);
    font-size: 1.15rem;
}

.history-list,
.module-list,
.shopping-item-list,
.myinvestor-list {
    gap: 8px;
}

.history-row,
.module-balance-row,
.module-check-row,
.myinvestor-row {
    background: rgba(255, 255, 252, .76);
    border: 1px solid rgba(23, 53, 50, .075);
    border-radius: 15px;
    min-height: 48px;
}

.myinvestor-preview-summary {
    margin-bottom: 16px;
}

.myinvestor-preview-list {
    display: grid;
    gap: 8px;
}

.myinvestor-preview-row {
    align-items: center;
    background: rgba(255, 255, 252, .78);
    border: 1px solid var(--nx-outline);
    border-radius: var(--nx-radius-small);
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 11px 12px;
}

.myinvestor-preview-row > span,
.myinvestor-preview-row small {
    color: var(--nx-muted);
    display: block;
    font-size: .75rem;
}

.myinvestor-preview-row.has-error {
    background: rgba(190, 65, 54, .08);
    border-color: rgba(190, 65, 54, .24);
}

.myinvestor-preview-row.is-duplicate {
    opacity: .7;
}

/* Modules catalog */

.modules-hero {
    background:
        radial-gradient(circle at 88% 9%, rgba(239, 182, 108, .2), transparent 12rem),
        linear-gradient(142deg, #153c39 0%, #0c665e 100%);
    border-radius: 30px;
    box-shadow: 0 22px 62px rgba(11, 80, 74, .2);
    color: #fff;
    display: grid;
    gap: 22px;
    overflow: hidden;
    padding: 24px 21px;
    position: relative;
}

.modules-kicker {
    color: #b8dfd2;
}

.modules-hero h1 {
    color: #fff;
    font-size: clamp(2.35rem, 10vw, 4.3rem);
    line-height: .95;
    margin-top: 17px;
}

.modules-hero-copy > p {
    color: rgba(255, 255, 255, .72);
    font-size: .8rem;
    line-height: 1.5;
    margin-top: 14px;
    max-width: 27rem;
}

.modules-capacity {
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 19px;
    padding: 15px;
}

.modules-capacity-head {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
}

.modules-capacity-head span {
    color: rgba(255, 255, 255, .75);
    font-size: .72rem;
    font-weight: 780;
}

.modules-capacity-head strong {
    font-size: 1.5rem;
}

.modules-capacity-head small {
    color: rgba(255, 255, 255, .56);
    font-size: .76rem;
}

.modules-capacity-track {
    background: rgba(0, 0, 0, .18);
    border-radius: 99px;
    height: 7px;
    margin-top: 11px;
    overflow: hidden;
}

.modules-capacity-track span {
    background: linear-gradient(90deg, #9ad5c1, #efb66e);
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width .35s ease;
}

.modules-capacity p {
    color: rgba(255, 255, 255, .62);
    font-size: .67rem;
    margin-top: 8px;
}

.modules-error {
    background: rgba(120, 28, 25, .28);
    border: 1px solid rgba(255, 210, 202, .19);
    border-radius: 13px;
    color: #ffe7e1;
    grid-column: 1 / -1;
    padding: 10px 12px;
}

.module-grid {
    gap: 12px;
}

.module-card {
    background: linear-gradient(150deg, rgba(255, 255, 251, .97), color-mix(in srgb, var(--card-soft) 56%, white));
    border: 1px solid rgba(255, 255, 252, .9);
    border-radius: 23px;
    box-shadow: var(--nx-shadow-small);
    gap: 14px;
    overflow: hidden;
    padding: 17px;
    position: relative;
}

.module-card::before {
    background: var(--card-accent);
    border-radius: 0 0 99px 99px;
    content: "";
    height: 4px;
    left: 17px;
    position: absolute;
    top: 0;
    width: 52px;
}

.module-card.is-disabled {
    filter: saturate(.68);
}

.module-card.is-blocked {
    filter: saturate(.55);
    opacity: .78;
}

.module-card-identity {
    align-items: center;
    display: flex;
    gap: 11px;
    min-width: 0;
}

.module-card-category {
    color: var(--card-accent);
    display: block;
    font-size: .58rem;
}

.module-card h2 {
    font-size: 1.05rem;
    margin-top: 2px;
}

.module-icon-wrap {
    background: var(--card-soft);
    border: 1px solid color-mix(in srgb, var(--card-accent) 15%, transparent);
    border-radius: 15px;
    color: var(--card-accent);
    flex: 0 0 auto;
    height: 43px;
    width: 43px;
}

.module-icon-wrap .nexo-icon {
    height: 19px;
    width: 19px;
}

.module-card-description {
    color: var(--nx-muted);
    font-size: .76rem;
    line-height: 1.48;
    min-height: 2.25rem;
}

.module-card-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
}

.module-open {
    align-items: center;
    background: var(--card-deep);
    border-radius: 13px;
    color: #fff;
    display: inline-flex;
    font-size: .76rem;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    min-height: 43px;
    padding: 9px 12px;
}

.module-open .nexo-icon {
    height: 14px;
    width: 14px;
}

.module-card .module-toggle {
    font-size: .72rem;
}

.module-admin-lock {
    align-items: center;
    background: #eceeeb;
    border: 1px solid rgba(90, 105, 101, .16);
    border-radius: 13px;
    color: #5f6c68;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 780;
    justify-content: center;
    min-height: 44px;
    padding: 10px 13px;
}

.module-nav-setting {
    align-items: center;
    border-top: 1px solid rgba(23, 53, 50, .08);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding-top: 13px;
}

.module-nav-setting > div {
    display: grid;
    min-width: 0;
}

.module-nav-setting strong {
    font-size: .76rem;
}

.module-nav-setting span {
    color: var(--nx-muted);
    font-size: .63rem;
}

.module-nav-switch {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 99px;
    display: flex;
    flex: 0 0 auto;
    height: 44px;
    justify-content: flex-start;
    padding: 0 3px;
    position: relative;
    transition: background-color .2s ease;
    width: 52px;
}

.module-nav-switch::before {
    background: #d8ddda;
    border-radius: inherit;
    content: "";
    inset: 6px 0;
    position: absolute;
    transition: background-color .2s ease;
}

.module-nav-switch > span {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(25, 52, 48, .2);
    display: block;
    height: 26px;
    transform: translateX(0);
    transition: transform .2s ease;
    width: 26px;
    z-index: 1;
}

.module-nav-switch.on {
    background: transparent;
}

.module-nav-switch.on::before {
    background: var(--card-accent);
}

.module-nav-switch.on > span {
    transform: translateX(20px);
}

/* Weight */

.weight-summary-card {
    background:
        radial-gradient(circle at 88% 12%, rgba(171, 213, 173, .24), transparent 11rem),
        rgba(255, 255, 251, .92);
}

.weight-current-card {
    background: linear-gradient(145deg, #174c42, #337866);
    border: 0;
    border-radius: 21px;
    color: #fff;
    padding: 17px;
}

.weight-current-header span,
.weight-current-header small,
.weight-current-card .empty {
    color: rgba(255, 255, 255, .7);
}

.weight-current-card > strong {
    color: #fff;
    font-size: 2.35rem;
}

.weight-goal-card {
    background: linear-gradient(145deg, #f4f0df, #edf3e8);
    border: 1px solid rgba(92, 116, 73, .11);
    border-radius: 20px;
}

.weight-goal-progress {
    background: rgba(23, 76, 66, .11);
}

.weight-goal-progress span {
    background: linear-gradient(90deg, #397b68, #d5a447);
}

.weight-goal-grid,
.weight-averages-grid,
.weight-insights-grid {
    gap: 8px;
}

.weight-average-card,
.weight-insight-item {
    background: rgba(247, 249, 244, .92);
    border: 1px solid rgba(23, 53, 50, .07);
    border-radius: 16px;
}

.weight-average-card strong,
.weight-insight-item strong {
    color: var(--nx-text);
}

.weight-trend-badge {
    border-radius: 13px;
}

.weight-chart {
    background: linear-gradient(to bottom, rgba(226, 239, 230, .55), rgba(255, 255, 251, .12));
    border-radius: 17px;
    overflow: visible;
}

.weight-line-current {
    stroke: #0c7169;
}

.weight-line-average-7 {
    stroke: #d5a447;
}

.weight-line-average-30 {
    stroke: #a95e4e;
}

.weight-filter .form-select {
    background-color: #fffefa;
}

.weight-link-button,
.history-toggle {
    min-height: 40px;
}

.history-toggle {
    color: var(--nx-primary);
}

/* Shopping and shared lists */

.shopping-list-board,
.accounts-board,
.calendar-list-board {
    gap: 11px;
}

.shopping-empty-list {
    grid-column: 1 / -1;
}

.shopping-list-card {
    background: linear-gradient(150deg, rgba(255, 255, 251, .96), #f7ede5);
    border: 1px solid rgba(187, 98, 68, .08);
    border-radius: 21px;
    box-shadow: var(--nx-shadow-small);
    min-height: 118px;
}

.shopping-list-card-main {
    min-width: 0;
}

.shopping-list-card strong {
    color: var(--nx-text);
}

.shopping-list-card small,
.shopping-list-card em {
    color: var(--nx-muted);
}

.shopping-back {
    color: var(--nx-primary);
    font-weight: 800;
}

.shopping-quick-add {
    background:
        radial-gradient(circle at 90% 5%, rgba(230, 129, 89, .11), transparent 9rem),
        rgba(255, 255, 251, .94);
}

.shopping-chip {
    background: #fffefa;
    border: 1px solid #d8ded6;
    color: #536762;
}

.shopping-chip.active {
    background: #783d2d;
    border-color: #783d2d;
    color: #fff;
}

.shopping-suggestion-item,
.shopping-item-row,
.shopping-recurring-card {
    background: rgba(255, 255, 252, .85);
    border: 1px solid rgba(23, 53, 50, .075);
    border-radius: 16px;
}

.shopping-item-row.purchased {
    background: rgba(232, 236, 229, .62);
}

.shopping-check {
    border-color: #9eaaa5;
}

.shopping-check.checked {
    background: var(--nx-primary);
    border-color: var(--nx-primary);
}

.shopping-recipe-tag {
    background: #f4e5dc;
    color: #914b36;
}

.shopping-recurring-menu-body {
    background: #f5f6f1;
    border-color: rgba(23, 53, 50, .08);
}

.shopping-recipe-ingredient-editor,
.baby-ingredient-editor {
    background: rgba(238, 242, 235, .72);
    border: 1px solid rgba(23, 53, 50, .07);
    border-radius: 16px;
    padding: 9px;
}

/* Accounts */

.accounts-section-heading {
    margin-top: 20px;
}

.accounts-list-card {
    background: linear-gradient(150deg, rgba(255, 255, 251, .98), #eaf2f4);
    border: 1px solid rgba(50, 113, 139, .1);
    border-radius: 21px;
    box-shadow: var(--nx-shadow-small);
}

.accounts-avatar {
    background: #dcecf0;
    color: #275f77;
}

.accounts-list-copy em,
.accounts-list-card small {
    color: var(--nx-muted);
}

.accounts-summary-card {
    background:
        radial-gradient(circle at 90% 5%, rgba(158, 210, 219, .2), transparent 10rem),
        linear-gradient(145deg, #173f52, #2e708b);
    border: 0;
    box-shadow: 0 19px 48px rgba(23, 63, 82, .2);
    color: #fff;
}

.accounts-summary-card > span,
.accounts-summary-card > small {
    color: rgba(255, 255, 255, .7);
}

.accounts-summary-card > strong {
    color: #fff;
}

.accounts-summary-actions .primary-action {
    background: #fff;
    color: #1f566d;
}

.accounts-summary-actions .secondary-action {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .2);
    color: #fff;
}

.accounts-balance-card,
.accounts-share-summary {
    background: rgba(242, 247, 247, .92);
    border-color: rgba(50, 113, 139, .09);
}

.accounts-form-summary {
    background: #e8f1f3;
    border-color: rgba(50, 113, 139, .1);
}

/* Calendar */

.calendar-shell-header,
.calendar-month-card,
.calendar-upcoming-card {
    border-color: rgba(62, 117, 148, .08);
}

.calendar-toolbar {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.calendar-toolbar > div:first-child {
    align-items: center;
    display: grid;
    gap: 7px;
    grid-template-columns: 38px minmax(5.5rem, auto) 38px;
    min-width: 0;
}

.calendar-toolbar > div:first-child > * {
    margin: 0;
}

.calendar-toolbar strong {
    min-width: 0;
    text-align: center;
    white-space: nowrap;
}

.calendar-toolbar-actions {
    flex-wrap: nowrap;
}

.calendar-month-grid {
    gap: 4px;
}

.calendar-weekdays span {
    color: #56727f;
    font-size: .62rem;
}

.calendar-day-cell {
    background: rgba(250, 251, 248, .8);
    border-color: rgba(45, 83, 102, .08);
    border-radius: 13px;
}

.calendar-day-cell.today {
    box-shadow: inset 0 0 0 2px rgba(62, 117, 148, .42);
}

.calendar-day-cell.selected {
    background: #e2edf3;
    border-color: rgba(62, 117, 148, .34);
}

.calendar-event-pill {
    background: #dfeef1;
    color: #2c657c;
}

.calendar-event-pill.recurring {
    background: #edf0df;
    color: #60713b;
}

.calendar-modal-eyebrow {
    color: var(--nx-primary);
}

/* Child meals */

.baby-hero {
    background:
        radial-gradient(circle at 90% 6%, rgba(225, 215, 148, .22), transparent 9rem),
        linear-gradient(140deg, #f9fbf1, #e9f0dc);
    border-color: rgba(113, 136, 78, .1);
}

.baby-hero p,
.baby-slot-card span,
.baby-slot-card small,
.baby-recipe-main small,
.baby-assignment-preview {
    color: var(--nx-muted);
}

.baby-chip {
    background: #fffefa;
    border-color: rgba(61, 81, 44, .12);
    color: #44552f;
}

.baby-chip.active {
    background: #45582e;
    box-shadow: 0 9px 23px rgba(69, 88, 46, .18);
}

.baby-day-card {
    background: rgba(255, 255, 251, .9);
    border-color: rgba(61, 81, 44, .08);
    border-radius: 20px;
}

.baby-day-card.today {
    outline-color: rgba(113, 136, 78, .35);
}

.baby-slot-card,
.baby-recipe-main,
.baby-recipe-card,
.baby-ingredient-row {
    background: rgba(255, 255, 251, .84);
    border-color: rgba(61, 81, 44, .1);
}

.baby-slot-card.filled {
    background: linear-gradient(145deg, #edf3e3, #fffefa);
    border-color: rgba(113, 136, 78, .23);
}

.baby-protein {
    background: #edf1df;
    color: #4d6033;
}

.baby-field-label {
    color: #65734d;
}

/* Finance and investor */

.finance-summary-grid .metric-card {
    min-height: 105px;
}

.finance-onboarding-card {
    background:
        radial-gradient(circle at 91% 8%, rgba(197, 217, 168, .2), transparent 10rem),
        rgba(255, 255, 251, .93);
    display: grid;
    gap: 19px;
}

.finance-onboarding-copy > span {
    color: #347354;
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.finance-onboarding-copy h2 {
    font-size: 1.32rem;
    margin-top: 5px;
}

.finance-onboarding-copy p {
    color: var(--nx-muted);
    font-size: .76rem;
    line-height: 1.5;
    margin-top: 6px;
    max-width: 30rem;
}

.module-form-grid label {
    display: grid;
    gap: 6px;
}

.finance-table-card {
    background: rgba(255, 255, 251, .93);
    padding: 14px;
}

.finance-table th,
.finance-table td {
    border-bottom-color: rgba(23, 61, 46, .09);
    padding: 11px 9px;
}

.finance-table th {
    color: #64766d;
}

.finance-row-button {
    background: rgba(255, 255, 252, .8);
    border-color: rgba(23, 61, 46, .08);
    border-radius: 13px;
}

.finance-chart {
    background: linear-gradient(to bottom, rgba(225, 237, 229, .56), transparent);
    border-radius: 16px;
}

.finance-subform {
    border-top-color: rgba(23, 61, 46, .1);
}

.myinvestor-row {
    background: rgba(255, 255, 252, .86);
    border-color: rgba(23, 61, 46, .08);
}

.myinvestor-bar-row div {
    background: #e3e9e4;
}

.myinvestor-bar-row i {
    background: linear-gradient(90deg, #2b684e, #72a281);
}

.myinvestor-bar-row i.negative {
    background: linear-gradient(90deg, #a95e4e, #dc8a77);
}

.finance-tabs {
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.finance-tabs::-webkit-scrollbar {
    display: none;
}

.finance-tab {
    scroll-snap-align: start;
}

/* Wardrobe and admin */

.wardrobe-grid {
    gap: 11px;
}

.wardrobe-card {
    background: linear-gradient(150deg, rgba(255, 255, 251, .98), #f5e9e4);
    border: 1px solid rgba(169, 94, 78, .09);
    border-radius: 21px;
    box-shadow: var(--nx-shadow-small);
}

.wardrobe-photo {
    background: #eee8e1;
}

.wardrobe-photo-button {
    background: transparent;
    border: 0;
    cursor: pointer;
    display: block;
    padding: 0;
    width: 100%;
}

.wardrobe-photo-empty {
    background:
        linear-gradient(145deg, rgba(169, 94, 78, .06), rgba(255, 255, 255, .3)),
        #eeeae4;
    border: 0;
    cursor: pointer;
    width: 100%;
}

.wardrobe-card-body {
    padding: 12px;
}

.wardrobe-card-title,
.wardrobe-actions {
    align-items: center;
    display: flex;
    gap: 7px;
}

.wardrobe-card-title {
    justify-content: space-between;
}

.wardrobe-actions {
    flex-wrap: wrap;
}

.wardrobe-actions .module-toggle {
    flex: 1 1 auto;
}

.module-inline-check {
    align-items: center;
    color: var(--nx-muted);
    display: inline-flex;
    font-size: .8rem;
    font-weight: 720;
    gap: 7px;
    min-height: 44px;
}

.wardrobe-photo-manager {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 18px;
}

.wardrobe-photo-manager article {
    background: var(--nx-container);
    border: 1px solid var(--nx-outline);
    border-radius: var(--nx-radius-small);
    overflow: hidden;
}

.wardrobe-photo-manager img {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
}

.wardrobe-photo-manager article > div {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 8px;
}

.wardrobe-photo-manager .shopping-mini {
    min-height: 36px;
}

@media (min-width: 768px) {
    .wardrobe-photo-manager {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.admin-user-row {
    background: rgba(248, 250, 247, .9);
    border: 1px solid rgba(48, 66, 75, .08);
    border-radius: 16px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 11px 11px 11px 13px;
}

.admin-user-row > div {
    display: grid;
    min-width: 0;
}

.admin-user-row span {
    color: var(--nx-text);
    font-size: .8rem;
    font-weight: 760;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-user-row small {
    color: var(--nx-muted);
    font-size: .68rem;
    margin-top: 2px;
}

.admin-user-row .shopping-mini {
    align-self: center;
}

.admin-module-access {
    border-top: 1px solid rgba(48, 66, 75, .1);
    margin-top: 18px;
    padding-top: 18px;
}

.admin-module-access-header {
    align-items: start;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 13px;
}

.admin-module-access-header h3 {
    color: var(--nx-text);
    font-size: 1rem;
    margin: 2px 0 4px;
}

.admin-module-access-header p {
    color: var(--nx-muted);
    font-size: .7rem;
    line-height: 1.45;
    margin: 0;
    max-width: 46ch;
}

.admin-module-access-eyebrow {
    color: var(--module-accent);
    font-size: .6rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-module-access-list {
    display: grid;
    gap: 8px;
}

.admin-module-access-row {
    align-items: center;
    background: rgba(248, 250, 247, .9);
    border: 1px solid rgba(48, 66, 75, .08);
    border-radius: 16px;
    display: grid;
    gap: 11px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 10px 11px;
    transition: background-color .2s ease, border-color .2s ease;
}

.admin-module-access-row.is-blocked {
    background: rgba(251, 246, 243, .88);
    border-color: rgba(178, 74, 50, .12);
}

.admin-module-access-icon {
    align-items: center;
    background: color-mix(in srgb, var(--module-accent) 10%, white);
    border-radius: 12px;
    color: var(--module-accent);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.admin-module-access-icon .nexo-icon {
    height: 18px;
    width: 18px;
}

.admin-module-access-copy {
    display: grid;
    min-width: 0;
}

.admin-module-access-copy strong {
    color: var(--nx-text);
    font-size: .76rem;
}

.admin-module-access-copy small {
    color: var(--nx-muted);
    font-size: .63rem;
    line-height: 1.35;
    margin-top: 2px;
}

.admin-module-access-row.is-blocked .admin-module-access-copy small {
    color: #a6533e;
}

.admin-module-access-row .module-nav-switch.on {
    background: var(--module-accent);
}

.admin-module-access-row .module-nav-switch:disabled {
    cursor: not-allowed;
    opacity: .62;
}

.wardrobe-empty {
    margin-top: 12px;
}

/* Account management */

.account-page {
    display: grid;
    gap: 14px;
}

.account-hero {
    align-items: center;
    background:
        radial-gradient(circle at 90% 8%, rgba(255, 255, 255, .14), transparent 10rem),
        linear-gradient(140deg, #173f3b, #2a7168);
    border-radius: var(--nx-radius-large);
    box-shadow: 0 21px 58px rgba(23, 63, 59, .19);
    color: #fff;
    display: flex;
    gap: 15px;
    min-height: 150px;
    overflow: hidden;
    padding: 22px;
    position: relative;
}

.account-hero::after {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: "";
    height: 12rem;
    position: absolute;
    right: -6rem;
    top: -7rem;
    width: 12rem;
}

.account-hero-icon {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    display: flex;
    flex: 0 0 auto;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.account-hero-icon .nexo-icon {
    height: 23px;
    width: 23px;
}

.account-hero > div {
    position: relative;
    z-index: 1;
}

.account-hero p {
    color: #bde2d6;
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.account-hero h1 {
    color: #fff;
    font-size: 2.2rem;
    margin-top: 5px;
}

.account-hero > div > span {
    color: rgba(255, 255, 255, .7);
    display: block;
    font-size: .75rem;
    margin-top: 4px;
}

.account-card {
    background: rgba(255, 255, 251, .91);
    border-radius: 24px;
    padding: 12px;
}

.account-grid {
    display: grid;
    gap: 18px;
}

.account-nav {
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.account-nav::-webkit-scrollbar {
    display: none;
}

.account-nav .account-nav-list {
    display: flex;
    flex-direction: row !important;
    flex-wrap: nowrap;
    gap: 6px;
    margin: 0;
    min-width: max-content;
    padding: 0;
}

.account-nav .account-nav-item {
    flex: 0 0 auto;
}

.account-nav .account-nav-link {
    background: #f0f3ee;
    border: 1px solid rgba(23, 53, 50, .08);
    border-radius: 12px;
    color: var(--nx-muted);
    display: block;
    font-size: .72rem;
    font-weight: 760;
    margin: 0;
    min-height: 42px;
    padding: 10px 12px;
    white-space: nowrap;
}

.account-nav .account-nav-link.active {
    background: var(--nx-primary-strong);
    border-color: var(--nx-primary-strong);
    color: #fff;
}

.account-content {
    min-width: 0;
    padding: 6px;
}

.account-content-head {
    margin-bottom: 22px;
}

.account-content-head > span {
    color: var(--nx-primary);
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.account-content-head h2 {
    font-size: 1.55rem;
    margin-top: 5px;
}

.account-content-head p {
    color: var(--nx-muted);
    font-size: .77rem;
    margin-top: 5px;
}

.account-content > h3 {
    font-size: 1.45rem;
    margin-bottom: 18px;
}

.account-content > p,
.account-content > .account-form-row p {
    color: var(--nx-muted);
}

.account-content .account-form-row {
    margin-left: 0;
    margin-right: 0;
}

.account-content .account-form-row > * {
    padding-left: 0;
    padding-right: 0;
}

.account-form-wrap {
    max-width: 34rem;
}

.account-content form {
    display: grid;
    gap: 4px;
}

.account-content .account-input {
    min-height: 52px;
}

.account-content .account-input:disabled {
    background: #edf0eb;
    color: #7a8784;
}

.account-content .primary-action {
    background: linear-gradient(145deg, #0f7c72, var(--nx-primary-strong));
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 19px rgba(7, 77, 72, .14);
    font-size: .82rem;
    font-weight: 800;
    min-height: 49px;
}

.account-content .danger-action {
    border-radius: 14px;
    min-height: 46px;
}

.account-content .link-action {
    color: var(--nx-primary);
    font-size: .75rem;
    font-weight: 760;
}

.account-content .account-alert {
    border-radius: 14px;
    font-size: .78rem;
}

.account-field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

.account-label {
    color: var(--nx-text);
    font-size: .76rem;
    font-weight: 760;
}

.account-input {
    background: #fff;
    border: 1px solid var(--nx-control-outline);
    border-radius: 13px;
    color: var(--nx-text);
    font: inherit;
    min-height: 48px;
    padding: 11px 13px;
    width: 100%;
}

.account-input:focus-visible {
    border-color: var(--nx-primary);
    box-shadow: 0 0 0 3px rgba(15, 124, 114, .14);
}

.account-input-group {
    grid-template-columns: minmax(0, 1fr) auto;
}

.account-input-group .account-label {
    grid-column: 1 / -1;
}

.account-verified-badge {
    align-items: center;
    background: #dff2e8;
    border-radius: 12px;
    color: #23704e;
    display: flex;
    font-weight: 900;
    justify-content: center;
    min-width: 48px;
}

.account-form-row {
    display: grid;
    gap: 12px;
}

.account-form-column {
    max-width: 36rem;
    min-width: 0;
    width: 100%;
}

.account-full-action {
    width: 100%;
}

.danger-action,
.link-action {
    align-items: center;
    border-radius: 13px;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 780;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    text-decoration: none;
}

.danger-action {
    background: #b83d35;
    border: 1px solid #a8332d;
    color: #fff;
}

.link-action {
    background: transparent;
    border: 0;
    color: var(--nx-primary);
}

.field-error {
    color: #a92e29;
    font-size: .75rem;
}

.account-alert {
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: .78rem;
    margin: 10px 0;
    padding: 12px 14px;
}

.account-alert-error {
    background: #fbe9e6;
    border-color: #efc0ba;
    color: #8b2924;
}

.account-alert-warning {
    background: #fff4d8;
    border-color: #ecd69c;
    color: #765510;
}

.account-alert-info,
.account-alert-success {
    background: #e8f4ef;
    border-color: #b9dcca;
    color: #235f4b;
}

.account-note {
    background: #eef6f3;
    border-radius: 13px;
    color: var(--nx-muted);
    padding: 12px;
}

.account-check {
    align-items: center;
    display: flex;
    gap: 8px;
    margin: 8px 0 14px;
}

.account-table {
    border-collapse: collapse;
    margin: 12px 0;
    width: 100%;
}

.account-table td {
    border-bottom: 1px solid var(--nx-outline);
    padding: 12px 8px;
}

/* Authentication */

.auth-shell {
    align-items: stretch;
    background:
        radial-gradient(circle at 12% 14%, rgba(230, 129, 89, .13), transparent 25rem),
        radial-gradient(circle at 88% 82%, rgba(12, 113, 105, .15), transparent 28rem),
        #f4f3eb;
    display: flex;
    min-height: 100dvh;
    padding: 12px;
}

.login-clean {
    align-items: stretch;
    display: grid;
    gap: 12px;
    margin: auto;
    max-width: 980px;
    min-height: min(700px, calc(100dvh - 24px));
    width: 100%;
}

.login-showcase {
    background:
        radial-gradient(circle at 78% 16%, rgba(239, 182, 108, .22), transparent 13rem),
        linear-gradient(145deg, #0b4a45, #157066);
    border-radius: 29px;
    box-shadow: 0 25px 70px rgba(8, 67, 62, .22);
    color: #fff;
    display: none;
    overflow: hidden;
    padding: 32px;
    position: relative;
}

.login-showcase::after {
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    bottom: -12rem;
    content: "";
    height: 24rem;
    position: absolute;
    right: -11rem;
    width: 24rem;
}

.login-showcase-brand {
    align-items: center;
    display: flex;
    gap: 11px;
}

.login-showcase-brand > span {
    align-items: center;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 14px;
    display: flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.login-showcase-brand img {
    border-radius: 10px;
    height: 33px;
    width: 33px;
}

.login-showcase-brand strong {
    font-size: 1.15rem;
}

.login-showcase-copy {
    margin: auto 0;
    position: relative;
    z-index: 1;
}

.login-showcase-kicker {
    color: #bde2d6;
}

.login-showcase h1 {
    color: #fff;
    font-size: clamp(3rem, 6vw, 4.8rem);
    line-height: .94;
    margin-top: 22px;
}

.login-showcase-copy p {
    color: rgba(255, 255, 255, .72);
    line-height: 1.58;
    margin-top: 21px;
    max-width: 24rem;
}

.login-showcase-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.login-showcase-modules span {
    align-items: center;
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 99px;
    display: inline-flex;
    font-size: .69rem;
    font-weight: 750;
    gap: 6px;
    padding: 8px 11px;
}

.login-showcase-modules .nexo-icon {
    height: 14px;
    width: 14px;
}

.login-card {
    align-self: center;
    background: rgba(255, 254, 249, .94);
    border-radius: 27px;
    box-shadow: 0 22px 65px rgba(27, 57, 52, .13);
    margin: auto;
    max-width: 430px;
    padding: 24px 20px;
    width: 100%;
}

.login-brand-mobile {
    margin-bottom: 30px;
}

.login-brand img {
    border-radius: 12px;
    height: 38px;
    width: 38px;
}

.login-brand span {
    color: var(--nx-primary-strong);
}

.login-card-heading > span {
    color: var(--nx-primary);
}

.login-card-heading h2 {
    font-size: 2rem;
    margin-top: 7px;
}

.login-card-heading p {
    color: var(--nx-muted);
    font-size: .81rem;
    margin-top: 7px;
}

.login-card form {
    display: grid;
    gap: 16px;
    margin-top: 25px;
}

.login-field {
    gap: 7px;
}

.login-field label {
    color: #47605c;
}

.login-field .nexo-input {
    min-height: 50px;
}

.login-remember {
    color: var(--nx-muted);
    font-size: .76rem;
}

.login-remember input {
    accent-color: var(--nx-primary);
    height: 18px;
    width: 18px;
}

.login-submit {
    min-height: 51px;
}

.login-footnote {
    color: #81908d;
    font-size: .65rem;
    margin-top: 20px;
    text-align: center;
}

/* Recovery surfaces */

.app-error-panel,
.reconnect-modal {
    backdrop-filter: blur(16px);
}

.app-error-reload {
    background: var(--nx-primary);
    border-color: var(--nx-primary);
}

/* Motion */

@keyframes nexo-rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes nexo-panel-in {
    from {
        opacity: 0;
        transform: translateY(-7px) scale(.99);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (min-width: 520px) {
    .shell-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .home-hero,
    .module-page-head,
    .modules-hero {
        padding: 28px;
    }

    .home-hero-copy {
        max-width: 68%;
    }

    .home-hero-visual {
        bottom: 9px;
        height: 220px;
        right: 11px;
        width: 220px;
    }

    .home-orbit-core {
        left: 84px;
        top: 84px;
    }

    .dashboard-v2-grid {
        gap: 13px;
    }

    .module-card-actions {
        grid-template-columns: 1.15fr .85fr;
    }

    .module-page-head {
        min-height: 178px;
    }

    .module-add-button {
        padding: 10px 15px;
    }
}

@media (min-width: 760px) {
    .shell-content {
        padding-top: calc(108px + env(safe-area-inset-top));
    }

    .nexo-topbar.glass-card {
        padding-left: 14px;
        padding-right: 14px;
    }

    .home-hero {
        min-height: 375px;
        padding: 38px;
    }

    .home-hero h1 {
        margin-top: 28px;
    }

    .home-intro {
        font-size: .91rem;
    }

    .home-hero-visual {
        bottom: 19px;
        height: 290px;
        right: 42px;
        width: 290px;
    }

    .home-orbit-core {
        height: 62px;
        left: 114px;
        top: 114px;
        width: 62px;
    }

    .home-orbit-node {
        height: 48px;
        width: 48px;
    }

    .dashboard-v2-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-v2-card.featured {
        grid-column: span 2;
    }

    .dashboard-v2-card {
        min-height: 190px;
        padding: 19px;
    }

    .module-page-head {
        min-height: 190px;
        padding: 26px;
    }

    .module-page-head p {
        font-size: .86rem;
    }

    .modules-hero {
        align-items: end;
        grid-template-columns: minmax(0, 1.5fr) minmax(230px, .7fr);
        min-height: 340px;
        padding: 34px;
    }

    .modules-capacity {
        margin-bottom: 3px;
    }

    .module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .module-card {
        padding: 20px;
    }

    .account-hero {
        min-height: 180px;
        padding: 29px;
    }

    .account-card {
        padding: 18px;
    }

    .account-grid {
        grid-template-columns: minmax(180px, .62fr) minmax(0, 2fr);
        gap: 28px;
    }

    .account-nav {
        overflow: visible;
    }

    .account-nav .account-nav-list {
        flex-direction: column !important;
        min-width: 0;
        position: sticky;
        top: 110px;
    }

    .account-nav .account-nav-item {
        width: 100%;
    }

    .account-nav .account-nav-link {
        padding: 11px 13px;
        width: 100%;
    }

    .account-content {
        border-left: 1px solid rgba(23, 53, 50, .08);
        min-height: 28rem;
        padding: 12px 10px 12px 28px;
    }

    .metric-grid,
    .finance-summary-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .login-clean {
        grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr);
    }

    .login-showcase {
        display: flex;
        flex-direction: column;
    }

    .login-card {
        box-shadow: none;
        padding: 34px;
    }

    .login-brand-mobile {
        display: none;
    }
}

@media (min-width: 980px) {
    .bottom-nav {
        bottom: 18px;
        left: 50%;
        max-width: 590px;
        right: auto;
        transform: translateX(-50%);
        width: calc(100% - 36px);
    }

    .module-page-head {
        min-height: 194px;
    }

    .module-page-head h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 420px) {
    .brand-copy small {
        display: none;
    }

    .home-hero {
        min-height: 292px;
    }

    .home-hero-copy {
        max-width: 86%;
    }

    .home-hero h1 {
        font-size: 2.26rem;
    }

    .home-hero-visual {
        opacity: .58;
    }

    .home-intro {
        max-width: 15rem;
    }

    .dashboard-v2-card {
        min-height: 155px;
        padding: 13px;
    }

    .dashboard-v2-card.featured {
        min-height: 176px;
    }

    .dashboard-v2-copy strong {
        font-size: 1.02rem;
    }

    .dashboard-v2-copy p {
        font-size: .66rem;
    }

    .dashboard-v2-eyebrow {
        display: none;
    }

    .dashboard-v2-card-top {
        grid-template-columns: auto 1fr;
    }

    .dashboard-v2-arrow {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .module-page-head {
        align-items: flex-end;
        min-height: 176px;
        padding: 19px;
    }

    .module-page-head h1 {
        font-size: 2.1rem;
    }

    .module-page-head p {
        max-width: 14rem;
    }

    .module-add-button {
        border-radius: 14px;
        padding: 10px;
    }

    .module-add-button span {
        display: none;
    }

    .calendar-toolbar {
        grid-template-columns: 1fr;
    }

    .calendar-toolbar-actions {
        justify-content: center;
    }

    .login-card {
        padding: 22px 18px;
    }
}

/* Actionable home */

.home-today-header {
    align-items: flex-end;
    background:
        radial-gradient(circle at 92% 12%, rgba(240, 182, 108, .2), transparent 12rem),
        linear-gradient(142deg, #0b4c47, #137066);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--nx-radius-large);
    box-shadow: 0 20px 55px rgba(7, 64, 59, .18);
    color: #fff;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    min-height: 180px;
    overflow: hidden;
    padding: 24px 22px;
    position: relative;
}

.home-today-header h1 {
    color: #fffef6;
    font-family: var(--nx-font-display);
    font-size: clamp(2.55rem, 10vw, 4.5rem);
    font-weight: 500;
    line-height: .92;
    margin-top: 13px;
}

.home-today-header .home-intro {
    margin-top: 10px;
}

.home-add-button {
    align-items: center;
    background: #fffefa;
    color: var(--nx-primary-strong);
    display: inline-flex;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 48px;
    padding: 11px 17px;
}

.home-add-button .nexo-icon {
    height: 17px;
    width: 17px;
}

.home-quick-panel {
    animation: nx-home-reveal .22s ease both;
    background: rgba(255, 254, 250, .94);
    border: 1px solid rgba(255, 255, 252, .92);
    border-radius: 0 0 22px 22px;
    box-shadow: var(--nx-shadow-small);
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: -3px 12px 0;
    padding: 17px 11px 11px;
}

.home-quick-action {
    align-items: center;
    background: var(--nx-primary-soft);
    border-radius: 13px;
    color: var(--nx-primary-strong);
    display: flex;
    font-size: .72rem;
    font-weight: 800;
    gap: 8px;
    min-height: 44px;
    padding: 8px 10px;
}

.home-quick-action span {
    align-items: center;
    background: rgba(255, 255, 255, .72);
    border-radius: 10px;
    display: inline-flex;
    flex: 0 0 auto;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.home-quick-action .nexo-icon {
    height: 15px;
    width: 15px;
}

.home-widget-grid {
    display: grid;
    gap: 11px;
    grid-template-columns: 1fr;
}

.home-widget {
    --card-accent: var(--nx-primary);
    --card-soft: var(--nx-primary-soft);
    --card-deep: var(--nx-primary-strong);
    background:
        linear-gradient(152deg, rgba(255, 255, 251, .98), color-mix(in srgb, var(--card-soft) 55%, white));
    border: 1px solid rgba(255, 255, 252, .92);
    border-radius: 22px;
    box-shadow: var(--nx-shadow-small);
    color: var(--card-deep);
    display: grid;
    min-height: 151px;
    padding: 16px;
    position: relative;
    transition: box-shadow .2s ease, transform .2s ease;
}

.home-widget::before {
    background: var(--card-accent);
    border-radius: 99px;
    content: "";
    height: 5px;
    left: 17px;
    opacity: .72;
    position: absolute;
    top: 0;
    width: 39px;
}

.home-widget:hover {
    box-shadow: 0 16px 38px rgba(31, 63, 58, .13);
    transform: translateY(-2px);
}

.home-widget.needs-attention::after {
    background: var(--nx-coral);
    border: 3px solid #fffefa;
    border-radius: 50%;
    content: "";
    height: 10px;
    position: absolute;
    right: 16px;
    top: 15px;
    width: 10px;
}

.home-widget-top {
    align-items: center;
    display: grid;
    gap: 9px;
    grid-template-columns: auto 1fr auto;
}

.home-widget-icon {
    align-items: center;
    background: var(--card-soft);
    border-radius: 12px;
    color: var(--card-accent);
    display: inline-flex;
    height: 37px;
    justify-content: center;
    width: 37px;
}

.home-widget-icon .nexo-icon,
.home-widget-arrow {
    height: 17px;
    width: 17px;
}

.home-widget-eyebrow {
    color: var(--card-accent);
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.home-widget-arrow {
    margin-right: 2px;
    opacity: .58;
}

.home-widget-copy {
    align-self: end;
    display: grid;
    gap: 2px;
    margin-top: 18px;
}

.home-widget-copy > span {
    color: var(--nx-muted);
    font-size: .69rem;
    font-weight: 750;
}

.home-widget-copy strong {
    color: var(--card-deep);
    font-size: 1.16rem;
}

.home-widget-copy p,
.home-inline-empty {
    color: var(--nx-muted);
    font-size: .69rem;
    line-height: 1.4;
}

.home-modules-heading {
    margin-top: 34px;
}

.home-module-grid .dashboard-v2-card {
    min-height: 148px;
}

.home-widget-skeleton {
    min-height: 151px;
}

.nexo-skeleton {
    background: rgba(255, 254, 250, .86);
    border: 1px solid rgba(255, 255, 252, .9);
    border-radius: 22px;
    box-shadow: var(--nx-shadow-small);
    display: grid;
    gap: 12px;
    overflow: hidden;
    padding: 20px;
    position: relative;
}

.nexo-skeleton::after {
    animation: nx-skeleton 1.25s ease-in-out infinite;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .8), transparent);
    content: "";
    inset: 0;
    position: absolute;
    transform: translateX(-100%);
}

.nexo-skeleton span {
    background: #e4e9e3;
    border-radius: 99px;
    display: block;
    height: 13px;
}

.nexo-skeleton span:nth-child(1) {
    height: 34px;
    width: 34px;
}

.nexo-skeleton span:nth-child(2) {
    width: 68%;
}

.nexo-skeleton span:nth-child(3) {
    width: 88%;
}

.module-order-setting {
    align-items: center;
    border-top: 1px solid rgba(23, 53, 50, .08);
    display: flex;
    justify-content: space-between;
    padding-top: 11px;
}

.module-order-setting > span {
    color: var(--nx-muted);
    font-size: .68rem;
    font-weight: 750;
}

.module-order-setting > div {
    display: flex;
    gap: 6px;
}

.module-order-button {
    align-items: center;
    background: var(--card-soft);
    border: 1px solid color-mix(in srgb, var(--card-accent) 15%, transparent);
    border-radius: 11px;
    color: var(--card-accent);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.module-order-button .nexo-icon {
    height: 16px;
    width: 16px;
}

.nexo-pwa-status {
    align-items: center;
    backdrop-filter: blur(20px);
    background: rgba(255, 254, 250, .96);
    border: 1px solid rgba(255, 255, 252, .94);
    border-radius: 18px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    box-shadow: 0 18px 48px rgba(20, 55, 49, .18);
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    left: 12px;
    max-width: 520px;
    padding: 11px 12px;
    position: fixed;
    z-index: 1800;
}

.nexo-pwa-status[hidden] {
    display: none;
}

.nexo-pwa-status-dot {
    background: var(--nx-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(12, 113, 105, .11);
    height: 9px;
    width: 9px;
}

.nexo-pwa-status.is-offline .nexo-pwa-status-dot {
    background: var(--nx-coral);
    box-shadow: 0 0 0 5px rgba(230, 129, 89, .13);
}

.nexo-pwa-status.is-update .nexo-pwa-status-dot {
    background: var(--nx-gold);
    box-shadow: 0 0 0 5px rgba(213, 164, 71, .14);
}

.nexo-pwa-status div {
    min-width: 0;
}

.nexo-pwa-status strong {
    display: block;
    font-size: .76rem;
}

.nexo-pwa-status p {
    color: var(--nx-muted);
    font-size: .64rem;
    margin: 1px 0 0;
}

.nexo-pwa-status [data-pwa-action] {
    background: var(--nx-primary);
    border: 0;
    border-radius: 11px;
    color: white;
    font-size: .68rem;
    font-weight: 800;
    min-height: 38px;
    padding: 7px 11px;
}

.nexo-pwa-close {
    background: transparent;
    border: 0;
    color: var(--nx-muted);
    font-size: 1.15rem;
    height: 38px;
    width: 34px;
}

.nexo-dialog-open {
    overflow: hidden;
}

.nexo-dialog-backdrop {
    align-items: flex-end;
    background: rgba(12, 35, 32, .45);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 12px 12px calc(88px + env(safe-area-inset-bottom));
    position: fixed;
    z-index: 1500;
}

.nexo-dialog {
    background: var(--nx-surface-solid);
    border: 1px solid rgba(255, 255, 252, .94);
    border-radius: 25px;
    box-shadow: 0 28px 90px rgba(10, 42, 38, .25);
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 112px - env(safe-area-inset-bottom));
    max-width: 620px;
    overflow: hidden;
    width: 100%;
}

.nexo-dialog-header {
    align-items: flex-start;
    display: flex;
    flex: 0 0 auto;
    gap: 16px;
    justify-content: space-between;
    padding: 19px 19px 13px;
}

.nexo-dialog-header span {
    color: var(--nx-primary);
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.nexo-dialog-header h2 {
    font-family: var(--nx-font-display);
    font-size: 1.65rem;
    font-weight: 550;
    margin-top: 2px;
}

.nexo-dialog-close {
    align-items: center;
    background: #edf1ec;
    border: 0;
    border-radius: 12px;
    color: var(--nx-muted);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.25rem;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.nexo-dialog-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 19px 20px;
}

.nexo-dialog-footer {
    background: rgba(255, 254, 250, .97);
    border-top: 1px solid rgba(23, 53, 50, .09);
    display: flex;
    flex: 0 0 auto;
    gap: 9px;
    justify-content: flex-end;
    padding: 12px 19px calc(12px + env(safe-area-inset-bottom));
}

.nexo-dialog-footer > * {
    min-height: 44px;
}

.nexo-confirm-message {
    color: var(--nx-muted);
    line-height: 1.58;
}

.nexo-field {
    display: grid;
    gap: 6px;
}

.nexo-field > label {
    color: var(--nx-text);
    font-size: .72rem;
    font-weight: 800;
}

.nexo-field > label span,
.nexo-field-error {
    color: var(--danger);
}

.nexo-field > small {
    color: var(--nx-muted);
    font-size: .64rem;
}

.nexo-field > input,
.nexo-field > select,
.nexo-field > textarea {
    min-height: 44px;
}

.nexo-tabs {
    background: rgba(231, 236, 229, .82);
    border-radius: 16px;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 4px;
    scrollbar-width: none;
}

.nexo-tabs button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 12px;
    color: var(--nx-muted);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .7rem;
    font-weight: 800;
    gap: 7px;
    min-height: 42px;
    padding: 8px 12px;
}

.nexo-tabs button.active {
    background: #fffefa;
    box-shadow: 0 5px 14px rgba(26, 55, 50, .08);
    color: var(--nx-primary-strong);
}

.nexo-tabs button span {
    background: var(--nx-primary-soft);
    border-radius: 99px;
    font-size: .6rem;
    padding: 2px 6px;
}

.nexo-toolbar {
    align-items: center;
    background: rgba(255, 254, 250, .88);
    border: 1px solid rgba(255, 255, 252, .9);
    border-radius: 18px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 9px;
}

.nexo-toolbar-main,
.nexo-toolbar-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nexo-pagination {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.nexo-pagination button {
    background: var(--nx-primary-soft);
    border: 0;
    border-radius: 12px;
    color: var(--nx-primary-strong);
    font-size: .7rem;
    font-weight: 800;
    min-height: 44px;
    padding: 9px 13px;
}

.nexo-pagination span {
    color: var(--nx-muted);
    font-size: .66rem;
}

.nexo-toast-host {
    bottom: calc(92px + env(safe-area-inset-bottom));
    display: grid;
    gap: 8px;
    left: 12px;
    max-width: 410px;
    pointer-events: none;
    position: fixed;
    right: 12px;
    z-index: 1900;
}

.nexo-toast {
    align-items: center;
    animation: nx-toast-in .22s ease both;
    background: rgba(255, 254, 250, .97);
    border: 1px solid rgba(255, 255, 252, .94);
    border-radius: 17px;
    box-shadow: 0 16px 45px rgba(20, 55, 49, .17);
    display: grid;
    gap: 10px;
    grid-template-columns: auto 1fr auto;
    padding: 11px 12px;
    pointer-events: auto;
}

.nexo-toast > span {
    background: var(--nx-primary);
    border-radius: 50%;
    height: 9px;
    width: 9px;
}

.nexo-toast.tone-success > span {
    background: #4d8c62;
}

.nexo-toast.tone-warning > span {
    background: var(--nx-gold);
}

.nexo-toast.tone-error > span {
    background: var(--danger);
}

.nexo-toast strong {
    display: block;
    font-size: .76rem;
}

.nexo-toast p {
    color: var(--nx-muted);
    font-size: .65rem;
    margin: 2px 0 0;
}

.nexo-toast button {
    background: transparent;
    border: 0;
    color: var(--nx-muted);
    font-size: 1.15rem;
    height: 38px;
    width: 34px;
}

.baby-shopping-action {
    background: var(--nx-primary-strong);
    color: white;
}

.baby-shopping-preview {
    background: var(--nx-primary-soft);
    border: 1px solid rgba(12, 113, 105, .1);
    border-radius: 16px;
    display: grid;
    gap: 9px;
    padding: 13px;
}

.baby-shopping-preview > strong {
    color: var(--nx-primary-strong);
    font-size: .77rem;
}

.baby-shopping-preview > p {
    color: var(--nx-muted);
    font-size: .7rem;
    margin: 0;
}

.baby-shopping-preview > div {
    display: grid;
    gap: 5px;
}

.baby-shopping-preview span {
    color: var(--nx-muted);
    font-size: .65rem;
}

@keyframes nx-toast-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

@keyframes nx-home-reveal {
    from {
        opacity: 0;
        transform: translateY(-7px);
    }
}

@keyframes nx-skeleton {
    to {
        transform: translateX(100%);
    }
}

@media (min-width: 600px) {
    .home-widget-grid,
    .home-quick-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 980px) {
    .home-widget-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .home-today-header {
        min-height: 210px;
        padding: 30px 32px;
    }

    .home-quick-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bottom-nav {
        align-items: stretch;
        bottom: 18px;
        flex-direction: column;
        gap: 5px;
        left: 18px;
        max-width: none;
        padding: 9px;
        right: auto;
        top: 96px;
        transform: none;
        width: 174px;
    }

    .bottom-nav .nav-link {
        flex: 0 0 auto;
        flex-direction: row;
        gap: 11px;
        justify-content: flex-start;
        min-height: 50px;
        padding: 9px 12px;
    }

    .bottom-nav .nav-link::before {
        height: 22px;
        left: 4px;
        top: 50%;
        transform: translateY(-50%) scaleY(.4);
        width: 3px;
    }

    .bottom-nav .nav-link.active::before {
        transform: translateY(-50%) scaleY(1);
    }

    .bottom-nav .nav-link span {
        font-size: .72rem;
    }

    .nexo-topbar.glass-card {
        left: calc(50% + 92px);
        max-width: 1110px;
        width: calc(100% - 230px);
    }

    .shell-content {
        margin-left: max(194px, calc((100% - 1310px) / 2 + 194px));
        margin-right: auto;
        max-width: 1110px;
        padding-bottom: 42px;
        width: calc(100% - 218px);
    }

    .nexo-pwa-status {
        bottom: 22px;
        left: auto;
        right: 22px;
    }

    .nexo-dialog-backdrop {
        align-items: center;
        padding: 28px;
    }

    .nexo-dialog {
        max-height: calc(100dvh - 56px);
    }

    .nexo-dialog-footer {
        padding-bottom: 12px;
    }

    .nexo-toast-host {
        bottom: 22px;
        left: auto;
        right: 22px;
        width: 390px;
    }
}

@media (max-width: 420px) {
    .home-today-header {
        align-items: flex-start;
        flex-direction: column;
        min-height: 205px;
        padding: 21px 18px;
    }

    .home-add-button {
        align-self: stretch;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
.finance-bridge-preview {
    display: grid;
    gap: var(--nx-space-3);
    padding: var(--nx-space-4);
    border: 1px solid var(--nx-outline);
    border-radius: var(--nx-radius);
    background: color-mix(in srgb, var(--nx-surface) 86%, var(--nx-finance) 14%);
}

.finance-bridge-preview > div:not(.module-list) {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--nx-space-3);
}

.finance-bridge-preview > div > span,
.finance-bridge-preview > small {
    color: var(--nx-muted);
}

.finance-bridge-preview .is-muted {
    opacity: .58;
}

.calendar-search {
    min-width: min(16rem, 100%);
}

.calendar-file-action {
    position: relative;
    cursor: pointer;
}

.calendar-file-action input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

@media print {
    .nexo-nav,
    .module-bottom-nav,
    .shopping-tabs,
    .shopping-item-actions,
    .nexo-toolbar,
    .nexo-pagination,
    .module-fab {
        display: none !important;
    }

    body,
    .app-shell,
    .module-page {
        background: #fff !important;
    }

    .glass-card {
        box-shadow: none !important;
        break-inside: avoid;
    }
}

.weight-chart-hit {
    fill: transparent;
    stroke: transparent;
    cursor: crosshair;
}

.weight-chart-hit:focus-visible {
    fill: color-mix(in srgb, var(--nx-health) 25%, transparent);
    stroke: var(--nx-health);
    stroke-width: 2;
    outline: none;
}

.finance-budget-row {
    display: grid;
    gap: var(--nx-space-2);
    padding: var(--nx-space-3) 0;
}

.finance-budget-row > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: var(--nx-space-3);
}

.finance-budget-track {
    height: .55rem;
    overflow: hidden;
    border-radius: 999px;
    background: color-mix(in srgb, var(--nx-text) 10%, transparent);
}

.finance-budget-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--nx-coral);
}

.finance-setup-grid {
    display: grid;
    gap: var(--nx-space-5);
}

.finance-section-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--nx-space-2);
}

.finance-import-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
    gap: var(--nx-space-2);
}

.finance-import-summary > div {
    display: grid;
    gap: .2rem;
    padding: var(--nx-space-3);
    border: 1px solid var(--nx-outline);
    border-radius: var(--nx-radius-small);
    background: var(--nx-surface);
}

.finance-import-summary span {
    color: var(--nx-muted);
    font-size: .78rem;
}

.finance-import-table {
    max-height: 44dvh;
    overflow: auto;
    border: 1px solid var(--nx-outline);
    border-radius: var(--nx-radius-small);
}

.finance-import-table .finance-table {
    min-width: 44rem;
}

.finance-import-table .is-error {
    color: var(--danger);
}

.finance-import-table .is-muted {
    opacity: .56;
}

.calendar-toolbar-actions,
.calendar-preset-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--nx-space-2);
}

.calendar-toolbar-actions .calendar-search {
    flex: 1 1 14rem;
}

.calendar-agenda-list {
    display: grid;
    gap: var(--nx-space-5);
    margin-top: var(--nx-space-4);
}

.calendar-agenda-day {
    display: grid;
    gap: var(--nx-space-2);
}

.calendar-agenda-day > time {
    color: var(--nx-primary-strong);
    font-family: var(--nx-font-display);
    font-weight: 700;
    text-transform: capitalize;
}

.calendar-agenda-button {
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    text-align: left;
}

.calendar-agenda-color {
    width: .72rem;
    height: 2.4rem;
    border-radius: 999px;
    background: var(--calendar-event-color, var(--nx-primary));
}

.calendar-color-field {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--nx-space-3);
    min-height: 44px;
}

.calendar-color-field input[type="color"] {
    width: 4rem;
    min-height: 44px;
    padding: .2rem;
    border: 1px solid var(--nx-outline);
    border-radius: var(--nx-radius-small);
    background: var(--nx-surface-solid);
}

.baby-week-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--nx-space-2);
}

.baby-week-nav {
    display: grid;
    grid-template-columns: 44px minmax(64px, auto) 44px;
    gap: var(--nx-space-2);
    flex: 0 0 auto;
}

.baby-week-nav .shopping-mini {
    min-width: 44px;
}

.baby-template-panel {
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--nx-primary-soft) 74%, transparent), transparent 60%),
        var(--nx-surface);
}

.baby-template-panel .shopping-item-row {
    border-left: 3px solid var(--nx-primary);
}

.wardrobe-suggestions {
    background:
        radial-gradient(circle at 92% 0, color-mix(in srgb, var(--nx-coral) 20%, transparent), transparent 12rem),
        var(--nx-surface);
}

.wardrobe-load-more {
    width: min(100%, 22rem);
    margin: var(--nx-space-4) auto var(--nx-space-5);
}

.wardrobe-usage-calendar {
    display: grid;
    grid-template-columns: repeat(15, minmax(8px, 1fr));
    gap: 5px;
}

.wardrobe-usage-calendar > span {
    aspect-ratio: 1;
    min-width: 8px;
    border-radius: 4px;
    background: color-mix(in srgb, var(--nx-outline) 72%, transparent);
}

.wardrobe-usage-calendar .usage-level-1 {
    background: color-mix(in srgb, var(--nx-primary) 30%, var(--nx-surface));
}

.wardrobe-usage-calendar .usage-level-2 {
    background: color-mix(in srgb, var(--nx-primary) 52%, var(--nx-surface));
}

.wardrobe-usage-calendar .usage-level-3 {
    background: color-mix(in srgb, var(--nx-primary) 74%, var(--nx-surface));
}

.wardrobe-usage-calendar .usage-level-4 {
    background: var(--nx-primary-strong);
}

.finance-close-card {
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--nx-finance) 18%, transparent), transparent 15rem),
        var(--nx-surface);
}

.finance-close-steps {
    display: grid;
    gap: var(--nx-space-2);
    margin: var(--nx-space-4) 0;
}

.finance-close-step {
    display: grid;
    grid-template-columns: 2.3rem minmax(0, 1fr);
    align-items: center;
    gap: var(--nx-space-3);
    padding: var(--nx-space-3);
    border: 1px solid var(--nx-outline);
    border-radius: var(--nx-radius-small);
    background: color-mix(in srgb, var(--nx-surface-solid) 84%, transparent);
}

.finance-close-step > span {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    background: var(--nx-container);
    color: var(--nx-muted);
    font-weight: 800;
}

.finance-close-step > div {
    display: grid;
    gap: .15rem;
}

.finance-close-step small {
    color: var(--nx-muted);
}

.finance-close-step.complete {
    border-color: color-mix(in srgb, var(--nx-finance) 44%, var(--nx-outline));
}

.finance-close-step.complete > span {
    background: var(--nx-finance);
    color: #fff;
}

@media (min-width: 768px) {
    .calendar-agenda-day {
        grid-template-columns: 7.5rem minmax(0, 1fr);
        align-items: start;
    }

    .wardrobe-usage-calendar {
        grid-template-columns: repeat(30, minmax(8px, 1fr));
    }

    .finance-close-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 390px) {
    .baby-week-actions {
        align-items: stretch;
    }

    .baby-week-nav {
        width: 100%;
        grid-template-columns: 44px 1fr 44px;
    }
}

@media (max-width: 760px) {
    .nexo-input,
    .form-select,
    .form-card input,
    .form-card textarea,
    .module-form-grid input,
    .module-form-grid select,
    .module-form-grid textarea,
    .account-input {
        font-size: 16px;
    }
}

/* Readability and interaction polish */
.brand-copy small {
    font-size: .72rem;
}

.module-page-head p {
    font-size: .88rem;
    line-height: 1.55;
    max-width: 32rem;
}

.module-card-category,
.module-order-setting > span {
    font-size: .75rem;
}

.module-card-description {
    font-size: .84rem;
    line-height: 1.55;
    min-height: 2.6rem;
}

.module-open,
.module-card .module-toggle,
.module-admin-lock {
    font-size: .82rem;
}

.module-nav-setting strong {
    font-size: .84rem;
}

.module-nav-setting span {
    font-size: .75rem;
    line-height: 1.4;
}

.home-kicker {
    font-size: .75rem;
}

.home-date {
    font-size: .84rem;
}

.home-quick-action {
    font-size: .8rem;
    line-height: 1.35;
}

.home-widget-eyebrow {
    font-size: .75rem;
}

.home-widget-copy > span {
    font-size: .78rem;
}

.home-widget-copy p,
.home-inline-empty {
    font-size: .78rem;
    line-height: 1.5;
}

.nexo-empty-state {
    min-height: 0;
    padding: 18px;
}

.nexo-empty-state strong {
    font-size: 1.1rem;
}

.nexo-empty-state p {
    font-size: .84rem;
    line-height: 1.55;
}

.home-empty {
    align-content: center;
    justify-items: center;
    min-height: 15rem;
    text-align: center;
}

.nexo-empty-state.module-inactive-state {
    align-content: center;
    min-height: 17rem;
}

.form-card label,
.module-form-grid label,
.nexo-field > label {
    font-size: .8125rem;
}

.nexo-field > small {
    font-size: .8125rem;
    line-height: 1.45;
}

.nexo-field > .nexo-field-error {
    color: var(--danger);
    font-size: .8125rem;
}

.nexo-tabs button,
.nexo-pagination button {
    font-size: .78rem;
    min-height: 44px;
}

.nexo-pagination span {
    font-size: .75rem;
}

.nexo-toast strong {
    font-size: .82rem;
}

.nexo-toast p,
.nexo-pwa-status p {
    font-size: .75rem;
    line-height: 1.4;
}

.nexo-pwa-status [data-pwa-action] {
    font-size: .76rem;
    min-height: 44px;
}

.nexo-pwa-close,
.nexo-toast button {
    height: 44px;
    min-width: 44px;
    width: 44px;
}

button:not(:disabled) {
    touch-action: manipulation;
}

button:not(:disabled):active,
.home-widget:active,
.dashboard-v2-card:active,
.home-quick-action:active {
    transform: scale(.985);
}

@media (max-width: 600px) {
    .nexo-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .nexo-toolbar-main,
    .nexo-toolbar-actions {
        width: 100%;
    }

    .nexo-toolbar-main > .nexo-input,
    .nexo-toolbar-main > .form-select {
        flex: 1 1 100%;
        min-width: 0;
    }
}

.module-card-actions {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
}

.module-card.is-disabled .module-card-actions,
.module-card.is-blocked .module-card-actions {
    grid-template-columns: 1fr;
}

.module-card .module-open,
.module-card .module-toggle,
.module-card .module-admin-lock {
    min-height: 44px;
}

.module-card .module-toggle {
    background: var(--nx-surface-solid);
    border: 1px solid var(--nx-outline);
    border-radius: 13px;
    color: var(--nx-muted);
    font-weight: 780;
}

.module-preferences {
    border-top: 1px solid rgba(23, 53, 50, .1);
    padding-top: 6px;
}

.module-preferences summary {
    align-items: center;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    list-style: none;
    min-height: 48px;
    padding: 4px 7px;
}

.module-preferences summary::-webkit-details-marker {
    display: none;
}

.module-preferences summary > span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.module-preferences summary strong {
    color: var(--nx-text);
    font-size: .84rem;
}

.module-preferences summary small {
    color: var(--nx-muted);
    font-size: .75rem;
    line-height: 1.35;
}

.module-preferences summary > .nexo-icon {
    color: var(--nx-muted);
    flex: 0 0 auto;
    height: 18px;
    transition: transform .18s ease;
    width: 18px;
}

.module-preferences[open] summary {
    padding-bottom: 10px;
}

.module-preferences[open] summary > .nexo-icon {
    transform: rotate(180deg);
}

.module-preferences-body {
    display: grid;
    gap: 10px;
    padding: 0 7px 5px;
}

.module-preferences-body .module-nav-setting {
    padding-top: 10px;
}

@media (max-width: 360px) {
    .module-card-actions {
        grid-template-columns: 1fr;
    }
}

.calendar-weekdays span {
    color: var(--nx-muted);
    font-size: .72rem;
    font-weight: 780;
}

.calendar-day-cell {
    min-height: 92px;
    padding: 5px;
}

.calendar-day-cell.selected {
    background: var(--nx-primary-soft);
    border-color: color-mix(in srgb, var(--nx-primary) 38%, var(--nx-outline));
}

.calendar-day-cell.today {
    border-color: var(--nx-primary);
    box-shadow: inset 0 0 0 1px var(--nx-primary);
}

.calendar-day-button {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 34px;
    width: 100%;
}

.calendar-day-button span {
    align-items: center;
    border-radius: 50%;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.calendar-day-button small {
    align-items: center;
    background: var(--nx-container);
    border-radius: 999px;
    color: var(--nx-primary-strong);
    display: inline-flex;
    font-size: .72rem;
    height: 24px;
    justify-content: center;
    min-width: 24px;
    padding: 0 5px;
}

.calendar-day-cell.today .calendar-day-button span {
    background: var(--nx-primary-strong);
    color: #fff;
}

.calendar-day-cell.selected:not(.today) .calendar-day-button span {
    background: #fff;
    color: var(--nx-primary-strong);
}

.calendar-day-button:focus-visible {
    outline-offset: 1px;
}

@media (max-width: 520px) {
    .calendar-day-cell {
        min-height: 64px;
    }

    .calendar-day-button {
        align-items: flex-start;
        justify-content: flex-start;
        min-height: 44px;
        padding: 2px;
        position: relative;
    }

    .calendar-day-button span {
        height: 24px;
        width: 24px;
    }

    .calendar-day-button small {
        bottom: 0;
        font-size: .75rem;
        height: 18px;
        min-width: 18px;
        position: absolute;
        right: 0;
        top: auto;
    }

    .calendar-day-events .calendar-event-pill,
    .calendar-day-events .calendar-more-pill {
        display: none;
    }
}
