@font-face {
  font-family: Inter;
  src: url('/static/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF;
}
@font-face {
  font-family: Inter;
  src: url('/static/fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02D7-02FF,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0;
}
@font-face {
  font-family: Inter;
  src: url('/static/fonts/inter-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Literata;
  src: url('/static/fonts/literata-latin.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF;
}
@font-face {
  font-family: Literata;
  src: url('/static/fonts/literata-latin-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF;
}
@font-face {
  font-family: Literata;
  src: url('/static/fonts/literata-cyrillic.woff2') format('woff2');
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Literata;
  src: url('/static/fonts/literata-cyrillic-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

:root {
  color-scheme: light;
  --canvas: #f5f6f1;
  --paper: #fffefa;
  --ink: #182a22;
  --muted: #5c685d;
  --line: #e1e6db;
  --leaf: #214c3b;
  --leaf-deep: #173a2b;
  --leaf-text: #285442;
  --leaf-wash: #e7efe5;
  --rail: #18362b;
  --rail-text: #e4eee4;
  --lucky: #47866b;
  --lucky-wash: #e8f2e8;
  --ordinary: #898265;
  --ordinary-wash: #f1eee0;
  --tense: #a7564b;
  --tense-wash: #faede7;
  --serif: Literata, Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --radius: 20px;
  --shadow: 0 16px 42px rgba(47, 64, 48, .06);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 1rem/1.55 var(--sans); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { text-wrap: balance; }
h1 { font: 460 clamp(2.1rem, 4.6vw, 3.65rem)/1.08 var(--serif); letter-spacing: -.052em; }
h2 { font-size: 1.12rem; font-weight: 660; letter-spacing: -.025em; }
h3 { font-size: 1rem; font-weight: 640; }
p + p { margin-top: .85rem; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #508e75; outline-offset: 3px; }
svg { flex-shrink: 0; vertical-align: middle; }
.muted { color: var(--muted); }
.text-link { color: var(--leaf-text); text-decoration-thickness: 1px; text-underline-offset: 3px; font-weight: 580; }
.text-link:hover { text-decoration-thickness: 2px; }
.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: .65rem 1rem;
  text-decoration: none;
  font-size: .92rem;
  line-height: 1.3;
  font-weight: 620;
  text-align: center;
}
.button-primary { background: var(--leaf); color: white; }
.button-primary:hover { background: var(--leaf-deep); }
.button-soft { background: var(--leaf-wash); color: var(--leaf-deep); }
.button-soft:hover { background: #d9e7d8; }
.button-quiet { background: transparent; color: var(--leaf-text); border-color: var(--line); }
.button-quiet:hover { background: var(--leaf-wash); }
.button.small { min-height: 36px; padding: .38rem .65rem; font-size: .875rem; }
.button.danger { color: #963f33; }
.button.danger:hover { background: var(--tense-wash); }
.button:disabled { opacity: .65; cursor: wait; }
.icon-button {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--leaf-text);
}
.icon-button:hover { background: var(--leaf-wash); }
.icon-button.bare { border: 0; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.frame { width: min(1216px, calc(100% - 6rem)); margin-inline: auto; }
.brand { display: inline-flex; gap: .7rem; align-items: center; font-size: 1.12rem; text-decoration: none; letter-spacing: -.043em; font-weight: 720; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; width: 39px; height: 39px; border-radius: 11px; background: var(--leaf); color: #f3f6e8; }
.brand-accent { color: var(--leaf-text); font-weight: 550; }
.public-header, .public-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.public-header { min-height: 89px; border-bottom: 1px solid var(--line); }
.public-nav { display: flex; align-items: center; gap: .7rem; }
.language { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 42px; padding-inline: .48rem; font-size: .875rem; font-weight: 620; text-decoration: none; border-radius: 8px; }
.language:hover { background: var(--leaf-wash); }
.public-footer { min-height: 80px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.public-footer a { text-underline-offset: 4px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: center; gap: clamp(2rem, 7vw, 8rem); padding-block: 2.8rem 3rem; }
.hero-copy { padding-block: 1rem; }
.hero h1 { font-size: clamp(3.25rem, 6.65vw, 6.5rem); line-height: .99; letter-spacing: -.073em; font-weight: 460; }
.hero h1 em { display: block; color: var(--leaf-text); font-weight: 420; }
.hero-copy p { margin-block: 1.7rem 1.9rem; color: var(--muted); max-width: 25rem; font-size: clamp(1.05rem, 1.45vw, 1.18rem); }
.hero-copy .button { min-height: 52px; padding-inline: 1.3rem; }
.hero-photo, .auth-photo { overflow: hidden; background: #d2c5a8; border-radius: 24px; box-shadow: var(--shadow); }
.hero-photo { height: clamp(410px, 42vw, 585px); }
.hero-photo img, .auth-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 53%; }
.features { border-top: 1px solid var(--line); padding-block: 2rem 2.7rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem clamp(1.5rem, 6vw, 5.5rem); }
.features h2 { margin-block: .75rem .4rem; }
.features p { color: var(--muted); }
.feature-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--leaf-text); background: var(--leaf-wash); border-radius: 12px; }
.auth-layout { display: grid; grid-template-columns: minmax(290px, .92fr) minmax(290px, 1.08fr); gap: clamp(1.25rem, 4vw, 3.75rem); max-width: 965px; margin: 3rem auto; align-items: stretch; }
.auth-card { align-self: center; padding: clamp(1.55rem, 4vw, 2.6rem); box-shadow: var(--shadow); }
.auth-card h1 { font-size: clamp(2rem, 3.8vw, 3rem); margin-bottom: .85rem; }
.auth-card .feature-icon { margin-bottom: 1rem; }
.auth-card p + .button { margin-top: 1.3rem; }
.auth-photo { min-height: 465px; }
.auth-form { display: grid; gap: .48rem; margin-top: 1.35rem; }
.auth-form label { font-weight: 620; font-size: .92rem; }
.auth-form label:not(:first-of-type) { margin-top: .65rem; }
.auth-form input:not([type=hidden]), textarea {
  width: 100%;
  border: 1px solid #cbd6c8;
  background: #fdfefb;
  color: var(--ink);
  border-radius: 10px;
  padding: .72rem .8rem;
}
.auth-form input:not([type=hidden]) { min-height: 48px; }
.forgot { justify-self: end; font-size: .875rem; padding-block: .25rem; }
.auth-submit { margin-top: .75rem; }
.auth-link { display: inline-block; margin-top: 1.2rem; font-size: .92rem; }
.field-help { font-size: .9rem; }
.email-hint { overflow-wrap: anywhere; }
.form-error { background: var(--tense-wash); border-radius: 10px; padding: .75rem .85rem; color: #8b362c; margin-block: 1rem; }
.privacy, .message-page { max-width: 760px; padding: clamp(1.35rem, 5vw, 3.15rem); margin: 2rem auto 3rem; }
.privacy h1, .message-page h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: 1.3rem; }
.privacy p { margin-block: .9rem; }

.app-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100svh; }
.rail { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; padding: 26px 15px 17px; background: var(--rail); color: var(--rail-text); }
.rail .brand { margin: 0 6px; }
.rail .brand-mark { background: #dcebd5; color: var(--rail); }
.rail .brand-accent { color: #c0dbbc; }
.app-nav { display: grid; gap: .25rem; margin-block: 2.2rem 1.1rem; }
.app-nav a { display: flex; align-items: center; gap: .65rem; padding: .72rem .78rem; border-radius: 9px; min-height: 45px; text-decoration: none; font-size: .94rem; font-weight: 520; color: #d2e5d6; }
.app-nav a:hover, .app-nav a[aria-current] { background: #2b4b3b; color: white; }
.app-nav a[aria-current] { font-weight: 650; }
.button-rail { background: #dcebd5; color: #173b29; }
.button-rail:hover { background: #eef6e9; }
.rail-bottom { margin-top: auto; }
.rail .utility { display: flex; align-items: center; justify-content: space-between; padding: 0 .25rem .4rem; gap: .5rem; }
.rail .utility a { font-size: .875rem; color: #c5d9ca; text-underline-offset: 3px; }
.rail .language:hover, .rail .icon-button:hover { background: #2b4b3b; }
.account { border-top: 1px solid #3d594a; padding: .8rem 0 0 .2rem; display: flex; align-items: center; gap: .52rem; }
.avatar { flex: 0 0 auto; width: 33px; height: 33px; display: inline-grid; place-items: center; border-radius: 50%; background: #355642; color: #edf6e8; font-size: .9rem; font-weight: 680; }
.account-email { font-size: .875rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account form { margin-left: auto; }
.rail .icon-button { color: #d2e5d6; width: 34px; }
.app-main { width: 100%; max-width: 1520px; margin: 0 auto; padding: clamp(1.4rem, 3.5vw, 3.3rem); padding-bottom: 3.5rem; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: .9rem; margin-bottom: clamp(1.1rem, 2.5vw, 2rem); }
.page-heading p { font-size: .96rem; margin-top: .45rem; }
.dashboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, .39fr); gap: clamp(1rem, 2vw, 1.55rem); align-items: start; }
.calendar-card { padding: clamp(.8rem, 2.1vw, 1.55rem); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: 1rem; }
.panel-header > svg { color: var(--leaf-text); }
.calendar-card .panel-header h2, .insights-card .panel-header h2 { font: 530 clamp(1.28rem, 2.15vw, 1.72rem)/1.15 var(--serif); letter-spacing: -.045em; }
.month-nav { display: flex; align-items: center; gap: .35rem; }
.month-nav .button { min-height: 42px; padding-inline: .68rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(.22rem, .6vw, .46rem); }
.weekday { color: var(--muted); padding: .38rem 0; text-align: center; font-size: .875rem; font-weight: 610; }
.date-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: space-between;
  gap: .25rem;
  min-height: clamp(50px, 6vw, 93px);
  padding: clamp(.32rem, 1vw, .68rem);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcf8;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.15;
}
a.date-cell:hover { border-color: #8ba392; background: #edf3ea; }
.date-number { font-size: .92rem; font-weight: 660; }
.date-cell.spillover { background: #f6f7f2; color: #627064; }
.date-cell.filled.kind-lucky { background: var(--lucky-wash); }
.date-cell.filled.kind-ordinary { background: var(--ordinary-wash); }
.date-cell.filled.kind-tense { background: var(--tense-wash); }
.date-cell.date-today { border-color: #437759; box-shadow: inset 0 0 0 1px #437759; }
.date-today .date-number { color: var(--leaf-deep); }
.score-0 { --score: #93443c; --score-text: white; --level: 0; }
.score-1 { --score: #a64e44; --score-text: white; --level: 1; }
.score-2 { --score: #b55e51; --score-text: white; --level: 2; }
.score-3 { --score: #e6a598; --score-text: #42211c; --level: 3; }
.score-4 { --score: #e5d7bc; --score-text: #403728; --level: 4; }
.score-5 { --score: #d9d3bd; --score-text: #392f1e; --level: 5; }
.score-6 { --score: #cac5a6; --score-text: #302b1c; --level: 6; }
.score-7 { --score: #acd4bd; --score-text: #17392a; --level: 7; }
.score-8 { --score: #73ad92; --score-text: #173023; --level: 8; }
.score-9 { --score: #3c8066; --score-text: white; --level: 9; }
.score-10 { --score: #24654c; --score-text: white; --level: 10; }
.score-tag { min-width: 25px; align-self: end; border-radius: 6px; padding: .2rem .32rem; background: var(--score); color: var(--score-text); text-align: center; font-size: .875rem; font-weight: 690; line-height: 1.15; font-variant-numeric: tabular-nums; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin-top: 1.05rem; color: var(--muted); font-size: .875rem; }
.calendar-legend > span, .category-row > span { display: inline-flex; gap: .38rem; align-items: center; }
.category-dot { display: inline-block; flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; }
.category-dot.kind-lucky { background: var(--lucky); }
.category-dot.kind-ordinary { background: var(--ordinary); }
.category-dot.kind-tense { background: var(--tense); }
.dashboard-panels { display: grid; gap: 1rem; }
.side-card { padding: 1rem; }
.summary-stats, .insights-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.summary-stats > div, .insights-metrics > div { display: flex; flex-direction: column; justify-content: space-between; gap: .15rem; padding: .65rem; background: var(--canvas); border-radius: 11px; }
.summary-stats span, .insights-metrics span { display: flex; align-items: center; gap: .4rem; color: var(--muted); font-size: .875rem; }
.summary-stats strong, .insights-metrics strong { color: var(--leaf-deep); font: 560 1.65rem/1.2 var(--serif); }
.categories { display: grid; gap: .34rem; margin-top: .85rem; }
.category-row { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: .9rem; }
.category-row strong { font-variant-numeric: tabular-nums; }
.summary-link { display: inline-block; margin-top: .9rem; font-size: .875rem; }
.chart { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; }
.chart-month { grid-auto-flow: column; grid-auto-columns: minmax(1.35rem, 1fr); grid-template-columns: unset; overflow-x: auto; padding-bottom: .35rem; }
.chart-slot { min-width: 0; }
.chart-day { display: grid; grid-template-rows: auto auto auto; justify-items: center; gap: .26rem; text-decoration: none; border-radius: 5px; }
.chart-track { position: relative; background: #edf0e8; width: min(23px, 90%); height: 58px; border-radius: 5px; overflow: hidden; }
.chart-fill { display: block; position: absolute; bottom: 0; width: 100%; height: calc(9% + 9.1% * var(--level)); background: var(--score); border-radius: 4px; }
.chart-label, .chart-value { color: var(--muted); font-size: .875rem; }
.chart-value { font-weight: 660; font-variant-numeric: tabular-nums; }
.chart-day:hover .chart-track, .chart-today .chart-track { outline: 1px solid #8ba392; outline-offset: 1px; }
.insights-heading { align-items: center; }
.segmented { display: flex; padding: 4px; background: #e9ede4; border: 1px solid var(--line); border-radius: 11px; }
.segmented a { padding: .48rem .82rem; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 600; }
.segmented a[aria-current] { background: var(--paper); color: var(--leaf-deep); box-shadow: 0 1px 3px #273e2420; }
.insights-card { padding: clamp(1rem, 2.5vw, 1.6rem); }
.insights-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.insights-metrics > div { padding: .75rem; }
.insights-chart { margin-top: 1.2rem; }
.insights-chart h3 { margin-bottom: .8rem; }
.insights-chart .chart-track { height: 105px; width: min(32px, 78%); }
.empty-insights { padding: 1rem 0 .2rem; color: var(--muted); }
.insights-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.group { padding: 1rem; }
.group h2 { display: flex; align-items: center; gap: .45rem; }
.group ul { margin: .45rem 0 0; padding: 0; list-style: none; }
.group li + li { border-top: 1px solid var(--line); }
.group li a { display: flex; align-items: center; justify-content: space-between; gap: .45rem; padding-block: .5rem; text-decoration: none; font-size: .9rem; }
.group li a:hover { text-decoration: underline; }
.group p { margin-top: .45rem; font-size: .9rem; }

.entry-wrap { max-width: 970px; margin-inline: auto; }
.back-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--leaf-text); text-underline-offset: 3px; font-size: .91rem; font-weight: 600; margin-bottom: .8rem; }
.entry-heading { align-items: end; }
.entry-heading p { margin: 0 0 .38rem; }
.save-status { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .65rem; border-radius: 8px; background: var(--leaf-wash); color: var(--leaf-deep); font-size: .875rem; font-weight: 650; }
.entry-form { display: grid; gap: 1rem; }
.entry-form .card { padding: clamp(1rem, 3vw, 1.65rem); }
.score-fieldset { min-width: 0; border: 0; margin: 0; padding: 0; }
.score-fieldset legend, .section-title { font: 550 1.35rem/1.2 var(--serif); letter-spacing: -.033em; padding: 0; }
.score-inputs { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: clamp(.19rem, .8vw, .48rem); margin-top: 1rem; }
.score-option { display: block; position: relative; cursor: pointer; }
.score-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.score-chip { display: grid; place-items: center; border-radius: 9px; background: var(--score); color: var(--score-text); height: clamp(38px, 5vw, 53px); font-variant-numeric: tabular-nums; font-size: 1rem; font-weight: 660; }
.score-option:hover .score-chip { box-shadow: 0 0 0 2px var(--leaf-wash); }
.score-option input:checked + .score-chip, .score-option input:focus-visible + .score-chip { outline: 2px solid var(--leaf-deep); outline-offset: 2px; }
.score-scale { display: flex; justify-content: space-between; gap: .35rem; margin-top: .7rem; font-size: .875rem; color: var(--muted); }
.score-scale > span:last-child { text-align: end; }
.writing-card textarea { display: block; resize: vertical; min-height: 210px; margin-top: .8rem; padding: 1rem; color: var(--ink); line-height: 1.65; }
textarea::placeholder { color: #626e63; }
.proofread { margin-top: .85rem; }
.proofread-controls, .button-row { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.auto-proofread { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; color: var(--muted); cursor: pointer; }
.auto-proofread input { accent-color: var(--leaf); width: 17px; height: 17px; }
.proofread-note { font-size: .875rem; margin-top: .5rem; }
.proofread-status:not(:empty) { margin-top: .5rem; font-size: .9rem; color: var(--leaf-text); }
.suggestion { border: 1px solid #cddccf; border-radius: 12px; padding: .85rem; background: #f5faf4; margin-block: .5rem; }
.diff, .original { white-space: pre-wrap; overflow-wrap: anywhere; }
.diff { margin-block: .55rem .9rem; }
.diff del { background: #f5d8d1; color: #6c2d26; }
.diff ins { background: #d7ebd6; color: #214b30; text-decoration: underline; }
.original { margin-top: .9rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.original summary { color: var(--leaf-text); cursor: pointer; font-weight: 600; font-size: .92rem; }
.original div { margin-top: .5rem; padding: .65rem; background: var(--canvas); border-radius: 8px; }
.upload-card h2 { font: 550 1.35rem/1.2 var(--serif); letter-spacing: -.033em; }
.upload-card p { margin-top: .35rem; }
.upload-picker { margin-top: .65rem; position: relative; }
.upload-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-picker input:focus-visible + label { outline: 2px solid #508e75; outline-offset: 3px; }
.upload-picker label { cursor: pointer; }
.upload-list { margin: .65rem 0 0; padding-left: 1.15rem; font-size: .9rem; overflow-wrap: anywhere; }
.upload-list:empty { display: none; }
.entry-actions { display: flex; justify-content: end; }
.media-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: .75rem; margin-top: 1rem; }
.media-item { overflow: hidden; padding: .58rem; }
.media-frame { display: block; width: 100%; aspect-ratio: 1.45; border-radius: 10px; background: #25332a; overflow: hidden; }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-item form { margin-top: .56rem; }
.delete-entry { margin-top: 1rem; }

@media (max-width: 1100px) {
  .dashboard { grid-template-columns: minmax(0, 1fr); }
  .dashboard-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .frame { width: calc(100% - 2.3rem); }
  .public-header { min-height: 74px; }
  .public-footer { min-height: 62px; }
  .hero { gap: 1rem; grid-template-columns: minmax(0, 1fr); padding-block: 1.8rem 1.6rem; }
  .hero h1 { font-size: clamp(3rem, 11vw, 5rem); }
  .hero-copy p { margin-block: 1.15rem 1.2rem; }
  .hero-photo { height: clamp(310px, 64vw, 440px); }
  .features { gap: 1.5rem; grid-template-columns: minmax(0, 1fr); padding-block: 1.35rem 2rem; }
  .features h2 { margin-top: .5rem; }
  .auth-layout { grid-template-columns: minmax(0, 1fr); max-width: 455px; margin-block: 1.7rem; }
  .auth-photo { min-height: 0; height: 210px; }
  .app-shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; height: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .6rem .35rem; padding: .6rem .85rem .65rem; }
  .rail .brand { margin: 0; }
  .app-nav { margin: 0; grid-row: 2; grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; }
  .app-nav a { min-height: 37px; padding: .4rem .6rem; }
  .app-nav svg { width: 17px; height: 17px; }
  .rail > .button-rail, .rail .avatar, .rail .account-email, .rail .utility > a:not(.language) { display: none; }
  .rail-bottom { margin: 0; display: flex; align-items: center; }
  .rail .utility, .rail .account { padding: 0; border: 0; }
  .app-main { padding: 1.2rem .9rem 2.3rem; }
  .page-heading .button { padding-inline: .6rem; }
  .insights-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .insights-groups { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 485px) {
  .hero h1 { font-size: clamp(2.72rem, 11vw, 4rem); }
  html[lang=ru] .hero h1 { font-size: clamp(2.45rem, 10vw, 3.6rem); }
  .dashboard-panels { grid-template-columns: minmax(0, 1fr); }
  .calendar-card .panel-header { align-items: start; }
  .calendar-card .panel-header h2 { padding-top: .34rem; }
  .month-nav .button { min-height: 34px; padding-inline: .42rem; font-size: .875rem; }
  .month-nav .icon-button { width: 33px; height: 34px; }
  .date-cell { padding: .27rem; border-radius: 7px; }
  .score-tag { min-width: 22px; padding: .15rem .2rem; }
  .score-chip { border-radius: 6px; font-size: .9rem; }
  .score-scale { font-size: .84rem; }
  .page-heading { flex-wrap: wrap; }
  .entry-heading { gap: .45rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .button, .icon-button, .date-cell, .app-nav a { transition: background-color .14s ease, border-color .14s ease; }
}
