:root {
    --bg: #f7f5f2;
    --surface: #ffffff;
    --surface-soft: #fbefef;
    --surface-green: #eef4f1;
    --text: #242826;
    --muted: #6e7672;
    --line: #e7e2de;
    --primary: #5d7f70;
    --primary-dark: #49685b;
    --rose: #e8c5c7;
    --shadow: 0 10px 28px rgba(43, 55, 49, .07);
    --radius: 20px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    color-scheme: light;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-frame {
    min-height: 100dvh;
}

.page-shell {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 22px 16px 36px;
}

.page-shell--selection {
    max-width: 560px;
}

.page-shell--with-nav {
    padding-bottom: calc(112px + var(--safe-bottom));
}

.page-shell--form {
    padding-bottom: calc(120px + var(--safe-bottom));
}

.eyebrow {
    color: var(--muted);
    font-size: .79rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 4px;
    font-size: clamp(1.7rem, 7vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -.03em;
}

h2 {
    margin-bottom: 0;
    font-size: 1.15rem;
    letter-spacing: -.015em;
}

p {
    color: var(--muted);
    line-height: 1.55;
}

.mobile-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.tenant-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.85);
    box-shadow: 0 5px 16px rgba(43,55,49,.04);
    color: var(--text);
    font-size: .9rem;
    font-weight: 700;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.brand-panel {
    padding: 46px 6px 28px;
    text-align: center;
}

.brand-panel p {
    margin-bottom: 0;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin: 0 auto 18px;
    border-radius: 24px;
    background: var(--surface-green);
    font-size: 2rem;
    box-shadow: var(--shadow);
}

.tenant-list,
.stack {
    display: grid;
    gap: 12px;
}

.tenant-card,
.day-card,
.menu-row {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.tenant-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 12px 14px;
    text-align: left;
    color: var(--text);
    cursor: pointer;
}

.tenant-card__avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--surface-green);
    color: var(--primary-dark);
    font-weight: 900;
}

.tenant-card__name {
    font-size: 1rem;
    font-weight: 800;
}

.tenant-card__arrow,
.day-card__trail {
    color: var(--muted);
    font-size: 1.6rem;
}

.panel,
.intro-card,
.loading-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel {
    padding: 18px;
    margin-bottom: 14px;
}

.loading-card {
    padding: 20px;
    color: var(--muted);
}

.intro-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 16px;
    background: var(--surface-green);
}

.intro-card__symbol {
    font-size: 1.7rem;
}

.intro-card strong {
    display: block;
    margin-bottom: 4px;
}

.intro-card p {
    margin: 0;
    font-size: .92rem;
}

.day-card {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 14px;
}

.day-card.is-complete {
    border-color: rgba(93, 127, 112, .35);
}

.day-card__symbol {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: var(--surface-soft);
    font-size: 1.55rem;
}

.day-card.is-complete .day-card__symbol {
    background: var(--surface-green);
}

.day-card__title {
    margin-bottom: 4px;
    font-weight: 850;
}

.day-card__status {
    color: var(--muted);
    font-size: .88rem;
}

.mini-energy {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--surface-green);
    color: var(--primary-dark);
    font-size: .82rem;
    font-weight: 800;
    white-space: nowrap;
}

.today-summary {
    margin-top: 18px;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.energy-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.energy-timeline__point {
    min-width: 0;
    padding: 10px 6px;
    border-radius: 16px;
    background: var(--bg);
    text-align: center;
}

.energy-timeline__symbol {
    margin-bottom: 4px;
    font-size: 1.35rem;
}

.energy-timeline__value {
    font-weight: 900;
}

.energy-timeline__label {
    overflow: hidden;
    margin-top: 2px;
    color: var(--muted);
    font-size: .72rem;
    text-overflow: ellipsis;
}

.bottom-nav {
    position: fixed;
    z-index: 100;
    left: 50%;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(100%, 760px);
    padding: 8px 10px calc(8px + var(--safe-bottom));
    transform: translateX(-50%);
    border: 1px solid #a8bfae;
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.bottom-nav__item {
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 54px;
    border-radius: 14px;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 800;
}

.bottom-nav__item.active {
    background: var(--surface-green);
    color: var(--primary-dark);
}

.bottom-nav__icon {
    min-height: 24px;
    font-size: 1.2rem;
    line-height: 1;
}

.form-header {
    display: grid;
    grid-template-columns: 46px 1fr;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.icon-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
}

.field-label,
.selector-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 850;
}

.field-label--spaced {
    margin-top: 18px;
}

.field-help {
    margin: -3px 0 10px;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.45;
}

.text-input,
.text-area {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: none;
    background: var(--surface-soft);
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.text-input {
    min-height: 50px;
    padding: 0 14px;
}

.text-area {
    min-height: 126px;
    padding: 13px 14px;
    resize: vertical;
    line-height: 1.5;
}

.text-area--large {
    min-height: 160px;
}

.text-input:focus,
.text-area:focus {
    border-color: rgba(93,127,112,.7);
    box-shadow: 0 0 0 4px rgba(93,127,112,.10);
}

.selector-block {
    min-width: 0;
}

.energy-selector {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.energy-option {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 84px;
    padding: 9px 3px 7px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
}

.energy-option.is-selected {
    border-color: var(--primary);
    background: var(--surface-green);
    box-shadow: 0 0 0 3px rgba(93,127,112,.10);
}

.energy-option__number {
    font-size: .78rem;
    font-weight: 900;
}

.battery {
    position: relative;
    display: block;
    width: 22px;
    height: 46px;
}

.battery__cap {
    position: absolute;
    top: -4px;
    left: 7px;
    width: 8px;
    height: 4px;
    border-radius: 3px 3px 0 0;
    background: #69706d;
}

.battery__body {
    display: flex;
    flex-direction: column-reverse;
    gap: 2px;
    width: 22px;
    height: 46px;
    padding: 3px;
    border: 2px solid #69706d;
    border-radius: 5px;
    background: #fff;
}

.battery__segment {
    flex: 1;
    border-radius: 2px;
    background: #ece9e6;
}

.battery--0 .battery__segment.is-filled { background: #9a9a9a; }
.battery--1 .battery__segment.is-filled { background: #d94545; }
.battery--2 .battery__segment.is-filled { background: #ea693a; }
.battery--3 .battery__segment.is-filled { background: #ef9d32; }
.battery--4 .battery__segment.is-filled { background: #e5c33d; }
.battery--5 .battery__segment.is-filled { background: #96c95b; }
.battery--6 .battery__segment.is-filled { background: #459a50; }

.energy-hint {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    color: var(--muted);
    font-size: .72rem;
}

.mood-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.mood-option {
    min-height: 58px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
    font-size: 1.75rem;
    cursor: pointer;
}

.mood-option.is-selected {
    border-color: var(--primary);
    background: var(--surface-green);
    box-shadow: 0 0 0 3px rgba(93,127,112,.10);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    font-weight: 850;
    cursor: pointer;
}

.button:disabled {
    cursor: wait;
    opacity: .65;
}

.button--primary {
    background: var(--primary);
    color: white;
}

.button--primary:active {
    background: var(--primary-dark);
}

.button--secondary {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}

.button--full {
    width: 100%;
}

.validation-message {
    margin: 8px 0 12px;
    color: #a5423e;
    font-size: .86rem;
}

.sticky-save {
    position: sticky;
    z-index: 40;
    bottom: 12px;
    padding-top: 10px;
    background: linear-gradient(to bottom, transparent, var(--bg) 28%);
}

.sticky-save--above-nav {
    bottom: calc(82px + var(--safe-bottom));
}

.save-confirmation {
    margin: 8px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--surface-green);
    color: var(--primary-dark);
    font-weight: 800;
    text-align: center;
}

.star-rating {
    display: flex;
    gap: 6px;
}

.star-rating__button {
    flex: 1;
    min-height: 56px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--bg);
    color: #dcaa41;
    font-size: 1.8rem;
    cursor: pointer;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.symbol-choice {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 84px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
}

.symbol-choice span {
    font-size: 1.8rem;
}

.symbol-choice small {
    color: var(--muted);
    font-weight: 800;
}

.symbol-choice.is-selected {
    border-color: var(--primary);
    background: var(--surface-green);
    box-shadow: 0 0 0 3px rgba(93,127,112,.10);
}

.history-bars {
    display: grid;
    gap: 12px;
}

.history-bar {
    display: grid;
    grid-template-columns: 34px 1fr 40px;
    align-items: center;
    gap: 10px;
}

.history-bar__label {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
}

.history-bar__track {
    overflow: hidden;
    height: 14px;
    border-radius: 999px;
    background: #ece9e6;
}

.history-bar__fill {
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
    min-width: 0;
}

.history-bar__value {
    text-align: right;
    font-size: .82rem;
    font-weight: 900;
}

.history-list,
.menu-list {
    display: grid;
    gap: 10px;
}

.history-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.history-row:last-child {
    border-bottom: 0;
}

.history-row__meta {
    margin-top: 3px;
    color: var(--muted);
    font-size: .82rem;
}

.history-row__score {
    white-space: nowrap;
    font-weight: 850;
}

.menu-row {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 70px;
    padding: 12px 14px;
}

.menu-row__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--surface-green);
    font-size: 1.25rem;
}

.menu-row strong,
.menu-row small {
    display: block;
}

.menu-row small {
    margin-top: 3px;
    color: var(--muted);
}

.menu-row.is-disabled {
    opacity: .55;
}

.info-panel {
    margin-top: 18px;
}

.info-panel p {
    margin: 4px 0 0;
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state--compact {
    padding: 28px 12px;
}

.empty-state__icon {
    margin-bottom: 10px;
    font-size: 2rem;
}

@media (min-width: 680px) {
    .page-shell {
        padding-left: 22px;
        padding-right: 22px;
    }

    .panel {
        padding: 22px;
    }

    .energy-option {
        min-height: 92px;
    }
}

/* Shared daily curves: fixed 0–6 scale, with native touch/keyboard controls. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.daily-energy-grid {
    display: grid;
    gap: 14px;
    align-items: start;
}

.daily-energy {
    min-width: 0;
}

.daily-energy-grid .daily-energy {
    margin-bottom: 0;
}

.daily-energy__heading {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.daily-energy__heading h2 {
    margin-top: 5px;
    line-height: 1.4;
    font-size: 1rem;
}

.daily-energy__average {
    color: var(--primary-dark);
    background: var(--surface-green);
    border-radius: 10px;
    padding: 6px 9px;
    font-size: .8rem;
    font-weight: 700;
}

.daily-energy__chart {
    padding-left: 22px;
}

.daily-energy__plot {
    position: relative;
    height: 240px;
}

.daily-energy__lines {
    display: block;
    width: 100%;
    height: 240px;
    overflow: visible;
}

.daily-energy__gridline {
    stroke: var(--line);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.daily-energy__segment {
    stroke: var(--primary);
    stroke-width: 2.5;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.daily-energy__tick {
    position: absolute;
    left: -22px;
    width: 14px;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: .75rem;
    text-align: right;
}

.daily-energy__point {
    position: absolute;
    display: grid;
    place-items: center;
    width: 44px;
    height: 48px;
    padding: 0;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
}

.daily-energy__point .battery {
    transform: scale(.68);
}

.daily-energy__point[aria-pressed="true"] {
    background: rgba(93, 127, 112, .13);
    box-shadow: inset 0 0 0 2px var(--primary);
}

.daily-energy__point:focus-visible,
.energy-option:focus-visible {
    outline: 3px solid var(--primary-dark);
    outline-offset: 2px;
}

.daily-energy__labels {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    text-align: center;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.5;
}

.daily-energy__missing {
    display: block;
}

.daily-energy__details {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    background: var(--bg);
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.daily-energy__details strong {
    color: var(--text);
}

.daily-energy__activity {
    white-space: pre-wrap;
}

@media (min-width: 900px) {
    .page-shell--history {
        width: min(100%, 1160px);
    }

    .daily-energy-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.date-navigation { display:grid; grid-template-columns:44px minmax(0,1fr) 44px; gap:10px; align-items:center; margin-bottom:18px; }
.date-navigation h2 { text-align:center; line-height:1.4; }
.icon-button:disabled { opacity:.35; cursor:default; }
.save-status { margin:12px 0; font-size:.88rem; color:var(--muted); }
.report-tabs,.report-actions { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:18px; }
.review-field { margin-top:16px; }
.review-field p { white-space:pre-wrap; overflow-wrap:anywhere; }
.energy-detail { display:flex; align-items:center; gap:8px; }
.energy-detail .battery { transform:scale(.6); margin:-7px 0; }
.report-download { margin:10px 0; }
.account-grid { display:grid; gap:8px; }

/* Version 0.2: calendar weeks and report controls */
.week-navigation h2 { font-size: 1rem; overflow-wrap: anywhere; text-align: center; }
.future-day { display: block; padding: .8rem; color: var(--muted, #666); }
.report-download { margin: .8rem 0; overflow-wrap: anywhere; }
.note-choice { display: flex; gap: .8rem; align-items: flex-start; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-choice input { flex-shrink: 0; width: 1.4rem; height: 1.4rem; }

.mini-energy { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.mini-energy .battery { transform: scale(.55); transform-origin: center; margin: -9px -4px; }
.previous-login { color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; margin: 0 0 16px; }
.weekly-review-card .review-field { background: #faf3f3; border-radius: 12px; padding: 14px; margin: 12px 0; overflow-wrap: anywhere; }
.review-stars { color: #bd8b12; letter-spacing: 2px; font-size: 1.3rem; }
.weekly-review-card .report-actions > a, .weekly-review-card .report-actions .button { min-width: 125px; height: 48px; padding: 10px 18px; display: inline-flex; justify-content: center; align-items: center; }
.weekly-review-card .report-actions { align-items: flex-start; }
.weekly-review-card .report-actions .report-download { margin: 0; min-width: 0; }
.weekly-review-card .report-actions > a, .weekly-review-card .report-actions .button { box-sizing: border-box; width: 125px; min-height: 48px; height: 48px; margin: 0; }
.review-impact { margin: 0 0 16px; padding: 0 14px; }
.review-impact ul { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 8px 0 0; padding: 0; list-style: none; }
.review-impact li { display: inline-flex; align-items: center; gap: 6px; }
.impact-icon { width: 24px; height: 24px; flex: none; }
.session-header { width: min(100%, 760px); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px 0; padding-top: max(12px, env(safe-area-inset-top)); color: var(--text-muted, #52645a); }
.session-header > span { font-size: .85rem; font-weight: 600; }
.session-header .button { min-height: 44px; padding: 8px 14px; }
.session-header form { margin: 0; }
.session-locked .app-frame { visibility: hidden; }
.session-locked::after { content: 'Sitzung wird geprüft …'; position: fixed; inset: 40% 16px auto; text-align: center; color: #49685b; }
.login-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin: 12px 0 24px; }
.login-brand img { width: 96px; height: 96px; }
.login-brand h1 { font-size: clamp(1.6rem, 7vw, 2.3rem); margin: 0; }
.page-shell--selection > a { display: block; padding: 12px 0; min-height: 44px; }
.one-time-code { overflow-wrap: anywhere; user-select: all; font-family: monospace; padding: 12px; background: #faf3f3; }
.app-brand { display:flex; align-items:center; gap:8px; font-size:.85rem; font-weight:600; }
.app-brand img { flex:none; }
.title-actions { display:flex; align-items:center; gap:12px; min-width:0; }
.title-actions h1 { font-size:clamp(1.5rem,6vw,2.35rem); }
.report-download--icon { margin:0; flex:none; position:relative; }
.report-download--icon > .button { width:48px; height:48px; padding:7px; display:grid; place-items:center; }
.report-download--icon > p { position:absolute; z-index:5; right:0; width:min(300px,80vw); padding:12px; background:var(--surface); box-shadow:var(--shadow); border:1px solid var(--line); border-radius:12px; }
.menu-row { display:grid; grid-template-columns:28px 1fr 14px; align-items:center; gap:12px; }
.login-brand p { margin:0; }
.text-area.is-saved { background:var(--surface-green); border-color:var(--primary); }
.text-area.is-saved:focus { outline:2px solid var(--primary-dark); outline-offset:2px; }
.text-area.save-error, .text-area.invalid { background:var(--surface-soft); border-color:#b42318; outline-color:#b42318; }
.day-picker { min-width:0; flex:1; }
.date-trigger { display:block; width:100%; border:0; padding:8px 0; background:transparent; color:inherit; cursor:pointer; min-height:44px; }
.date-trigger h2 { font:inherit; font-weight:750; line-height:1.4; }
.date-navigation { position:relative; }
.calendar-panel { position:absolute; z-index:10; top:100%; left:0; right:0; background:var(--surface); border:1px solid var(--line); box-shadow:var(--shadow); border-radius:16px; padding:12px; text-align:left; }
.calendar-month { display:flex; justify-content:space-between; align-items:center; gap:8px; margin:10px 0; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:2px; text-align:center; margin-bottom:12px; }
.calendar-day { border:0; border-radius:8px; background:var(--surface-green); color:var(--text); min-height:44px; padding:0; font:inherit; }

.calendar-day:disabled { background:var(--bg); color:var(--muted); }
.help-steps { padding-left:24px; }
.help-steps li { padding:8px 0; }
.help-steps h3 { font-size:1.05rem; margin-bottom:8px; }
.help-page h2 { margin-bottom:16px; }

/* Navigational screen-reader focus belongs to headings without a visual control ring. */
h1:focus, h1:focus-visible, h2:focus, h2:focus-visible, h3:focus, h3:focus-visible {
    outline:none; border:0; box-shadow:none;
}
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline:2px solid var(--primary-dark); outline-offset:3px;
}
.calendar-day { background:var(--surface); }
.calendar-day.has-entry { background:var(--surface-green); color:var(--primary-dark); }
.calendar-day.no-entry { background:#fce9e9; color:#922323; }
.calendar-day.today-empty { background:var(--surface); color:var(--text); border:1px dashed var(--primary); }
.calendar-day.is-today { font-weight:800; text-decoration:underline; text-underline-offset:3px; }
.calendar-day.is-selected { box-shadow:inset 0 0 0 2px var(--primary-dark); }
.calendar-day:disabled { background:var(--bg); color:var(--muted); }
.calendar-legend { font-size:.8rem; line-height:1.5; margin:8px 0; }
.environment-banner { width:100%; padding:10px 16px; background:#fff1c2; color:#533b00; border-bottom:2px solid #a77916; text-align:center; font-weight:800; letter-spacing:.04em; overflow-wrap:anywhere; }

/* 0.10: personal 24-hour plan. */
.day-plan-page { width:min(100%,1180px); }
.day-plan-intro .app-icon { width:30px; height:30px; color:var(--primary-dark); }
.day-plan-advice { background:#f1f6fb; border-color:#dce8f2; }
.day-plan-advice p,.day-plan-message { margin:5px 0 0; }
.day-plan-date { display:grid; place-items:center; gap:3px; min-width:0; text-align:center; font-weight:800; }
.day-plan-date span { max-width:100%; overflow-wrap:anywhere; }
.day-plan-date input { width:42px; height:28px; padding:0; border:0; background:transparent; color:var(--primary-dark); cursor:pointer; }
.day-plan-layout { display:grid; gap:14px; align-items:start; }
.day-clock-panel { min-width:0; }
.day-clock { display:block; width:min(100%,430px); height:auto; margin:0 auto; overflow:visible; }
.day-clock__base { fill:none; stroke:#ece9e6; stroke-width:21; }
.day-clock__center { fill:var(--surface); stroke:var(--line); stroke-width:1; }
.day-clock__tick { stroke:#7d8581; stroke-width:.75; }
.day-clock__tick--major { stroke:var(--text); stroke-width:1.7; }
.day-clock__segment { stroke:rgba(255,255,255,.75); stroke-width:.8; vector-effect:non-scaling-stroke; }
.day-clock__segment:focus { outline:none; stroke:var(--text); stroke-width:2.5; }
.day-clock__label { fill:var(--text); font-size:9px; font-weight:800; }
.day-clock__center-title { fill:var(--text); font-size:11px; font-weight:850; }
.day-clock__center-copy { fill:var(--muted); font-size:8px; }
.day-plan-total { display:grid; gap:3px; margin:10px 0 0; text-align:center; }
.day-plan-total strong { color:var(--text); }
.day-plan-total span { font-size:.82rem; }
.day-plan-list { min-width:0; }
.day-plan-list__heading { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:10px; margin-bottom:12px; }
.day-plan-add { display:inline-flex; align-items:center; gap:6px; }
.day-plan-add .app-icon { width:18px; height:18px; }
.day-plan-row { display:grid; grid-template-columns:minmax(84px,auto) minmax(0,1fr) auto; gap:10px; align-items:center; margin-top:8px; padding:11px 8px 11px 12px; border:1px solid var(--line); border-left:6px solid var(--plan-color); border-radius:13px; background:color-mix(in srgb,var(--plan-color) 10%,white); }
.day-plan-row__time,.day-plan-row__content { display:grid; gap:2px; min-width:0; }
.day-plan-row__time span,.day-plan-row__content span { color:var(--muted); font-size:.78rem; }
.day-plan-row__content strong { overflow-wrap:anywhere; }
.day-plan-row__actions { display:flex; gap:2px; }
.day-plan-row__actions .icon-button { width:44px; min-width:44px; }
.day-plan-row__actions .app-icon { width:20px; height:20px; }
.day-plan-pause-suggestion { width:100%; margin:5px 0 2px; min-height:44px; }
.day-plan-editor { max-width:720px; margin:14px auto; }
.day-plan-editor>label { display:block; margin-top:14px; font-weight:750; }
.day-plan-time-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:14px; }
.day-plan-time-fields label { display:block; font-weight:750; }
.day-plan-quick,.form-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:14px; }
.day-plan-quick .button { min-height:44px; padding:8px 12px; }
.rhythm-preset { width:100%; margin-top:14px; min-height:48px; }
.day-plan-hint { margin:8px 0 0; }
.plan-category--activity { --plan-color:#78aee8; fill:#78aee8; stroke:#78aee8; }
.plan-category--break { --plan-color:#ed9d8f; fill:#ed9d8f; stroke:#ed9d8f; }
.plan-category--travel { --plan-color:#b69be1; fill:#b69be1; stroke:#b69be1; }
.plan-category--buffer { --plan-color:#aab1ae; fill:#aab1ae; stroke:#aab1ae; }
.plan-category--meal { --plan-color:#e9bd58; fill:#e9bd58; stroke:#e9bd58; }
.plan-category--recovery { --plan-color:#9dc991; fill:#9dc991; stroke:#9dc991; }
.plan-category--sleep { --plan-color:#8eb8dd; fill:#8eb8dd; stroke:#8eb8dd; }
.plan-category--other { --plan-color:#c9aaa0; fill:#c9aaa0; stroke:#c9aaa0; }
@media (max-width:460px) {
 .day-plan-page { padding-left:10px; padding-right:10px; }
 .day-plan-page .panel { padding:14px; }
 .day-clock { width:min(100%,350px); }
 .day-plan-row { grid-template-columns:82px minmax(0,1fr); }
 .day-plan-row__actions { grid-column:1/-1; justify-content:flex-end; }
 .day-plan-list__heading .button { width:100%; justify-content:center; }
 .day-plan-time-fields { grid-template-columns:1fr; }
}
@media (min-width:900px) {
 .day-plan-layout { grid-template-columns:minmax(360px,.9fr) minmax(480px,1.1fr); }
 .day-clock-panel,.day-plan-list { margin-bottom:0; }
}

/* 0.7: five targets keep a minimum touch height even at 320 px. */
.bottom-nav { grid-template-columns:repeat(5,minmax(0,1fr)); }
.bottom-nav__item { min-width:0; min-height:52px; padding:6px 2px; font-size:12px; }
.pause-controls { text-align:center; }
.pause-now { border:0; border-radius:50%; width:132px; height:132px; background:var(--primary,#345e50); color:white; font-size:1.4rem; font-weight:700; cursor:pointer; }
.pause-now:disabled { opacity:.5; }
.pause-row { display:flex; justify-content:space-between; align-items:center; gap:4px; border-bottom:1px solid #ddd; font-size:.9rem; }
.pause-row time { min-width:0; }
.delete-confirm { display:flex; flex-wrap:wrap; gap:8px; padding:8px 0; }
.spoon-item { padding:12px 0; border-bottom:1px solid #ddd; }
.spoon-values { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:6px; margin:10px 0; }
.spoon-values .button { min-width:0; padding:10px 4px; }
.spoon-editor p,.spoon-budget p { overflow-wrap:anywhere; }
.spoon-hint { font-size:.9rem; }
.pause-track { margin-top:14px; }
.pause-track__line { position:relative; height:42px; margin:0 18px; border-bottom:2px solid #557568; }
.pause-marker { position:absolute; bottom:1px; transform:translateX(-50%); color:white; background:#35604d; border-radius:50%; width:26px; height:26px; text-align:center; font-weight:bold; }
.pause-track__hours { display:flex; justify-content:space-between; font-size:.8rem; }
.pause-times { display:flex; gap:6px; flex-wrap:wrap; font-size:.85rem; }
.pause-times span { background:#e3efe9; border-radius:12px; padding:4px 7px; }

/* Shared activity editor: one wrapping field, existing pink/green palette. */
.activity-field { background:var(--surface-soft); border:1px solid #e1d8d8; border-radius:16px; padding:10px; }
.activity-field.has-content { background:var(--surface-green); border-color:#c5d8cb; }
.activity-chips { display:flex; flex-wrap:wrap; gap:8px; }
.activity-chip { display:flex; flex-wrap:wrap; align-items:center; max-width:100%; min-width:0; gap:4px; background:rgba(255,255,255,.75); border-radius:12px; padding:4px; }
.activity-chip button { font:inherit; border:0; background:transparent; cursor:pointer; min-height:42px; }
.activity-chip .chip-text { white-space:pre-wrap; overflow-wrap:anywhere; text-align:left; min-width:0; flex:1 1 100px; padding:6px; }
.chip-rating,.chip-delete { padding:6px 10px; }
.chip-delete { min-width:44px; }
.chip-edit { width:100%; min-height:60px; border:1px solid #bccdc2; border-radius:8px; font:inherit; padding:8px; resize:vertical; }
.chip-values,.chip-proposal,.chip-confirm { display:flex; flex-wrap:wrap; gap:6px; align-items:center; width:100%; }
.chip-values button { background:#edf2ee; border-radius:8px; width:42px; }
.chip-values button[aria-pressed=true] { background:#557969; color:white; }
.chip-values span,.activity-chip small { width:100%; font-size:.8rem; }
.compact-action { font:inherit; padding:6px; min-height:40px; border:0; border-radius:8px; color:#345844; background:transparent; text-decoration:underline; cursor:pointer; }
.activity-compose { display:flex; align-items:flex-end; gap:6px; margin-top:6px; }
.activity-compose textarea { min-width:0; width:100%; min-height:48px; max-height:180px; font:inherit; padding:12px 2px; border:0; background:transparent; resize:vertical; overflow-wrap:anywhere; }
.legacy-activity { margin-bottom:10px; padding-bottom:8px; border-bottom:1px solid #c5d8cb; }
.legacy-activity span { font-size:.8rem; }
.legacy-text { width:100%; min-height:70px; background:transparent; border:0; font:inherit; white-space:pre-wrap; }
.activity-note { font-size:.9rem; margin:8px 0; }
.spoon-budget p:last-child { margin-bottom:0; }
.setting-toggle { display:flex; align-items:center; gap:12px; min-height:48px; margin-bottom:18px; }
.setting-toggle input { width:22px; height:22px; }
.pause-row { flex-wrap:wrap; }
.pause-credit { font-size:.8rem; color:#456353; }
.day-activities p { white-space:pre-wrap; overflow-wrap:anywhere; }
.day-activities { margin-top:18px; }

/* 0.8: readable activity rows and personal status surfaces. */
.activity-chips { display:flex; flex-direction:column; width:100%; gap:12px; }
.activity-chip { display:grid; grid-template-columns:minmax(0,1fr) auto auto; width:100%; padding:12px; gap:8px; }
.activity-chip .chip-text { padding:8px; font-size:1rem; line-height:1.55; }
.activity-chip .chip-edit { grid-column:1/-1; width:100%; min-height:120px; font-size:1rem; line-height:1.55; padding:14px; }
.activity-chip .chip-values,.activity-chip .chip-proposal,.activity-chip .chip-confirm,.activity-chip small { grid-column:1/-1; }
.activity-compose { display:grid; grid-template-columns:minmax(0,1fr) 48px; gap:10px; width:100%; margin-top:14px; align-items:end; }
.activity-compose textarea { width:100%; min-height:110px; font-size:1rem; line-height:1.55; padding:14px; resize:vertical; }
.activity-chip .chip-rating { background:#eef4f1; border:1px solid #b7cec2; border-radius:10px; min-width:84px; padding:8px; }
.activity-chip button,.compact-action { min-height:44px; }
.chip-proposal { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.preserve-lines { white-space:pre-wrap; overflow-wrap:anywhere; }
.budget-green {color:#286440;}.consumption-neutral {color:#52645a;}.consumption-yellow {color:#846000;}.consumption-orange{color:#a04700;}.consumption-red{color:#aa2028;}
.budget-details summary { cursor:pointer; min-height:44px; padding-top:12px; font-weight:700; }
.day-activities section {padding:10px 0;border-top:1px solid #dce4df;}
.credit-stepper {display:flex;gap:10px;align-items:center;margin:14px 0;}.credit-stepper output {min-width:85px;font-size:1.4rem;font-weight:700;}
.no-answer {display:flex;gap:10px;align-items:center;min-height:44px;padding:8px 0;font-size:.95rem;}.no-answer input {width:22px;height:22px;flex-shrink:0;}
.completion-button {min-height:44px;border-radius:12px;padding:8px;border:1px solid currentColor;background:#fff;font:inherit;font-weight:700;}.completion-button.complete{color:#286440;}.completion-button.incomplete{color:#9a4600;}
.completion-dialog {max-width:min(600px,calc(100vw - 32px));max-height:80vh;overflow:auto;border:1px solid #a8b8ae;border-radius:18px;padding:24px;}.completion-dialog::backdrop{background:#0007;}.completion-dialog li {margin:12px 0;}.completion-dialog a{color:#305f49;}
.session-header .app-brand {margin-right:auto;min-width:0;}.session-header {gap:8px;}.notice-bell{position:relative;}.notice-badge{position:absolute;top:-4px;right:-3px;border-radius:99px;background:#ab2030;color:white;min-width:21px;padding:2px 5px;font-size:.75rem;font-weight:700;}
.notice-panel{position:absolute;right:0;top:52px;width:min(650px,calc(100vw - 32px));max-height:75vh;overflow:auto;z-index:90;background:#fff;padding:20px;border:1px solid #bdcfc4;border-radius:16px;box-shadow:0 8px 30px #0003;}
.notice-row {display:grid;grid-template-columns:minmax(0,2fr) 1fr 1fr;gap:14px;border-top:1px solid #dce4df;padding:18px 0;}.notice-row time{font-size:.8rem;display:block;}.notice-link{display:block;text-align:left;background:none;border:0;color:#305f49;font:inherit;text-decoration:underline;padding:10px 0;min-height:44px;}.notice-actions{display:flex;flex-wrap:wrap;gap:8px;}
@media(max-width:600px){.activity-chip{grid-template-columns:minmax(0,1fr) auto 44px;padding:6px;gap:4px;}.activity-chip .chip-text{font-size:.95rem;padding:4px;}.activity-chip .chip-rating{min-width:70px;width:auto;justify-self:end;padding:6px;}.activity-chip .chip-delete{min-width:44px;}.notice-row{grid-template-columns:1fr;}.notice-panel{position:fixed;top:110px;right:16px;}.session-header .app-brand span{font-size:.75rem;}.session-header .app-brand img{width:28px;height:28px;}.session-header .button{padding:8px 10px;}.completion-button span{font-size:.72rem;}.mobile-header{flex-wrap:wrap;}}

.answer-save-guard .save-status {display:none;}
/* 0.9: quiet local outline icons and separated, compact header regions. */
.app-icon{width:24px;height:24px;display:inline-block;flex:none;vertical-align:middle;}
.field-label .app-icon,.spoon-budget .app-icon,.chip-proposal .app-icon{width:20px;height:20px;color:var(--primary-dark);margin-right:4px;}
.mobile-header>div{width:100%;min-width:0;}
.title-actions{justify-content:flex-start;gap:10px;}
.title-actions h1{flex:0 1 auto;min-width:0;margin:0;font-size:clamp(1.5rem,5.6vw,2.2rem);}
.header-actions{display:flex;gap:8px;align-items:center;flex-shrink:0;}
.header-actions .completion-button,.header-actions .report-download>button{width:46px;height:46px;padding:8px;min-height:46px;display:flex;align-items:center;justify-content:center;}
.completion-button.complete{background:#edf3e9;}.completion-button.incomplete{background:#fff7ed;}
.session-header{border-bottom:1px solid var(--line);padding-bottom:14px;align-items:center;}
.notice-bell>.icon-button{position:relative;display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;overflow:visible;}
.notice-bell .notice-badge{top:-6px;right:-7px;min-width:20px;height:auto;line-height:16px;white-space:nowrap;pointer-events:none;}
.notice-bell{margin-right:5px;color:var(--text);}
.date-navigation{margin:16px 0 20px;gap:8px;}.date-navigation .day-picker{min-width:0;flex:1;text-align:center;}
.thought-card{display:block;background:#edf3e8;padding:20px 22px;margin-bottom:16px;box-shadow:none;border-color:#e0e8dc;}
.thought-heading{display:flex;align-items:center;gap:12px;color:#3c5a43;}
.thought-card p{color:var(--text);font-size:1.05rem;line-height:1.6;margin:12px 0 8px;overflow-wrap:anywhere;}
.thought-card small{color:var(--muted);font-size:.8rem;font-weight:400;}
.day-card__symbol{color:var(--primary-dark);background:#e7eee3;}.day-card__symbol .app-icon{width:28px;height:28px;}
.bottom-nav__icon{display:flex;align-items:center;justify-content:center;color:inherit;}.bottom-nav__item.active{background:#e8efe3;color:#42624b;}
.menu-row{min-height:64px;padding:16px 18px;}.menu-row>.app-icon,.menu-row>span:first-child{color:var(--primary-dark);display:flex;align-items:center;justify-content:center;}
.activity-lines{display:block;white-space:pre-wrap;overflow-wrap:anywhere;}
.budget-overrun{color:#a82029!important;font-weight:600;}.consumption-neutral{color:var(--text);}
.spoon-budget h2{line-height:1.7;}.spoon-budget{margin-top:8px;}.today-summary{margin-top:20px;}
@media(max-width:420px){.thought-card{padding:16px;}.thought-card p{font-size:1rem;}.session-header .app-brand span{font-size:.72rem;}.date-navigation{margin-top:12px;}.header-actions{gap:6px;}.title-actions h1{font-size:1.5rem;}}
.notice-bell>.icon-button>span[aria-hidden="true"]{display:flex;align-items:center;justify-content:center;}

.mobile-header:has(.back-to-more){flex-wrap:nowrap;gap:12px;align-items:center;}
.mobile-header .back-to-more{flex:0 0 44px;text-decoration:none;}
.mobile-header .back-to-more + div{min-width:0;}
.pause-controls > .button{margin-top:12px;}

/* 0.9b: quieter notice actions and explicit, unconfirmed spoon suggestions. */
.notice-actions{align-items:center;align-content:start;gap:4px;}
.notice-actions .button{font-size:.8rem;font-weight:400;min-height:44px;width:auto;padding:5px 8px;border:1px solid #dce4df;border-radius:8px;background:#f7f9f7;box-shadow:none;line-height:1.3;}
.notice-row{grid-template-columns:minmax(0,2fr) minmax(70px,1fr) auto;}
.activity-chip .chip-rating.is-unrated,.is-unrated{color:#8d4c0c;background:#fff2df;border-color:#dba76b;}
.pending-rating{margin-top:10px;}.pending-rating>.is-unrated{display:inline-block;padding:4px 8px;border-radius:6px;margin-bottom:6px;}
.chip-values button{width:44px;min-width:44px;min-height:44px;}
.chip-values button.is-suggested{box-shadow:inset 0 0 0 2px #aa681f;background:#fff2df;color:#72400b;}
.chip-values .rating-hint{font-size:.8rem;color:#6c5742;}
@media(max-width:600px){.notice-row{grid-template-columns:1fr;gap:6px;}.chip-values{gap:4px;}}
/* 0.9d: section symbol shows CompletionRules status (colours of calendar no-entry/has-entry); backdate button below the pause button */
.day-card .day-card__symbol.section-open{background:#fce9e9;color:#922323;}.day-card .day-card__symbol.section-complete{background:var(--surface-green);color:var(--primary-dark);}
.pause-controls > .pause-backdate{display:flex;margin:20px auto 0;min-width:220px;min-height:50px;}
/* 0.10a: six destinations, private plan dialog and shared category palette. */
.bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr));}
.bottom-nav__item{min-width:0;min-height:52px;padding:8px 2px;font-size:.72rem;}
.day-plan-modal-open{overflow:hidden;}
.day-plan-editor{width:min(560px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);box-sizing:border-box;margin:auto;padding:20px;overscroll-behavior:contain;}
.day-plan-editor:not([open]){display:none;}
.day-plan-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;}
.day-plan-dialog-heading h2{font-size:1.3rem;margin:0;}
.day-plan-editor label{display:block;margin:14px 0 6px;}
.day-plan-editor .text-input{width:100%;box-sizing:border-box;}
.day-plan-quick{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px;}
.day-plan-quick>span{width:100%;}
.day-plan-quick .button{padding:8px 12px;min-height:44px;min-width:76px;}
.day-plan-quick .rhythm-preset{width:auto;margin:0;}
.day-plan-quick .is-selected{background:#e6f2df;border:2px solid #568052;color:#315b35;}
.day-clock__segment{fill:var(--plan-fill);stroke:var(--plan-ink);cursor:pointer;}
circle.day-clock__segment{fill:none;stroke:var(--plan-fill);}
.day-clock__segment:focus-visible{outline:2px solid #315b35;outline-offset:3px;filter:brightness(.9);}
.day-plan-row{background:var(--plan-fill);border-left-color:var(--plan-ink);}
.day-plan-row__content>.app-icon{color:var(--plan-ink);margin-right:6px;}
.day-plan-date{display:none;}
.day-clock__icon{pointer-events:none;line-height:0;}.day-clock__icon .app-icon{display:block;width:14px;height:14px;}
.day-plan-category-preview{margin:6px 0;font-size:.85rem;}
@media(max-width:430px){.bottom-nav{gap:2px;padding-left:4px;padding-right:4px;}.day-plan-editor{padding:16px;}.day-plan-quick .button{font-size:.85rem;padding:8px 10px;}}

/* Account provisioning and privacy stay readable without horizontal scrolling. */
.account-counts { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem; }
.account-card { display:block;min-width:0;padding:0;margin:0;overflow:hidden; }
.account-card--active { background:#e9f7e9;border:1px solid #a7dbac; }
.account-card--pending { background:#fff3e3;border:1px solid #ffca7a; }
.account-card--blocked { background:#ffebed;border:1px solid #ff9da3; }
.account-card p { margin:0; }
.account-card__heading { margin:0; }
.account-card__toggle { width:100%;min-height:54px;padding:.55rem .75rem;display:flex;align-items:center;gap:.5rem;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit; }
.account-card__toggle:focus-visible { outline:3px solid #325b87;outline-offset:-4px; }
.account-card__name { flex:1;min-width:0;font-weight:750;overflow-wrap:anywhere; }
.account-card__chevron { flex:none;display:inline-flex;transition:transform .15s ease; }
.account-card__toggle[aria-expanded="true"] .account-card__chevron { transform:rotate(180deg); }
.account-card__chevron .app-icon { width:19px;height:19px; }
.account-card__details { padding:.1rem .8rem .85rem;display:grid;gap:.75rem; }
.account-card__details[hidden] { display:none; }
.account-card__badge { flex:none;max-width:62%;border-radius:99px;padding:.4rem .7rem;font-weight:700;font-size:.84rem;line-height:1.25;text-align:center; }
.account-card__badge .app-icon { width:15px;height:15px; }
.account-card--active .account-card__badge { background:#d2ecd4;color:#1c5c2b; }
.account-card--pending .account-card__badge { background:#ffe0ad;color:#704009; }
.account-card--blocked .account-card__badge { background:#ffd1d5;color:#88242c; }
.account-card__facts { border-top:1px solid rgba(50,55,50,.16);padding-top:.65rem;margin:0;display:grid;gap:.3rem;font-size:.9rem; }
.account-card__facts div { display:grid;grid-template-columns:minmax(100px,40%) minmax(0,1fr);gap:.4rem; }
.account-card__facts dt { color:#555e58; }
.account-card__facts dd { margin:0;overflow-wrap:anywhere; }
.account-create__form { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.6rem; }
.account-create__form .button { margin:0; }
.account-card__state { color:#47544c;font-weight:600;font-size:.92rem; }
.account-card__password { display:grid;gap:.35rem;min-width:0; }
.account-card__password-label { font-weight:600; }
.account-card__secret-row { display:flex;gap:.5rem;min-width:0; }
.account-card__secret-field { display:flex;align-items:center;justify-content:space-between;gap:.35rem;min-width:0;flex:1;background:#fff;border:1px solid #d7d8d4;border-radius:.7rem;padding-left:.75rem; }
.account-card__secret-field output { font-variant-numeric:tabular-nums;letter-spacing:.13em;font-weight:700;white-space:nowrap; }
.account-card__icon { display:inline-flex;align-items:center;justify-content:center;flex:none;width:44px;height:44px;min-width:44px;border:1px solid #ccd2cd;border-radius:.7rem;background:#fff;color:#26312b;cursor:pointer;font-size:1.45rem; }
.account-card__secret-field .account-card__icon { border:0;background:transparent; }
.account-card__icon .app-icon { width:22px;height:22px; }
.account-card__icon [data-eye-on],.account-card__icon [data-eye-off] { display:inline-flex; }
.account-card__icon [hidden] { display:none; }
.account-card__icon:focus-visible,.account-card__actions .button:focus-visible { outline:3px solid #325b87;outline-offset:2px; }
.account-card__feedback:empty,[data-assignment-status]:empty,[data-invitation-status]:empty { display:none; }
.account-card__actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem;border-top:1px solid rgba(50,55,50,.16);padding-top:.75rem; }
.account-card__actions form { margin:0;min-width:0; }
.account-card__actions .button { width:100%;min-width:0;min-height:44px;height:100%;padding:.5rem .35rem;margin:0;white-space:normal;font-size:.88rem;line-height:1.25; }
.account-card__actions .button { display:flex;align-items:center;justify-content:center;gap:.3rem; }
.account-action-icon { display:inline-flex;flex:none; }
.account-action-icon .app-icon { width:19px;height:19px; }
.account-action-icon--lock,.account-action-icon--trash { color:#bc3035; }
.account-action-icon--unlock { color:#19783b; }
.account-action-icon--mail,.account-action-icon--key { color:#1263b3; }
.account-invite,.account-delete { border-top:1px solid rgba(50,55,50,.16);padding-top:.75rem; }
.account-invite .invitation-form { min-width:0; }
.account-invite__recipient { display:block;min-width:0;line-height:1.45;font-weight:600;overflow-wrap:anywhere; }
.account-invite__recipient .text-input { display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;margin-top:.7rem;scroll-margin-bottom:calc(38vh + env(safe-area-inset-bottom, 0px)); }
.account-invite .manual-check { align-items:flex-start;line-height:1.4; }
.account-invite .manual-check input { margin-top:.15rem; }
.account-invite[hidden],.account-delete[hidden],.account-card__actions [hidden] { display:none; }
.account-card small { line-height:1.35; }
@media(max-width:430px){.account-create__form{grid-template-columns:1fr;}.account-card__facts div{grid-template-columns:minmax(92px,38%) minmax(0,1fr);}}
.manual-assignment-form { margin:0; }
.manual-check { display:flex;align-items:center;gap:.55rem;min-height:44px; }
.manual-check input { width:18px;height:18px;flex:none; }
.account-counts strong { display:block;font-size:1.4rem; }
.invitation-preview,.one-time-code { white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:100%; }
.invitation-preview { font:inherit; }
.consent-label { display:flex;align-items:flex-start;gap:.6rem;line-height:1.6; }
.consent-label input { flex:none;margin-top:.35rem; }
.privacy-copy article { overflow-wrap:anywhere; }
.privacy-copy article p { line-height:1.7; }
.privacy-copy article h2,.privacy-copy article h3 { line-height:1.25; margin:1.4rem 0 .65rem; }
.privacy-copy article h2:first-child { margin-top:0; }
.privacy-copy article ul { padding-inline-start:1.3rem; line-height:1.7; }
.account-grid .account-invite .button,.account-grid .account-delete .button { margin-top:.5rem; }
.session-header .logout-button{width:110.625px;height:44px;min-height:44px;box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;line-height:1.05;font-size:.79rem;white-space:nowrap;}
.session-header .logout-user{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;font-weight:700;}
@media(max-width:600px){.session-header .logout-button{width:102.625px;}}
@media(min-width:768px){.account-counts{grid-template-columns:repeat(4,minmax(0,1fr));}.account-card__actions{grid-template-columns:repeat(4,minmax(0,1fr));}}
