/* De telefoon-weergave, naar het voorbeeld van de Todoist-app (Android): groot kopje met het aantal eronder, geen invoerveld bovenaan
   (de ronde knop "+" voegt toe), taken als kaart met de datum links en het project rechts, een menubalk met een "pil" bij het
   actieve onderdeel, en vensters die van onderaf als blad openen. Eigen bestand, na bottomnav.css; alleen kleuren uit app.css, dus
   licht, donker en elke accentkleur kloppen vanzelf. Breder dan 760 pixels verandert er niets. */

@media (max-width: 760px) {
  :root { --radius-card: 14px; --card: var(--bg-soft); }

  .main { padding-left: 16px; padding-right: 16px; }

  /* ---------- kop ---------- */
  /* Zoeken staat in Bladeren; de balk bovenaan blijft alleen voor de synchronisatiemelding */
  .topbar { min-height: 0; padding: calc(6px + env(safe-area-inset-top)) 0 0; }
  .topbar-search { display: none; }
  .view-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; padding: 14px 0 12px; }
  .view-lead { display: none; }
  #view-title { order: 0; flex: 1 1 0; min-width: 0; font-size: 1.55rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* alleen pictogrammen rechts: de hoogte van de kop blijft gelijk, ook als er in de selecteermodus een knop "Klaar" bij komt */
  .view-head .view-actions .btn-comments .btn-label { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  /* de knoppen (selecteren, sorteren, ...) staan rechts op de regel van de titel; wat daarbinnen ook staat, telt als eigen onderdeel */
  .view-head > .view-actions { display: contents; }
  .view-head > .bulk-toggle, .view-actions > .button { order: 1; flex: none; }
  .view-count { order: 2; flex: 0 0 100%; padding: 0; font-size: 0.85rem; color: var(--text-soft); }
  /* Lijst, Bord en Kalender krijgen een eigen regel over de volle breedte */
  .view-head .view-switch { order: 3; flex: 0 0 100%; display: flex; margin-top: 10px; }
  .view-switch-button { flex: 1 1 0; justify-content: center; }
  .view-head .button-ghost { color: var(--text-soft); border-radius: 12px; }
  .view-head .button-ghost:hover, .view-head .button-ghost:active { background: var(--bg-hover); }

  /* geen invoerveld en geen voortgangsbalk bovenaan: de "+" is de weg om toe te voegen */
  .quick-add, #quick-preview, .stats-strip { display: none; }
  .content { padding-top: 4px; }

  /* ---------- koppen boven een groep ---------- */
  .group { margin-top: 0; }
  .group + .group { margin-top: 14px; }
  .group-head { border-bottom: 0; padding: 6px 2px 8px; min-height: 40px; gap: 8px; }
  .group-title { font-size: 1rem; font-weight: 700; }
  .group-count { font-size: 0.85rem; }
  .group-action { color: var(--accent); font-weight: 700; font-size: 0.92rem; text-decoration: none; padding: 6px 4px; }
  .group-toggle { margin-left: 0; color: var(--text-soft); }

  /* ---------- taken als kaart ---------- */
  .tasks { background: var(--card); border-radius: var(--radius-card); overflow: hidden; }
  .task, .task:hover { background: transparent; border-bottom: 1px solid var(--line); position: relative; }
  .task:last-child { border-bottom: 0; }
  .task { grid-template-columns: 48px minmax(0, 1fr); grid-template-areas: "check content"; }
  .check { width: 48px; height: 52px; align-self: start; }
  .check::before { width: 22px; height: 22px; }
  .task-content { padding: 12px 12px 11px 0; gap: 5px; }
  .task-title { font-size: 1rem; line-height: 1.35; }
  .task-meta { gap: 2px 10px; }
  .task-meta .chip { font-size: 0.8rem; }
  /* het project staat rechts op de regel van de datum, zoals in Todoist */
  .task > .chip-project { position: absolute; grid-area: auto; right: 12px; bottom: 11px; margin: 0; max-width: 42%; font-size: 0.8rem; color: var(--text-soft); }
  .task:has(> .chip-project) .task-meta { padding-right: 38%; min-height: 1.3em; }
  .task:has(> .chip-project) .task-content { padding-bottom: 11px; }
  .tasks .task[data-depth="1"], .tasks .task[data-depth="2"], .tasks .task[data-depth="3"], .tasks .task[data-depth="4"] { margin-left: 0; }
  .tasks .task[data-depth="1"] .check { margin-left: 18px; }
  .tasks .task[data-depth="2"] .check { margin-left: 36px; }
  .tasks .task[data-depth="3"] .check, .tasks .task[data-depth="4"] .check { margin-left: 54px; }
  .add-inline { color: var(--accent); }

  /* ---------- menubalk onderaan ---------- */
  /* dezelfde kleur als de pagina (en als het venster onder de gebarenbalk in de Android-app): geen naad */
  .bottom-nav { background: var(--bg); border-top: 1px solid var(--line); }
  .bnav-item { gap: 3px; color: var(--text-soft); }
  .bnav-icon { width: 56px; height: 30px; align-items: center; justify-content: center; border-radius: 15px; transition: background 0.15s; }
  .bnav-item.active { color: var(--accent); }
  .bnav-item.active .bnav-icon { background: var(--accent-soft); }
  .bnav-item.active .bnav-icon .icon { stroke-width: 2; }
  .bnav-badge { left: calc(50% + 8px); top: -4px; background: var(--accent-fill); color: var(--accent-on-fill); }

  /* ---------- de knop "+": een afgeronde vierkant, zoals in Todoist ---------- */
  .fab { background: var(--accent-fill); color: var(--accent-on-fill); border-radius: 18px; width: 58px; height: 58px; box-shadow: 0 4px 12px rgb(0 0 0 / 32%); }
  .fab .icon { width: 28px; height: 28px; stroke-width: 2.4; }
}

/* ---------- Taak toevoegen als blad onderaan (alleen op een telefoon; zie ui/quickAdd.js) ---------- */
.quick-submit .icon { display: none; }
.quick-choices [hidden] { display: none; }
.chip-button.quick-priority.prio-1 { color: var(--p1-text); border-color: var(--p1); }
.chip-button.quick-priority.prio-2 { color: var(--p2-text); border-color: var(--p2); }
.chip-button.quick-priority.prio-3 { color: var(--p3-text); border-color: var(--p3); }
.priority-option { display: flex; align-items: center; gap: 12px; }
.priority-option.prio-1 .icon { color: var(--p1); }
.priority-option.prio-2 .icon { color: var(--p2); }
.priority-option.prio-3 .icon { color: var(--p3); }
.priority-option .icon:last-child { margin-left: auto; color: var(--accent); }

@media (max-width: 760px) {
  .dialog-sheet, .dialog-quick {
    margin: auto auto 0; width: 100vw; max-width: 100vw; border: 0; border-radius: 20px 20px 0 0; background: var(--card);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .dialog-quick .quick-form {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0 6px; padding: 6px 16px 14px;
  }
  .dialog-quick .quick-form::before { content: ""; grid-column: 1 / -1; height: 14px; background: linear-gradient(var(--line-strong), var(--line-strong)) center 5px / 36px 4px no-repeat; }
  .dialog-quick .quick-form > h2 { display: none; }
  .dialog-quick .quick-form > * { grid-column: 1 / -1; min-width: 0; }
  .dialog-quick .quick-row { display: contents; }
  .dialog-quick .quick-big { grid-column: 1 / -1; font-size: 1.3rem; font-weight: 500; border: 0; background: transparent; padding: 4px 0; min-height: 44px; box-shadow: none; }
  .dialog-quick .quick-big:focus { outline: none; box-shadow: none; }
  .dialog-quick textarea.field { border: 0; background: transparent; padding: 2px 0; min-height: 30px; font-size: 0.95rem; color: var(--text-soft); resize: none; box-shadow: none; }
  /* de rij met knoppen schuift zijwaarts; de microfoon en de ronde knop staan rechts ernaast */
  .dialog-quick .quick-choices { grid-column: 1; grid-row: 9; margin-top: 8px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; padding: 2px 0; }
  .dialog-quick .quick-choices::-webkit-scrollbar { display: none; }
  .dialog-quick .quick-choices .chip-button, .dialog-quick .quick-project select { flex: none; min-height: 40px; border-radius: 12px; white-space: nowrap; background: transparent; border: 1px solid var(--line-strong); }
  .dialog-quick .quick-project { flex: none; display: block; font-size: 0; min-width: 0; }
  .dialog-quick .quick-project select { font-size: 0.9rem; padding: 0 24px 0 10px; color: var(--text-soft); }
  .dialog-quick .quick-row .voice-button { grid-column: 2; grid-row: 9; margin-top: 8px; width: 42px; height: 42px; border: 0; background: transparent; color: var(--text-soft); }
  .dialog-quick .dialog-buttons { display: contents; }
  .dialog-quick .dialog-buttons > button:not(.quick-submit) { display: none; }
  .dialog-quick .quick-submit { grid-column: 3; grid-row: 9; margin-top: 8px; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; }
  .dialog-quick .quick-submit-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dialog-quick .quick-submit .icon { display: block; width: 24px; height: 24px; stroke-width: 2.6; }
  .dialog-quick .quick-options { grid-column: 1 / -1; grid-row: 10; margin-top: 4px; }
  /* icoon alleen; de tekst komt pas als er iets is gekozen (zoals de chips van Todoist) */
  .dialog-quick .quick-choices .chip-button:not(.active):not([data-fk="quick-due"]) .chip-text { display: none; }
  .dialog-quick .quick-choices .chip-button:not(.active):not([data-fk="quick-due"]) { padding: 0 11px; }
  .dialog-quick .quick-project select { max-width: 112px; text-overflow: ellipsis; }
  .dialog-quick .quick-template { padding: 0 4px; }
  .dialog-quick .preview { gap: 6px; }
  .dialog-quick .quick-form .hint { padding: 0 2px; }

  .dialog-sheet .dialog-form { padding: 6px 16px 18px; }
  .dialog-sheet .dialog-form::before { content: ""; height: 14px; background: linear-gradient(var(--line-strong), var(--line-strong)) center 5px / 36px 4px no-repeat; }
}

/* ---------- de datumkiezer (ui/datePopup.js) ---------- */
.datepop { gap: 10px; }
.datepop-fieldwrap { display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 48px; border-radius: 14px; background: var(--bg-hover); color: var(--text-soft); }
.datepop-fieldwrap:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.datepop-input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.05rem; color: var(--text); padding: 10px 0; outline: none; }
.datepop-quick { display: flex; flex-direction: column; gap: 0; border-radius: 14px; overflow: hidden; background: var(--bg-hover); }
.datepop-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 0 14px; border: 0; background: transparent; text-align: left; color: var(--text); }
.datepop-quickrow { border-bottom: 1px solid var(--line); }
.datepop-quickrow:last-child { border-bottom: 0; }
.datepop-quickrow:active { background: color-mix(in srgb, var(--text) 8%, transparent); }
.datepop-quickrow > .icon { color: var(--accent); }
.datepop-rowlabel { flex: 1; font-weight: 600; }
.datepop-rowday { color: var(--text-soft); font-size: 0.9rem; }
.datepop-cal { border-radius: 14px; background: var(--bg-hover); padding: 6px 8px 8px; }
.datepop-caption { text-align: center; color: var(--text-soft); font-size: 0.82rem; min-height: 1.2em; margin-top: 2px; }
.datepop-caption:empty { display: none; }
.datepop-timerow { border-radius: 14px; background: var(--bg-hover); }
.datepop-timerow > .icon { color: var(--text-soft); }
.datepop-rowbutton { flex: 1; border: 0; background: none; text-align: left; font: inherit; color: var(--text); padding: 12px 0; }
.datepop-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 12px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line-strong); }
.datepop-chip-x { display: inline-flex; border: 0; background: none; color: var(--text-soft); padding: 2px; border-radius: 50%; }
.datepop-chip-x .icon { width: 16px; height: 16px; }
.datepop-time-input { min-height: 40px; }
.datepop .datepop-day.is-selected { background: var(--accent-fill); color: var(--accent-on-fill); }
.datepop .datepop-day.is-today:not(.is-selected) { box-shadow: none; color: var(--accent); font-weight: 700; }

@media (max-width: 760px) {
  .datepop { max-height: 92dvh; overflow-y: auto; }
  .datepop { gap: 6px; }
  .datepop > * { flex-shrink: 0; }
  .datepop > h2 { font-size: 1.25rem; padding: 0 2px; }
  .datepop-row { min-height: 40px; }
  .datepop-fieldwrap { min-height: 44px; }
  .datepop .datepop-day { min-height: 32px; margin: 0 auto; font-size: 0.92rem; }
  .datepop .datepop-weekdays span { padding: 0; }
  .datepop-nav { margin-bottom: 0; }
  .datepop-nav .icon-button { width: 36px; height: 36px; }
  .datepop-caption { display: none; }
  .datepop .dialog-buttons { position: sticky; bottom: 0; padding-top: 8px; background: var(--card); }
  .datepop .dialog-buttons > button:not(.button-primary) { display: none; }
  .datepop .dialog-buttons .button-primary { min-width: 108px; border-radius: 12px; }
}

/* ---------- Bladeren (de zijbalk als scherm): profiel bovenaan, kaarten, projecten met een gekleurde # ---------- */
@media (max-width: 760px) {
  .sidebar { background: var(--bg); gap: 12px; padding-bottom: 24px; }
  .sidebar-footer { order: -1; border: 0; position: static; background: transparent; padding: 2px 0 4px; margin: 0; gap: 0; }
  .sidebar-footer .nav-item { min-height: 52px; gap: 12px; background: transparent; }
  .sidebar-footer .nav-avatar { width: 34px; height: 34px; font-size: 1rem; }
  .sidebar-footer .nav-label { font-size: 1.15rem; font-weight: 700; }
  .sidebar-footer .nav-count { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sidebar .search-field { background: var(--card); border: 0; border-radius: 14px; min-height: 52px; }
  .sidebar .search-field-key { display: none; }
  .sidebar-slot { order: 0; }
  .sidebar .nav { background: var(--card); border-radius: 14px; overflow: hidden; padding: 0; gap: 0; }
  .sidebar .nav > .nav-item, .sidebar .nav > .nav-link { border-radius: 0; border-bottom: 1px solid var(--line); min-height: 52px; }
  .sidebar .nav > :last-child { border-bottom: 0; }
  .sidebar .nav-item.active { background: transparent; }
  /* een project: een gekleurde #, zoals in Todoist, in plaats van een bolletje */
  .sidebar .nav-item .dot { width: auto; height: auto; background: none; border-radius: 0; }
  .sidebar .nav-item .dot::before { content: "#"; color: var(--dot, var(--p4)); font-size: 1.2rem; font-weight: 600; line-height: 1; }
  .sidebar .nav-count { color: var(--text-soft); }
  .sidebar .nav-section-title, .sidebar h2, .sidebar .nav-heading { font-size: 0.95rem; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--text); }
}

/* ---------- Taak bewerken: een hoog blad (geen volledig scherm), velden als zachte kaarten ---------- */
@media (max-width: 760px) {
  .dialog-task { width: 100vw; max-width: 100vw; height: calc(100dvh - 44px - env(safe-area-inset-top)); max-height: none; margin: auto auto 0; border: 0; border-radius: 20px 20px 0 0; background: var(--card); }
  .dialog-task .task-top { border-bottom: 0; padding-top: 14px; position: relative; }
  .dialog-task .task-top::before { content: ""; position: absolute; left: 50%; top: 7px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line-strong); }
  .dialog-task .task-col-side { background: transparent; border: 0; padding: 4px 14px 14px; gap: 10px; }
  .dialog-task .task-col-side .field, .dialog-task .task-col-main .field { background: var(--bg-hover); border-color: transparent; border-radius: 12px; }
  .dialog-task .task-col-side .field-label { color: var(--text-soft); }
  .dialog-task .task-title-field, .dialog-task .task-col-main > textarea:first-of-type { font-size: 1.25rem; font-weight: 600; }
  .dialog-task .task-form > .dialog-buttons { background: var(--card); border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .dialog-task .task-col-main input.field, .dialog-task .task-col-main textarea.field:first-of-type { background: transparent; border-color: transparent; padding-left: 4px; }
}

/* ---------- Taak bewerken, vervolg: kruimelpad, eigenschappen als lijst ---------- */
.task-crumb-name { display: none; }
@media (max-width: 760px) {
  .dialog-task .task-crumb-name { display: inline-flex; align-items: center; gap: 2px; border: 0; background: none; color: var(--text-soft); font-weight: 600; padding: 8px 6px; border-radius: 10px; max-width: 60vw; }
  .dialog-task .task-crumb-name .icon { width: 16px; height: 16px; flex: none; }
  .dialog-task .task-crumb .dot { display: none; }
  .dialog-task #task-dialog-heading { display: none; } /* de naam van het venster blijft via aria-labelledby */
  .dialog-task .task-title-row .check-large { align-self: flex-start; }

  /* de eigenschappen: een kaart met rijen, label links en waarde rechts */
  .dialog-task .task-col-side { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--bg-hover); margin: 6px 14px; padding: 4px 0; border-radius: 14px; }
  .dialog-task .task-col-side > .prop { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; column-gap: 10px; padding: 4px 14px; min-height: 52px; border-bottom: 1px solid var(--line); }
  .dialog-task .task-col-side > .prop:last-child, .dialog-task .task-col-side > :last-child { border-bottom: 0; }
  .dialog-task .task-col-side > .prop .prop-label { font-size: 0.9rem; color: var(--text-soft); font-weight: 600; }
  .dialog-task .task-col-side > .prop select.field, .dialog-task .task-col-side > .prop input.field { background: transparent; border: 0; padding: 0 4px; min-height: 44px; text-align: right; text-align-last: right; color: var(--text); }
  .dialog-task .task-col-side > .prop select.field { padding-right: 0; }
  .dialog-task .task-col-side > .prop > :not(.prop-label) { min-width: 0; }
  .dialog-task .task-col-side > :not(.prop) { padding: 6px 14px; }
  .dialog-task .task-col-side .prop-hint, .dialog-task .task-col-side .hint { grid-column: 1 / -1; }
  .dialog-task .task-col-extra { padding-top: 4px; }
  /* geen Annuleren (het kruisje sluit) en geen sneltoetstip */
  .dialog-task .task-form > .dialog-buttons > .button:not(.button-primary):not(.button-danger):not(.button-small) { display: none; }
}

@media (max-width: 760px) {
  .dialog-task textarea.field { resize: none; }
}

/* ---------- Weergave: Lijst, Bord of Kalender als kaarten bovenaan het blad ---------- */
.layout-choice { display: flex; gap: 8px; }
.layout-option { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 10px; border-radius: 14px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-soft); font-size: 0.85rem; }
.layout-option .icon { width: 28px; height: 28px; }
.layout-option.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); font-weight: 700; }
@media (max-width: 760px) {
  /* de schakelaar zit in het venster Weergave (de knop met de schuifjes) */
  .view-head .view-switch { display: none; }
}

/* ---------- de herkende datum gemarkeerd in het invoerveld van Taak toevoegen (telefoon) ---------- */
.quick-input-wrap { position: relative; min-width: 0; }
.quick-mirror { position: absolute; inset: 0; overflow: hidden; white-space: pre; color: transparent; pointer-events: none; border-style: solid; border-color: transparent; }
.quick-mirror mark { color: transparent; background: color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 5px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.quick-input-wrap > .quick-big { position: relative; width: 100%; background: transparent; }
@media (max-width: 760px) {
  .dialog-quick .quick-input-wrap { grid-column: 1 / -1; }
}

/* ---------- datumkiezer: doorscrollende maanden en stipjes bij dagen met taken ---------- */
.datepop-day.has-tasks { position: relative; }
.datepop-day.has-tasks::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--text-soft); }
.datepop-day.is-selected.has-tasks::after { background: var(--accent-on-fill, #fff); }
.datepop-blank { display: block; min-height: 32px; }
.datepop-monthtitle { display: block; padding: 14px 4px 4px; font-size: 0.95rem; text-transform: capitalize; }
@media (max-width: 760px) {
  .datepop-cal-stacked .datepop-nav .icon-button { display: none; }
  .datepop-cal-stacked .datepop-nav { justify-content: flex-start; padding: 2px 4px; }
  .datepop-scroll { max-height: 22dvh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .datepop-scroll::-webkit-scrollbar { display: none; }
  .datepop-caption { display: block; padding-top: 4px; }
}

/* ---------- Taak bewerken: chips voor wat nog leeg is, en de opmerkingenbalk vast onderaan ---------- */
.task-desc-wrap { display: contents; }
.task-desc-wrap[hidden] { display: none; }
@media (max-width: 760px) {
  .dialog-task .task-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 14px; border-bottom: 0; }
  .dialog-task .task-chips[hidden] { display: none; }
  .dialog-task .task-chips::-webkit-scrollbar { display: none; }
  .dialog-task .task-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; border-radius: 12px; background: transparent; }
  .dialog-task .task-col-side > .task-chips { grid-column: 1 / -1; }
  .dialog-task .task-col-side { margin-top: 0; }
  .dialog-task .task-comment-bar { flex: none; margin: 0; padding: 8px 14px; background: var(--card); border-top: 1px solid var(--line); gap: 6px; }
  .dialog-task .task-comment-bar .comment-input { min-height: 44px; height: 44px; resize: none; border-radius: 22px; padding: 10px 16px; background: var(--bg-hover); border-color: transparent; }
  .dialog-task .task-comment-bar:not(:focus-within) .comment-buttons, .dialog-task .task-comment-bar:not(:focus-within) .comment-files-chosen:empty { display: none; }
  .dialog-task .task-comment-bar:focus-within .comment-input { height: auto; min-height: 64px; border-radius: 16px; }
}
@media (max-width: 760px) {
  .dialog-task .task-col-side > [hidden] { display: none; }
}

/* ---------- een schakelaar (Weergave: Voltooide taken tonen) ---------- */
.options-filter { display: flex; flex-direction: column; gap: 8px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 4px; }
.switch-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 28px; margin: 0; border-radius: 14px;
  background: var(--line-strong); border: 0; cursor: pointer; transition: background 0.15s;
}
.switch-row input[type="checkbox"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.switch-row input[type="checkbox"]:checked { background: var(--accent-fill); }
.switch-row input[type="checkbox"]:checked::after { transform: translateX(18px); }
.switch-row input[type="checkbox"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .switch-row input[type="checkbox"], .switch-row input[type="checkbox"]::after { transition: none; } }
