/* Пациентский веб Dr.You (наряд web-patient-portal): мобильный первый, две темы по системной настройке, крупный шрифт, контраст ≥ 4.5:1. */
:root { --bg: #ffffff; --fg: #1a1a1a; --muted: #4a4a4a; --accent: #0b5cad; --line: #d0d0d0; --card: #f5f7fa; --danger: #a40e26; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #121417; --fg: #f1f1f1; --muted: #c4c4c4; --accent: #7fb6ff; --line: #3a3f45; --card: #1d2126; --danger: #ff8a9a; }
}
* { box-sizing: border-box; }
html { font-size: 112.5%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; line-height: 1.5; }
a { color: var(--accent); }
.top, .foot, main { max-width: 40rem; margin: 0 auto; padding: 1rem; }
.top { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; text-decoration: none; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 0.75rem; padding: 1rem; margin: 0.75rem 0; }
label { display: block; margin: 0.75rem 0 0.25rem; font-weight: 600; }
input, select, button { font: inherit; width: 100%; padding: 0.75rem; border-radius: 0.5rem; border: 1px solid var(--line); background: var(--bg); color: var(--fg); }
button { background: var(--accent); color: var(--bg); border: none; font-weight: 700; margin-top: 1rem; cursor: pointer; }
.logout button { width: auto; margin: 0; padding: 0.4rem 0.8rem; }
.error { color: var(--danger); font-weight: 600; }
.slots { list-style: none; padding: 0; }
.slots li { padding: 0.25rem 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.slot { display: flex; gap: 0.5rem; align-items: center; font-weight: 400; margin: 0.4rem 0; }
.slot input { width: auto; }
fieldset { border: 1px solid var(--line); border-radius: 0.75rem; }
legend { font-weight: 700; padding: 0 0.25rem; }
details { margin: 0.5rem 0; }
summary { cursor: pointer; color: var(--accent); }
.consent { max-height: 20rem; overflow-y: auto; border-left: 3px solid var(--line); padding-left: 0.75rem; color: var(--muted); }
h3 { margin: 0.75rem 0 0.25rem; font-size: 1rem; }
.cal-title { margin: 0 0 0.5rem; font-size: 1.1rem; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.25rem; }
.cal-month { font-weight: 700; }
.cal-arrow { display: inline-block; min-width: 2.75rem; min-height: 2.75rem; line-height: 2.75rem; text-align: center; font-size: 1.4rem; text-decoration: none; border-radius: 0.5rem; }
.cal-arrow.off { color: var(--line); }
.cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cal th { font-size: 0.85rem; color: var(--muted); font-weight: 600; padding: 0.25rem 0; }
.cal td { text-align: center; padding: 0.15rem; color: var(--muted); }
.cal td a { display: block; min-height: 2.75rem; line-height: 2.75rem; border-radius: 0.5rem; font-weight: 700; text-decoration: none; border: 1px solid var(--accent); }
.cal td.sel a { background: var(--accent); color: var(--bg); }
