:root {
    --page: #10251e;
    --page-2: #17352b;
    --surface: #fbfaf4;
    --surface-soft: #f1efe5;
    --surface-deep: #203c31;
    --text: #1c241f;
    --text-inverse: #fbfaf4;
    --muted: #68736b;
    --muted-inverse: rgba(251, 250, 244, 0.76);
    --line: #ded8c7;
    --line-dark: rgba(251, 250, 244, 0.16);
    --primary: #234b3b;
    --primary-strong: #18362b;
    --gold: #c59a42;
    --gold-soft: #f3e3bd;
    --warning: #8a621e;
    --danger: #9a3232;
    --success: #2f6b48;
    --shadow: 0 22px 58px rgba(5, 22, 15, 0.22);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background: var(--page);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: 0.66;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 16px;
    font-size: 2.45rem;
    line-height: 1.08;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

h2 {
    margin-bottom: 8px;
    font-size: 1.75rem;
    line-height: 1.18;
    letter-spacing: 0;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.08rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.app-shell {
    min-height: 100vh;
}

.auth-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: 100vh;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(197, 154, 66, 0.12), transparent 34%),
        linear-gradient(180deg, var(--page), #0b1814);
}

.auth-layout > * {
    min-width: 0;
}

.hefili-login {
    position: relative;
    place-items: center;
    overflow: hidden;
    padding: 22px;
    color: var(--text-inverse);
    background:
        radial-gradient(circle at 50% 0%, rgba(197, 154, 66, 0.14), transparent 34%),
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.06), transparent 26%),
        linear-gradient(180deg, #10251e 0%, #07120f 78%);
}

.hefili-login::before,
.hefili-login::after {
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid rgba(197, 154, 66, 0.14);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.hefili-login::before {
    top: -120px;
    left: -90px;
}

.hefili-login::after {
    right: -120px;
    bottom: -150px;
}

.login-language {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(197, 154, 66, 0.55);
    border-radius: 999px;
    color: var(--text-inverse);
    background: rgba(7, 18, 15, 0.58);
    box-shadow: 0 0 24px rgba(197, 154, 66, 0.12);
    font-size: 0.9rem;
    font-weight: 800;
}

.login-language span:first-child,
.login-language span:last-child {
    color: var(--gold);
}

.login-stage {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.72fr);
    gap: 34px;
    align-items: center;
    width: min(1120px, 100%);
}

.hefili-login .auth-intro {
    align-items: center;
    justify-content: center;
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.hefili-wordmark {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
    color: var(--text-inverse);
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.brand-mark {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(197, 154, 66, 0.7);
    border-radius: 50%;
    color: var(--gold-soft);
    background: rgba(197, 154, 66, 0.1);
    box-shadow: 0 0 32px rgba(197, 154, 66, 0.16);
    font-size: 1rem;
    letter-spacing: 0;
}

.brand-tagline,
.brand-proof {
    color: var(--gold-soft);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hefili-login h1 {
    margin: 22px 0 18px;
    color: var(--text-inverse);
    font-size: clamp(2.7rem, 7vw, 5.5rem);
    line-height: 0.98;
    text-shadow: 0 18px 58px rgba(0, 0, 0, 0.36);
}

.login-panel {
    display: grid;
    gap: 18px;
}

.hefili-login .auth-card {
    max-width: 440px;
    justify-self: center;
    padding: 26px;
    border-color: rgba(197, 154, 66, 0.34);
    color: var(--text-inverse);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
        rgba(18, 38, 31, 0.82);
    box-shadow:
        0 26px 80px rgba(0, 0, 0, 0.36),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    backdrop-filter: blur(18px);
}

.hefili-login .section-heading h2 {
    color: var(--text-inverse);
    font-size: 1.65rem;
}

.hefili-login .section-heading p:not(.eyebrow) {
    color: var(--muted-inverse);
}

.hefili-login label {
    color: var(--text-inverse);
}

.field-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.field-label-row label {
    margin-bottom: 7px;
}

.forgot-link {
    margin-bottom: 7px;
    color: var(--gold-soft);
    font-size: 0.86rem;
}

.hefili-login input {
    border-color: rgba(197, 154, 66, 0.28);
    color: var(--text-inverse);
    background: rgba(3, 13, 10, 0.42);
}

.hefili-login input::placeholder {
    color: rgba(251, 250, 244, 0.48);
}

.password-control {
    position: relative;
}

.password-control input {
    padding-right: 76px;
}

.password-toggle {
    position: absolute;
    top: 7px;
    right: 7px;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(197, 154, 66, 0.34);
    border-radius: 8px;
    color: var(--gold-soft);
    background: rgba(197, 154, 66, 0.08);
    font-size: 0.82rem;
    font-weight: 900;
}

.hefili-login .button.primary {
    width: 100%;
    min-height: 52px;
    margin-top: 4px;
    color: #12110c;
    background: linear-gradient(135deg, #f1d184, #c59a42 52%, #ad7a24);
    box-shadow: 0 16px 34px rgba(197, 154, 66, 0.24);
}

.hefili-login .button.primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ffe09a, #d1a74d 52%, #bd882d);
}

.hefili-login .inline-action {
    color: var(--muted-inverse);
}

.hefili-login .text-button {
    color: var(--gold-soft);
}

.hefili-login .status-message {
    border-color: rgba(197, 154, 66, 0.24);
    color: var(--muted-inverse);
    background: rgba(3, 13, 10, 0.36);
}

.hefili-login .status-message.is-error {
    border-color: rgba(255, 139, 139, 0.38);
    color: #ffd0d0;
    background: rgba(84, 20, 20, 0.42);
}

.hefili-login .status-message.is-success {
    border-color: rgba(135, 208, 154, 0.38);
    color: #caf2d4;
    background: rgba(18, 72, 38, 0.42);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 640px;
}

.trust-grid article {
    min-height: 120px;
    padding: 14px;
    border: 1px solid rgba(197, 154, 66, 0.2);
    border-radius: 8px;
    color: var(--text-inverse);
    background: rgba(255, 255, 255, 0.045);
}

.trust-grid span {
    display: block;
    width: 30px;
    height: 2px;
    margin-bottom: 12px;
    background: var(--gold);
    box-shadow: 0 0 18px rgba(197, 154, 66, 0.35);
}

.trust-grid h3 {
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.trust-grid p {
    margin-bottom: 0;
    color: var(--muted-inverse);
    font-size: 0.86rem;
}

.auth-intro {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 360px;
    padding: 40px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    color: var(--text-inverse);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
        var(--surface-deep);
    box-shadow: var(--shadow);
}

.auth-intro.compact {
    justify-content: center;
}

.auth-intro p {
    max-width: 560px;
    color: var(--muted-inverse);
}

.surface {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.auth-card,
.onboarding-card {
    align-self: center;
    width: 100%;
    max-width: 560px;
    padding: 28px;
}

.onboarding-card {
    max-width: 760px;
}

.section-heading p,
.screen-heading p {
    margin-bottom: 0;
}

.eyebrow {
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.auth-intro .eyebrow {
    color: var(--gold-soft);
}

.field {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.93rem;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    background: #fffefa;
    outline: none;
}

textarea {
    min-height: 92px;
    padding-top: 12px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(197, 154, 66, 0.22);
}

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

.button-row {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.button:active:not(:disabled) {
    transform: translateY(1px);
}

.button.primary {
    color: #101915;
    background: var(--gold);
}

.button.primary:hover:not(:disabled) {
    background: #d4aa52;
}

.button.secondary {
    color: var(--primary);
    border-color: var(--line);
    background: #fffefa;
}

.button.secondary:hover:not(:disabled) {
    border-color: var(--gold);
}

.button.danger {
    width: auto;
    margin-top: 18px;
    color: #ffffff;
    background: var(--danger);
}

.compact-button {
    width: auto;
    min-width: 116px;
}

.text-button {
    min-height: 0;
    padding: 0;
    border: 0;
    color: var(--primary);
    background: transparent;
    font-weight: 800;
}

.text-button:hover:not(:disabled) {
    text-decoration: underline;
}

.inline-action {
    margin: 18px 0 0;
    color: var(--muted);
    text-align: center;
    overflow-wrap: anywhere;
}

.choice-stack {
    display: grid;
    gap: 12px;
}

.choice-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 76px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffefa;
}

.choice-card input {
    width: 20px;
    min-height: 20px;
    accent-color: var(--gold);
}

.choice-card:has(input:checked) {
    border-color: var(--gold);
    outline: 2px solid rgba(197, 154, 66, 0.24);
    background: #fff8e6;
}

.choice-card strong,
.choice-card small {
    display: block;
}

.choice-card small {
    color: var(--muted);
    font-weight: 400;
}

.status-message {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: var(--surface-soft);
    font-size: 0.93rem;
}

.status-message.is-error {
    border-color: rgba(154, 50, 50, 0.32);
    color: var(--danger);
    background: #fff3f2;
}

.status-message.is-success {
    border-color: rgba(47, 107, 72, 0.32);
    color: var(--success);
    background: #eef8f0;
}

.status-message.is-warning {
    border-color: rgba(138, 98, 30, 0.32);
    color: var(--warning);
    background: #fff7e8;
}

.progress-track {
    height: 8px;
    margin: 18px 0 24px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-soft);
}

.progress-bar {
    width: 14%;
    height: 100%;
    background: var(--gold);
    transition: width 160ms ease;
}

.app-layout {
    min-height: 100vh;
    padding: 20px;
    padding-bottom: 94px;
    background:
        linear-gradient(180deg, rgba(197, 154, 66, 0.1), transparent 220px),
        var(--page);
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto 16px;
    color: var(--text-inverse);
}

.topbar h1 {
    margin-bottom: 0;
    font-size: 2rem;
}

.account-chip {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
    color: var(--muted-inverse);
    font-size: 0.9rem;
}

.primary-nav {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    max-width: 760px;
    margin: 0 auto;
    padding: 8px;
    border: 1px solid var(--line-dark);
    border-radius: 8px;
    background: rgba(16, 37, 30, 0.96);
    box-shadow: var(--shadow);
}

.nav-item {
    min-height: 46px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted-inverse);
    background: transparent;
    font-weight: 800;
}

.nav-item.is-active {
    color: #101915;
    border-color: var(--gold);
    background: var(--gold);
}

.content-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.screen-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    color: var(--text-inverse);
}

.screen-heading h2 {
    color: var(--text-inverse);
}

.dashboard-grid,
.habit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.habit-form {
    margin-bottom: 16px;
    padding: 20px;
}

.compact-heading {
    margin-bottom: 8px;
    color: var(--text);
}

.compact-heading h3 {
    color: var(--text);
}

.dashboard-grid > .surface,
.habit-grid > .surface,
#daily-plan-detail {
    padding: 20px;
}

.wide-card {
    grid-column: 1 / -1;
}

.focus-card {
    color: var(--text-inverse);
    border-color: var(--line-dark);
    background: linear-gradient(135deg, #254c3d, #17352b);
}

.focus-card h3 {
    max-width: 520px;
    font-size: 1.45rem;
}

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

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border: 1px solid rgba(197, 154, 66, 0.38);
    border-radius: 999px;
    color: #18362b;
    background: var(--gold-soft);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.pill.muted {
    color: var(--muted);
    border-color: var(--line);
    background: var(--surface-soft);
}

.pill.warning {
    color: var(--warning);
    border-color: rgba(138, 98, 30, 0.2);
    background: #fff7e8;
}

.definition-list {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
    gap: 10px 14px;
    margin: 0 0 16px;
}

.definition-list dt {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.definition-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.state-panel {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: var(--surface-soft);
}

.state-panel p:last-child {
    margin-bottom: 0;
}

.state-panel.success {
    color: var(--success);
    background: #eef8f0;
}

.compact-panel {
    margin-bottom: 16px;
}

.coach-loop {
    margin-bottom: 14px;
    color: var(--text);
    background: #fff8e6;
}

.journey-loop {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 0;
}

.journey-loop span {
    min-height: 38px;
    padding: 8px;
    border: 1px solid rgba(197, 154, 66, 0.4);
    border-radius: 8px;
    color: inherit;
    text-align: center;
    font-size: 0.86rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.08);
}

.helper-text {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.preview-list {
    margin: 0 0 16px;
    padding-left: 18px;
}

.preview-list li + li {
    margin-top: 6px;
}

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

.goal-card {
    min-height: 148px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffefa;
}

.goal-card h3 {
    margin-bottom: 6px;
}

.goal-card p:not(.eyebrow) {
    color: var(--muted);
}

.goal-card.is-complete {
    border-color: var(--success);
    background: #eef8f0;
}

.roadmap-list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.roadmap-list li {
    min-height: 104px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffefa;
}

.roadmap-list span,
.roadmap-list strong,
.roadmap-list small {
    display: block;
}

.roadmap-list span {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.roadmap-list strong {
    margin: 5px 0;
}

.roadmap-list small {
    color: var(--muted);
}

.roadmap-list .is-current {
    border-color: var(--gold);
    background: #fff8e6;
}

.coach-shell {
    padding: 20px;
}

.coach-context {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.coach-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.chat-list {
    display: grid;
    gap: 12px;
}

.chat-bubble {
    max-width: 720px;
    padding: 14px 16px;
    border-radius: 8px;
}

.chat-bubble.coach {
    color: var(--text);
    background: var(--surface-soft);
}

.chat-bubble.user {
    justify-self: end;
    color: var(--text-inverse);
    background: var(--primary);
}

.follow-up-panel,
.small-win-panel {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffefa;
}

.chat-composer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin: 18px 0;
}

.chart-placeholder {
    display: grid;
    min-height: 180px;
    place-items: center;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    background:
        linear-gradient(to top, transparent 24%, rgba(222, 216, 199, 0.55) 25%, transparent 26%),
        linear-gradient(to right, transparent 24%, rgba(222, 216, 199, 0.55) 25%, transparent 26%);
    background-size: 44px 44px;
}

.review-decisions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

@media (min-width: 901px) {
    .auth-layout {
        grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.72fr);
    }
}

@media (min-width: 1020px) {
    .app-layout {
        display: grid;
        grid-template-columns: 170px minmax(0, 1fr);
        gap: 22px;
        padding-bottom: 20px;
    }

    .topbar {
        grid-column: 1 / -1;
        width: 100%;
    }

    .primary-nav {
        position: sticky;
        top: 20px;
        right: auto;
        bottom: auto;
        left: auto;
        grid-template-columns: 1fr;
        align-self: start;
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .content-shell {
        width: 100%;
        margin: 0;
    }
}

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .login-stage {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 46px;
    }

    .hefili-login .auth-card {
        max-width: 520px;
    }

    .auth-intro {
        min-height: auto;
    }

    .dashboard-grid,
    .habit-grid {
        grid-template-columns: 1fr;
    }

    .goal-grid,
    .roadmap-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .auth-layout,
    .app-layout {
        padding: 14px;
        padding-bottom: 90px;
    }

    .auth-intro,
    .auth-card,
    .onboarding-card {
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }

    h1 {
        font-size: 1.65rem;
    }

    .auth-card {
        overflow: hidden;
    }

    .hefili-login {
        align-items: start;
        padding: 14px;
        padding-bottom: 28px;
    }

    .login-language {
        position: relative;
        top: auto;
        right: auto;
        justify-self: start;
        min-height: 36px;
        margin-bottom: 12px;
        padding: 0 12px;
        font-size: 0.82rem;
    }

    .login-stage {
        gap: 20px;
        width: 100%;
        max-width: 292px;
        justify-self: start;
        padding-top: 0;
    }

    .hefili-login .login-brand {
        align-items: flex-start;
        text-align: left;
    }

    .hefili-wordmark {
        gap: 10px;
        margin-bottom: 8px;
        font-size: 1.05rem;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-tagline,
    .brand-proof {
        font-size: 0.66rem;
        line-height: 1.5;
    }

    .hefili-login h1 {
        margin: 16px 0 12px;
        font-size: 1.8rem;
    }

    .hefili-login .auth-card {
        max-width: 100%;
        padding: 18px;
    }

    .hefili-login .login-panel {
        width: 100%;
    }

    .hefili-login .inline-action .text-button {
        white-space: normal;
    }

    .field-label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .forgot-link {
        align-self: flex-end;
    }

    .password-control input {
        padding-right: 70px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }

    .trust-grid article {
        min-height: auto;
        padding: 12px;
    }

    .inline-action {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
    }

    h2 {
        font-size: 1.42rem;
    }

    .topbar,
    .screen-heading,
    .card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .account-chip {
        align-items: flex-start;
    }

    .primary-nav {
        right: 8px;
        bottom: 8px;
        left: 8px;
        gap: 4px;
    }

    .nav-item {
        min-height: 48px;
        padding: 0 4px;
        font-size: 0.82rem;
    }

    .form-grid,
    .shell-grid,
    .definition-list,
    .chat-composer,
    .journey-loop {
        grid-template-columns: 1fr;
    }

    .button-row {
        flex-direction: column;
    }

    .button,
    .compact-button {
        width: 100%;
    }
}
