:root {
    color-scheme: light dark;
    --bg: #f4f5f9; --surface: #ffffff; --surface-2: #f8f9fc; --surface-3: #eef0f6;
    --ink: #0f1729; --ink-2: #334155; --muted: #5d6879; --line: #e6e9f0; --line-strong: #d4d9e3;
    --accent: #4f46e5; --accent-hover: #4338ca; --accent-ink: #ffffff; --accent-soft: #eef0ff; --accent-soft-ink: #3730a3; --ring: rgba(79,70,229,.32);
    --ok: #157a3d; --ok-soft: #e6f6ec; --ok-line: #b9e3c8;
    --bad: #c42424; --bad-soft: #fdeded; --bad-line: #f5c2c2;
    --warn: #8f5300; --warn-soft: #fff4dc; --warn-line: #f2d18c;
    --info: #1b5bc7; --info-soft: #e9f0fe;
    --gray-soft: #eef1f6; --gray-ink: #475166;
    --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
    --shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px -10px rgba(16,24,40,.14);
    --shadow-lg: 0 24px 56px -16px rgba(16,24,40,.32);
    --r: 18px; --r-md: 12px; --r-sm: 10px; --sidebar: 256px;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0b0e14; --surface: #131722; --surface-2: #171c28; --surface-3: #1e2433;
      --ink: #e9ecf3; --ink-2: #c4cbd9; --muted: #9aa4b8; --line: #232a39; --line-strong: #313a4c;
      --accent: #6d68f4; --accent-hover: #807cf6; --accent-ink: #ffffff; --accent-soft: #1f2142; --accent-soft-ink: #c9caff; --ring: rgba(128,124,246,.45);
      --ok: #4ade80; --ok-soft: #0f2a1b; --ok-line: #1d4d31;
      --bad: #f87171; --bad-soft: #33161a; --bad-line: #5b2329;
      --warn: #fbbf24; --warn-soft: #30240b; --warn-line: #5c4512;
      --info: #8ab4ff; --info-soft: #142443;
      --gray-soft: #1c2230; --gray-ink: #c2cad8;
      --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); --shadow-lg: 0 24px 56px -12px rgba(0,0,0,.7);
    }
  }
  :root[data-theme="dark"] {
    --bg: #0b0e14; --surface: #131722; --surface-2: #171c28; --surface-3: #1e2433;
    --ink: #e9ecf3; --ink-2: #c4cbd9; --muted: #9aa4b8; --line: #232a39; --line-strong: #313a4c;
    --accent: #6d68f4; --accent-hover: #807cf6; --accent-ink: #ffffff; --accent-soft: #1f2142; --accent-soft-ink: #c9caff; --ring: rgba(128,124,246,.45);
    --ok: #4ade80; --ok-soft: #0f2a1b; --ok-line: #1d4d31;
    --bad: #f87171; --bad-soft: #33161a; --bad-line: #5b2329;
    --warn: #fbbf24; --warn-soft: #30240b; --warn-line: #5c4512;
    --info: #8ab4ff; --info-soft: #142443;
    --gray-soft: #1c2230; --gray-ink: #c2cad8;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); --shadow-lg: 0 24px 56px -12px rgba(0,0,0,.7);
  }
  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: .95rem; line-height: 1.5; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
  svg.i { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
  .hidden { display: none !important; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .skip:focus { position: fixed; left: 12px; top: 12px; z-index: 200; width: auto; height: auto; clip: auto; background: var(--surface); padding: 8px 14px; border-radius: var(--r-sm); }

  /* ---------- App-Rahmen ---------- */
  .sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: var(--surface); border-right: 1px solid var(--line);
    display: flex; flex-direction: column; padding: 18px 14px; z-index: 30; }
  .brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; }
  .logo { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 6px 16px -6px rgba(99,102,241,.7); }
  .logo svg.i { width: 21px; height: 21px; }
  .brand b { display: block; font-size: 1.02rem; letter-spacing: -.01em; }
  .brand small { color: var(--muted); font-size: .75rem; }
  #nav { display: flex; flex-direction: column; gap: 2px; }
  #nav button, .tabbar button { font: inherit; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; display: flex; align-items: center; gap: 11px;
    padding: 9px 12px; border-radius: var(--r-sm); font-weight: 550; font-size: .9rem; text-align: left; }
  #nav button, .tabbar button { box-shadow: none; min-height: 0; transition: none; }
  #nav button { width: 100%; justify-content: flex-start; }
  #nav button:hover { background: var(--surface-3); color: var(--ink); }
  #nav button[aria-current="page"] { background: var(--accent-soft); color: var(--accent-soft-ink); }
  #nav button svg.i { width: 19px; height: 19px; opacity: .9; }
  .nav-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; padding: 14px 12px 6px; }
  .side-foot { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }

  .content { margin-left: var(--sidebar); min-height: 100vh; }
  .topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: 12px 28px;
    background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
  .topbar h1 { font-size: 1.2rem; margin: 0; font-weight: 700; letter-spacing: -.015em; }
  .topbar .spacer { flex: 1; }
  .status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600;
    background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
  .status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
  .status-pill.saving .dot { background: var(--info); animation: pulse 1s infinite; }
  .status-pill.bad .dot { background: var(--bad); }
  .status-pill.warn .dot { background: var(--warn); }
  @keyframes pulse { 50% { opacity: .3; } }
  .usermenu { position: relative; }
  .user-btn { display: inline-flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
    cursor: pointer; font: inherit; color: var(--ink); min-height: 40px; box-shadow: var(--shadow-sm); }
  .user-btn .who { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
  .user-btn .who b { font-size: .84rem; } .user-btn .who small { font-size: .72rem; color: var(--muted); }
  .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--shadow-lg); padding: 6px; z-index: 50; }
  .menu button { width: 100%; justify-content: flex-start; border: 0; box-shadow: none; background: transparent; min-height: 40px; }
  .menu button:hover { background: var(--surface-3); }
  .menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
  main { max-width: 1120px; margin: 0 auto; padding: 24px 28px 64px; }
  .tabbar { display: none; }

  /* ---------- Karten, Typo ---------- */
  .card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
  .card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
  .toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
  .toolbar .spacer, .card-head .spacer { flex: 1; }
  h2 { font-size: 1.08rem; margin: 0 0 12px; font-weight: 680; letter-spacing: -.01em; }
  .toolbar h2, .card-head h2 { margin: 0; }
  h3 { font-size: .95rem; margin: 18px 0 8px; font-weight: 650; }
  .muted { color: var(--muted); font-size: .85rem; }
  p { margin: 0 0 10px; }
  code { background: var(--surface-3); padding: 2px 6px; border-radius: 6px; font-size: .85rem; }
  ::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

  /* ---------- Buttons & Formulare ---------- */
  button, .btn { font: inherit; font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: var(--r-sm); min-height: 40px;
    border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; color: var(--ink); box-shadow: var(--shadow-sm);
    display: inline-flex; align-items: center; gap: 7px; justify-content: center; transition: background .15s, border-color .15s, color .15s, transform .06s; }
  button:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong)); }
  button:active { transform: translateY(1px); }
  button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--ring); outline-offset: 1px; }
  button.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 1px 2px rgba(16,24,40,.1), 0 4px 12px -4px color-mix(in srgb, var(--accent) 60%, transparent); }
  button.primary:hover { background: var(--accent-hover); }
  button.ghost { background: transparent; box-shadow: none; border-color: transparent; color: var(--ink-2); }
  button.ghost:hover { background: var(--surface-3); }
  button.success { background: var(--ok); color: #fff; border-color: transparent; }
  button.danger { color: var(--bad); }
  button.danger:hover { background: var(--bad-soft); border-color: var(--bad-line); }
  button.small { padding: 5px 11px; font-size: .82rem; min-height: 34px; }
  button.icon { padding: 0; width: 40px; }
  button:disabled { opacity: .5; cursor: default; }
  input, select, textarea { font: inherit; font-size: .92rem; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
    background: var(--surface); color: var(--ink); max-width: 100%; min-height: 40px; transition: border-color .15s; }
  input:hover, select:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line-strong)); }
  label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
  .f { margin: 0; }
  .f > span { display: block; margin-bottom: 5px; }
  .f input, .f select { width: 100%; }
  .check { display: inline-flex; gap: 8px; align-items: center; color: var(--ink); font-size: .88rem; margin: 0; font-weight: 500; }
  .check input { min-height: 0; width: 18px; height: 18px; accent-color: var(--accent); }
  .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

  /* ---------- Tabellen ---------- */
  .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
  table { width: 100%; border-collapse: collapse; }
  th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
  thead th { font-size: .72rem; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .06em; background: var(--surface-2); }
  tbody tr:hover td { background: var(--surface-2); }
  tbody tr:last-child td { border-bottom: 0; }
  tfoot td, tfoot th { border-top: 1px solid var(--line-strong); border-bottom: 0; font-weight: 650; background: var(--surface-2); }
  td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

  /* ---------- Badges ---------- */
  .badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .76rem; font-weight: 650; white-space: nowrap; }
  .badge svg.i { width: 13px; height: 13px; stroke-width: 2.6; }
  .s-offen { background: var(--gray-soft); color: var(--gray-ink); }
  .s-anwesend { background: var(--ok-soft); color: var(--ok); }
  .s-abwesend { background: var(--bad-soft); color: var(--bad); }
  .tag { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; padding: 2px 9px; border-radius: 999px; font-weight: 650; white-space: nowrap; }
  .tag svg.i { width: 12px; height: 12px; stroke-width: 2.4; }
  .t-chg { background: var(--info-soft); color: var(--info); }
  .t-late, .t-warn { background: var(--warn-soft); color: var(--warn); }
  .t-gray { background: var(--gray-soft); color: var(--gray-ink); }
  .alert { color: var(--bad); font-weight: 650; }
  .actions { display: flex; flex-wrap: wrap; gap: 6px; }

  /* ---------- Tagesliste ---------- */
  .dayhead { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
  .datenav { display: inline-flex; align-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); }
  .datenav button { border: 0; box-shadow: none; background: transparent; min-height: 38px; width: 38px; padding: 0; border-radius: 0; }
  .datenav button:hover { background: var(--surface-3); }
  .datenav input { border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; min-height: 38px; }
  .day-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0 0 4px; font-size: 1.45rem; font-weight: 720; letter-spacing: -.02em; }
  .day-title .sub { font-size: .95rem; font-weight: 600; color: var(--accent-soft-ink); background: var(--accent-soft); padding: 2px 10px; border-radius: 999px; }
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 12px; }
  .stat { position: relative; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); font-size: .8rem; color: var(--muted); font-weight: 600; }
  .stat b { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--ink); font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  .stat::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
  .stat.st-ok::before { background: var(--ok); } .stat.st-warn::before { background: var(--warn); } .stat.st-bad::before { background: var(--bad); }
  .progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
  .progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), color-mix(in srgb, var(--ok) 70%, #a3e635)); border-radius: 999px; transition: width .4s ease; }
  .progress-label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin: 0 0 6px; font-weight: 600; }
  .chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 18px 0 12px; }
  .seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; background: var(--surface-3); border-radius: 12px; }
  .seg button { border: 0; box-shadow: none; background: transparent; min-height: 34px; padding: 5px 12px; font-size: .83rem; border-radius: 9px; color: var(--ink-2); }
  .seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
  .seg .count { font-size: .72rem; color: var(--muted); font-weight: 650; }
  .kids { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
  .kid { display: grid; grid-template-columns: auto 1fr auto; gap: 3px 14px; align-items: center; padding: 11px 12px; border-radius: 14px;
    border: 1px solid var(--line); background: var(--surface); transition: background .15s, border-color .15s; }
  .kid:hover { border-color: var(--line-strong); }
  .avatar { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .88rem; color: #fff; letter-spacing: .02em; }
  .avatar svg.i { width: 22px; height: 22px; stroke-width: 2.6; }
  .kid.st-anwesend { background: color-mix(in srgb, var(--ok-soft) 60%, var(--surface)); border-color: var(--ok-line); }
  .kid.st-anwesend .avatar { background: var(--ok) !important; }
  .kid.st-abwesend { background: var(--surface-2); }
  .kid.st-abwesend .avatar { background: var(--line-strong) !important; color: var(--muted); }
  .kid.st-abwesend .kid-name { color: var(--muted); }
  .kid.overdue { background: color-mix(in srgb, var(--warn-soft) 75%, var(--surface)); border-color: var(--warn-line); }
  .kid-name { font-size: 1rem; line-height: 1.3; }
  .kid-name .kl { color: var(--muted); font-size: .82rem; font-weight: 500; margin-left: 4px; }
  .kid-info { display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; font-size: .82rem; color: var(--ink-2); }
  .kid-info .time { display: inline-flex; align-items: center; gap: 4px; }
  .kid-act { grid-column: 3; grid-row: 1 / span 2; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .kid-act button { min-height: 46px; padding: 8px 16px; }
  .newtime { font-weight: 700; color: var(--info); }

  /* ---------- Hinweise, Dialoge, Toast ---------- */
  .banner { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r-md); margin-bottom: 14px;
    background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn-line); font-weight: 500; }
  .banner > svg.i { margin-top: 2px; }
  .banner.info { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 30%, transparent); }
  .banner.bad { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-line); }
  .banner button { color: var(--ink); }
  .banner ul { margin: 4px 0 0; padding-left: 18px; }
  .empty { text-align: center; color: var(--muted); padding: 40px 20px; }
  .empty svg.i { width: 34px; height: 34px; display: block; margin: 0 auto 10px; opacity: .6; }
  dialog { border: 1px solid var(--line); border-radius: 20px; padding: 0; max-width: 660px; width: calc(100% - 24px); background: var(--surface); color: var(--ink);
    box-shadow: var(--shadow-lg); max-height: calc(100vh - 32px); }
  dialog.wide { max-width: 1000px; }
  dialog::backdrop { background: rgba(10,14,24,.45); backdrop-filter: blur(3px); }
  dialog[open] { animation: pop .18s ease-out; }
  @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
  dialog form, dialog .dlg-body { padding: 22px 24px; }
  dialog h2 { font-size: 1.2rem; margin-bottom: 16px; }
  dialog .foot { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
  .sheet-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .sheet-nav button { justify-content: flex-start; min-height: 52px; }
  .days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
  .days > div { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 8px; text-align: center; background: var(--surface-2); font-size: .85rem; font-weight: 600; }
  .days input[type=time] { width: 100%; margin-top: 6px; padding: 6px; }
  #toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 8px;
    background: #111827; color: #fff; padding: 11px 18px; border-radius: 14px; box-shadow: var(--shadow-lg); font-weight: 550; max-width: calc(100% - 32px); animation: pop .2s ease-out; }
  #toast.err { background: #b42318; }

  /* ---------- Startseite ---------- */
  .start-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background:
    radial-gradient(1200px 500px at 15% -10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, #8b5cf6 14%, transparent), transparent 60%); }
  .start { width: 100%; max-width: 480px; }
  .start .brand { justify-content: center; padding-bottom: 22px; }
  .start .brand .logo { width: 48px; height: 48px; border-radius: 14px; }
  .start .brand b { font-size: 1.35rem; }
  .start .card { padding: 26px 28px; }
  .start .f { margin-top: 12px; }
  .start .toolbar { margin-top: 18px; margin-bottom: 0; }
  .start .toolbar button { flex: 1; }
  .start-actions { display: grid; gap: 10px; margin: 18px 0 14px; }
  .start-actions button { min-height: 48px; justify-content: flex-start; padding: 10px 16px; text-align: left; }

  /* ---------- Responsiv ---------- */
  @media (max-width: 900px) {
    .sidebar { display: none; }
    .content { margin-left: 0; padding-bottom: 76px; }
    .topbar { padding: 10px 14px; }
    .topbar h1 { font-size: 1.05rem; }
    .user-btn .who { display: none; }
    .user-btn { padding: 3px; }
    main { padding: 16px 12px 40px; }
    .card { padding: 16px; border-radius: 16px; }
    .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent);
      backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); }
    .tabbar button { flex: 1; flex-direction: column; gap: 2px; padding: 6px 2px; font-size: .68rem; text-align: center; justify-content: center; min-height: 52px; }
    .tabbar button svg.i { width: 22px; height: 22px; }
    .tabbar button[aria-current="page"] { color: var(--accent); }
    .grid2, .grid3 { grid-template-columns: 1fr; }
    dialog { margin: auto auto 0; width: 100%; max-width: 100% !important; border-radius: 22px 22px 0 0; max-height: 92vh; }
    @keyframes pop { from { transform: translateY(30px); opacity: .5; } to { transform: none; opacity: 1; } }
  }
  @media (max-width: 560px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .kid { grid-template-columns: auto 1fr; }
    .kid-act { grid-column: 1 / -1; grid-row: auto; justify-content: stretch; margin-top: 6px; }
    .kid-act button { flex: 1; }
    .days { grid-template-columns: repeat(2, 1fr); }
    .day-title { font-size: 1.2rem; }
    .status-pill .txt { display: none; }
  }
  @media print {
    .sidebar, .topbar, .tabbar, .toolbar, .chips, .kid-act, .banner, .noprint, #toast, .dayhead { display: none !important; }
    .content { margin: 0; } main { padding: 0; }
    body { background: #fff; color: #000; }
    .card { border: none; padding: 0; box-shadow: none; }
    .kid { break-inside: avoid; }
  }
