:root {
  --ink: #263b34;
  --muted: #82918a;
  --line: #e9eee9;
  --canvas: #f7f9f7;
  --white: #fff;
  --green: #376e58;
  --green-dark: #285843;
  --green-soft: #eaf3ec;
  --peach: #fff0e8;
  --blue-soft: #eaf3f7;
  --lavender-soft: #f1eef8;
  --shadow: 0 8px 28px rgba(37, 61, 49, .045);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.loading-screen { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); }
.brand-mark { width: 39px; height: 39px; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 14px; background: var(--green); color: #fff; font: italic 700 25px Georgia, serif; }
.brand-dot, .heading-dot { color: #a7c7a6; }
.eyebrow { display: block; color: #91a198; font-size: 10px; font-weight: 750; letter-spacing: .13em; }
.muted, .page-title p, .welcome-row p { color: var(--muted); }
.btn { border-radius: 11px; font-size: 13px; font-weight: 650; padding: 10px 15px; }
.btn-primary { --bs-btn-bg: var(--green); --bs-btn-border-color: var(--green); --bs-btn-hover-bg: var(--green-dark); --bs-btn-hover-border-color: var(--green-dark); --bs-btn-active-bg: var(--green-dark); --bs-btn-active-border-color: var(--green-dark); --bs-btn-disabled-bg: var(--green); --bs-btn-disabled-border-color: var(--green); }
.btn-outline-primary { --bs-btn-color: var(--green); --bs-btn-border-color: #cbd9ce; --bs-btn-hover-bg: var(--green); --bs-btn-hover-border-color: var(--green); --bs-btn-hover-color: #fff; }
.btn-outline-danger { --bs-btn-color: #b75a55; --bs-btn-border-color: #ebd5d2; --bs-btn-hover-bg: #b75a55; --bs-btn-hover-border-color: #b75a55; --bs-btn-hover-color: #fff; }
.form-control, .form-select { min-height: 42px; border-radius: 9px; border-color: #e3e9e4; color: var(--ink); font-size: 13px; }
.form-control:focus, .form-select:focus { border-color: #9ab9a3; box-shadow: 0 0 0 .2rem rgba(55, 110, 88, .1); }
.form-label { margin-bottom: 7px; color: #55665d; font-size: 11px; font-weight: 650; }
.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; }

/* Sign-in */
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(330px, .9fr) 1.1fr; background: #fff; }
.auth-intro { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: 36px 10%; overflow: hidden; background: #e9f1e9; }
.auth-intro::after { position: absolute; right: -100px; bottom: 60px; width: 380px; height: 380px; border: 1px solid rgba(75, 120, 91, .12); border-radius: 50%; content: ""; box-shadow: 0 0 0 40px rgba(75, 120, 91, .025), 0 0 0 80px rgba(75, 120, 91, .025); }
.auth-intro-copy { position: relative; z-index: 1; max-width: 430px; margin: auto 0; }
.auth-intro-copy h1 { margin: 20px 0 16px; font-family: Georgia, serif; font-size: clamp(42px, 5vw, 65px); font-weight: 500; letter-spacing: -.055em; line-height: 1.04; }
.auth-intro-copy h1 em { color: var(--green); font-weight: 400; }
.auth-intro-copy p { max-width: 350px; color: #697d70; font-size: 14px; line-height: 1.8; }
.auth-note { z-index: 1; color: #75867b; font-size: 11px; }
.auth-note span { margin-right: 8px; color: var(--green); }
.auth-form-wrap { display: grid; place-items: center; padding: 40px 24px; }
.auth-form { width: min(100%, 370px); }
.auth-form h2 { margin: 12px 0 7px; font-family: Georgia, serif; font-size: 34px; font-weight: 500; letter-spacing: -.04em; }
.auth-form .muted { margin-bottom: 29px; font-size: 13px; }
.auth-form .form-label { display: block; margin-top: 16px; }
.auth-submit { display: flex; justify-content: space-between; margin-top: 25px; padding: 12px 16px; }
.auth-switch { margin-top: 20px; color: var(--muted); text-align: center; font-size: 12px; }
.link-button { padding: 0 0 0 4px; border: 0; background: transparent; color: var(--green); font-weight: 700; }

/* Application shell */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 3; display: flex; flex-direction: column; width: 232px; padding: 27px 17px 20px; border-right: 1px solid var(--line); background: #fff; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 0 48px 6px; color: var(--ink); font: 600 21px Georgia, serif; letter-spacing: -.04em; text-decoration: none; }
.brand .brand-mark { width: 33px; height: 33px; border-radius: 12px; font-size: 21px; }
.sidebar-caption { margin: 0 0 12px 12px; color: #a3afa7; font-size: 9px; font-weight: 750; letter-spacing: .13em; }
.side-nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 13px; width: 100%; padding: 11px 12px; border: 0; border-radius: 9px; background: transparent; color: #77877e; text-align: left; font-size: 12px; font-weight: 580; transition: background .15s, color .15s; }
.nav-link:hover { background: #f5f8f5; color: var(--green); }
.nav-link.active { background: var(--green-soft); color: var(--green-dark); font-weight: 700; }
.icon { width: 18px; height: 18px; flex: 0 0 auto; }
.sidebar-bottom { margin-top: auto; }
.side-tip { margin: 0 2px 20px; padding: 14px; border: 1px solid #eef2ed; border-radius: 11px; background: #fafbf9; }
.side-tip span { color: #98b89a; font-size: 16px; }
.side-tip p { margin: 8px 0 0; color: #76847a; font: italic 12px/1.6 Georgia, serif; }
.logout-link { margin-top: 8px; color: #8d9991; }
.logout-icon { width: 18px; text-align: center; font-size: 17px; }
.main-column { min-height: 100vh; margin-left: 232px; }
.topbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 67px; padding: 0 clamp(22px, 4vw, 54px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(12px); }
.today-label { color: #96a29a; font-size: 11px; text-transform: capitalize; }
.profile-chip { display: flex; align-items: center; gap: 9px; padding: 5px 0; border: 0; background: transparent; color: #4a5d51; font-size: 11px; font-weight: 650; }
.avatar { display: inline-grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: #eaf1e8; color: var(--green); font-size: 12px; }
.chip-chevron { color: #9aa69e; }
.mobile-brand, .mobile-nav { display: none; }
.page-content { max-width: 1440px; margin: auto; padding: 36px clamp(22px, 4vw, 54px) 55px; }
.welcome-row { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin: 3px 0 25px; }
.welcome-row h1, .page-title h1 { margin: 9px 0 7px; font: 500 clamp(31px, 3vw, 39px)/1.1 Georgia, serif; letter-spacing: -.045em; }
.welcome-row p, .page-title p { margin: 0; font-size: 12px; }
.welcome-row .btn { flex: 0 0 auto; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 15px; }
.metric-card, .panel { border: 1px solid #edf0ed; border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
.metric-card { min-width: 0; padding: 16px 17px 14px; }
.metric-icon { display: grid; width: 31px; height: 31px; place-items: center; margin-bottom: 13px; border-radius: 10px; }
.metric-icon .icon { width: 16px; height: 16px; }
.metric-icon.peach, .form-emoji.peach { background: var(--peach); color: #ca8668; }
.metric-icon.blue, .form-emoji.blue { background: var(--blue-soft); color: #7297a9; }
.metric-icon.green, .form-emoji.green { background: var(--green-soft); color: #60856c; }
.metric-icon.lavender, .form-emoji.lavender { background: var(--lavender-soft); color: #9584ae; }
.metric-label { display: block; color: #87948b; font-size: 10px; }
.metric-card > strong { display: block; margin-top: 3px; color: #33493c; font-size: 23px; font-weight: 620; letter-spacing: -.04em; }
.metric-card > strong small, .water-totals small { color: #839188; font-size: 11px; font-weight: 500; letter-spacing: 0; }
.metric-foot { display: block; margin: 5px 0 0; color: #9aa69e; font-size: 10px; line-height: 1.5; }
.bmi-tag { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 20px; font-size: 9px; font-weight: 650; line-height: 1.25; }
.bmi-neutral { background: #f2f4f2; color: #7e8c82; }
.bmi-cool { background: #edf3f6; color: #668496; }
.bmi-good { background: #edf5ed; color: #628367; }
.bmi-warm { background: #fbf0e9; color: #a8775e; }
.slim-progress { height: 4px; margin-top: 10px; border-radius: 6px; background: #f0f3f0; }
.slim-progress .progress-bar { border-radius: 6px; background: #86ac8d; }
.progress-peach { background: #e3a281 !important; }
.progress-blue { background: #86acbd !important; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(290px, .9fr); gap: 15px; }
.panel { min-width: 0; padding: 19px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-heading h2 { margin: 5px 0 0; font: 500 20px/1.1 Georgia, serif; letter-spacing: -.025em; }
.soft-badge { padding: 6px 9px; border-radius: 20px; background: #f2f6f1; color: #7e9c81; font-size: 8px; font-weight: 750; letter-spacing: .08em; white-space: nowrap; }
.fast-active { padding: 5px 0 15px; text-align: center; }
.fast-clock { color: #3a604b; font: 500 clamp(38px, 5vw, 57px)/1 Georgia, serif; letter-spacing: -.05em; }
.fast-active > p { margin: 9px 0 16px; color: #95a097; font-size: 11px; }
.fast-active > p strong { color: #64836d; font-weight: 650; }
.divider-dot { padding: 0 4px; color: #c1cbc3; }
.phase-note { display: flex; align-items: center; gap: 10px; margin: 0 0 15px; padding: 10px 12px; border-radius: 9px; background: #f7f8f4; text-align: left; }
.phase-spark { color: #9cb48d; font-size: 16px; }
.phase-note strong, .phase-note small { display: block; }
.phase-note strong { color: #667b69; font-size: 10px; font-weight: 650; }
.phase-note small { margin-top: 2px; color: #a0aaa2; font-size: 9px; }
.fast-idle { padding: 4px 2px 15px; text-align: center; }
.fast-illustration { display: grid; width: 52px; height: 52px; place-items: center; margin: 0 auto 12px; border-radius: 18px; background: #f2f6f0; color: #72917a; font-size: 27px; }
.fast-idle h3 { margin: 0 0 5px; font: 500 16px Georgia, serif; }
.fast-idle p { margin: 0 0 14px; color: #97a39a; font-size: 10px; }
.fast-controls { display: flex; gap: 9px; max-width: 320px; margin: auto; }
.fast-controls .form-select { max-width: 125px; font-size: 11px; }
.fast-controls .btn { flex: 1; font-size: 11px; }
.fast-stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 14px 0 7px; border-top: 1px solid #f0f2ef; }
.fast-stats div { display: grid; gap: 3px; text-align: center; }
.fast-stats div + div { border-left: 1px solid #eff2ef; }
.fast-stats strong { color: #5b7664; font: 500 17px Georgia, serif; }
.fast-stats span { color: #a0aaa3; font-size: 9px; }
.health-note { margin: 8px 0 0; color: #a3ada5; font-size: 9px; line-height: 1.6; }
.water-emoji { color: #8bacb9; font-size: 24px; }
.water-progress-wrap { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 3px 0 16px; }
.water-ring { display: grid; width: 102px; height: 102px; place-items: center; border-radius: 50%; background: conic-gradient(#84adbc var(--progress), #edf3f4 0); }
.water-ring > div { display: grid; width: 81px; height: 81px; align-content: center; justify-items: center; border-radius: 50%; background: #fff; }
.water-ring strong { color: #486f79; font: 500 21px Georgia, serif; }
.water-ring span { margin-top: 2px; color: #9caaa8; font-size: 9px; }
.water-totals { display: grid; gap: 4px; }
.water-totals strong { color: #42636d; font-size: 20px; font-weight: 550; letter-spacing: -.04em; }
.water-totals > span { color: #99a6a4; font-size: 10px; }
.quick-water { display: flex; gap: 7px; }
.quick-water button { flex: 1; padding: 8px 3px; border: 1px solid #e6eff0; border-radius: 8px; background: #f8fbfb; color: #688c94; font-size: 10px; font-weight: 650; }
.quick-water button:hover { background: var(--blue-soft); }
.gentle-reminder { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: #9ba8a1; font-size: 9px; }
.gentle-reminder span:first-child { color: #a3bd9d; font-size: 15px; }
.text-action { padding: 4px 0; border: 0; background: transparent; color: #7b9b81; font-size: 10px; }
.today-panel, .body-panel { min-height: 180px; }
.last-meal { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0f3f0; }
.meal-dot { color: #d7a185; font-size: 11px; }
.last-meal div { display: grid; flex: 1; gap: 4px; }
.last-meal small { color: #a1aaa3; font-size: 9px; }
.last-meal strong { color: #4b5d51; font-size: 11px; }
.last-meal b { color: #849087; font-size: 10px; font-weight: 550; }
.today-shortcuts { display: flex; gap: 8px; margin-top: 12px; }
.today-shortcuts button { padding: 7px 10px; border: 1px solid #edf1ed; border-radius: 8px; background: #fbfcfb; color: #819087; font-size: 9px; }
.today-shortcuts button span { margin-right: 3px; color: #7c9f83; }
.empty-inline { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: #acb6ae; }
.empty-inline > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; background: #f5f7f4; font-size: 18px; }
.empty-inline strong { display: block; color: #77877d; font-size: 10px; font-weight: 600; }
.empty-inline p { margin: 3px 0 0; color: #a5aea7; font-size: 9px; }
.body-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 0 10px; }
.body-stats div { display: grid; gap: 5px; padding: 11px; border-radius: 9px; background: #f8faf8; }
.body-stats span { color: #98a39a; font-size: 9px; }
.body-stats strong { color: #607767; font: 500 18px Georgia, serif; }
.body-stats small { color: #9ba69e; font: 10px system-ui, sans-serif; }
.weight-history { display: grid; gap: 0; margin-top: 10px; }
.weight-history > span { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f1f3f1; font-size: 10px; }
.weight-history i { color: #9ca79f; font-style: normal; }
.weight-history b { color: #718577; font-weight: 600; }
.compact { padding: 0; }

/* Journal */
.page-title { margin: 0 0 24px; }
.page-title h1 { margin-top: 8px; }
.journal-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(250px, .75fr); align-items: start; gap: 15px; }
.journal-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-panel { padding: 17px; }
.form-panel .panel-heading { margin-bottom: 13px; }
.form-panel .panel-heading h2 { font-size: 18px; }
.form-emoji { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; font-size: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.form-grid .btn { padding: 9px; font-size: 11px; }
.field-full { grid-column: 1 / -1; }
.field-full-panel { grid-column: 1 / -1; }
.history-panel { position: sticky; top: 82px; }
.history-panel .panel-heading { margin-bottom: 11px; }
.history-panel .panel-heading h2 { font-size: 18px; }
.history-list { display: grid; }
.history-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f0f3f0; }
.history-type { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #f4f6f3; color: #8d9c8f; }
.history-type.food { background: var(--peach); color: #c8896b; }
.history-type.water { background: var(--blue-soft); color: #7196a7; }
.history-type.weight { background: var(--green-soft); color: #6d9477; }
.history-type.sleep { background: var(--lavender-soft); color: #9382a9; }
.history-description { display: grid; min-width: 0; flex: 1; gap: 3px; }
.history-description strong { overflow: hidden; color: #54645a; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.history-description span { overflow: hidden; color: #8b9990; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.history-description small { color: #aab3ac; font-size: 9px; }
.empty-state { display: grid; justify-items: center; padding: 45px 8px; text-align: center; }
.empty-state > span { color: #9db5a0; font-size: 23px; }
.empty-state strong { margin-top: 7px; color: #718176; font: 500 15px Georgia, serif; }
.empty-state p { margin: 5px 0 0; color: #a4aea7; font-size: 10px; }
.daily-summary { margin-top: 14px; padding: 12px; border-radius: 9px; background: #f8faf8; }
.daily-summary > span { display: block; margin-bottom: 6px; color: #a1aca4; font-size: 8px; font-weight: 750; letter-spacing: .1em; }
.daily-summary div { color: #8a978e; font-size: 10px; }
.daily-summary b { color: #617767; font-weight: 700; }
.daily-summary i { padding: 0 5px; color: #bbc5bc; font-style: normal; }

/* Training */
.training-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); align-items: start; gap: 15px; }
.training-today .panel-heading { margin-bottom: 12px; }
.panel-description { margin: -6px 0 18px; color: #96a199; font-size: 10px; line-height: 1.65; }
.exercise-list { display: grid; }
.exercise-item { position: relative; display: flex; align-items: center; gap: 11px; min-height: 58px; border-bottom: 1px solid #f0f3f0; cursor: pointer; }
.exercise-item > input { position: absolute; width: 19px; height: 19px; margin: 0; opacity: 0; }
.exercise-check { display: grid; width: 19px; height: 19px; flex: 0 0 auto; place-items: center; border: 1.5px solid #dce5dd; border-radius: 6px; background: #fff; }
.exercise-check::after { color: #fff; content: "✓"; font-size: 12px; opacity: 0; }
.exercise-item > input:checked + .exercise-check { border-color: #729a7a; background: #729a7a; }
.exercise-item > input:checked + .exercise-check::after { opacity: 1; }
.exercise-item > input:focus-visible + .exercise-check { outline: 3px solid rgba(55,110,88,.18); }
.exercise-text { display: grid; flex: 1; gap: 4px; }
.exercise-text strong { color: #56665a; font-size: 11px; font-weight: 600; }
.exercise-text small { color: #a5afa7; font-size: 9px; }
.exercise-item.completed .exercise-text strong { color: #91a098; text-decoration: line-through; }
.exercise-number { color: #c0c9c1; font-size: 9px; }
.workout-progress { margin-top: 16px; }
.workout-progress span { display: block; margin-top: 7px; color: #9ca79e; font-size: 9px; text-align: center; }
.rest-note { display: flex; gap: 10px; margin: 8px 0 12px; padding: 11px; border-radius: 9px; background: #f7f8f5; }
.rest-note > span { color: #94a68f; font-size: 19px; }
.rest-note strong { color: #718077; font-size: 10px; }
.rest-note p { margin: 3px 0 0; color: #a0aaa2; font-size: 9px; }
.weekday-picker { display: flex; gap: 6px; margin: 14px 0 21px; }
.weekday-choice { flex: 1; }
.weekday-choice input { position: absolute; opacity: 0; }
.weekday-choice span { display: grid; min-height: 38px; place-items: center; border: 1px solid #e8ede8; border-radius: 9px; color: #98a39a; font-size: 9px; cursor: pointer; }
.weekday-choice input:checked + span { border-color: #b9d0bc; background: #eef5ee; color: #568060; font-weight: 700; }
.weekday-choice input:focus-visible + span { outline: 3px solid rgba(55,110,88,.15); }
.mode-picker { display: grid; gap: 8px; margin-bottom: 17px; }
.mode-picker > .form-label { margin-bottom: 0; }
.mode-option { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid #edf0ed; border-radius: 9px; }
.mode-option > input { margin-top: 2px; accent-color: var(--green); }
.mode-option label { display: grid; gap: 4px; cursor: pointer; }
.mode-option strong { color: #627268; font-size: 10px; font-weight: 650; }
.mode-option small { color: #9ba69e; font-size: 9px; }
.custom-plan-editor { display: grid; gap: 8px; margin-bottom: 15px; }
.custom-plan-editor .form-label { margin-bottom: 0; }
.plan-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.plan-inputs .form-control { min-height: 36px; font-size: 10px; }
.plan-note { margin-top: 12px; color: #a4ada5; font-size: 9px; line-height: 1.6; }

/* Profile */
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: start; gap: 15px; }
.profile-form-panel { padding: 20px; }
.profile-form-panel .panel-heading { margin-bottom: 17px; }
.profile-form-panel .form-grid { gap: 13px 12px; }
.optional { color: #a5aea7; font-size: 9px; font-weight: 450; }
.reminder-permission { width: 100%; margin-top: 12px; }
.reminder-note { margin: 8px 0 0; color: #a2aca4; font-size: 9px; line-height: 1.6; }
.profile-side { display: grid; gap: 13px; }
.indicators-panel .panel-heading, .profile-history .panel-heading, .hobbies-panel .panel-heading { margin-bottom: 10px; }
.indicator-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 10px; padding: 11px 0; border-bottom: 1px solid #f0f3f0; }
.indicator-row:last-child { border-bottom: 0; }
.indicator-row > span { color: #77867c; font-size: 10px; font-weight: 600; }
.indicator-row > span small { color: #a5aea7; font-size: 9px; font-weight: 400; }
.indicator-row > strong { color: #5e7966; font: 500 17px Georgia, serif; }
.indicator-row p { grid-column: 1 / -1; margin: 0; color: #a0aaa2; font-size: 9px; }
.empty-state.small { padding: 18px 5px; }
.empty-state.small strong { font-size: 12px; }
.profile-weight { margin-top: 0; }
.measure-history { display: grid; margin-top: 12px; padding-top: 7px; border-top: 1px solid #eef1ee; }
.measure-history div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; }
.measure-history span { flex: 0 0 auto; color: #9ca79f; font-size: 9px; }
.measure-history strong { overflow: hidden; color: #748479; font-size: 9px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.hobby-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.hobby-chips span { padding: 7px 10px; border-radius: 20px; background: #f0f5ef; color: #728b76; font-size: 9px; }
.hobbies-panel .panel-description { margin: 0; }
.toast-region { position: fixed; right: 20px; bottom: 20px; z-index: 10; display: grid; gap: 8px; width: min(330px, calc(100vw - 32px)); }
.app-toast { padding: 12px 15px; border: 1px solid #dce9dd; border-radius: 10px; background: #fff; box-shadow: 0 8px 25px rgba(37,61,49,.12); color: #4f7258; font-size: 12px; animation: toast-in .2s ease-out; }
.toast-error { border-color: #efd9d5; color: #a85e54; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1080px) {
  .sidebar { width: 205px; }
  .main-column { margin-left: 205px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .journal-grid { grid-template-columns: 1fr; }
  .history-panel { position: static; }
}
@media (max-width: 760px) {
  .sidebar { display: none; }
  .main-column { margin: 0; padding-bottom: 70px; }
  .topbar { height: 59px; padding: 0 17px; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font: 600 18px Georgia, serif; }
  .mobile-brand .brand-mark { width: 29px; height: 29px; border-radius: 10px; font-size: 19px; }
  .today-label { font-size: 9px; }
  .profile-chip { gap: 5px; }
  .profile-chip > span:nth-child(2) { display: none; }
  .page-content { padding: 26px 16px 32px; }
  .welcome-row { align-items: center; margin-bottom: 19px; }
  .welcome-row h1, .page-title h1 { font-size: 31px; }
  .welcome-row p { max-width: 280px; font-size: 10px; line-height: 1.5; }
  .welcome-row .btn { padding: 9px 11px; font-size: 11px; }
  .metric-grid { gap: 9px; }
  .metric-card { padding: 13px; }
  .metric-card > strong { font-size: 20px; }
  .dashboard-grid, .training-grid, .profile-grid { grid-template-columns: 1fr; gap: 11px; }
  .panel { padding: 16px; }
  .journal-forms { gap: 10px; }
  .mobile-nav { position: fixed; inset: auto 0 0; z-index: 5; display: flex; justify-content: space-around; padding: 7px 6px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
  .mobile-nav-link { display: grid; justify-items: center; gap: 3px; min-width: 58px; padding: 4px 5px; border: 0; background: transparent; color: #9aa69e; font-size: 8px; }
  .mobile-nav-link .icon { width: 17px; height: 17px; }
  .mobile-nav-link.active { color: var(--green); font-weight: 700; }
  .toast-region { right: 12px; bottom: 76px; }
}
@media (max-width: 480px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-intro { min-height: 280px; padding: 22px 24px; }
  .auth-intro-copy { margin: 45px 0 20px; }
  .auth-intro-copy h1 { margin: 13px 0 10px; font-size: 39px; }
  .auth-intro-copy p { margin-bottom: 0; font-size: 12px; }
  .auth-note { display: none; }
  .auth-form-wrap { padding: 35px 24px 45px; }
  .auth-form h2 { font-size: 29px; }
  .journal-forms { grid-template-columns: 1fr; }
  .field-full-panel { grid-column: auto; }
  .form-grid { gap: 10px; }
  .welcome-row { align-items: flex-start; }
  .welcome-row .btn span { display: none; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card > strong { font-size: 18px; }
  .weekday-picker { gap: 4px; }
  .weekday-choice span { font-size: 8px; }
  .plan-inputs { grid-template-columns: 1fr; }
}
