/* SI-PENTING — gaya antarmuka, tema 'Klinis bersih' (satu lapis).
 * Dirapikan dari 3 lapis tema lama tanpa mengubah tampilan (dibuktikan dengan tests/sidik_tampilan.js).
 * Variabel warna/ukuran ada di :root. Aturan layar kecil (@media) ada di dekat komponennya. */
:root { --accent: #dc2626; --side-w: 248px; --tab-h: 64px; --primary: #0B6BCB; --primary-dark: #0A4F96; --primary-soft: #EAF2FB; --primary-line: #B9D3EF; --bg: #F5F7FA; --side: #FFFFFF; --card: #FFFFFF; --text: #0F1B2D; --muted: #5B6878; --border: #E1E6EC; --ok: #157F3B; --ok-bg: #E8F5EC; --warn: #A15C07; --warn-bg: #FDF3E2; --danger: #B42318; --danger-bg: #FEF0EE; --info: #0B6BCB; --info-bg: #EAF2FB; --wait: #5B47C7; --wait-bg: #F0EEFC; --radius: 12px; --shadow: 0 1px 2px rgba(15,27,45,.04); --ink-line: 1px solid var(--border); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: 1.55; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: .95rem; }
p { margin: 0 0 .8em; }
.ic { width: 20px; height: 20px; flex: none; }
.shell { min-height: 100vh; display: flex; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; flex: 1; }
.footer { text-align: center; color: var(--muted); font-size: .8rem; padding: 1rem; }
.loading { text-align: center; color: var(--muted); padding: 3rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; }
.brand-logo { color: #fff; display: grid; place-items: center; flex: none; }
.brand strong { font-size: .98rem; white-space: nowrap; }
.brand small { display: block; font-size: .72rem; color: var(--muted); margin-top: -2px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .85rem; flex: none; text-decoration: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.15rem; }
.topbar { position: sticky; top: 0; z-index: 20; backdrop-filter: saturate(1.4) blur(8px); display: flex; align-items: center; gap: 1rem; padding: .6rem 1.25rem; min-height: 60px; }
.top-links { margin-left: auto; display: flex; gap: .25rem; align-items: center; }
.top-link { display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; padding: .45rem .75rem; font-size: .95rem; }
.top-link:hover { background: #f1f3f2; color: var(--text); }
.top-link .ic { width: 18px; height: 18px; }
.topbar-title { font-weight: 600; }
.icon-btn { background: none; border: 0; padding: .4rem; border-radius: 8px; color: var(--text); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: #f1f3f2; }
.sidebar { display: none; }
.sidebar-backdrop { display: none; }
.mode-staff .sidebar { display: flex; flex-direction: column; width: var(--side-w); flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 1rem .75rem; border-right: 1px solid var(--border); }
.mode-staff .topbar { display: none; }
.side-brand { padding: .25rem .5rem 1rem; }
.side-nav { flex: 1; }
.side-group { margin-bottom: 1rem; }
.side-label { text-transform: uppercase; letter-spacing: .06em; padding: .25rem .6rem; }
.side-link { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .55rem .6rem; text-decoration: none; font: inherit; font-size: .94rem; background: none; border: 0; cursor: pointer; text-align: left; }
.side-link:hover { color: var(--text); }
.side-badge { margin-left: auto; color: #fff; font-size: .72rem; padding: .05rem .45rem; min-width: 20px; text-align: center; }
.side-foot { padding-top: .75rem; display: grid; gap: .15rem; }
.side-user { display: flex; align-items: center; gap: .6rem; padding: .5rem .6rem; border-radius: 8px; text-decoration: none; color: var(--text); }
.side-user b { display: block; font-size: .9rem; }
.side-user small { color: var(--muted); font-size: .76rem; }
.grow { flex: 1; min-width: 0; }
.tabbar { display: none; }
@media (max-width: 860px) {
  .mode-staff .topbar { display: flex; }
  .mode-staff .sidebar { position: fixed; z-index: 40; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 8px 0 24px rgba(0,0,0,.08); }
  .mode-staff.sidebar-open .sidebar { transform: none; }
  .mode-staff.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 30; background: rgba(16,24,20,.35); }
  .container { padding: 1.1rem 1rem 2rem; }
}
@media (max-width: 720px) {
  .mode-pasien .top-links { display: none; }
  .mode-pasien .topbar > .avatar { margin-left: auto; }
  .mode-pasien .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 25; backdrop-filter: none; }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; text-decoration: none; }
  .tab .ic { width: 22px; height: 22px; }
  .mode-public .brand small { display: none; }
  .mode-public .top-link { padding: .4rem .5rem; }
  .topbar { padding: .55rem 1rem; gap: .5rem; }
}
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.page-head h1 { margin: 0 0 .2rem; }
.page-head p { margin: 0; }
.section-title { margin: 1.75rem 0 .8rem; font-size: 1.15rem; }
.back-link { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); text-decoration: none; font-size: .92rem; font-weight: 500; }
.back-link:hover { color: var(--primary); }
.card { padding: 1.25rem; margin-bottom: 1rem; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .6rem; flex-wrap: wrap; }
.card-head h3, .card-head h2 { margin: 0; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 > .card, .grid-3 > .card { margin-bottom: 0; }
.grid + .card, .grid + .task-row, .grid + .grid { margin-top: 1rem; }
.grid-stats { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); margin-bottom: 1rem; gap: .75rem; }
.stat { padding: .95rem 1rem; }
.stat.link { text-decoration: none; color: inherit; }
.stat.link:hover { border-color: var(--primary-line); }
.stat .num { font-size: 1.75rem; }
.stat .lbl { font-size: .84rem; color: var(--muted); }
.stat.danger .num { color: var(--danger); }
.stat.warn .num { color: var(--warn); }
.stat.wait .num { color: var(--wait); }
.stat.ok .num { color: var(--ok); }
.row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.mt { margin-top: 1rem; }
.empty { text-align: center; color: var(--muted); padding: 1.5rem; }
.empty-state { text-align: center; padding: 2.5rem 1rem; }
.alert { border-radius: var(--radius); padding: .9rem 1.1rem; margin-bottom: 1rem; border: 1px solid; }
.alert.danger { border-color: #f5c2c2; }
.tabs { display: flex; margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; }
.tab-link { display: inline-flex; align-items: center; gap: .45rem; text-decoration: none; white-space: nowrap; }
.tab-link:hover { color: var(--text); }
.tab-link .count { font-size: .75rem; font-weight: 700; padding: .05rem .5rem; }
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; padding: 2.5rem 2rem; margin-bottom: 1rem; }
.hero h1 { font-size: 2.1rem; letter-spacing: -.02em; }
.hero p { font-size: 1.05rem; max-width: 560px; }
.hero .btn.ghost { border-color: rgba(255,255,255,.6); }
.eyebrow { display: inline-block; font-size: .8rem; padding: .2rem .6rem; margin-bottom: .8rem; }
.hero-card { color: var(--text); padding: 1.2rem; }
.hero-card .btn { background: var(--primary); color: #fff; pointer-events: none; }
.hero-card .btn.ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.hero-date { font-size: 1.3rem; font-weight: 700; margin: .1rem 0 .2rem; }
.step-card .step-num { display: inline-grid; place-items: center; width: 30px; height: 30px; font-weight: 700; margin-bottom: .6rem; }
.cta-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.cta-card h2 { margin-bottom: .2rem; }
.cta-card p { margin: 0; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding: 1.75rem 1.25rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero-card { display: none; }
}
.profile-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1.05rem; border: 1.5px solid transparent; background: var(--primary); color: #fff; font: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, transform .05s; }
.btn .ic { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.ghost { border-color: var(--border); }
.btn.danger:hover { background: #991b1b; }
.btn.danger-ghost { border-color: #f1c4c4; }
.btn.danger-ghost:hover { background: var(--danger-bg); }
.btn.sm { padding: .35rem .7rem; font-size: .88rem; }
.btn.lg { padding: .75rem 1.3rem; font-size: 1.02rem; }
.btn.block { width: 100%; }
.topbar .btn.sm { min-height: 38px; }
form .field { margin-bottom: .9rem; }
label { display: block; font-size: .92rem; margin-bottom: .3rem; }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea { width: 100%; padding: .65rem .8rem; font: inherit; color: var(--text); min-height: 44px; }
input:focus, select:focus, textarea:focus { outline: none; }
textarea { min-height: 80px; resize: vertical; }
.hint { font-size: .8rem; color: var(--muted); margin-top: .25rem; }
.form-error { color: var(--danger); font-weight: 600; min-height: 1.2em; margin: .5rem 0; }
.form-error:empty { min-height: 0; margin: .25rem 0; }
.form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; min-height: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--primary); }
.auth-card { max-width: 440px; margin: 1.5rem auto; }
.consent { padding: 1rem 1.1rem; margin: .5rem 0 1rem; }
.quick-dates { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .4rem; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.stepper { display: flex; gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; flex-wrap: wrap; }
.step { flex: 1; min-width: 110px; display: flex; align-items: center; gap: .5rem; padding: .55rem .75rem; background: #fff; font-size: .9rem; color: var(--muted); }
.step b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--border); color: var(--text); font-size: .8rem; flex: none; }
.step.done { border-color: #b6e2c3; color: var(--ok); }
.step.done b { background: var(--ok); color: #fff; }
.step.now { color: var(--primary-dark); font-weight: 600; }
.step.now b { background: var(--primary); color: #fff; }
.badge { display: inline-block; white-space: nowrap; }
.b-ok { background: var(--ok-bg); color: var(--ok); }
.b-warn { background: var(--warn-bg); color: var(--warn); }
.b-danger { background: var(--danger-bg); color: var(--danger); }
.b-wait { background: var(--wait-bg); color: var(--wait); }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: .75rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; }
.checklist .mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; flex: none; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: .65rem .6rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { text-transform: uppercase; }
td .actions { display: flex; gap: .35rem; flex-wrap: wrap; }
.q { padding: .9rem 0; border-bottom: 1px solid var(--border); }
.q:last-child { border-bottom: 0; }
.q p { font-weight: 600; margin-bottom: .5rem; }
.yn { display: flex; gap: .5rem; }
.yn label { flex: 1; max-width: 160px; margin: 0; }
.yn input { position: absolute; opacity: 0; pointer-events: none; }
.yn span { display: block; text-align: center; padding: .6rem; cursor: pointer; background: #fff; }
.yn input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.yn input:focus-visible + span { box-shadow: 0 0 0 3px var(--primary-soft); }
.edu ul { padding-left: 1.2rem; margin: 0 0 .8em; }
.edu li { margin-bottom: .3rem; }
.edu .grid { margin-bottom: 1rem; }
.acronym { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.acronym div { padding: .6rem .8rem; }
.acronym b { font-size: 1.15rem; margin-right: .3rem; }
.callout { padding: .8rem 1rem; margin: .5rem 0 1rem; }
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 1rem; font-size: .82rem; color: var(--muted); margin-top: .3rem; flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 3px; vertical-align: middle; margin-right: .3rem; }
#toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; }
.mode-pasien #toast { bottom: calc(var(--tab-h) + 2.5rem + env(safe-area-inset-bottom)); }
.toast { background: #111827; color: #fff; padding: .7rem 1.1rem; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.2); font-size: .95rem; animation: up .2s ease-out; max-width: 90vw; }
.toast.err { background: var(--danger); }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }
dialog { border: 0; border-radius: 14px; padding: 1.25rem; width: min(440px, 92vw); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(16,24,20,.45); }
@media print {
  .sidebar, .topbar, .tabbar, .footer, .btn, #toast { display: none !important; }
  .card { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
.demo-banner { position: sticky; top: 0; z-index: 50; height: 30px; line-height: 30px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; background: #7c2d12; color: #fff; text-align: center; font-size: .8rem; font-weight: 600; padding: 0 1rem; }
body:has(.demo-banner) .topbar { top: 30px; }
body.mode-staff:has(.demo-banner) .sidebar { top: 30px; height: calc(100vh - 30px); }
code { background: rgba(0,0,0,.06); padding: .05rem .3rem; border-radius: 4px; font-size: .9em; }
.ic.xs { width: 14px; height: 14px; vertical-align: -2px; }
.home { max-width: 640px; margin: 0 auto; }
.date-line { color: var(--muted); font-size: .92rem; margin: .25rem 0 .2rem; }
.greet { line-height: 1.12; margin: 0 0 1.5rem; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; margin: 1.6rem 0 .6rem; }
.label-row a { font-size: .9rem; font-weight: 600; text-decoration: none; }
.section-label { letter-spacing: -.01em; }
.home .label-row:first-of-type { margin-top: 0; }
.upnext { overflow: hidden; }
.chip { display: inline-flex; align-items: center; gap: .3rem; }
.chip.ok { background: var(--primary-soft); color: var(--primary-dark); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.danger { background: var(--danger-bg); color: var(--danger); }
.chip.wait { background: var(--wait-bg); color: var(--wait); }
.upnext-date { letter-spacing: -.025em; line-height: 1.2; }
.upnext-place { color: var(--muted); font-size: .95rem; margin-top: .15rem; }
.upnext-msg { margin: 1rem 0; font-size: .95rem; }
.upnext-note { font-size: .88rem; background: #f6f8f7; border-radius: 10px; padding: .6rem .75rem; }
.upnext .btn.lg { min-height: 52px; }
.progress { list-style: none; padding: 0; margin: 1.1rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.progress li { display: flex; flex-direction: column; gap: .35rem; position: relative; font-size: .78rem; color: #9aa4a0; font-weight: 600; }
.progress li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 3px; border-radius: 3px; }
.progress li.done::before, .progress li.now::before { background: var(--primary); }
.progress li.now::before { right: 70%; }
.progress .dot { width: 13px; height: 13px; border-radius: 50%; position: relative; z-index: 1; border: 2px solid #fff; box-sizing: content-box; margin-top: -2px; }
.progress li.done .dot, .progress li.now .dot { background: var(--primary); }
.progress li.now .lbl { color: var(--text); }
.progress li.done .lbl { color: var(--primary-dark); }
.lvl-terlambat .progress li.now .dot, .lvl-terlambat .progress li.now::before { background: var(--danger); }
.upnext-actions { display: flex; justify-content: space-around; border-top: 1px solid var(--border); margin: 1.1rem -1.25rem 0; }
.upnext-actions a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .85rem .25rem; color: var(--text); text-decoration: none; font-size: .8rem; }
.upnext-actions a + a { border-left: 1px solid var(--border); }
.upnext-actions a:hover { background: #fafcfb; }
.upnext-actions span { width: 40px; height: 40px; display: grid; place-items: center; }
.upnext-actions .ic { width: 20px; height: 20px; }
.metric-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: .75rem; }
.metric { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; color: var(--text); text-decoration: none; }
.metric:hover { border-color: var(--primary-line); }
.metric-lbl { font-size: .8rem; color: var(--muted); font-weight: 600; }
.metric-val { font-size: 1.7rem; line-height: 1.1; }
.metric-val small { font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.metric-foot { font-size: .78rem; color: var(--muted); margin-top: auto; }
.nudge { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; color: var(--text); text-decoration: none; margin-top: .75rem; }
.nudge:hover { border-color: var(--primary-line); }
.nudge b { display: block; font-size: .95rem; }
.nudge small { display: block; color: var(--muted); font-size: .82rem; }
.nudge > .ic:last-child { color: #a3aca9; }
@media (max-width: 380px) {
  .metric-grid { grid-template-columns: 1fr; }
}
.page-title { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; margin: .25rem 0 1rem; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 1.1rem; }
.seg button { border: 0; background: none; font: inherit; font-size: .88rem; padding: .45rem 0; cursor: pointer; min-height: 36px; }
.hsum { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; }
.hsum > div { display: flex; flex-direction: column; }
.hsum-lbl { font-size: .74rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); display: flex; align-items: center; gap: .35rem; }
.hsum-val { font-size: clamp(1.6rem, 7.5vw, 2.2rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.hsum-val small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.hsum-period { color: var(--muted); font-size: .88rem; margin: .2rem 0 .9rem; }
.hcard { padding: 1rem; margin-bottom: .75rem; }
.hchart { width: 100%; height: auto; max-height: 300px; display: block; }
.legend i.lg-zone { display: inline-block; width: 14px; height: 10px; vertical-align: middle; margin-right: .3rem; background: #E8F5EC; border-top: 2px dashed #157F3B; }
.lg-dot, .lg-dia, .lg-bar, .legend i.lg-dot, .legend i.lg-dia, .legend i.lg-bar { display: inline-block; vertical-align: middle; margin-right: .3rem; }
.lg-dot, .legend i.lg-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text); }
.lg-dia, .legend i.lg-dia { width: 8px; height: 8px; background: var(--text); transform: rotate(45deg); }
.lg-bar, .legend i.lg-bar { width: 8px; height: 14px; border-radius: 4px; }
.lg-bar.ok { background: #157F3B; }
.lg-bar.bad { background: #B42318; }
.hcard .legend { margin-top: .5rem; gap: .5rem 1rem; }
.hcat { display: flex; align-items: center; gap: .75rem; font-size: .95rem; }
.hcat-detail summary { cursor: pointer; color: var(--primary-dark); font-weight: 600; font-size: .92rem; list-style: none; }
.hcat-detail summary::after { content: " ›"; }
.hcat-detail[open] summary { margin-bottom: .6rem; }
.hcat-detail td { padding: .45rem .25rem; font-size: .88rem; }
.log-month { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 1rem 0 .4rem .25rem; }
.log-month:first-of-type { margin-top: 0; }
.log-group { overflow: hidden; }
.log-item { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-bottom: 1px solid var(--border); }
.log-item:last-child { border-bottom: 0; }
.log-date { width: 38px; flex: none; text-align: center; line-height: 1.1; }
.log-date b { display: block; font-size: 1.25rem; }
.log-date span { font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.log-val { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.log-val small { font-size: .78rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.log-meta { margin-top: .15rem; }
.log-sub { font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.log-flag { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }
.log-flag.ok { background: var(--ok-bg); color: var(--ok); }
.log-flag.bad { background: var(--danger-bg); color: var(--danger); }
.log-item .mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; flex: none; }
.mode-staff .greet { font-size: 1.9rem; margin-bottom: 1.25rem; }
.staff-home { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; }
.staff-home .label-row:first-child { margin-top: 0; }
@media (max-width: 1100px) {
  .staff-home { grid-template-columns: minmax(0, 1fr); }
}
.sh-main, .sh-rail { min-width: 0; }
.avatar.sm { width: 34px; height: 34px; font-size: .78rem; }
.todo { overflow: hidden; }
.todo-group + .todo-group { border-top: 1px solid var(--border); }
.todo-head { display: flex; align-items: center; gap: .55rem; padding: .85rem 1rem .5rem; font-size: .95rem; }
.todo-head a { margin-left: auto; font-size: .85rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.todo-n { background: #eef0ef; color: var(--muted); border-radius: 999px; font-size: .75rem; font-weight: 700; padding: .05rem .5rem; }
.dot-ind { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-ind.wait { background: var(--wait); }
.dot-ind.warn { background: #d97706; }
.dot-ind.danger { background: var(--danger); }
.todo-row { display: flex; align-items: center; gap: .75rem; padding: .55rem 1rem; }
.todo-row:hover { background: #fafcfb; }
.todo-who { display: flex; align-items: center; gap: .7rem; flex: 1; min-width: 0; color: var(--text); text-decoration: none; }
.todo-who b { display: block; font-size: .93rem; }
.todo-who small { display: block; color: var(--muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-act { display: flex; gap: .35rem; flex: none; }
.todo-act .btn .ic { width: 16px; height: 16px; }
.todo-empty { color: var(--muted); font-size: .88rem; padding: .25rem 1rem .9rem; }
.todo-more { display: block; padding: .35rem 1rem .85rem 3.55rem; font-size: .84rem; font-weight: 600; text-decoration: none; }
.todo-group > .todo-row:last-child { padding-bottom: .9rem; }
.sched { overflow: hidden; }
.sched-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); }
.sched-stats > div { padding: .8rem 1rem; display: flex; flex-direction: column; gap: .1rem; }
.sched-stats > div + div { border-left: 1px solid var(--border); }
.sched-stats span { font-size: .76rem; color: var(--muted); font-weight: 600; }
.sched-stats b { font-size: 1.45rem; }
.c-wait { color: var(--wait); }
.c-danger { color: var(--danger); }
.sched-day { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #fafbfa; padding: .45rem 1rem; border-bottom: 1px solid var(--border); }
.sched-row { display: flex; align-items: center; gap: .7rem; padding: .65rem 1rem; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.sched-list > :last-child { border-bottom: 0; }
.sched-row:hover { background: #fafcfb; }
.sched-row b { display: block; font-size: .93rem; }
.sched-row small { color: var(--muted); font-size: .8rem; }
.sched-td { display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.sched .todo-empty { padding: 1rem; }
@media (max-width: 640px) {
  .sched-stats { grid-template-columns: repeat(2, 1fr); }
  .sched-stats > div:nth-child(3) { border-left: 0; }
  .sched-stats > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .sched-td .badge { display: none; }
  .todo-act .btn:not(.wa) span, .todo-row .btn.ghost[data-kontak] { font-size: .8rem; }
}
.sh-rail { display: grid; gap: .9rem; position: sticky; top: 1rem; align-items: start; }
body:has(.demo-banner) .sh-rail { top: calc(30px + 1rem); }
@media (max-width: 1100px) {
  .sh-rail { position: static; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); margin-top: .5rem; }
}
.rail-card { padding: 1rem 1.1rem; }
.rail-title { font-size: .85rem; font-weight: 700; margin-bottom: .5rem; }
.rail-big { font-size: 2rem; line-height: 1.1; }
.rail-note { font-size: .8rem; color: var(--muted); margin: .6rem 0 0; }
.meter { height: 8px; background: #edf0ee; border-radius: 99px; overflow: hidden; margin-top: .5rem; }
.meter span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.hbar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: #edf0ee; gap: 2px; }
.hb.ok { background: #157F3B; }
.hb.bad { background: #B42318; }
.hb.warn { background: #D79A1E; }
.hlegend { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; gap: .35rem; }
.hlegend li { display: grid; grid-template-columns: auto 1fr auto 2.2rem; align-items: center; gap: .5rem; font-size: .84rem; }
.hlegend i { width: 9px; height: 9px; border-radius: 3px; }
.hlegend i.ok { background: #157F3B; }
.hlegend i.bad { background: #B42318; }
.hlegend i.warn { background: #D79A1E; }
.hlegend small { color: var(--muted); text-align: right; }
.rail-row { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; border-top: 1px solid var(--border); font-size: .9rem; color: var(--text); text-decoration: none; }
.rail-row:first-of-type { border-top: 0; }
a.rail-row:hover { color: var(--primary); }
.phead { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.phead h1 { margin: 0; font-size: 1.5rem; }
.phead p { margin: .1rem 0 .45rem; }
.avatar.xl { width: 64px; height: 64px; font-size: 1.3rem; }
.phead-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.phead-actions .btn .ic { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .phead-actions { width: 100%; padding-top: .8rem; border-top: 1px solid var(--border); }
}
button.tab-link { font: inherit; cursor: pointer; }
.pstats { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; margin-bottom: 1rem; }
.pstats button { display: flex; flex-direction: column; align-items: flex-start; gap: .15rem; text-align: left; background: none; border: 0; font: inherit; color: var(--text); padding: .9rem 1rem; cursor: pointer; min-width: 0; }
.pstats button + button { border-left: 1px solid var(--border); }
.pstats button:hover { background: #fafcfb; }
.pstats span { font-size: .76rem; color: var(--muted); font-weight: 600; }
.pstats b { font-size: 1.4rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.pstats b.sm { font-size: 1rem; line-height: 1.35; }
.pstats small { font-size: .78rem; color: var(--muted); display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) {
  .pstats { grid-template-columns: repeat(2, 1fr); }
  .pstats button:nth-child(3) { border-left: 0; }
  .pstats button:nth-child(n+3) { border-top: 1px solid var(--border); }
}
.pgrid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.pgrid > .card { margin-bottom: 0; }
.pgrid + .card { margin-top: 1rem; }
@media (max-width: 960px) {
  .pgrid { grid-template-columns: minmax(0, 1fr); }
}
.about-row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--border); font-size: .9rem; }
.card-head + .about-row { border-top: 0; }
.about-row span { color: var(--muted); flex: none; }
.about-row b { font-weight: 600; text-align: right; }
.pnote { background: #f6f8f7; border-radius: 10px; padding: .6rem .75rem; font-size: .86rem; margin-top: .6rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; font-weight: 600; color: var(--primary); cursor: pointer; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 .4rem; }
.timeline li { display: flex; gap: .9rem; position: relative; padding-bottom: 1.1rem; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--primary); border: 3px solid var(--primary-soft); box-sizing: content-box; margin-top: .25rem; flex: none; position: relative; left: -3px; }
.timeline li > div { flex: 1; min-width: 0; }
[data-panel] > .card:last-child { margin-bottom: 0; }
@media (max-width: 420px) {
  .mode-public .topbar { gap: .3rem; }
  .mode-public .top-links { gap: 0; }
  .mode-public .top-link { padding: .4rem .45rem; font-size: .9rem; }
  .mode-public .topbar .btn.sm { padding: .35rem .7rem; }
}
.logo-strip { display: flex; align-items: center; justify-content: center; gap: 1.1rem; padding: .7rem 1.2rem; margin: 0 auto 1rem; max-width: 440px; }
.logo-strip img { height: 40px; width: auto; display: block; }
.logo-sep { align-self: stretch; background: var(--border); border-radius: 2px; }
@media (max-width: 420px) {
  .logo-strip img { height: 32px; }
  .logo-strip { gap: .8rem; padding: .6rem .9rem; }
}
.footer-logos { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-bottom: .5rem; opacity: .85; }
.footer-logos img { height: 26px; width: auto; }
.mode-pasien .footer { padding-bottom: 1.5rem; }
.dob { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) 5.6rem; gap: .5rem; }
.dob select, .dob input { min-height: 48px; font-size: 1.02rem; }
.no-hp { margin-top: .5rem; }
.hp-field.is-off input[type="tel"] { color: var(--muted); }
.seg-2 { grid-template-columns: repeat(2, 1fr); margin-bottom: 1rem; }
.auth-card input, .auth-card select { font-size: 1.05rem; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/plusjakarta-latin.woff2) format('woff2'); }
body { font-weight: 400; background: var(--bg); color: var(--text); }
h1, h2, h3, h4, b, strong { font-weight: 700; }
h1 { letter-spacing: -.02em; }
h2, h3 { letter-spacing: -.01em; }
th { font-weight: 600; }
a { color: var(--primary); }
.card, .stat, .hcard, .upnext, .metric, .nudge, .todo, .sched, .rail-card, .pstats, .phead, .log-group, .task-list, .visit.kosong, .consent, :not(.task-list) > .task-row, .logo-strip { border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 12px; background: #fff; }
.consent { background: #FAFBFC; box-shadow: none; }
.callout { background: #FDF8EE; border: 1px solid #F1DFB8; border-left: 3px solid #D79A1E; border-radius: 0 8px 8px 0; }
.alert.danger { border: 1px solid #F5C6C0; border-left: 3px solid var(--danger); border-radius: 0 8px 8px 0; background: var(--danger-bg); color: #7A1A12; }
.todo-group + .todo-group, .sched-stats, .sched-stats > div + div, .sched-row, .sched-day, .pstats button + button, .log-item, .checklist li, th, td, .about-row, .rail-row, .upnext-actions, .upnext-actions a + a { border-color: var(--border) !important; }
th { background: #F8FAFC; color: var(--muted); font-size: .74rem; letter-spacing: .04em; }
tr:hover td { background: #FAFBFD; }
.btn { border-radius: 8px; font-weight: 600; min-height: 44px; }
.btn.sm { border-radius: 7px; min-height: 36px; }
.btn.lg { min-height: 50px; }
.btn:hover { background: var(--primary-dark); }
.btn.ghost { background: #fff; color: var(--text); border: 1px solid #CBD3DD; }
.btn.ghost:hover { background: #F5F7FA; border-color: #AEB9C6; }
.btn.wa { background: #1A8A4B; }
.btn.wa:hover { background: #146E3B; }
.btn.danger { background: var(--danger); }
.btn.danger-ghost { background: #fff; border: 1px solid #F0C4BE; color: var(--danger); }
input, select, textarea { border: 1px solid #CBD3DD; border-radius: 8px; font-weight: 400; background: #fff; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,107,203,.15); }
label { font-weight: 600; }
.badge, .chip { border-radius: 6px; font-weight: 600; font-size: .78rem; padding: .18rem .5rem; }
.b-muted { background: #EEF1F5; color: var(--muted); }
.b-info { background: var(--primary-soft); color: var(--primary-dark); }
.yn span { border: 1px solid #CBD3DD; border-radius: 8px; font-weight: 600; }
.step { border: 1px solid var(--border); border-radius: 8px; font-weight: 500; }
.step.now { border-color: var(--primary); }
.topbar { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--border); }
.brand-logo { background: var(--primary); border-radius: 8px; width: 32px; height: 32px; font-size: 1rem; }
.brand strong { font-weight: 700; letter-spacing: -.01em; }
.top-link { font-weight: 500; border-radius: 8px; color: var(--muted); }
.top-link.active { background: var(--primary-soft); color: var(--primary-dark); box-shadow: none; font-weight: 600; }
.mode-staff .sidebar { background: #fff; }
.side-label { color: #8592A3; font-weight: 600; font-size: .7rem; }
.side-link { font-weight: 500; color: #344255; border-radius: 8px; }
.side-link:hover { background: #F5F7FA; }
.side-link.active { background: var(--primary-soft); color: var(--primary-dark); box-shadow: none; font-weight: 600; }
.side-link.active .ic { color: var(--primary); }
.side-badge { background: var(--danger); font-weight: 700; border-radius: 6px; }
.side-foot { border-top: 1px solid var(--border); }
.side-user:hover, .side-user.active { background: #F5F7FA; }
.avatar { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
.tabs { border-bottom: 1px solid var(--border); gap: .25rem; padding-bottom: 0; }
.tab-link, button.tab-link { border: 0; border-bottom: 2px solid transparent; border-radius: 0; margin-bottom: -1px; font-weight: 500; padding: .65rem .85rem; color: var(--muted); background: none; }
.tab-link.active, button.tab-link.active { background: none; border-bottom-color: var(--primary); color: var(--text); font-weight: 600; }
.tab-link .count { background: #EEF1F5; color: var(--muted); border-radius: 6px; }
.tab-link.active .count { background: var(--primary); color: #fff; }
.seg { background: #EEF1F5; border-radius: 9px; padding: 3px; }
.seg button { font-weight: 600; border-radius: 7px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(15,27,45,.12); }
@media (max-width: 720px) {
  .mode-pasien .tabbar { left: 0; right: 0; bottom: 0; padding: 0 0 env(safe-area-inset-bottom); gap: 0; border-radius: 0; border: 0; border-top: 1px solid var(--border); background: #fff; box-shadow: none; }
  .mode-pasien .main { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  .tab { height: var(--tab-h); border-radius: 0; font-weight: 500; color: #7A8699; font-size: .72rem; }
  .tab.active { background: none; color: var(--primary); font-weight: 700; }
  .mode-pasien #toast { bottom: calc(var(--tab-h) + 1rem + env(safe-area-inset-bottom)); }
}
.tile { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.tile .ic { width: 20px; height: 20px; }
.tile.peach { background: var(--danger-bg); color: var(--danger); }
.tile.lemon { background: var(--warn-bg); color: var(--warn); }
.tile.lilac { background: var(--wait-bg); color: var(--wait); }
.tile.sky, .tile.leaf { background: var(--primary-soft); color: var(--primary); }
.hero { background: #fff; color: var(--text); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); }
.hero h1 { font-weight: 700; }
.hero p { opacity: 1; color: var(--muted); }
.hero .btn { background: var(--primary); color: #fff; }
.hero .btn.ghost { background: #fff; color: var(--text); border: 1px solid #CBD3DD; }
.eyebrow { background: var(--primary-soft); color: var(--primary-dark); font-weight: 600; border-radius: 6px; }
.hero-card { box-shadow: none; border: 1px solid var(--border); border-radius: 12px; background: #FAFBFC; }
.hero-card .btn { border-radius: 8px; }
.step-card .step-num { border-radius: 8px; background: var(--primary-soft); color: var(--primary-dark); }
.edu h2 { color: var(--text); }
.acronym div { background: #F8FAFC; border: 1px solid var(--border); border-radius: 8px; }
.acronym b { color: var(--primary); }
.greet { font-weight: 700; font-size: 1.75rem; letter-spacing: -.025em; }
.date-line { font-weight: 500; }
.section-label { font-weight: 600; font-size: 1rem; }
.streak { display: inline-flex; align-items: center; gap: .45rem; background: var(--ok-bg); border: 0; border-radius: 6px; padding: .3rem .6rem; font-weight: 600; font-size: .85rem; color: var(--ok); margin: -.75rem 0 1.25rem; }
.streak .ic { width: 16px; height: 16px; }
.upnext { border-radius: 12px; padding: 1.1rem 1.1rem 0; }
.upnext.lvl-terlambat { border-color: #F0C4BE; box-shadow: inset 3px 0 0 var(--danger); }
.upnext.lvl-hari_ini, .upnext.lvl-segera { border-color: #EED9AE; box-shadow: inset 3px 0 0 #D79A1E; }
.upnext-head { display: flex; gap: .7rem; align-items: center; }
.upnext-date { font-weight: 700; font-size: 1.35rem; }
.upnext .btn.lg { border-radius: 8px; }
.upnext-actions span { border-radius: 10px; background: #F5F7FA; color: var(--text); }
.upnext-actions a { font-weight: 500; }
.progress li::before, .progress .dot { background: #E3E8EE; }
.metric { border-radius: 12px; }
.metric-val, .hsum-val, .log-val, .bp-big, .rail-big, .stat .num, .pstats b, .sched-stats b { font-weight: 700; letter-spacing: -.02em; }
.nudge { border-radius: 12px; }
.nudge.warn { border-color: #F0C4BE; background: #fff; box-shadow: inset 3px 0 0 var(--danger); }
.logo-sep { width: 1px; }
.hp-field.is-off input[type="tel"] { background: #F5F7FA; }
.no-hp { font-weight: 500; }
.demo-check { background: var(--warn-bg); border: 1px solid #F1DFB8; border-radius: 8px; padding: .6rem .75rem; }
.row-off td { color: var(--muted); }
.form-grid > .field[data-tgl] { grid-column: 1 / -1; max-width: 460px; }
.stack-petugas { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.stack-petugas > .card { margin: 0; }
.stack-petugas > .card:last-child { max-width: 520px; }
body { font-size: 1rem; }
html.huruf-besar { font-size: 118.75%; }
:is(.mode-pasien, .mode-public) :is(.small, .hint, small, .badge, .chip, .metric-lbl, .metric-foot, .log-sub, .log-month, .upnext-actions a, .visit-label, .date-line, .legend, .hsum-period, .step, .opt, th, .footer, .progress li, .log-date span) { font-size: max(.9rem, 1em * .9); }
:is(.mode-pasien, .mode-public) .tab { font-size: .8rem; }
.awam { display: block; font-size: .95rem; line-height: 1.45; color: var(--text); margin-top: .35rem; }
.log-item .awam { font-size: .9rem; color: var(--muted); margin-top: .25rem; }
.huruf-btn { display: inline-flex; align-items: baseline; gap: 1px; background: #fff; border: 1px solid #CBD3DD; border-radius: 8px; padding: .3rem .55rem; cursor: pointer; color: var(--text); font: inherit; font-weight: 700; min-height: 38px; }
.huruf-btn span:first-child { font-size: .8rem; }
.huruf-btn span:nth-child(2) { font-size: 1.15rem; }
.huruf-btn[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-dark); }
.huruf-btn.top { margin-left: .5rem; }
@media (max-width: 720px) {
  .mode-pasien .topbar > .huruf-btn.top { margin-left: auto; }
  .mode-pasien .topbar > .huruf-btn.top + .avatar { margin-left: .5rem; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bantuan { margin-top: 1rem; padding: .9rem 1rem; border: 1px solid #F1DFB8; background: #FDF8EE; border-radius: 8px; }
.bantuan ul { margin: .4rem 0 .7rem; padding-left: 1.1rem; }
.bantuan li { margin-bottom: .2rem; }
@media (max-width: 720px) {
  .mode-pasien .brand small { display: none; }
}
.page-head input[type="month"] { min-height: 44px; width: auto; }
table.lap td.num, table.lap th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.lap td.num { font-weight: 600; }
.logo-strip.kecil { max-width: 300px; padding: .4rem .8rem; box-shadow: none; }
.logo-strip.kecil img { height: 26px; }
.kartu-cetak { max-width: 560px; margin: 0 auto; background: #fff; border: 2px dashed #AEB9C6; border-radius: 12px; padding: 1.1rem 1.25rem; }
.kartu-judul { text-align: center; font-weight: 700; letter-spacing: .06em; margin: .6rem 0 .8rem; font-size: 1.05rem; }
.kartu-data th { width: 40%; background: none; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--muted); padding: .35rem .3rem; }
.kartu-data td { padding: .35rem .3rem; }
.kartu-jadwal { margin-top: .8rem; border: 1px solid #AEB9C6; }
.kartu-jadwal th, .kartu-jadwal td { border: 1px solid #AEB9C6; height: 2.1rem; text-align: center; font-size: .85rem; }
.kartu-info { font-size: .85rem; margin-top: .8rem; }
.kartu-info p { margin: 0 0 .4rem; }
@media print {
  .no-print, .demo-banner { display: none !important; }
  .main, .container { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .kartu-cetak { border-color: #555; margin-top: 0; }
  .page-head input { display: none; }
  body { background: #fff; }
}
.hapus-box { border: 1px solid #F0C4BE; background: var(--danger-bg); border-radius: 8px; padding: .9rem 1rem; }
[hidden] { display: none !important; }

/* Huruf besar di HP sempit: sembunyikan tulisan merek di bar atas publik agar tombol Daftar tidak meluber */
@media (max-width: 420px) {
  html.huruf-besar .mode-public .brand > span:not(.brand-logo) { display: none; }
  .btn { white-space: normal; text-align: center; }  /* tombol panjang turun baris, tidak meluber */
}

/* Radio tersembunyi di tombol jawaban kuesioner: kecil & terkunci di dalam tombol (dulu membuat halaman meluber) */
.yn label { position: relative; }
.yn input { width: 1px; height: 1px; min-height: 0; left: 0; top: 0; }
.yn span { height: 100%; display: flex; align-items: center; justify-content: center; }  /* tombol jawaban sama tinggi */

/* Tab Belum/Sudah kontrol di Data pasien: muat satu baris di HP */
@media (max-width: 600px) {
  #tab-kelompok .tab-ext { display: none; }
  #tab-kelompok { gap: 0; }
  #tab-kelompok .tab-link { padding: .5rem .35rem; flex: 1; flex-direction: column; gap: .2rem; justify-content: center; font-size: .9rem; }
}

/* Logo: hati + garis detak (public/logo.svg) */
.brand-logo svg { width: 22px; height: 22px; display: block; }

/* Nama lengkap di header: "Sistem Informasi" (kecil) di atas "Pemantauan Hipertensi" (tebal) */
.brand .brand-nama small { margin: 0 0 -1px; }
.mode-public .brand .brand-nama small, .mode-pasien .brand .brand-nama small { display: block; }
@media (max-width: 420px) {
  .mode-public .top-links a[href="#/edukasi"] { display: none; }
  .brand .brand-nama strong { font-size: .9rem; }
  .brand .brand-nama small { font-size: .68rem; }
}
