/* SAKSHAM Saathi · one stylesheet for staff and parent screens */
:root {
  --ink: #1C2321; --ink-2: #4A5451; --line: #E3E1DA; --line-2: #C9C6BC;
  --bg: #F6F5F1; --card: #FFFFFF; --soft: #EEF4F2;
  --pri: #1F5248; --pri-d: #133B34; --pri-l: #D8E7E2;
  --warn: #B7791F; --alert: #B5541C; --alert-bg: #FBE9E1; --ok: #2E7D4F; --ok-bg: #E2F2E8;
  --S: #D6EEE2; --S-b: #7FB89B; --D: #FFF0C7; --D-b: #D9B45A; --N: #F8D9D1; --N-b: #D98A77;
  --r: 14px; --shadow: 0 1px 2px rgba(28,35,33,.05), 0 2px 10px rgba(28,35,33,.04);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Mukta', system-ui, sans-serif; font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); }
h1, h2, h3 { font-family: 'Baloo 2', 'Mukta', sans-serif; line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.75rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; margin-top: 1rem; }
p { margin: 0 0 .75rem; }
a { color: var(--pri); }
code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: .9em; word-break: break-all; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.big { font-size: 1.15rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.warn { color: var(--warn); font-weight: 600; }
.ok-text { color: var(--ok); font-weight: 600; }
.inline { display: inline; }
[hidden] { display: none !important; }

/* top bar */
.top { background: var(--pri-d); color: #F2F1EC; position: sticky; top: 0; z-index: 20; }
.top-inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand strong { font-family: 'Baloo 2', sans-serif; font-size: 1.2rem; display: block; line-height: 1.1; }
.brand small { display: block; color: #C9D6D2; font-size: .8rem; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #E9B872 0 30%, transparent 31%), #2D6A5C; box-shadow: inset 0 0 0 3px #E9B872; }
.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.nav a, .linkish { color: #E5ECE9; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 500; font: inherit; }
.nav a:hover, .linkish:hover { background: rgba(255,255,255,.08); }
.nav a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; }
.nav-user { display: flex; align-items: center; gap: 2px; margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.2); }
.linkish { background: none; border: 0; cursor: pointer; }
.menu-btn { display: none; margin-left: auto; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; padding: 6px 12px; font: inherit; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; }
  .nav.open { display: flex; }
  .nav-user { border: 0; margin: 0; padding: 0; justify-content: space-between; }
  .nav-parent { display: flex; width: auto; flex-direction: row; }
}
.offline-bar { background: var(--warn); color: #fff; text-align: center; padding: 6px 16px; font-weight: 600; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 20px 16px 80px; }
.foot { text-align: center; color: var(--ink-2); font-size: .85rem; padding: 24px 16px 40px; }

/* cards and layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h2 { margin: 0; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.page-head h1 { margin-bottom: 2px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
@media (max-width: 760px) { .grid2, .grid3, .row2, .row3 { grid-template-columns: minmax(0, 1fr); } }
.grid2 > *, .grid3 > *, .row2 > *, .row3 > * { min-width: 0; }
.box { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: #FCFCFA; }
.box h3 { margin-top: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.stat .n { font-family: 'Baloo 2', sans-serif; font-size: 2rem; font-weight: 800; line-height: 1; color: var(--pri); }
.stat small { color: var(--ink-2); }
.stat-alert { border-color: var(--alert); background: var(--alert-bg); }
.stat-alert .n { color: var(--alert); }
.count { display: inline-block; min-width: 24px; text-align: center; font-size: .8rem; padding: 0 7px; border-radius: 999px; background: var(--pri-l); color: var(--pri-d); vertical-align: middle; font-family: 'Mukta', sans-serif; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
.tile b { font-family: 'Baloo 2', sans-serif; font-size: 1.2rem; color: var(--pri); }
.tile:hover { border-color: var(--pri); }

/* forms */
.stack { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.lbl { font-weight: 600; font-size: .9rem; color: var(--ink-2); display: block; }
.hint { font-size: .82rem; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=month], input[type=url], select, textarea {
  font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; min-height: 46px; width: 100%;
}
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--pri-l); border-color: var(--pri); }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0; }
legend { font-weight: 700; padding: 0 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--pri); flex: none; }
.check.big { font-size: 1.05rem; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters select, .filters input { width: auto; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--pri); background: var(--soft); }
.choice input { width: 22px; height: 22px; accent-color: var(--pri); margin-top: 2px; }
.choice span { display: flex; flex-direction: column; }
.att-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 8px; }
details > summary { cursor: pointer; font-weight: 600; color: var(--pri); margin: 8px 0; }
details[open] > summary { margin-bottom: 12px; }
.inline-details { display: inline-block; }
.inline-details > summary { list-style: none; display: inline-flex; margin: 0; }
.inline-details > summary::-webkit-details-marker { display: none; }
.inline-details[open] form { display: flex; gap: 6px; margin-top: 6px; }
.inline-details input { min-height: 36px; padding: 6px 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--pri); }
.btn-primary { background: var(--pri); border-color: var(--pri); color: #fff; }
.btn-primary:hover { background: var(--pri-d); }
.btn-danger { color: var(--alert); border-color: #E4B8A6; }
.btn-danger:hover { background: var(--alert-bg); border-color: var(--alert); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .9rem; }
.btn-big { min-height: 58px; padding: 0 26px; font-size: 1.15rem; border-radius: 14px; }
.btn-wa { background: #1F7A4A; border-color: #1F7A4A; color: #fff; }
.btn:focus-visible, a:focus-visible { outline: 3px solid #E9B872; outline-offset: 2px; }

/* flash */
.flash { padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; border: 1px solid; }
.flash-ok { background: var(--ok-bg); border-color: #A9D3B9; }
.flash-info { background: #EEF2F8; border-color: #BCCBE2; }
.flash-error { background: var(--alert-bg); border-color: #E4B8A6; }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: .85rem; padding: 8px 10px; border-bottom: 1.5px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr.total td { font-weight: 700; background: #FAFAF7; }
.tbl tr.off td { opacity: .55; }
.tbl.compact td, .tbl.compact th { padding: 6px 8px; }
.tbl-scores td:not(:first-child), .tbl-scores th:not(:first-child) { text-align: center; }

.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 1px 9px; border-radius: 999px; background: var(--pri-l); color: var(--pri-d); vertical-align: middle; font-family: 'Mukta', sans-serif; }
.tag-soft { background: #EFEDE7; color: var(--ink-2); }
.tag-alert { background: var(--alert-bg); color: var(--alert); }
.status-draft { background: #FFF0C7; color: #6B4E10; }
.status-signed_off { background: var(--ok-bg); color: var(--ok); }
.band { display: inline-block; font-size: .85rem; font-weight: 600; padding: 1px 9px; border-radius: 6px; border: 1px solid; white-space: nowrap; }
.band-S { background: var(--S); border-color: var(--S-b); }
.band-D { background: var(--D); border-color: var(--D-b); }
.band-N { background: var(--N); border-color: var(--N-b); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: middle; }
.bar { display: block; height: 10px; background: #EFEDE7; border-radius: 5px; overflow: hidden; min-width: 80px; }
.bar > span { display: block; height: 100%; border-radius: 5px; }
.bar-pair { margin-bottom: 3px; height: 6px; }
.urg { display: inline-block; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
.urg-today { background: var(--alert); color: #fff; }
.urg-week { background: #FFF0C7; color: #6B4E10; }
.urg-plan { background: #EEF2F8; color: #2C5AA0; }
.list { list-style: none; padding: 0; margin: 0 0 8px; }
.list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-bottom: 16px; position: sticky; top: 56px; background: var(--bg); padding: 6px 0; z-index: 5; }
.tabs a { padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; white-space: nowrap; }
.goals { list-style: none; padding: 0; }
.goals li { padding: 6px 0; }
.gs { font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: #EFEDE7; }
.gs-on_track { background: var(--pri-l); } .gs-met { background: var(--ok-bg); color: var(--ok); } .gs-dropped { text-decoration: line-through; }
.goal-row { display: grid; grid-template-columns: 2fr 2fr 1.4fr 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
@media (max-width: 760px) { .goal-row { grid-template-columns: 1fr; } }
.goal-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 6px 0; }
.goal-line select { width: auto; }
.hints { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.hint-chip { font-size: .85rem; background: #FAFAF7; border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; }
.link-box { background: var(--soft); padding: 10px; border-radius: 10px; }
.mood { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--m); border: 1px solid var(--m); }

/* assessment form */
.section { border-top: 6px solid var(--sec); }
.sec-head { display: flex; align-items: center; gap: 10px; color: var(--sec); flex-wrap: wrap; }
.sec-head .hi { color: var(--ink-2); font-weight: 600; font-size: 1rem; }
.sec-chip { background: var(--sec); color: #fff; border-radius: 8px; padding: 0 10px; font-size: 1rem; min-width: 34px; text-align: center; }
.item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.q { display: flex; gap: 12px; margin-bottom: 10px; }
.num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--sec) 14%, #fff); color: var(--sec); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.q-hi { font-size: 1.2rem; font-weight: 600; margin: 0; line-height: 1.4; }
.q-en { color: var(--ink-2); margin: 0; font-size: .95rem; }
.scale { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; }
.opt > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; min-height: 76px; justify-content: center; border: 2px solid var(--line-2); border-radius: 12px; background: #fff; text-align: center; }
.opt b { font-size: 1.05rem; line-height: 1.2; }
.opt small { color: var(--ink-2); font-size: .8rem; }
.opt input:checked + span { border-color: var(--sec, var(--pri)); background: var(--sec, var(--pri)); color: #fff; }
.opt input:checked + span small { color: rgba(255,255,255,.85); }
.opt input:checked + span .dots i { border-color: #fff; }
.opt input:checked + span .dots i.on { background: #fff; }
.opt input:focus-visible + span { outline: 3px solid #E9B872; outline-offset: 2px; }
.opt input:disabled + span { cursor: default; }
.dots { display: inline-flex; gap: 4px; margin-bottom: 2px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--sec, var(--pri)); display: inline-block; }
.dots i.on { background: var(--sec, var(--pri)); }
.sticky-actions { position: sticky; bottom: 0; background: rgba(246,245,241,.96); border-top: 1px solid var(--line); padding: 12px 0; display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; z-index: 10; }
.sticky-actions [data-progress] { margin-right: auto; }
.flags-card { border-color: #E4B8A6; }
.moods { display: flex; flex-wrap: wrap; gap: 8px; }
.mood-opt { position: relative; cursor: pointer; }
.mood-opt input { position: absolute; opacity: 0; }
.mood-opt span { display: flex; flex-direction: column; align-items: center; padding: 8px 16px; border: 2px solid var(--line-2); border-radius: 12px; min-width: 90px; }
.mood-opt input:checked + span { border-color: var(--m, var(--pri)); background: var(--m, var(--pri)); color: #fff; }
.mood-opt input:focus-visible + span { outline: 3px solid #E9B872; }
.quiz-edit { margin-bottom: 8px; display: flex; flex-direction: column; gap: 8px; }
.qe-opt { display: grid; grid-template-columns: 150px 1fr; gap: 8px; align-items: center; }

/* print */
.print-sheet { background: #fff; padding: 24px; border-radius: var(--r); max-width: 900px; margin: 0 auto; }
.print-head { display: flex; justify-content: space-between; border-bottom: 2px solid var(--pri); margin-bottom: 16px; padding-bottom: 8px; }
.sign-row { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; flex-wrap: wrap; }
@media print {
  .top, .foot, .no-print, .tabs, .actions, .filters, .offline-bar { display: none !important; }
  body { background: #fff; }
  .wrap { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; }
}

/* parent screens */
body.parent { font-size: 18px; }
body.parent .wrap { max-width: 720px; }
.hello { padding: 8px 0 16px; }
.hello h1 { font-size: 2rem; }
.progress-line { height: 12px; background: #E3E1DA; border-radius: 6px; overflow: hidden; margin: 12px 0 4px; }
.progress-line span { display: block; height: 100%; background: var(--pri); }
.lesson-list { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-direction: column; gap: 10px; }
.lesson-list a { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); min-height: 76px; box-shadow: var(--shadow); }
.lesson-list .ln { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--pri-l); color: var(--pri-d); display: flex; align-items: center; justify-content: center; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.3rem; }
.lesson-list .done .ln { background: var(--pri); color: #fff; }
.lesson-list .lt { flex: 1; display: flex; flex-direction: column; }
.lesson-list .lt b { font-size: 1.15rem; line-height: 1.3; }
.lesson-list .lt small { color: var(--ink-2); }
.lesson-list .arrow { font-size: 2rem; color: var(--line-2); }
.lesson .kicker { color: var(--pri); font-weight: 700; margin: 0; }
.lesson h1 { font-size: 1.9rem; }
.video { position: relative; aspect-ratio: 16 / 9; background: #0F2B26; border-radius: 16px; overflow: hidden; margin: 12px 0 16px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-soon { display: flex; align-items: center; justify-content: center; color: #C9D6D2; font-size: 1.2rem; }
.lesson-text, .practice, .quiz { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 16px 0; }
.practice { background: #FFF7E6; border-color: #EBCB8B; }
.qq { border: 0; padding: 0; margin: 0 0 18px; }
.qq legend { font-size: 1.15rem; font-weight: 700; padding: 0; margin-bottom: 8px; }
.qopt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 2px solid var(--line-2); border-radius: 14px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.qopt input { width: 24px; height: 24px; accent-color: var(--pri); flex: none; margin-top: 2px; }
.qopt:has(input:checked) { border-color: var(--pri); background: var(--soft); }
.qopt.right { border-color: var(--ok); background: var(--ok-bg); }
.qopt.wrong { border-color: var(--alert); background: var(--alert-bg); }
.why { background: var(--soft); padding: 10px 14px; border-radius: 10px; }
.help-list { display: flex; flex-direction: column; gap: 10px; }
.help { display: flex; flex-direction: column; padding: 16px 18px; border-radius: 16px; border: 2px solid var(--pri); text-decoration: none; color: var(--ink); background: #fff; }
.help b { font-size: 1.2rem; color: var(--pri); }
.help-wa { border-color: #1F7A4A; } .help-wa b { color: #1F7A4A; }
.help-urgent { border-color: var(--alert); } .help-urgent b { color: var(--alert); }
.login { margin-top: 40px; }
.right { float: right; }
.inline-details[open] { display: block; margin-top: 6px; }
.inline-details[open] form input { width: 220px; }

.drawings { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 12px; }
.drawing { margin: 0; width: 180px; }
.drawing img { width: 180px; height: 180px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; background: #fff; }
.upload-field input[type=file] { padding: 14px; border: 2px dashed var(--line-2); border-radius: 12px; background: #fff; font: inherit; }
.previews { display: flex; gap: 8px; flex-wrap: wrap; }
.previews img { width: 90px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

.day-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 16px; }
.day-cta { display: flex; flex-direction: column; padding: 14px 16px; border-radius: var(--r); background: var(--pri); color: #fff; text-decoration: none; box-shadow: var(--shadow); }
.day-cta b { font-family: 'Baloo 2', sans-serif; font-size: 1.15rem; }
.day-cta span { color: #D8E7E2; font-size: .9rem; }
.day-cta.due { background: #B7791F; } .day-cta.due span { color: #FFF3DA; }
.day-cta.done { background: #fff; color: var(--ok); border: 1px solid var(--line); } .day-cta.done span { color: var(--ink-2); }
.day-grid { align-items: start; }
.upcoming { position: sticky; top: 72px; }
@media (max-width: 760px) { .upcoming { position: static; } }
.log-grid td, .log-grid th { text-align: center; } .log-grid td:first-child, .log-grid th:first-child { text-align: left; white-space: nowrap; }
.cell { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; text-decoration: none; font-weight: 700; }
.cell-new { background: var(--pri); color: #fff; } .cell-read { background: var(--ok-bg); color: var(--ok); } .cell-missing { color: var(--line-2); }
.box-alert { background: #FFF3DA; border-color: #EBCB8B; }
.cell-help { background: #B7791F; color: #fff; }
@media (min-width: 861px) { .nav a, .nav .linkish { padding: 8px 8px; } .top-inner { flex-wrap: nowrap; } .brand strong { white-space: nowrap; } }
@media (min-width: 1100px) { .nav { flex-wrap: nowrap; } }
.nav a, .nav .linkish { white-space: nowrap; } @media (min-width: 861px) and (max-width: 1440px) { .nav a, .nav .linkish { padding: 8px 6px; font-size: .92rem; } .nav { gap: 2px; } .brand strong { font-size: 1.05rem; } .top-inner { gap: 10px; } .nav-user { margin-left: 4px; padding-left: 4px; } }
@media (min-width: 861px) and (max-width: 1180px) { .brand strong { display: none; } }

.goal-cards { display: flex; flex-direction: column; gap: 12px; }
.goal-card { border-left: 6px solid var(--sec); display: flex; flex-direction: column; gap: 10px; background: #FCFCFA; }
.goal-view { border-left: 5px solid var(--sec); padding: 10px 14px; margin-bottom: 12px; background: #FCFCFA; border-radius: 0 10px 10px 0; }
.gv-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.gv-head .sec-chip { background: var(--sec); color: #fff; border-radius: 6px; padding: 0 8px; font-size: .8rem; }
.focus-now { background: #FFF7E6; border: 1px solid #EBCB8B; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.focus-now p { margin: 0; font-weight: 600; }
.checkpoints li { display: grid; grid-template-columns: 1fr minmax(160px, 34%); gap: 12px; align-items: start; }
.checkpoints li.now { background: #FFF7E6; border-radius: 10px; padding: 8px; }
@media (max-width: 760px) { .checkpoints li { grid-template-columns: 1fr; } }
ul.plain { list-style: none; padding: 0; margin: 0 0 8px; } ul.plain li { padding: 2px 0; }
.report .report-bar { position: sticky; top: 60px; background: var(--bg); padding: 8px 0; z-index: 5; margin-bottom: 12px; }
.report-tool { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; }
.report-tool h2 small { font-family: 'Mukta', sans-serif; font-weight: 400; font-size: .85rem; }
.report-items tr.sec-row td { background: #FAFAF7; }
.report-items tr.low td { background: #FBE9E1; }
.report-drawing { max-width: 48%; max-height: 360px; border: 1px solid var(--line); border-radius: 8px; }
.notes-space .lines { height: 220px; background: repeating-linear-gradient(#fff 0 31px, #D5D3CB 31px 32px); }
@media print {
  @page { size: A4; margin: 12mm; }
  body { font-size: 11.5px; }
  .report-tool { border: 0; padding: 0; margin-bottom: 10px; break-inside: auto; }
  .report-tool h2 { break-after: avoid; font-size: 15px; }
  .report-items tr { break-inside: avoid; }
  .bar { min-width: 60px; } .band { font-size: 10px; }
  .report-adult { break-before: page; }
  .notes-space { break-before: page; } .notes-space .lines { height: 700px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.band-none { background: #EEF2F8; border-color: #BCCBE2; }

.measure-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 12px; }
.mchip { font-size: .85rem; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; }
.mstate { font-size: .8rem; font-weight: 700; padding: 2px 9px; border-radius: 6px; white-space: nowrap; }
.ms-ok { background: var(--ok-bg); border-color: #A9D3B9; color: var(--ok); }
.ms-notyet { background: #FFF0C7; border-color: #D9B45A; color: #6B4E10; }
.ms-wait { background: #EEF2F8; border-color: #BCCBE2; color: #2C5AA0; }
.ms-none { background: #EFEDE7; color: var(--ink-2); }
.measure-edit select { min-width: 0; }

/* Caregiver training */
[hidden] { display: none !important; }
.tag-ok { background: var(--ok-bg); color: var(--ok); }
.tprog { display: inline-block; width: 90px; height: 8px; border-radius: 99px; background: #EFEDE7; vertical-align: middle; overflow: hidden; }
.tprog > span { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.stat .n.tsm { font-size: 1.15rem; line-height: 1.25; }
.tsteps { list-style: none; margin: 8px 0 0; padding: 0; }
.tstep { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); min-width: 0; }
.tstep:first-child { border-top: 0; }
.tsteps.compact .tstep { padding: 8px 0; }
.tmark { flex: 0 0 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; border: 2px solid var(--line-2); color: var(--ink-2); background: #fff; }
.tstep-done .tmark { background: var(--ok); border-color: var(--ok); color: #fff; }
.tstep-part .tmark { background: var(--D); border-color: var(--D-b); color: var(--ink); }
.tstep-next .tmark { border-color: var(--pri); color: var(--pri); box-shadow: 0 0 0 3px var(--pri-l); }
.tbody { flex: 1; min-width: 0; }
.tstep-done .ttitle b { color: var(--ink-2); }
.tstate { margin-top: 2px; color: var(--ink-2); }
.tstep details { margin-top: 6px; }
.tstep summary { cursor: pointer; color: var(--pri); font-weight: 600; font-size: .9rem; }
.tpeople li { padding: 3px 0; }
.tdate { margin-top: 8px; align-items: end; }
.step-pick { display: grid; gap: 6px; margin-top: 6px; }
.step-pick .check { align-items: flex-start; }
.tsteps-admin input, .tsteps-admin select { min-height: 38px; padding: 6px 8px; }
