/* HAHUMI 6.27 — accessibility pass (agent a11y). Must load AFTER home60.css.
 * Contrast (WCAG 1.4.3 / 1.4.11), selected-state chip, form errors under checkboxes, tap targets ≥ 44 px (2.5.5 / 2.5.8). */

/* 1.4.3: green rail text — «Мой маленький мир» and the slogan were 3.2–3.8:1 on the forest rail */
html body[data-state=home]:not([data-welcome="1"]) .rail-label{color:rgba(255,248,236,.86)}
html body[data-state=home]:not([data-welcome="1"]) .logo small{color:rgba(255,248,236,.88)}
html body[data-state=home]:not([data-welcome="1"]) .rail624-txt small,html body[data-state=home]:not([data-welcome="1"]) .vault-pill{color:rgba(255,248,236,.78)} /* were 4.5–4.9:1, too close to the line */

/* 1.4.11: an «off» switch track was 1.86:1 against the card — now a solid track ≥ 3:1, knob ≥ 3:1 against it */
html .switch-row input[type=checkbox]:not(:checked){background:#6F7C74;box-shadow:inset 0 0 0 1px #5E6A63}
html .switch-row input[type=checkbox]{min-width:46px}

/* 1.4.3: «Что тут делать» over the street photo on a phone gets its own backing */
@media (max-width:760px){
 html .w613-more{background:rgba(255,253,248,.94);color:#1F3A2E;border-radius:999px;padding:0 16px;min-height:44px;display:inline-flex;align-items:center;box-shadow:0 6px 18px -10px rgba(20,16,40,.45)}
 html body[data-street="1"][data-daypart=night] .st619 .w613-more{background:rgba(18,30,24,.86);color:#FFF8EC}
}

/* s1-ui #4: the selected hero in Settings is a selected chip (tint + ring + ✓), not a second primary button */
html .character-picker button{min-height:44px}
html .character-picker button.selected,html .character-picker button[aria-pressed=true]{background:color-mix(in oklab,var(--act,#2F6B4F) 12%,var(--surface,#FFFDF8));color:var(--ink);border:2px solid var(--act,#2F6B4F);font-weight:600;box-shadow:none}
html .character-picker button[aria-pressed=false]:hover{border-color:var(--ink-3,rgba(28,25,48,.42))}

/* forms: an error under a consent checkbox or the rename row reads as part of that field */
html label.consent + .err626,html .rename-row + .err626{margin:-2px 0 10px}

/* 2.5.8: tap targets in popups, chat and forms — at least 44 px */
html .chat62-clear,
html .chat-panel .quick-row > button,
html .joke612-open,
html .joke612-btn,
html #jokeCancel612,
html .joke612-rate button,
html .joke612-meta .minor-btn,
html .gift621-ok,
html .gift614-name,
html #renameBtn,
html #renameField,
html .memory-item button,
html .confirm624-row button,
html .snap625 .confirm624-row button,
html .life61-button,
html #lifeBeatControls61 button{min-height:44px}
html .gift614-item{min-height:44px;min-width:44px}
html #lifeBeatControls61 button{min-width:44px}
html .stage-top .look613-btn,html .souv614-give{min-width:44px;min-height:44px}
html .look613-btn,html .stage-top .look613-btn{min-height:44px;min-width:44px}
@media (max-width:740px){html .look613-btn{width:44px;height:44px}}
html .snap613{min-width:44px;min-height:44px}
html .stage-top .sound-toggle.has-ic620,html .stage-top .look613-btn.has-ic620{width:44px;min-width:44px;height:44px;min-height:44px}
html .snap613[aria-disabled=true]{opacity:.6;cursor:progress}
html .bubble.me .chat62-memory-draft{min-height:44px;align-items:center}
html .chat-panel .quick-row .chat-mode66 select,html .chat-mode66 select{min-height:44px}
html .joke612-check{min-height:44px;display:inline-flex;align-items:center;gap:8px}
html .joke612-check input,html label.consent input[type=checkbox]{width:22px;height:22px}

/* 7.11: finger-sized language switch on touch and tablet widths (measured 48x40) */
@media (pointer:coarse),(max-width:900px){
 html .lang613{min-height:44px;min-width:48px}
}
