*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;background:#f8fafc;color:#0f172a}.topbar{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:16px;justify-content:space-between;padding:14px 28px;background:rgba(255,255,255,.94);border-bottom:1px solid #e2e8f0;backdrop-filter:blur(12px)}.brand{display:flex;align-items:center;gap:12px}.brand-logo{width:122px;height:72px;object-fit:contain;border-radius:12px;background:#fff}.topbar strong{display:block}.topbar span{font-size:12px;color:#64748b}.topbar nav{display:flex;gap:12px;flex-wrap:wrap}.topbar a{font-size:14px;text-decoration:none;color:#334155}.role-pill,.badge{border:1px solid #bfdbfe;background:#eff6ff;color:#1d4ed8;border-radius:999px;padding:6px 10px}.container{max-width:1180px;margin:auto;padding:28px}.footer{text-align:center;font-size:12px;color:#64748b;padding:30px}.grid{display:grid;gap:18px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:white;border:1px solid #e2e8f0;border-radius:20px;padding:22px;box-shadow:0 1px 2px rgba(15,23,42,.04)}.hero{display:grid;grid-template-columns:1.2fr .8fr;gap:30px;align-items:center;min-height:70vh}.hero h1{font-size:44px;line-height:1.05;margin:0 0 18px}.muted{color:#64748b;line-height:1.6}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;padding:11px 16px;font-weight:700;text-decoration:none;cursor:pointer;background:#0f172a;color:white}.btn.secondary{background:white;color:#0f172a;border:1px solid #cbd5e1}.btn.soft{background:#eff6ff;color:#1d4ed8}.field{display:block;margin-bottom:14px;font-weight:700;font-size:14px}.field input,.field select,.field textarea,input,select,textarea{width:100%;border:1px solid #cbd5e1;border-radius:12px;padding:11px 12px;margin-top:6px;font:inherit}.alert{padding:12px 16px;border-radius:14px;margin-bottom:16px}.alert.success{background:#ecfdf5;color:#047857}.alert.error{background:#fff1f2;color:#be123c}.alert.info{background:#eff6ff;color:#1d4ed8}.progress{height:10px;background:#e2e8f0;border-radius:999px;overflow:hidden}.progress>span{display:block;height:10px;background:#2563eb}.status-green{background:#ecfdf5;color:#047857}.status-yellow{background:#fffbeb;color:#b45309}.status-red{background:#fff1f2;color:#be123c}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:12px;border-bottom:1px solid #e2e8f0;text-align:left}.question{font-size:26px;line-height:1.3}.answer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.answer{padding:18px;border:1px solid #cbd5e1;background:white;border-radius:16px;cursor:pointer;text-align:left}.answer.active{border-color:#2563eb;background:#eff6ff}.thread-msg{background:#f8fafc;border-radius:18px;padding:16px;margin:12px 0}.report{background:white;color:#111827}.disclaimer{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:14px;font-size:14px;color:#475569}@media(max-width:800px){.grid-2,.grid-3,.grid-4,.hero{grid-template-columns:1fr}.topbar{align-items:flex-start;flex-direction:column}.hero h1{font-size:34px}.answer-grid{grid-template-columns:1fr}}@media print{.topbar,.footer,.no-print,.btn{display:none!important}.container{padding:0;max-width:100%}.card{border:0;box-shadow:none}.report{font-size:12pt}}

.brand-logo{width:122px;height:72px;object-fit:contain;border-radius:12px;background:#fff}
.brand strong{font-size:16px;color:#0f172a}.brand span{font-size:12px}
.role-pill{font-weight:700;background:#f8fafc;border-color:#dbeafe;color:#1d4ed8}
.welcome-card{background:linear-gradient(135deg,#eff6ff,#f0fdf4);border:1px solid #dbeafe;border-radius:24px;padding:28px;display:flex;justify-content:space-between;gap:20px;align-items:center;box-shadow:0 1px 2px rgba(15,23,42,.04)}
.welcome-card h1{margin:10px 0 8px;font-size:32px;line-height:1.15}.welcome-illustration{font-size:72px;line-height:1;background:white;border-radius:28px;padding:18px;box-shadow:0 8px 30px rgba(15,23,42,.08)}
.section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px}.section-head h3{margin:0}.child-card{border:1px solid #e2e8f0;border-radius:20px;padding:18px;margin:14px 0;display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fff}.child-card h3{margin:0 0 8px}.actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.progress.small{height:8px;max-width:320px;margin:10px 0}.empty-state{text-align:center;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:20px;padding:26px}
@media(max-width:800px){.welcome-card,.child-card,.section-head{flex-direction:column;align-items:flex-start}.welcome-illustration{font-size:48px}.actions{justify-content:flex-start}.brand-logo{width:76px;height:48px}}


.hero-login{grid-template-columns:minmax(0,1.1fr) minmax(420px,.9fr);gap:56px;align-items:center;min-height:calc(100vh - 180px)}
.hero-copy{max-width:700px}
.hero-brand-card{display:inline-flex;align-items:center;gap:18px;padding:16px 18px;border:1px solid #e2e8f0;border-radius:22px;background:rgba(255,255,255,.78);box-shadow:0 10px 30px rgba(15,23,42,.05);margin-bottom:24px}
.hero-logo-large{width:150px;height:82px;object-fit:contain;display:block}
.hero-brand-title{font-size:24px;font-weight:800;color:#0f172a;line-height:1.1}
.hero-brand-subtitle{margin-top:4px;font-size:15px;color:#64748b}
.hero-description{max-width:640px;font-size:19px;line-height:1.8;color:#475569}
.feature-list{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.feature-pill{padding:12px 16px;border-radius:999px;background:#ffffff;border:1px solid #dbeafe;color:#1e3a8a;font-size:14px;font-weight:700;box-shadow:0 8px 20px rgba(15,23,42,.04)}
.login-card{padding:34px 32px;border-radius:28px;box-shadow:0 20px 60px rgba(15,23,42,.07)}
.login-card-head{margin-bottom:8px}
.login-card h2{font-size:30px;line-height:1.15;margin:6px 0 8px}
.mini-label{display:inline-block;padding:6px 10px;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:12px;font-weight:800;letter-spacing:.03em;text-transform:uppercase}
.login-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:10px}
.btn-block{width:100%}
.hero-login h1{font-size:64px;line-height:1.02;letter-spacing:-0.03em;margin:0 0 18px}
body{background:linear-gradient(180deg,#f8fbff 0%,#f4f8fc 100%)}
@media(max-width:1024px){.hero-login{grid-template-columns:1fr;gap:28px;min-height:auto}.hero-copy{max-width:100%}.hero-login h1{font-size:48px}.hero-description{font-size:17px}.login-card{max-width:720px}}
@media(max-width:800px){.hero-brand-card{width:100%;align-items:flex-start}.hero-logo-large{width:118px;height:72px}.hero-brand-title{font-size:20px}.hero-login h1{font-size:38px;line-height:1.08}.login-actions{grid-template-columns:1fr}.brand-logo{width:96px;height:60px}}


:root{--bg:#f4f8fc;--surface:#ffffff;--surface-soft:#f8fbff;--border:#dbe5f1;--text:#0f172a;--muted:#64748b;--blue:#1d4ed8;--blue-dark:#0f172a;--blue-soft:#eff6ff;--green-soft:#ecfdf5;--shadow-sm:0 6px 18px rgba(15,23,42,.05);--shadow-md:0 18px 40px rgba(15,23,42,.08);--radius-lg:22px;--radius-xl:28px}
body{background:radial-gradient(circle at top left,#f8fbff 0,#f4f8fc 46%,#eef6fb 100%);color:var(--text)}
.container{max-width:1240px;padding:30px 24px 40px}
.topbar{padding:16px 24px;border-bottom:1px solid var(--border);background:rgba(255,255,255,.88);gap:20px}
.topbar-left,.topbar-right{display:flex;align-items:center;gap:18px}.topbar-right{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}
.topbar nav{gap:10px}.topbar nav a{padding:10px 14px;border-radius:999px;background:#fff;border:1px solid var(--border);font-weight:600;color:#334155;transition:.2s}.topbar nav a:hover{background:var(--blue-soft);color:var(--blue)}
.role-pill{padding:10px 14px;border-radius:999px;background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid var(--border);box-shadow:var(--shadow-sm)}
.card{background:rgba(255,255,255,.92);border:1px solid var(--border);border-radius:24px;padding:24px;box-shadow:var(--shadow-sm)}
.section-card,.page-title-card,.info-card,.form-panel,.list-panel{box-shadow:var(--shadow-sm)}
.page-title-card h2,.section-card h2,.section-card h3{margin-top:0}
.btn{background:linear-gradient(135deg,#0f172a,#1d4ed8);border:none;box-shadow:0 10px 24px rgba(29,78,216,.18)}
.btn.secondary{background:#fff;border:1px solid var(--border);box-shadow:none}.btn.soft{background:#eff6ff;color:var(--blue);border:1px solid #cfe0ff}
.field input,.field select,.field textarea,input,select,textarea{background:#fff;border:1px solid var(--border);padding:12px 14px}
.table-wrap{overflow:auto}.table{display:table;width:100%;min-width:640px}.table th{font-size:13px;color:#475569;background:#f8fbff}
.premium-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(260px,.75fr);gap:24px;align-items:stretch;background:linear-gradient(135deg,#ffffff 0%,#f2f8ff 65%,#eefcf4 100%);border:1px solid var(--border);border-radius:32px;padding:28px;box-shadow:var(--shadow-md)}
.premium-kicker{display:inline-flex;padding:8px 12px;border-radius:999px;background:#fff;border:1px solid #dbeafe;color:var(--blue);font-weight:800;font-size:13px}
.premium-hero h1{font-size:46px;line-height:1.05;letter-spacing:-.03em;margin:14px 0 16px}
.premium-desc{font-size:18px;line-height:1.8;color:#475569;max-width:760px}
.hero-quick-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.hero-visual-card{display:flex;align-items:center;justify-content:center}.hero-visual-inner{width:100%;min-height:100%;background:rgba(255,255,255,.82);border:1px solid var(--border);border-radius:28px;padding:24px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;box-shadow:var(--shadow-sm)}
.hero-visual-badge{padding:8px 12px;border-radius:999px;background:#f8fbff;border:1px solid #dbeafe;color:var(--blue);font-size:13px;font-weight:800}.hero-visual-emoji{font-size:72px;line-height:1;margin:16px 0 12px}.hero-visual-inner p{margin:0;color:#475569;line-height:1.7}
.stats-grid{display:grid;gap:18px}.stats-grid-parent{grid-template-columns:repeat(3,minmax(0,1fr))}.stats-card{padding:24px;border-radius:24px;background:rgba(255,255,255,.94);border:1px solid var(--border);box-shadow:var(--shadow-sm)}.stats-label{font-size:13px;letter-spacing:.03em;text-transform:uppercase;color:#64748b;font-weight:800}.stats-value{font-size:42px;font-weight:800;line-height:1.05;margin:10px 0 8px}.stats-note{color:#64748b;line-height:1.6;font-size:14px}
.dashboard-parent-grid{grid-template-columns:minmax(0,1.5fr) minmax(280px,.8fr);align-items:start}.children-stack{display:flex;flex-direction:column;gap:16px}.premium-child-card{padding:20px;border-radius:24px;background:linear-gradient(180deg,#fff,#fbfdff)}.child-profile{display:flex;gap:16px;align-items:flex-start;min-width:0}.child-avatar{width:60px;height:60px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#e0ecff,#e9fbef);color:#1d4ed8;font-size:22px;font-weight:800;flex:none}.child-meta{min-width:0;flex:1}.child-meta h3{margin:0 0 8px;font-size:22px}.child-submeta{font-size:14px;color:#64748b;margin-bottom:10px}.child-status-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:10px}.soft-note{padding:6px 10px;border-radius:999px;background:#f8fbff;color:#475569;border:1px solid var(--border)}
.child-progress{margin-top:12px;max-width:340px}.action-stack{gap:10px;align-items:flex-end}.side-stack{display:flex;flex-direction:column;gap:18px}.mini-timeline{display:flex;flex-direction:column;gap:16px;margin-top:10px}.mini-timeline>div{display:grid;grid-template-columns:44px 1fr;gap:14px;align-items:flex-start}.mini-timeline span{width:44px;height:44px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#eff6ff,#eefcf4);border:1px solid #dbeafe;color:#1d4ed8;font-weight:800}.mini-timeline p{margin:.35rem 0 0}.clean-list{margin:8px 0 18px;padding-left:18px;color:#475569;line-height:1.8}.premium-empty{padding:30px 22px;background:linear-gradient(180deg,#fff,#f9fcff)}
.dashboard-panels{align-items:start}.list-panel .table-wrap{margin-top:10px}.thread-msg{background:#f8fbff;border:1px solid var(--border);box-shadow:none}
.answer{transition:.2s;box-shadow:var(--shadow-sm)}.answer:hover{transform:translateY(-1px);border-color:#93c5fd}.answer.active{box-shadow:0 10px 24px rgba(29,78,216,.12)}
.disclaimer{background:#fbfdff}
@media(max-width:1100px){.stats-grid-parent{grid-template-columns:1fr 1fr 1fr}.dashboard-parent-grid{grid-template-columns:1fr}.premium-hero{grid-template-columns:1fr}.hero-visual-card{order:-1}.premium-hero h1{font-size:40px}}
@media(max-width:860px){.container{padding:22px 16px 32px}.topbar{padding:14px 16px}.topbar{flex-direction:column;align-items:stretch}.topbar-left,.topbar-right{width:100%;justify-content:space-between}.topbar-right{gap:10px;align-items:flex-start;flex-direction:column}.topbar nav{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.topbar nav a{text-align:center}.brand{align-items:center}.brand-logo{width:100px;height:62px}.premium-hero h1{font-size:34px}.premium-desc{font-size:16px}.stats-grid-parent,.grid-2,.grid-3,.grid-4,.dashboard-parent-grid,.dashboard-panels{grid-template-columns:1fr}.child-card{flex-direction:column;align-items:flex-start}.action-stack,.actions{width:100%;justify-content:flex-start}.hero-quick-actions{flex-direction:column}.hero-quick-actions .btn,.action-stack .btn,.btn-block{width:100%}.table{min-width:560px}.hero-visual-emoji{font-size:56px}}
@media(max-width:560px){.container{padding:18px 14px 28px}.card{padding:18px}.premium-hero{padding:22px}.premium-kicker,.role-pill,.badge{font-size:12px}.premium-hero h1{font-size:29px}.stats-value{font-size:34px}.child-meta h3{font-size:20px}.topbar nav{grid-template-columns:1fr 1fr}.hero-visual-inner{padding:18px}.hero-visual-emoji{font-size:48px}.brand-logo{width:84px;height:52px}}


.stats-grid-clinic{grid-template-columns:repeat(5,minmax(0,1fr))}
.clinic-dashboard-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.8fr);gap:18px;align-items:start}
.result-mini-card{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--border)}
.result-mini-card:last-child{border-bottom:0}.small-line{font-size:12px}.inline-logo{width:92px;height:56px;object-fit:contain}
.report-header-card{padding:24px 26px}.report-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.report-brand-inline{display:flex;gap:14px;align-items:flex-start}
.result-stats-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.small-value{font-size:28px}.result-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.domain-stack,.recommendation-stack{display:flex;flex-direction:column;gap:14px}.domain-row{padding:14px 16px;border:1px solid var(--border);border-radius:18px;background:#fbfdff}.domain-row-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:10px;align-items:center}.mini-activity-card{padding:16px;border:1px solid var(--border);border-radius:18px;background:linear-gradient(180deg,#fff,#fbfdff)}
.report-shell{max-width:1040px;margin:0 auto}.pro-report{padding:0;overflow:hidden}.report-cover{padding:28px 30px 22px;background:linear-gradient(180deg,#ffffff 0%,#f8fbff 60%,#ffffff 100%)}.report-brand-block{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding-bottom:18px;border-bottom:1px solid var(--border)}.report-logo{width:170px;height:92px;object-fit:contain}.report-org{font-size:22px;font-weight:800;color:#0f172a}.report-org-sub{font-size:14px;color:#64748b;margin-top:6px}.report-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:360px}.report-meta div{padding:14px;border:1px solid var(--border);border-radius:18px;background:#fff}.report-meta span,.report-info-card span{display:block;font-size:12px;letter-spacing:.03em;text-transform:uppercase;color:#64748b;font-weight:700;margin-bottom:6px}.report-meta b,.report-info-card b{font-size:14px;color:#0f172a}.report-title-row{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding:24px 0}.report-title-row h1{font-size:38px;line-height:1.08;margin:8px 0 12px}.report-status-box{display:flex;flex-direction:column;align-items:flex-end;gap:12px;min-width:220px}.report-score-circle{width:148px;height:148px;border-radius:50%;background:radial-gradient(circle at center,#fff 42%,#eef6ff 43%,#dbeafe 100%);display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #cfe0ff;box-shadow:var(--shadow-sm)}.report-score-circle div{font-size:34px;font-weight:800;color:#1d4ed8;line-height:1}.report-score-circle small{margin-top:6px;color:#64748b}.report-grid-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:0 30px 24px}.report-info-card{padding:16px;border:1px solid var(--border);border-radius:18px;background:#fff}.report-section{padding:0 30px 24px}.report-section h3{font-size:22px;margin:8px 0 14px}.report-domain-list,.report-reco-grid{display:grid;gap:14px}.report-reco-grid{grid-template-columns:1fr 1fr}.report-mini-activity{height:100%}.report-table th{white-space:nowrap}.neutral-badge{background:#f8fafc;color:#334155;border-color:var(--border)}.report-signoff{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 30px 30px}
@media(max-width:1100px){.stats-grid-clinic{grid-template-columns:repeat(3,minmax(0,1fr))}.clinic-dashboard-grid,.result-layout{grid-template-columns:1fr}.report-meta{min-width:0;grid-template-columns:1fr 1fr 1fr}.report-grid-summary{grid-template-columns:1fr 1fr}.report-reco-grid{grid-template-columns:1fr}.report-title-row{flex-direction:column}.report-status-box{align-items:flex-start}}
@media(max-width:860px){.result-stats-grid,.stats-grid-clinic{grid-template-columns:1fr 1fr}.report-topline,.report-brand-block,.report-title-row,.report-signoff{flex-direction:column;align-items:flex-start}.report-meta{grid-template-columns:1fr}.report-grid-summary{grid-template-columns:1fr}.report-cover,.report-section,.report-grid-summary,.report-signoff{padding-left:20px;padding-right:20px}.report-logo{width:132px;height:78px}.inline-logo{width:78px;height:48px}}
@media(max-width:560px){.result-stats-grid,.stats-grid-clinic{grid-template-columns:1fr}.report-title-row h1{font-size:28px}.report-score-circle{width:122px;height:122px}.report-score-circle div{font-size:28px}}
@media print{body{background:#fff}.report-shell{max-width:100%}.pro-report,.report-cover,.report-info-card,.domain-row,.mini-activity-card{box-shadow:none}.report-signoff .btn,.topbar,.footer,.no-print{display:none!important}.report-cover{padding:16pt}.report-section,.report-grid-summary,.report-signoff{padding-left:16pt;padding-right:16pt}.report-title-row h1{font-size:22pt}.report-logo{width:150px;height:80px}}


.screening-hero .hero-visual-inner{gap:14px}.screening-progress-number{font-size:42px;font-weight:800;color:#1d4ed8;line-height:1}.screening-meta-pills{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}.autosave-chip{display:inline-flex;align-items:center;padding:10px 12px;border-radius:999px;background:#fff;border:1px solid var(--border);color:#475569;font-weight:600}.screening-layout{grid-template-columns:minmax(0,1.4fr) minmax(280px,.7fr);align-items:start}.screening-card{padding:28px}.question-card-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:18px}.question-step-box{padding:14px 16px;border:1px solid var(--border);border-radius:18px;background:#fbfdff;min-width:120px}.question-step-box span,.mini-summary-grid span{display:block;font-size:12px;letter-spacing:.03em;text-transform:uppercase;color:#64748b;font-weight:700;margin-bottom:6px}.question-step-box b{font-size:20px}.screening-question-title{font-size:34px;line-height:1.15;margin:14px 0 12px}.screening-instruction{font-size:16px;line-height:1.8}.premium-answer-grid{gap:14px;margin-top:18px}.premium-answer{padding:20px;border-radius:20px;background:linear-gradient(180deg,#fff,#fbfdff);text-align:left;border:1px solid var(--border);min-height:112px}.premium-answer .answer-label{display:block;font-size:20px;font-weight:800;color:#0f172a;margin-bottom:8px}.premium-answer small{color:#64748b;line-height:1.6}.premium-answer.active{border-color:#93c5fd;background:linear-gradient(180deg,#eff6ff,#ffffff)}.note-card{margin-top:18px;padding:18px;border:1px dashed #cbd5e1;border-radius:20px;background:#fbfdff}.screening-nav{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:22px}.screening-nav-right{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}.mini-summary-grid{display:grid;gap:14px}.mini-summary-grid>div{padding:14px;border-radius:18px;background:#fbfdff;border:1px solid var(--border)}.mini-summary-grid b{font-size:15px}.big-progress{height:14px}.master-tabs{display:flex;flex-wrap:wrap;gap:10px}.master-tab{padding:12px 16px;border-radius:999px;border:1px solid var(--border);background:#fff;color:#334155;font-weight:700;box-shadow:var(--shadow-sm)}.master-tab.active{background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff;border-color:#0f172a}.master-overview-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1100px){.screening-layout{grid-template-columns:1fr}.master-overview-grid{grid-template-columns:1fr 1fr}}
@media(max-width:860px){.question-card-head,.screening-nav{flex-direction:column;align-items:flex-start}.screening-question-title{font-size:28px}.screening-nav-right,.screening-nav-right .btn,.screening-nav .btn{width:100%}.screening-meta-pills{gap:10px}.master-tabs{overflow:auto;flex-wrap:nowrap;padding-bottom:4px}.master-tab{white-space:nowrap}.master-overview-grid{grid-template-columns:1fr}.premium-answer{min-height:auto}}
@media(max-width:560px){.screening-card{padding:20px}.question-step-box{width:100%}.screening-question-title{font-size:24px}.premium-answer .answer-label{font-size:18px}}

/* CRUD, Children Detail, and Message Premium Patch */
.row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.row-actions form{display:inline-flex}.row-actions .btn{padding:8px 10px;font-size:13px}
.child-detail-hero .child-detail-avatar{width:118px;height:118px;border-radius:34px;background:linear-gradient(135deg,#e0ecff,#e9fbef);display:flex;align-items:center;justify-content:center;font-size:48px;font-weight:900;color:#1d4ed8;border:1px solid #dbeafe;box-shadow:var(--shadow-sm)}
.message-layout{display:grid;grid-template-columns:340px minmax(0,1fr) 320px;gap:18px;align-items:start}.thread-list-panel,.thread-detail-panel,.new-thread-panel{min-width:0}.thread-list{display:flex;flex-direction:column;gap:10px}.thread-item{display:flex;justify-content:space-between;gap:12px;padding:14px;border:1px solid var(--border);border-radius:18px;background:#fff;color:var(--text);text-decoration:none;transition:.2s}.thread-item:hover,.thread-item.active{border-color:#93c5fd;background:#eff6ff}.thread-item p{margin:5px 0 0;color:#64748b;font-size:13px}.thread-item small{color:#64748b;font-size:12px;white-space:nowrap}.thread-detail-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding-bottom:16px;border-bottom:1px solid var(--border)}.message-bubbles{display:flex;flex-direction:column;gap:14px;margin:18px 0}.message-bubble{max-width:82%;padding:16px 18px;border:1px solid var(--border);border-radius:20px;background:#f8fbff}.message-bubble.mine{margin-left:auto;background:#eff6ff;border-color:#bfdbfe}.message-bubble p{margin:8px 0 0;line-height:1.7;color:#334155}.message-meta{display:flex;justify-content:space-between;gap:12px;align-items:center}.message-meta small{color:#64748b}.reply-box{border-top:1px solid var(--border);padding-top:16px}.new-thread-panel{position:sticky;top:110px}
.master-tabs{display:flex;gap:10px;flex-wrap:wrap}.master-tab{display:inline-flex;align-items:center;padding:11px 15px;border:1px solid var(--border);border-radius:999px;background:#fff;color:#334155;text-decoration:none;font-weight:700;box-shadow:var(--shadow-sm)}.master-tab.active{background:linear-gradient(135deg,#0f172a,#1d4ed8);color:#fff;border-color:#0f172a}.master-overview-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.form-panel .btn+.btn{margin-left:8px}
.infrastructure-note{padding:18px;border:1px solid #dbeafe;background:#eff6ff;border-radius:20px;color:#1e3a8a;line-height:1.7}
@media(max-width:1180px){.message-layout{grid-template-columns:320px minmax(0,1fr)}.new-thread-panel{grid-column:1/-1;position:static}.master-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:860px){.message-layout{grid-template-columns:1fr}.message-bubble{max-width:100%}.thread-detail-head{flex-direction:column}.new-thread-panel{position:static}.master-tabs{overflow:auto;flex-wrap:nowrap;padding-bottom:4px}.master-tab{white-space:nowrap}.row-actions{flex-direction:column;align-items:stretch}.row-actions .btn,.row-actions form,.row-actions button{width:100%}.master-overview-grid{grid-template-columns:1fr}.form-panel .btn+.btn{margin-left:0;margin-top:8px}}


/* FINAL forced logo/favicon/header cleanup */
.brand-logo{width:58px!important;height:58px!important;object-fit:contain!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.hero-logo-large{display:none!important}
.hero-brand-card img{display:none!important}
.hero-brand-card-text{display:inline-flex!important;padding:12px 18px!important;width:auto!important}
.report-logo,.inline-logo{object-fit:contain!important}
.footer{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.footer a{color:#1d4ed8;text-decoration:none;font-weight:700}
.footer a:hover{text-decoration:underline}
@media(max-width:860px){.brand-logo{width:52px!important;height:52px!important}}


/* Home redesign patch */
.topbar{min-height:88px}
.brand{display:flex;align-items:center}
.brand-logo{width:190px!important;height:auto!important;max-height:86px!important;object-fit:contain!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
.hero-login{grid-template-columns:minmax(0,1fr) minmax(420px,500px)!important;gap:42px!important;align-items:stretch!important;min-height:calc(100vh - 170px)!important;padding-top:8px}
.hero-copy-home{display:flex;flex-direction:column;justify-content:center;align-self:stretch;padding:18px 0}
.hero-copy-home .hero-subheadline{font-size:24px;line-height:1.35;color:#64748b;font-weight:500;margin:-4px 0 18px}
.hero-copy-home h1{font-size:68px;line-height:1.02;letter-spacing:-0.035em;margin:0 0 12px}
.hero-description{max-width:640px;font-size:19px;line-height:1.85;color:#475569}
.feature-list{margin-top:26px}
.login-card-home{display:flex;flex-direction:column;justify-content:center;min-height:100%;padding:36px 34px!important;border-radius:30px!important;box-shadow:0 24px 64px rgba(15,23,42,.08)!important}
.login-card-home .login-card-head{margin-bottom:12px}
.login-card-home h2{font-size:34px;line-height:1.1;margin:8px 0 10px}
.login-card-home .field{margin-bottom:4px}
.login-card-home input{height:56px}
.login-actions{margin-top:16px}
.topbar-left .brand > div{display:none!important}
.hero-brand-card,.hero-brand-card-text,.hero-logo-large{display:none!important}
@media(max-width:1180px){.brand-logo{width:170px!important}.hero-copy-home h1{font-size:58px}.hero-copy-home .hero-subheadline{font-size:22px}.hero-login{grid-template-columns:minmax(0,1fr) minmax(380px,470px)!important;gap:30px!important}}
@media(max-width:1024px){.hero-login{grid-template-columns:1fr!important;min-height:auto!important}.hero-copy-home{padding-top:8px}.login-card-home{max-width:760px}.hero-copy-home h1{font-size:48px}.hero-copy-home .hero-subheadline{font-size:20px}}
@media(max-width:700px){.brand-logo{width:148px!important;max-height:70px!important}.hero-copy-home h1{font-size:40px}.hero-copy-home .hero-subheadline{font-size:18px}.hero-description{font-size:16px;line-height:1.75}.login-card-home{padding:24px 20px!important}.login-card-home h2{font-size:28px}.login-actions{grid-template-columns:1fr!important}}


/* Home compact UI patch */
.topbar{min-height:78px!important;padding:12px 28px!important}
.brand-logo{width:168px!important;max-height:72px!important}
.container{padding-top:22px!important;padding-bottom:28px!important}
.hero-login{min-height:calc(100vh - 135px)!important;grid-template-columns:minmax(0,.95fr) minmax(420px,480px)!important;gap:34px!important;align-items:center!important}
.hero-copy-home{padding:0!important;justify-content:center!important}
.hero-copy-home h1{font-size:58px!important;line-height:1.03!important;margin-bottom:8px!important;max-width:620px}
.hero-copy-home .hero-subheadline{font-size:22px!important;margin:0 0 14px!important}
.hero-description{font-size:17px!important;line-height:1.75!important;max-width:620px!important;margin-top:0!important}
.feature-list{margin-top:20px!important;gap:10px!important;max-width:620px}
.feature-pill{padding:10px 14px!important;font-size:13px!important}
.login-card-home{min-height:auto!important;padding:30px 30px!important;align-self:center!important}
.login-card-home h2{font-size:30px!important;margin-bottom:8px!important}
.login-card-home input{height:52px!important}
.login-actions{margin-top:12px!important}
.footer{padding:14px!important}
@media(max-width:1180px){.hero-login{grid-template-columns:minmax(0,.95fr) minmax(390px,450px)!important;gap:28px!important}.hero-copy-home h1{font-size:50px!important}.brand-logo{width:150px!important}}
@media(max-width:1024px){.hero-login{grid-template-columns:1fr!important;min-height:auto!important}.login-card-home{max-width:720px;width:100%}.hero-copy-home h1{font-size:44px!important}.hero-copy-home .hero-subheadline{font-size:20px!important}}
@media(max-width:700px){.topbar{padding:10px 18px!important}.brand-logo{width:132px!important;max-height:60px!important}.container{padding-top:16px!important}.hero-copy-home h1{font-size:34px!important}.hero-copy-home .hero-subheadline{font-size:18px!important}.hero-description{font-size:15px!important}.feature-list{display:grid!important;grid-template-columns:1fr!important}.login-card-home{padding:22px 18px!important}.login-card-home h2{font-size:26px!important}}


/* Register consistency patch */
.auth-page{min-height:calc(100vh - 155px);display:flex;align-items:center;justify-content:center;padding:22px 0}
.register-card-premium{width:min(100%,680px);border-radius:30px!important;padding:34px 34px!important;box-shadow:0 24px 64px rgba(15,23,42,.08)!important}
.form-heading-center{text-align:center;margin-bottom:24px}
.form-heading-center h2{font-size:32px;line-height:1.15;margin:10px 0 10px}
.form-heading-center .muted{max-width:520px;margin:0 auto;line-height:1.7}
.password-note{margin:4px 0 16px;color:#64748b;line-height:1.7;font-size:15px}
.consent-card{display:flex!important;align-items:flex-start;gap:12px;padding:16px 18px;border:1px solid var(--border);border-radius:18px;background:#fbfdff;color:#334155;line-height:1.65;font-weight:600;margin:18px 0}
.consent-card input{width:18px!important;height:18px!important;margin:4px 0 0!important;flex:none;accent-color:#1d4ed8}
.consent-card span{display:block;flex:1}
.form-actions-center{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px}
.form-actions-center .btn{min-width:180px;text-align:center}
.register-card-premium input{height:54px}
@media(max-width:700px){.auth-page{align-items:flex-start;padding:14px 0 28px}.register-card-premium{padding:24px 20px!important}.form-heading-center h2{font-size:27px}.form-actions-center{flex-direction:column}.form-actions-center .btn{width:100%}.consent-card{padding:14px}}


/* Quick restart, dashboard action, and report spacing patch */
.quick-confirm-card{max-width:760px;margin:40px auto;text-align:center;padding:38px;border-radius:30px}
.quick-confirm-icon{width:74px;height:74px;border-radius:24px;background:#fff7ed;border:1px solid #fed7aa;display:flex;align-items:center;justify-content:center;font-size:34px;margin:0 auto 16px}
.quick-confirm-card h1{font-size:34px;line-height:1.15;margin:12px 0 12px}
.quick-confirm-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:24px}
.quick-confirm-actions .btn{min-width:190px}

.premium-child-card{align-items:center!important}
.child-actions-stack{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;min-width:220px!important;max-width:240px!important;justify-items:stretch!important;align-items:center!important}
.child-actions-stack .btn,.child-actions-stack a{width:100%!important;text-align:center!important;justify-content:center!important;padding-left:14px!important;padding-right:14px!important}
.child-profile{flex:1;min-width:0}

.pro-report{padding-bottom:12px!important}
.report-cover{padding:34px 34px 26px!important}
.report-title-row{padding:30px 0 20px!important}
.report-title-row h1{margin-top:10px!important;margin-bottom:14px!important;max-width:720px}
.report-grid-summary{padding:0 34px 28px!important;gap:16px!important}
.report-section{padding:0 34px 30px!important}
.report-section h3{margin-top:12px!important;margin-bottom:16px!important}
.report-domain-list{gap:16px!important}
.report-reco-grid{gap:16px!important}
.report-signoff{padding:10px 34px 34px!important;margin-top:8px}
.report-status-box{margin-top:8px}
.report-score-circle{flex:none}
.report-table td,.report-table th{padding:14px 12px!important}
@media(max-width:900px){.premium-child-card{align-items:flex-start!important}.child-actions-stack{width:100%!important;max-width:none!important;grid-template-columns:1fr!important}.quick-confirm-actions .btn{width:100%}.report-cover,.report-section,.report-grid-summary,.report-signoff{padding-left:22px!important;padding-right:22px!important}.report-title-row{gap:18px!important}}
@media print{.report-cover{padding:18pt!important}.report-section{padding-bottom:14pt!important}.report-signoff{padding-bottom:18pt!important}}


/* AJAX question navigation patch */
#screening-ajax-area{position:relative;scroll-margin-top:18px}
#screening-ajax-area.is-loading{opacity:.55;pointer-events:none}
#screening-ajax-area.is-loading::after{content:"Memuat pertanyaan...";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.58);backdrop-filter:blur(2px);border-radius:24px;color:#1d4ed8;font-weight:800}
.screening-question-panel{display:contents}
@media(max-width:900px){#screening-ajax-area{scroll-margin-top:12px}}


/* Scroll directly to question card after AJAX next/back */
#screening-question-panel .screening-card{scroll-margin-top:18px}
#screening-question-panel .screening-question-title{scroll-margin-top:18px}
@media(max-width:900px){#screening-question-panel .screening-card,#screening-question-panel .screening-question-title{scroll-margin-top:12px}}


/* Required answer before next/finish */
.is-disabled{opacity:.48!important;cursor:not-allowed!important;box-shadow:none!important}
a.is-disabled{pointer-events:auto}
.premium-answer:focus{outline:3px solid rgba(29,78,216,.22);outline-offset:3px}


/* Report UI spacing and PDF template patch */
.report-shell{padding-top:24px!important}
.pro-report{margin-top:0!important;overflow:visible!important;border-radius:28px!important}
.report-cover{padding:42px 40px 32px!important}
.report-brand-block{align-items:center!important;padding-bottom:22px!important}
.report-logo{width:150px!important;height:auto!important}
.report-meta{align-self:center!important}
.report-title-row{padding:34px 0 22px!important;align-items:center!important}
.report-title-row h1{font-size:42px!important;line-height:1.13!important;margin:14px 0 16px!important;letter-spacing:-.02em!important}
.report-title-row p{font-size:16px!important;line-height:1.8!important;max-width:820px!important}
.report-status-box{padding-left:18px!important}
.report-score-circle{width:150px!important;height:150px!important}
.report-grid-summary{padding:0 40px 34px!important;gap:18px!important}
.report-info-card{padding:20px!important}
.report-section{padding:0 40px 34px!important}
.report-section h3{margin:10px 0 18px!important;font-size:24px!important}
.report-domain-list{gap:18px!important}
.domain-row{padding:18px 20px!important}
.report-reco-grid{gap:18px!important}
.report-mini-activity{padding:20px!important}
.report-table th,.report-table td{padding:15px 14px!important}
.report-signoff{padding:12px 40px 40px!important}
@media(max-width:900px){.report-cover,.report-section,.report-grid-summary,.report-signoff{padding-left:22px!important;padding-right:22px!important}.report-title-row h1{font-size:31px!important}.report-title-row{align-items:flex-start!important}.report-status-box{padding-left:0!important}.report-meta{width:100%!important}.report-score-circle{width:124px!important;height:124px!important}}
@media print{.report-shell{padding-top:0!important}.report-cover,.report-section,.report-grid-summary,.report-signoff{padding-left:16pt!important;padding-right:16pt!important}.report-title-row h1{font-size:24pt!important}.report-title-row p{font-size:11pt!important}}


/* FINAL clean report page fix */
.clean-report-page{
  max-width:1180px!important;
  margin:0 auto!important;
  padding:24px 0 42px!important;
}
.clean-report-page .card{
  overflow:visible!important;
}
.clean-report-header{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:24px!important;
  padding:26px 28px!important;
  border-radius:28px!important;
  margin:0 0 18px!important;
  min-height:0!important;
}
.clean-report-title{
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  min-width:0!important;
}
.clean-report-title img{
  width:126px!important;
  height:auto!important;
  object-fit:contain!important;
  flex:none!important;
}
.clean-report-title h1{
  font-size:32px!important;
  line-height:1.14!important;
  margin:8px 0 8px!important;
  letter-spacing:-.02em!important;
  color:#0f172a!important;
}
.clean-report-title p{
  font-size:15px!important;
  line-height:1.65!important;
  margin:0!important;
  max-width:640px!important;
}
.clean-report-actions{
  display:flex!important;
  gap:10px!important;
  flex-wrap:wrap!important;
  justify-content:flex-end!important;
  flex:none!important;
}
.clean-report-summary{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
  margin:18px 0!important;
}
.clean-report-summary .card{
  padding:18px 20px!important;
  border-radius:22px!important;
  min-height:96px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
}
.clean-report-summary span{
  display:block!important;
  font-size:12px!important;
  text-transform:uppercase!important;
  letter-spacing:.06em!important;
  color:#64748b!important;
  font-weight:800!important;
  margin-bottom:8px!important;
}
.clean-report-summary b{
  font-size:18px!important;
  color:#111827!important;
}
.clean-report-summary .score-card b{
  font-size:34px!important;
  color:#1d4ed8!important;
  line-height:1!important;
}
.clean-report-content{
  display:grid!important;
  grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr)!important;
  gap:18px!important;
  align-items:start!important;
}
.clean-report-main,
.clean-report-side,
.clean-report-disclaimer{
  padding:24px!important;
  border-radius:24px!important;
}
.clean-report-page h2{
  font-size:22px!important;
  line-height:1.25!important;
  margin:0 0 16px!important;
  color:#111827!important;
}
.clean-report-main p{
  font-size:16px!important;
  line-height:1.85!important;
  color:#334155!important;
  margin:0 0 24px!important;
}
.clean-domain-list{
  display:flex!important;
  flex-direction:column!important;
  gap:14px!important;
}
.clean-report-page .domain-row{
  padding:16px 18px!important;
  border-radius:18px!important;
  margin:0!important;
}
.clean-report-page .mini-activity-card{
  padding:16px!important;
  border-radius:18px!important;
}
.clean-report-disclaimer{
  margin-top:18px!important;
}
.clean-report-disclaimer p{
  line-height:1.75!important;
  margin:0!important;
}
/* Hide old report cover layout if accidentally still rendered */
.report-shell .report-cover{
  overflow:visible!important;
}
@media(max-width:980px){
  .clean-report-header{
    flex-direction:column!important;
    align-items:flex-start!important;
  }
  .clean-report-actions{
    width:100%!important;
    justify-content:flex-start!important;
  }
  .clean-report-summary{
    grid-template-columns:1fr 1fr!important;
  }
  .clean-report-content{
    grid-template-columns:1fr!important;
  }
  .clean-report-title h1{
    font-size:28px!important;
  }
}
@media(max-width:620px){
  .clean-report-page{
    padding-top:14px!important;
  }
  .clean-report-header,
  .clean-report-main,
  .clean-report-side,
  .clean-report-disclaimer{
    padding:20px!important;
  }
  .clean-report-title{
    flex-direction:column!important;
    align-items:flex-start!important;
  }
  .clean-report-title img{
    width:108px!important;
  }
  .clean-report-title h1{
    font-size:24px!important;
  }
  .clean-report-summary{
    grid-template-columns:1fr!important;
  }
  .clean-report-actions .btn{
    width:100%!important;
    text-align:center!important;
  }
}
@media print{
  .clean-report-actions,
  .topbar,
  .footer{
    display:none!important;
  }
  .clean-report-page{
    max-width:100%!important;
    padding:0!important;
  }
}


/* Advanced restart + dashboard latest report patch */
.report-last-btn{background:#eef6ff!important;color:#1d4ed8!important;border:1px solid #bfdbfe!important}
.child-actions-stack{gap:10px!important}
.quick-confirm-card .quick-confirm-actions{align-items:center}
@media(max-width:900px){.quick-confirm-card .quick-confirm-actions .btn{width:100%;text-align:center}}


/* Child edit action patch */
.child-list-actions{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap}
.child-list-actions .btn{padding:8px 12px!important;font-size:13px!important}
.child-edit-card textarea{min-height:110px}
@media(max-width:760px){.child-list-actions{justify-content:flex-start}.child-list-actions .btn{width:100%;text-align:center}}


/* Child list edit action visible fix */
.child-list-actions{display:flex!important;gap:8px!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important}
.child-list-actions .btn{padding:8px 12px!important;font-size:13px!important;min-width:82px!important;text-align:center!important}
@media(max-width:760px){.child-list-actions{justify-content:flex-start!important}.child-list-actions .btn{width:100%!important}}


/* Child list remove quick action patch */
.child-list-actions .btn{min-width:92px!important}


/* Message child dropdown patch */
.new-thread-panel select[name="child_id"]{width:100%;min-height:48px}


/* Profile and user management patch */
.profile-password-box{margin:18px 0;padding:18px;border:1px dashed #cbd5e1;border-radius:20px;background:#fbfdff}
.profile-password-box h3{margin:0 0 6px}
.user-actions{display:flex!important;gap:8px!important;justify-content:center!important;align-items:center!important;flex-wrap:wrap!important}
.user-actions form{display:inline-flex!important}
.user-actions .btn{padding:8px 12px!important;font-size:13px!important;min-width:82px!important}
@media(max-width:760px){.user-actions{justify-content:flex-start!important}.user-actions .btn,.user-actions form{width:100%!important}.user-actions form button{width:100%!important}}


/* Topbar logout cleanup patch */
.topbar-account-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.role-pill{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:8px 12px!important;
  border-radius:999px!important;
  background:#f8fafc!important;
  border:1px solid var(--border)!important;
  color:#475569!important;
  font-weight:700!important;
  font-size:13px!important;
}
.logout-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:8px 14px;
  border-radius:999px;
  background:#fff1f2;
  border:1px solid #fecdd3;
  color:#be123c!important;
  font-weight:800;
  text-decoration:none;
  font-size:13px;
}
.logout-pill:hover{
  background:#ffe4e6;
  text-decoration:none;
}
.topbar-right nav a[href*="logout"]{display:none!important}
@media(max-width:860px){
  .topbar-account-actions{width:100%;justify-content:flex-start}
  .logout-pill,.role-pill{width:auto}
}


/* Remove role display from topbar */
.topbar-account-actions .role-pill{display:none!important}
.topbar-account-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}
@media(max-width:860px){.topbar-account-actions{justify-content:flex-start}}


/* Mobile responsive navbar patch */
.mobile-nav-toggle{
  display:none;
  width:44px;
  height:44px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#fff;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
  box-shadow:var(--shadow-sm);
  margin-left:auto;
}
.mobile-nav-toggle span{
  display:block;
  width:20px;
  height:2px;
  border-radius:999px;
  background:#0f172a;
  transition:transform .2s ease, opacity .2s ease;
}
.mobile-nav-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.mobile-nav-toggle.is-open span:nth-child(2){opacity:0}
.mobile-nav-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.main-nav{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.topbar-account-actions{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end;
}
.logout-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:36px;
  padding:9px 15px;
  border-radius:999px;
  background:#fff1f2;
  border:1px solid #fecdd3;
  color:#be123c!important;
  font-weight:800;
  text-decoration:none;
  font-size:13px;
  white-space:nowrap;
}
.logout-pill:hover{background:#ffe4e6;text-decoration:none}
.topbar-right nav a[href*="logout"]{display:none!important}
.topbar-account-actions .role-pill{display:none!important}

@media(max-width:920px){
  .topbar{
    position:sticky;
    top:0;
    z-index:50;
    min-height:72px!important;
    padding:10px 16px!important;
    align-items:center!important;
    gap:12px!important;
  }
  .brand-logo{
    width:132px!important;
    max-height:58px!important;
  }
  .mobile-nav-toggle{
    display:flex;
  }
  .topbar-right{
    display:none!important;
    position:absolute;
    top:calc(100% + 10px);
    left:12px;
    right:12px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:24px;
    padding:14px;
    box-shadow:0 24px 70px rgba(15,23,42,.14);
    z-index:60;
    max-height:calc(100vh - 92px);
    overflow:auto;
  }
  .topbar-right.is-open{
    display:block!important;
  }
  .topbar-right .main-nav,
  .topbar-right nav{
    display:grid!important;
    grid-template-columns:1fr;
    gap:8px;
    width:100%;
  }
  .topbar-right nav a{
    display:flex!important;
    align-items:center;
    justify-content:flex-start;
    min-height:46px;
    padding:12px 14px!important;
    border-radius:16px!important;
    background:#f8fafc;
    border:1px solid #e5edf5;
    color:#0f172a!important;
    font-weight:750!important;
  }
  .topbar-right nav a:hover{
    background:#eff6ff;
    color:#1d4ed8!important;
    text-decoration:none;
  }
  .topbar-account-actions{
    margin-top:12px;
    padding-top:12px;
    border-top:1px solid #e5edf5;
    width:100%;
    justify-content:stretch;
  }
  .logout-pill{
    width:100%;
    min-height:46px;
    border-radius:16px;
  }
  body.mobile-nav-open{
    overflow:hidden;
  }
  body.mobile-nav-open::after{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(15,23,42,.18);
    z-index:40;
  }
  body.mobile-nav-open .topbar{
    z-index:70;
  }
}
@media(min-width:921px){
  .topbar-right{
    display:flex!important;
    align-items:center;
    gap:12px;
  }
}


/* Mobile logo and hamburger alignment patch */
@media(max-width:920px){
  .topbar{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    flex-wrap:nowrap!important;
    min-height:68px!important;
    padding:10px 16px!important;
  }
  .topbar-left{
    display:flex!important;
    align-items:center!important;
    flex:0 1 auto!important;
    min-width:0!important;
  }
  .topbar-left .brand{
    display:flex!important;
    align-items:center!important;
    margin:0!important;
  }
  .brand-logo{
    width:130px!important;
    max-height:54px!important;
    display:block!important;
  }
  .mobile-nav-toggle{
    display:flex!important;
    flex:0 0 44px!important;
    width:44px!important;
    height:44px!important;
    margin-left:auto!important;
    position:relative!important;
    top:auto!important;
    right:auto!important;
  }
  .topbar-right{
    top:calc(100% + 8px)!important;
  }
}
@media(max-width:420px){
  .brand-logo{
    width:118px!important;
    max-height:50px!important;
  }
  .mobile-nav-toggle{
    flex-basis:42px!important;
    width:42px!important;
    height:42px!important;
  }
}


/* Footer references modal patch */
.footer-link-button{
  border:0;
  background:transparent;
  padding:0;
  color:#1d4ed8;
  font-weight:800;
  cursor:pointer;
  font:inherit;
}
.footer-link-button:hover{text-decoration:underline}
.reference-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(15,23,42,.38);
  backdrop-filter:blur(8px);
}
.reference-modal-backdrop[hidden]{display:none!important}
.reference-modal{
  width:min(100%,760px);
  max-height:min(88vh,760px);
  overflow:auto;
  border-radius:30px;
  background:#fff;
  border:1px solid #e5edf5;
  box-shadow:0 30px 90px rgba(15,23,42,.24);
  padding:30px;
  position:relative;
}
.reference-modal-close{
  position:absolute;
  top:16px;
  right:16px;
  width:40px;
  height:40px;
  border:1px solid #e5edf5;
  border-radius:999px;
  background:#fff;
  color:#0f172a;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.reference-modal-close:hover{background:#f8fafc}
.reference-modal-head h2{
  margin:8px 0 10px;
  font-size:30px;
  line-height:1.16;
  color:#0f172a;
}
.reference-modal-head p{
  color:#64748b;
  line-height:1.75;
  max-width:660px;
}
.reference-list{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:20px;
}
.reference-list a{
  display:block;
  padding:16px;
  border-radius:20px;
  background:#f8fbff;
  border:1px solid #dbeafe;
  text-decoration:none;
  color:#0f172a;
}
.reference-list a:hover{
  background:#eff6ff;
  border-color:#bfdbfe;
}
.reference-list b{
  display:block;
  margin-bottom:6px;
  color:#1d4ed8;
}
.reference-list span{
  display:block;
  color:#64748b;
  line-height:1.55;
  font-size:14px;
}
.reference-modal-note{
  margin-top:18px;
  padding:14px 16px;
  border-radius:18px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  line-height:1.65;
  font-weight:650;
}
body.reference-modal-open{overflow:hidden}
@media(max-width:700px){
  .reference-modal{
    padding:24px 18px;
    border-radius:24px;
  }
  .reference-modal-head h2{font-size:25px}
  .reference-list{grid-template-columns:1fr}
}


/* Footer privacy modal patch */
.privacy-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:20px;
}
.privacy-card{
  padding:16px;
  border-radius:20px;
  background:#f8fbff;
  border:1px solid #dbeafe;
}
.privacy-card b{
  display:block;
  color:#1d4ed8;
  margin-bottom:6px;
}
.privacy-card span{
  display:block;
  color:#64748b;
  line-height:1.6;
  font-size:14px;
}
body.privacy-modal-open{overflow:hidden}
@media(max-width:700px){
  .privacy-grid{grid-template-columns:1fr}
}


/* Home age range information patch */
.home-age-badge{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  margin:6px 0 14px;
  padding:10px 16px;
  border-radius:999px;
  background:#ecfdf5;
  border:1px solid #bbf7d0;
  color:#047857;
  font-weight:850;
  letter-spacing:.01em;
  box-shadow:0 10px 28px rgba(16,185,129,.10);
}
@media(max-width:700px){
  .home-age-badge{
    width:100%;
    justify-content:center;
    text-align:center;
    font-size:14px;
  }
}


/* BMI Anak feature patch */
.bmi-layout{grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);align-items:start}
.bmi-chart-card{overflow:hidden}
.bmi-svg{width:100%;height:auto;display:block;background:linear-gradient(180deg,#ffffff,#f8fbff);border:1px solid #e5edf5;border-radius:24px;padding:8px}
.bmi-grid{stroke:#e5edf5;stroke-width:1}
.bmi-axis{fill:#64748b;font-size:11px;font-weight:700}
.bmi-legend{fill:#334155;font-size:12px;font-weight:800}
.bmi-line{fill:none;stroke:#1d4ed8;stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.bmi-dot{fill:#1d4ed8;stroke:#fff;stroke-width:3}
.bmi-ref-high,.bmi-ref-low{fill:none;stroke:#10b981;stroke-width:2.5;stroke-dasharray:7 6;stroke-linecap:round}
.bmi-disclaimer{margin-top:14px;padding:14px 16px;border-radius:18px;background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;line-height:1.65;font-weight:650}
@media(max-width:960px){.bmi-layout{grid-template-columns:1fr}.bmi-svg{min-height:250px}}


/* BMI same child data info patch */
.bmi-info-card{
  background:linear-gradient(180deg,#ffffff,#f8fbff)!important;
  border:1px solid #dbeafe!important;
}
.bmi-info-card h3{margin-bottom:8px}
.bmi-info-card p{line-height:1.7}


/* BMI curve growth-chart patch */
.curve-chart{
  background:linear-gradient(180deg,#ffffff 0%, #fcfdff 100%);
  border-radius:28px;
}
.bmi-bg{
  fill:#fff;
  stroke:#cbd5e1;
  stroke-width:1.1;
}
.bmi-grid{
  stroke:#d6dee8;
  stroke-width:.8;
}
.bmi-grid.major{
  stroke:#b9c7d8;
  stroke-width:1;
}
.bmi-grid.minor{
  opacity:.6;
}
.bmi-ref-curve{
  stroke-width:2.6;
  fill:none;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.bmi-ref-label{
  font-size:12px;
  font-weight:800;
}
.bmi-line{
  fill:none;
  stroke:#2563eb;
  stroke-width:3.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.bmi-dot{
  fill:#2563eb;
  stroke:#ffffff;
  stroke-width:3;
}
.bmi-standard-card .simple-list{
  margin:0;
  padding-left:18px;
  color:#475569;
  line-height:1.7;
}
.bmi-standard-card .simple-list li{
  margin:0 0 8px;
}


/* Hybrid screening methodology patch */
.methodology-box{
  margin:18px 0 24px;
  padding:16px 18px;
  border-radius:20px;
  background:#f8fbff;
  border:1px solid #dbeafe;
  color:#475569;
  line-height:1.65;
}
.methodology-box b{
  display:block;
  color:#1d4ed8;
  margin-bottom:6px;
}
.methodology-box span{
  display:block;
}


/* Vaccine feature patch */
.vaccine-layout{grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);align-items:start}
.vaccine-next-box{
  margin:0 0 18px;
  padding:18px;
  border-radius:24px;
  background:linear-gradient(180deg,#f8fbff,#ffffff);
  border:1px solid #dbeafe;
}
.vaccine-next-box h4{margin:0 0 12px;color:#0f172a}
.vaccine-next-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.vaccine-next-card{
  padding:14px;
  border-radius:18px;
  background:#fff;
  border:1px solid #e5edf5;
}
.vaccine-next-card b{display:block;color:#1d4ed8;margin-bottom:4px}
.vaccine-next-card span,.vaccine-next-card small{display:block;color:#64748b;line-height:1.45}
.vaccine-table td{vertical-align:top}
.vaccine-open-btn{min-width:82px}
.vaccine-info-card{
  background:#fff7ed!important;
  border-color:#fed7aa!important;
}
.vaccine-modal-form{display:block}
@media(max-width:980px){
  .vaccine-layout{grid-template-columns:1fr}
  .vaccine-next-grid{grid-template-columns:1fr}
}


/* Vaccine table layout cleanup patch */
.vaccine-table{
  width:100%;
  table-layout:fixed;
  border-collapse:separate;
  border-spacing:0;
}
.vaccine-table th,
.vaccine-table td{
  vertical-align:top;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.vaccine-table th:nth-child(1),
.vaccine-table td:nth-child(1){width:19%;}
.vaccine-table th:nth-child(2),
.vaccine-table td:nth-child(2){width:24%;}
.vaccine-table th:nth-child(3),
.vaccine-table td:nth-child(3){width:12%;}
.vaccine-table th:nth-child(4),
.vaccine-table td:nth-child(4){width:14%;}
.vaccine-table th:nth-child(5),
.vaccine-table td:nth-child(5){width:16%;}
.vaccine-table th:nth-child(6),
.vaccine-table td:nth-child(6){width:15%;}

.vaccine-table td:nth-child(5),
.vaccine-table th:nth-child(5){
  text-align:center;
}
.vaccine-table td:nth-child(6),
.vaccine-table th:nth-child(6){
  text-align:center;
}

.vaccine-table td .badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:190px;
  min-height:42px;
  padding:10px 14px;
  white-space:normal;
  line-height:1.25;
  text-align:center;
  border-radius:999px;
  font-weight:800;
}
.vaccine-table td small.muted{
  display:block;
  margin-top:8px;
  line-height:1.45;
}
.vaccine-table td .btn{
  min-width:112px;
  justify-content:center;
}
.vaccine-table td .btn + .btn{
  margin-top:8px;
}

@media (max-width: 1100px){
  .vaccine-table{
    min-width:980px;
  }
  .table-wrap{
    overflow-x:auto;
  }
}


/* Vaccine status short-text and age consistency patch */
.vaccine-table td .badge{
  max-width:160px;
  min-height:40px;
  padding:10px 12px;
  white-space:normal;
  word-break:normal;
}


/* Vaccine compact fit no-scroll patch */
.vaccine-table{
  width:100%;
  table-layout:fixed;
  border-collapse:separate;
  border-spacing:0;
}
.vaccine-table th,
.vaccine-table td{
  padding:16px 12px;
  vertical-align:top;
  font-size:15px;
  line-height:1.45;
  word-break:break-word;
  overflow-wrap:anywhere;
}
.vaccine-table th{
  font-size:14px;
  line-height:1.3;
}
.vaccine-table th:nth-child(1),
.vaccine-table td:nth-child(1){width:19%;}
.vaccine-table th:nth-child(2),
.vaccine-table td:nth-child(2){width:25%;}
.vaccine-table th:nth-child(3),
.vaccine-table td:nth-child(3){width:12%;}
.vaccine-table th:nth-child(4),
.vaccine-table td:nth-child(4){width:14%;}
.vaccine-table th:nth-child(5),
.vaccine-table td:nth-child(5){width:14%; text-align:center;}
.vaccine-table th:nth-child(6),
.vaccine-table td:nth-child(6){width:16%; text-align:center;}

.vaccine-table td .badge{
  display:inline-flex;
  width:auto;
  max-width:none;
  min-width:98px;
  min-height:34px;
  padding:8px 14px;
  border-radius:999px;
  white-space:nowrap;
  word-break:normal;
  overflow-wrap:normal;
  line-height:1.1;
  font-size:14px;
  font-weight:800;
}

.vaccine-table td .btn,
.vaccine-table td .vaccine-open-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:92px;
  padding:10px 16px;
  font-size:14px;
  line-height:1.1;
  border-radius:16px;
}

.vaccine-table td small.muted{
  display:block;
  margin-top:6px;
  font-size:12px;
  line-height:1.4;
}

.vaccine-table td b{
  font-size:17px;
}

.table-wrap{
  overflow-x:visible;
}

@media (max-width: 1024px){
  .vaccine-table th,
  .vaccine-table td{
    padding:14px 10px;
    font-size:14px;
  }
  .vaccine-table td .badge{
    min-width:88px;
    padding:7px 12px;
    font-size:13px;
  }
  .vaccine-table td .btn,
  .vaccine-table td .vaccine-open-btn{
    min-width:82px;
    padding:9px 12px;
    font-size:13px;
  }
}

@media (max-width: 860px){
  .table-wrap{
    overflow-x:auto;
  }
  .vaccine-table{
    min-width:820px;
  }
}


/* BMI and vaccine select-child-first flow patch */
.select-child-first-card{
  max-width:980px;
  margin:0 auto 28px;
}
.select-child-first-card h2{
  margin:8px 0 8px;
}
.child-picker-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;
  margin-top:20px;
}
.child-picker-card{
  display:flex;
  align-items:center;
  gap:14px;
  padding:18px;
  border-radius:24px;
  background:#ffffff;
  border:1px solid #dbeafe;
  box-shadow:0 14px 36px rgba(15,23,42,.06);
  text-decoration:none;
  color:#0f172a;
  transition:transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.child-picker-card:hover{
  transform:translateY(-2px);
  border-color:#93c5fd;
  box-shadow:0 18px 44px rgba(37,99,235,.12);
  text-decoration:none;
}
.child-picker-card b{
  display:block;
  font-size:17px;
  margin-bottom:3px;
}
.child-picker-card small{
  display:block;
  color:#64748b;
  line-height:1.35;
}
.avatar-soft{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  border-radius:18px;
  background:#eef6ff;
  color:#1d4ed8;
  font-weight:900;
  flex:0 0 52px;
}
@media(max-width:700px){
  .child-picker-grid{
    grid-template-columns:1fr;
  }
}


/* Vaccine single-column selected-child layout patch */
.vaccine-single-column{
  display:block;
  width:100%;
}
.vaccine-main-card{
  width:100%;
  max-width:1180px;
  margin:0 auto;
}
.vaccine-selected-head{
  gap:18px;
  align-items:flex-start;
}
.selected-child-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}
.compact-btn{
  min-height:38px!important;
  padding:9px 14px!important;
  border-radius:14px!important;
  font-size:13px!important;
  white-space:nowrap;
}
.vaccine-inline-note{
  margin-top:18px;
  padding:16px 18px;
  border-radius:20px;
  background:#fff7ed;
  border:1px solid #fed7aa;
  color:#9a3412;
  line-height:1.65;
}
.vaccine-inline-note b{
  display:block;
  margin-bottom:4px;
}
.vaccine-inline-note span{
  display:block;
}
.vaccine-table{
  min-width:0!important;
  width:100%!important;
  table-layout:fixed!important;
}
.vaccine-table th,
.vaccine-table td{
  padding:16px 14px!important;
}
.vaccine-table th:nth-child(1),
.vaccine-table td:nth-child(1){width:19%!important;}
.vaccine-table th:nth-child(2),
.vaccine-table td:nth-child(2){width:27%!important;}
.vaccine-table th:nth-child(3),
.vaccine-table td:nth-child(3){width:13%!important;}
.vaccine-table th:nth-child(4),
.vaccine-table td:nth-child(4){width:14%!important;}
.vaccine-table th:nth-child(5),
.vaccine-table td:nth-child(5){width:12%!important;text-align:center!important;}
.vaccine-table th:nth-child(6),
.vaccine-table td:nth-child(6){width:15%!important;text-align:center!important;}
.vaccine-table td .badge{
  min-width:86px!important;
  max-width:120px!important;
  padding:7px 12px!important;
  min-height:34px!important;
  font-size:13px!important;
}
.vaccine-table td .btn,
.vaccine-table td .vaccine-open-btn{
  min-width:78px!important;
  padding:9px 12px!important;
  font-size:13px!important;
  border-radius:14px!important;
}
.table-wrap{
  overflow-x:visible!important;
}
@media(max-width:980px){
  .vaccine-selected-head{
    flex-direction:column;
  }
  .selected-child-actions{
    justify-content:flex-start;
  }
}
@media(max-width:860px){
  .table-wrap{
    overflow-x:auto!important;
  }
  .vaccine-table{
    min-width:780px!important;
  }
}


/* BMI selected child action + vaccine age badge one-line patch */
.bmi-selected-head{
  gap:18px;
  align-items:flex-start;
}
.age-range-badge{
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  min-width:max-content!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
@media(max-width:980px){
  .bmi-selected-head{
    flex-direction:column;
  }
}


/* Auto table search/filter patch */
.auto-table-search{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:0 0 16px;
  padding:16px;
  border-radius:22px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  border:1px solid #dbeafe;
  box-shadow:0 12px 34px rgba(15,23,42,.05);
}
.auto-table-search-left{
  min-width:180px;
}
.auto-table-search-left label{
  display:block;
  font-weight:900;
  color:#0f172a;
  margin-bottom:3px;
}
.auto-table-search-left span{
  display:block;
  color:#64748b;
  font-size:13px;
  line-height:1.35;
}
.auto-table-search-field{
  flex:1;
}
.auto-table-search-field input{
  width:100%;
  min-height:46px;
  border-radius:16px;
  border:1px solid #dbe5f1;
  background:#fff;
  padding:11px 15px;
  font-size:14px;
  outline:none;
}
.auto-table-search-field input:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(59,130,246,.12);
}
.auto-table-search-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:76px;
  min-height:40px;
  padding:8px 12px;
  border-radius:999px;
  background:#eef6ff;
  color:#1d4ed8;
  font-weight:900;
  white-space:nowrap;
}
.table.is-filtering tr[style*="display: none"]{
  display:none!important;
}
@media(max-width:760px){
  .auto-table-search{
    flex-direction:column;
    align-items:stretch;
  }
  .auto-table-search-left{
    min-width:0;
  }
  .auto-table-search-count{
    align-self:flex-start;
  }
}


/* Clean single-column list + CRUD modal patch */
.full-width-list{
  width:100%;
}
.page-actions-row{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.crud-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  background:rgba(15,23,42,.38);
  backdrop-filter:blur(8px);
}
.crud-modal-backdrop[hidden]{
  display:none!important;
}
.crud-modal{
  width:min(100%,760px);
  max-height:min(90vh,820px);
  overflow:auto;
  border-radius:30px;
  background:#fff;
  border:1px solid #e5edf5;
  box-shadow:0 30px 90px rgba(15,23,42,.24);
  padding:30px;
  position:relative;
}
.crud-modal.confirm-modal{
  width:min(100%,520px);
}
.crud-modal-close{
  position:absolute;
  top:16px;
  right:16px;
  width:40px;
  height:40px;
  border:1px solid #e5edf5;
  border-radius:999px;
  background:#fff;
  color:#0f172a;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.crud-modal-close:hover{
  background:#f8fafc;
}
.crud-modal-head h2{
  margin:8px 0 8px;
  font-size:28px;
  color:#0f172a;
}
.crud-modal-head p{
  color:#64748b;
  line-height:1.65;
}
.crud-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:18px;
}
.crud-form-grid .field-full,
.crud-form-grid .modal-actions{
  grid-column:1/-1;
}
.modal-actions{
  margin-top:8px;
}
body.crud-modal-open{
  overflow:hidden;
}
.row-actions form.inline-confirm-form{
  display:inline-flex!important;
}
.row-actions button.btn{
  font-family:inherit;
}
@media(max-width:760px){
  .page-actions-row{
    justify-content:flex-start;
  }
  .crud-modal{
    padding:24px 18px;
    border-radius:24px;
  }
  .crud-form-grid{
    grid-template-columns:1fr;
  }
  .crud-form-grid .field-full,
  .crud-form-grid .modal-actions{
    grid-column:auto;
  }
}


/* Data Anak actions alignment patch */
.child-list-actions{
  justify-content:flex-start!important;
  text-align:left!important;
}
.child-list-actions .btn{
  min-width:86px!important;
}
.table td .child-list-actions{
  margin-left:0!important;
}


/* Screening single-column simplified layout patch */
.screening-hero{
  grid-template-columns:minmax(0,1.2fr) minmax(260px,.65fr);
  gap:28px;
}
.screening-hero .premium-desc{
  max-width:760px;
}
.screening-flow-single{
  display:block;
}
.screening-main-card{
  width:100%;
  max-width:100%;
}
.screening-main-head{
  align-items:flex-start;
  gap:24px;
}
.screening-question-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:10px;
}
.compact-step-box{
  min-width:112px;
  padding:12px 14px;
}
.screening-question-title{
  max-width:920px;
}
.screening-answer-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
  margin-top:22px;
}
.simple-note-card{
  margin-top:22px;
  background:#fbfdff;
}
.screening-support-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  margin-top:20px;
}
.compact-support-card{
  padding:22px;
}
.compact-support-card h3{
  margin-bottom:14px;
}
.compact-summary-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.compact-summary-grid > div{
  padding:13px 14px;
}
.clean-list-compact{
  margin:0;
  padding-left:18px;
  line-height:1.8;
}
.clean-list-compact li+li{
  margin-top:8px;
}
.support-card-headline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.progress-support-card .muted{
  margin-top:12px;
}
@media(max-width:1200px){
  .screening-support-grid{
    grid-template-columns:1fr 1fr;
  }
  .progress-support-card{
    grid-column:1 / -1;
  }
}
@media(max-width:980px){
  .screening-hero{
    grid-template-columns:1fr;
  }
  .screening-main-head{
    flex-direction:column;
  }
  .compact-step-box{
    align-self:flex-start;
  }
  .screening-answer-grid{
    grid-template-columns:1fr;
  }
  .screening-support-grid{
    grid-template-columns:1fr;
  }
  .compact-summary-grid{
    grid-template-columns:1fr;
  }
}
@media(max-width:860px){
  .screening-card{padding:22px}
  .screening-question-title{font-size:30px}
}


/* Screening full-width wrapper fix */
.screening-shell{
  display:block!important;
  width:100%;
  max-width:100%;
}
#screening-ajax-area.screening-shell{
  position:relative;
}
#screening-ajax-area.screening-shell.is-loading::after{
  border-radius:28px;
}
.screening-layout{
  grid-template-columns:1fr!important;
}
.screening-question-panel,
.screening-flow-single{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
}
.screening-main-card,
#screening-question-panel .screening-card{
  width:100%!important;
  max-width:100%!important;
}
.screening-support-grid{
  width:100%;
}
@media(min-width:981px){
  .screening-support-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}


/* BMI & Vaccine select child full-width patch */
.select-child-first-card{
  width:100%!important;
  max-width:100%!important;
  margin:0 0 28px!important;
}
.select-child-first-card .child-picker-grid{
  width:100%;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
}
.select-child-first-card .empty-state{
  grid-column:1 / -1;
}
.child-picker-card{
  min-height:96px;
}
@media(max-width:700px){
  .select-child-first-card .child-picker-grid{
    grid-template-columns:1fr;
  }
}


/* Parent dashboard full-width children + 3 support cards patch */
.dashboard-parent-grid{
  grid-template-columns:1fr!important;
  gap:18px!important;
  align-items:start!important;
}
.dashboard-parent-grid > .card.section-card{
  width:100%;
  max-width:100%;
}
.dashboard-parent-grid > .side-stack{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:18px!important;
  align-items:stretch!important;
}
.dashboard-parent-grid > .side-stack > .card{
  height:100%;
}
.dashboard-parent-grid > .side-stack .btn.btn-block{
  margin-top:auto;
}
@media(max-width:1100px){
  .dashboard-parent-grid > .side-stack{
    grid-template-columns:1fr 1fr!important;
  }
}
@media(max-width:760px){
  .dashboard-parent-grid > .side-stack{
    grid-template-columns:1fr!important;
  }
}


/* Navbar align with page content patch */
@media(min-width:921px){
  .topbar{
    padding-left:max(28px, calc((100vw - 1180px) / 2 + 28px))!important;
    padding-right:max(28px, calc((100vw - 1180px) / 2 + 28px))!important;
  }
}


/* Admin message page redesign patch */
.admin-message-page{
  display:flex;
  flex-direction:column;
  gap:18px;
}
.admin-new-thread-panel{
  width:100%;
  max-width:100%;
  position:static!important;
}
.admin-message-form-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.admin-message-form-grid .admin-message-body-field{
  grid-column:1 / -1;
}
.admin-message-form-grid textarea{
  min-height:140px;
}
.admin-message-form-actions{
  display:flex;
  justify-content:flex-end;
  margin-top:6px;
}
.admin-message-layout{
  display:grid!important;
  grid-template-columns:360px minmax(0,1fr)!important;
  gap:18px!important;
  align-items:start!important;
}
.admin-message-layout .thread-list-panel,
.admin-message-layout .thread-detail-panel{
  min-width:0;
}
@media(max-width:1100px){
  .admin-message-form-grid{
    grid-template-columns:1fr 1fr;
  }
  .admin-message-layout{
    grid-template-columns:320px minmax(0,1fr)!important;
  }
}
@media(max-width:860px){
  .admin-message-form-grid{
    grid-template-columns:1fr;
  }
  .admin-message-layout{
    grid-template-columns:1fr!important;
  }
  .admin-message-form-actions{
    justify-content:stretch;
  }
  .admin-message-form-actions .btn{
    width:100%;
  }
}


/* Admin thread status badges and filters patch */
.thread-status-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  max-width:100%;
  margin-top:8px;
  padding:7px 11px;
  border-radius:999px;
  font-size:12px;
  line-height:1.1;
  font-weight:900;
  border:1px solid transparent;
  white-space:nowrap;
}
.thread-status-open{
  background:#eff6ff;
  color:#1d4ed8;
  border-color:#bfdbfe;
}
.thread-status-parent{
  background:#fff7ed;
  color:#c2410c;
  border-color:#fed7aa;
}
.thread-status-clinic{
  background:#fefce8;
  color:#a16207;
  border-color:#fde68a;
}
.thread-status-closed{
  background:#ecfdf5;
  color:#047857;
  border-color:#bbf7d0;
}
.admin-thread-filter{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr .8fr;
  gap:12px;
  padding:14px;
  border-radius:22px;
  background:#f8fbff;
  border:1px solid #dbeafe;
  margin-bottom:12px;
}
.admin-thread-filter .field{
  margin-bottom:0;
}
.thread-filter-count{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  margin:0 0 12px;
  padding:8px 12px;
  border-radius:999px;
  background:#eef6ff;
  color:#1d4ed8;
  font-size:12px;
  font-weight:900;
}
.admin-thread-item > div{
  min-width:0;
}
.admin-thread-item b{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
}
.thread-detail-head .thread-status-badge{
  margin-top:10px;
}
@media(max-width:1100px){
  .admin-thread-filter{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:760px){
  .admin-thread-filter{
    grid-template-columns:1fr;
  }
  .thread-status-badge{
    white-space:normal;
    text-align:center;
  }
}


/* Admin message layout spacing refinement patch */
.admin-message-layout{
  grid-template-columns:430px minmax(0,1fr)!important;
  gap:24px!important;
  align-items:start!important;
}
.admin-thread-list-panel{
  position:relative;
}
.admin-thread-filter{
  grid-template-columns:1fr 1fr!important;
  gap:14px!important;
  align-items:end!important;
}
.admin-thread-filter .field:first-child{
  grid-column:1 / -1;
}
.admin-thread-filter .field:last-child{
  grid-column:1 / -1;
}
.admin-thread-filter input,
.admin-thread-filter select{
  width:100%;
}
.admin-thread-item{
  align-items:flex-start!important;
}
.admin-thread-item small{
  min-width:118px;
  text-align:right;
  white-space:normal!important;
  line-height:1.45;
}
.thread-list-panel .thread-list{
  gap:12px;
}
.thread-list-panel .thread-item{
  padding:16px;
}
.thread-detail-panel .thread-detail-head{
  gap:20px;
}
.thread-detail-panel .message-bubbles{
  margin-top:22px;
}
@media(max-width:1280px){
  .admin-message-layout{
    grid-template-columns:390px minmax(0,1fr)!important;
  }
}
@media(max-width:1100px){
  .admin-message-layout{
    grid-template-columns:1fr!important;
  }
  .admin-thread-filter{
    grid-template-columns:1fr 1fr!important;
  }
}
@media(max-width:760px){
  .admin-thread-filter{
    grid-template-columns:1fr!important;
  }
  .admin-thread-filter .field:first-child,
  .admin-thread-filter .field:last-child{
    grid-column:auto;
  }
  .admin-thread-item{
    flex-direction:column;
  }
  .admin-thread-item small{
    min-width:0;
    text-align:left;
  }
}


/* Unified waiting-reply thread badge patch */
.thread-status-waiting{
  background:#fff7ed;
  color:#c2410c;
  border-color:#fed7aa;
}


/* BMI/Vaccine child picker search patch */
.child-picker-search{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin:20px 0 18px;
  padding:16px;
  border-radius:22px;
  background:linear-gradient(180deg,#ffffff,#f8fbff);
  border:1px solid #dbeafe;
  box-shadow:0 12px 34px rgba(15,23,42,.05);
}
.child-picker-search-copy{
  min-width:190px;
}
.child-picker-search-copy label{
  display:block;
  font-weight:900;
  color:#0f172a;
  margin-bottom:3px;
}
.child-picker-search-copy span{
  display:block;
  color:#64748b;
  font-size:13px;
  line-height:1.35;
}
.child-picker-search-field{
  flex:1;
}
.child-picker-search-field input{
  width:100%;
  min-height:46px;
  border-radius:16px;
  border:1px solid #dbe5f1;
  background:#fff;
  padding:11px 15px;
  font-size:14px;
  outline:none;
}
.child-picker-search-field input:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(59,130,246,.12);
}
.child-picker-search-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:76px;
  min-height:40px;
  padding:8px 12px;
  border-radius:999px;
  background:#eef6ff;
  color:#1d4ed8;
  font-weight:900;
  white-space:nowrap;
}
.child-picker-grid.is-filtering-child .child-picker-card[style*="display: none"]{
  display:none!important;
}
@media(max-width:760px){
  .child-picker-search{
    flex-direction:column;
    align-items:stretch;
  }
  .child-picker-search-copy{
    min-width:0;
  }
  .child-picker-search-count{
    align-self:flex-start;
  }
}
