:root{--blue:#0b63d8;--blue2:#064db3;--red:#ef233c;--navy:#0f1f46;--muted:#64748b;--line:#dbe7f7;--bg:#f7fbff;--green:#16a34a;--orange:#f59e0b;--shadow:0 18px 45px rgba(15,31,70,.10)}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:linear-gradient(135deg,#fff 0%,#f5fbff 50%,#f2f7ff 100%);color:var(--navy)}a{color:var(--blue);text-decoration:none}.phone-page{min-height:100vh;max-width:520px;margin:0 auto;padding:22px 18px 90px;position:relative;overflow:hidden}.phone-page:before{content:"";position:absolute;left:-130px;top:120px;width:260px;height:260px;background:rgba(239,35,60,.18);border-radius:50%;filter:blur(4px);z-index:-1}.phone-page:after{content:"";position:absolute;right:-140px;top:100px;width:310px;height:380px;background:rgba(11,99,216,.20);border-radius:45%;filter:blur(4px);z-index:-1}.brand{text-align:center;margin:10px 0 22px}.brand img{max-width:210px;width:54%;height:auto}.brand h1{margin:12px 0 4px;font-size:34px;letter-spacing:.5px}.brand p,.sub{color:var(--muted);margin:0;font-size:15px}.card{background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:28px;box-shadow:var(--shadow);padding:24px}.card.soft{box-shadow:0 10px 30px rgba(15,31,70,.07)}.card-title{font-size:26px;margin:0 0 8px;display:flex;align-items:center;gap:12px}.icon-badge{width:54px;height:54px;border-radius:18px;background:#edf6ff;display:inline-flex;align-items:center;justify-content:center;color:var(--blue);font-weight:800}.field{margin:14px 0}.field label{display:block;font-weight:700;margin:0 0 8px}.input-wrap{display:flex;align-items:center;gap:10px;border:1px solid #c9d7ea;border-radius:14px;background:#fff;padding:12px 14px}.input-wrap input{border:0;outline:0;width:100%;font-size:16px;background:transparent;color:var(--navy)}.input-wrap .toggle-pass{border:0;background:transparent;color:#52637a;font-size:20px;cursor:pointer}.btn{border:0;border-radius:15px;padding:14px 18px;font-size:16px;font-weight:800;cursor:pointer;text-align:center;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px}.btn-primary{background:linear-gradient(90deg,var(--red),var(--blue));color:#fff;box-shadow:0 12px 25px rgba(11,99,216,.20)}.btn-blue{background:linear-gradient(90deg,#126ef1,#064db3);color:#fff}.btn-outline{border:1.5px solid var(--blue);background:#fff;color:var(--blue)}.btn-block{width:100%}.link-row{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:10px 0 18px}.help{font-size:13px;color:var(--muted)}.pill{border-radius:999px;padding:8px 12px;display:inline-flex;align-items:center;gap:8px;font-weight:700;font-size:13px}.pill.red{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}.pill.blue{background:#eff6ff;color:#075cc7;border:1px solid #bfdbfe}.pill.green{background:#dcfce7;color:#15803d}.pill.orange{background:#fff7ed;color:#c2410c}.info-strip{display:flex;gap:14px;align-items:center;background:#eff7ff;border:1px solid #bfdbfe;border-radius:18px;padding:14px;margin-top:16px}.contact-card{background:#fff;border:1px solid var(--line);border-radius:20px;margin-top:14px;overflow:hidden}.contact-row{display:flex;align-items:center;gap:14px;padding:12px 16px;border-bottom:1px solid #edf2f7}.contact-row:last-child{border-bottom:0}.circle{width:42px;height:42px;border-radius:50%;background:#eaf3ff;color:var(--blue);display:flex;align-items:center;justify-content:center;font-weight:900;flex:0 0 42px}.topbar{display:flex;align-items:center;justify-content:space-between;margin:8px 0 20px}.logo-small{display:flex;align-items:center;gap:8px}.logo-small img{width:148px}.back{width:46px;height:46px;border-radius:14px;border:1px solid var(--line);background:#fff;color:var(--blue);font-size:22px;display:flex;align-items:center;justify-content:center}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.stat{background:#fff;border:1px solid var(--line);border-radius:20px;padding:14px}.stat b{display:block;font-size:26px;margin:3px 0}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.tile{background:#fff;border:1px solid var(--line);border-radius:20px;padding:16px;min-height:125px}.tile h3{margin:10px 0 4px;font-size:16px}.tile p{margin:0;color:var(--muted);font-size:13px}.wide-action{display:flex;align-items:center;justify-content:space-between;gap:14px}.doc-list{display:flex;flex-direction:column;gap:12px}.doc-card{display:grid;grid-template-columns:64px 1fr;gap:14px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px}.doc-icon{width:58px;height:70px;border-radius:12px;border:1px solid #dbeafe;background:#fff;display:flex;align-items:center;justify-content:center;color:#ef233c;font-weight:900}.doc-title{font-weight:900;font-size:17px}.doc-meta{color:#64748b;font-size:13px;line-height:1.6}.doc-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);max-width:520px;width:100%;display:grid;grid-template-columns:repeat(4,1fr);background:rgba(255,255,255,.96);border-top:1px solid var(--line);padding:8px 8px 10px;box-shadow:0 -10px 30px rgba(15,31,70,.08)}.bottom-nav a{text-align:center;color:#536176;font-size:12px;padding:8px;border-radius:18px}.bottom-nav a.active{color:var(--blue);background:#eef6ff;font-weight:800}.progress-card{padding:18px;border-radius:22px;background:#fff;border:1px solid var(--line);box-shadow:0 10px 24px rgba(15,31,70,.06)}.progress-line{height:10px;background:#e9eff8;border-radius:999px;overflow:hidden;margin-top:12px}.progress-fill{height:100%;background:linear-gradient(90deg,var(--red),var(--blue));border-radius:999px}.question-card{padding:26px;border-radius:28px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}.answer-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.answer-btn{border:0;border-radius:18px;padding:20px;font-size:22px;font-weight:900;color:#fff;cursor:pointer}.answer-yes{background:linear-gradient(90deg,var(--red),#8b5cf6)}.answer-no{background:linear-gradient(90deg,var(--blue),var(--blue2))}.admin-shell{display:grid;grid-template-columns:240px 1fr;min-height:100vh;background:#f8fbff}.sidebar{background:#fff;border-right:1px solid var(--line);padding:20px;position:sticky;top:0;height:100vh}.sidebar img{width:170px}.sidebar a{display:block;padding:12px 14px;border-radius:14px;margin:6px 0;color:#334155}.sidebar a.active,.sidebar a:hover{background:#eef6ff;color:var(--blue);font-weight:800}.admin-main{padding:24px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--line);border-radius:18px}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:12px;border-bottom:1px solid #e2e8f0;text-align:left;font-size:14px}.table th{background:#f8fafc;color:#334155}.alert{border-radius:16px;padding:12px 14px;margin:12px 0}.alert.ok{background:#dcfce7;color:#15803d}.alert.err{background:#fee2e2;color:#b91c1c}@media(max-width:760px){.admin-shell{display:block}.sidebar{position:relative;height:auto}.stats,.grid3{grid-template-columns:1fr}.wide-action{display:block}.brand h1{font-size:28px}.card-title{font-size:23px}.phone-page{padding-left:14px;padding-right:14px}.doc-card{grid-template-columns:52px 1fr}.answer-row{grid-template-columns:1fr}}@media(min-width:900px){.phone-page{max-width:600px}.bottom-nav{max-width:600px}}

/* ================= MMPI RAPHA WEB + PWA MODE ================= */
html,body{min-height:100%;-webkit-text-size-adjust:100%;touch-action:manipulation}.web-page{min-height:100vh;padding:28px;background:linear-gradient(135deg,#fff 0%,#f5fbff 48%,#eef6ff 100%)}.web-container{max-width:1180px;margin:0 auto}.web-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.web-header img{width:220px}.web-hero{display:grid;grid-template-columns:1.1fr .9fr;gap:22px;align-items:stretch}.web-panel{background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:30px;box-shadow:var(--shadow);padding:28px}.web-panel h1{font-size:42px;line-height:1.05;margin:0 0 12px}.web-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}.web-badge-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.web-preview-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.web-preview-card{border:1px solid var(--line);border-radius:22px;background:#fff;padding:18px;min-height:130px}.web-preview-card b{display:block;font-size:34px;margin-bottom:4px}.pwa-install-hint{display:none;border:1px solid #bfdbfe;background:#eff7ff;border-radius:18px;padding:12px 14px;margin:12px 0;color:#0f1f46}.pwa-install-hint.show{display:flex;align-items:center;gap:12px}.mobile-only{display:none}.desktop-only{display:block}.screen-fit-note{font-size:12px;color:var(--muted);text-align:center;margin-top:8px}
@media(max-width:760px){.desktop-only{display:none}.mobile-only{display:block}body.app-pwa-mobile{min-height:100dvh;overflow-x:hidden;overflow-y:auto;background:#f7fbff}.app-pwa-mobile .phone-page{min-height:100dvh;overflow:visible;display:block;padding:calc(8px + env(safe-area-inset-top)) 12px calc(86px + env(safe-area-inset-bottom));}.app-pwa-mobile .phone-page>.brand{flex:0 0 auto;margin:0 0 8px}.app-pwa-mobile .brand img{max-width:145px;width:44%}.app-pwa-mobile .brand h1{font-size:22px;margin:6px 0 2px}.app-pwa-mobile .brand p,.app-pwa-mobile .sub{font-size:12px}.app-pwa-mobile .card{padding:14px;border-radius:20px}.app-pwa-mobile .card-title{font-size:19px;gap:8px}.app-pwa-mobile .icon-badge{width:40px;height:40px;border-radius:14px}.app-pwa-mobile .field{margin:8px 0}.app-pwa-mobile .field label{margin-bottom:5px;font-size:13px}.app-pwa-mobile .input-wrap{padding:9px 10px;border-radius:13px}.app-pwa-mobile .input-wrap input{font-size:15px}.app-pwa-mobile .btn{min-height:42px;padding:10px 12px;border-radius:13px;font-size:14px}.app-pwa-mobile .link-row{margin:7px 0 10px}.app-pwa-mobile .help{font-size:11px}.app-pwa-mobile .contact-card{display:none}.app-pwa-mobile .info-strip{padding:9px;border-radius:14px;margin-top:8px}.app-pwa-mobile .pill{font-size:11px;padding:6px 9px}.app-pwa-mobile .circle{width:34px;height:34px;flex-basis:34px;font-size:12px}.app-pwa-mobile .topbar{margin:0 0 8px;flex:0 0 auto}.app-pwa-mobile .logo-small img{width:112px}.app-pwa-mobile h1{font-size:22px;margin:6px 0 2px}.app-pwa-mobile h2{font-size:17px}.app-pwa-mobile .stats{grid-template-columns:repeat(3,1fr);gap:6px;flex:0 0 auto;margin:8px 0!important}.app-pwa-mobile .stat{padding:8px;border-radius:15px}.app-pwa-mobile .stat b{font-size:19px}.app-pwa-mobile .stat span:last-child{font-size:11px}.app-pwa-mobile .grid3{grid-template-columns:repeat(3,1fr);gap:6px;margin:8px 0!important}.app-pwa-mobile .tile{padding:9px;border-radius:16px;min-height:auto}.app-pwa-mobile .tile h3{font-size:12px;margin:5px 0 2px}.app-pwa-mobile .tile p{display:none}.app-pwa-mobile .wide-action{padding:12px;display:flex}.app-pwa-mobile .doc-list{overflow:auto;min-height:0;flex:1 1 auto;padding-bottom:4px;-webkit-overflow-scrolling:touch}.app-pwa-mobile .doc-card{grid-template-columns:44px 1fr;padding:9px;border-radius:15px}.app-pwa-mobile .doc-icon{width:40px;height:50px;border-radius:10px;font-size:11px}.app-pwa-mobile .doc-title{font-size:14px}.app-pwa-mobile .doc-meta{font-size:11px}.app-pwa-mobile .bottom-nav{height:64px;padding:6px 8px calc(8px + env(safe-area-inset-bottom));}.app-pwa-mobile .progress-card{padding:11px;border-radius:16px;flex:0 0 auto}.app-pwa-mobile .question-card{padding:16px;border-radius:20px;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;justify-content:center}.app-pwa-mobile #qText{font-size:20px;line-height:1.32;margin:12px 0}.app-pwa-mobile .answer-row{grid-template-columns:1fr 1fr;gap:8px}.app-pwa-mobile .answer-btn{padding:14px;font-size:18px;border-radius:15px}.app-pwa-mobile .admin-shell{display:flex;flex-direction:column;height:100dvh;overflow:hidden}.app-pwa-mobile .sidebar{height:auto;position:static;display:flex;align-items:center;overflow-x:auto;gap:6px;padding:8px;border-right:0;border-bottom:1px solid var(--line);white-space:nowrap}.app-pwa-mobile .sidebar img{width:112px}.app-pwa-mobile .sidebar h2{display:none}.app-pwa-mobile .sidebar a{margin:0;padding:8px 10px;font-size:12px}.app-pwa-mobile .admin-main{flex:1 1 auto;min-height:0;overflow:auto;padding:12px;-webkit-overflow-scrolling:touch}.app-pwa-mobile .table th,.app-pwa-mobile .table td{padding:8px;font-size:12px}.web-page{padding:14px}.web-header{display:block;text-align:center}.web-header img{width:170px}.web-hero{grid-template-columns:1fr}.web-panel{padding:18px;border-radius:22px}.web-panel h1{font-size:28px}.web-actions{grid-template-columns:1fr}.web-preview-grid{grid-template-columns:1fr 1fr;gap:8px}.web-preview-card{padding:12px;min-height:92px}.web-preview-card b{font-size:24px}}

/* ================= V4 ADMIN PWA COLORFUL + PRODUCTION POLISH ================= */
.rapha-toast{position:fixed;left:50%;bottom:82px;transform:translate(-50%,20px);z-index:9999;max-width:92%;padding:12px 16px;border-radius:16px;box-shadow:0 16px 44px rgba(15,31,70,.22);font-weight:800;opacity:0;transition:.22s ease}.rapha-toast.show{opacity:1;transform:translate(-50%,0)}.rapha-toast.ok{background:#dcfce7;color:#166534;border:1px solid #86efac}.rapha-toast.err{background:#fee2e2;color:#991b1b;border:1px solid #fecaca}
.admin-pwa-login{min-height:100vh;background:radial-gradient(circle at 10% 0%,rgba(239,35,60,.17),transparent 32%),radial-gradient(circle at 95% 20%,rgba(11,99,216,.20),transparent 38%),linear-gradient(135deg,#fff 0%,#f7fbff 55%,#edf6ff 100%)}
.admin-pwa-login .phone-page{max-width:560px}.admin-secure-badge{position:absolute;right:18px;top:18px;background:#fff;border:1px solid #bfdbfe;border-radius:16px;padding:9px 12px;box-shadow:0 10px 28px rgba(15,31,70,.10);display:flex;align-items:center;gap:8px;font-weight:900;color:#0b63d8;font-size:13px}.admin-login-card{position:relative;margin-top:6px}.admin-lock-float{position:absolute;left:50%;top:-34px;transform:translateX(-50%);width:68px;height:68px;border-radius:50%;background:#fff;box-shadow:0 14px 35px rgba(15,31,70,.16);display:flex;align-items:center;justify-content:center}.admin-lock-inner{width:48px;height:48px;border-radius:18px;background:linear-gradient(135deg,#ef233c,#0b63d8);display:flex;align-items:center;justify-content:center;color:#fff;font-size:24px}.admin-benefit-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.admin-benefit{background:#fff;border:1px solid var(--line);border-radius:20px;padding:14px;display:flex;gap:12px;align-items:center;box-shadow:0 10px 28px rgba(15,31,70,.06)}.admin-benefit b{display:block;font-size:14px}.admin-benefit span:last-child{font-size:12px;color:var(--muted)}.admin-install-hint{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff;border:1px solid #bfdbfe;border-radius:18px;padding:13px 14px;margin-top:15px;box-shadow:0 10px 28px rgba(15,31,70,.06)}.admin-install-hint .app-icon{width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,#ef233c,#0b63d8);display:flex;align-items:center;justify-content:center;overflow:hidden}.admin-install-hint .app-icon img{width:44px}.admin-mini-alert{display:flex;gap:12px;align-items:flex-start;background:#eff7ff;border:1px solid #bfdbfe;border-radius:18px;padding:12px;margin-top:14px}.admin-mini-alert b{color:#0b2a5b}.admin-gradient-title{background:linear-gradient(90deg,#ef233c,#0b63d8);-webkit-background-clip:text;background-clip:text;color:transparent}.web-admin-pwa-card{border:1px solid #bfdbfe;border-radius:20px;padding:16px;background:linear-gradient(135deg,#fff,#eef6ff);display:flex;gap:14px;align-items:center;margin-top:14px}.pdf-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.btn-danger-soft{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}.admin-main .btn{white-space:nowrap}
@media(max-width:760px){.admin-secure-badge{right:12px;top:8px;font-size:10px;padding:6px 8px}.admin-pwa-login .brand{padding-top:22px}.admin-pwa-login .brand img{max-width:178px;width:52%}.admin-pwa-login .brand h1{font-size:24px}.admin-pwa-login .admin-login-card{padding-top:38px}.admin-benefit-grid{grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}.admin-benefit{padding:9px;border-radius:15px;gap:8px}.admin-benefit .circle{width:34px;height:34px;flex-basis:34px}.admin-benefit b{font-size:11px}.admin-benefit span:last-child{display:none}.admin-mini-alert{padding:9px;margin-top:9px;border-radius:14px}.admin-install-hint{padding:9px;margin-top:9px;border-radius:14px}.admin-install-hint .app-icon{width:42px;height:42px}.admin-install-hint .app-icon img{width:34px}.admin-install-hint .btn{padding:9px 10px;min-height:36px;font-size:12px}.pdf-toolbar{gap:6px}.pdf-toolbar .btn{font-size:12px;min-height:38px;padding:8px 10px}}

@media(max-width:760px){body{overflow-x:hidden}.admin-main{padding:14px 12px 86px}.sidebar{border-right:0;border-bottom:1px solid var(--line);height:auto;position:relative}.sidebar img{width:132px}.sidebar a{display:inline-block;margin:4px 2px;padding:9px 10px}.table-wrap{max-height:62vh;overflow:auto}.admin-shell,.phone-page{overscroll-behavior-y:contain}}/* admin-mobile-scroll-safe */

/* ================= V6 CLEAN SOFT BLUE PWA FIX ================= */
:root{--v6-bg:#eef8ff;--v6-bg2:#f8fcff;--v6-blue:#2563eb;--v6-blue2:#1d4ed8;--v6-soft:#eaf5ff;--v6-line:#d7e7fb;--v6-text:#10264f;--v6-muted:#66758f;--v6-green:#16a34a;--v6-red:#e11d48;--v6-shadow:0 16px 40px rgba(37,99,235,.10)}
body.rapha-clean-blue,body.app-pwa-mobile.rapha-clean-blue{background:linear-gradient(180deg,#eaf7ff 0%,#f8fcff 48%,#ffffff 100%);color:var(--v6-text)}
.rapha-clean-blue .phone-page:before,.rapha-clean-blue .phone-page:after{display:none}.rapha-clean-blue .phone-page{max-width:500px;background:linear-gradient(180deg,rgba(234,247,255,.95),rgba(255,255,255,.98));}
.rapha-clean-blue .card,.rapha-clean-blue .progress-card,.rapha-clean-blue .question-card{border-color:var(--v6-line);box-shadow:var(--v6-shadow);background:rgba(255,255,255,.94)}
.clean-topbar{position:sticky;top:0;z-index:20;margin:-8px -6px 14px;padding:8px 6px;background:linear-gradient(180deg,rgba(238,248,255,.98),rgba(238,248,255,.85));backdrop-filter:blur(12px)}.clean-topbar .back{border-radius:16px;background:#fff;box-shadow:0 8px 20px rgba(37,99,235,.08)}.clean-topbar .logo-small img{width:138px}.progress-clean{padding:16px 18px;border-radius:22px}.progress-head{display:flex;justify-content:space-between;align-items:center;font-size:15px}.progress-mini{margin-top:9px;color:var(--v6-muted);font-size:13px}.rapha-clean-blue .progress-fill{background:linear-gradient(90deg,#60a5fa,#2563eb)}.identity-clean{display:flex;align-items:center;gap:14px;margin:14px 0;padding:14px 16px;border-radius:22px}.question-clean{padding:20px;border-radius:28px}.question-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px}.question-clean h2{font-size:23px;line-height:1.45;margin:22px 0 14px;color:#0f2348}.current-answer{border-radius:16px;padding:11px 14px;margin:0 0 14px;font-weight:800;border:1px solid var(--v6-line);background:#f8fbff;color:var(--v6-muted)}.current-answer.yes{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.current-answer.no{background:#f8fbff;color:#334155;border-color:#cbd5e1}.current-answer.flagged{box-shadow:inset 4px 0 0 #f59e0b}.answer-row-clean{gap:12px}.answer-row-clean .answer-btn{position:relative;display:flex;align-items:center;justify-content:center;gap:8px;border:1.5px solid var(--v6-line);background:#fff;color:#17345f;box-shadow:0 12px 26px rgba(37,99,235,.08);transition:.16s ease;min-height:66px}.answer-row-clean .answer-btn small{font-size:16px}.answer-row-clean .answer-btn.selected{background:#2563eb;color:#fff;border-color:#2563eb;transform:translateY(-1px);box-shadow:0 16px 30px rgba(37,99,235,.20)}.answer-row-clean .answer-btn.selected:after{content:'✓';position:absolute;right:16px;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.20);display:flex;align-items:center;justify-content:center}.answer-row-clean .answer-yes,.answer-row-clean .answer-no{background:#fff}.mark-clean{width:100%;margin-top:12px;background:#fff}.mark-clean.selected{border-color:#f59e0b;color:#92400e;background:#fffbeb}.nav-actions-clean{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.quick-clean{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;padding:12px}.btn-light-blue{background:#eaf5ff;color:#1d4ed8;border:1px solid #bfdbfe}.btn-small{min-height:38px;padding:9px 12px;font-size:13px}.answer-map-card{margin:14px 0;padding:14px;border-radius:22px;background:#fff;border:1px solid var(--v6-line);box-shadow:var(--v6-shadow)}.map-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.map-legend{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--v6-muted);margin-bottom:10px}.dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#e2e8f0}.dot.yes{background:#2563eb}.dot.no{background:#64748b}.dot.flag{background:#f59e0b}.answer-map-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:6px;max-height:260px;overflow:auto;padding:2px;-webkit-overflow-scrolling:touch}.answer-chip{border:1px solid #dbeafe;background:#fff;border-radius:10px;min-height:42px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;color:#475569;font-size:10px;cursor:pointer}.answer-chip b{font-size:11px}.answer-chip span{font-size:10px;font-weight:800}.answer-chip.yes{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.answer-chip.no{border-color:#cbd5e1;background:#f8fafc;color:#334155}.answer-chip.empty{opacity:.7}.answer-chip.flag{box-shadow:inset 0 -3px 0 #f59e0b}.answer-chip.current{outline:2px solid #2563eb;outline-offset:1px}.clean-bottom-nav{height:72px;border-radius:22px 22px 0 0;border:1px solid var(--v6-line);border-bottom:0;background:rgba(255,255,255,.96);backdrop-filter:blur(14px)}.clean-bottom-nav a{font-size:12px;line-height:1.25;color:#64748b}.clean-bottom-nav a.active{background:#eaf5ff;color:#2563eb}
@media(max-width:760px){.app-pwa-mobile .clean-topbar .logo-small img,.clean-topbar .logo-small img{width:124px}.app-pwa-mobile .mmpi-fill-page{padding:calc(8px + env(safe-area-inset-top)) 12px calc(86px + env(safe-area-inset-bottom));overflow:visible}.app-pwa-mobile .question-clean h2,.question-clean h2{font-size:21px;line-height:1.42}.app-pwa-mobile .answer-row-clean{grid-template-columns:1fr 1fr}.app-pwa-mobile .answer-row-clean .answer-btn{min-height:62px;font-size:18px;padding:14px}.app-pwa-mobile .answer-map-grid,.answer-map-grid{grid-template-columns:repeat(7,1fr);max-height:230px}.quick-clean{grid-template-columns:1fr 1fr 1fr}.quick-clean .btn{font-size:12px;padding:9px 8px}.clean-bottom-nav{height:70px}.clean-bottom-nav a{font-size:11px}.progress-clean{padding:13px 15px}.identity-clean{padding:12px 14px}.question-clean{padding:17px;border-radius:24px}.nav-actions-clean{gap:10px}.nav-actions-clean .btn{font-size:14px;padding:11px 10px}}


/* ================= V6.1 CLEAN SOFT BLUE PWA FIX ================= */
:root{--soft-bg:#eef8ff;--soft-bg-2:#f8fcff;--ink:#10254b;--ink-2:#52667d;--primary:#1d6fe9;--primary-2:#155ac4;--soft-line:#d8e9fb;--soft-card:#ffffff;--soft-shadow:0 12px 30px rgba(31,84,142,.10)}
body.theme-soft-blue, .theme-soft-blue{background:linear-gradient(180deg,#edf8ff 0%,#f8fcff 46%,#ffffff 100%);color:var(--ink)}
.theme-soft-blue .phone-page:before,.theme-soft-blue .phone-page:after{display:none}.pwa-clean-page{max-width:520px;background:radial-gradient(circle at 0% 0%,rgba(203,234,255,.95),transparent 36%),radial-gradient(circle at 105% 4%,rgba(226,242,255,.95),transparent 40%);overflow:visible}.clean-topbar{margin:2px 0 14px}.theme-soft-blue .logo-small img{width:132px}.theme-soft-blue .back{width:44px;height:44px;border-radius:16px;border-color:#d8e9fb;box-shadow:0 6px 16px rgba(31,84,142,.08);font-size:28px}.theme-soft-blue .card,.theme-soft-blue .progress-card,.theme-soft-blue .question-card{border-color:var(--soft-line);box-shadow:var(--soft-shadow);background:rgba(255,255,255,.96)}.clean-progress{margin-top:6px}.progress-title,.progress-sub,.overview-top,.question-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.progress-sub{margin-top:10px;color:var(--ink-2);font-size:12px}.participant-mini{display:flex;align-items:center;gap:12px;margin:12px 0;padding:14px 16px}.clean-question{padding:22px}.clean-question #qText{font-size:24px;line-height:1.38;margin:20px 0 20px;color:var(--ink)}.answer-chip{border:1px solid #dbeafe;background:#f8fbff;color:#64748b;border-radius:999px;padding:7px 10px;font-weight:800;font-size:12px}.answer-chip.yes{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}.answer-chip.no{border-color:#dbeafe;background:#eff6ff;color:#155ac4}.answer-chip.empty{border-color:#e2e8f0;background:#f8fafc;color:#64748b}.clean-answer-row{gap:12px}.theme-soft-blue .answer-btn{display:flex;align-items:center;justify-content:center;gap:12px;background:#fff;color:var(--ink);border:1.5px solid var(--soft-line);box-shadow:0 8px 18px rgba(31,84,142,.06);transition:.16s ease}.theme-soft-blue .answer-btn .answer-icon{width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#eaf4ff;color:var(--primary);font-weight:900}.theme-soft-blue .answer-yes.selected{border-color:#16a34a;background:#f0fdf4;color:#166534;box-shadow:0 12px 26px rgba(22,163,74,.12)}.theme-soft-blue .answer-no.selected{border-color:#2563eb;background:#eff6ff;color:#1d4ed8;box-shadow:0 12px 26px rgba(37,99,235,.12)}.theme-soft-blue .answer-yes.selected .answer-icon{background:#16a34a;color:#fff}.theme-soft-blue .answer-no.selected .answer-icon{background:#2563eb;color:#fff}.question-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.question-tools .active{background:#fff7ed;border-color:#fdba74;color:#c2410c}.nav-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.answer-overview{margin-bottom:12px}.overview-top{margin-bottom:10px}.btn.mini{min-height:38px;padding:8px 12px;font-size:13px}.answer-mini-map{display:flex;gap:8px;overflow-x:auto;padding:4px 2px 10px;-webkit-overflow-scrolling:touch}.map-dot{flex:0 0 auto;width:46px;height:50px;border-radius:14px;border:1px solid #dbeafe;background:#fff;color:#64748b;font-weight:900;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;position:relative}.map-dot small{font-size:10px;color:#94a3b8}.map-dot.yes{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.map-dot.no{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.map-dot.active{outline:3px solid rgba(29,111,233,.18);border-color:#1d6fe9}.map-dot.marked:after{content:'★';position:absolute;right:-3px;top:-7px;color:#f59e0b;font-size:13px}.map-dot.muted{width:42px}.map-ellipsis{align-self:center;color:#94a3b8}.overview-counts{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;border-top:1px solid #edf2f7;padding-top:10px;color:var(--ink-2);font-size:12px}.overview-counts b{display:block;color:var(--ink);font-size:18px}.clean-bottom-nav{grid-template-columns:repeat(4,1fr);background:rgba(255,255,255,.98);border-top:1px solid #dbeafe}.clean-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;line-height:1.1;font-size:11px;min-height:54px}.clean-bottom-nav .nav-ico{font-size:21px;line-height:1;display:block;color:inherit}.clean-bottom-nav a.active{background:#eaf4ff;color:#155ac4}.theme-soft-blue .btn-primary,.theme-soft-blue .btn-blue{background:linear-gradient(135deg,#2f86ff,#155ac4);box-shadow:0 10px 22px rgba(29,111,233,.18)}.theme-soft-blue .btn-outline{background:#fff;border-color:#bdd7f6;color:#155ac4}.theme-soft-blue .progress-fill{background:linear-gradient(90deg,#68b9ff,#1d6fe9)}
@media(max-width:760px){.pwa-clean-page{padding:12px 12px calc(84px + env(safe-area-inset-bottom));}.clean-question #qText{font-size:21px}.clean-answer-row{grid-template-columns:1fr 1fr}.theme-soft-blue .answer-btn{padding:16px 10px;font-size:18px;border-radius:18px}.question-tools{grid-template-columns:1fr 1fr}.answer-mini-map{margin-left:-2px;margin-right:-2px}.map-dot{width:42px;height:46px;border-radius:13px}.overview-counts b{font-size:16px}.theme-soft-blue .card{border-radius:20px}.theme-soft-blue .progress-card,.theme-soft-blue .question-card{border-radius:22px}.clean-bottom-nav{padding-bottom:calc(8px + env(safe-area-inset-bottom))}}

/* ================= V7 DEEP FIX — SOFT BLUE, CLEAN PWA ALL SCREENS ================= */
:root{--v7-bg:#edf8ff;--v7-bg2:#f8fcff;--v7-card:#ffffff;--v7-ink:#102447;--v7-muted:#64748b;--v7-blue:#1f6feb;--v7-blue2:#1557c0;--v7-line:#d9eafa;--v7-shadow:0 10px 28px rgba(31,84,142,.10);--v7-radius:22px}
body{background:linear-gradient(180deg,var(--v7-bg) 0%,var(--v7-bg2) 44%,#fff 100%);color:var(--v7-ink)}
.phone-page{overflow:visible;background:radial-gradient(circle at 0 0,rgba(199,232,255,.75),transparent 34%),radial-gradient(circle at 106% 0,rgba(222,241,255,.85),transparent 34%)}
.phone-page:before,.phone-page:after{display:none!important}.brand img{width:168px;max-width:52%}.brand h1{font-size:30px;color:var(--v7-ink)}.brand p,.sub,.help{color:var(--v7-muted)}
.card,.progress-card,.question-card,.stat,.tile,.doc-card,.info-strip,.contact-card,.table-wrap{background:rgba(255,255,255,.97);border:1px solid var(--v7-line);box-shadow:var(--v7-shadow);border-radius:var(--v7-radius)}
.card{padding:22px}.card.soft{box-shadow:var(--v7-shadow)}.circle,.icon-badge{background:#eaf5ff;color:var(--v7-blue);width:42px;height:42px;min-width:42px;flex-basis:42px;border-radius:16px;font-size:18px}.logo-small img{width:132px;height:auto}.back{border-color:var(--v7-line);box-shadow:0 6px 16px rgba(31,84,142,.08);font-weight:800}
.input-wrap{border-color:#cfe4f8;background:#fff;border-radius:16px}.btn{border-radius:16px;min-height:48px}.btn-primary,.btn-blue{background:linear-gradient(135deg,#2f86ff,var(--v7-blue2));box-shadow:0 10px 22px rgba(31,111,235,.18);color:#fff}.btn-outline{background:#fff;border:1.4px solid #bdd7f6;color:var(--v7-blue2)}.btn:hover{filter:brightness(.99)}
.pill{border-radius:999px}.pill.blue{background:#eef7ff;border-color:#bfdbfe;color:#1557c0}.pill.green{background:#ecfdf5;color:#047857;border:1px solid #bbf7d0}.pill.orange{background:#fff7ed;color:#c2410c;border:1px solid #fed7aa}.pill.red{background:#fff1f2;color:#be123c;border:1px solid #fecdd3}
.progress-fill{background:linear-gradient(90deg,#7cc7ff,var(--v7-blue))}.bottom-nav{height:72px;border-radius:22px 22px 0 0;border:1px solid var(--v7-line);border-bottom:0;background:rgba(255,255,255,.98);backdrop-filter:blur(14px);grid-template-columns:repeat(4,1fr)}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;line-height:1.1;font-size:11px;min-height:54px;color:#64748b}.bottom-nav a.active{background:#eaf5ff;color:var(--v7-blue2)}.bottom-nav .nav-ico{font-size:21px;line-height:1;display:block;color:inherit}
.stats{gap:10px}.stat{padding:14px}.stat b{color:var(--v7-ink)}.grid3{gap:12px}.tile{padding:15px}.tile h3{color:var(--v7-ink)}.doc-icon{border-color:#dbeafe;background:#f8fbff;color:var(--v7-blue);font-size:13px}.doc-title{color:var(--v7-ink)}
.admin-shell{background:linear-gradient(180deg,#edf8ff,#fff)}.sidebar{border-color:var(--v7-line);box-shadow:8px 0 26px rgba(31,84,142,.06)}.sidebar a.active,.sidebar a:hover{background:#eaf5ff;color:var(--v7-blue2)}.admin-main h1{color:var(--v7-ink)}
/* selected answers: visible but not noisy */
.answer-btn{border:1.5px solid var(--v7-line)!important;background:#fff!important;color:var(--v7-ink)!important;box-shadow:0 8px 18px rgba(31,84,142,.06);position:relative}.answer-btn.selected{transform:translateY(-1px);box-shadow:0 14px 26px rgba(31,111,235,.14)}.answer-yes.selected{background:#f0fdf4!important;border-color:#22c55e!important;color:#166534!important}.answer-no.selected{background:#eff6ff!important;border-color:#2563eb!important;color:#1557c0!important}.answer-btn.selected:after{content:'✓';position:absolute;right:12px;top:50%;transform:translateY(-50%);width:26px;height:26px;border-radius:999px;background:#fff;display:flex;align-items:center;justify-content:center;color:var(--v7-blue);box-shadow:0 4px 12px rgba(31,84,142,.12)}
.answer-chip{white-space:nowrap}.answer-chip.yes{background:#f0fdf4!important;color:#166534!important;border-color:#bbf7d0!important}.answer-chip.no{background:#eff6ff!important;color:#1557c0!important;border-color:#bfdbfe!important}.answer-chip.empty{background:#f8fafc!important;color:#64748b!important;border-color:#e2e8f0!important}.question-tools .active,.mark-clean.selected{background:#fffbeb!important;border-color:#fdba74!important;color:#92400e!important}
@media(max-width:760px){.phone-page{max-width:520px;padding:12px 12px calc(84px + env(safe-area-inset-bottom));}.brand{margin:6px 0 14px}.brand img{width:145px;max-width:48%}.brand h1{font-size:25px;margin:8px 0 2px}.card{padding:16px;border-radius:20px}.card-title{font-size:22px}.input-wrap{padding:11px 12px}.btn{min-height:44px;font-size:14px;padding:10px 12px}.stats{grid-template-columns:repeat(3,1fr)}.stat{padding:10px;border-radius:18px}.stat b{font-size:22px}.stat span:last-child{font-size:11px}.grid3{grid-template-columns:repeat(3,1fr);gap:8px}.tile{padding:10px;min-height:auto}.tile h3{font-size:12px}.tile p{display:none}.doc-card{grid-template-columns:48px 1fr;padding:11px;border-radius:18px}.doc-icon{width:44px;height:54px}.doc-title{font-size:14px}.doc-meta{font-size:12px}.logo-small img{width:118px}.topbar{margin:2px 0 12px}.question-card{padding:17px;border-radius:22px}.question-card h2,#qText{font-size:21px!important;line-height:1.42}.answer-row{grid-template-columns:1fr 1fr;gap:10px}.answer-btn{min-height:62px;padding:14px 10px;font-size:18px;border-radius:18px}.admin-shell{display:flex;flex-direction:column;min-height:100dvh}.sidebar{height:auto;position:static;display:flex;align-items:center;overflow-x:auto;gap:6px;padding:8px;border-right:0;border-bottom:1px solid var(--v7-line);white-space:nowrap}.sidebar img{width:112px}.sidebar h2{display:none}.sidebar a{display:inline-flex;align-items:center;margin:0;padding:8px 10px;font-size:12px}.admin-main{padding:14px 12px 86px}.table-wrap{max-height:64vh;overflow:auto}.table th,.table td{padding:9px;font-size:12px}.bottom-nav{padding-bottom:calc(8px + env(safe-area-inset-bottom))}}

/* ================= V8 CLEAN SOFT BLUE REFINEMENT ================= */
body.theme-soft-blue, body.rapha-clean-blue, body{background:linear-gradient(180deg,#eaf7ff 0%,#f6fbff 42%,#ffffff 100%)!important;}
.phone-page{max-width:520px;margin:0 auto;min-height:100dvh;}
.clean-topbar,.topbar{align-items:center;gap:10px;}
.logo-small img{width:124px;object-fit:contain;}
.circle,.icon-badge{display:inline-flex;align-items:center;justify-content:center;line-height:1;font-size:17px;}
.bottom-nav.clean-bottom-nav,.bottom-nav{height:auto;min-height:68px;box-shadow:0 -10px 28px rgba(31,84,142,.08);}
.bottom-nav a .nav-ico{font-size:19px;width:24px;height:24px;display:flex;align-items:center;justify-content:center;margin:0 auto;}
.bottom-nav a span:last-child{font-size:11px;font-weight:700;letter-spacing:.01em;}
.question-card.clean-question{border:1px solid #cfe6fa;background:rgba(255,255,255,.98);}
.question-head{display:flex;align-items:center;justify-content:space-between;gap:8px;}
.answer-chip{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:6px 12px;font-size:12px;}
.answer-mini-map::-webkit-scrollbar{height:4px}.answer-mini-map::-webkit-scrollbar-thumb{background:#cfe6fa;border-radius:999px}
.map-dot{font-size:12px}.map-dot small{font-weight:800}
.answer-btn{letter-spacing:.01em}.answer-btn.selected{outline:0!important}
.answer-btn.selected:after{font-size:15px;font-weight:900}
.doc-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}.doc-actions .btn{width:100%;text-align:center}
@media(max-width:760px){
  .brand img{width:128px;max-width:46%;}.brand h1{font-size:24px}.brand p{font-size:13px;}
  .progress-card{padding:15px}.progress-title{font-size:14px}.progress-sub{font-size:11px;}
  .participant-mini{display:flex!important;gap:12px;align-items:center;}
  .question-head{margin-bottom:10px}.answer-chip{max-width:48%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .clean-question #qText{font-size:20px!important;line-height:1.38!important;margin:16px 0!important;}
  .answer-row.clean-answer-row{grid-template-columns:1fr;gap:10px;}
  .answer-row.clean-answer-row .answer-btn{min-height:56px;justify-content:flex-start;padding-left:18px;padding-right:48px;}
  .question-tools{grid-template-columns:1fr 1fr;}
  .nav-row{grid-template-columns:1fr 1fr;}
  .overview-top{display:flex;justify-content:space-between;align-items:center;gap:8px;}
  .overview-top .help{display:none;}
  .doc-actions{grid-template-columns:1fr 1fr;}
}

/* ================= V9 STABLE SOFT UI FIX =================
   Tujuan:
   - Warna lebih soft dan clean.
   - Tidak ada ringkasan jawaban di halaman pengisian.
   - Saat kembali ke soal sebelumnya, jawaban Ya/Tidak tetap terlihat dari chip dan tombol selected.
   - Posisi tombol Ya/Tidak serta Berikutnya/Sebelumnya dibuat stabil agar tidak naik-turun. */
:root{
  --v9-bg:#eef8ff;
  --v9-bg2:#f8fcff;
  --v9-card:#ffffff;
  --v9-ink:#102447;
  --v9-muted:#6b7b94;
  --v9-blue:#2d7fe8;
  --v9-blue-soft:#eaf5ff;
  --v9-line:#d8eafb;
  --v9-shadow:0 12px 30px rgba(31,84,142,.08);
}
body.pwa-v9-soft,
body.theme-soft-blue{
  background:linear-gradient(180deg,var(--v9-bg) 0%,var(--v9-bg2) 48%,#fff 100%)!important;
  color:var(--v9-ink);
}
.pwa-v9-soft .phone-page,
.mmpi-stable-page{
  max-width:520px;
  margin:0 auto;
  min-height:100dvh;
  background:radial-gradient(circle at 0 0,rgba(206,235,255,.70),transparent 34%),radial-gradient(circle at 105% 0,rgba(229,244,255,.78),transparent 38%);
  padding-bottom:calc(92px + env(safe-area-inset-bottom));
}
.pwa-v9-soft .card,
.pwa-v9-soft .progress-card,
.pwa-v9-soft .question-card{
  background:rgba(255,255,255,.985)!important;
  border-color:var(--v9-line)!important;
  box-shadow:var(--v9-shadow)!important;
}
.pwa-v9-soft .topbar.clean-topbar{
  position:sticky;
  top:0;
  z-index:30;
  background:linear-gradient(180deg,rgba(238,248,255,.98),rgba(238,248,255,.90));
  backdrop-filter:blur(14px);
  margin:0 0 10px;
  padding:8px 0;
}
.pwa-v9-soft .logo-small img{width:122px!important;height:auto;object-fit:contain;}
.pwa-v9-soft .back{width:44px;height:44px;border-radius:16px;background:#fff;border:1px solid var(--v9-line);}
.pwa-v9-soft .pill{min-height:30px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;white-space:nowrap;}
.pwa-v9-soft .mmpi-progress-stable{padding:14px 16px;border-radius:22px;margin-bottom:10px;}
.pwa-v9-soft .progress-title{font-size:14px;}
.pwa-v9-soft .progress-line{height:8px;background:#edf4fb;border-radius:999px;overflow:hidden;}
.pwa-v9-soft .progress-fill{background:linear-gradient(90deg,#9bd3ff,#4c96ea)!important;}
.pwa-v9-soft .progress-sub{font-size:11px;color:var(--v9-muted);}
.pwa-v9-soft .participant-mini{margin:10px 0;padding:12px 14px;border-radius:20px;}
.pwa-v9-soft .participant-mini .circle{width:40px;height:40px;min-width:40px;border-radius:15px;background:#eaf5ff;color:#2d7fe8;font-size:17px;}
.pwa-v9-soft .participant-mini b{font-size:14px;}
.pwa-v9-soft .participant-mini .help{font-size:12px;}

/* Tidak dipakai lagi, tetapi disembunyikan kalau masih ada cache/halaman lama. */
.pwa-v9-soft .answer-overview,
.pwa-v9-soft .answer-map-card,
.pwa-v9-soft .answer-mini-map,
.pwa-v9-soft .overview-counts{display:none!important;}

/* Stable question layout */
.pwa-v9-soft .stable-question{
  min-height:392px;
  border-radius:26px;
  padding:18px;
  display:grid;
  grid-template-rows:36px minmax(132px,150px) 74px 48px;
  gap:12px;
  overflow:hidden;
}
.pwa-v9-soft .stable-question .question-head{
  min-height:36px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:0;
}
.pwa-v9-soft .answer-chip{
  min-width:116px;
  min-height:30px;
  padding:6px 11px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  text-align:center;
}
.pwa-v9-soft .answer-chip.yes{background:#effaf4!important;border-color:#bdeccf!important;color:#18824a!important;}
.pwa-v9-soft .answer-chip.no{background:#eef6ff!important;border-color:#c6def8!important;color:#2468b7!important;}
.pwa-v9-soft .answer-chip.empty{background:#f8fbff!important;border-color:#e1edf8!important;color:#7a879a!important;}
.pwa-v9-soft .question-text-fixed{
  min-height:132px;
  max-height:150px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:auto;
  padding:2px 4px;
  -webkit-overflow-scrolling:touch;
}
.pwa-v9-soft .question-text-fixed h2,
.pwa-v9-soft .clean-question #qText{
  margin:0!important;
  width:100%;
  color:var(--v9-ink)!important;
  font-size:22px!important;
  line-height:1.38!important;
  text-align:center!important;
  font-weight:850;
}
.pwa-v9-soft .stable-answer-row{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:12px!important;
  align-items:center!important;
  justify-items:center!important;
  min-height:74px;
  margin:0!important;
}
.pwa-v9-soft .stable-answer-row .answer-btn{
  width:100%;
  min-height:64px!important;
  border-radius:18px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  padding:12px 44px 12px 16px!important;
  font-size:18px!important;
  font-weight:900;
  background:#fff!important;
  border:1.5px solid var(--v9-line)!important;
  color:var(--v9-ink)!important;
  transform:none!important;
  box-shadow:0 8px 18px rgba(31,84,142,.06)!important;
}
.pwa-v9-soft .stable-answer-row .answer-icon{
  width:30px;height:30px;min-width:30px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:#eef7ff;color:#2d7fe8;font-weight:900;
}
.pwa-v9-soft .stable-answer-row .answer-yes.selected{
  background:#effaf4!important;border-color:#7fdba0!important;color:#166534!important;
}
.pwa-v9-soft .stable-answer-row .answer-no.selected{
  background:#eef6ff!important;border-color:#8bc1f4!important;color:#1557a8!important;
}
.pwa-v9-soft .stable-answer-row .answer-yes.selected .answer-icon{background:#31ad62!important;color:#fff!important;}
.pwa-v9-soft .stable-answer-row .answer-no.selected .answer-icon{background:#2d7fe8!important;color:#fff!important;}
.pwa-v9-soft .stable-answer-row .answer-btn.selected:after{
  right:12px;top:50%;transform:translateY(-50%)!important;
  width:24px;height:24px;background:rgba(255,255,255,.85);color:#2d7fe8;
}
.pwa-v9-soft .question-tools{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  min-height:48px;
  margin:0!important;
}
.pwa-v9-soft .question-tools .btn{min-height:46px;border-radius:16px;font-size:13px;}
.pwa-v9-soft .question-tools .active{background:#fff7ed!important;border-color:#f9c778!important;color:#a86405!important;}

/* Stable prev/next: posisinya tetap, tidak ikut tinggi teks pertanyaan. */
.pwa-v9-soft .stable-nav-row{
  position:sticky;
  bottom:calc(72px + env(safe-area-inset-bottom));
  z-index:25;
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:12px!important;
  margin:12px 0 0!important;
  padding:8px 0 10px;
  background:linear-gradient(180deg,rgba(238,248,255,.35),rgba(238,248,255,.98));
  backdrop-filter:blur(10px);
  border-radius:18px;
}
.pwa-v9-soft .stable-nav-row .btn{
  width:100%;
  min-height:52px!important;
  border-radius:17px!important;
  font-size:15px;
  font-weight:900;
}
.pwa-v9-soft .btn-blue,
.pwa-v9-soft .btn-primary{background:linear-gradient(135deg,#61adff,#2d7fe8)!important;box-shadow:0 10px 22px rgba(45,127,232,.16)!important;}
.pwa-v9-soft .btn-outline{background:#fff!important;border-color:#c7def5!important;color:#2368b8!important;}
.pwa-v9-soft .bottom-nav.clean-bottom-nav,
.pwa-v9-soft .bottom-nav{
  min-height:70px;
  border-color:var(--v9-line);
  box-shadow:0 -10px 28px rgba(31,84,142,.07);
}
.pwa-v9-soft .bottom-nav a{font-size:11px;font-weight:800;gap:3px;}
.pwa-v9-soft .bottom-nav a .nav-ico{font-size:19px;width:24px;height:24px;}
.pwa-v9-soft .bottom-nav a.active{background:#eaf5ff;color:#2368b8;}
@media(max-width:760px){
  .pwa-v9-soft .phone-page,.mmpi-stable-page{padding:10px 12px calc(92px + env(safe-area-inset-bottom));}
  .pwa-v9-soft .mmpi-progress-stable{padding:13px 14px;margin-bottom:9px;}
  .pwa-v9-soft .participant-mini{padding:11px 13px;margin:9px 0;}
  .pwa-v9-soft .stable-question{
    min-height:378px;
    padding:16px;
    grid-template-rows:36px minmax(128px,146px) 70px 46px;
    gap:11px;
  }
  .pwa-v9-soft .question-text-fixed{min-height:128px;max-height:146px;}
  .pwa-v9-soft .question-text-fixed h2,
  .pwa-v9-soft .clean-question #qText{font-size:20px!important;line-height:1.36!important;}
  .pwa-v9-soft .stable-answer-row{grid-template-columns:1fr 1fr!important;gap:10px!important;min-height:70px;}
  .pwa-v9-soft .stable-answer-row .answer-btn{min-height:60px!important;font-size:17px!important;padding:12px 40px 12px 12px!important;}
  .pwa-v9-soft .stable-answer-row .answer-icon{width:28px;height:28px;min-width:28px;}
  .pwa-v9-soft .question-tools{min-height:46px;}
  .pwa-v9-soft .stable-nav-row{bottom:calc(70px + env(safe-area-inset-bottom));gap:10px!important;padding:7px 0 9px;}
  .pwa-v9-soft .stable-nav-row .btn{min-height:50px!important;font-size:14px;}
  .pwa-v9-soft .answer-chip{max-width:54%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
}
@media(max-width:380px){
  .pwa-v9-soft .participant-mini{display:none!important;}
  .pwa-v9-soft .stable-question{min-height:370px;}
  .pwa-v9-soft .question-text-fixed h2{font-size:19px!important;}
  .pwa-v9-soft .stable-answer-row .answer-btn{font-size:16px!important;}
}


/* ================= V10 UI BOTTOM TOOLS + COLLISION FIX =================
   - Tombol Tandai dan Belum dijawab dipindah ke area bawah, terpisah dari kartu soal.
   - Teks teknis/stability note disembunyikan apabila masih tersisa dari cache/versi lama.
   - Topbar dibuat benar-benar center.
   - Label "Pertanyaan 29 dari 566" dibuat anti-nabrak di layar kecil.
   - Posisi Ya/Tidak dan Sebelumnya/Berikutnya tetap stabil saat pindah soal. */
.pwa-v10-soft .layout-stabil,
.pwa-v10-soft .stability-note,
.pwa-v10-soft .stable-layout-note,
.pwa-v10-soft .layout-note,
.pwa-v10-soft [data-layout-note]{display:none!important;}

.pwa-v10-soft .topbar.clean-topbar{
  display:grid!important;
  grid-template-columns:88px minmax(0,1fr) 88px!important;
  align-items:center!important;
  min-height:56px;
  gap:0!important;
}
.pwa-v10-soft .topbar.clean-topbar .back{justify-self:start;display:flex;align-items:center;justify-content:center;}
.pwa-v10-soft .topbar.clean-topbar .logo-small{justify-self:center;display:flex;align-items:center;justify-content:center;min-width:0;}
.pwa-v10-soft .topbar.clean-topbar .logo-small img{display:block;margin:0 auto;width:118px!important;max-width:100%;}
.pwa-v10-soft .topbar.clean-topbar #saveStatus{justify-self:end;max-width:86px;overflow:hidden;text-overflow:ellipsis;}

.pwa-v10-soft .progress-title-v10{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  width:100%;
  min-width:0;
}
.pwa-v10-soft .progress-title-v10 .progress-question-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:14px;
  line-height:1.2;
}
.pwa-v10-soft .progress-title-v10 .progress-percent{
  justify-self:end;
  white-space:nowrap;
  font-size:14px;
  line-height:1.2;
  color:#2d7fe8;
}
.pwa-v10-soft .mmpi-progress-stable{overflow:hidden;}

.pwa-v10-soft .stable-question{
  min-height:330px!important;
  grid-template-rows:36px minmax(142px,164px) 78px!important;
  gap:14px!important;
}
.pwa-v10-soft .stable-question .question-head{overflow:hidden;}
.pwa-v10-soft .stable-question .question-head .pill.blue{
  flex:0 0 auto;
  min-width:68px;
  text-align:center;
}
.pwa-v10-soft .answer-chip{
  flex:0 1 auto;
  max-width:58%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.pwa-v10-soft .question-text-fixed{
  min-height:142px!important;
  max-height:164px!important;
  align-items:center!important;
}
.pwa-v10-soft .stable-answer-row{
  min-height:78px!important;
  align-self:center!important;
}
.pwa-v10-soft .stable-answer-row .answer-btn{
  min-height:64px!important;
  height:64px!important;
}
.pwa-v10-soft .stable-nav-row{
  position:relative!important;
  bottom:auto!important;
  z-index:1!important;
  margin:12px 0 8px!important;
  padding:0!important;
  background:transparent!important;
  backdrop-filter:none!important;
}
.pwa-v10-soft .stable-nav-row .btn{
  min-height:52px!important;
  height:52px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}
.pwa-v10-soft .bottom-tools-row{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px!important;
  margin:0 0 10px!important;
  padding:0!important;
  min-height:46px!important;
}
.pwa-v10-soft .bottom-tools-row .btn{
  min-height:46px!important;
  height:46px!important;
  border-radius:16px!important;
  font-size:13px!important;
  font-weight:850!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:0 8px 18px rgba(31,84,142,.05)!important;
}
.pwa-v10-soft .bottom-tools-row .active{
  background:#fff7ed!important;
  border-color:#f6c36f!important;
  color:#9a5b00!important;
}

@media(max-width:760px){
  .pwa-v10-soft .topbar.clean-topbar{grid-template-columns:64px minmax(0,1fr) 64px!important;min-height:52px;}
  .pwa-v10-soft .topbar.clean-topbar .logo-small img{width:108px!important;}
  .pwa-v10-soft .topbar.clean-topbar #saveStatus{max-width:64px;font-size:0!important;padding:0!important;width:42px;height:34px;}
  .pwa-v10-soft .topbar.clean-topbar #saveStatus::before{content:'✓';font-size:14px;}
  .pwa-v10-soft .progress-title-v10 .progress-question-label{font-size:13px;}
  .pwa-v10-soft .progress-title-v10 .progress-percent{font-size:13px;}
  .pwa-v10-soft .stable-question{
    min-height:324px!important;
    padding:15px!important;
    grid-template-rows:36px minmax(138px,158px) 76px!important;
    gap:13px!important;
  }
  .pwa-v10-soft .question-text-fixed{min-height:138px!important;max-height:158px!important;}
  .pwa-v10-soft .stable-answer-row{min-height:76px!important;}
  .pwa-v10-soft .stable-answer-row .answer-btn{height:62px!important;min-height:62px!important;}
  .pwa-v10-soft .stable-nav-row .btn{height:50px!important;min-height:50px!important;}
  .pwa-v10-soft .bottom-tools-row .btn{height:44px!important;min-height:44px!important;}
}
@media(max-width:380px){
  .pwa-v10-soft .topbar.clean-topbar{grid-template-columns:56px minmax(0,1fr) 56px!important;}
  .pwa-v10-soft .topbar.clean-topbar .logo-small img{width:100px!important;}
  .pwa-v10-soft .progress-title-v10{gap:6px!important;}
  .pwa-v10-soft .progress-title-v10 .progress-question-label{font-size:12.5px;}
  .pwa-v10-soft .progress-title-v10 .progress-percent{font-size:12.5px;}
  .pwa-v10-soft .answer-chip{max-width:50%;font-size:11px!important;min-width:96px!important;}
  .pwa-v10-soft .stable-question{min-height:314px!important;grid-template-rows:34px minmax(132px,150px) 72px!important;}
  .pwa-v10-soft .question-text-fixed{min-height:132px!important;max-height:150px!important;}
  .pwa-v10-soft .stable-answer-row{min-height:72px!important;gap:8px!important;}
  .pwa-v10-soft .stable-answer-row .answer-btn{height:58px!important;min-height:58px!important;font-size:15px!important;padding-left:8px!important;padding-right:34px!important;}
  .pwa-v10-soft .stable-answer-row .answer-icon{width:24px!important;height:24px!important;min-width:24px!important;}
}

/* ================= V11 COMPLETION + PROGRESS + PDF ACCESS UX =================
   - Total soal memakai angka dari backend, tidak hard-code di JS.
   - Saat posisi terakhir, tombol Berikutnya disabled dan tampil status selesai/belum lengkap.
   - Peserta melihat jumlah sudah dijawab, belum dijawab, dan ditandai ragu-ragu.
*/
.pwa-v11-soft .stable-nav-row .btn.disabled,
.pwa-v11-soft .stable-nav-row .btn:disabled,
.pwa-v11-soft .bottom-tools-row .btn.disabled,
.pwa-v11-soft .bottom-tools-row .btn:disabled{
  opacity:.55!important;
  cursor:not-allowed!important;
  filter:saturate(.75)!important;
}
.pwa-v11-soft .completion-card-v11{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:12px;
  align-items:start;
  margin:12px 0 20px;
  padding:14px;
  border-radius:22px;
  border:1px solid rgba(125,184,245,.48);
  background:linear-gradient(135deg,#ffffff 0%,#f1f9ff 100%);
  box-shadow:0 14px 34px rgba(31,84,142,.08);
}
.pwa-v11-soft .completion-card-v11[hidden]{display:none!important;}
.pwa-v11-soft .completion-icon-v11{
  width:46px;height:46px;border-radius:16px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#dff5eb,#effaf5);
  color:#159456;font-weight:900;font-size:20px;
  border:1px solid #b7ebcf;
}
.pwa-v11-soft .completion-body-v11 b{color:#08245a;font-size:15px;}
.pwa-v11-soft .completion-body-v11 p{margin:4px 0 10px;color:#52647d;font-size:13px;line-height:1.45;}
.pwa-v11-soft .completion-stats-v11{
  display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0 12px;
}
.pwa-v11-soft .completion-stats-v11 span{
  border:1px solid #d7ebff;background:#fff;border-radius:16px;padding:9px 6px;text-align:center;
}
.pwa-v11-soft .completion-stats-v11 b{display:block;font-size:18px;color:#0d61c9;line-height:1;}
.pwa-v11-soft .completion-stats-v11 small{display:block;margin-top:4px;font-size:10.5px;color:#65758e;line-height:1.1;}
.pwa-v11-soft .completion-doc-btn{width:100%;min-height:44px!important;height:44px!important;display:flex;align-items:center;justify-content:center;text-decoration:none;}
.pwa-v11-soft .progress-fill{max-width:100%!important;}
@media(max-width:380px){
  .pwa-v11-soft .completion-card-v11{grid-template-columns:40px minmax(0,1fr);padding:12px;border-radius:18px;}
  .pwa-v11-soft .completion-icon-v11{width:40px;height:40px;border-radius:14px;}
  .pwa-v11-soft .completion-stats-v11{gap:6px;}
  .pwa-v11-soft .completion-stats-v11 span{padding:8px 4px;border-radius:14px;}
  .pwa-v11-soft .completion-stats-v11 b{font-size:16px;}
  .pwa-v11-soft .completion-stats-v11 small{font-size:9.5px;}
}

/* ================= V12 ACCESS + TIME + RESPONSIVE WEB/PWA FIX ================= */
.empty-state{border:1px dashed #bfdbfe;background:#f8fcff;border-radius:18px;padding:18px;text-align:center;color:#64748b;font-weight:700}.btn.disabled,.btn:disabled{opacity:.55;cursor:not-allowed;pointer-events:none;filter:saturate(.7)}.dashboard-main-action .help{margin:8px 0 0}.page-documents .doc-card,.page-home .doc-card{align-items:start}

/* Desktop/laptop: tampil seperti web, bukan shell PWA/HP. Mobile tetap berubah menjadi PWA melalui class app-pwa-mobile dari JS. */
@media (min-width: 901px){
  body:not(.app-pwa-mobile).rapha-clean-blue,
  body:not(.app-pwa-mobile).theme-soft-blue,
  body:not(.app-pwa-mobile){
    background:linear-gradient(135deg,#f3faff 0%,#ffffff 42%,#edf7ff 100%)!important;
  }
  body:not(.app-pwa-mobile) .phone-page{
    max-width:1180px!important;
    width:calc(100% - 48px)!important;
    min-height:auto!important;
    margin:24px auto 110px!important;
    padding:28px 32px 34px!important;
    border:1px solid #dbeafe!important;
    border-radius:28px!important;
    background:rgba(255,255,255,.88)!important;
    box-shadow:0 22px 60px rgba(31,84,142,.10)!important;
    overflow:visible!important;
  }
  body:not(.app-pwa-mobile) .phone-page:before,
  body:not(.app-pwa-mobile) .phone-page:after{display:none!important;}
  body:not(.app-pwa-mobile) .topbar{
    margin:0 0 24px!important;
    padding:0!important;
    background:transparent!important;
    position:relative!important;
    top:auto!important;
    box-shadow:none!important;
  }
  body:not(.app-pwa-mobile) .logo-small img{width:178px!important;}
  body:not(.app-pwa-mobile) h1{font-size:34px;line-height:1.15;margin:8px 0 6px;}
  body:not(.app-pwa-mobile) .sub{font-size:15px;}
  body:not(.app-pwa-mobile) .stats{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px;}
  body:not(.app-pwa-mobile) .grid3{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;}
  body:not(.app-pwa-mobile) .tile{min-height:150px;padding:22px;}
  body:not(.app-pwa-mobile) .tile h3{font-size:18px}.tile p{font-size:14px}
  body:not(.app-pwa-mobile) .wide-action{padding:28px!important;}
  body:not(.app-pwa-mobile) .doc-list{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(330px,1fr));gap:16px!important;}
  body:not(.app-pwa-mobile) .doc-card{height:100%;}
  body:not(.app-pwa-mobile) .bottom-nav{
    left:50%!important;
    bottom:18px!important;
    top:auto!important;
    transform:translateX(-50%)!important;
    max-width:820px!important;
    width:auto!important;
    min-width:520px!important;
    border:1px solid #dbeafe!important;
    border-radius:24px!important;
    padding:8px!important;
    box-shadow:0 18px 45px rgba(31,84,142,.16)!important;
  }
  body:not(.app-pwa-mobile) .bottom-nav a{min-width:120px;}

  /* Desktop khusus halaman pengisian: panel kiri kanan seperti web dashboard. */
  body:not(.app-pwa-mobile) .mmpi-stable-page{
    display:grid!important;
    grid-template-columns:360px minmax(0,1fr)!important;
    grid-template-rows:auto auto auto auto!important;
    gap:18px!important;
    align-items:start!important;
  }
  body:not(.app-pwa-mobile) .mmpi-stable-page .clean-topbar{grid-column:1/-1;}
  body:not(.app-pwa-mobile) .mmpi-stable-page .progress-card{grid-column:1;grid-row:2;margin:0!important;}
  body:not(.app-pwa-mobile) .mmpi-stable-page .question-card{grid-column:2;grid-row:2/5;min-height:500px!important;padding:26px!important;}
  body:not(.app-pwa-mobile) .mmpi-stable-page .stable-nav-row{grid-column:1;grid-row:3;position:static!important;bottom:auto!important;background:transparent!important;backdrop-filter:none!important;margin:0!important;padding:0!important;}
  body:not(.app-pwa-mobile) .mmpi-stable-page .stable-tools-row{grid-column:1;grid-row:4;margin:0!important;}
  body:not(.app-pwa-mobile) .mmpi-stable-page .completion-card-v11{grid-column:1/-1;grid-row:5;}
  body:not(.app-pwa-mobile) .pwa-v9-soft .stable-question,
  body:not(.app-pwa-mobile) .stable-question{grid-template-rows:44px minmax(210px,250px) 86px!important;}
  body:not(.app-pwa-mobile) .question-text-fixed{min-height:210px!important;max-height:250px!important;}
  body:not(.app-pwa-mobile) .question-text-fixed h2{font-size:28px!important;line-height:1.35!important;}
  body:not(.app-pwa-mobile) .stable-answer-row .answer-btn{min-height:76px!important;font-size:22px!important;}
}

@media (max-width: 900px){
  body.app-pwa-mobile .phone-page{max-width:520px!important;border:0!important;border-radius:0!important;box-shadow:none!important;margin:0 auto!important;}
}

/* Dashboard document controls */
.home-doc-card{position:relative;grid-template-columns:58px minmax(0,1fr);align-items:start;}
.home-doc-card .doc-main{min-width:0;}
.home-doc-card .doc-head{display:grid;grid-template-columns:minmax(0,1fr) 36px;align-items:start;gap:10px;margin-bottom:4px;}
.home-doc-card .doc-title{min-width:0;padding-right:2px;line-height:1.25;overflow-wrap:anywhere;}
.doc-delete-btn{width:36px;height:36px;border:1px solid #fecdd3;border-radius:12px;background:#fff1f2;color:#be123c;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;transition:.16s ease;}
.doc-delete-btn svg{width:18px;height:18px;fill:currentColor;}
.doc-delete-btn:hover{background:#ffe4e6;border-color:#fda4af;transform:translateY(-1px);}
.doc-card-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;flex-wrap:wrap;}
.btn-doc-action{min-height:38px;padding:9px 13px;border-radius:13px;font-size:13px;line-height:1;white-space:nowrap;}
.rapha-modal[hidden]{display:none!important;}
.rapha-modal{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(8,20,45,.38);backdrop-filter:blur(8px);}
.rapha-modal-panel{width:min(430px,100%);border:1px solid #dbeafe;border-radius:22px;background:#fff;box-shadow:0 28px 80px rgba(15,31,70,.22);padding:22px;text-align:center;}
.rapha-modal-icon{width:48px;height:48px;border-radius:16px;display:inline-flex;align-items:center;justify-content:center;font-weight:900;margin-bottom:10px;}
.rapha-modal-icon.danger{background:#fff1f2;color:#be123c;border:1px solid #fecdd3;}
.rapha-modal-panel h3{margin:0 0 8px;font-size:22px;color:#08245a;}
.rapha-modal-panel p{margin:0;color:#52647d;line-height:1.5;}
.rapha-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px;}
.rapha-modal-actions .btn{width:100%;min-height:44px;font-size:14px;}
@media(max-width:760px){
  .app-pwa-mobile .home-doc-card{grid-template-columns:44px minmax(0,1fr);}
  .app-pwa-mobile .home-doc-card .doc-head{grid-template-columns:minmax(0,1fr) 32px;gap:7px;}
  .app-pwa-mobile .doc-delete-btn{width:32px;height:32px;border-radius:10px;}
  .app-pwa-mobile .doc-delete-btn svg{width:16px;height:16px;}
  .app-pwa-mobile .doc-card-actions{gap:6px;margin-top:8px;}
  .app-pwa-mobile .btn-doc-action{min-height:34px;padding:8px 10px;font-size:12px;}
  .app-pwa-mobile .rapha-modal{align-items:flex-end;padding:12px;}
  .app-pwa-mobile .rapha-modal-panel{border-radius:20px;padding:18px;}
}


/* RAPHA MMPI Dashboard Redesign v14 - scoped, lightweight, PWA friendly */
:root{
  --rapha-ink:#09204a;
  --rapha-muted:#5f718a;
  --rapha-line:#d9e8fb;
  --rapha-blue:#0b63d8;
  --rapha-blue-soft:#eaf3ff;
  --rapha-indigo-soft:#eef2ff;
  --rapha-teal:#0f766e;
  --rapha-teal-soft:#e8fbf7;
  --rapha-cyan:#0e7490;
  --rapha-cyan-soft:#e9fbff;
  --rapha-amber:#b7791f;
  --rapha-amber-soft:#fff7e6;
  --rapha-danger:#dc2626;
  --rapha-danger-soft:#fff1f2;
  --rapha-card:rgba(255,255,255,.92);
  --rapha-shadow:0 20px 60px rgba(15,35,75,.09);
}
html{scroll-behavior:smooth;}
body.rapha-dashboard-page{min-height:100vh;margin:0;color:var(--rapha-ink);background:
  radial-gradient(circle at top left, rgba(14,116,144,.12), transparent 34rem),
  linear-gradient(135deg,#f6fbff 0%,#eef7ff 45%,#f8fcff 100%);overflow-x:hidden;}
.rapha-shell{width:min(1180px,calc(100% - 32px));margin:0 auto;padding:28px 0 calc(110px + env(safe-area-inset-bottom));}
.compact-shell{max-width:1040px;}
.rapha-hero,.rapha-page-header,.primary-cta,.panel-card,.page-title-card,.trust-strip{border:1px solid var(--rapha-line);background:var(--rapha-card);box-shadow:var(--rapha-shadow);backdrop-filter:blur(14px);}
.rapha-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;border-radius:30px;}
.rapha-hero-brand{display:flex;align-items:center;gap:18px;min-width:0;}
.rapha-hero-brand img{width:178px;max-width:34vw;height:auto;object-fit:contain;}
.rapha-hero h1,.page-title-card h1{margin:2px 0 6px;font-size:clamp(28px,4vw,44px);line-height:1.05;letter-spacing:-.035em;}
.rapha-hero p,.page-title-card p,.primary-cta p,.menu-card p,.trust-strip span{margin:0;color:var(--rapha-muted);line-height:1.55;}
.eyebrow{margin:0 0 6px!important;color:#0b63d8!important;font-weight:800;font-size:12px;text-transform:uppercase;letter-spacing:.12em;}
.logout-chip,.back-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:999px;border:1px solid #bfdbfe;background:#fff;color:#0b63d8;text-decoration:none;font-weight:800;box-shadow:0 8px 24px rgba(37,99,235,.09);white-space:nowrap;}
.logout-chip:hover,.back-button:hover{background:#eff6ff;}
.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0;}
.stat-card{display:flex;align-items:center;gap:14px;padding:17px 18px;border-radius:24px;border:1px solid var(--rapha-line);background:#fff;box-shadow:0 12px 34px rgba(15,35,75,.06);}
.stat-icon,.menu-icon,.doc-mini-icon,.document-icon{display:inline-flex;align-items:center;justify-content:center;border-radius:18px;font-weight:900;letter-spacing:-.02em;}
.stat-icon{width:46px;height:46px;font-size:13px;}
.stat-card strong{display:block;font-size:30px;line-height:1;color:var(--rapha-ink);}
.stat-card span:last-child{display:block;margin-top:4px;color:var(--rapha-muted);font-size:14px;font-weight:700;}
.stat-blue .stat-icon{background:var(--rapha-blue-soft);color:var(--rapha-blue);}
.stat-teal .stat-icon{background:var(--rapha-teal-soft);color:var(--rapha-teal);}
.stat-amber .stat-icon{background:var(--rapha-amber-soft);color:var(--rapha-amber);}
.primary-cta{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;padding:24px;border-radius:30px;background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(234,243,255,.94));}
.primary-cta h2,.panel-card h2,.menu-card h3,.document-card h3{margin:0;color:var(--rapha-ink);letter-spacing:-.02em;}
.soft-badge{display:inline-flex;padding:6px 10px;border-radius:999px;background:#dbeafe;color:#0b63d8;font-weight:900;font-size:12px;letter-spacing:.08em;}
.btn{min-height:42px;border-radius:14px;text-decoration:none;border:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;font-weight:900;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease,background .15s ease;}
.btn:hover{transform:translateY(-1px);}
.btn-primary,.btn-blue{background:linear-gradient(135deg,#0b63d8,#1d8cff);color:#fff;box-shadow:0 12px 28px rgba(11,99,216,.22);}
.btn-outline{background:#fff;color:#0b63d8;border:1px solid #bfdbfe;}
.btn-menu{background:#fff;color:var(--rapha-ink);border:1px solid rgba(255,255,255,.75);box-shadow:0 10px 22px rgba(15,35,75,.06);}
.btn-disabled{background:#edf3fb;color:#7a8ca4;cursor:not-allowed;box-shadow:none;}
.btn-danger-soft{background:var(--rapha-danger-soft);color:var(--rapha-danger);border:1px solid #fecdd3;}
.menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px;}
.menu-card{position:relative;overflow:hidden;min-height:210px;padding:22px;border-radius:30px;border:1px solid var(--rapha-line);box-shadow:var(--rapha-shadow);display:flex;flex-direction:column;align-items:flex-start;gap:12px;}
.menu-card:after{content:"";position:absolute;right:-42px;top:-42px;width:150px;height:150px;border-radius:999px;background:rgba(255,255,255,.42);}
.menu-icon{width:54px;height:54px;font-size:15px;}
.menu-card h3{font-size:24px;}
.menu-card .btn{margin-top:auto;}
.menu-blue{background:linear-gradient(135deg,#eaf3ff,#f8fbff);}
.menu-blue .menu-icon{background:#dbeafe;color:#0b63d8;}
.menu-teal{background:linear-gradient(135deg,#e8fbf7,#f8fffd);}
.menu-teal .menu-icon{background:#ccfbf1;color:#0f766e;}
.menu-cyan{background:linear-gradient(135deg,#e9fbff,#f8fdff);}
.menu-cyan .menu-icon{background:#cffafe;color:#0e7490;}
.content-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:18px;align-items:start;}
.panel-card{border-radius:30px;padding:22px;}
.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:16px;}
.section-head a{color:#0b63d8;font-weight:900;text-decoration:none;white-space:nowrap;}
.responsive-table{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
.clean-table{width:100%;border-collapse:separate;border-spacing:0 10px;min-width:680px;}
.clean-table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#71839a;padding:0 12px;}
.clean-table td{background:#fff;border-top:1px solid #e0ecfb;border-bottom:1px solid #e0ecfb;padding:14px 12px;vertical-align:middle;}
.clean-table td:first-child{border-left:1px solid #e0ecfb;border-radius:18px 0 0 18px;}
.clean-table td:last-child{border-right:1px solid #e0ecfb;border-radius:0 18px 18px 0;}
.clean-table small,.document-body p,.doc-mini-card span{color:var(--rapha-muted);}
.status-pill{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;font-size:12px;font-weight:900;white-space:nowrap;}
.status-pill.done{background:#dcfce7;color:#166534;}
.status-pill.draft{background:#fff7ed;color:#c2410c;}
.status-pill.locked{background:#eef2f7;color:#475569;}
.pill.locked{background:#eef2f7!important;color:#475569!important;border:1px solid #cbd5e1!important;}
.progress-mini{height:8px;width:132px;max-width:100%;border-radius:999px;background:#e8f0fb;overflow:hidden;margin-bottom:6px;}
.progress-mini span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0b63d8,#20c7b5);}
.action-cell{display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.table-link{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 10px;border-radius:10px;background:#eff6ff;color:#0b63d8;text-decoration:none;font-weight:900;border:1px solid #bfdbfe;white-space:nowrap;}
.table-link.is-loading{opacity:.72;pointer-events:none;}
.muted-label{display:inline-flex;align-items:center;min-height:34px;padding:0 10px;border-radius:10px;background:#f1f5f9;color:#71839a;font-weight:800;font-size:13px;}
.mini-delete{min-height:34px;border-radius:10px;border:1px solid #fecdd3;background:#fff1f2;color:#dc2626;font-weight:900;padding:0 10px;cursor:pointer;}
.doc-mini-list{display:grid;gap:12px;}
.doc-mini-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid #dbeafe;border-radius:18px;background:#fff;}
.doc-mini-card strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.doc-mini-icon,.document-icon{width:48px;height:48px;background:#eff6ff;color:#0b63d8;font-size:12px;}
.trust-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px;padding:16px;border-radius:24px;}
.trust-strip.single{margin:16px 0;}
.trust-strip strong{display:block;margin-bottom:4px;}
.trust-strip div{padding:12px;border-radius:18px;background:#f8fbff;border:1px solid #e3eefc;}
.empty-state,.soft-alert{padding:18px;border-radius:20px;background:#f8fbff;border:1px dashed #bfdbfe;color:var(--rapha-muted);font-weight:700;}
.soft-alert{border-style:solid;background:#fff7e6;color:#8a5b13;margin-bottom:14px;}
.rapha-page-header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;padding:14px 16px;border-radius:24px;margin-bottom:18px;}
.rapha-page-header img{width:170px;height:auto;}
.rapha-page-header .logout-chip{justify-self:end;}
.page-title-card{border-radius:30px;padding:26px;margin-bottom:18px;}
.history-title{background:linear-gradient(135deg,#e8fbf7,#fff);}
.docs-title{background:linear-gradient(135deg,#e9fbff,#fff);}
.document-grid{display:grid;gap:14px;}
.document-card{display:grid;grid-template-columns:62px minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px;border:1px solid #dbeafe;border-radius:24px;background:#fff;box-shadow:0 12px 30px rgba(15,35,75,.05);}
.document-icon{width:62px;height:62px;border-radius:20px;}
.document-body h3{font-size:17px;word-break:break-word;}
.document-body p{margin:5px 0 10px;}
.document-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.rapha-modal{position:fixed;inset:0;z-index:80;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(9,32,74,.35);}
.rapha-modal.show{display:flex;}
.rapha-modal-panel{max-width:420px;width:100%;border-radius:28px;background:#fff;border:1px solid #dbeafe;padding:24px;text-align:center;box-shadow:0 24px 70px rgba(9,32,74,.2);}
.rapha-modal-icon{width:52px;height:52px;border-radius:18px;background:#fff1f2;color:#dc2626;display:inline-flex;align-items:center;justify-content:center;font-weight:900;margin-bottom:10px;}
.rapha-modal-panel h3{margin:0 0 8px;color:var(--rapha-ink);}
.rapha-modal-panel p{margin:0;color:var(--rapha-muted);line-height:1.5;}
.rapha-modal-actions{display:flex;justify-content:center;gap:10px;margin-top:18px;}
.rapha-toast{position:fixed;left:50%;bottom:calc(92px + env(safe-area-inset-bottom));transform:translateX(-50%) translateY(20px);z-index:90;opacity:0;background:#09204a;color:#fff;padding:12px 16px;border-radius:999px;font-weight:800;box-shadow:0 14px 36px rgba(9,32,74,.22);transition:.2s ease;pointer-events:none;}
.rapha-toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
.clean-bottom-nav{padding-bottom:env(safe-area-inset-bottom);}
.clean-bottom-nav .nav-ico{font-size:11px;font-weight:900;line-height:1;}
@media (max-width: 900px){
  .content-grid,.menu-grid,.stats-grid,.trust-strip{grid-template-columns:1fr;}
  .rapha-hero{align-items:flex-start;}
  .primary-cta{align-items:flex-start;}
  .document-card{grid-template-columns:54px minmax(0,1fr);}
  .document-actions{grid-column:1/-1;justify-content:stretch;}
  .document-actions .btn{flex:1 1 160px;}
}
@media (max-width: 640px){
  .rapha-shell{width:min(100% - 22px,1180px);padding-top:12px;padding-bottom:calc(104px + env(safe-area-inset-bottom));}
  .rapha-hero,.primary-cta,.panel-card,.page-title-card{border-radius:24px;padding:18px;}
  .rapha-hero,.rapha-hero-brand,.primary-cta{flex-direction:column;align-items:stretch;}
  .rapha-hero-brand img{width:150px;max-width:70vw;}
  .logout-chip,.primary-cta .btn,.menu-card .btn{width:100%;}
  .stats-grid{gap:10px;}
  .stat-card{padding:14px;}
  .menu-card{min-height:188px;border-radius:24px;}
  .content-grid{gap:14px;}
  .clean-table{min-width:620px;}
  .rapha-page-header{grid-template-columns:1fr;justify-items:stretch;text-align:center;}
  .rapha-page-header img{justify-self:center;width:150px;}
  .rapha-page-header .logout-chip{justify-self:stretch;}
  .back-button{width:100%;}
  .doc-mini-card{grid-template-columns:44px minmax(0,1fr);}
  .doc-mini-card .table-link{grid-column:1/-1;}
  .rapha-modal-actions{flex-direction:column;}
  .rapha-modal-actions .btn{width:100%;}
}


/* RAPHA MMPI Exam Page Redesign v14.1 - scoped to .rapha-exam-page */
.rapha-exam-page{background:radial-gradient(circle at 12% 0%,rgba(11,99,216,.11),transparent 32rem),linear-gradient(135deg,#f5fbff 0%,#edf7ff 52%,#fbfdff 100%);}
.exam-shell{width:min(1180px,calc(100% - 32px));padding:24px 0 calc(112px + env(safe-area-inset-bottom));}
.exam-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;margin-bottom:18px;padding:18px 20px;border:1px solid #d9e8fb;border-radius:30px;background:rgba(255,255,255,.94);box-shadow:0 22px 70px rgba(15,35,75,.09);backdrop-filter:blur(14px);}
.exam-back{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 16px;border-radius:999px;border:1px solid #bfdbfe;background:#fff;color:#0b63d8;text-decoration:none;font-weight:900;box-shadow:0 8px 24px rgba(37,99,235,.08);}
.exam-brand{display:flex;align-items:center;justify-content:center;gap:16px;min-width:0;text-align:left;}
.exam-brand img{width:154px;height:auto;object-fit:contain;flex:0 0 auto;}
.exam-brand h1{margin:0 0 3px;color:#09204a;font-size:clamp(24px,3vw,34px);letter-spacing:-.035em;line-height:1.06;}
.exam-brand span{display:block;color:#5f718a;line-height:1.45;}
.exam-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;}
.exam-layout{display:grid;grid-template-columns:360px minmax(0,1fr);gap:18px;align-items:stretch;}
.exam-sidebar{display:flex;flex-direction:column;gap:14px;min-width:0;}
.exam-progress-card{margin:0!important;border-radius:26px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 18px 52px rgba(15,35,75,.08)!important;border:1px solid #d9e8fb!important;padding:18px!important;}
.exam-progress-card .progress-title{margin-bottom:12px;}
.exam-progress-card .progress-question-label{color:#09204a;font-size:16px;}
.exam-progress-card .progress-percent{color:#0b63d8;font-size:16px;}
.exam-progress-card .progress-line{height:10px;border-radius:999px;background:#e8f0fb;overflow:hidden;}
.exam-progress-card .progress-fill{height:100%;border-radius:999px;background:linear-gradient(90deg,#0b63d8,#19b6a5);}
.exam-progress-card .progress-sub{display:flex;justify-content:space-between;gap:10px;margin-top:12px;color:#5f718a;font-size:12px;}
.exam-mini-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.exam-mini-stats div{padding:14px 12px;border:1px solid #d9e8fb;border-radius:22px;background:rgba(255,255,255,.92);box-shadow:0 12px 32px rgba(15,35,75,.06);text-align:center;}
.exam-mini-stats b{display:block;color:#09204a;font-size:24px;line-height:1;}
.exam-mini-stats span{display:block;margin-top:6px;color:#5f718a;font-size:12px;font-weight:800;}
.exam-nav-row,.exam-tools-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0!important;}
.exam-nav-row .btn,.exam-tools-row .btn{min-height:54px;border-radius:18px;font-weight:900;font-size:15px;box-shadow:0 10px 28px rgba(15,35,75,.06);}
.exam-help-card{padding:18px;border:1px solid #d9e8fb;border-radius:24px;background:linear-gradient(135deg,#e8fbf7,#fff);box-shadow:0 14px 38px rgba(15,35,75,.06);}
.exam-help-card strong{display:block;color:#09204a;margin-bottom:6px;}
.exam-help-card p{margin:0;color:#5f718a;line-height:1.55;font-size:14px;}
.exam-question-card{min-height:500px!important;margin:0!important;border-radius:30px!important;border:1px solid #d9e8fb!important;background:rgba(255,255,255,.96)!important;box-shadow:0 22px 70px rgba(15,35,75,.09)!important;padding:30px!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;}
.exam-question-head{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.exam-question-head .pill{min-height:34px;padding:0 16px;border-radius:999px;font-weight:900;}
.answer-chip{min-height:34px;display:inline-flex;align-items:center;padding:0 14px;border-radius:999px;background:#f4f8fc;color:#71839a;border:1px solid #dbeafe;font-weight:900;font-size:13px;}
.answer-chip.yes{background:#dcfce7;color:#166534;border-color:#bbf7d0;}
.answer-chip.no{background:#fff1f2;color:#be123c;border-color:#fecdd3;}
.exam-question-text{display:flex;align-items:center;justify-content:center;min-height:260px;text-align:center;padding:26px 12px;}
.exam-question-text h2{max-width:760px;margin:0;color:#09204a;font-size:clamp(30px,4.4vw,48px);line-height:1.18;letter-spacing:-.045em;font-weight:950;}
.exam-answer-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;margin:0!important;}
.exam-answer-row .answer-btn{min-height:84px;border-radius:24px;border:1px solid #bfdbfe;background:#fff;color:#09204a;font-size:28px;font-weight:950;display:flex;align-items:center;justify-content:center;gap:14px;box-shadow:0 16px 42px rgba(15,35,75,.07);transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease,background .14s ease;}
.exam-answer-row .answer-btn:hover{transform:translateY(-2px);box-shadow:0 20px 52px rgba(15,35,75,.11);}
.exam-answer-row .answer-btn.selected{border-color:#0b63d8;background:linear-gradient(135deg,#eff6ff,#fff);box-shadow:0 18px 48px rgba(11,99,216,.17);}
.exam-answer-row .answer-icon{width:34px;height:34px;border-radius:999px;background:#eaf3ff;border:8px solid #eaf3ff;box-sizing:border-box;}
.exam-answer-row .answer-btn.selected .answer-icon{background:#0b63d8;border-color:#bfdbfe;}
.exam-completion-card{margin-top:18px!important;border-radius:28px!important;border:1px solid #bbf7d0!important;background:linear-gradient(135deg,#ecfdf5,#fff)!important;box-shadow:0 18px 50px rgba(22,101,52,.09)!important;}
.exam-bottom-nav .nav-ico{font-size:11px;font-weight:900;line-height:1;}
.rapha-exam-page .bottom-nav{box-shadow:0 -12px 42px rgba(15,35,75,.08);}
@media (max-width: 980px){
  .exam-layout{grid-template-columns:1fr;}
  .exam-sidebar{display:grid;grid-template-columns:1fr 1fr;align-items:start;}
  .exam-progress-card,.exam-help-card{grid-column:1/-1;}
  .exam-question-card{min-height:440px!important;}
}
@media (max-width: 720px){
  .exam-shell{width:min(100% - 22px,1180px);padding-top:12px;padding-bottom:calc(104px + env(safe-area-inset-bottom));}
  .exam-hero{grid-template-columns:1fr;justify-items:stretch;text-align:center;border-radius:24px;padding:16px;}
  .exam-brand{flex-direction:column;text-align:center;}
  .exam-brand img{width:148px;}
  .exam-actions{justify-content:stretch;display:grid;grid-template-columns:1fr 1fr;}
  .exam-back,.exam-actions .logout-chip{width:100%;}
  .exam-sidebar{display:flex;}
  .exam-mini-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
  .exam-mini-stats div{padding:12px 8px;border-radius:18px;}
  .exam-mini-stats b{font-size:20px;}
  .exam-nav-row,.exam-tools-row{grid-template-columns:1fr;}
  .exam-question-card{min-height:auto!important;padding:18px!important;border-radius:24px!important;}
  .exam-question-head{align-items:stretch;flex-direction:column;}
  .answer-chip,.exam-question-head .pill{justify-content:center;width:100%;}
  .exam-question-text{min-height:220px;padding:20px 6px;}
  .exam-question-text h2{font-size:clamp(26px,9vw,38px);}
  .exam-answer-row{grid-template-columns:1fr!important;}
  .exam-answer-row .answer-btn{min-height:74px;font-size:24px;}
}


/* RAPHA action icons v14.2 - ASCII-safe SVG masks */
.action-btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;white-space:nowrap;}
.action-btn::before{content:"";width:16px;height:16px;display:inline-block;flex:0 0 16px;background:currentColor;-webkit-mask:var(--rapha-action-icon) center/contain no-repeat;mask:var(--rapha-action-icon) center/contain no-repeat;}
.action-continue{--rapha-action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7L8 5z'/%3E%3C/svg%3E");}
.action-preview{--rapha-action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5c5 0 9 4.5 10 7-1 2.5-5 7-10 7S3 14.5 2 12c1-2.5 5-7 10-7zm0 3.5A3.5 3.5 0 1 0 12 15.5 3.5 3.5 0 0 0 12 8.5z'/%3E%3C/svg%3E");}
.action-download{--rapha-action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v10l3.5-3.5L18 11l-6 6-6-6 1.5-1.5L11 13V3zM5 19h14v2H5v-2z'/%3E%3C/svg%3E");}
.action-wait{--rapha-action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm1 5h-2v6l5 3 1-1.7-4-2.3V7z'/%3E%3C/svg%3E");}
.action-lock{--rapha-action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 9h1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h1V7a5 5 0 0 1 10 0v2zm-2 0V7a3 3 0 0 0-6 0v2h6zm-4 5v4h2v-4h-2z'/%3E%3C/svg%3E");}
.action-delete{--rapha-action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6l1 2h5v2H3V5h5l1-2zm-2 6h10l-.7 11a2 2 0 0 1-2 2H9.7a2 2 0 0 1-2-2L7 9zm3 2v8h2v-8h-2zm4 0v8h2v-8h-2z'/%3E%3C/svg%3E");}
.action-download{background:#eaf3ff!important;color:#0b63d8!important;border-color:#bfdbfe!important;}
.action-preview{background:#eff6ff!important;color:#075ec9!important;border-color:#bfdbfe!important;}
.action-continue{background:#0b63d8!important;color:#fff!important;border-color:#0b63d8!important;box-shadow:0 10px 24px rgba(11,99,216,.16);}
.action-wait{background:#f1f5f9!important;color:#64748b!important;border-color:#e2e8f0!important;}
.action-lock{background:#eef2f7!important;color:#475569!important;border-color:#cbd5e1!important;cursor:not-allowed!important;box-shadow:none!important;}
.action-delete{background:#fff1f2!important;color:#dc2626!important;border-color:#fecdd3!important;}
.action-btn.is-loading{opacity:.72;pointer-events:none;}
@media(max-width:760px){.action-cell{gap:6px}.action-btn{min-height:38px!important;padding-left:10px!important;padding-right:10px!important}.action-btn::before{width:15px;height:15px}}

/* RAPHA icon-only action buttons v14.3 */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
.action-cell{gap:8px!important;align-items:center!important;}
.action-btn.icon-only{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;padding:0!important;border-radius:14px!important;gap:0!important;position:relative!important;overflow:hidden!important;}
.action-btn.icon-only::before{width:18px!important;height:18px!important;margin:0!important;}
.action-btn.icon-only[aria-busy="true"]::after{content:"";position:absolute;inset:9px;border-radius:999px;border:2px solid currentColor;border-top-color:transparent;animation:raphaSpin .7s linear infinite;opacity:.8;}
.action-btn.icon-only[aria-busy="true"]::before{opacity:.18;}
@keyframes raphaSpin{to{transform:rotate(360deg)}}
.document-actions .action-btn.icon-only{flex:0 0 42px!important;}
.doc-mini-card .action-btn.icon-only{grid-column:auto!important;}
@media(max-width:760px){.action-btn.icon-only{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}.action-btn.icon-only::before{width:17px!important;height:17px!important}}

    /* Admin list pagination, date filters, and bulk actions */
    .admin-page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.admin-page-head h1{margin-bottom:6px}.admin-filter-grid{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(150px,.8fr) minmax(150px,.8fr) minmax(150px,.8fr) minmax(110px,.5fr) auto auto auto;gap:10px;align-items:end;margin:16px 0 18px}.date-range{display:flex;flex-direction:column;gap:5px}.date-range label{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#5f718d}.admin-bulk-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:12px 14px;border:1px solid #fecaca;background:#fff7f7;border-radius:16px;box-shadow:0 10px 24px rgba(239,68,68,.08)}.btn-danger{background:#fee2e2!important;border-color:#fecaca!important;color:#dc2626!important}.btn-danger:hover{background:#fecaca!important}.admin-table-wrap{overflow:auto}.admin-data-table th,.admin-data-table td{vertical-align:middle}.check-col{width:42px;text-align:center}.check-col input{width:18px;height:18px;accent-color:#0b63d8}.mini-progress{width:132px;max-width:100%;height:8px;background:#eaf1fb;border-radius:999px;overflow:hidden;margin-bottom:6px}.mini-progress span{display:block;height:100%;background:linear-gradient(90deg,#0b63d8,#22c5b5);border-radius:999px}.actions{display:flex;gap:8px;flex-wrap:wrap}.actions a,.muted-action{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 10px;border-radius:12px;border:1px solid #bfdbfe;background:#f8fbff;color:#0b63d8;font-weight:800;text-decoration:none;white-space:nowrap}.muted-action{border-color:#e2e8f0;color:#718096;background:#f8fafc}.empty-row{text-align:center;color:#64748b;padding:22px!important}.admin-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;color:#51627d;font-weight:800}.admin-pagination>div{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:1100px){.admin-filter-grid{grid-template-columns:1fr 1fr}.admin-filter-grid .btn,.admin-filter-grid a.btn{width:100%}}@media(max-width:700px){.admin-page-head,.admin-pagination,.admin-bulk-bar{flex-direction:column;align-items:stretch}.admin-filter-grid{grid-template-columns:1fr}.actions{min-width:220px}.admin-main{padding-bottom:100px}}
    .admin-bulk-bar[hidden]{display:none!important}
    .admin-row-actions{align-items:center;gap:8px!important;flex-wrap:nowrap!important}
    .admin-icon-action{width:38px;height:38px;min-width:38px;min-height:38px;padding:0!important;border-radius:13px;border:1px solid #bfdbfe;background:#eff6ff;color:#0b63d8;display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:pointer;text-decoration:none;font-weight:900;position:relative}
    .admin-icon-action:before{content:"";width:17px;height:17px;display:block;background:currentColor;-webkit-mask:var(--admin-action-icon) center/contain no-repeat;mask:var(--admin-action-icon) center/contain no-repeat}
    .admin-eye{--admin-action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5c5 0 9 4.5 10 7-1 2.5-5 7-10 7S3 14.5 2 12c1-2.5 5-7 10-7zm0 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm0 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4z'/%3E%3C/svg%3E")}
    .admin-download{--admin-action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 3h2v10l3.5-3.5L18 11l-6 6-6-6 1.5-1.5L11 13V3zM5 19h14v2H5v-2z'/%3E%3C/svg%3E");background:#eaf3ff;color:#0b63d8}
    .admin-delete{--admin-action-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6l1 2h5v2H3V5h5l1-2zm-2 6h10l-.7 11a2 2 0 0 1-2 2H9.7a2 2 0 0 1-2-2L7 9zm3 2v8h2v-8h-2zm4 0v8h2v-8h-2z'/%3E%3C/svg%3E");background:#fff1f2!important;color:#dc2626!important;border-color:#fecdd3!important}
    .admin-icon-action[aria-busy="true"]{opacity:.65;pointer-events:none}

/* V14.2 mobile polish: dashboard cards stay inside viewport; exam controls move below question */
@media(max-width:640px){
  html,body{max-width:100%;overflow-x:hidden;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .rapha-shell{width:min(100% - 22px,420px);max-width:420px;margin:0 auto;padding-top:12px;padding-bottom:calc(104px + env(safe-area-inset-bottom));overflow:visible;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .content-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%;max-width:100%;align-items:stretch;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .panel-card{width:100%;max-width:100%;min-width:0;padding:14px!important;border-radius:22px!important;overflow:hidden;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .section-head{align-items:flex-start;gap:8px;margin-bottom:10px;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .section-head h2{font-size:18px;line-height:1.15;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .section-head a{font-size:11px;font-weight:900;white-space:nowrap;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .responsive-table{width:100%;max-width:100%;overflow:visible;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .clean-table{display:block;width:100%;min-width:0!important;border-spacing:0;border-collapse:separate;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .clean-table thead{display:none;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .clean-table tbody{display:grid;gap:9px;width:100%;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .clean-table tr{display:grid;grid-template-columns:1fr auto;grid-template-areas:"title status" "progress actions";gap:8px 10px;width:100%;min-width:0;padding:10px;border:1px solid #dbeafe;border-radius:18px;background:#fff;box-shadow:0 8px 20px rgba(15,35,75,.04);}
  body.rapha-dashboard-page:not(.rapha-exam-page) .clean-table td{display:block;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;min-width:0;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .clean-table td:nth-child(1){grid-area:title;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .clean-table td:nth-child(2){grid-area:status;align-self:start;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .clean-table td:nth-child(3){grid-area:progress;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .clean-table td:nth-child(4){grid-area:actions;align-self:end;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .clean-table td strong{font-size:12px;line-height:1.2;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .clean-table small{font-size:10px;line-height:1.25;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .status-pill{font-size:9px;padding:5px 7px;white-space:nowrap;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .progress-mini{width:100%;height:6px;margin:2px 0 4px;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .action-cell{display:flex;justify-content:flex-end;gap:6px;min-width:0;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .action-btn.icon-only{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;border-radius:12px!important;padding:0!important;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .action-btn.icon-only::before{width:15px!important;height:15px!important;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .docs-panel{margin-top:0;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .doc-mini-list{gap:8px;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .doc-mini-card{grid-template-columns:38px minmax(0,1fr);gap:9px;padding:10px;border-radius:16px;width:100%;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .doc-mini-icon{width:38px;height:38px;border-radius:14px;font-size:10px;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .doc-mini-card strong{font-size:11px;line-height:1.2;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .doc-mini-card span{font-size:10px;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .doc-mini-card .table-link{grid-column:1/-1;min-height:32px;border-radius:12px;font-size:11px;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .trust-strip{grid-template-columns:1fr!important;gap:8px;width:100%;max-width:100%;}
  body.rapha-dashboard-page:not(.rapha-exam-page) .trust-strip>div{padding:12px;border-radius:16px;}
}
@media(max-width:720px){
  body.rapha-exam-page .exam-layout{display:flex!important;flex-direction:column!important;gap:12px!important;align-items:stretch!important;}
  body.rapha-exam-page .exam-sidebar{display:contents!important;}
  body.rapha-exam-page .exam-progress-card{order:1;width:100%;margin:0!important;}
  body.rapha-exam-page .exam-question-card{order:2;width:100%;min-height:auto!important;margin:0!important;}
  body.rapha-exam-page .exam-mini-stats{order:3;width:100%;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;}
  body.rapha-exam-page .exam-mini-stats div{padding:11px 8px!important;border-radius:18px!important;}
  body.rapha-exam-page .exam-mini-stats b{font-size:20px!important;}
  body.rapha-exam-page .exam-mini-stats span{font-size:11px!important;}
  body.rapha-exam-page .exam-nav-row{order:4;width:100%;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;}
  body.rapha-exam-page .exam-tools-row{order:5;width:100%;display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;}
  body.rapha-exam-page .exam-nav-row .btn,body.rapha-exam-page .exam-tools-row .btn{min-height:50px!important;border-radius:18px!important;font-size:14px!important;padding:10px 8px!important;}
  body.rapha-exam-page .exam-help-card{order:6;display:none!important;}
  body.rapha-exam-page .exam-completion-card{margin-top:12px;}
}
@media(max-width:360px){
  body.rapha-exam-page .exam-nav-row,body.rapha-exam-page .exam-tools-row{grid-template-columns:1fr!important;}
}

/* V14.3 exam color refresh: soft green question card and distinct summary tiles */
.rapha-exam-page .exam-question-card{
  background:linear-gradient(180deg,#f0fff8 0%,#ecfdf5 48%,#ffffff 100%)!important;
  border-color:#b9f0d1!important;
  box-shadow:0 22px 70px rgba(22,163,74,.11)!important;
}
.rapha-exam-page .exam-question-head .pill.blue{
  background:#e5f9ef!important;
  border-color:#a7e8c4!important;
  color:#087443!important;
}
.rapha-exam-page .exam-question-head .answer-chip.empty{
  background:#f7fffb!important;
  border-color:#d5f5e4!important;
}
.rapha-exam-page .exam-answer-row .answer-btn{
  background:#fff!important;
}
.rapha-exam-page .exam-answer-row .answer-yes.selected{
  background:#e7f9ef!important;
  border-color:#22c55e!important;
  color:#065f36!important;
}
.rapha-exam-page .exam-answer-row .answer-no.selected{
  background:#eef6ff!important;
  border-color:#3b82f6!important;
  color:#0b4fad!important;
}

/* V14.7 exact solid badges for question header */
.rapha-exam-page .exam-question-head .pill.blue{
  background:#16a34a!important;
  border-color:#16a34a!important;
  color:#ffffff!important;
  box-shadow:0 12px 24px rgba(22,163,74,.22)!important;
}
.rapha-exam-page .exam-question-head .answer-chip,
.rapha-exam-page .exam-question-head .answer-chip.empty,
.rapha-exam-page .exam-question-head .answer-chip.yes,
.rapha-exam-page .exam-question-head .answer-chip.no{
  background:#facc15!important;
  border-color:#facc15!important;
  color:#111827!important;
  box-shadow:0 12px 24px rgba(250,204,21,.22)!important;
}
.rapha-exam-page .exam-mini-stats div:nth-child(1){
  background:linear-gradient(180deg,#ecfdf5,#ffffff)!important;
  border-color:#a7f3d0!important;
  box-shadow:0 12px 30px rgba(16,185,129,.10)!important;
}
.rapha-exam-page .exam-mini-stats div:nth-child(1) b{color:#047857!important;}
.rapha-exam-page .exam-mini-stats div:nth-child(1) span{color:#0f766e!important;}
.rapha-exam-page .exam-mini-stats div:nth-child(2){
  background:linear-gradient(180deg,#eff6ff,#ffffff)!important;
  border-color:#bfdbfe!important;
  box-shadow:0 12px 30px rgba(59,130,246,.10)!important;
}
.rapha-exam-page .exam-mini-stats div:nth-child(2) b{color:#1d4ed8!important;}
.rapha-exam-page .exam-mini-stats div:nth-child(2) span{color:#315f9d!important;}
.rapha-exam-page .exam-mini-stats div:nth-child(3){
  background:linear-gradient(180deg,#fff7ed,#ffffff)!important;
  border-color:#fed7aa!important;
  box-shadow:0 12px 30px rgba(249,115,22,.10)!important;
}
.rapha-exam-page .exam-mini-stats div:nth-child(3) b{color:#c2410c!important;}
.rapha-exam-page .exam-mini-stats div:nth-child(3) span{color:#9a4b16!important;}

/* V14.22 admin pagination polish: bottom limit selector and robust page buttons */
.admin-pagination-bottom{align-items:center;flex-wrap:wrap;background:#fff;border:1px solid #dbeafe;border-radius:18px;padding:12px 14px;box-shadow:0 10px 26px rgba(15,35,75,.05)}
.admin-limit-bottom{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.admin-limit-bottom label{font-size:12px;font-weight:900;color:#5f718d;text-transform:uppercase;letter-spacing:.06em}
.admin-limit-bottom select.input-wrap{min-height:42px;padding:8px 34px 8px 12px;border-radius:12px;font-weight:900;color:#0b4fad;background:#f8fbff;border:1px solid #bfdbfe}
.admin-page-buttons{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.admin-page-buttons .btn{min-height:40px;padding:9px 13px;font-size:13px;border-radius:12px}
@media(max-width:700px){.admin-pagination-bottom{align-items:stretch}.admin-limit-bottom{justify-content:space-between}.admin-limit-bottom select.input-wrap{flex:1}.admin-page-buttons{justify-content:stretch}.admin-page-buttons .btn{flex:1}}
