/* Formative V14 — layout khusus asesmen formatif, aman untuk fungsi lama. */
  body.pa-formative-v14{
    --f14-navy:#123f5f;
    --f14-blue:#197aa5;
    --f14-gold:#f0bd35;
    --f14-bg:#eef4f7;
    --f14-surface:#fff;
    --f14-text:#172a3a;
    --f14-muted:#607482;
    --f14-line:#d4e1e8;
    margin:0;
    min-width:320px;
    overflow-x:hidden;
    background:var(--f14-bg);
    color:var(--f14-text);
    font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    line-height:1.55;
  }
  body.pa-formative-v14 .skip{
    position:fixed;left:12px;top:-80px;z-index:9999;
    padding:10px 14px;border-radius:10px;background:#fff;color:var(--f14-navy);
    box-shadow:0 8px 24px rgba(0,0,0,.18)
  }
  body.pa-formative-v14 .skip:focus{top:10px}
  body.pa-formative-v14 header.top{
    position:sticky;top:0;z-index:80;
    display:flex;align-items:center;justify-content:space-between;gap:14px;
    width:100%;padding:10px max(14px,calc((100vw - 1120px)/2));
    color:#fff;background:rgba(18,63,95,.97);border-bottom:3px solid var(--f14-gold);
    box-shadow:0 8px 24px rgba(18,63,95,.14);
    -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)
  }
  body.pa-formative-v14 header.top .brand{display:flex;align-items:center;gap:10px;min-width:0;font-weight:850}
  body.pa-formative-v14 header.top .brand img{width:44px;height:44px;flex:0 0 44px;object-fit:contain;padding:4px;border-radius:13px;background:#fff}
  body.pa-formative-v14 header.top .brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.pa-formative-v14 header.top nav{display:flex;align-items:center;gap:8px;min-width:0}
  body.pa-formative-v14 header.top nav a,
  body.pa-formative-v14 header.top nav button{
    display:inline-flex;align-items:center;justify-content:center;gap:5px;
    min-height:42px;padding:8px 12px;border:1px solid rgba(255,255,255,.45);
    border-radius:11px;background:rgba(255,255,255,.06);color:#fff;
    text-decoration:none;font:inherit;font-weight:800;white-space:nowrap;cursor:pointer
  }
  body.pa-formative-v14 header.top nav button{background:var(--f14-gold);border-color:var(--f14-gold);color:#2e2a18}
  body.pa-formative-v14 .diag-shell{
    width:min(1040px,calc(100% - 24px));margin:18px auto 72px;min-width:0
  }
  body.pa-formative-v14 .diag-hero{
    padding:clamp(20px,4vw,38px);margin-bottom:16px;border-radius:22px;
    color:#fff;background:linear-gradient(135deg,#123f5f,#1f6f94);
    box-shadow:0 14px 38px rgba(18,63,95,.16)
  }
  body.pa-formative-v14 .diag-hero .kicker{display:inline-flex;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.14);font-weight:800}
  body.pa-formative-v14 .diag-hero h1{max-width:850px;margin:10px 0 8px;font-size:clamp(2rem,5vw,3.35rem);line-height:1.12;overflow-wrap:normal;word-break:normal}
  body.pa-formative-v14 .diag-hero p{max-width:840px;margin:0;color:#e7f3f8;font-size:clamp(.98rem,2vw,1.14rem)}
  body.pa-formative-v14 .card{
    padding:clamp(16px,3vw,24px);margin:14px 0;border:1px solid var(--f14-line);border-radius:20px;
    background:var(--f14-surface);box-shadow:0 8px 24px rgba(18,63,95,.07)
  }
  body.pa-formative-v14 .card h2{margin:0 0 16px;padding-bottom:10px;border-bottom:3px solid #dceaf1;color:var(--f14-navy);font-size:clamp(1.45rem,3vw,2rem)}
  body.pa-formative-v14 .identity-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(150px,1fr) minmax(130px,.75fr);gap:12px;align-items:end}
  body.pa-formative-v14 .identity-grid label{display:grid;gap:6px;min-width:0;font-weight:800;color:#29485d}
  body.pa-formative-v14 .identity-grid input{
    width:100%;min-width:0;min-height:50px;padding:11px 13px;border:1.5px solid #afc2ce;border-radius:12px;background:#fff;color:var(--f14-text);font:inherit
  }
  body.pa-formative-v14 .question{padding:15px;margin:13px 0;border:1px solid var(--f14-line);border-radius:16px;background:#fff}
  body.pa-formative-v14 .question legend{max-width:100%;padding:0 6px;color:var(--f14-navy);font-weight:850;line-height:1.4;overflow-wrap:normal;word-break:normal}
  body.pa-formative-v14 .question legend>span:first-child{display:inline-flex;margin-right:7px;color:var(--f14-blue)}
  body.pa-formative-v14 .options{display:grid;gap:9px;margin-top:10px}
  body.pa-formative-v14 .option{display:flex;align-items:center;gap:11px;min-height:50px;padding:11px 13px;border:1px solid #d8e4ea;border-radius:12px;background:#fbfdfe;cursor:pointer}
  body.pa-formative-v14 .option:has(input:checked){border-color:var(--f14-blue);background:#eaf6fb;box-shadow:0 0 0 3px rgba(25,122,165,.12)}
  body.pa-formative-v14 .option input{flex:0 0 auto;width:21px;height:21px;margin:0;accent-color:var(--f14-blue)}
  body.pa-formative-v14 .sticky-actions{
    position:sticky;bottom:max(8px,env(safe-area-inset-bottom));z-index:30;
    display:flex;flex-wrap:wrap;gap:8px;padding:10px;margin:16px 0;
    border:1px solid rgba(18,63,95,.13);border-radius:16px;background:rgba(255,255,255,.94);
    box-shadow:0 14px 36px rgba(18,63,95,.18);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)
  }
  body.pa-formative-v14 .sticky-actions button{flex:1 1 150px;min-height:46px;padding:9px 12px;border:1px solid #b7cbd6;border-radius:11px;background:#fff;color:var(--f14-navy);font:inherit;font-weight:850;cursor:pointer}
  body.pa-formative-v14 .sticky-actions .primary{background:var(--f14-blue);border-color:var(--f14-blue);color:#fff}
  body.pa-formative-v14 .sticky-actions .danger{color:#8a2b2b;border-color:#e3bcbc;background:#fff7f7}
  body.pa-formative-v14 .score-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  body.pa-formative-v14 .score-grid article{padding:16px;border:1px solid var(--f14-line);border-radius:15px;background:#f5fafc}
  body.pa-formative-v14 .score-grid span{display:block;color:var(--f14-navy);font-size:clamp(1.65rem,4vw,2.4rem);font-weight:900}
  body.pa-formative-v14 .table-wrap{max-width:100%;overflow:auto;border-radius:14px;-webkit-overflow-scrolling:touch}
  body.pa-formative-v14 table{width:100%;border-collapse:collapse;min-width:660px}
  body.pa-formative-v14 th,body.pa-formative-v14 td{padding:11px;border:1px solid #cfdee6;text-align:left;vertical-align:top;overflow-wrap:break-word;word-break:normal}
  body.pa-formative-v14 th{background:#edf5f9;color:var(--f14-navy)}

  @media(max-width:700px){
    body.pa-formative-v14 header.top{position:relative;display:grid;gap:8px;padding:8px 8px 9px}
    body.pa-formative-v14 header.top .brand img{width:38px;height:38px;flex-basis:38px;border-radius:11px}
    body.pa-formative-v14 header.top .brand span{font-size:.93rem}
    body.pa-formative-v14 header.top nav{width:100%;overflow-x:auto;overscroll-behavior-inline:contain;padding-bottom:2px;scrollbar-width:none}
    body.pa-formative-v14 header.top nav::-webkit-scrollbar{display:none}
    body.pa-formative-v14 header.top nav>*{flex:0 0 auto;font-size:.8rem;min-height:40px;padding:7px 10px}
    body.pa-formative-v14 .diag-shell{width:calc(100% - 10px);margin:7px auto 76px}
    body.pa-formative-v14 .diag-hero{padding:18px 15px;border-radius:17px}
    body.pa-formative-v14 .diag-hero h1{font-size:clamp(1.78rem,8.2vw,2.35rem);line-height:1.14}
    body.pa-formative-v14 .diag-hero p{font-size:.94rem;line-height:1.5}
    body.pa-formative-v14 .card{padding:14px;border-radius:16px}
    body.pa-formative-v14 .identity-grid{grid-template-columns:1fr;gap:10px}
    body.pa-formative-v14 .question{padding:12px;border-radius:14px}
    body.pa-formative-v14 .option{min-height:48px;padding:10px 11px}
    body.pa-formative-v14 .sticky-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));bottom:max(7px,env(safe-area-inset-bottom));padding:8px}
    body.pa-formative-v14 .sticky-actions button{width:100%;min-width:0;min-height:44px;padding:8px;font-size:.84rem}
    body.pa-formative-v14 .score-grid{grid-template-columns:1fr}
    body.pa-formative-v14 .profile .table-wrap{overflow:visible}
    body.pa-formative-v14 .profile table{display:block;min-width:0}
    body.pa-formative-v14 .profile thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
    body.pa-formative-v14 .profile tbody,body.pa-formative-v14 .profile tr,body.pa-formative-v14 .profile td,body.pa-formative-v14 .profile th{display:block;width:100%}
    body.pa-formative-v14 .profile tr{padding:10px;margin-bottom:10px;border:1px solid var(--f14-line);border-radius:13px;background:#fff}
    body.pa-formative-v14 .profile td,body.pa-formative-v14 .profile th{border:0;border-bottom:1px solid #e7eef2;padding:9px 5px}
    body.pa-formative-v14 .profile tr>*:last-child{border-bottom:0}
  }
  @media print{
    body.pa-formative-v14 header.top,body.pa-formative-v14 .sticky-actions,body.pa-formative-v14 .roster-quick-access{display:none!important}
    body.pa-formative-v14 .diag-shell{width:100%;margin:0}
    body.pa-formative-v14 .diag-hero{background:#fff!important;color:#000!important;box-shadow:none;border:1px solid #bbb}
  }
@media(max-width:700px){
  body.pa-formative-v14 .profile tr>*::before{display:block;margin-bottom:3px;color:#647985;font-size:.7rem;font-weight:850;letter-spacing:.04em;text-transform:uppercase}
  body.pa-formative-v14 .profile tr>*:nth-child(1)::before{content:"Tujuan pembelajaran"}
  body.pa-formative-v14 .profile tr>*:nth-child(2)::before{content:"Skor"}
  body.pa-formative-v14 .profile tr>*:nth-child(3)::before{content:"Status"}
  body.pa-formative-v14 .profile tr>*:nth-child(4)::before{content:"Tindak lanjut"}
}
