:root {
  --paper: #fff; --work: #f4f4f4; --ink: #262626; --muted: #525252;
  --line: #e0e0e0; --frame: #c6c6c6; --field: #6f6f6f; --accent: #262626; --accent-hover: #161616;
  --identity: #9f1853; --focus: #0f62fe; --ok: #0e6027; --ok-soft: #defbe6; --no: #a2191f; --no-soft: #fff1f1;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-offset, 80px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/24px 'IBM Plex Sans', sans-serif; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.text a:visited, .source a:visited, .byline a:visited, .item .num:visited { color: #6929c4; }
a, button, input, select, textarea, label, summary { touch-action: manipulation; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: Literata, Georgia, serif; font-weight: 500; font-optical-sizing: auto; }
h1 { font-size: 32px; line-height: 40px; }
h2 { font-size: 24px; line-height: 32px; }
h3 { font-size: 18px; line-height: 24px; font-weight: 600; }
p { margin: 0; }
p + p { margin-top: 12px; }
[id] { scroll-margin-top: 16px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
main.wrap { padding-top: 32px; padding-bottom: 40px; }
.wrap > *, .catalog > *, .account-settings > *, .submit-layout > * { min-width: 0; }
.muted, .hint { color: var(--muted); }
.small, .hint { font-size: 14px; line-height: 20px; }
.ok { color: var(--ok); }
.danger { color: var(--no); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
.skip { position: fixed; top: 8px; left: -9999px; z-index: 30; padding: 8px 12px; background: var(--paper); border: 1px solid var(--focus); }
.skip:focus { left: 16px; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: butt; stroke-linejoin: miter; }
.icon.flip { transform: scaleX(-1); }

/* Навигация */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header.header-tall { position: static; }
.header-wrap { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 22px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.logo .icon { width: 68px; height: 32px; flex-basis: 68px; color: var(--identity); }
.logo-break { display: none; }
.main-nav, .account-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; line-height: 20px; }
.account-nav { justify-content: flex-end; gap: 12px; }
.main-nav > a, .account-nav > a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; text-decoration: none; }
.main-nav > a:hover, .account-nav > a:hover { text-decoration: underline; }
.main-nav > a.on, .account-nav > a.on { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.main-nav .random-link { padding: 6px 10px; border-radius: 4px; background: var(--work); white-space: normal; }
.account-nav .user { white-space: nowrap; }
.owner-menu { position: relative; }
.owner-menu summary { min-height: 36px; line-height: 36px; cursor: pointer; }
.owner-menu > div { position: absolute; top: 100%; right: 0; min-width: 174px; max-width: calc(100vw - 32px); padding: 8px; border: 1px solid var(--field); border-radius: 4px; background: var(--paper); }
.owner-menu .owner-link { display: flex; align-items: center; min-height: 36px; padding: 4px 8px; white-space: nowrap; }
.owner-menu .owner-link:hover { background: var(--work); }

/* Кнопки и поля */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 5px 14px; border: 1px solid var(--accent); border-radius: 4px; background: var(--accent); color: #fff; font: 600 14px/24px 'IBM Plex Sans', sans-serif; text-decoration: none; cursor: pointer; }
.btn:hover, .btn:active { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; text-decoration: none; }
.btn.line { background: var(--paper); color: var(--ink); }
.btn.line:hover { background: var(--work); }
.btn.wide { display: flex; width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.danger { background: var(--no); border-color: var(--no); }
.btn.danger:hover { background: #750e13; border-color: #750e13; }
button.link { min-height: 36px; padding: 6px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
select, textarea, .form input:not([type=radio]):not([type=checkbox]):not([type=file]), .settings-section input:not([type=radio]):not([type=checkbox]):not([type=file]) { width: 100%; min-width: 0; max-width: 100%; min-height: 36px; padding: 5px 12px; border: 1px solid var(--field); border-radius: 4px; background: var(--paper); color: var(--ink); font: 16px/24px 'IBM Plex Sans', sans-serif; }
select { padding-left: 8px; }
textarea { display: block; resize: vertical; }
input[type=file] { max-width: 100%; font: inherit; }
.row { display: flex; align-items: stretch; gap: 8px; }
.field { display: flex; align-items: center; flex: 1; min-width: 0; border: 1px solid var(--field); border-radius: 4px; background: var(--paper); }
.field:focus-within { outline: 2px solid var(--focus); outline-offset: 3px; }
.field:has([aria-invalid=true]) { border-color: var(--no); }
.field input { width: 100%; min-width: 0; min-height: 34px; padding: 5px 12px; border: 0; outline: none; border-radius: inherit; background: transparent; color: var(--ink); font: 16px/24px 'IBM Plex Sans', sans-serif; }
.field span { flex-shrink: 0; padding-right: 12px; color: var(--muted); font-size: 14px; }
.choice { display: flex; align-items: flex-start; gap: 8px; min-height: 36px; padding: 6px 0; font-weight: 400; cursor: pointer; }
.choice input { flex-shrink: 0; width: 17px; height: 17px; margin: 3px 0 0; accent-color: var(--ink); }
.choice span { min-width: 0; }
.answer { margin-top: 24px; padding: 20px; background: var(--work); }
.answer label, .answer legend { display: block; padding: 0; margin-bottom: 8px; font-weight: 600; }
.answer .choice { display: flex; margin-bottom: 0; font-weight: 400; }
.answer fieldset { min-width: 0; margin: 0 0 12px; padding: 0; border: 0; }
.answer .hint, .hint { margin-top: 8px; }
.answer .link.small { font-size: 14px; line-height: 20px; }
.answer .row .btn { flex-shrink: 0; }
.verdict { margin-bottom: 12px; padding: 12px; font-weight: 600; }
.verdict:last-child { margin-bottom: 0; }
.verdict.ok { color: var(--ok); background: var(--ok-soft); }
.verdict.no { color: var(--no); background: var(--no-soft); }
.verdict.neutral { color: var(--ink); background: var(--work); }
.verdict .icon { width: 18px; height: 18px; vertical-align: -3px; margin-right: 4px; }
[aria-invalid=true] { border-color: var(--no); }
.err, .errorlist { margin: 8px 0 0; color: var(--no); font-size: 14px; line-height: 20px; }
.errorlist { padding-left: 18px; }
.error-summary { margin-bottom: 24px; padding: 16px; border-left: 4px solid var(--no); background: var(--no-soft); color: var(--no); font-weight: 400; }
.error-summary h2 { margin-bottom: 8px; font: 600 18px/24px 'IBM Plex Sans', sans-serif; }
.error-summary ul { margin: 0; padding-left: 18px; }
.error-summary p { margin-bottom: 8px; }
.messages .msg { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid var(--ink); background: var(--work); }

/* Чтение и задача дня */
.text { font: 18px/28px Literata, Georgia, serif; font-optical-sizing: auto; overflow-wrap: break-word; }
.text p { margin: 0; }
.text p + p { margin-top: 1em; }
.katex { font-size: 1.04em; }
.katex-display { max-width: 100%; overflow-x: auto; overflow-y: hidden; margin: .7em 0; padding: 4px 0; }
.chip, .tag { color: var(--muted); font: 14px/20px 'IBM Plex Sans', sans-serif; }
.chip b { font-weight: 600; }
.figure { display: block; max-width: 100%; height: auto; margin-top: 20px; }
.hero { max-width: 760px; margin: 0 auto; }
.daily-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 16px; }
.daily-heading > span { font-size: 14px; color: var(--muted); }
.daily-heading > a { margin-left: auto; font-size: 14px; }
.day-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 24px; }
.day-head .daily-name { flex-basis: 100%; overflow-wrap: anywhere; }
.day-body { display: block; }
.daily-question { max-width: 68ch; }
.today { margin-top: 12px; }
.continue { margin-top: 16px; }
.continue + p { margin-top: 12px; }
.source { margin-top: 24px; color: var(--muted); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.source a { color: var(--ink); }
.source-short { display: inline; }
.source-short .icon, .source-details .icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.source-details { display: inline-block; margin-left: 12px; vertical-align: top; }
.source-details[open] { display: block; margin-left: 0; }
.source-details summary { min-height: 36px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.source-details p { margin-top: 8px; }
.home-catalog { max-width: 760px; margin: 24px auto 0; }
.home-catalog > a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; }

/* Каталог */
.catalog { display: grid; grid-template-columns: 208px minmax(0, 1fr); align-items: start; gap: 28px 40px; }
.catalog > .catalog-head { grid-column: 1 / -1; grid-row: 1; }
.catalog > .filter-panel { grid-column: 1; grid-row: 2; }
.catalog > .catalog-results { grid-column: 2; grid-row: 2; }
.catalog-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; }
.result-count { display: inline-block; margin-left: 8px; color: var(--muted); font: 400 14px/20px 'IBM Plex Sans', sans-serif; white-space: nowrap; }
.catalog-head .sort { margin-left: auto; }
.sort { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 14px; line-height: 20px; }
.sort a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); }
.sort a.on { font-weight: 600; text-decoration-thickness: 2px; }
summary { cursor: pointer; }
.filter-panel > summary { display: none; }
.filter-state { font-weight: 400; font-size: 14px; color: var(--muted); }
.filters { padding: 0; }
.filter-group { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.filter-group > label:not(.filter-option), .filter-group > legend { display: block; margin-bottom: 6px; padding: 0; font-size: 14px; font-weight: 600; }
.filters select { font-size: 14px; }
.filter-option { display: flex; align-items: center; gap: 8px; min-width: 32px; min-height: 32px; font-size: 14px; cursor: pointer; }
.filter-option input { flex-shrink: 0; width: 16px; height: 16px; margin: 0; accent-color: var(--ink); }
.filter-option:has(:checked) { font-weight: 600; }
.filter-levels { display: flex; flex-wrap: wrap; gap: 0 12px; }
.filter-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.selection { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-bottom: 24px; color: var(--muted); font-size: 14px; line-height: 20px; }
.applied-filters { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; padding: 0; list-style: none; }
.selection a { color: var(--ink); }
.level-help { margin-top: 8px; font-size: 14px; line-height: 20px; }
.level-help summary, .activity-days summary { min-height: 36px; text-decoration: underline; text-underline-offset: 3px; }
.level-help dl { margin: 8px 0 0; }
.level-help dt { margin-top: 8px; font-weight: 600; }
.level-help dd { margin: 0; color: var(--muted); }
.problem-list { display: grid; gap: 26px; margin: 0; padding: 9px 0 0; list-style: none; }
.item { min-width: 0; position: relative; margin: 0; padding: 18px 20px 16px; border: 1px solid var(--frame); border-radius: 2px; background: var(--paper); }
.item .top { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 12px; }
.item h2, .item h3 { min-width: 0; margin: 0; font: 600 18px/26px 'IBM Plex Sans', sans-serif; overflow-wrap: anywhere; }
.item .num { text-decoration: none; }
.item .item-number { color: var(--muted); font-size: 13px; white-space: nowrap; }
.item.card-clickable { cursor: pointer; }
.item .text { font-size: 18px; line-height: 28px; }
.item .meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 20px; }
.item .meta > span { min-width: 0; overflow-wrap: anywhere; }
.item .meta .state { margin-left: auto; }
.item .state .icon { width: 16px; height: 16px; vertical-align: -3px; }
.day-tag { font-size: 12px; }
.empty { padding: 16px 0; }
.more { margin-top: 24px; }
.invite { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.invite p { max-width: 66ch; color: var(--muted); font-size: 14px; line-height: 20px; }
.invite > a { margin-left: auto; }
footer { padding: 20px 0 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 20px; }
footer a { display: inline-block; margin-left: 12px; }

/* Полная задача */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 20px; color: var(--muted); font-size: 14px; line-height: 20px; }
.crumbs a { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.crumbs .icon { width: 16px; height: 16px; }
.problem-page { max-width: 760px; margin: 0 auto; }
.problem .head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 24px; }
.problem .head h1 { flex-basis: 100%; margin-bottom: 8px; }
.problem .text { max-width: 68ch; }
.byline { margin-bottom: 12px; }
.problem-stats { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 16px; color: var(--muted); font-size: 14px; line-height: 20px; }
.problem-stats .stat { display: inline-flex; gap: 6px; margin: 0; }
.next-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; }
.next-main { display: flex; align-items: center; gap: 8px; }
.next-alternatives { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; }
.next-alternatives a { display: inline-flex; align-items: center; min-height: 36px; }
.solution { margin-top: 40px; }
.solution > h2, .solution > h3 { margin-bottom: 16px; }
.contribution { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); }
.contribution summary { min-height: 36px; font-size: 14px; }
.contribution form, .contribution > p { margin-top: 16px; }
.contribution textarea { min-height: 144px; }

/* Формы и личные страницы */
.form, .profile, .stats { margin: 0 auto; }
.form, .profile { max-width: 760px; }
.form.narrow { max-width: 420px; }
.form > h1, .profile > h1, .stats > h1 { margin-bottom: 16px; }
.lead { max-width: 68ch; margin-bottom: 24px; color: var(--muted); font-size: 16px; line-height: 24px; }
.entry-form { margin-top: 24px; }
.entry-form + p { margin-top: 16px; }
.q { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.q > label, .q > legend { display: block; padding: 0; margin-bottom: 8px; font-weight: 600; }
.q > label i, .q > legend i { color: var(--muted); font-size: 14px; font-style: normal; font-weight: 400; }
.q > label.choice { display: flex; margin-bottom: 0; font-weight: 400; }
.form textarea { min-height: 144px; font: 16px/24px 'IBM Plex Sans', sans-serif; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.password-field { display: flex; align-items: stretch; gap: 8px; }
.password-field > input { flex: 1; }
.password-toggle { flex-shrink: 0; min-height: 36px; padding: 5px 8px; border: 1px solid var(--field); border-radius: 4px; background: var(--paper); color: var(--ink); font: 14px/24px 'IBM Plex Sans', sans-serif; cursor: pointer; }
.password-toggle:hover { background: var(--work); }
.login-help { margin-top: 24px; color: var(--muted); font-size: 14px; line-height: 20px; }
.login-help summary { min-height: 36px; }
.person { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.person p { margin-top: 8px; }
.person > div, .person h1 { min-width: 0; overflow-wrap: anywhere; }
.photo { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.account-grid, .account-settings { display: block; }
.account-settings { max-width: 600px; }
.settings-section + .settings-section { margin-top: 40px; }
.settings-section > h2, .activity > h2, .stats-section > h2 { margin-bottom: 16px; }
.settings-section .q { margin-bottom: 20px; }
.settings-section > p { margin-bottom: 16px; }
.account-activity { margin-top: 48px; }
.activity > h3 { margin: 32px 0 12px; }
.profile > h2 { margin: 40px 0 24px; }
.profile > .item + .item { margin-top: 26px; }
.danger-zone p { margin-top: 16px; }
.stat { display: flex; justify-content: space-between; gap: 8px 24px; margin: 8px 0; font-variant-numeric: tabular-nums; }
.stat > :last-child { min-width: 0; text-align: right; overflow-wrap: anywhere; }
.daily-counts > span { display: inline-block; white-space: nowrap; }
.stats-section { margin-top: 40px; }
.stats-section > h3 { margin: 32px 0 12px; }
.stats-section > .table { margin-top: 20px; }
.stats-section > p { margin-top: 12px; }
.stats-section > p > .btn { margin-top: 8px; }
.message-body { margin-top: 24px; }
.message-body > a { margin-top: 20px; }
.message-body > p + p { margin-top: 16px; }
.policy-text { max-width: 68ch; }
.policy-text h2 { margin: 32px 0 12px; }
.policy-text p { line-height: 26px; }
.submit-layout { display: block; margin-bottom: 24px; }
.optional-fields { min-width: 0; margin: 32px 0 0; padding: 0; border: 0; }
.optional-fields > legend { margin-bottom: 16px; padding: 0; font-size: 18px; font-weight: 600; }
.preview-panel { margin: 24px 0; }
.preview-panel > h2 { margin-bottom: 12px; }
.preview { padding: 20px; background: var(--work); }
.preview .text { white-space: pre-wrap; }

/* Календарь и таблицы */
.heat-scroll { max-width: 100%; overflow-x: auto; padding: 2px; margin-top: 16px; }
.heat-months { display: grid; grid-template-columns: repeat(53, minmax(0, 1fr)); gap: 3px; min-width: 686px; margin: 0 0 4px 28px; color: var(--muted); font-size: 12px; line-height: 20px; }
.heat-calendar { display: grid; grid-template-columns: 20px minmax(686px, 1fr); gap: 8px; min-width: 714px; }
.heat-weekdays { display: grid; grid-template-rows: repeat(7, 1fr); gap: 3px; color: var(--muted); font-size: 10px; line-height: 1; }
.heat { display: grid; grid-template-columns: repeat(53, minmax(0, 1fr)); gap: 3px; min-width: 686px; }
.week { display: grid; gap: 3px; }
.heat i, .legend i { display: block; aspect-ratio: 1; border-radius: 1px; background: var(--work); }
.heat i.future { visibility: hidden; }
.heat .l1, .legend .l1 { background: #c6c6c6; }
.heat .l2, .legend .l2 { background: #8d8d8d; }
.heat .l3, .legend .l3 { background: #525252; }
.heat .l4, .legend .l4 { background: #262626; }
.legend { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; }
.legend-item { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.legend i { width: 10px; height: 10px; }
.activity-days { margin-top: 16px; font-size: 14px; line-height: 20px; }
.table { max-width: 100%; overflow-x: auto; }
.table table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { font-weight: 600; }
.table caption { margin-bottom: 12px; text-align: left; font-weight: 600; }
.table .numeric { text-align: right; }

@media (width < 1020px) {
  .header-wrap { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 20px; padding-top: 8px; padding-bottom: 8px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; }
  .account-nav { grid-column: 2; grid-row: 1; }
  .catalog { grid-template-columns: 190px minmax(0, 1fr); column-gap: 28px; }
}
@media (width < 920px) {
  .catalog { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .catalog > .catalog-head, .catalog > .filter-panel, .catalog > .catalog-results { grid-column: 1; grid-row: auto; }
  .filter-panel { border-bottom: 1px solid var(--line); }
  .filter-panel > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 0; font-weight: 600; }
  .filter-toggle { margin-left: auto; }
  .filter-toggle::after { content: '+'; font-size: 22px; font-weight: 400; }
  .filter-panel[open] .filter-toggle::after { content: '−'; }
  .filter-state { margin-left: 8px; }
  .filters { max-width: 600px; padding: 16px 0; }
  .catalog-head .sort { width: 100%; margin-left: 0; }
  .selection { margin-bottom: 20px; }
}
@media (width < 640px) {
  .site-header { position: static; }
  html { scroll-padding-top: 16px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  main.wrap { padding-top: 24px; padding-bottom: 32px; }
  h1 { font-size: 28px; line-height: 36px; }
  h2 { font-size: 22px; line-height: 28px; }
  .header-wrap { min-height: 44px; gap: 0 16px; padding-top: 0; padding-bottom: 0; }
  .logo { min-height: 44px; font-size: 15px; line-height: 18px; white-space: normal; }
  .logo .icon { width: 55px; height: 26px; flex-basis: 55px; }
  .logo-break { display: block; }
  .main-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; width: 100%; padding: 4px 0; }
  .main-nav > a { min-height: 44px; gap: 4px; font-size: 13px; line-height: 16px; }
  .main-nav .icon { width: 16px; height: 16px; flex-basis: 16px; }
  .main-nav .random-link { padding: 4px 6px; }
  .account-nav { gap: 8px; }
  .account-nav .icon { width: 18px; height: 18px; flex-basis: 18px; }
  .daily-heading > a { margin-left: 0; }
  .day-head { margin-bottom: 20px; }
  .answer { padding: 16px; }
  .answer .row { flex-wrap: wrap; }
  .answer .row .field { flex-basis: 140px; }
  .item { padding: 16px; }
  .item .text { font-size: 17px; line-height: 26px; }
  .item .meta { gap: 6px 12px; margin-top: 12px; }
  .item .meta .state { margin-left: 0; }
  .filter-state { display: none; }
  .invite > a { margin-left: 0; }
  .problem .head { gap: 8px 16px; margin-bottom: 20px; }
  .next-alternatives { width: 100%; }
  .stat { flex-wrap: wrap; gap: 0 12px; }
  .stat > :last-child { margin-left: auto; }
  .preview { padding: 16px; }
  footer a { display: inline-block; margin-left: 0; }
}
@media (width < 360px) {
  .header-wrap:has(.owner-menu) .account-nav { flex-wrap: wrap; justify-content: flex-end; gap: 0 8px; max-width: 112px; }
}
@media (width < 640px), (any-pointer: coarse) {
  .btn, .main-nav > a, .account-nav > a, .sort a, .next-alternatives a, .owner-menu summary, .owner-menu .owner-link, .password-toggle, .choice, button.link, .level-help summary, .source-details summary, .contribution summary, .activity-days summary, .login-help summary, .home-catalog > a, .crumbs a { min-height: 44px; }
  select, textarea, .form input:not([type=radio]):not([type=checkbox]):not([type=file]), .settings-section input:not([type=radio]):not([type=checkbox]):not([type=file]) { min-height: 44px; }
  .field input { min-height: 42px; }
  .filter-option { min-height: 44px; min-width: 44px; }
  .choice { padding-top: 10px; padding-bottom: 10px; }
  .owner-menu summary { line-height: 44px; }
}
@media (max-height: 480px) {
  .site-header { position: static; }
  html { scroll-padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
