/* Kidney Navigator go-live screens. Uses the app's own tokens (--navy, --blue, --line, --muted, --soft). */
.kn-g .row{flex-wrap:wrap}
.kn-g form{margin-top:8px}
.kn-g-h3{margin:16px 0 4px;font-size:1rem}
.kn-g-chart{width:100%;height:auto;display:block;margin-top:4px;overflow:visible}
.kn-g-chart polyline{fill:none;stroke-width:2.4;stroke-linejoin:round;stroke-linecap:round}
.kn-g-chart polyline.w,.kn-g-spark polyline.w,.kn-g-chart polyline.s{stroke:var(--blue)}
.kn-g-chart polyline.d{stroke:#2F5DA8}
.kn-g-chart circle.w,.kn-g-spark circle.w,.kn-g-chart circle.s{fill:var(--blue)}
.kn-g-chart circle.d{fill:#2F5DA8}
.kn-g-chart line.g{stroke:#8A8279;stroke-dasharray:3 4;stroke-width:1}
.kn-g-chart text.g{fill:var(--muted);font-size:10px}
.kn-g-spark{width:90px;height:30px;flex:none}
.kn-g-spark polyline{fill:none;stroke-width:2}
.kn-g-legend{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}
.kn-g-legend .ln{display:inline-block;width:28px;height:0;border-top:3px solid var(--blue);vertical-align:middle}
.kn-g-legend .ln.d{border-top:3px dashed #2F5DA8}
.kn-g-scroll{overflow-x:auto;max-width:100%;margin-top:10px;-webkit-overflow-scrolling:touch}
.kn-g-scroll:focus-visible{outline:3px solid var(--blue)}
.kn-g-t{width:100%;border-collapse:collapse;font-size:1rem;font-variant-numeric:tabular-nums}
.kn-g-t th,.kn-g-t td{text-align:left;padding:8px 6px;border-bottom:1px solid var(--line);vertical-align:top}
.kn-g-t thead th{color:var(--muted);font-weight:600}
.kn-g-t tbody th{font-weight:700}
.kn-g-t tr.fut{opacity:.6}
.kn-g-inline{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end}
.kn-g-inline>div{flex:1 1 180px}
.kn-g-chip{margin:12px 0 0;padding:10px 14px;border-radius:14px;background:var(--card);border:1px solid var(--line)}
.kn-g-med{display:flex;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.kn-g-mt{flex:1;min-width:0;overflow-wrap:anywhere}
.kn-g-mt b{display:inline}
.kn-g-mt .sub{display:block}
.kn-g-ph{width:52px;height:52px;object-fit:cover;border-radius:12px;flex:none;background:var(--soft);border:1px solid var(--line)}
.kn-g-ph.none{display:inline-block}
.kn-g-ck{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:56px;min-height:56px;justify-content:center;margin:0;font-weight:600;font-size:.9rem;color:var(--navy);cursor:pointer}
.kn-g-ck input{width:28px;height:28px;min-height:28px;accent-color:var(--blue)}
.kn-g-mwf{background:#FDE68A;color:#5A3A00}
.kn-g-miss{margin-top:12px;padding:12px 14px;border-radius:14px;border:2px solid var(--orange);background:var(--card)}
.kn-g-miss p{margin:6px 0}
.kn-g-miss select{width:auto;min-width:90px}
.kn-g-warn{color:var(--crimson);font-weight:700}
.kn-g-dm{padding:10px 0;border-top:1px solid var(--line)}
.kn-g-dm:first-of-type{border-top:0}
.kn-g-sub{margin-top:10px;padding:12px;border-radius:14px;background:var(--soft)}
.kn-g-days{border:0;padding:0;margin:8px 0;display:flex;flex-wrap:wrap;gap:0 14px}
.kn-g-days legend{font-weight:600;color:var(--navy);padding:0;margin-bottom:4px}
.kn-g-info{margin-top:6px}
.kn-g-info summary{cursor:pointer;color:var(--blue);font-weight:700;min-height:44px;display:flex;align-items:center}
.kn-g-info p{margin:6px 0}
.kn-g-small{font-size:.95rem;margin:4px 0 0}
.kn-g-tell{margin:10px 0;padding:12px 14px;border-radius:14px;background:var(--soft)}
.kn-g-tell p{margin:6px 0}
.kn-g-sup{align-items:flex-start;padding:6px 0;border-top:1px solid var(--line)}
.kn-g-sup input{margin-top:2px}
.kn-g .chips a.btn{text-decoration:none}
#kn-g-print{display:none}
@media print{
  html.kn-printing body>*:not(#kn-g-print){display:none!important}
  html.kn-printing #kn-g-print{display:block;font:12pt/1.4 -apple-system,"Segoe UI",Arial,sans-serif;color:#000}
  #kn-g-print h1{font-size:18pt;margin:0 0 4pt}
  #kn-g-print h2{font-size:13pt;color:#7a1518;border-bottom:2px solid #7a1518;margin:14pt 0 6pt}
  #kn-g-print h2.pg{break-before:page}
  #kn-g-print table{width:100%;border-collapse:collapse}
  #kn-g-print th,#kn-g-print td{border:1px solid #999;padding:4pt 6pt;text-align:left;vertical-align:top}
  #kn-g-print th{width:34%;background:#f3f0ec}
  #kn-g-print .kn-g-med{display:flex;gap:8pt;align-items:center;border-top:1px solid #ccc;padding:5pt 0;break-inside:avoid}
  #kn-g-print .kn-g-ph{width:40px;height:40px}
  #kn-g-print .kn-g-box{width:16pt;height:16pt;border:2px solid #000;display:inline-block;flex:none}
  #kn-g-print .sub{color:#333;display:block}
}
.kn-g-own{font-weight:600;white-space:nowrap}
.kn-g-limgrid{display:grid;gap:10px}
.kn-g-limgrid label{display:block;font-weight:600}
.kn-g-limgrid input{width:100%;min-height:44px}
.kn-g-mylim{margin:0 0 10px;padding:10px 12px;border:1px solid var(--line,#d0d5dd);border-radius:12px}
.kn-g-mylim ul{margin:6px 0 0;padding-left:20px}
.kn-g-phtap{position:relative;display:inline-flex;flex:none;cursor:pointer;border-radius:12px}
.kn-g-phtap:focus-within{outline:3px solid var(--blue);outline-offset:2px}
.kn-g-ph.none{display:inline-flex;align-items:center;justify-content:center;color:var(--muted)}
.kn-g-pill .kn-g-pl{display:flex;align-items:center;gap:12px;flex:1;min-width:0;min-height:44px}
.kn-g-phbtns{margin:6px 0 0}
/* Batch G1: lab day, when to call, as-needed timers, OTC checker, food list. Status = shape + text + color. */
.kn-g-labchip{margin:8px 0}
.kn-g-labl{list-style:none;margin:8px 0;padding:0;display:grid;gap:6px}
.kn-g-labl .ck,.kn-g-labl label{display:flex;align-items:flex-start;gap:10px;min-height:44px;font-size:1rem}
.kn-g-labl input{width:24px;height:24px;min-height:24px;flex:none;margin-top:2px;accent-color:var(--blue)}
.kn-g-labf input,.kn-g-two2 input{width:100%;min-height:44px}
.kn-g-two2{display:grid;gap:8px;margin-top:8px}
.kn-g-note{padding:10px 12px;border:1px dashed var(--line,#d0d5dd);border-radius:12px}
.kn-g-tier{margin:10px 0;padding:10px 12px;border:1px solid var(--line,#d0d5dd);border-left:6px solid var(--muted);border-radius:12px}
.kn-g-tier p{margin:4px 0}
.kn-g-tier ul{margin:6px 0 0;padding-left:20px}
.kn-g-tier-911{border-left-color:var(--blue)}
.kn-g-tier-now{border-left-color:var(--orange)}
.kn-g-tier-today{border-left-color:var(--navy)}
.kn-g-tt{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.kn-g-shape{font-size:1.1rem;line-height:1}
.kn-g-tier-911 .kn-g-shape{color:var(--blue)}
.kn-g-tier-now .kn-g-shape{color:var(--orange)}
.kn-g-tnote{font-style:italic;overflow-wrap:anywhere}
.kn-g-tiers textarea,.kn-g-tiers select,.kn-g-dm textarea{width:100%;min-height:44px}
.kn-g-prnm{padding:10px 0;border-top:1px solid var(--line,#d0d5dd)}
.kn-g-prnm p{margin:4px 0;overflow-wrap:anywhere}
.kn-g-timer{margin:6px 0}
.kn-g-ok{color:var(--green);font-weight:700}
.kn-g-wait{color:var(--navy);font-weight:700}
.kn-g-stop{color:var(--blue);font-weight:700}
.kn-g-otci{border-top:1px solid var(--line,#d0d5dd)}
.kn-g-otci p{margin:6px 0}
.kn-g-otc input[type=search]{width:100%;min-height:44px}
.kn-g-foodl{list-style:none;margin:8px 0;padding:0}
.kn-g-foodl li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0;border-top:1px solid var(--line,#d0d5dd);overflow-wrap:anywhere}
.kn-g-foodl li>span{flex:1;min-width:0}
.kn-g-foodl .x,.kn-g-foodl .btn{min-height:44px;min-width:44px;flex:none}
/* Batch G2: dose changes, first year, benefits, caregiver plan, refill costs, lock-screen card, self-checks. */
.kn-g-two2 select,.kn-g-two2 textarea,.kn-g-year textarea{width:100%;min-height:44px}
.kn-g-two2 .ck,.kn-g-lockf .ck{display:flex;align-items:flex-start;gap:10px;min-height:44px;font-size:1rem}
.kn-g-two2 .ck input,.kn-g-lockf .ck input{width:24px;height:24px;min-height:24px;flex:none;margin-top:2px;accent-color:var(--blue)}
.kn-g-lockf{border:0;margin:8px 0;padding:0;display:grid;gap:4px;min-width:0}
.kn-g-lockf legend{font-weight:700;margin-bottom:4px}
.kn-g-yl{list-style:none;margin:8px 0;padding:0;display:grid;gap:6px}
.kn-g-ym{padding:8px 12px;border:1px solid var(--line,#d0d5dd);border-left:6px solid var(--line,#d0d5dd);border-radius:12px;overflow-wrap:anywhere}
.kn-g-ym.on{border-left-color:var(--navy)}
.kn-g-ym p{margin:2px 0}
.kn-g-ym ul{margin:4px 0 0;padding-left:20px}
.kn-g-lockimg{display:block;width:216px;max-width:60%;height:auto;margin:10px 0;border-radius:16px;border:1px solid var(--line,#d0d5dd)}
.kn-g-selfh{overflow-wrap:anywhere}
.kn-g-dcl li>span,.kn-g-prnm .sub{overflow-wrap:anywhere}
.kn-g-care .kn-g-days{min-width:0}
/* O (2026-11-15): More tab folded into six groups (assets/kn-more-groups.js). Colors come from the page variables, so light, dark and high contrast follow the app. */
.kn-mg{background:var(--card);border:1px solid var(--line);border-radius:22px;margin-top:12px;box-shadow:0 1px 2px rgba(22,24,28,.04)}
.kn-mg[hidden]{display:none}
.kn-mg>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:64px;padding:12px 18px;border-radius:22px;color:var(--ink)}
.kn-mg>summary::-webkit-details-marker{display:none}
.kn-mg-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.kn-mg-l{font-size:1.125rem;line-height:1.3;color:var(--ink);overflow-wrap:anywhere}
.kn-mg-h{font-size:1rem;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
.kn-mg-c{flex:none;width:12px;height:12px;border-right:3px solid var(--ink);border-bottom:3px solid var(--ink);transform:rotate(45deg);margin:0 6px 4px 0}
.kn-mg[open]>summary .kn-mg-c{transform:rotate(-135deg);margin:4px 6px 0 0}
.kn-mg[open]>summary{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:1px solid var(--line)}
.kn-mg>summary:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.kn-mg-body{padding:0 12px 14px}
.kn-mg-body>.card{box-shadow:none;border:1px solid var(--line);border-radius:16px}
html.contrast .kn-mg{border:2px solid #000;box-shadow:none}
html.contrast .kn-mg>summary:focus-visible{outline:4px solid #000}
.kn-mg,.kn-mg-body>.card{scroll-margin-top:84px}

/* Disability and tracking section (assets/kn-track.js). Page variables only, so dark and high contrast follow the app. */
.kn-tk h3{font-size:1.125rem;margin:18px 0 6px}
.kn-tk .sub,.kn-tk p,.kn-tk li,.kn-tk label{font-size:1rem}
.kn-tk-note{background:var(--bg);border:1px solid var(--line);border-radius:14px;padding:12px 14px;margin:10px 0}
.kn-tk-warn{border-left:4px solid var(--ink);padding:8px 12px;margin:8px 0;font-weight:600}
.kn-tk-chk{display:flex;align-items:center;gap:12px;min-height:48px;padding:6px 0;cursor:pointer}
.kn-tk-chk input{width:24px;height:24px;flex:none;margin:0}
.kn-tk-fs{border:1px solid var(--line);border-radius:14px;margin:10px 0;padding:6px 14px}
.kn-tk-fs legend{font-weight:700;padding:0 6px}
.kn-tk-part{border-top:1px solid var(--line);margin-top:14px;padding-top:2px}
.kn-tk-list{list-style:none;margin:8px 0;padding:0}
.kn-tk-list li{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.kn-tk-list li:last-child{border-bottom:0}
.kn-tk-list .btn{flex:none;min-height:44px}
html.contrast .kn-tk-note,html.contrast .kn-tk-fs{border:2px solid #000}
/* Declutter (2026-11-15): secondary cards fold to their heading; kn-declutter.js adds the button. */
[data-kn-fold]{position:relative}
[data-kn-fold]>.kn-fold-head{padding-right:112px}
[data-kn-fold="closed"]>:not(.kn-fold-head):not(.kn-fold-btn){display:none!important}
[data-kn-fold="closed"]>.kn-fold-head{margin-bottom:0}
.kn-fold-btn{position:absolute;top:14px;right:14px;min-height:44px;min-width:88px;padding:0 16px;border-radius:999px;border:1.5px solid var(--fieldline);background:var(--card);color:var(--ink);font:inherit;font-weight:700;font-size:1rem;cursor:pointer}
.kn-fold-btn::after{content:" \25BE";font-weight:400}
[data-kn-fold="open"]>.kn-fold-btn::after{content:" \25B4"}
.kn-fold-btn:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
#main>.card+.card,#main>section+section{margin-top:20px}
