*, *::before, *::after { box-sizing: border-box; }
html { min-width: 0; background: var(--bg-0); }
body { margin: 0; font-family: var(--f-sans); color: var(--tx-1); font-size: 15px; line-height: 1.5; }
[hidden] { display: none !important; }
a { color: var(--ac); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, [aria-disabled="true"] { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
.skip-link { position: fixed; top: var(--sp-2); left: var(--sp-2); z-index: 100; display: inline-flex; align-items: center; min-width: var(--shell-touch); min-height: var(--shell-touch); padding: var(--sp-2) var(--sp-3); transform: translateY(calc(-100% - 16px)); border-radius: var(--r-2); background: var(--bg-2); box-shadow: var(--sh-2); }
.skip-link:focus { transform: translateY(0); }
img, svg, video { max-width: 100%; }
img, video { height: auto; }
h1, h2, h3 { line-height: 1.25; overflow-wrap: anywhere; }
h1 { margin: 0 0 var(--sp-1); font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
h2 { font-size: 19px; }
p { overflow-wrap: anywhere; }
.muted { color: var(--tx-3); font-size: 14px; }
.card { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: var(--r-4); padding: 22px; margin-top: 18px; min-width: 0; overflow-wrap: anywhere; }
/* Ô bảng: `anywhere` (kế thừa từ .card) cho cột co tới 1 ký tự → «А кт ёр» trên 390px (E-K-04, pe2e).
   `break-word` chỉ ngắt từ quá dài, giữ bề rộng tối thiểu = từ dài nhất; bảng rộng thì thẻ cuộn ngang. */
th, td { overflow-wrap: break-word; }
label { display: block; font-size: 13px; font-weight: 600; margin: var(--sp-3) 0 6px; }
input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]), select, textarea { width: 100%; max-width: 360px; min-height: var(--shell-touch); padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--tx-1); font-size: 15px; }
textarea { max-width: 100%; resize: vertical; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ac); }
input::placeholder, textarea::placeholder { color: var(--tx-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: var(--shell-touch); margin-top: 14px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; background: var(--ac); color: var(--on-ac); font-size: 14px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ac-h); }
.btn.secondary { background: var(--bg-2); color: var(--tx-1); border-color: var(--line-2); }
.btn.secondary:hover { background: var(--bg-3); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.errors, .status { border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: var(--sp-3) 0; overflow-wrap: anywhere; }
.errors { background: var(--danger-dim); color: var(--danger); }
.status { background: var(--ok-dim); color: var(--ok); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation: none !important; }
}
