/* Local typing font. Install the licensed KrutiDev file separately in assets/fonts/. */
@font-face{font-family:"KrutiDev010Local";src:url("../fonts/KrutiDev010.woff2") format("woff2");font-display:swap;font-weight:400;font-style:normal}
@font-face{font-family:"PoppinsLocal";src:url("../fonts/PoppinsLocal.woff2") format("woff2");font-display:swap;font-weight:400;font-style:normal}
@font-face{font-family:"PoppinsLocal";src:url("../fonts/Poppins-SemiBold.woff2") format("woff2");font-display:swap;font-weight:600;font-style:normal}
@font-face{font-family:"PoppinsLocal";src:url("../fonts/Poppins-Bold.woff2") format("woff2");font-display:swap;font-weight:700;font-style:normal}
:root{--bg:#eef4fb;--card:#fff;--ink:#10223d;--muted:#667892;--line:#d5e2f1;--line2:#e8eef6;--blue:#2764ed;--green:#12a84f;--teal:#0b9bb6;--red:#e33b45;--navy:#15243b;--shadow:0 8px 26px rgba(35,70,120,.06)}*{box-sizing:border-box}[hidden]{display:none!important}html{font-size:16px}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif}a{text-decoration:none;color:var(--blue)}button,input,select,textarea{font:inherit}.top{height:64px;background:#fff;border-bottom:1px solid var(--line2)}.top-in,.nav-in{max-width:1280px;height:100%;margin:auto;padding:0 22px;display:flex;align-items:center}.top-in{justify-content:space-between}.brand{display:flex;align-items:center;gap:9px;font-weight:950;color:#245ce0;font-size:18px}.brand b{width:32px;height:32px;border-radius:10px;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:12px}.brand i{font-style:normal;color:#7b8da6}.account{display:flex;align-items:center;gap:9px;color:#60718a;font-size:12px}.account span{padding:4px 7px;border-radius:999px;background:#eef4ff;color:#2458cb;font-weight:850}.account a{font-weight:800}.nav{height:46px;background:#fff;border-bottom:1px solid var(--line)}.nav a{height:46px;display:flex;align-items:center;padding:0 13px;color:#3c506d;font-weight:800;border-bottom:3px solid transparent}.nav a.active,.nav a:hover{color:var(--blue);border-color:var(--blue);background:#fbfdff}.wrap{max-width:1280px;margin:22px auto;padding:0 22px}.page-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}.page-head h1{margin:0 0 3px;font-size:27px;letter-spacing:-.02em}.page-head p{margin:0;color:var(--muted);font-weight:600}.actions{display:flex;gap:8px;flex-wrap:wrap}.btn,button{border:0;border-radius:10px;min-height:38px;padding:8px 13px;background:var(--blue);color:#fff;font-weight:850;cursor:pointer}.btn.green,button.green{background:var(--green)}.btn.ghost,button.ghost{background:#fff;color:#334155;border:1px solid #cad8e8}.btn.red,button.red{background:var(--red)}.card{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow);padding:16px;margin-bottom:14px}.alert{padding:10px 13px;border-radius:10px;margin-bottom:12px;font-weight:700}.alert.ok{background:#eafbf0;color:#08743a;border:1px solid #afe7c3}.alert.err{background:#fff1f2;color:#b42318;border:1px solid #fecdd3}.filters{display:flex;gap:7px;align-items:center;flex-wrap:wrap;padding:10px;background:#f8fbff;border:1px solid var(--line2);border-radius:12px;margin-bottom:10px}.filters input{flex:1 1 280px}.filters select{flex:0 0 150px;width:150px}input,select,textarea{width:100%;border:1px solid #cbd8e8;border-radius:9px;background:#fff;color:#132740;outline:none;padding:9px 10px}input,select{height:39px}textarea{min-height:150px;resize:vertical;line-height:1.65}input:focus,select:focus,textarea:focus{border-color:#79a3f4;box-shadow:0 0 0 3px rgba(39,100,237,.09)}.count-line{font-size:11px;color:#667892;margin:7px 2px}.dense{border:1px solid var(--line);border-radius:12px;overflow:auto;background:#fff}.dhead,.drow{display:grid;align-items:center;gap:9px;min-width:940px}.dhead{min-height:38px;padding:0 11px;background:var(--navy);color:#fff;font-size:10px;text-transform:uppercase;font-weight:900}.drow{min-height:57px;padding:7px 11px;border-top:1px solid var(--line2)}.drow:hover{background:#fbfdff}.dcheck input{width:14px;height:14px;margin:0}.title{font-weight:900;font-size:13px;line-height:1.25}.sub{font-size:10.5px;color:#718198;margin-top:2px}.typing{background:#eaf1ff;color:#2457d6}.steno{background:#e9f9f1;color:#08754b}.published,.active{background:#dcfce7;color:#08743a}.draft{background:#fef3c7;color:#92400e}.unpublished,.disabled{background:#fee2e2;color:#b42318}.manage{display:flex;gap:5px;justify-content:flex-end;align-items:center}.ico{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;max-width:32px!important;max-height:32px!important;padding:0!important;border-radius:9px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font:14px/1 Arial,"Noto Color Emoji","Segoe UI Emoji",sans-serif!important;border:1px solid #d4dfec!important;background:#fff!important;color:#17243a!important;overflow:hidden!important}.ico.view{background:#f7fbff!important}.ico.edit{background:#fff7ed!important;border-color:#fdc98c!important}.ico.lock{background:#fff1f2!important;border-color:#fecaca!important}.ico.rank{background:#f5f0ff!important;border-color:#ddccff!important}.ico.del{background:#fff1f2!important;border-color:#fecaca!important}.bulk{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:7px 9px;margin-top:7px;background:#f8fafc;border:1px solid var(--line);border-radius:10px;font-size:11px}.bulk .mini{display:flex;gap:5px}.bulk .mini button{width:30px;height:29px;min-height:29px;padding:0;font-size:13px}.pagination{display:flex;justify-content:center;gap:5px;margin-top:12px;flex-wrap:wrap}.page{min-width:33px;height:33px;padding:0 9px;display:grid;place-items:center;background:#fff;border:1px solid var(--line);border-radius:9px;color:#34475f;font-weight:800}.page.on{background:var(--blue);color:#fff}.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:11px;margin-bottom:14px}.stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px;box-shadow:var(--shadow)}.stat small{display:block;color:#718198;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.stat b{display:block;font-size:28px;margin-top:5px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.section-title h2{margin:0;font-size:18px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;min-width:720px}th,td{padding:9px 10px;border-bottom:1px solid var(--line2);text-align:left;font-size:12px}th{background:#f7faff;color:#52647d;text-transform:uppercase;font-size:10px;letter-spacing:.04em}tr:last-child td{border-bottom:0}.form-card{max-width:920px;margin:0 auto 14px}.field{margin-bottom:13px}.field label{display:block;font-weight:850;font-size:12px;margin-bottom:5px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-actions{display:flex;justify-content:flex-end;gap:7px}.font-english{font-family:"PoppinsLocal","Poppins","Noto Sans","Segoe UI",Arial,sans-serif}.font-mangal{font-family:"Noto Sans Devanagari","Nirmala UI","Mangal","Segoe UI",Arial,sans-serif}.font-krutidev{font-family:"KrutiDev010Local","Kruti Dev 010",serif;font-size:1.12em}.master-preview{max-height:430px;overflow:auto;white-space:pre-wrap;line-height:1.85;font-size:17px;padding:4px}.audio audio{width:100%}.result-head{text-align:center;background:#fff;border:1px solid var(--line);border-radius:15px;padding:15px;margin-bottom:12px}.result-head h1{margin:0 0 5px}.acc{color:#16a34a}.err{color:#dc2626}@media(max-width:900px){.grid4{grid-template-columns:repeat(2,1fr)}.filters select{flex:1 1 140px;width:auto}.setup-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.wrap{padding:0 11px}.top-in,.nav-in{padding:0 11px}.account strong{display:none}.nav-in{overflow:auto}.page-head{align-items:flex-start;flex-direction:column}.actions{width:100%}.actions .btn{flex:1}.filters{display:grid;grid-template-columns:1fr 1fr}.filters input{grid-column:1/-1}.filters button{width:100%}.dense{overflow-x:auto}.grid4{grid-template-columns:1fr 1fr}.form-grid,.setup-grid{grid-template-columns:1fr}.exam-only .wrap{padding:7px}.exambar{align-items:flex-start;flex-direction:column}.master-box{height:52vh}.typing-box textarea{height:5em;min-height:5em}.examfoot{align-items:stretch;flex-direction:column}.examfoot .btn,.examfoot button{width:100%}}

body.exam-mode{overflow:hidden!important}
body.exam-mode .top,body.exam-mode .nav{display:none!important}
body.exam-mode .wrap{
  max-width:none!important;
  width:100%!important;
  height:100dvh!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}

#exam{
  height:100dvh!important;
  min-height:100dvh!important;
  max-height:100dvh!important;
  margin:0!important;
  padding:10px!important;
  display:grid!important;
  grid-template-rows:auto minmax(0,1fr)!important;
  gap:10px!important;
  overflow:hidden!important;
}

#exam .examtop{
  min-height:56px!important;
  margin:0!important;
  flex:0 0 auto!important;
}

#exam form{
  min-height:0!important;
  height:100%!important;
  display:grid!important;
  grid-template-rows:minmax(0,1fr) auto auto!important;
  gap:10px!important;
  overflow:hidden!important;
}

#master{
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
}

#exam .master-box,
#exam .reference-box,
#exam .mastermatter{
  min-height:0!important;
  height:auto!important;
  max-height:none!important;
  overflow:auto!important;
}

#exam .typing-box{
  min-height:0!important;
  height:auto!important;
}

#typed{
  display:block!important;
  width:100%!important;
  height:96px!important;
  min-height:96px!important;
  max-height:96px!important;
  resize:none!important;
  overflow:auto!important;
}


#exam .exammeta{
  min-width:0!important;
  display:flex!important;
  justify-content:center!important;
  gap:8px!important;
  flex-wrap:wrap!important;
  font-size:11px!important;
}

#exam .examfoot button{
  min-height:42px!important;
  white-space:nowrap!important;
}

@media (max-height:760px){
  #exam{padding:7px!important;gap:7px!important}
  #exam .examtop{min-height:48px!important}
  #typed{height:78px!important;min-height:78px!important;max-height:78px!important}
  #exam .examfoot{min-height:42px!important}
  #exam .examfoot button{min-height:38px!important;padding:7px 11px!important}
}
@media (max-height:620px){
  #exam .examtop{min-height:44px!important}
  #typed{height:64px!important;min-height:64px!important;max-height:64px!important}
  #exam .exammeta{font-size:10px!important;gap:5px!important}
}
@media (max-width:700px){
  .desktop-learner-username,.desktop-learner-username-head{display:none!important}

  #exam{padding:7px!important}
  #exam .examfoot{
    grid-template-columns:1fr 1fr!important;
  }
  #exam .exammeta{
    grid-column:1/-1!important;
    grid-row:1!important;
    order:-1!important;
  }
  #exam .examfoot button{width:100%!important}
}


#setup[hidden],#exam[hidden]{display:none!important}
#setup:not([hidden]){display:block!important}


body.test-running .top,
body.test-running .nav{display:none!important}

body.test-running .wrap{
  max-width:none!important;
  width:100%!important;
  height:100dvh!important;
  min-height:100dvh!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}

#exam:not([hidden]){display:grid !important;height:100dvh !important;min-height:100dvh !important;max-height:100dvh !important;grid-template-rows:auto minmax(0,1fr) !important;gap:10px !important;padding:10px !important;overflow:hidden !important;}

/* typing: master uses remaining height, typing area stays short */

#exam:not([hidden]) form{
  min-height:0!important;
  height:100%!important;
  display:grid!important;
  grid-template-rows:auto auto!important;
  align-content:end!important;
  gap:10px!important;
}
#exam:not([hidden]) .typing-box{height:auto!important;min-height:0!important}
#exam:not([hidden]) #typed{
  height:96px!important;
  min-height:96px!important;
  max-height:96px!important;
  resize:none!important;
}
#exam:not([hidden]) .examfoot{
  min-height:46px!important;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
}

/* Steno has no master panel; typing area gets practical workspace */
#exam:not([hidden]) .typing-box.full{
  align-self:stretch!important;
}
#exam:not([hidden]) .typing-box.full #typed,
#exam:not([hidden]) .typing-box.full textarea{
  height:min(58vh,520px)!important;
  min-height:240px!important;
  max-height:none!important;
}

@media(max-height:760px){
  #exam:not([hidden]){padding:7px!important;gap:7px!important}
  #exam:not([hidden]) #typed{height:76px!important;min-height:76px!important;max-height:76px!important}
  #exam:not([hidden]) .typing-box.full #typed,
  #exam:not([hidden]) .typing-box.full textarea{height:min(52vh,380px)!important;min-height:180px!important}
}
@media(max-width:700px){
  #exam:not([hidden]) .examfoot{grid-template-columns:1fr 1fr!important}
  #exam:not([hidden]) .exammeta{grid-column:1/-1!important;grid-row:1!important}
  #exam:not([hidden]) .examfoot button{width:100%!important}
}


/* Toolbar controls must always be legible */
#exam .examtools{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:7px!important;
  flex-wrap:nowrap!important;
}
#exam .tool{
  box-sizing:border-box!important;
  min-height:36px!important;
  height:36px!important;
  padding:0 12px!important;
  border:1px solid #cbd9ec!important;
  border-radius:10px!important;
  background:#ffffff!important;
  color:#12213a!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:34px!important;
  opacity:1!important;
  visibility:visible!important;
  text-indent:0!important;
  -webkit-text-fill-color:#12213a!important;
}
#exam button.tool{
  width:auto!important;
  min-width:44px!important;
  max-width:none!important;
  cursor:pointer!important;
}
#exam .font-tool{
  color:#1d4ed8!important;
  background:#f7faff!important;
  border-color:#bfd2ff!important;
  font-size:14px!important;
}
#exam .master-font-tool{
  color:#b45309!important;
  background:#fff7ed!important;
  border-color:#fdba74!important;
}
#exam .tool.timer{
  color:#087a3d!important;
  background:#ecfdf3!important;
  border-color:#b7ebca!important;
  font-size:17px!important;
  min-width:76px!important;
}

/* Exam header itself stays compact */
#exam .exambar{
  min-height:54px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin:0!important;
  padding:8px 12px!important;
}

/* TYPING: master matter takes remaining height, typing area short */
#exam:not([hidden]):has(.typing-box:not(.full)){
  grid-template-rows:auto minmax(0,1fr)!important;
}
#exam:not([hidden]) .master-box{min-height:0 !important;overflow:auto !important;align-self:stretch !important;}

/* STENO: no artificial spacer; textarea starts immediately under toolbar */
#exam:not([hidden]):has(.typing-box.full){
  grid-template-rows:auto minmax(0,1fr)!important;
}
#exam:not([hidden]):has(.typing-box.full) form{
  height:100%!important;
  min-height:0!important;
  display:grid!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  align-content:stretch!important;
  gap:10px!important;
}
#exam:not([hidden]):has(.typing-box.full) .typing-box.full{
  min-height:0!important;
  height:100%!important;
  align-self:stretch!important;
  display:block!important;
}
#exam:not([hidden]):has(.typing-box.full) .typing-box.full #typed{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  resize:none!important;
  display:block!important;
}

/* Typing textarea remains compact */
#exam:not([hidden]):has(.typing-box:not(.full)) form{
  height:auto!important;
  min-height:0!important;
  display:grid!important;
  grid-template-rows:auto auto!important;
  align-content:end!important;
  gap:10px!important;
}
#exam:not([hidden]):has(.typing-box:not(.full)) #typed{
  height:96px!important;
  min-height:96px!important;
  max-height:96px!important;
}

/* Footer always visible */
#exam .examfoot{position:relative !important;bottom:auto !important;left:auto !important;right:auto !important;z-index:20 !important;display:grid !important;grid-template-columns:auto minmax(0,1fr) auto !important;align-items:center !important;gap:10px !important;background:var(--bg) !important;margin:0 !important;min-height:48px !important;padding:0 !important;}

/* Fallback for browsers without :has support: full class itself must stretch */
#exam .typing-box.full{
  flex:1 1 auto!important;
  min-height:0!important;
}
#exam .typing-box.full #typed{
  min-height:260px!important;
}

/* Smaller-height screens */
@media(max-height:760px){
  #exam .exambar{min-height:48px!important;padding:6px 9px!important}
  #exam .tool{height:32px!important;min-height:32px!important;line-height:30px!important;padding:0 9px!important}
  #exam button.tool{min-width:40px!important}
  #exam:not([hidden]):has(.typing-box:not(.full)) #typed{
    height:76px!important;min-height:76px!important;max-height:76px!important;
  }
}
@media(max-width:720px){
  #exam .exambar{align-items:flex-start!important;flex-direction:column!important}
  #exam .examtools{width:100%!important;justify-content:flex-start!important;overflow-x:auto!important;padding-bottom:2px!important}
  #exam .tool{flex:0 0 auto!important}
}

/* Topic + replacement readability */


/* ===== Dense sortable lists + rank/review ===== */
.sort-head{color:inherit!important;text-decoration:none!important;white-space:nowrap}.sort-head span{font-size:9px;opacity:.72;margin-left:2px}
.dbid{font-size:10px;color:#718198;font-weight:700}.serial{font-variant-numeric:tabular-nums;color:#52647d;font-weight:800}
.dcheck input,.dhead input[type=checkbox],input[data-select-all]{width:13px!important;height:13px!important;min-width:13px!important;min-height:13px!important;margin:0!important;padding:0!important}
.inline-form{display:inline-flex;margin:0}


.history .dhead,.history .drow{grid-template-columns:40px minmax(220px,1.5fr) 85px 90px 110px 145px 55px;min-width:800px;}

.compact-table th,.compact-table td{padding:8px 9px}
.result-details{margin-top:12px;display:grid;gap:9px}.result-details details{background:#fff;border:1px solid var(--line);border-radius:13px;overflow:hidden}.result-details summary{cursor:pointer;list-style:none;padding:11px 14px;font-weight:900;display:flex;justify-content:space-between;align-items:center}.result-details summary::-webkit-details-marker{display:none}.result-details summary span{font-size:11px;color:#718198;font-weight:700}.result-details details[open] summary{border-bottom:1px solid var(--line2);background:#f8fbff}.details-body{padding:12px}.text-snapshot{white-space:pre-wrap;line-height:1.9;font-size:16px;text-align:justify}.current-rank{background:#fff7ed!important}
@media(max-width:700px){.result-details summary{padding:10px 11px}.details-body{padding:9px}}
/* ===== Simple System Service ===== */
.service-page{width:100%;max-width:none;margin:0}
.service-health{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:17px 19px;border-radius:15px;margin-bottom:12px;border:1px solid var(--line);background:#fff}
.service-health small{display:block;text-transform:uppercase;font-size:10px;font-weight:900;letter-spacing:.06em;margin-bottom:3px}.service-health strong{font-size:23px}.service-health.good{border-color:#b8e7ca;background:#f1fcf5}.service-health.good strong{color:#08743a}.service-health.warn{border-color:#f7d58a;background:#fffbeb}.service-health.warn strong{color:#a16207}.service-health.bad{border-color:#fecaca;background:#fff1f2}.service-health.bad strong{color:#b42318}.health-note{font-size:12px;font-weight:700;color:#52647d;text-align:right}
.service-stats{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-bottom:12px}.service-stat{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}.service-stat small{font-size:10px;text-transform:uppercase;font-weight:900;color:#718198}.service-stat b{font-size:27px;display:block;margin:3px 0}.service-stat span{font-size:11px;color:#718198}
.service-actions{padding:8px 16px}.service-actions .section-title{padding:8px 0}.clean-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;padding:13px 0;border-top:1px solid var(--line2)}.clean-row:first-of-type{border-top:0}.clean-row b{font-size:14px}.clean-row p{margin:3px 0 0;color:#667892;font-size:12px}.service-btn{min-width:125px}.soft-btn{background:#fff!important;color:#334155!important;border:1px solid #cbd8e8!important}.service-btn:disabled{opacity:.45;cursor:not-allowed}
.service-tip{display:flex;gap:8px;align-items:center;padding:12px 14px;border:1px solid #bfd5ff;background:#f4f8ff;border-radius:12px;font-size:12px;color:#334155}
@media(max-width:650px){.service-health{align-items:flex-start;flex-direction:column}.health-note{text-align:left}.service-stats{grid-template-columns:1fr}.clean-row{grid-template-columns:1fr}.service-btn{width:100%}.service-tip{align-items:flex-start;flex-direction:column}}

/* ===== Result horizontal tabs ===== */

.result-tabbar{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px;background:#f8fbff;border-bottom:1px solid var(--line)}
.result-tab{min-height:36px!important;padding:7px 14px!important;border:1px solid #cbd8e8!important;border-radius:9px!important;background:#fff!important;color:#334155!important;font-size:12px!important;font-weight:850!important}
.result-tab:hover{border-color:#9db8ea!important;color:#2457d6!important}.result-tab.active{background:#eef3ff!important;color:#2457d6!important;border-color:#8fb0ff!important}
.result-tab span{display:inline-grid;place-items:center;min-width:18px;height:18px;margin-left:4px;padding:0 5px;border-radius:999px;background:#e9eef7;font-size:9px}

@media(max-width:650px){.result-tabbar{justify-content:flex-start;overflow-x:auto}.result-tab{flex:0 0 auto;white-space:nowrap}.result-tabpanel{padding:9px}}


/* Generic .active is used by status pills elsewhere; result panels must stay neutral. */

.result-tabpanel{display:none;padding:12px;background:transparent !important;}
.result-tabpanel.active{display:block !important;background:transparent !important;}
/* Generic .active status styling must not leak green text into result panels. */
.result-tabpanel.active{color:var(--ink)!important;}

/* Ranking should use the same flat panel surface as User Input / Master Paragraph. */

.result-tabpanel table{border:0!important;background:transparent!important}
.result-tabpanel th{background:#f7faff!important}
/* Keep only the arrow outside KrutiDev encoding. */
.changed{white-space:nowrap}


/* Login branding */
.login-head{justify-content:center;text-align:center}
.login-head>div{width:100%}
.login-head h1,.login-head p{text-align:center}

/* KrutiDev readability: +3px versus Unicode on typing/result views */
.compare.font-krutidev{font-size:21px!important}
.result-tabpanel .text-snapshot.font-krutidev{font-size:19px!important}


/* ===== Reference-hidden typing workspace ===== */
#exam.reference-hidden:not([hidden]){
  grid-template-rows:auto minmax(0,1fr)!important;
}
#exam.reference-hidden #master{display:none!important}
#exam.reference-hidden form{
  height:100%!important;
  min-height:0!important;
  display:grid!important;
  grid-template-rows:minmax(0,1fr) auto!important;
  align-content:stretch!important;
  gap:10px!important;
}
#exam.reference-hidden .typing-box.full{
  height:100%!important;
  min-height:0!important;
  margin-top:0!important;
}
#exam.reference-hidden .typing-box.full #typed{
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  resize:none!important;
}

/* Compact replacement marker; force symbol outside KrutiDev mapping. */
.change-arrow{display:inline-block !important;color:#64748b !important;font-weight:900 !important;line-height:1 !important;padding:0 .06em !important;margin:0 !important;font-family:Arial,"Segoe UI Symbol","Noto Sans Symbols",sans-serif !important;font-size:.86em !important;letter-spacing:-.04em !important;}

/* ===== Maintenance command lock/progress ===== */
.service-busy[hidden]{display:none!important}
.service-busy{position:fixed;inset:0;z-index:9999;background:rgba(15,23,42,.35);display:grid;place-items:center;padding:20px}
.service-busy-box{width:min(440px,92vw);background:#fff;border:1px solid #cbd8e8;border-radius:15px;padding:18px;box-shadow:0 18px 60px rgba(15,23,42,.18);text-align:center}
.service-busy-box b{display:block;font-size:16px;margin-bottom:4px}.service-busy-box span{font-size:12px;color:#64748b}
.service-progress{height:8px;background:#e8eef7;border-radius:999px;overflow:hidden;margin-top:14px}
.service-progress i{display:block;width:38%;height:100%;border-radius:999px;background:#2f67e9;animation:serviceProgress 1.15s ease-in-out infinite}
@keyframes serviceProgress{0%{transform:translateX(-110%)}50%{transform:translateX(110%)}100%{transform:translateX(290%)}}

/* Master test view: one stored newline = one visible line break. */
.master-preview.full-view{max-height:none !important;height:auto !important;overflow:visible !important;white-space:pre-wrap !important;}

body.steno-nav-off #typed{cursor:none!important;user-select:none!important;caret-color:#000!important}body.steno-nav-off #typed::selection{background:transparent!important;color:inherit!important}.space-error .rightword{color:#111}.space-error .wrongword{color:#0b9bb6;font-weight:850}.space-error .change-arrow{color:#0b9bb6;font-weight:900}.space-skip{color:#64748b;font-size:13px}


.font-hindi{font-family:"Noto Sans Devanagari","Nirmala UI","Mangal","Segoe UI",Arial,sans-serif}

/* Steno V2 category: Hyphen Error */


.hyphen-error .rightword{color:#111}
.hyphen-error .wrongword,.hyphen-error .change-arrow{color:#7c3aed;font-weight:850}


/* ===== Lightweight result metric tables ===== */
.result-summary-table{width:100%;max-width:100%;margin:0 0 14px;border:1px solid #d7e2ef;border-radius:12px;overflow:hidden;background:#fff}
.result-summary-table table{width:100%;min-width:0!important;max-width:100%;border-collapse:collapse;table-layout:fixed}
.result-summary-table th{padding:8px 3px;background:#f7f9fc;color:#5c708d;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.025em;text-align:center;border-right:1px solid #d7e2ef;border-bottom:1px solid #d7e2ef;line-height:1.08;white-space:normal;overflow-wrap:anywhere}
.result-summary-table th:last-child{border-right:0}
.result-summary-table td{padding:10px 3px;text-align:center;font-size:15px;font-weight:900;color:#102746;background:#fff;border-right:1px solid #d7e2ef;line-height:1.1;white-space:normal;overflow-wrap:anywhere}
.result-summary-table td:last-child{border-right:0}
.metric-label{display:flex;align-items:center;justify-content:center;gap:3px;min-width:0}.metric-emoji{font-size:12px;line-height:1;flex:0 0 auto}
.wrong-breakdown th:nth-child(1),.wrong-breakdown td:nth-child(1){color:#a81230}.wrong-breakdown th:nth-child(2),.wrong-breakdown td:nth-child(2){color:#08743a}.wrong-breakdown th:nth-child(3),.wrong-breakdown td:nth-child(3){color:#145fc8}.wrong-breakdown th:nth-child(4),.wrong-breakdown td:nth-child(4){color:#9a4d00}.wrong-breakdown th:nth-child(5),.wrong-breakdown td:nth-child(5){color:#8a2bb5}.wrong-breakdown th:nth-child(6),.wrong-breakdown td:nth-child(6){color:#08758d}.wrong-breakdown th:nth-child(7),.wrong-breakdown td:nth-child(7){color:#6741c7}.wrong-breakdown th:nth-child(8),.wrong-breakdown td:nth-child(8){color:#52647d}.wrong-breakdown th:nth-child(9),.wrong-breakdown td:nth-child(9){color:#8b5b0b}
.result-summary-caption{padding:7px 10px;background:#fbfcfe;border-bottom:1px solid var(--line);font-size:11px;font-weight:850;color:#475467}
@media(max-width:720px){
  .result-summary-table{margin-bottom:9px;border-radius:8px}
  .result-summary-table table{width:100%;min-width:0!important;max-width:100%;table-layout:fixed;border-collapse:collapse}
  .result-summary-table th{padding:5px 1px;font-size:5.8px;line-height:1.02;letter-spacing:0;white-space:normal;overflow-wrap:anywhere}
  .result-summary-table td{padding:7px 1px;font-size:9px;line-height:1.05;white-space:normal;overflow-wrap:anywhere}
  .metric-label{display:grid;gap:1px;place-items:center}.metric-emoji{font-size:9px}
  .wrong-breakdown th{font-size:5.2px}.wrong-breakdown td{font-size:8.7px}
  .typing-performance-summary th{font-size:5.2px}.typing-performance-summary td{font-size:8px}
}


/* ===== Intelligent V2 comparison colors ===== */
.v2-compare .cmp-token{display:inline;line-height:1.9}
.v2-compare .miss,.v2-compare .err-missing{background:#fee2e2;color:#b42318;border-radius:4px;padding:1px 2px}
.v2-compare .add,.v2-compare .punct-extra{background:#dcfce7;color:#08743a;border-radius:4px;padding:1px 2px}

.v2-compare .err-pair-other .bad,.v2-compare .err-other{color:#2563eb}
.v2-compare .err-pair-number .bad,.v2-compare .err-number{color:#d97706}

.v2-compare .err-pair-space .bad,.v2-compare .err-space{color:#0891b2}
.v2-compare .comma-hi{background:#fef3c7;color:#b45309;border-radius:3px;padding:0 1px}
.v2-compare .viram-hi{background:#e0e7ff;color:#4338ca;border-radius:3px;padding:0 1px}
.v2-compare .right{color:#111827}.v2-compare .err-arrow{font-family:Arial,"Segoe UI Symbol",sans-serif;padding:0 .08em}

/* Intelligence */
.intelligence-grid{grid-template-columns:180px 1fr 1fr}.intelligence-add .form-actions{justify-content:flex-end}.pill{align-items:center;display:inline-block;padding:3px 7px;border-radius:999px;background:#eef3ff;color:#3157a4;font-size:10px;font-weight:800;}@media(max-width:760px){.intelligence-grid{grid-template-columns:1fr}}

/* V2 policy reconciliation */


.v2-compare .err-pair-hyphen .bad,.v2-compare .err-pair-hyphen .err-arrow{color:#7c3aed}
.v2-compare .ignored-space{background:transparent!important;color:#64748b!important;font-weight:500!important;opacity:.75}
.v2-compare .ignored-space .bad{color:#64748b!important;font-weight:500!important}

/* ===== Result color guide + default Error List tab ===== */

.error-color-legend span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.error-color-legend i{width:9px;height:9px;border-radius:50%;display:inline-block;background:currentColor}
.legend-missing{color:#dc2626!important}
.legend-extra{color:#16a34a!important}
.legend-change{color:#2563eb!important}
.legend-vachan{color:#d97706!important}

.legend-space{color:#0891b2!important}
.legend-hyphen{color:#7c3aed!important}


.error-items{display:flex;flex-wrap:wrap;gap:6px;padding:10px}
.error-items>span{
  display:inline-block;max-width:100%;padding:4px 7px;border:1px solid #e1e7ef;
  border-radius:7px;background:#fff;color:#26364c;font-size:12px;font-weight:700;
  word-break:break-word
}
.error-items em,.error-empty{display:block;padding:11px;color:#94a3b8;font-size:11px;font-style:normal}
.error-list-card.legend-missing .error-list-head{border-left-color:#dc2626}
.error-list-card.legend-extra .error-list-head{border-left-color:#16a34a}
.error-list-card.legend-change .error-list-head{border-left-color:#2563eb}
.error-list-card.legend-vachan .error-list-head{border-left-color:#d97706}

.error-list-card.legend-space .error-list-head{border-left-color:#0891b2}
.error-list-card.legend-hyphen .error-list-head{border-left-color:#7c3aed}
@media(max-width:700px){.error-list-grid{grid-template-columns:1fr}.error-color-legend{justify-content:flex-start}}

/* ===== Error List compact vertical layout ===== */
.error-list-grid{grid-template-columns:repeat(2,minmax(0,1fr));display:flex !important;flex-direction:column !important;gap:8px !important;}
.error-list-card{border:1px solid var(--line);border-radius:11px;background:#fff;overflow:hidden;color:#334155 !important;width:100% !important;min-width:0 !important;}
.error-inline-list{
  padding:10px 14px!important;
  color:#26364c!important;
  font-size:13px!important;
  font-weight:650!important;
  line-height:1.75!important;
  word-break:normal!important;
  overflow-wrap:anywhere!important;
  white-space:normal!important;
}
.error-list-head{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f8fafc;border-bottom:1px solid var(--line);border-left:4px solid currentColor;padding:7px 12px !important;}
.error-list-head b{color:currentColor;font-size:12px !important;}
.error-list-head span{padding:0 6px;border-radius:999px;display:inline-grid;place-items:center;background:#eef2f7;color:#475569;font-size:10px;font-weight:900;min-width:24px !important;height:21px !important;}
@media(max-width:700px){
  .error-inline-list{font-size:12px!important;padding:9px 11px!important}
}

/* Available Tests: serial + test + type + language + topic + upload date + time + action */


/* Result comparison font controls */

.compare-font-tools{display:flex;gap:5px}

.compare-font-tools button:hover{border-color:#7da6f5;background:#f7faff}

/* Secure learner dictation player: custom controls remove native Save Audio UI */
.secure-audio-media{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}

.secure-audio-play,.secure-audio-mute{height:36px;padding:0;border:1px solid #cbd8e8;border-radius:9px;background:#fff;color:#17243a;font-weight:900;cursor:pointer}
.secure-audio-seek,.secure-audio-volume{height:auto!important;padding:0!important;border:0!important;box-shadow:none!important}
.secure-audio-time{font-size:11px;font-weight:800;color:#42546e;text-align:center;white-space:nowrap}
@media(max-width:620px){.secure-audio-controls{grid-template-columns:40px 1fr 82px 36px}.secure-audio-volume{display:none}}

/* Supreme Global Control */
.global-settings-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.global-settings-grid small{display:block;margin-top:5px;color:#74839a;font-size:10px;line-height:1.35}
.control-note{margin:0 0 10px;padding:8px 10px;border:1px solid #dbe5f2;border-radius:9px;background:#f8fbff;color:#53657d;font-size:11px}
@media(max-width:900px){.global-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.global-settings-grid{grid-template-columns:1fr}}

/* ===== Global Poppins typography; KrutiDev remains test-content specific ===== */
html,body,button,input,select,textarea,table{
  font-family:"PoppinsLocal","Poppins","Noto Sans Devanagari","Noto Sans","Segoe UI",Arial,sans-serif!important;
}
.font-english,.font-mangal,.font-hindi{
  font-family:"PoppinsLocal","Poppins","Noto Sans Devanagari","Noto Sans","Segoe UI",Arial,sans-serif!important;
}
/* KrutiDev must remain encoded in its own font. */
.font-krutidev,.font-krutidev *{
  font-family:"KrutiDev010Local","Kruti Dev 010",serif!important;
}

/* Gender gets its own clearly distinct pink; Hyphen remains violet. */
.legend-gender{color:#f40afc !important;}
.error-list-card.legend-gender .error-list-head{border-left-color:#f40afc !important;}
.v2-compare .err-pair-gender .bad,.v2-compare .err-gender{color:#f40afc !important;}
.v2-compare .err-pair-gender .err-arrow{color:#f40afc!important}

/* Target result state */
.target-status{font-weight:900!important}
.target-achieve{color:#16a34a!important}
.target-fail{color:#dc2626!important}
.target-nil{color:#64748b!important}
.target-status small{display:inline-block;margin-left:3px;font-size:9px;color:inherit;font-weight:800}

/* Inline structural Hyphen review */

.inline-hyphen-review .bad,.inline-hyphen-review .err-arrow{color:#7c3aed!important;font-weight:850}

/* Old policy list is intentionally retired; Error List + Compare Matter are the two review surfaces. */


.field small{display:block;margin-top:4px;color:#74839a;font-size:10px;line-height:1.35}

/* V2 weighted penalty explanation */


/* ===== Full-width result explanation + polished compare bar ===== */


.compare-title-chip{
  display:inline-flex!important;
  align-items:center!important;
  min-height:32px!important;
  padding:0 12px!important;
  border:1px solid #cbd8e8!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#17243a!important;
  font-size:11px!important;
  font-weight:900!important;
  box-shadow:0 1px 2px rgba(15,23,42,.03)!important;
}
.compare-font-tools button{width:38px;padding:0;border:1px solid #cbd8e8;border-radius:9px;background:#fff;color:#17243a;font-weight:900;cursor:pointer;min-width:42px !important;height:32px !important;}

/* Supreme Global Limits should align with every other page section */
.global-limits-card{
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
  margin-left:0!important;
  margin-right:0!important;
}
.global-limits-card .global-settings-grid{
  width:100%!important;
}

/* ===== Compare: replacement categories use normal weight =====
   Missing/Extra keep their existing emphasis. */

.v2-compare .err-pair .right,
.v2-compare .err-pair .bad,
.v2-compare .err-pair .wrongword,
.v2-compare .err-pair .rightword,
.v2-compare .err-pair .err-arrow,
.v2-compare .err-pair .change-arrow,
.v2-compare .inline-hyphen-review,
.v2-compare .inline-hyphen-review .bad,
.v2-compare .inline-hyphen-review .err-arrow{
  font-weight:400!important;
}

.logout-inline{display:inline!important;margin:0!important;padding:0!important}
.logout-link{border:0!important;background:transparent!important;color:#1557d6!important;padding:0!important;margin:0!important;font:inherit!important;font-weight:800!important;cursor:pointer!important}
.logout-link:hover{text-decoration:underline}

/* ===== Result hierarchy refinement ===== */

.error-formula-row{
  padding:9px 10px!important;
  background:#fff!important;
  color:#334155!important;
  font-size:11px!important;
  font-weight:800!important;
  text-transform:none!important;
  letter-spacing:0!important;
  text-align:center!important;
}
.cat-head{background:#f8fafc!important;font-weight:900!important}
.cat-missing{color:#dc2626!important}
.cat-extra{color:#16a34a!important}
.cat-change{color:#2563eb!important}
.cat-vachan{color:#d97706!important}
.cat-gender{color:#f40afc!important}
.cat-space{color:#0891b2!important}
.cat-hyphen{color:#7c3aed!important}
.error-color-legend{flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 12px;padding:8px 10px;background:#fbfcfe;border-bottom:1px solid var(--line);font-size:10px;font-weight:850;color:#52647d;display:none !important;}


.compare-review-bar{justify-content:space-between;color:#52647d;font-size:11px;font-weight:850;margin:10px 0 7px !important;padding:0 !important;display:grid !important;grid-template-columns:auto minmax(0,1fr) auto !important;align-items:center !important;gap:10px !important;}
.compare-rule-chip{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:34px!important;
  padding:0 12px!important;
  border:1px solid #cbd8e8!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#475569!important;
  box-shadow:0 1px 2px rgba(15,23,42,.03)!important;
  text-align:center!important;
  font-size:10.5px!important;
  font-weight:750!important;
  line-height:1.35!important;
}
.inline-hyphen-review,.hyphen-error{
  background:transparent!important;
}
.inline-hyphen-review{white-space:nowrap;display:inline-flex !important;align-items:baseline !important;gap:2px !important;padding:0 !important;}
.pair-bracket{color:#64748b!important;font-weight:400!important}
@media(max-width:900px){
  .compare-review-bar{grid-template-columns:1fr auto!important}
  .compare-rule-chip{grid-column:1/-1;grid-row:2}
}

/* ===== Result summary emphasis ===== */


/* Structural Space/Hyphen inline review */
.inline-structural-review{
  display:inline-flex!important;
  align-items:baseline!important;
  gap:2px!important;
  padding:0!important;
  background:transparent!important;
  border-radius:0!important;
  font-weight:400!important;
}
.inline-structural-review .pair-bracket,
.inline-structural-review .rightword,
.inline-structural-review .bad,
.inline-structural-review .err-arrow{
  font-weight:400!important;
}
.inline-space-review .rightword,
.inline-space-review .bad,
.inline-space-review .err-arrow{
  color:#0891b2!important;
}
.inline-hyphen-review .rightword,
.inline-hyphen-review .bad,
.inline-hyphen-review .err-arrow{
  color:#7c3aed!important;
}

/* ===== User-centric Compare Matter =====
   Normal text is the learner's typed input.
   Missing is the only master-only token injected into that stream. */
.v2-compare .cmp-token.right{font-weight:400!important}
.v2-compare .cmp-token.miss{
  color:#dc2626!important;
  text-decoration:none!important;
  font-weight:400!important;
}
.v2-compare .cmp-token.add{
  color:#16a34a!important;
  font-weight:400!important;
}

/* ===== Restored V2 pair grammar on user-centric Compare ===== */
.v2-compare .err-pair{white-space:nowrap !important;font-weight:400 !important;}
.v2-compare .err-pair .pair-bracket,
.v2-compare .err-pair .pair-correct,
.v2-compare .err-pair .rightword,
.v2-compare .err-pair .err-arrow{
  color:#111827!important;
  font-weight:400!important;
  background:transparent!important;
}


/* Paragraph-break signs are review markers, never raw matcher tokens. */
.v2-compare .para-ok,
.v2-compare .para-miss,
.v2-compare .para-extra{
  display:inline-block!important;
  margin:0 .15em!important;
  font-family:"Segoe UI Emoji","Noto Color Emoji",sans-serif!important;
  font-weight:400!important;
}
.v2-compare .para-ok{color:#2563eb!important}
.v2-compare .para-miss{color:#dc2626!important}
.v2-compare .para-extra{color:#16a34a!important}

/* Structural enhancer must follow the same pair grammar. */
.v2-compare .inline-structural-review .pair-bracket,
.v2-compare .inline-structural-review .rightword,
.v2-compare .inline-structural-review .err-arrow{
  color:#111827!important;
}
.v2-compare .inline-space-review .bad{color:#0891b2!important}
.v2-compare .inline-hyphen-review .bad{color:#7c3aed!important}

/* ===== Compare visible stream = learner input =====
   Bracket treatment stays; master replacement words/arrows are not shown inline.
   Master words remain visible only for Missing errors. */
.v2-compare .err-pair .pair-bracket{
  color:#111827!important;
  font-weight:400!important;
}
.v2-compare .err-pair-other .bad{font-weight:400 !important;color:#2563eb !important;}
.v2-compare .err-pair-number .bad{font-weight:400 !important;color:#d97706 !important;}
.v2-compare .err-pair-gender .bad{font-weight:400 !important;color:#f40afc !important;}
.v2-compare .err-pair-space .bad{font-weight:400 !important;color:#0891b2 !important;}
.v2-compare .err-pair-hyphen .bad{font-weight:400 !important;color:#7c3aed !important;}

/* Result table: Target value + Status, Viram joins counted error categories. */
.target-value{font-weight:900!important;color:#334155!important}
.cat-viram{color:#64748b!important}

/* ===== KrutiDev text converter ===== */
.converter-head{margin-bottom:14px}
.converter-label{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:10px 0 7px}
.converter-label small{color:#8190a5}

.converter-output{background:#fbfdff}
.converter-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:9px}

/* ===== Scoped bulk result deletion ===== */
.result-bulk-bar{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;margin:0 0 10px;padding:10px 12px;border:1px solid #d8e3ef;border-radius:10px;background:#f8fbff}
.result-bulk-bar>label{display:flex;align-items:center;gap:7px;font-weight:800;color:#334155;white-space:nowrap}
.result-bulk-bar>span{color:#718096;font-size:11px;flex:1}
.result-bulk-bar>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.result-bulk-bar .btn{min-height:34px;padding:7px 11px;font-size:11px}
.result-bulk-bar .danger-all{background:#dc2626!important;border-color:#dc2626!important;color:#fff!important}
.select-col{width:34px;text-align:center!important}
.empty-state{padding:24px;text-align:center;color:#718096}
@media(max-width:700px){.result-bulk-bar{align-items:stretch}.result-bulk-bar>span{flex-basis:100%}.result-bulk-bar>div{width:100%}.result-bulk-bar .btn{flex:1}}

/* ===== Discipline / validity UI polish ===== */
.compare-review-bar .compare-font-tools{grid-column:3}
@media(max-width:900px){
  .compare-review-bar .compare-font-tools{grid-column:2}
}

/* ===== Chance / Taken / Validity management polish ===== */


.test-locked{
  background:#fee2e2!important;border-color:#fecaca!important;color:#b42318!important;
  opacity:1!important;cursor:not-allowed!important;
}
.account-manage-grid .field label small{
  display:inline!important;margin:0 0 0 4px!important;
  font-size:inherit!important;color:#6b7c93!important;font-weight:400!important;
}
.test-final-grid{margin-top:12px}


.validity-renew{display:flex;align-items:center;gap:4px}
.validity-renew input{width:54px!important;min-width:54px!important;height:30px!important;padding:3px 5px!important;font-size:11px!important}

/* ===== Pinned target / Done / Admin session polish ===== */
.ico.pin{background:#fffaf0!important;border-color:#fed7aa!important}
.ico.pin.on{background:#fff1e6!important;border-color:#fb923c!important;box-shadow:0 0 0 2px rgba(251,146,60,.10)}


.today-target{display:inline-flex;align-items:center;margin-left:6px;padding:2px 7px;border-radius:999px;background:#fff0c2;color:#9a4d00;font-size:9px;font-weight:900;vertical-align:middle;white-space:nowrap}

.done-mark{display:inline-flex;align-items:center;padding:2px 6px;border-radius:999px;background:#dcfce7;color:#08743a;font-size:8.5px;font-weight:900;white-space:nowrap}
.session-actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.session-actions .btn{min-height:32px;padding:6px 9px;font-size:10px;white-space:nowrap}


.validity-cell{gap:7px;display:flex !important;align-items:center !important;justify-content:flex-start !important;min-width:0 !important;}
.validity-cell>b{min-width:0 !important;white-space:nowrap;}
.ico.validity{
  background:#fff8e8!important;
  border-color:#f6c978!important;
}
.ico.validity:hover{
  background:#ffefc5!important;
  border-color:#e9a62e!important;
}
.validity-modal{
  position:fixed;inset:0;z-index:120;
  display:grid;place-items:center;
  padding:20px;background:rgba(15,23,42,.46);
  backdrop-filter:blur(2px);
}
.validity-modal[hidden]{display:none!important}
body.modal-open{overflow:hidden}
.validity-modal-card{
  position:relative;width:min(430px,calc(100vw - 32px));
  padding:24px;border:1px solid #d7e1ee;border-radius:18px;
  background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.22);
}
.validity-modal-close{
  position:absolute;right:12px;top:10px;width:34px;height:34px;
  padding:0;border:0;border-radius:9px;background:#f4f7fb;color:#506078;
  font-size:22px;line-height:1;cursor:pointer
}
.validity-modal-icon{
  display:grid;place-items:center;width:48px;height:48px;margin-bottom:10px;
  border-radius:13px;background:#fff4d8;font-size:24px
}
.validity-modal-card h3{margin:0 0 5px;font-size:20px}
.validity-modal-card p{margin:0 0 16px;color:#63748c;font-size:12px;line-height:1.5}
.validity-modal-card label{display:block;margin-bottom:6px;font-weight:800}
.validity-modal-card input[type=number]{
  width:100%;height:46px;font-size:18px;font-weight:700
}
.validity-modal-card small{
  display:block;margin-top:7px;color:#718096;font-size:10.5px;line-height:1.5
}
.validity-modal-actions{
  display:flex;justify-content:flex-end;gap:8px;margin-top:18px
}


@media(max-width:900px){
  .validity-modal-card{padding:20px}
}


.converter-workspace{padding:18px}
.converter-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.converter-pane .converter-label{margin-top:0}
.converter-label>div{display:grid;gap:2px}.word-counter{flex:0 0 auto;padding:4px 8px;border-radius:999px;background:#eef4ff;color:#315dba;font-size:11px;font-weight:700}
.word-counter b{font-size:12px}
.converter-input,.converter-output{width:100%;resize:vertical;border:1px solid #ccd9ea;border-radius:12px;background:#fff;padding:14px 15px;font-size:20px;line-height:1.75;box-sizing:border-box;min-height:430px;}

@media(max-width:950px){
  .converter-columns{grid-template-columns:1fr}
  .converter-input,.converter-output{min-height:260px}
}




/* === Account + Safe Converter === */
.converter-main-actions{display:flex !important;justify-content:center !important;align-items:center !important;gap:10px !important;margin-top:14px !important;}
.converter-main-actions .btn{min-width:160px !important;}
.account-page-head{margin-bottom:14px}
.account-info-grid{display:grid;grid-template-columns:1.55fr repeat(3,1fr);gap:11px;margin-bottom:14px}
.account-info-grid>.card{margin:0;min-height:118px}
.account-profile-card{display:flex;align-items:center;gap:13px}.account-avatar{width:56px;height:56px;flex:0 0 56px;border-radius:16px;background:#e9f1ff;color:#2459d6;display:grid;place-items:center;font-size:22px;font-weight:950}.account-profile-card small,.account-fact small{display:block;color:#718198;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.account-profile-card h2{margin:3px 0 1px;font-size:20px}.account-profile-card p{margin:0 0 6px;color:#61738b}.account-brand{display:inline-flex;padding:3px 7px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:10px;font-weight:800}.account-fact{display:flex;flex-direction:column;justify-content:center}.account-fact b{font-size:18px;margin:6px 0 2px}.account-fact span{font-size:10.5px;color:#718198}.account-rights-card,.account-manage-card{width:100%;max-width:none}.account-rights-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.account-right{display:flex;gap:9px;align-items:flex-start;padding:12px;border:1px solid #dce6f2;border-radius:11px;background:#f9fbff}.account-right>span{display:grid;place-items:center;width:24px;height:24px;flex:0 0 24px;border-radius:50%;background:#dcfce7;color:#08743a;font-weight:950}.account-right b,.account-right small{display:block}.account-right small{margin-top:2px;color:#718198;font-size:10.5px;line-height:1.4}.account-manage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.account-manage-grid .field{margin-bottom:0}
@media(max-width:980px){.account-info-grid{grid-template-columns:1fr 1fr}.account-profile-card{grid-column:1/-1}.account-rights-grid{grid-template-columns:1fr 1fr}.account-manage-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.account-info-grid,.account-rights-grid,.account-manage-grid{grid-template-columns:1fr}.account-profile-card{grid-column:auto}.converter-main-actions{flex-direction:row!important}.converter-main-actions .btn{min-width:0!important;flex:1}}

/* Converter draft + per-box actions */
.converter-pane{min-width:0;display:flex;flex-direction:column;}
.converter-pane-action{display:flex;justify-content:center;align-items:center;padding-top:12px}
.converter-pane-action .btn{min-width:190px}
.converter-head .actions{align-self:flex-start}

/* Live Class + storage controls */
.live-class-open{background:#7c3aed!important;border-color:#7c3aed!important;color:#fff!important}
.live-join-btn{background:#8b1e1e!important;border-color:#8b1e1e!important;color:#fff!important;text-align:center}
.live-class-modal form{display:grid;gap:8px}.live-class-modal label{font-size:11px;font-weight:800;color:#26364f}.live-remove-form{margin-top:10px!important;display:block!important}.live-remove-form .btn{width:100%}
.storage-meter{margin:-4px 0 12px;padding:10px 12px;border:1px solid #d8e4f3;border-radius:11px;background:#fff}
.storage-meter>div{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#53657d}.storage-meter.warning{border-color:#fcd9a1}.storage-meter.critical{border-color:#fecaca}

/* Supreme lightweight performance monitor */
.performance-summary .performance-ok{border-color:#cfe8d8}.performance-summary .performance-warning{border-color:#f8d7a0}.performance-summary .performance-critical{border-color:#f3b8b8}
.performance-chip{display:inline-block;padding:4px 8px;border-radius:999px;font-weight:800;font-size:11px;background:#edf4ff;color:#2458cb}
.performance-chip.warning{background:#fff2d9;color:#9a5a00}.performance-chip.critical{background:#fee2e2;color:#b42318}.performance-chip.ok{background:#e7f8ee;color:#08743a}
.performance-notes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0 14px}.performance-notes>div{padding:12px;border:1px solid var(--line2);border-radius:10px;background:#f9fbff}.performance-notes b,.performance-notes span{display:block}.performance-notes span{margin-top:4px;color:#61738d;font-size:12px}.performance-clear{display:flex;justify-content:flex-end;margin-top:12px}
@media(max-width:900px){.performance-notes{grid-template-columns:1fr 1fr}}@media(max-width:600px){.performance-notes{grid-template-columns:1fr}}

/* Rank full-width + remarks */
.leader-wrap .card{width:100%}.leader-wrap table{min-width:900px}.leader-wrap .rank-name-col,.leader-wrap td:nth-child(2){min-width:250px}.rank-remark{display:inline-flex;align-items:center;justify-content:center;min-width:74px;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:900}.rank-winner{background:#fef3c7;color:#92400e}.rank-topper{background:#e8edff;color:#3346a8}.rank-achiever{background:#e9f9f1;color:#08754b}.rank-improver{background:#eaf6ff;color:#176493}.rank-learner{background:#f1f5f9;color:#475569}.rank-beginner{background:#fff1f2;color:#b42318}
/* B-compatible dictation speed selector */
.secure-audio-controls{display:grid;align-items:center;gap:8px;width:100%;grid-template-columns:42px minmax(120px,1fr) 92px 38px 82px minmax(132px,170px) !important;}.secure-audio-speed{height:36px!important;min-width:132px;padding:0 8px!important;border:1px solid #cbd8e8!important;border-radius:9px!important;background:#fff!important;color:#17243a!important;font-weight:850!important;box-shadow:none!important}.secure-audio-speed:focus{border-color:#79a3f4!important;box-shadow:0 0 0 3px rgba(39,100,237,.09)!important}
@media(max-width:760px){.secure-audio-controls{grid-template-columns:40px minmax(100px,1fr) 82px 36px!important}.secure-audio-volume{display:none!important}.secure-audio-speed{grid-column:1/-1;width:100%!important;max-width:none!important}}
/* Inline optional note on rental label */


/* ===== Full-width Test Setup + Typing Target ===== */
.typing-setup-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}



/* Result provenance watermark: B-style URL + Test + Learner, readable on screen/print. */
.result-watermark-zone{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#fff;
  border-radius:14px;
  margin-bottom:0;
}
.result-watermark{
  position:absolute;
  left:50%;
  top:50%;
  width:min(92%,900px);
  transform:translate(-50%,-50%) rotate(-18deg);
  z-index:0;
  pointer-events:none;
  user-select:none;
  text-align:center;
  color:rgba(194,92,24,.12);
  font-weight:850;
  line-height:1.18;
  letter-spacing:.01em;
}
.result-watermark-url{font-size:clamp(38px,4.1vw,52px);font-weight:950}
.result-watermark-meta{font-size:clamp(30px,3.35vw,43px);font-weight:850;margin-top:5px}
.result-watermark-content{position:relative;z-index:1;padding:14px 16px}
.compare{padding:14px 16px}
.result-watermark-content .compare{background:transparent!important;margin-bottom:0;padding:0}

@media(max-width:900px){
  .typing-setup-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  
}
@media(max-width:640px){
  .typing-setup-grid{grid-template-columns:1fr!important}
  
  
  .result-watermark{width:94%;color:rgba(194,92,24,.11)}
  .result-watermark-url{font-size:32px}
  .result-watermark-meta{font-size:26px;margin-top:3px}
}
@media print{
  .result-watermark-zone{overflow:hidden!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .result-watermark{display:block!important;position:absolute!important;left:50%!important;top:50%!important;z-index:0!important;color:rgba(194,92,24,.13)!important;transform:translate(-50%,-50%) rotate(-18deg)!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .result-watermark-url{font-size:52px!important}
  .result-watermark-meta{font-size:43px!important}
  .result-watermark-content{position:relative!important;z-index:1!important}
}


/* ===== Public Login Landing ===== */
.login-landing{width:100%;max-width:1280px;margin:0 auto;padding:2px 0 10px}









/* Landing polish: full-width hero + simple four-step flow */













/* Typing result comparison: keep all comparison text normal-weight; colors still communicate status. */
.compare.typing-compare{line-height:1.9!important}
.compare.typing-compare,
.compare.typing-compare *{font-weight:400!important}


/* ===== Typing compare category colours (Phase 6 renderer contract) =====
   Scoped to Typing result compare only; no layout/matcher/storage changes.
   Renderer classes: missing, extra, changed/rightword/wrongword, space-error, hyphen-error. */
.compare.typing-compare .missing{color:#dc2626}
.compare.typing-compare .extra{color:#16a34a}
.compare.typing-compare .changed .rightword{color:#111827}
.compare.typing-compare .changed .change-arrow,
.compare.typing-compare .changed .wrongword{color:#2563eb}
.compare.typing-compare .space-error .rightword{color:#111827}
.compare.typing-compare .space-error .change-arrow,
.compare.typing-compare .space-error .wrongword{color:#0b9bb6}
.compare.typing-compare .hyphen-error .rightword{color:#111827}
.compare.typing-compare .hyphen-error .change-arrow,
.compare.typing-compare .hyphen-error .wrongword{color:#7c3aed}


/* ===== Learner profile result-table cell integrity =====
   Keep <td> as a real table-cell; flex belongs inside the cell. */

.result-bulk-form .result-row-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:5px!important;
  width:100%!important;
}
.result-bulk-form table th:last-child,
.result-bulk-form table td:last-child{
  min-width:86px;
}


/* ===== Learn: compact word-level Error Bank ===== */
.learn-error-grid{gap:7px!important}
.learn-error-grid .error-list-head{padding:6px 10px!important}
.learn-error-grid .error-inline-list{
  padding:7px 11px!important;
  line-height:1.6!important;
  font-size:12px!important;
  font-weight:600!important;
}

/* ===== Learner profile: compact attempt/result rows =====
   Generic table padding made these rows taller than Test/Learner dense lists.
   Keep action buttons 32px but remove unnecessary vertical whitespace. */
.result-bulk-form table th{padding:7px 9px!important;height:34px!important}
.result-bulk-form table td{
  padding:5px 9px!important;
  height:43px!important;
  min-height:43px!important;
  vertical-align:middle!important;
  line-height:1.25!important;
}
.result-bulk-form .result-action-cell{display:table-cell !important;vertical-align:middle !important;white-space:nowrap !important;width:86px !important;min-width:86px !important;text-align:right !important;padding-top:5px !important;padding-bottom:5px !important;}
.result-bulk-form input[type="checkbox"]{width:13px!important;height:13px!important;min-width:13px!important;min-height:13px!important}


/* ===== Required-content submit gate + PASS/FAIL ===== */
.exam-progress-wrap{display:flex;flex-direction:column;align-items:center;gap:5px;min-width:0;flex:1}
.required-progress{
  padding:7px 12px;border:1px solid #fecaca;border-radius:10px;background:#fff7f7;
  color:#c91f1f;font-size:11px;font-weight:850;text-align:center;white-space:normal;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap
}
.required-progress .progress-divider{opacity:.55;font-weight:900}
.required-progress.ok{border-color:#b7e4c7;background:#effaf3;color:#08743a}
.required-progress.pending{border-color:#fecaca;background:#fff7f7;color:#c91f1f}
.result-pass{display:inline-flex;align-items:center;justify-content:center;padding:4px 9px;border-radius:999px;font-size:11px;font-weight:900}
.result-pass-pass{background:#dcfce7;color:#08743a;border:1px solid #b7e4c7}
.result-pass-fail{background:#fee2e2;color:#b42318;border:1px solid #fecaca}
@media(max-width:700px){.examfoot{gap:8px;flex-wrap:wrap}.exam-progress-wrap{order:3;flex-basis:100%}.required-progress{width:100%}}

/* Staff nav may contain more tools; keep it horizontally usable instead of wrapping into broken rows. */
.nav-in{gap:2px;overflow-x:auto;scrollbar-width:thin;}
.nav-in>a{flex:0 0 auto}

.dashboard-subscription{margin-top:0;margin-bottom:14px}


/* Landing spacing + footer refinement */















/* ===== Mobile-first learner lists: cards without horizontal scrolling ===== */

@media (max-width:700px){
  
  
  
  
  
  
  
  
  
  
  
  
  

  .history{border:0;overflow:visible;background:transparent}
  .history .dhead{display:none}
  
  .history .result-serial{display:none}
  
  
  
  .history .result-accuracy{grid-column:2/3;grid-row:2;text-align:right;font-size:14px}
  .history .result-speed{grid-column:1/2;color:#50627c;font-size:11px}
  .history .result-date{grid-column:1/2;color:#718198;font-size:10.5px}
  

  .leader-wrap .table-wrap{overflow:visible;border:0}
  .leader-wrap table{min-width:0!important;display:block}
  .leader-wrap thead{display:none}
  .leader-wrap tbody{display:block}
  
  .leader-wrap tr.rank-mobile-card.current-rank{border-color:#9bb9f7;background:#f6f9ff}
  
  
  
  
  
  .leader-wrap tr.rank-mobile-card td[data-label="Highest"],.leader-wrap tr.rank-mobile-card td[data-label="Lowest"]{display:none!important}
}


/* ===== Public no-write demo ===== */

.demo-page{max-width:900px;margin:0 auto}.demo-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.demo-top h1{margin:7px 0 3px}.demo-top p{margin:0;color:var(--muted)}.demo-switch{display:flex;gap:7px;margin-bottom:12px}.demo-switch a{padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;font-weight:850}.demo-switch a.on{background:var(--blue);color:#fff;border-color:var(--blue)}.demo-card{padding:18px}.demo-instruction{display:flex;gap:12px;align-items:flex-start;margin:8px 0 10px}.demo-instruction b{min-width:70px;color:#1749b5}.demo-instruction span{color:#566a86}.demo-audio-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;border:1px solid var(--line);border-radius:11px;background:#f8fbff;margin-bottom:14px}.demo-audio-row span{color:#718198;font-size:11px}.demo-reference{padding:14px;border:1px solid var(--line);border-radius:11px;background:#f8fbff;font-size:16px;line-height:1.7;margin-bottom:14px}.demo-card textarea{min-height:170px;font-size:16px}.demo-actions{display:flex;gap:8px;margin-top:10px}.demo-result{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:12px;padding:12px;border:1px solid #b7e4c7;border-radius:10px;background:#effaf3;color:#0b6134}.demo-result b{font-size:14px}.demo-result small{flex-basis:100%;color:#587565}
@media(max-width:640px){.demo-top{flex-direction:column}.demo-top .btn{width:100%;text-align:center}.demo-actions{flex-direction:column}.demo-actions button{width:100%}}

/* Public real-matcher demos: same evaluation engine, zero result persistence. */
.demo-public-list{display:grid;gap:12px;margin-top:14px}.demo-public-card{display:flex;align-items:center;justify-content:space-between;gap:18px}.demo-public-card h2{margin:6px 0 4px;font-size:18px}.demo-public-card p{margin:0;color:#61728c}.demo-public-card small{display:block;margin-top:5px;color:#526681;font-weight:700}.demo-real-test audio{width:100%;margin:10px 0 6px}.demo-real-test textarea{width:100%;min-height:260px;margin-top:14px;font-size:18px;line-height:1.7}.demo-nosave-note{margin-top:14px;color:#526681}.demo-nosave-note b{color:#123f86}
@media(max-width:700px){.demo-public-card{align-items:stretch;flex-direction:column}.demo-public-card .btn{width:100%;text-align:center}.demo-real-test textarea{min-height:230px}.demo-real-test .examfoot{align-items:center}}


/* ===== Compact 2-line mobile test cards ===== */


/* ===== Compact 2-line mobile Results + Rank cards ===== */
@media (max-width:700px){
  /* Results: Test + View | Type · Accuracy · Speed · Date */
  
  
  
  
  .history .result-view .ico{
    width:32px!important;
    height:32px!important;
    min-width:32px!important;
    border-radius:9px!important;
  }
  
  
  .history .result-type .pill{
    padding:0!important;
    border:0!important;
    background:transparent!important;
    color:#41536e!important;
    font-size:10px!important;
    letter-spacing:0!important;
  }
  .history .result-accuracy,
  .history .result-speed,
  .history .result-date{
    display:none!important;
  }
  .history .result-main::after{
    content:"";
  }
  
  .history .result-type::after{
    content:" · " attr(data-extra);
  }

  /* Rank: Rank + Learner + Remark | Tests · Avg Accuracy */
  
  
  
  
  
  .leader-wrap tr.rank-mobile-card td[data-label="Learner"] b{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  
  .leader-wrap tr.rank-mobile-card td[data-label="Tests"]{
    grid-column:2!important;
    grid-row:2!important;
    color:#60708a!important;
  }
  .leader-wrap tr.rank-mobile-card td[data-label="Tests"]::after{
    content:" tests";
  }
  .leader-wrap tr.rank-mobile-card td[data-label="Avg Accuracy"]{
    grid-column:2!important;
    grid-row:2!important;
    margin-left:52px!important;
    color:#60708a!important;
  }
  .leader-wrap tr.rank-mobile-card td[data-label="Avg Accuracy"]::before{
    display:inline!important;
    content:"· Avg ";
    margin-right:2px;
    color:#60708a!important;
    font-size:10px!important;
    font-weight:400!important;
    text-transform:none!important;
  }
  .leader-wrap tr.rank-mobile-card td[data-label="Highest"],
  .leader-wrap tr.rank-mobile-card td[data-label="Lowest"]{display:none!important}
  .leader-wrap .rank-badge{
    min-width:30px!important;
    height:30px!important;
    padding:0 7px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    font-size:11px!important;
  }
  .leader-wrap .rank-remark{
    font-size:9px!important;
    padding:3px 6px!important;
    white-space:nowrap!important;
  }
}

.result-mobile-meta{display:none}
@media (max-width:700px){
  
  .history .result-mobile-meta{
    display:flex!important;
    min-width:0!important;
    gap:0!important;
    color:#60708a!important;
    font-size:10px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    overflow:hidden!important;
  }
  .history .result-mobile-meta span{
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .history .result-mobile-meta span+span:before{
    content:" · ";
    padding:0 3px;
    color:#9aa8ba;
  }
  
}


/* ===== Clean Steno result + mobile no-scroll layout ===== */

.result-floating-font-tools{
  position:fixed!important;
  right:12px!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  z-index:60!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
  margin:0!important;
  padding:0!important;
}
.result-floating-font-tools button{
  width:44px!important;
  height:42px!important;
  min-width:44px!important;
  padding:0!important;
  border:1px solid #fdba74!important;
  border-radius:12px!important;
  background:#fff7ed!important;
  color:#c2410c!important;
  box-shadow:0 3px 12px rgba(15,23,42,.06)!important;
  font-weight:900!important;
  font-size:13px!important;
}


/* ===== Print/PDF cleanup: screen-only compare font controls ===== */
@media print{
  .result-floating-font-tools{
    display:none!important;
    visibility:hidden!important;
  }
}


/* ===== Landing demo category colors ===== */






/* ===== Word+ local draft + Advisor ===== */
.wordplus-bubble{position:fixed;z-index:90;border:1px solid #5b7cff;background:#fff;color:#3157d8;border-radius:999px;padding:8px 13px;font-weight:900;box-shadow:0 6px 20px rgba(15,23,42,.15)}
.wordplus-overlay{position:fixed;inset:0;z-index:100;background:rgba(15,23,42,.38);display:grid;place-items:center;padding:18px}.wordplus-dialog{width:min(820px,100%);background:#fff;border-radius:16px;padding:18px;box-shadow:0 24px 70px rgba(15,23,42,.28)}.wordplus-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.wordplus-head b{font-size:16px}.wordplus-head small{display:block;color:#718198;margin-top:4px}.wordplus-head button{border:0;background:#eef3ff;border-radius:10px;width:38px;height:38px;font-size:20px}.wordplus-grid{display:grid;grid-template-columns:170px 1fr;gap:12px;margin-top:16px}.wordplus-grid label{font-size:11px;font-weight:850;color:#334155}.wordplus-grid input,.wordplus-grid textarea{display:block;width:100%;margin-top:6px}.wordplus-grid textarea{min-height:82px;resize:vertical}.wordplus-family{grid-column:1/-1}.wordplus-actions span{flex:1;color:#16803d;font-size:12px}.wordplus-actions span.bad{color:#d92d20}.wordplus-draftbar button{min-height:31px;border:1px solid #b8caf1;background:#f5f8ff;border-radius:8px;font-weight:850}.advisor-grid{display:grid;gap:12px}.advisor-item{border:1px solid #c9dafa;border-radius:14px;background:#fbfdff;padding:13px}.advisor-pair-head{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:900;margin-bottom:10px}.advisor-wrong{color:#dc2626}.advisor-right{color:#07823e}.advisor-word-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.advisor-word-card.advisor-wrong{background:#fff7f7;border-color:#fecaca;color:inherit}.advisor-word-card.advisor-right{background:#f1fcf5;border-color:#bbefcc;color:inherit}.advisor-word-card h3{margin:0 0 7px;font-size:14px}.advisor-word-card p{margin:4px 0 10px;line-height:1.55;color:#334155}.advisor-label{display:inline-block;font-size:9px;font-weight:900;background:#eaf0fa;color:#41536e;border-radius:6px;padding:3px 6px}.advisor-family{display:flex;flex-wrap:wrap;gap:6px;margin-top:7px}

/* ===== Renewal ===== */
.renewal-warning{margin:0 0 10px;padding:10px 13px;border:1px solid #f5a3a3;border-radius:11px;background:#fff1f1;color:#b42318;display:flex;align-items:center;gap:7px;flex-wrap:wrap;cursor:pointer}.renewal-warning span{text-decoration:underline;font-weight:800}.renewal-modal{position:fixed;inset:0;z-index:120;background:rgba(15,23,42,.45);display:grid;place-items:center;padding:16px}.renewal-modal[hidden]{display:none}.renewal-modal-card{position:relative;width:min(520px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:16px;padding:20px;text-align:center}.renewal-fee{margin:12px 0;padding:11px;border-radius:10px;background:#fff7e8;border:1px solid #f2cc82;font-size:15px}.renewal-fee b{color:#a65300;font-size:19px}.renewal-average{font-size:11px;color:#65758c}.renewal-qr img,.renewal-qr-preview img{display:block;max-width:250px;max-height:250px;object-fit:contain;margin:12px auto;border:1px solid #d8e2ef;border-radius:12px;padding:7px;background:#fff}.renewal-slabs label{font-size:10px;font-weight:850}.renewal-slabs input{width:100%;margin-top:5px}.renewal-filters{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.renewal-filters .on{background:#eef4ff;color:#174ea6}
@media (max-width:700px){.wordplus-grid{grid-template-columns:1fr}.wordplus-family{grid-column:auto}.wordplus-dialog{padding:14px}.advisor-pair-head{font-size:14px;flex-wrap:wrap}.advisor-item{padding:10px}.renewal-modal-card{padding:17px 14px}.renewal-warning{font-size:12px}}

.wordplus-list{display:grid;gap:8px;margin-top:14px;max-height:55vh;overflow:auto}.wordplus-list article{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #dbe5f2;border-radius:10px;padding:9px 10px}.wordplus-list article>div{min-width:0}.wordplus-list small,.wordplus-list span{display:block;margin-top:3px;color:#65758c;font-size:10px;white-space:normal}.wordplus-list article>button{border:1px solid #fecaca;background:#fff5f5;color:#b42318;border-radius:8px;padding:6px 8px}.wordplus-list-dialog .wordplus-actions button{background:#315ee8;color:#fff;border:0;border-radius:9px;padding:9px 13px;font-weight:850}
.analysis-table-wrap{width:100%;overflow:visible}.analysis-table{width:100%;font-size:13px}.analysis-table td:first-child{min-width:150px}.analysis-table td small{display:block;color:var(--muted,#6b7280);font-size:11px;margin-top:2px}.analysis-card{margin-bottom:14px}
@media(max-width:700px){.analysis-table,.analysis-table tbody{display:block;width:100%}.analysis-table thead{display:none}.analysis-table tr{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px 8px;padding:10px 8px;border:1px solid #e5e7eb;border-radius:10px;margin:0 0 8px;background:#fff}.analysis-table td{display:flex!important;min-width:0!important;padding:0!important;border:0!important;flex-direction:column;font-size:12px;overflow-wrap:anywhere}.analysis-table td:before{content:attr(data-label);font-size:9px;text-transform:uppercase;letter-spacing:.03em;color:#6b7280}.analysis-table td:first-child{grid-column:1/4}.analysis-table td:last-child{grid-column:4/6;grid-row:1}.analysis-table td:first-child b,.analysis-table td:last-child b{font-size:13px}.analysis-table-wrap{overflow:visible!important}}

/* Compact UI refinements: Recycle, Word+, Advisor and Renewal */
.recycle-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:10px}.recycle-toolbar .tabs{display:flex;gap:7px;flex-wrap:wrap}.recycle-toolbar .count-line{margin:0 2px 0 auto;white-space:nowrap}.recycle-toolbar+.table-wrap{margin-top:0}
.wordplus-draftbar{position:fixed;left:14px;bottom:14px;z-index:75;display:flex;align-items:center;border:1px solid #bed0f6;border-radius:12px;box-shadow:0 8px 28px rgba(15,23,42,.15);gap:8px;padding:9px 10px;background:#f8fbff;border-color:#9db8ef;}.wordplus-draftbar b{color:#172b4d}.wordplus-draftbar [data-wordplus-review]{background:#fff;color:#334155;border-color:#b8c8df}.wordplus-draftbar [data-wordplus-publish]{background:#2764ed;color:#fff;border-color:#2764ed;}.wordplus-draftbar [data-wordplus-clear]{background:#fff1f2!important;color:#b42318!important;border-color:#fecaca!important;min-width:32px;padding:0 9px}
.advisor-word-card{min-width:0;border:1px solid #d7e1ef;border-radius:11px;background:#fff;padding:9px 10px;}.advisor-word-meaning{font-size:13px;line-height:1.45;color:#334155}.advisor-word-meaning b{color:#10223d;font-size:14px}.advisor-word-card.advisor-wrong .advisor-word-meaning b{color:#b42318}.advisor-word-card.advisor-right .advisor-word-meaning b{color:#08783c}.advisor-word-card .advisor-family{border-top:1px solid #dce5ef;margin-top:7px;padding-top:7px;gap:5px}.advisor-family span{border:1px solid #7be7a0;background:#fff;color:#08783c;border-radius:999px;font-weight:800;padding:3px 7px;font-size:10px;}
.renewal-message{line-height:1.65;color:#334155;text-align:justify;text-justify:inter-word;}.renewal-settings-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:18px;align-items:start}.renewal-settings-main{min-width:0}.renewal-top-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.renewal-slabs{display:grid;margin:10px 0;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;}.renewal-qr-side{border-left:1px solid var(--line2);padding-left:16px}.renewal-qr-side .renewal-qr-preview img{width:100%;max-width:240px;max-height:240px;margin:0 auto 10px}.renewal-qr-empty{height:190px;border:1px dashed #c7d5e7;border-radius:12px;background:#f8fbff;color:#8090a6;display:grid;place-items:center;margin-bottom:10px;font-weight:800}.renewal-upload{margin:0}.renewal-upload small{display:block;margin-top:5px;color:#718198}.renewal-disabled{opacity:.38;filter:grayscale(.35);pointer-events:none;user-select:none}.renewal-settings-card .form-actions{margin-top:10px}
@media(max-width:900px){.renewal-settings-layout{grid-template-columns:minmax(0,1fr) 220px}.renewal-slabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:700px){.recycle-toolbar{align-items:flex-start;flex-direction:column;gap:8px}.recycle-toolbar .tabs{width:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.recycle-toolbar .tabs .btn{padding:7px 5px;text-align:center}.recycle-toolbar .count-line{margin:0;align-self:flex-end}.wordplus-draftbar button{padding:6px 8px}.advisor-word-card{padding:8px}.renewal-settings-layout{grid-template-columns:1fr}.renewal-qr-side .renewal-qr-preview img{max-width:230px}.renewal-qr-empty{height:140px}.renewal-top-grid{grid-template-columns:1fr 1fr}.renewal-slabs{grid-template-columns:1fr 1fr}.renewal-settings-card .section-title{align-items:flex-start;gap:6px;flex-direction:column}}
@media(max-width:430px){.wordplus-draftbar{grid-template-columns:1fr 1fr}.wordplus-draftbar b{grid-column:1/-1}.wordplus-draftbar [data-wordplus-clear]{position:absolute;right:8px;top:7px}.renewal-top-grid{grid-template-columns:1fr}.renewal-slabs{grid-template-columns:1fr 1fr}}


.renewal-fee del{color:#7b8798;margin-right:5px}
.renewal-fee .renewal-offer-price{color:#0a8f46!important}
.renewal-off-badge{display:inline-flex;align-items:center;margin-left:6px;padding:2px 7px;border-radius:999px;background:#dcfce7;color:#08743a;font-size:10px;font-weight:900;vertical-align:2px}
.renewal-dynamic-block{margin-top:2px}
.renewal-fallback{max-width:240px;margin-bottom:8px}

.renewal-save-row button{min-width:190px}
@media(max-width:700px){
  .renewal-fallback{max-width:none}
}


/* ===== Compact renewal layout: preserve the approved two-column form ===== */
.renewal-settings-main .renewal-top-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
.renewal-settings-main .renewal-slabs{margin:12px 0 0;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}


.renewal-offer-row small{display:block;color:#718198;margin-top:4px}
.renewal-save-row{grid-column:1/-1;margin-top:12px !important;padding-top:12px;border-top:1px solid var(--line2);justify-content:flex-end;}
@media(max-width:900px){.renewal-settings-main .renewal-slabs{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:700px){
 .renewal-settings-main .renewal-top-grid{grid-template-columns:1fr 1fr}
 .renewal-settings-main .renewal-slabs{grid-template-columns:1fr 1fr}
 
 .renewal-offer-row>.field{grid-column:auto}
 
 .renewal-save-row{justify-content:stretch}
 .renewal-save-row button{width:100%}
}
@media(max-width:430px){.renewal-settings-main .renewal-top-grid{grid-template-columns:1fr}}



.join-modal{position:fixed;inset:0;z-index:140;background:rgba(15,23,42,.52);display:grid;place-items:center;padding:16px}
.join-modal[hidden]{display:none}
.join-modal-card{position:relative;width:min(650px,100%);max-height:92vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:17px;padding:20px;box-shadow:0 24px 70px rgba(15,23,42,.25)}
.join-modal-card h2{text-align:center;margin:2px 40px 16px;color:#10233f}
.join-modal-grid{display:grid;grid-template-columns:240px minmax(0,1fr);gap:18px;align-items:center}
.join-qr-slot{aspect-ratio:1;border:2px dashed #a9bad1;border-radius:14px;background:#f8fbff;display:grid;place-items:center;text-align:center;padding:14px;overflow:hidden}
.join-qr-slot img{display:block;width:100%;height:100%;object-fit:contain}
.join-qr-slot b,.join-qr-slot small{display:block}.join-qr-slot b{font-size:22px;color:#24466e}.join-qr-slot small{margin-top:6px;color:#72839a}
.join-steps{display:grid;gap:9px}
.join-steps>div{display:grid;grid-template-columns:32px minmax(0,1fr);gap:9px;align-items:center;padding:10px 11px;border:1px solid #dce6f2;border-radius:11px;background:#fbfdff;font-weight:750;color:#223653}
.join-steps b{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eaf1ff;color:#1754c4}

@media(max-width:600px){
 .join-modal-card{padding:16px 13px}.join-modal-grid{grid-template-columns:1fr;gap:12px}.join-qr-slot{width:min(235px,78vw);margin:auto}.join-steps{gap:7px}.join-steps>div{padding:8px 9px}.join-modal-actions .btn{width:100%}
}


/* ===== 2026-08-29 focused mobile/profile/renewal/landing corrections ===== */
.renewal-offer-row{display:grid;gap:12px;margin-top:10px;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) !important;}
.renewal-offer-row>.field{grid-column:auto !important;}





@media(max-width:430px){.renewal-offer-row{grid-template-columns:1fr!important}}

/* ===== 50-page + desktop learner alignment + recycle bulk + join footer refinements ===== */

.label-inline-note{display:inline!important;margin-left:4px!important;font-size:.82em!important;font-weight:700!important;color:#718198!important}
.recycle-bulkbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 8px;padding:7px 9px;border:1px solid var(--line2);border-radius:10px;background:#f8fbff}.recycle-bulkbar label{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:800}.recycle-check{width:34px;text-align:center}.recycle-bulk-form{margin:0}.join-modal-actions{display:flex;margin-top:16px;padding-top:12px;border-top:1px solid var(--line2);justify-content:space-between !important;align-items:center;gap:12px;}.join-help-text{font-size:12px;font-weight:800;color:#52647d}
@media(max-width:700px){.recycle-bulkbar{position:sticky;bottom:6px;z-index:2}.join-modal-actions{display:flex!important;justify-content:space-between!important;align-items:center!important;text-align:left}.join-help-text{font-size:11px}.join-modal-actions .btn{width:auto!important;min-width:82px}}




.free-result-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.free-duplicate-block{text-align:center;max-width:680px;margin:20px auto}.free-result-note{line-height:1.65}.free-participants-table td,.free-rank-table td{vertical-align:middle}.free-rank-table .result-pass,.free-participants-table .result-pass{white-space:nowrap}
@media(max-width:700px){
  .free-participants-wrap,.free-rank-wrap{overflow:visible}
  .free-participants-table,.free-rank-table,.free-participants-table tbody,.free-rank-table tbody{display:block;width:100%}
  .free-participants-table thead,.free-rank-table thead{display:none}
  .free-participants-table tr:not(.empty-row),.free-rank-table tr:not(.empty-row){display:grid;width:100%;box-sizing:border-box;margin:0 0 9px;padding:10px 11px;border:1px solid var(--line,#d8e2ef);border-radius:12px;background:#fff;gap:5px 10px}
  .free-participants-table tr:not(.empty-row){grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr)}
  .free-rank-table tr:not(.empty-row){grid-template-columns:auto minmax(0,1fr) auto}
  .free-participants-table td,.free-rank-table td{display:block!important;padding:0!important;border:0!important;min-width:0;font-size:12px}
  .free-participants-table td:before,.free-rank-table td:before{content:attr(data-label) ": ";color:var(--muted,#6b7b93);font-size:10px;font-weight:700;text-transform:uppercase}
  .free-participants-table td[data-label=Name]{grid-column:1}.free-participants-table td[data-label=Remark]{grid-column:2;grid-row:1;text-align:right}
  .free-participants-table td[data-label=Mobile]{grid-column:1}.free-participants-table td[data-label=Submitted]{grid-column:2;text-align:right}
  .free-participants-table td[data-label=Accuracy]{grid-column:1}.free-participants-table td[data-label=Error]{grid-column:2;text-align:right}
  .free-rank-table td[data-label=Rank]{grid-column:1;grid-row:1/3;align-self:center}.free-rank-table td[data-label=Rank]:before,.free-rank-table td[data-label=Name]:before,.free-rank-table td[data-label=Remark]:before{display:none}
  .free-rank-table td[data-label=Name]{grid-column:2;grid-row:1;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .free-rank-table td[data-label=Remark]{grid-column:3;grid-row:1;text-align:right}
  .free-rank-table td[data-label=Right]{grid-column:2;grid-row:2}.free-rank-table td[data-label=Accuracy]{grid-column:2;grid-row:3}.free-rank-table td[data-label=Error]{grid-column:3;grid-row:3;text-align:right}
  .free-rank-table .rank-badge{margin-right:2px}
  .free-result-actions{position:relative;z-index:2;margin-bottom:10px}.free-result-actions .btn{padding:9px 12px}
}
@media print{.no-print,.free-result-actions{display:none!important}}

/* ===== Steno result summary refinement ===== */
.steno-result-head h1{color:#2563eb!important}
.qualification-remark{display:inline-block;font-size:18px;font-weight:950;line-height:1.3}
.qualification-pass{color:#16a34a!important}
.qualification-fail{color:#dc2626!important}
.result-summary-table.result-primary-summary td{color:#111827!important}
.result-summary-table.result-primary-summary .result-error-percent{color:#dc2626!important}
@media(max-width:720px){
  .qualification-remark{font-size:15px}
}

/* SPACE mistake direction markers in the main Steno compare paragraph. */
.v2-compare .space-structure{
  color:#0891b2!important;
  font-weight:400!important;
  white-space:nowrap!important;
  text-decoration:none!important;
}


/* ===== Pinned target colors ===== */


/* Result panels must sit on a readable white surface. */
.result-tabs{margin-top:12px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#fff !important;}
.result-tabpanel,.result-tabpanel.active{background:#fff!important}
.result-tabpanel .text-snapshot{text-align:justify;white-space:pre-line !important;line-height:1.85 !important;margin:0 !important;padding:12px 14px !important;background:#fff !important;}
.result-tabpanel .table-wrap{border:0 !important;border-radius:0 !important;overflow:auto !important;background:#fff !important;}

/* Inline action contract on narrow screens: profile/test/live CTA stays right of heading. */
@media(max-width:640px){
  .page-head.compact-head-inline{flex-direction:row!important;align-items:flex-start!important}
  .page-head.compact-head-inline>div:first-child{min-width:0;flex:1 1 auto}
  .page-head.compact-head-inline>.btn{flex:0 0 auto;margin-left:auto}
  .page-head.compact-head-inline>.actions{width:auto!important;flex:0 0 auto;margin-left:auto;flex-wrap:nowrap!important}
  .page-head.compact-head-inline>.actions .btn{flex:0 0 auto;width:auto!important}
}

.global-live-class-btn,.live-join-btn.global-live-class-btn{background:#fc051e!important;border-color:#fc051e!important;color:#fff!important;white-space:nowrap;box-shadow:0 6px 16px rgba(252,5,30,.16)}
.global-live-class-btn:hover,.global-live-class-btn:focus-visible,.live-join-btn.global-live-class-btn:hover{background:#fc051e!important;border-color:#fc051e!important;color:#fff!important}
.live-class-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.rank-scope-toggle{display:flex;align-items:center;gap:6px;padding:5px;border:1px solid #d8e2f0;border-radius:12px;background:#fff}
.rank-scope-toggle label{display:flex;align-items:center;gap:6px;margin:0;padding:8px 11px;border-radius:9px;font-size:12px;font-weight:850;color:#334155;cursor:pointer;white-space:nowrap}
.rank-scope-toggle label:has(input:checked){background:#eef4ff;color:#1d4ed8}
.rank-scope-toggle input{accent-color:#2563eb}


@media(max-width:640px){.live-class-actions{width:auto!important;max-width:58%;justify-content:flex-end}.live-class-actions .btn{padding:9px 10px!important;font-size:11px}.rank-scope-toggle{width:100%;justify-content:stretch}.rank-scope-toggle label{flex:1;justify-content:center}.leader-title{flex-wrap:wrap}}

/* Landing balance: feature area gets the room; login stays compact. */











.wordplus-recent-family{max-width:360px;white-space:normal;line-height:1.45}.wordplus-actions{align-items:center;margin-top:12px;display:flex;gap:5px;justify-content:flex-end;white-space:nowrap;}


@media(max-width:700px){.wordplus-recent-table{min-width:760px}}


/* KrutiDev must win over generic form-font rules. */
textarea.font-krutidev,input.font-krutidev,.font-krutidev,.font-krutidev *{font-family:"KrutiDev010Local","Kruti Dev 010",serif!important;font-weight:400!important;font-style:normal!important}

/* Rank scope selector layout */
.leader-wrap .leader-title{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;text-align:left}.leader-wrap .leader-title .tests-line{text-align:left;margin:6px 0 0}
@media(max-width:640px){.leader-wrap .leader-title{align-items:stretch}.leader-wrap .leader-title .tests-line{text-align:center}.leader-wrap .leader-title h1{text-align:center}}

/* ===== Permanent learner Error Bank: result-style tabs + compact wrong/correct list ===== */
.learn-error-tabs{display:flex;align-items:center;justify-content:flex-start;gap:7px;margin:12px 0;padding:10px;background:#f8fbff;border:1px solid var(--line);border-radius:12px;overflow-x:auto;scrollbar-width:none}
.learn-error-tabs::-webkit-scrollbar{display:none}
.learn-error-tab{flex:0 0 auto;white-space:nowrap;text-decoration:none!important}

@media(max-width:700px){.learn-error-tabs{gap:4px;padding:7px}.learn-error-tab{min-height:32px!important;padding:5px 8px!important;font-size:10.5px!important}}


/* ===== Lifetime Error Bank: use the exact Result comparison visual language ===== */
.learn-error-panel{border:1px solid #dbe2ea;border-radius:12px;overflow:hidden;background:#fff;}
.learn-error-result-list{padding:12px 14px;font-size:16px;line-height:2;text-align:justify;word-break:break-word}
.learn-error-result-item{display:inline;white-space:nowrap}.learn-error-result-item:not(:last-child)::after{content:", ";color:#111827;font-weight:400}.learn-error-result-item>.cmp-token,.learn-error-result-item>.err-pair{display:inline;white-space:nowrap}
.learn-error-result-list .pair-bracket{color:#111827!important;font-weight:400!important}
.learn-error-result-list .err-pair .rightword,.learn-error-result-list .err-pair .err-arrow{color:#111827!important;font-weight:400!important;background:transparent!important}
.learn-error-result-list .err-pair-other .bad{color:#2563eb!important;font-weight:400!important}
.learn-error-result-list .err-pair-number .bad{color:#d97706!important;font-weight:400!important}
.learn-error-result-list .err-pair-gender .bad{color:#f40afc!important;font-weight:400!important}
.learn-error-result-list .err-pair-space .bad{color:#0891b2!important;font-weight:400!important}
@media(max-width:700px){.learn-error-result-list{padding:10px 11px;font-size:14px;line-height:1.9}}


.dashboard-demo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.dashboard-expiry-grid{display:grid;grid-template-columns:1fr;gap:12px;margin:12px 0}
.dashboard-demo-card{padding:14px 16px}.dashboard-demo-card h2{font-size:16px;margin:0 0 9px}.dashboard-demo-form{display:flex;align-items:center;gap:8px}.dashboard-demo-form select{min-width:0;flex:1}.dashboard-demo-form button{flex:0 0 auto;white-space:nowrap}
.dashboard-validity-table table{min-width:560px}.dashboard-validity-table td,.dashboard-validity-table th{padding:8px 10px}
.control-tabs{display:flex;gap:7px;border-bottom:1px solid var(--line2);padding:0 0 10px;margin:0 0 12px}.control-tab{display:inline-flex;align-items:center;gap:7px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;text-decoration:none;font-weight:800;color:#42536d;background:#fff}.control-tab.on{border-color:#7ca6ff;background:#eef4ff;color:#245fe8}.control-tab span{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#eef2f8;font-size:11px}.control-live-card{overflow:hidden}
@media(max-width:760px){.dashboard-demo-grid,.dashboard-expiry-grid{grid-template-columns:1fr}.dashboard-demo-form{display:grid;grid-template-columns:minmax(0,1fr) auto}.dashboard-demo-form .btn.ghost{grid-column:2}.dashboard-validity-table{overflow:auto}.control-tabs{position:sticky;top:0;z-index:2;background:#fff}.control-tab{flex:1;justify-content:center;padding:8px 7px;font-size:11px}}

/* ===== Exact compact mobile staff lists + justified paragraph views ===== */
.master-preview.full-view,
.master-box,
.result-tabpanel .text-snapshot,
.compare,
.v2-compare{
  text-align:justify;
  text-justify:inter-word;
}




/* UI safety policy: navigation/exit stays left, forward/start action stays right. */
.setup .setup-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;margin-top:10px}
.setup .setup-actions>.btn:first-child,.setup .setup-actions>a:first-child{margin-right:auto}
.setup .setup-actions>button:last-child,.setup .setup-actions>.btn:last-child{margin-left:auto}
@media(max-width:640px){.setup .setup-actions{flex-direction:row!important;align-items:center!important}.setup .setup-actions>.btn,.setup .setup-actions>button{width:auto!important;flex:0 0 auto!important}}

.form-actions .btn.ghost:first-child,.form-actions button.ghost:first-child{margin-right:auto}
.validity-modal-actions .btn.ghost:first-child,.validity-modal-actions button.ghost:first-child{margin-right:auto}

.test-work-state{display:inline-flex;align-items:center;margin-left:5px;padding:2px 6px;border-radius:999px;font-size:9px;font-weight:900;vertical-align:middle}
.test-work-state.draft{background:#fef3c7;color:#92400e}


@media (max-width:700px){
  
  
  
  
  
  
  
  
  
  .learner-profile-result-card>td{display:block!important;border:0!important;padding:0!important;min-width:0!important}.learner-profile-result-card .select-col{grid-column:1!important;grid-row:1!important;align-self:center!important}.learner-profile-result-card .profile-result-test{grid-column:2!important;grid-row:1!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}.learner-profile-result-card .profile-result-serial,.learner-profile-result-card .profile-result-type,.learner-profile-result-card .profile-result-accuracy,.learner-profile-result-card .profile-result-speed,.learner-profile-result-card .profile-result-date{display:none!important}
}

.dashboard-validity-mobile-list{display:none}
@media(max-width:700px){
  /* Expiry dashboard: exactly Name (#code) · Role · View. No username/date/status clutter. */
  .dashboard-validity-table{display:none!important}
  .dashboard-validity-mobile-list{display:block!important}
  .dashboard-validity-mobile-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto 30px!important;align-items:center!important;column-gap:8px!important;width:100%!important;box-sizing:border-box!important;padding:9px 10px!important;margin:0 0 7px!important;border:1px solid var(--line)!important;border-radius:11px!important;background:#fff!important;overflow:hidden!important}
  .dashboard-validity-mobile-name{min-width:0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:12px!important}
  .dashboard-validity-mobile-role{white-space:nowrap!important;justify-self:end!important}
  .dashboard-validity-mobile-view{justify-self:end!important;width:28px!important;height:28px!important;min-width:28px!important;padding:0!important}

  /* Staff list cards: checkbox + compact identity + tools stay on one row. */
  
  
  
  
  




}
@media(min-width:701px){.dashboard-validity-mobile-list{display:none!important}}









/* Seat Reset: compact destructive-action disclosure; form opens only after I Agree. */
.seat-reset-list{margin:7px 0 9px 18px;padding:0;line-height:1.55}.seat-reset-list li{margin:2px 0}


@media(min-width:701px){
  
  
  
  
  .learner-profile-results{min-width:650px!important;table-layout:fixed}
  .learner-profile-results .select-col{width:34px}.learner-profile-results th:nth-child(3){width:135px}.learner-profile-results th:nth-child(4){width:82px}
  
}

@media (max-width:700px){
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  .learner-profile-results th,.learner-profile-results td{font-size:9px!important;padding:7px 6px!important}.learner-profile-results .select-col{width:28px}.learner-profile-results th:nth-child(3){width:80px}.learner-profile-results th:nth-child(4){width:62px}.learner-profile-results .ico{width:24px!important;height:24px!important;min-width:24px!important;max-width:24px!important}
}


.result-identity-table{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr) minmax(0,1.08fr);
  gap:10px;border:0;border-radius:0;overflow:visible;background:transparent;margin:0 0 14px
}
.result-identity-cell{
  position:relative;min-width:0;padding:15px 16px;display:flex;flex-direction:column;justify-content:center;gap:6px;
  min-height:104px;background:var(--card);border:1px solid var(--line);border-radius:13px;
  box-shadow:0 4px 14px rgba(25,55,90,.06);font-size:14px;line-height:1.3;overflow:hidden
}
.result-identity-cell:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#3268d8}
.result-identity-test:before{background:#6c54c7}.result-identity-outcome:before{background:#159447}
.result-identity-cell>b,.result-identity-cell>b a{
  display:block;max-width:100%;font-size:17px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.result-identity-test>b{font-size:18px}
.result-identity-cell span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.result-identity-cell .dbid{display:inline}
.result-identity-outcome{font-size:14px}
.result-identity-outcome span{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:1px 0}
.result-identity-outcome span b{font-size:15px;text-align:right}
.result-identity-outcome .qualification-pass{color:#0a9f50}
.result-identity-outcome .qualification-fail{color:#e12626}
@media(max-width:700px){
  .result-identity-table{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr) minmax(0,1.05fr);gap:5px}
  .result-identity-cell{min-height:82px;padding:9px 8px 9px 10px;gap:4px;border-radius:9px;font-size:9px;box-shadow:0 2px 8px rgba(25,55,90,.05)}
  .result-identity-cell:before{width:3px}
  .result-identity-cell>b,.result-identity-cell>b a,.result-identity-test>b{font-size:10.5px}
  .result-identity-outcome{font-size:9px}.result-identity-outcome span{gap:4px}.result-identity-outcome span b{font-size:9.5px}
}


/* Shared desktop table surface */


/* Desktop widths: names/titles get the largest flexible space */


/* Cell discipline */


/* Mobile: true responsive cards; no horizontal table scrolling */


.mobile-field-label{display:none;}

/* DESKTOP */
.learner-list,.test-list,.result-list,.available{width:100%;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--card)}
.learner-list .dhead,.learner-list .drow,.test-list .dhead,.test-list .drow,.result-list .dhead,.result-list .drow,.available .dhead,.available .drow{display:grid!important;align-items:center!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;margin:0!important;border-radius:0!important}
.learner-list .dhead,.test-list .dhead,.result-list .dhead,.available .dhead{min-height:40px;padding:0 12px!important;background:#172942;color:#fff;border:0!important;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.02em}
.learner-list .drow,.test-list .drow,.result-list .drow,.available .drow{min-height:62px;padding:10px 12px!important;background:var(--card);border:0!important;border-top:1px solid var(--line)!important;box-shadow:none!important}

.learner-list .dhead,.learner-list .drow{grid-template-columns:22px minmax(210px,1.55fr) minmax(180px,1.15fr) minmax(100px,.62fr) minmax(100px,.65fr) 222px!important;gap:12px!important}
.test-list .dhead,.test-list .drow{grid-template-columns:22px minmax(340px,2.2fr) minmax(190px,1.1fr) minmax(140px,.8fr) 95px 174px!important;gap:13px!important}
.result-list .dhead,.result-list .drow{grid-template-columns:22px minmax(240px,1.35fr) minmax(320px,1.8fr) minmax(120px,.7fr) 74px!important;gap:13px!important}
.available .dhead,.available .drow{grid-template-columns:minmax(310px,2fr) 80px minmax(145px,.9fr) minmax(130px,.8fr) 96px 115px!important;gap:12px!important}

.staff-learner-main,.desktop-learner-username,.staff-learner-validity,.staff-learner-status,.staff-test-main,.staff-test-creator,.staff-test-topic,.staff-test-status,.staff-result-learner,.staff-result-test,.staff-result-performance,.available .test-main,.available .test-details-cell,.available .test-topic-cell{min-width:0!important}
.staff-learner-main .title,.staff-test-main .title,.staff-test-creator b,.staff-test-topic>span:last-child,.staff-result-learner,.staff-result-test>span:last-child,.available .test-main .title,.available .test-topic-cell{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.staff-learner-main .title,.staff-test-main .title,.staff-result-learner b,.available .test-main .title{font-weight:800}
.staff-test-main .sub,.staff-test-creator .sub,.available .desktop-test-sub{margin-top:4px;font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.desktop-learner-username{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:700;color:#405674}
.staff-learner-actions,.staff-test-actions,.staff-result-actions,.available .test-start-cell{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:4px!important;width:auto!important;min-width:0!important;grid-column:auto!important;grid-row:auto!important}
.staff-learner-actions .ico,.staff-test-actions .ico,.staff-result-actions .ico{width:29px!important;height:29px!important;min-width:29px!important;max-width:29px!important;min-height:29px!important;padding:0!important;border-radius:8px!important;font-size:12px!important}
.available .mobile-test-meta{display:none!important}
.available .test-start-cell .btn{white-space:nowrap;padding:8px 12px!important}

/* MOBILE — true cards, no horizontal scrolling */
@media (max-width:700px){
  .learner-list,.test-list,.result-list,.available{border:0!important;border-radius:0!important;overflow:visible!important;background:transparent!important}
  .learner-list .dhead,.test-list .dhead,.result-list .dhead,.available .dhead{display:none!important}
  
  .learner-list .drow,.test-list .drow,.result-list .drow,.available .drow{width:100%!important;min-width:0!important;max-width:100%!important;min-height:0!important;margin:0 0 8px!important;padding:10px!important;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--card)!important;box-shadow:0 2px 8px rgba(25,55,90,.045)!important}

  /* Staff/Supreme Tests */
  .test-list .drow{grid-template-columns:20px minmax(0,1fr) auto!important;grid-template-areas:"check test status" ". creator creator" ". topic topic" ". actions actions"!important;gap:8px 9px!important;align-items:start!important}
  .test-list .staff-card-select{grid-area:check!important;padding-top:1px!important}
  .test-list .staff-test-main{grid-area:test!important}
  .test-list .staff-test-status{grid-area:status!important;text-align:right!important}
  .test-list .staff-test-creator{grid-area:creator!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;align-items:end!important}
  .test-list .staff-test-creator .mobile-field-label{grid-column:1/-1;margin-bottom:-4px!important}
  .test-list .staff-test-creator .sub{margin:0!important;text-align:right!important}
  .test-list .staff-test-topic{grid-area:topic!important;display:flex!important;gap:7px!important;align-items:center!important;font-size:10px!important}
  .test-list .staff-test-topic .mobile-field-label{margin:0!important;flex:0 0 auto!important}
  .test-list .staff-test-actions{grid-area:actions!important;justify-content:flex-start!important;flex-wrap:wrap!important;padding-top:2px!important}
  .test-list .staff-test-main .title{font-size:12px!important;line-height:1.25!important}
  .test-list .staff-test-main .sub{font-size:9px!important;line-height:1.35!important;white-space:normal!important;overflow:visible!important}
  .test-list .staff-test-status .pill{font-size:8px!important;padding:3px 7px!important}

  /* Results */
  .result-list .drow{grid-template-columns:20px minmax(0,1fr) auto!important;grid-template-areas:"check user perf" ". test test" ". actions actions"!important;gap:8px 9px!important}
  .result-list .staff-card-select{grid-area:check!important;align-self:start!important}
  .result-list .staff-result-learner{grid-area:user!important;font-size:12px!important}
  .result-list .staff-result-performance{grid-area:perf!important;text-align:right!important;font-size:11px!important}
  .result-list .staff-result-test{grid-area:test!important;display:flex!important;align-items:center!important;gap:7px!important;font-size:10px!important}
  .result-list .staff-result-test .mobile-field-label{margin:0!important;flex:0 0 auto!important}
  .result-list .staff-result-actions{grid-area:actions!important;justify-content:flex-start!important;padding-top:2px!important}

  /* Learner Available Tests */
  .available .drow{grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"test action" "meta meta" "details status"!important;gap:8px 9px!important}
  .available .test-main{grid-area:test!important}
  .available .test-main .title{font-size:12px!important;line-height:1.25!important}
  .available .desktop-test-sub{font-size:9px!important;line-height:1.35!important;white-space:normal!important;overflow:visible!important;margin-top:3px!important}
  .available .mobile-test-meta{grid-area:meta!important;display:flex!important;gap:10px!important;flex-wrap:wrap!important;font-size:9px!important;color:var(--muted)!important}
  .available .test-time-cell{display:none!important}
  .available .test-details-cell{grid-area:details!important;font-size:9px!important;color:var(--muted)!important}
  .available .test-topic-cell{display:none!important}
  .available .test-public-cell{grid-area:status!important;text-align:right!important;font-size:9px!important}
  .available .test-start-cell{grid-area:action!important;align-self:start!important}
  .available .test-start-cell .btn{padding:6px 9px!important;font-size:9px!important;border-radius:8px!important}

  .learner-list .ico,.test-list .ico,.result-list .ico{width:28px!important;height:28px!important;min-width:28px!important;max-width:28px!important;min-height:28px!important;font-size:11px!important;border-radius:8px!important}
}
@media(max-width:380px){
  .learner-list .drow,.test-list .drow,.result-list .drow,.available .drow{padding:8px!important;gap:6px 7px!important}
  .learner-list .ico,.test-list .ico,.result-list .ico{width:26px!important;height:26px!important;min-width:26px!important;max-width:26px!important;min-height:26px!important}
}

/* ===== Single-source utility styles: formerly inline app styles ===== */
.service-stats-spaced{margin-top:10px}
.readiness-actions{display:flex;gap:8px;align-items:center}
.setup-grid-spaced{margin-top:12px}
.recalc-progress-card{max-width:760px}
.recalc-progress-card .section-title{align-items:center}
.recalc-track{display:block;width:100%;height:16px;margin:16px 0;border:0;border-radius:999px;overflow:hidden;background:#e8edf3}
.recalc-track::-webkit-progress-bar{background:#e8edf3;border-radius:999px}
.recalc-track::-webkit-progress-value{background:#159447;border-radius:999px;transition:width .2s ease}
.recalc-track::-moz-progress-bar{background:#159447;border-radius:999px}
.storage-progress{display:block;width:100%;height:7px;margin-top:7px;border:0;border-radius:999px;overflow:hidden;background:#e8eef7}
.storage-progress::-webkit-progress-bar{background:#e8eef7;border-radius:999px}
.storage-progress::-webkit-progress-value{background:#2764ed;border-radius:999px}
.storage-progress::-moz-progress-bar{background:#2764ed;border-radius:999px}
.storage-meter.warning .storage-progress::-webkit-progress-value{background:#f59e0b}
.storage-meter.warning .storage-progress::-moz-progress-bar{background:#f59e0b}
.storage-meter.critical .storage-progress::-webkit-progress-value{background:#dc2626}
.storage-meter.critical .storage-progress::-moz-progress-bar{background:#dc2626}
.test-instructions{min-height:80px}

/* ===== Consolidated responsive selectors ===== */
@media (max-width:700px){.history .drow{min-width:0 !important;display:grid !important;gap:7px 10px !important;margin:0 0 10px;border:1px solid var(--line) !important;background:#fff;box-shadow:var(--shadow);grid-template-columns:minmax(0,1fr) auto !important;grid-template-rows:auto auto !important;column-gap:9px !important;row-gap:3px !important;align-items:center !important;margin-bottom:6px !important;padding:8px 9px 8px 11px !important;border-radius:11px !important;min-height:0 !important;position:relative;}.history .result-main{grid-column:1 !important;min-width:0 !important;grid-row:1/3 !important;display:grid !important;grid-template-rows:auto auto !important;row-gap:3px !important;}.history .result-main .title{min-width:0 !important;margin:0 !important;font-size:13px !important;line-height:1.2 !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;}.history .result-type{grid-column:1 !important;}.history .result-view{grid-column:2 !important;grid-row:1/3 !important;align-self:center !important;justify-content:flex-end !important;}.leader-wrap tr.rank-mobile-card{display:grid;margin:0 0 10px;border:1px solid var(--line);background:#fff;box-shadow:var(--shadow);grid-template-columns:auto minmax(0,1fr) auto !important;grid-template-rows:auto auto !important;gap:3px 8px !important;align-items:center !important;margin-bottom:6px !important;padding:8px 9px !important;border-radius:11px !important;}.leader-wrap tr.rank-mobile-card td{display:flex !important;align-items:center;gap:8px;min-width:0 !important;padding:0 !important;border:0 !important;text-align:right;justify-content:flex-start !important;font-size:10px !important;line-height:1.15 !important;}.leader-wrap tr.rank-mobile-card td::before{content:attr(data-label);color:#718198;font-size:9px;font-weight:850;text-transform:uppercase;text-align:left;display:none !important;}.leader-wrap tr.rank-mobile-card td[data-label="Learner"]{border-bottom:1px solid var(--line2) !important;padding-bottom:8px !important;grid-column:2 !important;grid-row:1 !important;min-width:0 !important;padding:0 !important;border:0 !important;font-size:13px !important;white-space:nowrap !important;overflow:hidden !important;text-overflow:ellipsis !important;}.leader-wrap tr.rank-mobile-card td[data-label="Rank"]{grid-column:1 !important;grid-row:1/3 !important;align-self:center !important;}.leader-wrap tr.rank-mobile-card td[data-label="Remark"]{grid-column:3 !important;grid-row:1/3 !important;justify-content:flex-end !important;align-self:center !important;}.history .result-type,
  .history .result-accuracy,
  .history .result-speed,
  .history .result-date{grid-row:2 !important;grid-column:auto !important;min-width:0 !important;color:#60708a !important;font-size:10px !important;line-height:1.15 !important;text-align:left !important;white-space:nowrap !important;display:none !important;}.wordplus-draftbar{left:8px;right:8px;bottom:8px;justify-content:space-between;display:grid;grid-template-columns:1fr auto auto auto;gap:5px;}.advisor-word-grid{grid-template-columns:1fr;gap:7px;}.renewal-qr-side{border-left:0;border-top:1px solid var(--line2);padding:14px 0 0;order:2;}.renewal-offer-row{grid-template-columns:1fr 1fr !important;}.learner-profile-results{table-layout:fixed !important;display:block !important;width:100% !important;max-width:100% !important;border:0 !important;background:transparent !important;min-width:430px !important;}.learner-profile-results tbody{display:block !important;width:100% !important;min-width:0 !important;max-width:100% !important;}.mobile-field-label{margin-bottom:2px;display:block !important;margin:0 0 2px;color:var(--muted);font-size:8px !important;font-weight:800;text-transform:uppercase;letter-spacing:.04em;}}
/* ===== Test Submissions — single authoritative list contract ===== */
.test-submission-list{width:100%;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--card)}
.test-submission-list .dhead,.test-submission-list .drow{display:grid;grid-template-columns:28px minmax(210px,1.25fr) minmax(260px,1.55fr) minmax(120px,.7fr) 74px;gap:12px;align-items:center;width:100%;min-width:0;box-sizing:border-box}
.test-submission-list .dhead{min-height:40px;padding:0 12px;background:#172942;color:#fff;border:0;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.02em}
.test-submission-list .drow{min-height:62px;padding:10px 12px;border:0;border-top:1px solid var(--line);background:var(--card)}
.test-submission-list .test-submission-select{min-width:0}
.test-submission-list .test-submission-main,.test-submission-list .test-submission-test,.test-submission-list .test-submission-performance{min-width:0}
.test-submission-list .test-submission-main{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.test-submission-list .test-submission-test{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.test-submission-list .test-submission-performance{font-size:12px}
.test-submission-list .test-submission-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:nowrap}
.test-submission-list .test-submission-actions .ico{width:30px;height:30px;min-width:30px;max-width:30px;padding:0}

@media(max-width:700px){
  .test-submission-list{border:0;border-radius:0;overflow:visible;background:transparent}
  .test-submission-list .dhead{display:none}
  .test-submission-list .drow{grid-template-columns:18px minmax(0,1fr) 64px;grid-template-areas:"check user actions" ". test actions" ". perf actions";gap:5px 8px;min-height:0;margin:0 0 8px;padding:9px 10px;border:1px solid var(--line);border-radius:11px;background:var(--card)}
  .test-submission-list .test-submission-select{grid-area:check;align-self:start}
  .test-submission-list .test-submission-main{grid-area:user;font-size:12px}
  .test-submission-list .test-submission-test{grid-area:test;font-size:10px;color:#60708a}
  .test-submission-list .test-submission-performance{grid-area:perf;font-size:11px}
  .test-submission-list .test-submission-actions{grid-area:actions;align-self:center;justify-self:end;width:64px}
  .test-submission-list .test-submission-actions .ico{width:28px;height:28px;min-width:28px;max-width:28px}
}


/* ===== Owner Dashboard V9 repair: isolated responsive layout ===== */
.dashboard-head{margin-bottom:16px}
.dashboard-stat-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:0 0 14px!important;width:100%!important}
.dashboard-stat-grid .dashboard-stat{display:block!important;min-width:0!important;width:auto!important;min-height:118px!important;padding:16px 18px!important;overflow:hidden!important}
.dashboard-stat-grid .dashboard-stat small{font-size:11px!important}
.dashboard-stat-grid .dashboard-stat b{font-size:27px!important;line-height:1.1!important;color:var(--ink)!important}
.dashboard-stat-grid .dashboard-stat span{display:block;margin-top:7px;color:var(--muted);font-size:11px;font-weight:700;white-space:normal}
.dashboard-stat-grid .admin-stat{background:linear-gradient(135deg,#fff,#f4f7ff)}
.dashboard-demo-grid{align-items:stretch}
.dashboard-demo-card{margin-bottom:0;min-width:0}
.dashboard-expiry-grid>.card{min-width:0}
@media(max-width:980px){.dashboard-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:620px){.dashboard-head{align-items:flex-start;flex-direction:column}.dashboard-head .actions{width:100%}.dashboard-head .actions .btn{flex:1}.dashboard-stat-grid{grid-template-columns:1fr!important}.dashboard-stat-grid .dashboard-stat{min-height:96px!important}.dashboard-demo-form{grid-template-columns:1fr 1fr}.dashboard-demo-form select{grid-column:1/-1}.dashboard-demo-form .btn,.dashboard-demo-form .btn.ghost{grid-column:auto}}

/* ===== Computer test view readability + review override repair ===== */
.computer-commands-card .table-wrap{border:1px solid var(--line);border-radius:12px;overflow:auto}
.computer-command-table{margin:0;min-width:720px}
.computer-command-table th{font-size:10px;letter-spacing:.035em}
.computer-command-table td{padding:12px 13px;vertical-align:top}
.computer-command-table .computer-qno{width:64px;font-size:13px;font-weight:850;color:var(--ink);white-space:nowrap}
.computer-command-table .computer-command-text{font-size:14px;line-height:1.55;font-weight:650;color:var(--ink)}
.computer-command-table .computer-command-marks{width:92px;text-align:right;font-size:13px;font-weight:850;white-space:nowrap}
.computer-source-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.computer-review-panel{padding:0!important;overflow:hidden}
.computer-review-panel>summary{list-style:none}
.computer-review-panel>summary::-webkit-details-marker{display:none}
.computer-review-summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px;cursor:pointer;user-select:none;background:var(--card);border-radius:inherit}
.computer-review-summary:hover{background:#f8fbff}
.computer-review-summary>span:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.computer-review-summary b{font-size:14px;color:var(--ink)}
.computer-review-summary small{font-size:10px;color:var(--muted);font-weight:650}
.computer-review-state{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:10px;font-weight:800;color:#2764ed}
.computer-review-state:after{content:"▾";font-size:13px;transition:transform .15s ease}
.computer-review-panel[open] .computer-review-state:after{transform:rotate(180deg)}
.computer-review-body{padding:0 17px 16px;border-top:1px solid var(--line2)}
.computer-review-body>.sub{margin:12px 0}
.computer-review-list{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:#fff}
.computer-review-row{display:grid;grid-template-columns:54px minmax(240px,1fr) 72px 132px 154px;gap:12px;align-items:center;margin:0!important;padding:11px 12px;border:0;border-top:1px solid var(--line2);background:#fff}
.computer-review-row:first-child{border-top:0}
.computer-review-q{font-size:12px;color:var(--ink)}
.computer-review-command{min-width:0;font-size:12px;line-height:1.45;color:var(--ink)}
.computer-review-marks{text-align:right;font-size:12px;white-space:nowrap}
.computer-force-toggle{display:flex;align-items:center;gap:7px;margin:0;font-size:11px;font-weight:750;white-space:nowrap;color:var(--ink)}
.computer-force-toggle input{width:18px;height:18px;margin:0;accent-color:#2764ed}
.computer-review-save{width:100%!important;min-width:0!important;white-space:nowrap!important;padding:9px 10px!important;font-size:10px!important}
@media(max-width:900px){
  .computer-review-row{grid-template-columns:44px minmax(0,1fr) 66px 124px;grid-template-areas:"q command marks toggle" ". command save save";gap:8px 10px}
  .computer-review-q{grid-area:q}.computer-review-command{grid-area:command}.computer-review-marks{grid-area:marks}.computer-force-toggle{grid-area:toggle}.computer-review-save{grid-area:save;justify-self:end;max-width:220px}
}
@media(max-width:620px){
  .computer-command-table{min-width:600px}.computer-command-table .computer-command-text{font-size:13px}
  .computer-review-summary{align-items:flex-start}.computer-review-summary small{max-width:220px}
  .computer-review-row{grid-template-columns:38px minmax(0,1fr) 64px;grid-template-areas:"q command marks" ". command command" ". toggle save";padding:10px}
  .computer-force-toggle{align-self:center}.computer-review-save{max-width:180px}
}

/* ===== 2026-09-04 result date + single-delete + Computer identity patch ===== */
.btn.computer-test-btn,.computer-test-btn{
  background:#7f1d1d!important;border-color:#7f1d1d!important;color:#fff!important;
}
.btn.computer-test-btn:hover,.btn.computer-test-btn:focus-visible,.computer-test-btn:hover,.computer-test-btn:focus-visible{
  background:#5f1515!important;border-color:#5f1515!important;color:#fff!important;
}
.dashboard-demo-grid{grid-template-columns:repeat(3,minmax(0,1fr))}









.result-list .dhead,.result-list .drow{grid-template-columns:22px minmax(210px,1.2fr) minmax(260px,1.5fr) minmax(120px,.7fr) minmax(150px,.78fr) 74px!important}
.staff-result-date,.test-submission-date,.profile-result-date{font-size:11px;color:#52647d;white-space:nowrap}
.test-submission-list .dhead,.test-submission-list .drow{grid-template-columns:28px minmax(190px,1.2fr) minmax(220px,1.35fr) minmax(110px,.65fr) minmax(145px,.78fr) 74px}
.learner-profile-results .profile-result-mobile-meta{display:none}
.learner-profile-results th:nth-child(3){width:135px}.learner-profile-results th:nth-child(4){width:155px}.learner-profile-results th:nth-child(5){width:82px}


@media(max-width:980px){.dashboard-demo-grid{grid-template-columns:1fr}}
@media(max-width:700px){
  
  .result-list .drow{grid-template-areas:"check user perf" ". test test" ". date date" ". actions actions"!important}
  .result-list .staff-result-date{grid-area:date!important;display:block!important;font-size:9.5px!important}
  .test-submission-list .drow{grid-template-areas:"check user actions" ". test actions" ". perf actions" ". date actions"}
  .test-submission-list .test-submission-date{grid-area:date;font-size:9.5px;color:#60708a}
}

/* ===== 2026-09-04 public landing refinement: features first, demo after, compact login + Join CTA ===== */




























.join-qr-placeholder{width:100%;aspect-ratio:1/1;border:2px dashed #91a7c8;border-radius:14px;background:repeating-conic-gradient(#eef3fb 0 25%,#fff 0 50%) 50%/18px 18px;display:grid;place-content:center;text-align:center;color:#17335f;box-shadow:inset 0 0 0 10px rgba(255,255,255,.82)}
.join-qr-placeholder span{font-size:30px;font-weight:950;letter-spacing:.08em}
.join-qr-placeholder small{display:block;margin-top:5px;padding:4px 7px;background:#fff;border-radius:7px;font-size:10px;line-height:1.3;font-weight:800}










/* Result presentation now uses .result-simple-* + .result-summary-table only. */
/* ===== 2026-09-05 mobile density + result strip + landing contact polish ===== */
.mobile-staff-test-meta,.mobile-learner-status,.mobile-inline-performance,.mobile-result-subline{display:none}





@media(max-width:700px){
  /* Learner available tests: compact two-column card */
  .available .drow{grid-template-columns:minmax(0,1fr) 72px!important;grid-template-areas:"test action" "meta action"!important;gap:4px 8px!important;padding:9px 10px!important;align-items:center!important}
  .available .desktop-test-sub,.available .test-details-cell,.available .test-public-cell{display:none!important}
  .available .mobile-test-meta{display:flex!important;grid-area:meta!important;gap:4px 8px!important;flex-wrap:wrap!important;align-items:center!important;font-size:8.5px!important;line-height:1.25!important;color:#60708a!important;margin-top:1px!important}
  .available .mobile-test-meta span{white-space:nowrap}
  .available .test-start-cell{grid-area:action!important;align-self:center!important;justify-self:end!important}
  .available .test-start-cell .btn{width:72px!important;min-width:72px!important;max-width:72px!important;height:36px!important;min-height:36px!important;padding:0 5px!important;display:grid!important;place-items:center!important;font-size:9px!important;line-height:1!important;border-radius:9px!important}
  .available .test-main .title{font-size:12px!important;line-height:1.25!important;padding-right:2px}
  .available .done-mark,.available .today-target{font-size:8px!important;padding:2px 5px!important}

  /* Supreme test list: title/meta left, action tools right */
  .test-list .drow{grid-template-columns:20px minmax(0,1fr) auto!important;grid-template-areas:"check test actions"!important;gap:7px 7px!important;padding:9px 9px!important;align-items:center!important}
  .test-list .staff-card-select{align-self:start!important;padding-top:2px!important}
  .test-list .staff-test-main{grid-area:test!important;align-self:center!important}
  .test-list .desktop-staff-test-sub,.test-list .staff-test-creator,.test-list .staff-test-topic,.test-list .staff-test-status{display:none!important}
  .test-list .mobile-staff-test-meta{display:flex!important;gap:4px 8px!important;flex-wrap:wrap!important;margin-top:3px;font-size:8.5px;line-height:1.2;color:#60708a}
  .test-list .mobile-staff-test-meta span{white-space:nowrap}
  .test-list .staff-test-actions{grid-area:actions!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:3px!important;padding:0!important}
  .test-list .staff-test-main .title{font-size:12px!important;line-height:1.2!important}
  .test-list .staff-test-actions .ico{width:27px!important;height:27px!important;min-width:27px!important;max-width:27px!important;min-height:27px!important;font-size:10px!important}

  /* Supreme result list: learner + performance first row, test/date second row, actions right */
  .result-list .drow{grid-template-columns:20px minmax(0,1fr) 62px!important;grid-template-areas:"check user actions"!important;gap:7px!important;padding:8px 9px!important;align-items:center!important}
  .result-list .staff-card-select{grid-area:check!important;align-self:start!important;padding-top:2px!important}
  .result-list .staff-result-learner{grid-area:user!important;min-width:0!important;font-size:11px!important}
  .result-list .staff-result-learner>div:first-child{display:flex;align-items:baseline;gap:6px;min-width:0}
  .result-list .staff-result-learner a{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mobile-inline-performance{display:inline!important;margin-left:auto!important;font-size:10px!important;font-weight:900!important;color:#142947!important;white-space:nowrap!important}
  .mobile-result-subline{display:flex!important;gap:5px!important;align-items:center!important;margin-top:2px!important;font-size:8.5px!important;line-height:1.2!important;color:#60708a!important;min-width:0!important}
  .mobile-result-subline span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mobile-result-subline span:last-child{white-space:nowrap;margin-left:auto}
  .result-list .staff-result-test,.result-list .staff-result-performance,.result-list .staff-result-date{display:none!important}
  .result-list .staff-result-actions{grid-area:actions!important;justify-content:flex-end!important;padding:0!important;gap:4px!important}
  .result-list .staff-result-actions .ico{width:27px!important;height:27px!important;min-width:27px!important;max-width:27px!important;min-height:27px!important}

  /* Test submission results: same compact pattern */
  .test-submission-list .dhead{display:none!important}
  .test-submission-list .drow{display:grid!important;grid-template-columns:20px minmax(0,1fr) 62px!important;grid-template-areas:"check user actions"!important;gap:7px!important;padding:8px 9px!important;margin:0 0 7px!important;border:1px solid var(--line)!important;border-radius:10px!important;align-items:center!important}
  .test-submission-list .test-submission-select{grid-area:check!important;align-self:start!important;padding-top:2px!important}.test-submission-list .test-submission-main{grid-area:user!important;min-width:0!important;font-size:11px!important}.test-submission-list .test-submission-main>div:first-child{display:flex;align-items:baseline;gap:6px;min-width:0}.test-submission-list .test-submission-main>div:first-child>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .test-submission-list .test-submission-test,.test-submission-list .test-submission-performance,.test-submission-list .test-submission-date{display:none!important}.test-submission-list .test-submission-actions{grid-area:actions!important;display:flex!important;justify-content:flex-end!important;gap:4px!important}.test-submission-list .test-submission-actions .ico{width:27px!important;height:27px!important;min-width:27px!important;max-width:27px!important;min-height:27px!important}

  /* Result summary: keep 2x2 mobile strip; date/time and result/status/rank are separate lines */
  
  
  
  

  /* Landing header/contact and login actions */
  
}

@media(max-width:390px){
  .test-list .staff-test-actions{max-width:96px!important;flex-wrap:wrap!important}.available .drow{grid-template-columns:minmax(0,1fr) 68px!important}.available .test-start-cell .btn{width:68px!important;min-width:68px!important;max-width:68px!important}
  .learner-list .drow{grid-template-columns:18px minmax(0,1fr) auto 88px!important}.learner-list .staff-learner-actions{max-width:88px!important}
}

@media print{
  
}
/* ===== 2026-09-05 focused mobile compaction + transparent recalculation ===== */
.mobile-learner-meta{display:none}
.recalc-toast{position:fixed;right:18px;bottom:18px;z-index:1200;display:grid;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:10px;min-width:300px;max-width:min(460px,calc(100vw - 28px));padding:11px 13px;border:1px solid #b9cbed;border-radius:12px;background:rgba(255,255,255,.96);box-shadow:0 12px 34px rgba(20,43,77,.16);backdrop-filter:blur(8px);color:var(--ink)}
.recalc-toast b,.recalc-toast small{display:block}.recalc-toast b{font-size:12px}.recalc-toast small{margin-top:2px;font-size:9.5px;color:var(--muted)}.recalc-toast-count{font-size:10px;font-weight:850;color:#31577f;white-space:nowrap}.recalc-toast-spinner{width:16px;height:16px;border:2px solid #d8e3f3;border-top-color:#2764ed;border-radius:50%;animation:recalc-spin .7s linear infinite}.recalc-toast.done{border-color:#9fe0b7;background:rgba(244,255,248,.97)}.recalc-toast.done .recalc-toast-spinner{border-color:#bce8ca;border-top-color:#159447}.recalc-toast.paused{border-color:#f2d49a;background:rgba(255,251,241,.97)}.recalc-toast.paused .recalc-toast-spinner{animation:none;border-color:#e5b84e}@keyframes recalc-spin{to{transform:rotate(360deg)}}

@media(max-width:700px){
  .learner-list .drow{grid-template-columns:18px minmax(0,1fr) auto!important;grid-template-areas:"check name actions"!important;align-items:center!important;column-gap:8px!important;row-gap:0!important;padding:8px 9px!important}
  .learner-list .staff-card-select{grid-area:check!important;align-self:center!important;padding:0!important}
  .learner-list .staff-learner-main{grid-area:name!important;min-width:0!important}
  .learner-list .staff-learner-main .title{font-size:11.5px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .learner-list .mobile-learner-meta{display:flex!important;align-items:center!important;gap:7px!important;margin-top:3px!important;min-width:0!important;font-size:8.5px!important;color:#60708a!important;white-space:nowrap!important}
  .learner-list .mobile-learner-meta .pill{font-size:7.5px!important;line-height:1!important;padding:3px 6px!important}
  .learner-list .mobile-validity-inline{font-weight:650!important}.learner-list .mobile-validity-inline b{color:#263b59!important}
  .learner-list .staff-learner-validity,.learner-list .staff-learner-status,.learner-list .mobile-learner-status{display:none!important}
  .learner-list .staff-learner-actions{grid-area:actions!important;justify-self:end!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:3px!important;padding:0!important;max-width:none!important}
  .learner-list .staff-learner-actions .ico{width:25px!important;height:25px!important;min-width:25px!important;max-width:25px!important;min-height:25px!important;border-radius:7px!important;font-size:10px!important}

  .result-bulk-form .result-bulk-bar{display:none!important}
  .learner-profile-results-wrap{overflow:visible!important}
  .learner-profile-results{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;border:0!important;background:transparent!important}
  .learner-profile-results thead{display:none!important}.learner-profile-results tbody{display:block!important;width:100%!important}
  .learner-profile-results .learner-profile-result-card{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"main actions"!important;align-items:center!important;column-gap:8px!important;width:100%!important;min-width:0!important;margin:0 0 6px!important;padding:8px 9px 8px 11px!important;border:1px solid var(--line)!important;border-radius:11px!important;background:#fff!important;box-shadow:0 2px 8px rgba(25,55,90,.04)!important;overflow:hidden!important}
  .learner-profile-results .learner-profile-result-card>td{border:0!important;padding:0!important;min-width:0!important}
  .learner-profile-results .learner-profile-result-card .select-col{display:none!important}
  .learner-profile-results .profile-result-test{grid-area:main!important;min-width:0!important}
  .learner-profile-results .profile-result-test>b{display:block!important;font-size:12px!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .learner-profile-results .profile-result-mobile-meta{display:flex!important;align-items:center!important;gap:0!important;margin-top:3px!important;min-width:0!important;white-space:nowrap!important;overflow:hidden!important;color:#60708a!important;font-size:9px!important;line-height:1.15!important}
  .learner-profile-results .profile-result-mobile-meta span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .learner-profile-results .profile-result-mobile-meta span+span:before{content:" · ";padding:0 3px;color:#9aa8ba!important}
  .learner-profile-results .profile-result-performance,.learner-profile-results .profile-result-date{display:none!important}
  .learner-profile-results .profile-result-actions{grid-area:actions!important;display:block!important;justify-self:end!important;width:auto!important;max-width:none!important;padding:0!important;overflow:visible!important}
  .learner-profile-results .profile-result-actions .manage{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:4px!important;width:auto!important;max-width:none!important}
  .learner-profile-results .profile-result-actions .ico{width:27px!important;height:27px!important;min-width:27px!important;max-width:27px!important;padding:0!important;border-radius:8px!important}

  .recalc-toast{left:10px;right:10px;bottom:10px;min-width:0;max-width:none;padding:10px 11px;grid-template-columns:16px minmax(0,1fr) auto}.recalc-toast b{font-size:11px}.recalc-toast small{font-size:9px}
}

/* Public registration tabs: rendered only when Supreme enables registration. */


/* Learner-owned test creation: stable View + Start actions */
.learner-test-actions{display:grid!important;grid-template-columns:minmax(70px,1fr) minmax(70px,1fr);gap:8px;align-items:center}
.learner-test-actions .btn{min-width:0!important;width:100%;padding-left:10px;padding-right:10px}
.test-view-btn{background:#f59e0b!important;border-color:#f59e0b!important;color:#fff!important}
.test-view-btn:hover,.test-view-btn:focus-visible{background:#d97706!important;border-color:#d97706!important}
.test-view-btn.is-disabled{background:#fed7aa!important;border-color:#fdba74!important;color:#9a6a32!important;opacity:.58;cursor:default;box-shadow:none;pointer-events:none}
.learner-create-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:700px){.learner-create-actions{width:100%;justify-content:flex-start}.learner-create-actions .btn{padding:8px 10px;font-size:12px}.learner-test-actions{grid-template-columns:1fr 1fr;gap:8px}}

/* ===== Free Test mobile containment: rank + temporary participants ===== */
@media(max-width:700px){
  .free-participants-wrap,.free-rank-wrap{width:100%;max-width:100%;min-width:0;overflow:hidden!important}
  .free-participants-table,.free-rank-table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed}
  .free-participants-table tbody,.free-rank-table tbody{width:100%!important;max-width:100%!important;min-width:0!important}
  .free-participants-table tr:not(.empty-row),.free-rank-table tr:not(.empty-row){max-width:100%;min-width:0;overflow:hidden}
  .free-participants-table td,.free-rank-table td{max-width:100%;overflow:hidden;overflow-wrap:anywhere;word-break:break-word}
  .free-participants-table td[data-label=Name],.free-participants-table td[data-label=Mobile],.free-participants-table td[data-label=Submitted],.free-rank-table td[data-label=Name]{min-width:0}
  .free-participants-table td[data-label=Submitted]{white-space:normal;line-height:1.25}
  .free-participants-table .result-pass,.free-rank-table .result-pass{max-width:100%;white-space:nowrap}
}


/* === Landing page: single ultra-light HTML/CSS presentation layer === */
.home-shell{max-width:1440px;margin:0 auto;padding:0 8px 18px;color:#0c234f}
.home-header{min-height:72px;display:grid;grid-template-columns:minmax(275px,1fr) auto minmax(250px,1fr);align-items:center;gap:20px;border-bottom:1px solid #d8e5f6}
.home-brand{display:flex;align-items:center;gap:11px;color:#0b2455;text-decoration:none;min-width:0}.home-brand>b{display:grid;place-items:center;width:45px;height:45px;border-radius:9px;background:#2f68eb;color:#fff;font-size:20px;box-shadow:0 5px 14px rgba(47,104,235,.18)}.home-brand span,.home-brand strong,.home-brand small{display:block}.home-brand strong{font-size:18px;line-height:1.15}.home-brand small{margin-top:3px;color:#526b98;font-size:12px}
.home-nav{display:flex;align-items:center;justify-content:center;gap:28px}.home-nav a{position:relative;padding:25px 0;color:#19365f;text-decoration:none;font-size:13px;font-weight:750;white-space:nowrap}.home-nav a:hover,.home-nav a:focus-visible,.home-nav a.on{color:#2062e8}.home-nav a.on:after{content:"";position:absolute;left:0;right:0;bottom:14px;height:2px;border-radius:2px;background:#2865eb}
.home-help{justify-self:end;display:flex;align-items:center;gap:9px;padding:7px 15px;border:1px solid #cfe0f8;border-radius:24px;background:#f2f7ff;color:#0b2455;text-decoration:none}.home-help>span{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:#e5f0ff;font-size:17px}.home-help strong,.home-help small{display:block}.home-help strong{font-size:15px}.home-help small{margin-top:2px;color:#6078a1;font-size:10px;font-weight:650}
.home-hero{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:24px;align-items:stretch;padding:22px 0 18px}.home-copy{padding:9px 7px 0}.home-kicker{margin:0 0 9px;color:#5874a8;font-size:11px;font-weight:900;letter-spacing:.06em}.home-copy h1{margin:0;color:#0a285e;font-size:45px;line-height:1.08;letter-spacing:-.035em}.home-copy h1 span{color:#2c69ef}.home-lead{max-width:900px;margin:12px 0 20px;color:#435f8e;font-size:15px;font-weight:600;line-height:1.55}
.home-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.home-feature-grid article{min-width:0;display:grid;grid-template-columns:45px minmax(0,1fr);align-items:center;gap:10px;min-height:90px;padding:12px;border:1px solid #dce8f7;border-radius:12px;background:#fff;box-shadow:0 5px 15px rgba(30,70,120,.045)}.home-feature-grid article:nth-child(4n+2){background:#fbfffd}.home-feature-grid article:nth-child(4n+3){background:#fdfaff}.home-feature-grid article:nth-child(4n){background:#fffaf4}.home-feature-grid i{display:grid;place-items:center;width:44px;height:44px;border-radius:11px;background:#eef5ff;font-style:normal;font-size:23px}.home-feature-grid span,.home-feature-grid strong,.home-feature-grid small{display:block}.home-feature-grid strong{font-size:12px;line-height:1.25}.home-feature-grid small{margin-top:4px;color:#536b92;font-size:10px;line-height:1.35}
.home-login-card{padding:22px 22px 17px;border:1px solid #dce7f5;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(25,60,110,.07)}.home-login-title{display:flex;align-items:center;gap:11px;margin-bottom:17px}.home-login-title>span{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:#fff4e8;font-size:22px}.home-login-title h2{margin:0;color:#0b2455;font-size:22px}.home-login-title p{margin:3px 0 0;color:#5c7297;font-size:11px}.home-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:0 0 10px;padding:4px;border-radius:10px;background:#f3f7fd}.home-auth-tab{height:34px;border:0;border-radius:7px;background:transparent;color:#536b92;font-weight:850;cursor:pointer}.home-auth-tab.on{background:#fff;color:#1f5ee2;box-shadow:0 2px 8px rgba(30,70,120,.08)}.home-auth-pane{display:none}.home-auth-pane.on{display:block}.home-input{display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;height:48px;margin-bottom:11px;border:1px solid #cdddf1;border-radius:9px;background:#fff;overflow:hidden}.home-input>span{height:100%;display:grid;place-items:center;background:#f4f8fe;font-size:16px}.home-input input{width:100%;height:100%;min-width:0;padding:0 12px;border:0!important;border-radius:0!important;outline:none;background:transparent!important;box-shadow:none!important;font:inherit;color:#18345f}.home-input:focus-within{border-color:#77a4f4;box-shadow:0 0 0 3px rgba(47,104,235,.08)}.home-login-button{width:100%;height:48px;border:0;border-radius:9px;background:#2d68ef;color:#fff;font-size:14px;font-weight:900;cursor:pointer;box-shadow:0 6px 14px rgba(45,104,239,.16)}.home-login-button:hover,.home-login-button:focus-visible{background:#2159d7}.home-register-note{display:block;margin-top:8px;color:#667b9d;font-size:10px;line-height:1.4}.home-new-user{margin-top:16px;padding-top:12px;border-top:1px solid #e1e9f5;text-align:center}.home-new-user>span{display:block;margin-bottom:8px;color:#667b9d;font-size:10px}.home-new-user button{width:100%;min-height:42px;border:1px solid #82aaf2;border-radius:8px;background:#fff;color:#1c5bdd;font-weight:850;cursor:pointer}.home-new-user small{display:block;margin-top:7px;color:#667b9d;font-size:9px}
.home-demo-strip{display:grid;grid-template-columns:1.25fr repeat(3,1fr);gap:12px;align-items:center;margin:0 0 18px;padding:14px 20px;border:1px solid #d8e5f5;border-radius:15px;background:#fff;box-shadow:0 5px 18px rgba(25,60,110,.04)}.home-demo-copy{display:flex;align-items:center;gap:12px}.home-demo-copy>span{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;background:#edf5ff;font-size:22px}.home-demo-copy strong,.home-demo-copy small{display:block}.home-demo-copy strong{font-size:16px}.home-demo-copy small{margin-top:2px;color:#60769a;font-size:11px}.home-demo-strip>a{display:flex;align-items:center;justify-content:center;gap:9px;min-height:50px;padding:10px 14px;border-radius:9px;color:#fff;text-decoration:none;font-size:12px;font-weight:900;box-shadow:0 5px 12px rgba(20,55,110,.12)}.home-demo-strip>a.typing{background:#2f68eb}.home-demo-strip>a.steno{background:#169b50}.home-demo-strip>a.computer{background:#9b2525}.home-demo-strip>a:hover,.home-demo-strip>a:focus-visible{filter:brightness(.94)}
.home-how{display:grid;grid-template-columns:270px minmax(0,1fr);align-items:center;gap:22px;margin-bottom:18px;padding:20px 25px;border:1px solid #d8e5f5;border-radius:15px;background:#fff}.home-how-title h2{margin:0;font-size:21px}.home-how-title p{margin:5px 0 0;color:#60769a;font-size:12px}.home-how-steps{display:grid;grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;align-items:center;gap:12px}.home-how-steps>div{display:grid;grid-template-columns:34px 34px minmax(0,1fr);align-items:center;gap:7px;min-width:0}.home-how-steps>div>b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eaf3ff;color:#2160df}.home-how-steps>div>span{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#f3f7fd;font-size:17px}.home-how-steps p,.home-how-steps strong,.home-how-steps small{display:block;margin:0}.home-how-steps strong{font-size:11px}.home-how-steps small{margin-top:2px;color:#62789c;font-size:9px;line-height:1.3}.home-how-steps>i{color:#4f79bf;font-style:normal;font-size:19px}
.home-footer{display:grid;grid-template-columns:1.05fr 1.5fr 1fr;border:1px solid #d8e5f5;border-radius:15px;background:#fff;overflow:hidden}.home-footer>section{min-width:0;padding:18px 25px}.home-footer>section+section{border-left:1px solid #dce7f5}.home-footer-heading{display:flex;align-items:center;gap:10px}.home-footer-heading>span{display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#eef5ff;font-size:20px}.home-footer-heading strong,.home-footer-heading small{display:block}.home-footer-heading strong{font-size:14px}.home-footer-heading small{margin-top:2px;color:#657a9d;font-size:10px}.home-free-button{display:flex;align-items:center;justify-content:center;min-height:42px;margin:10px 0 0 50px;border-radius:8px;background:#7627e7;color:#fff;text-decoration:none;font-size:12px;font-weight:900}.home-free-button:hover,.home-free-button:focus-visible{background:#6220c5}.home-free-button.disabled,.home-useful-links .disabled,.home-social-links .disabled{opacity:.45;cursor:not-allowed}.home-useful-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:10px 0 0 50px}.home-useful-links a,.home-useful-links span{display:grid;place-items:center;min-height:38px;padding:6px 8px;border:1px solid #cbdcf3;border-radius:8px;background:#f9fbff;color:#153766;text-align:center;text-decoration:none;font-size:10px;font-weight:800;overflow-wrap:anywhere}.home-useful-links a:hover,.home-useful-links a:focus-visible{border-color:#83aaf0;background:#eef5ff}.home-social-links{display:flex;gap:9px;margin:12px 0 0 50px}.home-social-links a,.home-social-links span{display:grid;place-items:center;width:34px;height:34px;border:1px solid #cfdef2;border-radius:50%;background:#f5f9ff;color:#205ede;text-decoration:none;font-size:14px;font-weight:900}
.home-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:15px 7px 0;color:#61779b;font-size:9px}.home-bottom b{color:#496890}
@media(max-width:1100px){.home-header{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px;padding-bottom:7px}.home-brand{grid-column:1;grid-row:1}.home-help{grid-column:2;grid-row:1;justify-self:end}.home-nav{grid-column:1/-1;grid-row:2;display:flex;justify-content:flex-start;gap:20px;overflow-x:auto;overscroll-behavior-inline:contain;scrollbar-width:none;border-top:1px solid #e2eaf6}.home-nav::-webkit-scrollbar{display:none}.home-nav a{flex:0 0 auto;padding:10px 0 9px;font-size:11px}.home-nav a.on:after{bottom:3px}.home-hero{grid-template-columns:1fr 350px}.home-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-demo-strip{grid-template-columns:1fr repeat(3,1fr)}.home-how{grid-template-columns:1fr}.home-footer{grid-template-columns:1fr 1.35fr 1fr}}
@media(max-width:820px){.home-shell{padding-inline:0}.home-header{padding:0 6px}.home-help strong{font-size:13px}.home-hero{grid-template-columns:1fr;padding:18px 6px}.home-copy{padding:0}.home-copy h1{font-size:38px}.home-login-card{max-width:600px;width:100%;margin:0 auto}.home-demo-strip{margin-inline:6px;grid-template-columns:1fr 1fr}.home-demo-copy{grid-column:1/-1}.home-how{margin-inline:6px;padding:18px}.home-how-steps{grid-template-columns:1fr 1fr;gap:10px}.home-how-steps>i{display:none}.home-footer{margin-inline:6px;grid-template-columns:1fr}.home-footer>section+section{border-left:0;border-top:1px solid #dce7f5}.home-free-button,.home-useful-links,.home-social-links{margin-left:50px}.home-bottom{padding-inline:8px}}
@media(max-width:560px){.home-header{min-height:66px;gap:6px 8px}.home-help{max-width:132px}.home-nav{gap:15px}.home-nav a{padding-top:9px;padding-bottom:8px}.home-brand{min-width:0}.home-brand>b{width:39px;height:39px}.home-brand strong{font-size:14px}.home-brand small{font-size:9px}.home-help{padding:6px 9px}.home-help>span{width:31px;height:31px}.home-help strong{font-size:11px}.home-help small{font-size:8px}.home-hero{padding-top:14px}.home-kicker{font-size:9px}.home-copy h1{font-size:31px}.home-lead{font-size:12px;margin-bottom:14px}.home-feature-grid{gap:7px}.home-feature-grid article{grid-template-columns:38px minmax(0,1fr);min-height:78px;padding:9px;gap:8px}.home-feature-grid i{width:38px;height:38px;font-size:19px}.home-feature-grid strong{font-size:10px}.home-feature-grid small{font-size:8px}.home-login-card{padding:17px 14px;border-radius:14px}.home-login-title h2{font-size:19px}.home-demo-strip{grid-template-columns:repeat(3,minmax(0,1fr));padding:11px;gap:8px}.home-demo-copy{grid-column:1/-1}.home-demo-strip>a{min-width:0;min-height:45px;padding:9px 3px;gap:2px;font-size:9px;white-space:nowrap}.home-demo-strip .demo-full{display:none!important}.home-demo-strip .demo-short{display:inline!important}.home-how{padding:15px 12px}.home-how-steps{grid-template-columns:1fr}.home-how-steps>div{grid-template-columns:30px 30px minmax(0,1fr)}.home-how-steps>div>b,.home-how-steps>div>span{width:30px;height:30px}.home-footer>section{padding:15px}.home-useful-links{grid-template-columns:repeat(2,minmax(0,1fr));margin-left:0}.home-free-button{margin-left:0}.home-social-links{margin-left:0}.home-footer-heading>span{width:36px;height:36px}.home-bottom{display:grid;grid-template-columns:1fr;text-align:center;gap:4px}.home-bottom b{order:-1}}

/* ===== Result summary: single lightweight HTML/CSS layer ===== */
.result-simple-head{--result-accent:#2865ef;margin:0 0 14px;background:#fff;border:1px solid #cedceb;border-left:4px solid var(--result-accent);border-radius:12px;overflow:hidden;color:#102746}
.result-simple-steno{--result-accent:#0aa363}.result-simple-computer{--result-accent:#a92327}
.result-simple-main{padding:12px 14px;text-align:center}
.result-simple-main h2{margin:0;color:#145fe8;font-size:25px;line-height:1.15;font-weight:900}
.result-simple-main p{margin:4px 0 0;color:#566b87;font-size:12px;line-height:1.3}.result-simple-main p:last-child{font-size:11px}.result-simple-main a{color:inherit}
.result-simple-main .result-target-outcome{font-size:11px;font-weight:900}.result-target-outcome.is-achieved{color:#0a9a53}.result-target-outcome.is-not-achieved{color:#c91f37}
.result-simple-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #d6e1ee}
.result-simple-stats>div{min-width:0;padding:10px 8px;text-align:center;border-left:1px solid #d6e1ee;line-height:1.2}.result-simple-stats>div:first-child{border-left:0}
.result-simple-stats span{display:block;margin-bottom:3px;color:#60738d;font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.result-simple-stats b{display:block;color:#102746;font-size:17px;font-weight:900;overflow-wrap:anywhere}
.result-qual-pass{color:#0a9a53!important}.result-qual-fail{color:#c91f37!important}.result-qual-complete{color:#2865ef!important}
@media(max-width:620px){
  .result-simple-head{margin-bottom:10px;border-radius:10px}
  .result-simple-main{padding:9px 10px}.result-simple-main h2{font-size:18px}.result-simple-main p{font-size:9.5px;margin-top:2px}.result-simple-main p:last-child{font-size:8.5px}
  .result-simple-stats>div{padding:8px 3px}.result-simple-stats span{font-size:6.5px;margin-bottom:2px}.result-simple-stats b{font-size:10.5px;line-height:1.12}
}
@media print{.result-simple-head{border:1px solid #222!important;border-left:1px solid #222!important;border-radius:0!important;box-shadow:none!important}.result-simple-main,.result-simple-stats>div{padding:6px 8px!important}.result-simple-main h2{font-size:15pt!important}.result-simple-main p{font-size:9pt!important}.result-simple-stats span{font-size:8pt!important}.result-simple-stats b{font-size:11pt!important;color:#000!important}.result-simple-head *{color:#000!important}}



/* Canonical Computer exam UI: shared by learner and public demo. */
.computer-exam-shell{max-width:1280px;margin:0 auto}.computer-exam-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:16px}.computer-exam-head h1{margin:0 0 5px;font-size:clamp(1.65rem,2.5vw,2.25rem)}.computer-exam-meta{display:flex;flex-wrap:wrap;gap:8px;color:var(--muted,#64748b);font-weight:700}.computer-exam-meta span{background:#fff;border:1px solid #dbe5f2;border-radius:999px;padding:6px 10px}.computer-exam-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,.75fr);gap:18px;align-items:start}.computer-question-card,.computer-control-card{background:#fff;border:1px solid #d8e3f0;border-radius:16px;box-shadow:0 8px 28px rgba(15,35,65,.05)}.computer-question-card{padding:18px}.computer-question-card h2,.computer-control-card h2{margin:0;font-size:1.12rem}.computer-instructions{margin:8px 0 14px;color:#64748b;line-height:1.55}.computer-question-list{display:grid;gap:8px;margin-top:12px}.computer-question{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:12px;align-items:start;padding:12px 13px;border:1px solid #e3eaf3;border-radius:11px;background:#fbfdff}.computer-qno{font-weight:900;color:#172b4d}.computer-command{font-size:1rem;line-height:1.55;font-weight:600;color:#172033}.computer-marks{white-space:nowrap;font-size:.84rem;font-weight:800;color:#475569;background:#eef4ff;padding:5px 8px;border-radius:8px}.computer-control-card{position:sticky;top:82px;padding:18px}.computer-control-section{padding:15px 0;border-bottom:1px solid #e5ebf3}.computer-control-section:first-of-type{padding-top:12px}.computer-control-section:last-child{border-bottom:0;padding-bottom:0}.computer-start-row{display:block}.computer-start-row .computer-start-button,.computer-start-row .computer-timer{display:flex!important;width:100%!important;box-sizing:border-box;align-items:center;justify-content:center}.computer-timer{min-width:0;text-align:center;padding:11px 10px;border-radius:10px;background:#172b4d;color:#fff;font-size:1.15rem;font-weight:900;font-variant-numeric:tabular-nums}.computer-timer.waiting{display:none!important}.computer-control-card.is-running .computer-start-button{display:none!important}.computer-control-card.is-running .computer-timer{display:flex!important}.computer-step-label{display:block;margin-bottom:8px;font-size:.78rem;text-transform:uppercase;letter-spacing:.055em;font-weight:900;color:#64748b}.computer-file-input{width:100%;box-sizing:border-box}.computer-action-full{display:flex!important;width:100%!important;box-sizing:border-box;align-items:center;justify-content:center;text-align:center}.computer-disabled-note{margin:10px 0 0;color:#7c8798;font-size:.82rem;line-height:1.4}.computer-exit-btn{width:100%;background:#fff!important;color:#b42318!important;border:1px solid #efb4ae!important}.computer-exit-btn:hover{background:#fff3f2!important}.computer-control-card [hidden]{display:none!important}.computer-active-badge{display:none;margin-top:8px;font-size:.8rem;font-weight:800;color:#087a45}.computer-control-card.is-running .computer-active-badge{display:block}.computer-control-card.is-running .computer-timer{background:#172b4d;color:#fff}.computer-control-card.is-running .computer-start-button{opacity:1}.computer-result-btn:disabled,.computer-download-disabled{opacity:.48;pointer-events:none}.computer-upload-wrap.is-disabled{opacity:.55}.computer-upload-wrap.is-disabled input{pointer-events:none}.computer-alert{margin-bottom:14px}
@media(max-width:860px){.computer-exam-grid{grid-template-columns:1fr}.computer-control-card{position:static;order:-1}.computer-exam-head{align-items:flex-start;flex-direction:column}.computer-question{grid-template-columns:40px minmax(0,1fr);gap:8px}.computer-marks{grid-column:2;justify-self:start}.computer-command{font-size:.98rem}}
@media(max-width:520px){.computer-question-card,.computer-control-card{padding:14px;border-radius:13px}.computer-exam-meta{gap:6px}.computer-exam-meta span{font-size:.78rem;padding:5px 8px}.computer-timer{width:100%;box-sizing:border-box}.computer-question{padding:10px}.computer-command{font-size:.95rem}.computer-qno{font-size:.9rem}}

/* Lightweight public information tab view. */



/* Lightweight public information views: the header menu is the only tab control. */
.home-info-view{margin:18px 0 22px;padding:0 6px}
.home-info-panel{min-height:330px;padding:28px 30px;border:1px solid #d8e5f5;border-radius:15px;background:#fff}
.home-info-panel[hidden]{display:none!important}
.home-info-panel h1{margin:0 0 14px;color:#102c58;font-size:28px}
.home-info-panel>p,.home-info-lead{max-width:1080px;color:#536b91;line-height:1.75}
.home-about-panel>p{text-align:justify;text-justify:inter-word}
.home-feature-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 22px;margin:18px 0 0;padding:0;list-style:none}
.home-feature-list li{position:relative;padding:11px 12px 11px 28px;border-bottom:1px solid #e4edf8;color:#536b91;line-height:1.55}
.home-feature-list li:before{content:"•";position:absolute;left:10px;top:9px;color:#2865eb;font-size:20px;font-weight:900}
.home-feature-list b{color:#173660}
.home-exams-wrap{margin-top:16px;overflow:hidden;border:1px solid #d8e5f5;border-radius:12px}
.home-exams-table{width:100%;min-width:0;border-collapse:collapse;background:#fff}
.home-exams-table th,.home-exams-table td{padding:13px 14px;border:0;border-bottom:1px solid #e3ecf7;text-align:left;vertical-align:top}
.home-exams-table th{background:#f3f7fd;color:#173660;font-size:12px}
.home-exams-table td{color:#536b91;font-size:12px;line-height:1.5}
.home-exams-table td:first-child{width:22%;color:#173660}
.home-exams-table td:last-child{width:18%;white-space:nowrap}
.home-exams-table tr:last-child td{border-bottom:0}
.home-availability{display:inline-block;padding:5px 8px;border-radius:999px;font-size:10px;font-weight:850}
.home-availability.available{background:#e8f8ee;color:#168144}
.home-availability.scheduled{background:#fff3df;color:#9a5a00}
.home-query-list{width:100%;max-width:none}
.home-query-list details{margin:9px 0;border:1px solid #dce7f5;border-radius:10px;background:#fbfdff}
.home-query-list summary{cursor:pointer;padding:12px 14px;color:#173660;font-weight:850}
.home-query-list details p{margin:0;padding:0 14px 13px;color:#60769a;line-height:1.6}
.home-demo-strip .demo-short{display:none}
@media(max-width:700px){
  .home-info-view{margin-top:10px;padding:0}
  .home-info-panel{min-height:0;padding:18px 14px;border-radius:12px}
  .home-info-panel h1{font-size:22px}
  .home-feature-list{grid-template-columns:1fr;gap:0}
  .home-exams-table{table-layout:fixed}
  .home-exams-table th,.home-exams-table td{padding:8px 6px;font-size:9px;overflow-wrap:anywhere}
  .home-exams-table th:nth-child(1),.home-exams-table td:nth-child(1){width:25%}
  .home-exams-table th:nth-child(2),.home-exams-table td:nth-child(2){width:52%}
  .home-exams-table th:nth-child(3),.home-exams-table td:nth-child(3){width:23%;white-space:normal}
  .home-availability{padding:4px 5px;font-size:8px}
}


@media(max-width:560px){
  .home-nav{gap:16px}
  .home-nav a{font-size:10px}
}

/* Test creation/editors use the full software content width; unrelated forms retain their own widths. */
.test-editor-form{width:100%;max-width:none;margin-left:0;margin-right:0}
@media(max-width:640px){.result-watermark-content{padding:10px 11px}.compare{padding:10px 11px}.result-tabpanel .text-snapshot{padding:10px 11px!important}}

/* ===== Normal Typing/Steno runner visual shell (restored from pre-Exam UI) =====
   These classes pre-date the removed Exam Session feature and belong to the ordinary test runner. */
body.test-running #exam .exambar{
  display:flex!important;justify-content:space-between!important;align-items:center!important;gap:10px!important;
  background:#fff!important;border:1px solid var(--line)!important;border-radius:14px!important;
  padding:10px 12px!important;margin:0!important;
}
body.test-running #exam .master-box{
  background:#fff!important;border:1px solid var(--line)!important;border-radius:12px!important;
  padding:15px!important;font-size:19px!important;line-height:1.8!important;white-space:pre-wrap!important;
}
body.test-running #exam .typing-box{margin-top:0!important;}
@media(max-width:720px){
  body.test-running #exam .exambar{align-items:flex-start!important;flex-direction:column!important;}
}



/* Typing runner: vertical-only master scroll; preserve readable wrapping inside the existing box. */
body.test-running #exam .master-box{
  max-width:100%!important;
  box-sizing:border-box!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}

/* Typing minimum-word status: state colours only; existing layout is unchanged. */
#exam .exammeta.requirement-pending{
  border-color:#fecaca!important;
  background:#fff7f7!important;
  color:#c91f1f!important;
}
#exam .exammeta.requirement-ok{
  border-color:#b7e4c7!important;
  background:#effaf3!important;
  color:#08743a!important;
}

/* Demo selection lives directly on the existing Supreme Tests list. */
.ico.demo.on{background:#e8f7ff!important;border-color:#38bdf8!important;box-shadow:0 0 0 2px rgba(56,189,248,.10)}
.ico.demo:disabled{opacity:.38!important;cursor:not-allowed!important;box-shadow:none!important}

/* Lightweight information dashboards (m33) */
.announcement-board,.announcement-manage{margin-top:14px}.announcement-feed{display:grid;gap:10px}.announcement-item{padding:13px 15px;border:1px solid rgba(100,116,139,.18);border-radius:12px;background:rgba(248,250,252,.7)}.announcement-item.is-pinned{background:rgba(240,253,244,.78)}.announcement-item.is-global{border-color:rgba(239,68,68,.22)}.announcement-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.announcement-title time,.announcement-item small,.announcement-admin-row small{font-size:.78rem;color:var(--muted,#64748b)}.announcement-item p,.announcement-admin-row p{margin:7px 0 4px;white-space:normal}.announcement-admin-list{display:grid;gap:8px}.announcement-admin-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:11px 4px;border-bottom:1px solid rgba(100,116,139,.15)}.announcement-admin-row:last-child{border-bottom:0}.announcement-admin-row.is-hidden{opacity:.58}.announcement-actions{display:flex;gap:6px;align-items:center}.announcement-actions .ico{width:34px;height:34px;padding:0;border:1px solid rgba(100,116,139,.18);border-radius:8px;background:transparent;cursor:pointer}.announcement-actions .ico:disabled{opacity:.28;cursor:not-allowed}.announcement-global-check{display:flex!important;align-items:center;gap:8px;margin-top:10px}.announcement-global-check input{width:auto!important}.learner-info-head{margin-bottom:14px}
@media(max-width:760px){.announcement-admin-row{grid-template-columns:1fr}.announcement-actions{justify-content:flex-end}.announcement-title{display:block}.announcement-title time{display:block;margin-top:3px}}

/* Dashboard announcement refinement 2026-09-10 */
.supreme-dashboard-overview{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:14px;min-height:78px}.supreme-welcome{padding:6px 0;min-width:0;align-self:flex-start}.supreme-welcome h1{margin:0 0 3px;font-size:27px;letter-spacing:-.02em}.supreme-welcome p{margin:0;color:var(--muted);font-weight:600}.supreme-dashboard-actions{width:auto;flex:0 0 auto;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:0 0 2px}.supreme-dashboard-actions .btn{width:auto;flex:0 0 auto}.supreme-test-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.supreme-test-filters input[type="search"]{flex:1 1 320px;min-width:240px;max-width:420px}.supreme-test-filters select{flex:0 1 220px;min-width:170px}.supreme-test-filters button{flex:0 0 auto}.announcement-admin-details{min-width:0}.announcement-admin-details summary,.announcement-item summary{cursor:pointer;list-style:none}.announcement-admin-details summary::-webkit-details-marker,.announcement-item summary::-webkit-details-marker{display:none}.announcement-admin-details summary{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.announcement-admin-details summary b{font-size:13px}.announcement-admin-details summary small{margin-left:auto}.announcement-message{text-align:justify;text-justify:inter-word}.announcement-item .announcement-message{margin:9px 0 5px}.announcement-detail{padding-top:2px}.announcement-link-row{margin:7px 0 3px!important;text-align:left!important}.announcement-link{display:inline-flex;min-height:32px!important;padding:5px 10px!important}.announcement-actions{display:flex;gap:6px;align-items:center}.announcement-action-form{display:flex;gap:6px;align-items:center;margin:0}.announcement-item{padding:0;overflow:hidden}.announcement-item>.announcement-title{padding:12px 14px}.announcement-item[open]>.announcement-title{border-bottom:1px solid rgba(100,116,139,.14)}.announcement-item .announcement-detail{padding:0 14px 12px}.announcement-title b{min-width:0}.announcement-title b:after{content:'  ▾';font-size:.82em;color:var(--muted)}.announcement-item[open] .announcement-title b:after{content:'  ▴'}.available.computer-list .dhead,.available.computer-list .drow{grid-template-columns:minmax(360px,2.2fr) 80px minmax(180px,1fr) 96px 115px!important}
@media(max-width:900px){.supreme-welcome{width:100%}}
@media(max-width:640px){.supreme-dashboard-overview{gap:10px;align-items:flex-start;min-height:0;flex-wrap:wrap}.supreme-dashboard-actions{width:100%!important;display:flex;justify-content:flex-start;flex-wrap:wrap;gap:6px;padding:0}.supreme-dashboard-actions .btn{width:auto!important;min-width:0;white-space:nowrap}.supreme-test-filters{display:grid;grid-template-columns:1fr 1fr}.supreme-test-filters input[type="search"]{grid-column:1/-1;width:100%;max-width:none;min-width:0}.supreme-test-filters select{width:100%;min-width:0}.supreme-test-filters button{grid-column:1/-1;width:100%}.announcement-admin-details summary small{width:100%;margin-left:0}.announcement-item>.announcement-title{display:flex!important;align-items:flex-start}.announcement-title time{margin-left:auto}}

/* Learner access selects + announcement spacing refinement */
.announcement-modal-card form>label{margin-top:14px;margin-bottom:7px}
.announcement-modal-card form>label:first-of-type{margin-top:12px}
.announcement-modal-card form>input:not([type=hidden]):not([type=checkbox]),.announcement-modal-card form>textarea,.announcement-modal-card form>select{width:100%;margin:0;box-sizing:border-box}
.announcement-modal-card form>textarea{display:block;resize:vertical;line-height:1.55}
.announcement-global-check{margin-top:14px!important;margin-bottom:2px!important}
.announcement-admin-details summary{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:18px;row-gap:5px;align-items:baseline}
.announcement-admin-details summary b{min-width:0;line-height:1.4}
.announcement-admin-details summary small{margin-left:0!important;white-space:nowrap}
.announcement-admin-details[open] .announcement-message{margin-top:12px}
@media(max-width:640px){.announcement-admin-details summary{grid-template-columns:1fr}.announcement-admin-details summary small{white-space:normal;margin-top:1px}}


/* ===== Computer result status colours (scoped; keeps ranking/result text neutral) ===== */
.computer-result-tabs{color:var(--ink)}
.computer-result-tabs .result-tabpanel,.computer-result-tabs .card,.computer-result-tabs table{color:var(--ink)}
.computer-question-result .section-title h3,.computer-question-result .computer-question-status,.computer-question-result .computer-question-score{color:var(--ink)}
.computer-question-result-wrong .section-title h3,.computer-question-result-wrong .computer-question-status,.computer-question-result-wrong .computer-question-score,
.computer-question-result-skipped .section-title h3,.computer-question-result-skipped .computer-question-status,.computer-question-result-skipped .computer-question-score{color:#b42318!important}
.computer-question-result-partial .section-title h3,.computer-question-result-partial .computer-question-status,.computer-question-result-partial .computer-question-score{color:#c25c18!important}
.computer-question-result .table-wrap td{color:var(--ink)}
.computer-question-result .table-wrap td:last-child{font-weight:900}
.computer-question-result .table-wrap td:last-child:not(:empty){color:inherit}
.computer-result-tabs [data-panel="computer-ranking"] table{color:var(--ink)}


/* M46 Supreme compact test controls + mobile announcement rows */
.supreme-test-filters{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.supreme-status-radios{display:flex;align-items:center;gap:10px;flex:0 0 auto;margin:0;padding:0 8px 0 2px;border:0;min-width:0}
.supreme-status-radios label{display:flex;align-items:center;gap:5px;white-space:nowrap;font-weight:800;color:#334155;cursor:pointer}
.supreme-status-radios input[type="radio"]{width:15px!important;height:15px!important;margin:0;accent-color:var(--blue);box-shadow:none}
.supreme-test-filters>select[name="type"]{flex:0 0 132px!important;width:132px!important;min-width:132px!important}
.supreme-test-filters>.supreme-filter-btn{flex:0 0 auto}
.supreme-test-search{display:flex;align-items:center;gap:7px;flex:1 1 360px;min-width:220px}
.supreme-test-search input[type="search"]{flex:1 1 auto!important;min-width:0!important;max-width:none!important;width:100%}
.supreme-test-search button{flex:0 0 auto}
@media(max-width:760px){
 .announcement-manage .section-title{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start}
 .announcement-manage .section-title .btn{width:auto!important;min-width:0;padding-inline:12px;white-space:nowrap}
 .announcement-admin-list{gap:0}
 .announcement-admin-row{grid-template-columns:minmax(0,1fr) auto!important;gap:7px!important;align-items:start!important;padding:9px 0!important}
 .announcement-admin-details{min-width:0;overflow:hidden}
 .announcement-admin-details summary{display:block!important;min-width:0}
 .announcement-admin-details summary b{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.35}
 .announcement-admin-details summary small{display:block;width:auto!important;max-width:100%;margin-top:3px!important;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
 .announcement-actions{justify-content:flex-end!important;align-self:start;gap:4px!important;flex-wrap:nowrap!important}
 .announcement-action-form{gap:4px!important;flex-wrap:nowrap!important}
 .announcement-actions .ico{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important}
 .announcement-admin-details[open] .announcement-message{margin-top:8px}
}
@media(max-width:640px){
 .supreme-test-filters{display:grid;grid-template-columns:auto minmax(112px,132px) auto;gap:7px}
 .supreme-status-radios{grid-column:1;padding-right:2px;gap:7px}
 .supreme-test-filters>select[name="type"]{grid-column:2;width:100%!important;min-width:0!important}
 .supreme-filter-btn{grid-column:3!important;width:auto!important}
 .supreme-test-search{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;width:100%;min-width:0}
 .supreme-test-search button{width:auto!important}
}
@media(max-width:420px){
 .announcement-manage .section-title{grid-template-columns:minmax(0,1fr) auto}
 .announcement-manage .section-title h2{font-size:17px}
 .announcement-manage .section-title span{font-size:12px;line-height:1.35;display:block}
 .announcement-manage .section-title .btn{padding:7px 10px;font-size:12px}
 .announcement-admin-row{gap:5px!important}
 .announcement-actions,.announcement-action-form{gap:3px!important}
 .announcement-actions .ico{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;font-size:13px!important}
}


/* M47: Typing KrutiDev readability only. Steno and other typing scripts stay unchanged. */
.test-editor-form #matter.font-krutidev{font-size:20px!important;line-height:1.35!important}
body.test-running #exam .master-box.font-krutidev{line-height:1.35!important}
.compare.typing-compare.font-krutidev{font-size:25px!important;line-height:1.35!important}


/* M44-R1 backport: transient feedback + bounded bulk controls. */
.flash-toast{position:fixed;right:18px;bottom:18px;z-index:1250;display:grid;grid-template-columns:24px minmax(0,1fr);align-items:center;gap:10px;min-width:280px;max-width:min(440px,calc(100vw - 28px));padding:11px 13px;border:1px solid #a8dfba;border-radius:12px;background:rgba(244,255,248,.97);box-shadow:0 12px 34px rgba(20,43,77,.16);backdrop-filter:blur(8px);color:var(--ink);opacity:0;transform:translateY(10px);transition:opacity .22s ease,transform .22s ease}
.flash-toast.show{opacity:1;transform:translateY(0)}.flash-toast.hide{opacity:0;transform:translateY(8px)}.flash-toast.err{border-color:#f3b9bd;background:rgba(255,247,247,.98)}.flash-toast-icon{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#dcfce7;color:#08743a;font-weight:950}.flash-toast.err .flash-toast-icon{background:#fee2e2;color:#b42318}.flash-toast b,.flash-toast small{display:block}.flash-toast b{font-size:12px}.flash-toast small{margin-top:1px;font-size:10.5px;color:var(--muted);line-height:1.35}
@media(max-width:600px){.flash-toast{left:10px;right:10px;bottom:10px;min-width:0;max-width:none}}
.learner-bulk-actions .mini .bulk-validity-trigger{width:auto!important;min-width:104px!important;padding:0 9px!important;font-size:11px!important;white-space:nowrap}
@media(max-width:560px){.learner-bulk-actions{align-items:flex-start}.learner-bulk-actions .mini{flex-wrap:wrap;justify-content:flex-end}.learner-bulk-actions .mini .bulk-validity-trigger{min-width:96px!important}}
.test-bulk-actions{gap:10px}.test-bulk-tag{display:flex;align-items:center;gap:5px;margin-left:auto}.test-bulk-tag input{width:180px;height:30px;padding:4px 8px;font-size:11px}.test-bulk-tag button{height:30px;min-height:30px;padding:0 9px;border-radius:8px;font-size:11px;white-space:nowrap}.test-bulk-actions>.mini{margin-left:3px}
@media(max-width:700px){.test-bulk-actions{align-items:flex-start;flex-wrap:wrap}.test-bulk-tag{order:3;width:100%;margin-left:0}.test-bulk-tag input{flex:1 1 130px;width:auto;min-width:0}.test-bulk-tag button{flex:0 0 auto}.test-bulk-actions>.mini{margin-left:auto}}


/* M44 role-safe backport of M66/M69 matter release/protection UI */
.staff-test-actions .matter-release{filter:grayscale(.35);opacity:.72;background:#f7f9fc!important;border-color:#cbd5e1!important}
.staff-test-actions .matter-release.on{filter:none;opacity:1;background:#e9f9ef!important;border-color:#86d3a1!important;box-shadow:inset 0 0 0 1px rgba(22,163,74,.08)}
.test-view-btn.matter-open{box-shadow:inset 0 0 0 1px rgba(22,163,74,.16)}
@media (min-width:701px){
  .test-list .dhead,.test-list .drow{grid-template-columns:22px minmax(330px,2.2fr) minmax(180px,1.1fr) minmax(130px,.8fr) 95px 210px!important;gap:11px!important}
  .test-list .staff-test-actions{gap:4px!important;flex-wrap:nowrap!important;justify-content:flex-end!important}
  .test-list .staff-test-actions .ico{width:28px!important;height:28px!important;min-width:28px!important;max-width:28px!important;min-height:28px!important}
}
@media (max-width:700px) and (min-width:391px){
  .test-list .staff-test-actions{max-width:118px!important;flex-wrap:wrap!important;justify-content:flex-end!important}
}


/* M69 protected learner practice matter: one compact 3-line provenance watermark. */
.protected-matter-card{position:relative;overflow:hidden}
.practice-matter-shell{position:relative;isolation:isolate;overflow:hidden;border-radius:12px;background:#fff}
.protected-matter-text{position:relative;z-index:2;-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;cursor:default}
.practice-matter-watermark{position:absolute;left:50%;top:50%;z-index:1;pointer-events:none;width:min(88%,760px);transform:translate(-50%,-50%) rotate(-10deg);transform-origin:center;text-align:center;color:rgba(178,82,28,.105);line-height:1.15;letter-spacing:.01em;overflow-wrap:anywhere;font-weight:850}
.practice-matter-watermark b{display:block;font-size:clamp(24px,3vw,38px);font-weight:950}
.practice-matter-watermark span{display:block;font-size:clamp(19px,2.35vw,30px);font-weight:900;margin-top:5px}
.practice-matter-watermark small{display:block;font-size:clamp(16px,1.85vw,24px);font-weight:850;margin-top:4px}
@media(max-width:640px){
  .practice-matter-watermark{width:92%;color:rgba(178,82,28,.095)}
  .practice-matter-watermark b{font-size:22px}
  .practice-matter-watermark span{font-size:18px}
  .practice-matter-watermark small{font-size:15px}
}
@media print{
  .protected-matter-card,.practice-matter-shell{overflow:visible!important}
  .practice-matter-watermark{display:block!important;position:absolute!important;left:50%!important;top:50%!important;z-index:1!important;color:rgba(178,82,28,.12)!important;transform:translate(-50%,-50%) rotate(-10deg)!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
  .protected-matter-text{position:relative!important;z-index:2!important}
}



/* M70 role-safe Free Test management tabs. */
.free-manage-tabs{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0 0 14px}
.free-manage-tabs .btn{display:inline-flex;align-items:center;gap:7px}
.free-manage-tabs .btn span{display:inline-grid;place-items:center;min-width:22px;height:20px;padding:0 6px;border-radius:999px;background:#eef3fb;font-size:10px;font-weight:900}
.free-manage-tabs .btn.on{background:#172b4d!important;border-color:#172b4d!important;color:#fff!important}
.free-manage-tabs .btn.on span{background:rgba(255,255,255,.18);color:#fff}
.free-participants-table .btn.compact{min-height:32px;padding:6px 10px;font-size:11px}
@media(max-width:640px){.free-manage-tabs{display:grid;grid-template-columns:1fr 1fr}.free-manage-tabs .btn{justify-content:center;padding:8px 9px}.free-participants-table td[data-label="Action"] form{display:flex;justify-content:flex-end}}




/* M75 lightweight feed/progress/free-test enhancements */
.learner-feed-tags{display:flex;gap:8px;align-items:center;overflow-x:auto;padding:10px 2px 2px;margin:0 0 8px;scrollbar-width:thin}.feed-tag{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 13px;border:1px solid #cbd8ee;border-radius:11px;background:#fff;color:#17345f;font-weight:800;text-decoration:none;white-space:nowrap}.feed-tag:hover,.feed-tag.active{background:#2864e8;color:#fff;border-color:#2864e8}.progress-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 14px}.progress-mini-card{background:#fff;border:1px solid #d7e2f2;border-radius:12px;padding:12px 14px}.progress-mini-card span{display:block;font-size:12px;color:#63738e;font-weight:700;margin-bottom:4px}.progress-mini-card b{font-size:19px;color:#142b4d}.error-bank-view-switch{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 10px}.free-config-row{display:grid;grid-template-columns:1.1fr 1fr 1fr;gap:14px;align-items:end;margin-top:14px}.free-config-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}.free-config-actions form{margin:0}.free-config-actions button{min-width:118px}.free-participants-table .btn.compact{white-space:nowrap}
@media(max-width:760px){.progress-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.free-config-row{grid-template-columns:1fr}.free-config-actions{align-items:stretch}.free-config-actions button{min-width:0}.learner-feed-filters{align-items:stretch}}


/* M77: restore M74 compact test-list information in M44, with one batched submit-count query per visible page. */
@media (min-width:701px){
  .available .dhead,
  .available .drow{
    grid-template-columns:minmax(330px,2.05fr) minmax(145px,.82fr) minmax(92px,.52fr) 72px 64px 156px!important;
    gap:13px!important;
  }
  .available .learner-test-creation{min-width:0!important;justify-self:start!important;text-align:left!important}
  .available .learner-test-creation b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:800}
  .available .learner-test-creation .sub{margin-top:3px;font-size:10px;color:var(--muted);white-space:nowrap}
  .available .learner-test-required{font-weight:800!important;white-space:nowrap!important}
  .available .test-time-cell{justify-self:start!important;text-align:left!important;white-space:nowrap!important}
  .available .learner-test-count{justify-self:start!important;text-align:left!important;font-weight:800!important;white-space:nowrap!important}
  .available .test-start-cell{justify-content:flex-end!important;gap:7px!important;min-width:0!important}

  .test-list .dhead,.test-list .drow{
    grid-template-columns:22px minmax(250px,1.65fr) minmax(135px,.72fr) minmax(84px,.45fr) minmax(66px,.36fr) 58px 74px 174px!important;
    gap:10px!important;
  }
  .test-list .staff-test-creator{padding-left:0!important;justify-self:start!important;min-width:0!important}
  .test-list .staff-test-pass,.test-list .staff-test-count{min-width:0!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .test-list .staff-test-topic{min-width:0!important;justify-self:start!important}
  .test-list .staff-test-topic>span:last-child{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
}
@media (max-width:700px){
  .available .learner-test-creation,.available .learner-test-count{display:none!important}
  .test-list .staff-test-pass,.test-list .staff-test-count{display:none!important}
}
.teacher-test-table th,.teacher-test-table td{vertical-align:middle}
.teacher-test-table td:first-child{min-width:260px}
.teacher-test-table td:nth-child(2){min-width:145px}
.teacher-test-table td:nth-child(3),.teacher-test-table td:nth-child(4),.teacher-test-table td:nth-child(5){white-space:nowrap}
.teacher-test-table td:last-child{white-space:nowrap}

/* M81: lightweight Free Test recalculation control. */
.free-recalc-bar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:12px 0 16px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--card)}
.free-recalc-bar p{margin:4px 0 0;max-width:780px}
.free-recalc-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex:0 0 auto;white-space:nowrap}
.free-recalc-actions [data-free-recalc-status]{font-size:13px;color:var(--muted)}
@media(max-width:720px){.free-recalc-bar{align-items:stretch;flex-direction:column}.free-recalc-actions{justify-content:space-between;white-space:normal;flex-wrap:wrap}}

/* Typing workspace height controls: browser-only preference, no server request. */
#exam .height-tool{min-width:44px!important;padding:0 8px!important;font-variant-numeric:tabular-nums!important}
#exam .height-reset-tool{min-width:42px!important}
#exam .master-box{scrollbar-gutter:stable}
#exam .typing-box #typed{overflow-y:auto!important}
@media(max-width:720px){#exam .height-tool{min-width:42px!important;padding:0 7px!important}}

/* M83: exam-locked test configuration + pinned-task emphasis */
.test-preset-card{margin:14px 0;padding:14px;border:1px solid #d8e3f2;background:#f8fbff;border-radius:14px}.test-preset-card h3{margin:0}.test-config-locked .field{position:relative}.test-config-locked input:disabled,.test-config-locked select:disabled{opacity:1!important;color:#24344d!important;background:#eef3f8!important;border-color:#c7d4e5!important;cursor:not-allowed!important;-webkit-text-fill-color:#24344d}.test-config-lock-note{margin-top:12px!important;border-color:#d8c36b!important;background:#fff9dc!important;color:#6d5200!important}.audio-policy-note{margin:8px 0 14px;color:#5b6b82;font-size:12px;font-weight:750}.secure-audio-seek:disabled{pointer-events:none;opacity:.82;cursor:not-allowed}.secure-audio-play:disabled{opacity:.62;cursor:not-allowed}.audio-speed-locked{display:flex;align-items:center;justify-content:center;white-space:nowrap;background:#eef3f8!important;color:#43526a!important;border-color:#cbd8e8!important}.test-editor-form .test-preset-card .section-title{margin-bottom:10px}
.drow.target-pinned{position:relative;border:2px solid #ff8a00!important;background:linear-gradient(90deg,#fff7e5 0%,#fffdf8 52%,#fff4df 100%)!important;box-shadow:0 0 0 3px rgba(255,138,0,.10),0 8px 24px rgba(255,105,0,.16)!important;animation:pinnedTaskGlow 1.8s ease-in-out infinite alternate}.drow.target-pinned::before{content:'📌';position:absolute;left:-10px;top:-10px;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#ff6a00;color:#fff;box-shadow:0 3px 12px rgba(255,106,0,.35);z-index:2}.drow.target-pinned .title{color:#b94300!important}.drow.target-pinned .today-target{background:#ff6a00!important;color:#fff!important;border:1px solid #ff6a00!important;box-shadow:0 0 14px rgba(255,106,0,.42)}
@keyframes pinnedTaskGlow{from{box-shadow:0 0 0 3px rgba(255,138,0,.08),0 7px 18px rgba(255,105,0,.12)}to{box-shadow:0 0 0 5px rgba(255,138,0,.16),0 10px 28px rgba(255,105,0,.28)}}
@media(prefers-reduced-motion:reduce){.drow.target-pinned{animation:none}}

/* M84: compact creator form + click-to-open exam presets */
.test-advanced-panel{margin:14px 0 2px;padding:14px 0 2px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:transparent}.test-advanced-heading{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin:0 0 12px}.test-advanced-heading b{font-size:13px;color:var(--ink)}.test-advanced-heading span{font-size:11px;color:var(--muted);font-weight:650}.advanced-preset-grid{margin:0}.advanced-preset-grid .field{margin-bottom:12px}.advanced-preset-grid.is-user-configurable .preset-manual-field{opacity:.42;filter:grayscale(.28) blur(.15px);pointer-events:none;user-select:none}.advanced-preset-grid.is-user-configurable .preset-manual-field input,.advanced-preset-grid.is-user-configurable .preset-manual-field select{background:#fff;color:#516078;-webkit-text-fill-color:#516078}.test-advanced-toggle{margin-left:auto!important;margin-right:0!important;display:inline-flex!important;align-items:center;justify-content:center;gap:7px;min-width:78px}.test-advanced-toggle .test-advanced-plus{font-size:20px;line-height:1;font-weight:900;color:var(--blue)}.test-advanced-toggle .test-advanced-label{font-size:12px}.test-advanced-toggle.is-open .test-advanced-plus{font-size:22px}.test-editor-form .form-actions{align-items:center}.test-editor-form .form-actions>a:first-child{margin-right:0!important}.test-editor-form .form-actions>button:last-child{margin-left:0}.test-editor-form .test-preset-card{background:#fff;border-color:var(--line)}
@media(max-width:700px){.test-advanced-heading{display:block}.test-advanced-heading span{display:block;margin-top:3px}.test-advanced-toggle{min-width:44px}.test-advanced-toggle .test-advanced-label{display:none}}

/* M84: pinned learner target — vivid pink/red emphasis, no protruding pin icon */
.drow.target-pinned{position:relative;border:2px solid #ec2f72!important;background:linear-gradient(90deg,#fff0f6 0%,#fff8fb 50%,#ffeaf3 100%)!important;box-shadow:0 0 0 3px rgba(236,47,114,.09),0 8px 24px rgba(210,20,92,.16)!important;animation:pinnedTaskGlowM84 1.8s ease-in-out infinite alternate}.drow.target-pinned::before{content:none!important;display:none!important}.drow.target-pinned .title{color:#b81450!important}.drow.target-pinned .today-target{background:#df1f63!important;color:#fff!important;border:1px solid #df1f63!important;box-shadow:0 0 14px rgba(223,31,99,.38)}
@keyframes pinnedTaskGlowM84{from{box-shadow:0 0 0 3px rgba(236,47,114,.08),0 7px 18px rgba(210,20,92,.12)}to{box-shadow:0 0 0 5px rgba(236,47,114,.16),0 10px 28px rgba(210,20,92,.28)}}
@media(prefers-reduced-motion:reduce){.drow.target-pinned{animation:none}}
.test-editor-form .test-form-actions-with-more{display:grid!important;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}.test-editor-form .test-form-actions-with-more>a:first-child{justify-self:start;margin-right:0!important}.test-editor-form .test-form-actions-with-more>.test-advanced-toggle{justify-self:center;margin:0!important}.test-editor-form .test-form-actions-with-more>button:last-child{justify-self:end;margin:0!important}@media(max-width:560px){.test-editor-form .test-form-actions-with-more{grid-template-columns:auto 1fr auto}.test-editor-form .test-form-actions-with-more>.test-advanced-toggle{min-width:44px}}

/* M90: skipped computer questions should not expose/grade learner-file values. */
.computer-check-skip{font-weight:700;color:#b45309;white-space:nowrap}

/* M93: keep learner test Action controls visually centered in their column. */
@media (min-width:701px){
  .available .learner-desktop-test-head>div:last-child{justify-self:center!important;text-align:center!important;width:100%}
  .available .test-start-cell,.available .learner-test-actions{justify-self:stretch!important;justify-content:center!important;text-align:center!important}
}
@keyframes pinnedTaskGlowM84{from{box-shadow:0 0 0 3px rgba(236,47,114,.08),0 7px 18px rgba(210,20,92,.12)}to{box-shadow:0 0 0 5px rgba(236,47,114,.16),0 10px 28px rgba(210,20,92,.28)}}
@media(prefers-reduced-motion:reduce){.drow.target-pinned{animation:none}}
.test-editor-form .test-form-actions-with-more{display:grid!important;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px}.test-editor-form .test-form-actions-with-more>a:first-child{justify-self:start;margin-right:0!important}.test-editor-form .test-form-actions-with-more>.test-advanced-toggle{justify-self:center;margin:0!important}.test-editor-form .test-form-actions-with-more>button:last-child{justify-self:end;margin:0!important}@media(max-width:560px){.test-editor-form .test-form-actions-with-more{grid-template-columns:auto 1fr auto}.test-editor-form .test-form-actions-with-more>.test-advanced-toggle{min-width:44px}}

/* M90: skipped computer questions should not expose/grade learner-file values. */
.computer-check-skip{font-weight:700;color:#b45309;white-space:nowrap}

/* M100: preserve M93 learner action centering. */
@media (min-width:701px){.available .learner-desktop-test-head>div:last-child{justify-self:center!important;text-align:center!important;width:100%}.available .test-start-cell,.available .learner-test-actions{justify-self:stretch!important;justify-content:center!important;text-align:center!important}}



/* M44 parity: S126.5 mobile typing + opposing action policy */
/* M126: mobile typing runner viewport/keyboard containment.
   Typing has three real rows: toolbar, scrollable master, typing+footer. */
body.test-running .wrap{
  height:var(--runner-vh,100dvh)!important;
  min-height:var(--runner-vh,100dvh)!important;
  max-height:var(--runner-vh,100dvh)!important;
}
#exam:not([hidden]){
  height:var(--runner-vh,100dvh)!important;
  min-height:var(--runner-vh,100dvh)!important;
  max-height:var(--runner-vh,100dvh)!important;
}
#exam:not([hidden]):has(.typing-box:not(.full)){
  grid-template-rows:auto minmax(0,1fr) auto!important;
}
#exam:not([hidden]):has(.typing-box:not(.full)) form{
  grid-row:3!important;
  min-width:0!important;
  width:100%!important;
}
#exam:not([hidden]):has(.typing-box:not(.full)) .master-box{
  grid-row:2!important;
  min-width:0!important;
  width:100%!important;
  max-width:100%!important;
}
@media(max-width:720px){
  body.test-running{overflow:hidden!important}
  body.test-running .wrap{overflow:hidden!important}
  #exam:not([hidden]){width:100%!important;max-width:100vw!important;box-sizing:border-box!important;overflow:hidden!important}
  #exam .exambar{min-width:0!important;max-width:100%!important;overflow:hidden!important}
  #exam .examtools{max-width:100%!important;min-width:0!important;overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  #exam:not([hidden]):has(.typing-box:not(.full)) .master-box{min-height:72px!important}
  #exam:not([hidden]):has(.typing-box:not(.full)) form{gap:6px!important}
  #exam:not([hidden]):has(.typing-box:not(.full)) #typed{height:88px!important;min-height:72px!important;max-height:96px!important}
  #exam .examfoot{gap:6px!important}
  #exam .exammeta{white-space:normal!important;line-height:1.2!important}
  body.runner-keyboard-open #exam:not([hidden]){padding:5px!important;gap:5px!important}
  body.runner-keyboard-open #exam .exambar{padding:5px 8px!important;gap:4px!important}
  body.runner-keyboard-open #exam .exambar>div:first-child .sub{font-size:11px!important}
  body.runner-keyboard-open #exam:not([hidden]):has(.typing-box:not(.full)) .master-box{min-height:56px!important;padding:8px 10px!important;line-height:1.55!important}
  body.runner-keyboard-open #exam:not([hidden]):has(.typing-box:not(.full)) #typed{height:76px!important;min-height:64px!important;max-height:82px!important}
  body.runner-keyboard-open #exam .examfoot button{min-height:38px!important;padding:6px 8px!important}
  body.runner-keyboard-open #exam .exammeta{font-size:10px!important;gap:4px!important}
}


/* === M126.2 Opposing action safety policy ===
   Forms/modals: Back/Cancel/Exit stays left; Save/Next/Process stays right.
   A third action sits in the centre. Test editor action rows are intentionally
   excluded: Steno/Typing test forms keep their existing dedicated layout. */
.learner-editor-form{width:100%;max-width:none;margin-left:0;margin-right:0}
.opposed-actions{width:100%;align-items:center;gap:10px}
.opposed-actions-2{display:grid!important;grid-template-columns:1fr 1fr!important}
.opposed-actions-2>:first-child{justify-self:start!important;margin:0!important}
.opposed-actions-2>:last-child{justify-self:end!important;margin:0!important}
.opposed-actions-dynamic{display:grid!important;grid-template-columns:1fr auto 1fr!important}
.opposed-actions-dynamic>:first-child{justify-self:start!important;margin:0!important;grid-column:1}
.opposed-actions-dynamic>.opposed-actions-middle{justify-self:center!important;margin:0!important;grid-column:2}
.opposed-actions-dynamic>:last-child{justify-self:end!important;margin:0!important;grid-column:3}
@media(max-width:560px){
  .opposed-actions-2{grid-template-columns:auto 1fr!important}
  .opposed-actions-dynamic{grid-template-columns:auto 1fr auto!important}
}


/* M46: S126.5 role-neutral landing polish parity (M63-M65). */
/* M63 landing polish: free live test in header; compact one-line utility footer. */
.home-header-free{box-sizing:border-box;width:192px;height:55px;justify-content:flex-start}
.home-header-free.disabled{opacity:.48;filter:grayscale(.25);cursor:not-allowed;pointer-events:none}
.home-footer.home-footer-compact{display:block;padding:0;overflow:hidden}
.home-footer-line{min-height:78px;display:flex;align-items:center;gap:10px;padding:12px 24px;white-space:nowrap;overflow-x:auto;scrollbar-width:none}
.home-footer-line::-webkit-scrollbar{display:none}
.home-footer-icon{flex:0 0 40px;display:grid;place-items:center;width:40px;height:40px;border-radius:11px;background:#eef5ff;font-size:20px}
.home-footer-divider{align-self:stretch;width:1px;min-height:46px;margin:0 12px;background:#dce7f5}
.home-footer-compact .home-footer-demo-buttons{display:flex;gap:7px;margin:0}
.home-footer-compact .home-footer-demo-buttons a{display:grid;place-items:center;min-width:86px;min-height:38px;padding:6px 12px;border-radius:8px;color:#fff;text-decoration:none;font-size:10px;font-weight:900}
.home-footer-compact .home-footer-demo-buttons .typing{background:#2f68eb}.home-footer-compact .home-footer-demo-buttons .steno{background:#169b50}.home-footer-compact .home-footer-demo-buttons .computer{background:#9b2525}
.home-footer-compact .home-useful-links{display:flex;gap:7px;margin:0}.home-footer-compact .home-useful-links a,.home-footer-compact .home-useful-links span{min-width:150px;min-height:38px;padding:6px 12px}
.home-footer-compact .home-social-links{display:flex;gap:9px;margin:0}
@media(max-width:560px){.home-header-free{width:132px;height:45px}.home-footer-line{padding:10px 12px;gap:7px}.home-footer-divider{margin:0 5px}.home-footer-icon{flex-basis:34px;width:34px;height:34px;font-size:17px}.home-footer-compact .home-footer-demo-buttons a{min-width:72px;padding-inline:8px}.home-footer-compact .home-useful-links a,.home-footer-compact .home-useful-links span{min-width:110px}}


/* M64 landing responsive polish: active free-test emphasis + fully fitted utility footer. */
.home-header-free.active{border-color:#ef4444;background:#fff5f5;box-shadow:0 0 0 1px rgba(239,68,68,.05),0 6px 18px rgba(185,28,28,.08)}
.home-header-free.active>span{background:#fee2e2}.home-header-free.active strong{color:#a61b1b}.home-header-free.active small{color:#c13a3a}
.home-footer-compact .home-useful-links{flex:1 1 auto;min-width:0;justify-content:center}
.home-footer-compact .home-useful-links a,.home-footer-compact .home-useful-links span{min-width:0;flex:1 1 0;max-width:118px;padding-inline:8px;overflow:hidden;text-overflow:ellipsis}
.home-footer-compact .home-social-links{flex:0 0 auto;gap:7px}
.home-footer-compact .home-social-links a,.home-footer-compact .home-social-links span{width:30px;height:30px}
/* M65: keep the desktop utility strip visually balanced; useful links no longer consume all spare width. */
@media(min-width:561px){
  .home-footer-line{justify-content:center}
  .home-footer-compact .home-useful-links{flex:0 1 500px;max-width:500px}
  .home-footer-compact .home-footer-demo-buttons{flex:0 0 auto}
  .home-footer-compact .home-social-links{flex:0 0 auto}
}
@media(max-width:560px){
  .home-header{grid-template-columns:minmax(0,1fr) 126px;column-gap:6px}
  .home-header-free{width:126px;height:45px;margin-right:4px;justify-self:end;padding:5px 7px;gap:6px}
  .home-header-free>span{width:29px;height:29px;flex:0 0 29px;font-size:15px}
  .home-header-free strong{font-size:10.5px;line-height:1.1}.home-header-free small{font-size:7.5px}
  .home-footer.home-footer-compact{margin-inline:6px;overflow:visible}
  .home-footer-line{width:100%;min-height:62px;box-sizing:border-box;padding:8px;gap:5px;overflow:hidden;white-space:nowrap}
  .home-footer-icon,.home-footer-divider{display:none}
  .home-footer-compact .home-footer-demo-buttons{flex:0 0 auto;gap:4px}
  .home-footer-compact .home-footer-demo-buttons a{min-width:0;width:58px;min-height:32px;padding:4px 3px;font-size:7.5px;line-height:1}
  .home-footer-compact .home-useful-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;flex:1 1 auto;min-width:0}
  .home-footer-compact .home-useful-links a,.home-footer-compact .home-useful-links span{width:auto;min-width:0;max-width:none;min-height:32px;padding:3px 2px;font-size:6.6px;line-height:1.05;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .home-footer-compact .home-social-links{gap:3px;flex:0 0 auto}
  .home-footer-compact .home-social-links a,.home-footer-compact .home-social-links span{width:25px;height:25px;font-size:10px}
}
@media(max-width:430px){
  .home-header{grid-template-columns:minmax(0,1fr) 120px}
  .home-header-free{width:120px;margin-right:2px}
  .home-footer-line{gap:3px;padding:7px 6px}
  .home-footer-compact .home-footer-demo-buttons{gap:3px}
  .home-footer-compact .home-footer-demo-buttons a{width:52px;font-size:7px}
  .home-footer-compact .home-useful-links{gap:3px}
  .home-footer-compact .home-useful-links a,.home-footer-compact .home-useful-links span{font-size:6px;padding-inline:1px}
  .home-footer-compact .home-social-links{gap:2px}
  .home-footer-compact .home-social-links a,.home-footer-compact .home-social-links span{width:23px;height:23px;font-size:9px}
}
/* === M126.6 action-policy completion: Computer editor + recycle bulk === */
.test-editor-form .computer-test-actions{width:100%;align-items:center;gap:10px}
.test-editor-form .computer-test-actions-2{display:grid!important;grid-template-columns:1fr 1fr!important}
.test-editor-form .computer-test-actions-2>:first-child{justify-self:start!important;margin:0!important}
.test-editor-form .computer-test-actions-2>:last-child{justify-self:end!important;margin:0!important}
.test-editor-form .computer-test-actions-3{display:grid!important;grid-template-columns:1fr auto 1fr!important}
.test-editor-form .computer-test-actions-3>:first-child{justify-self:start!important;margin:0!important;grid-column:1}
.test-editor-form .computer-test-actions-3>:nth-child(2){justify-self:center!important;margin:0!important;grid-column:2}
.test-editor-form .computer-test-actions-3>:last-child{justify-self:end!important;margin:0!important;grid-column:3}
.recycle-bulk-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
@media(max-width:620px){.test-editor-form .computer-test-actions-3{grid-template-columns:auto 1fr auto!important}.recycle-bulkbar{align-items:flex-start}.recycle-bulk-actions{flex-wrap:wrap;justify-content:flex-end}.recycle-bulk-actions .btn{min-height:34px;padding:6px 9px;font-size:11px}}


/* ===== Global maintenance mode ===== */
.maintenance-page{min-height:70vh;display:grid;place-items:center;padding:40px 18px}.maintenance-card{width:min(680px,100%);text-align:center;background:#fff;border:1px solid #d6e2f2;border-radius:22px;padding:54px 30px;box-shadow:0 18px 50px rgba(25,55,95,.08)}.maintenance-card h1{margin:10px 0 12px;font-size:clamp(28px,5vw,44px)}.maintenance-card p{font-size:17px;line-height:1.65}.maintenance-icon{font-size:52px}.maintenance-admin-link{display:inline-block;margin-top:24px;font-size:12px;color:#7b8ba5;text-decoration:none}.maintenance-admin-link:hover{text-decoration:underline}
/* M126.8: maintenance keeps the normal authentication endpoint available for Supreme. */
.maintenance-login-form{width:min(420px,100%);margin:26px auto 0;text-align:left}.maintenance-login-form .form-actions{margin-top:16px;justify-content:flex-end}.maintenance-login-form .form-actions button{min-width:120px}.maintenance-login-note{margin:18px 0 0;font-size:13px!important}
/* M126.9 — learner daily quota status */
.daily-usage-line{display:flex;align-items:center;gap:.42rem;flex-wrap:wrap}
.daily-usage{font-weight:800}
.daily-usage.limit-open{color:#16803a}
.daily-usage.limit-full{color:#c62828}
.usage-dot{color:var(--muted,#667085)}

/* M51: desktop learner status semantics; validity remains a separate concept. */
@media (min-width:761px){
  .learner-list .staff-learner-status .pill.active{background:#e9f9ef!important;color:#087a38!important;border:1px solid #bde8cb!important}
  .learner-list .staff-learner-status .pill.disabled{background:#fff0f0!important;color:#c62828!important;border:1px solid #ffcaca!important}
}
.renewal-learner-actions{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;white-space:nowrap}
.renewal-learner-actions .ico{flex:0 0 auto}

/* V9 Intelligence rule editor: icon action + focused modal; matching engine unchanged. */
.intelligence-actions{justify-content:flex-start;white-space:nowrap}.intelligence-actions .inline-form{display:inline-flex;margin:0}
.intelligence-edit-modal{position:fixed;inset:0;z-index:140;background:rgba(15,23,42,.48);display:grid;place-items:center;padding:16px}
.intelligence-edit-modal[hidden]{display:none!important}.intelligence-edit-card{position:relative;width:min(560px,100%);max-height:92vh;overflow:auto;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 22px 60px rgba(15,23,42,.22);padding:20px}
.intelligence-edit-card h3{margin:0 38px 4px 0;font-size:21px}.intelligence-edit-card>p{margin:0 0 16px;color:var(--muted);font-size:12px;font-weight:600}.intelligence-edit-close{position:absolute;right:14px;top:13px;width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;padding:0!important;border-radius:10px!important;background:#fff!important;color:#334155!important;border:1px solid var(--line)!important;font-size:22px!important;line-height:1!important}
@media(max-width:640px){.intelligence-edit-card{padding:16px;border-radius:15px}.intelligence-actions{gap:4px}.intelligence-actions .ico{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important}}


/* V9.1 UI integrity hotfix — keep controls/tables aligned and usable at desktop widths. */
input[type="checkbox"],input[type="radio"]{width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;padding:0!important;margin:0;vertical-align:middle;accent-color:var(--blue)}
.nav-in{overflow-x:auto;overflow-y:hidden;white-space:nowrap;scrollbar-width:thin}
.nav-in>a{flex:0 0 auto}

@media (min-width:701px){
  .learner-list{overflow-x:auto!important}
  .learner-list .dhead,.learner-list .drow{
    min-width:1020px!important;
    grid-template-columns:22px minmax(220px,1.45fr) minmax(170px,1.05fr) minmax(105px,.62fr) minmax(105px,.62fr) 222px!important;
    gap:12px!important;
  }
  .desktop-learner-username{display:block!important}

  .test-list{overflow-x:auto!important}
  .test-list .dhead,.test-list .drow{
    min-width:1120px!important;
    grid-template-columns:22px minmax(260px,1.7fr) minmax(155px,.82fr) minmax(95px,.48fr) minmax(68px,.35fr) 58px 78px 270px!important;
    gap:10px!important;
  }
  .test-list .staff-test-actions{width:270px!important;min-width:270px!important;max-width:270px!important;display:grid!important;grid-template-columns:repeat(8,29px)!important;gap:5px!important;justify-content:end!important;align-items:center!important;overflow:visible!important}
  .test-list .staff-test-actions .ico{margin:0!important}
}

.control-bulkbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 10px}
.control-bulkbar label{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:750;color:var(--muted)}

/* ===== Character-result parity with the V7 reference renderer =====
   Keep the operation stream inline and preserve its real whitespace. */
.compare.typing-compare{
  white-space:pre-wrap!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}
.compare.typing-compare .char-change{
  display:inline!important;
  padding:0!important;
  border-radius:2px;
  background:#fff3c7;
  color:#8a6000!important;
  font-weight:400!important;
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
}
.compare.typing-compare .char-space-marker{
  display:inline!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#efd8ff;
  color:#6f2c91!important;
  font-family:Arial,"Segoe UI Symbol","Noto Sans Symbols",sans-serif!important;
  font-size:.72em!important;
  font-weight:800!important;
  line-height:1!important;
  vertical-align:.08em;
}


/* Batch3 UI clean-up: Computer learner feed is six real columns on desktop. */
@media (min-width:701px){
  .available.computer-list .dhead,
  .available.computer-list .drow{
    grid-template-columns:minmax(300px,2.05fr) minmax(135px,.82fr) minmax(95px,.54fr) 72px 64px minmax(190px,1fr)!important;
    gap:13px!important;
    align-items:center!important;
  }
  .available.computer-list .test-start-cell{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:8px!important;
    width:100%!important;
    justify-content:stretch!important;
  }
  .available.computer-list .test-start-cell .btn{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    padding:9px 10px!important;
    text-align:center!important;
  }
}

/* Real computer-view tabs. Only the selected server-side panel is rendered. */
.computer-view-tabs-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px;padding:4px 0}
.computer-view-tab{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 15px;border:1px solid #cbd8ee;border-radius:10px;background:#fff;color:#17345f;font-weight:800;text-decoration:none;box-shadow:none}
.computer-view-tab:hover{background:#f4f7ff;border-color:#9db8ef}
.computer-view-tab.active{background:#2864e8;color:#fff;border-color:#2864e8}
.computer-tab-card{margin-top:0}
.computer-tab-card .computer-source-actions{margin-top:0}
.computer-tab-card .section-title{margin-bottom:12px}
@media(max-width:700px){.computer-view-tabs-nav{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.computer-view-tab{padding:8px 6px;font-size:11px}}

/* Typing result summary: category colors mirror Compare Matter. */
.typing-primary-summary .typing-metric-missing{color:#dc2626!important}
.typing-primary-summary .typing-metric-extra{color:#16a34a!important}
.typing-primary-summary .typing-metric-change{color:#2563eb!important}
.typing-primary-summary .typing-metric-space{color:#0891b2!important}
.typing-primary-summary th.typing-metric-missing small,
.typing-primary-summary th.typing-metric-extra small,
.typing-primary-summary th.typing-metric-change small,
.typing-primary-summary th.typing-metric-space small{color:inherit!important}

/* === Typing workspace shared 50/50 split (V9 native implementation) === */
@media (min-width:721px){
  body.test-running #exam.typing-split-exam:not([hidden]){
    display:flex!important;
    flex-direction:column!important;
    height:var(--runner-vh,100dvh)!important;
    min-height:var(--runner-vh,100dvh)!important;
    max-height:var(--runner-vh,100dvh)!important;
    gap:8px!important;
    overflow:hidden!important;
  }
  #exam.typing-split-exam .exambar{flex:0 0 auto!important}
  #exam.typing-split-exam .master-box{
    flex:0 0 auto!important;
    width:100%!important;
    margin:0!important;
    overflow:auto!important;
    overscroll-behavior:contain!important;
  }
  #exam.typing-split-exam .typing-split-divider{
    flex:0 0 10px!important;
    height:10px!important;
    min-height:10px!important;
    margin:-1px 0!important;
    position:relative!important;
    cursor:row-resize!important;
    touch-action:none!important;
    user-select:none!important;
    z-index:12!important;
  }
  #exam.typing-split-exam .typing-split-divider::before{
    content:"";
    position:absolute;
    left:0;right:0;top:4px;
    height:2px;
    background:#d8e3f1;
  }
  #exam.typing-split-exam .typing-split-divider span{
    position:absolute;
    left:50%;top:1px;
    width:54px;height:8px;
    transform:translateX(-50%);
    border:1px solid #c5d4e8;
    border-radius:999px;
    background:#fff;
    box-shadow:0 1px 4px rgba(30,58,95,.08);
  }
  #exam.typing-split-exam .typing-split-divider:hover span,
  #exam.typing-split-exam .typing-split-divider:focus span{
    border-color:#7aa4ef;
    background:#f5f9ff;
    outline:none;
  }
  body.typing-split-dragging{cursor:row-resize!important;user-select:none!important}
  #exam.typing-split-exam form{
    flex:0 0 auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    display:flex!important;
    flex-direction:column!important;
    gap:8px!important;
    overflow:visible!important;
    margin:0!important;
  }
  #exam.typing-split-exam .typing-box{
    flex:0 0 auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
  }
  #exam.typing-split-exam #typed{
    display:block!important;
    width:100%!important;
    resize:none!important;
    overflow:auto!important;
  }
  #exam.typing-split-exam .examfoot{
    flex:0 0 auto!important;
    width:100%!important;
    margin:0!important;
  }
}
@media (max-width:720px){
  #exam.typing-split-exam .typing-split-divider{display:none!important}
}


/* v201 canonical result colors */
.steno-wrong-breakdown .cat-missing{color:#dc2626!important}
.steno-wrong-breakdown .cat-extra{color:#15803d!important}
.steno-wrong-breakdown .cat-change{color:#2563eb!important}
.steno-wrong-breakdown .cat-vachan{color:#d97706!important}
.steno-wrong-breakdown .cat-gender{color:#e11d8a!important}
.steno-wrong-breakdown .cat-space{color:#0891b2!important}
.steno-wrong-breakdown .cat-hyphen{color:#7c3aed!important}
.steno-wrong-breakdown .cat-viram{color:#dc2626!important}
.steno-wrong-breakdown .cat-comma{color:#dc2626!important}
.steno-wrong-breakdown .cat-para{color:#8b5b0b!important}
.steno-wrong-breakdown th{white-space:nowrap}
.steno-wrong-breakdown td b{display:block;font-size:1.05em}
.steno-wrong-breakdown td small{display:block;margin-top:2px;font-size:.72em;font-weight:800;text-transform:uppercase}
/* Punctuation compare semantics: expected/missing red, standalone extra green, replacement blue. */
.v2-compare .comma-hi,.v2-compare .viram-hi{background:transparent!important;color:#dc2626!important;font-weight:700}
.v2-compare .punct-extra{background:transparent!important;color:#15803d!important;font-weight:700}
.v2-compare .err-pair-punct .punct-extra{color:#2563eb!important}

/* ===== v202 canonical result/error visual policy =====
   Shared by learner, teacher, Supreme, Demo and Free-Test result renderers. */
:root{
  --err-missing:#dc2626;
  --err-extra:#15803d;
  --err-change:#2563eb;
  --err-space:#0891b2;
  --err-vachan:#d97706;
  --err-gender:#e11d8a;
  --err-hyphen:#7c3aed;
  --err-neutral:#111827;
}

/* Summary/category colors. Punctuation/paragraph headers are deliberately neutral:
   their actual compare color depends on missing/extra/replacement semantics. */
.result-summary-table .cat-missing,.typing-primary-summary .typing-metric-missing{color:var(--err-missing)!important}
.result-summary-table .cat-extra,.typing-primary-summary .typing-metric-extra{color:var(--err-extra)!important}
.result-summary-table .cat-change,.typing-primary-summary .typing-metric-change{color:var(--err-change)!important}
.result-summary-table .cat-space,.typing-primary-summary .typing-metric-space{color:var(--err-space)!important}
.result-summary-table .cat-vachan{color:var(--err-vachan)!important}
.result-summary-table .cat-gender{color:var(--err-gender)!important}
.result-summary-table .cat-hyphen{color:var(--err-hyphen)!important}
.result-summary-table .cat-viram,
.result-summary-table .cat-comma,
.result-summary-table .cat-para{color:var(--err-neutral)!important}
.steno-wrong-breakdown td b{display:block;margin:0;font-size:1.05em}

/* Error detail cards use the same category identity everywhere. */
.legend-missing{color:var(--err-missing)!important}
.legend-extra{color:var(--err-extra)!important}
.legend-change{color:var(--err-change)!important}
.legend-space{color:var(--err-space)!important}
.legend-vachan{color:var(--err-vachan)!important}
.legend-gender{color:var(--err-gender)!important}
.legend-hyphen{color:var(--err-hyphen)!important}
.error-list-card.legend-missing .error-list-head{border-left-color:var(--err-missing)!important}
.error-list-card.legend-extra .error-list-head{border-left-color:var(--err-extra)!important}
.error-list-card.legend-change .error-list-head{border-left-color:var(--err-change)!important}
.error-list-card.legend-space .error-list-head{border-left-color:var(--err-space)!important}
.error-list-card.legend-vachan .error-list-head{border-left-color:var(--err-vachan)!important}
.error-list-card.legend-gender .error-list-head{border-left-color:var(--err-gender)!important}
.error-list-card.legend-hyphen .error-list-head{border-left-color:var(--err-hyphen)!important}

/* Typing compare: word and character modes now share the same canonical colors. */
.compare.typing-compare .missing{color:var(--err-missing)!important}
.compare.typing-compare .extra{color:var(--err-extra)!important}
.compare.typing-compare .changed .change-arrow,
.compare.typing-compare .changed .wrongword{color:var(--err-change)!important}
.compare.typing-compare .space-error .change-arrow,
.compare.typing-compare .space-error .wrongword{color:var(--err-space)!important}
.compare.typing-compare .char-change{
  background:transparent!important;
  color:var(--err-change)!important;
  font-weight:500!important;
}
.compare.typing-compare .char-space-marker{
  background:transparent!important;
  color:var(--err-space)!important;
  font-weight:800!important;
}

/* Steno compare canonical colors. */
.v2-compare .cmp-token.miss{color:var(--err-missing)!important}
.v2-compare .cmp-token.add{color:var(--err-extra)!important}
.v2-compare .err-pair-other .bad,.v2-compare .err-other{color:var(--err-change)!important}
.v2-compare .err-pair-number .bad,.v2-compare .err-number,
.v2-compare .err-pair-number .err-arrow{color:var(--err-vachan)!important}
.v2-compare .err-pair-gender .bad,.v2-compare .err-gender,
.v2-compare .err-pair-gender .err-arrow{color:var(--err-gender)!important}
.v2-compare .err-pair-space .bad,.v2-compare .err-space,
.v2-compare .err-pair-space .err-arrow{color:var(--err-space)!important}
.v2-compare .err-pair-hyphen .bad,.v2-compare .err-pair-hyphen .err-arrow{color:var(--err-hyphen)!important}

/* Punctuation is operation-colored rather than category-colored. */
.v2-compare .comma-hi,.v2-compare .viram-hi{background:transparent!important;color:var(--err-missing)!important;font-weight:700}
.v2-compare .punct-extra{background:transparent!important;color:var(--err-extra)!important;font-weight:700}
.v2-compare .err-pair-punct .punct-extra{color:var(--err-change)!important}

/* V206 — Happy Stenography brand + balanced landing footer */
.brand b,.home-brand>b{
  background:#fff!important;
  color:inherit!important;
  border:2px solid var(--blue)!important;
  box-shadow:none!important;
}
.brand b{font-size:16px!important}
.home-brand>b{font-size:20px!important}

.home-footer.home-footer-compact{overflow:hidden}
.home-footer-compact .home-footer-line{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(150px,1fr) minmax(0,2fr);
  gap:14px;
  padding:12px 16px;
  min-height:72px;
  overflow:visible;
  white-space:normal;
}
.home-footer-compact .home-footer-group{
  min-width:0;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
}
.home-footer-compact .home-footer-group+.home-footer-group{
  border-left:1px solid #dce7f5;
  padding-left:14px;
}
.home-footer-compact .home-footer-demo-buttons,
.home-footer-compact .home-useful-links,
.home-footer-compact .home-social-links{
  width:100%;
  margin:0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.home-footer-compact .home-footer-demo-buttons a,
.home-footer-compact .home-useful-links a,
.home-footer-compact .home-useful-links span{
  width:auto;
  min-width:0;
  max-width:none;
  min-height:38px;
  padding:6px 8px;
  border-radius:8px;
  text-align:center;
  display:grid;
  place-items:center;
  white-space:normal;
  overflow-wrap:anywhere;
}
.home-footer-compact .home-footer-demo-buttons a{font-size:10px;font-weight:900}
.home-footer-compact .home-useful-links a,
.home-footer-compact .home-useful-links span{font-size:9px}
.home-footer-compact .home-social-links{
  width:auto;
  min-width:126px;
  max-width:150px;
  justify-items:center;
  align-items:center;
  justify-content:center;
}
.home-footer-compact .home-footer-social{padding-left:10px!important;padding-right:10px!important}
.home-footer-compact .home-social-links a,
.home-footer-compact .home-social-links span{width:34px;height:34px;min-width:34px;min-height:34px}

@media(max-width:820px){
  .home-footer-compact .home-footer-line{
    grid-template-columns:1fr;
    gap:0;
    padding:8px 12px;
  }
  .home-footer-compact .home-footer-group{padding:9px 0!important}
  .home-footer-compact .home-footer-group+.home-footer-group{
    border-left:0;
    border-top:1px solid #dce7f5;
  }
  .home-footer-compact .home-footer-demo-buttons,
  .home-footer-compact .home-useful-links,
  .home-footer-compact .home-social-links{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
  }
  .home-footer-compact .home-footer-demo-buttons a,
  .home-footer-compact .home-useful-links a,
  .home-footer-compact .home-useful-links span{
    min-height:36px;
    font-size:9px;
  }
  .home-footer-compact .home-social-links{width:100%;min-width:0;max-width:none}
  .home-footer-compact .home-social-links a,
  .home-footer-compact .home-social-links span{width:32px;height:32px;min-width:32px;min-height:32px}
}

/* V211 compact Computer Color Rules */
.color-rules-head{margin-bottom:10px}.color-rules-policy{margin-bottom:12px}.color-group-create{padding:0;overflow:hidden;margin-bottom:14px}.color-group-create>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:12px;padding:14px 16px}.color-group-create>summary::-webkit-details-marker{display:none}.color-group-create-icon{display:grid;place-items:center;width:32px;height:32px;border:1px solid #bdd0ee;border-radius:10px;color:var(--blue);font-size:20px;font-weight:900;background:#f7faff}.color-group-create summary small{display:block;color:var(--muted);margin-top:2px}.color-create-form{display:grid;grid-template-columns:minmax(180px,1fr) minmax(230px,1fr) auto;gap:12px;align-items:end;padding:0 16px 16px;border-top:1px solid var(--line)}.color-create-form .field{margin-top:12px}.color-create-form .form-actions{margin:0 0 1px}.color-hex-input{display:grid;grid-template-columns:42px minmax(0,1fr);gap:8px;align-items:center}.color-hex-input input[type="color"]{width:42px;height:38px;padding:3px;border:1px solid var(--line);border-radius:9px;background:#fff;cursor:pointer}.color-hex-input input[type="text"],.color-hex-input input:not([type]){min-width:0}.color-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.color-rule-card{padding:14px;margin:0;min-width:0}.color-rule-card.is-disabled{opacity:.62}.color-rule-card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:11px}.color-rule-title{display:flex;align-items:center;gap:10px;min-width:0}.color-rule-title h2{margin:0;font-size:17px}.color-rule-title small{color:var(--muted)}.color-rule-main-swatch,.color-variant-swatch{display:inline-block;background:var(--swatch);border:1px solid rgba(15,35,65,.16);box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)}.color-rule-main-swatch{width:34px;height:34px;border-radius:10px;flex:0 0 auto}.color-status-toggle{border:1px solid var(--line);border-radius:999px;padding:6px 10px;font-weight:800;font-size:11px;background:#fff;cursor:pointer}.color-status-toggle.is-on{color:#087a45;border-color:#b8e2cc;background:#eefaf4}.color-status-toggle.is-off{color:#8a3d3d;background:#fff5f5}.color-variant-list{display:flex;flex-wrap:wrap;gap:8px;min-height:40px}.color-variant-chip{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:7px;align-items:center;min-width:185px;max-width:100%;padding:7px 8px;border:1px solid #dfe7f2;border-radius:10px;background:#fbfdff}.color-variant-chip.is-disabled{opacity:.45}.color-variant-swatch{width:22px;height:22px;border-radius:6px}.color-variant-copy{min-width:0}.color-variant-copy b{display:block;font-size:12px}.color-variant-copy small{display:block;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:145px}.color-variant-actions{display:flex;align-items:center;gap:4px}.color-variant-actions form{margin:0}.color-rule-ico{width:27px!important;height:27px!important;min-width:27px!important;padding:0!important;border-radius:8px!important;font-size:13px!important}.color-add-variant{margin-top:10px;border-top:1px dashed #d8e3f0;padding-top:8px}.color-add-variant>summary{cursor:pointer;color:var(--blue);font-weight:800;font-size:12px;list-style:none}.color-add-variant>summary::-webkit-details-marker{display:none}.color-variant-form{display:grid;grid-template-columns:minmax(160px,.85fr) minmax(180px,1.15fr) auto;gap:8px;align-items:center;margin-top:9px}.color-variant-form input{min-width:0}.color-variant-form .btn{white-space:nowrap}
@media(max-width:900px){.color-rule-grid{grid-template-columns:1fr}.color-create-form{grid-template-columns:1fr}.color-create-form .form-actions{margin:0}.color-variant-form{grid-template-columns:1fr}.color-variant-form .btn{width:100%}}


/* ===== Computer verification queue: question-level batch review ===== */
.computer-pending-review-row{grid-template-columns:54px minmax(260px,1fr) 72px minmax(420px,auto)}
.computer-pending-review-row .computer-review-command{display:flex;flex-direction:column;gap:4px}
.computer-pending-review-row .computer-review-command small{font-size:10px;color:var(--muted);font-weight:650}
.computer-review-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.computer-review-actions .inline-form{margin:0}
.computer-review-actions .btn{min-width:0!important;white-space:nowrap;padding:8px 11px;font-size:10px}
@media(max-width:980px){
  .computer-pending-review-row{grid-template-columns:44px minmax(0,1fr) 66px;grid-template-areas:"q command marks" ". command command" ". actions actions";gap:8px 10px}
  .computer-pending-review-row .computer-review-q{grid-area:q}.computer-pending-review-row .computer-review-command{grid-area:command}.computer-pending-review-row .computer-review-marks{grid-area:marks}.computer-pending-review-row .computer-review-actions{grid-area:actions;justify-content:flex-start}
}
@media(max-width:620px){
  .computer-review-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .computer-review-actions>a{grid-column:1/-1;text-align:center}.computer-review-actions .btn{width:100%!important}
}

/* V229 atomic Force Correct: command-level override without gifting sibling marks. */
.computer-review-row-atomic{align-items:start}
.computer-force-parts{display:flex;flex-wrap:wrap;gap:6px 8px;margin-top:8px}
.computer-force-parts label{display:inline-flex;align-items:center;gap:5px;padding:4px 7px;border:1px solid var(--line2);border-radius:8px;background:#f8fafc;font-size:11px;font-weight:700;cursor:pointer}
.computer-force-parts input{width:15px;height:15px;margin:0;accent-color:#2764ed}
.computer-force-parts small{font-size:9px;color:var(--muted);font-weight:600}
@media(max-width:900px){.computer-review-row-atomic .computer-force-parts{grid-column:1/-1}}

/* Ranking display refinement: desktop space column / concise learner cards on mobile. */
.leader-wrap.rank-compact-view table{min-width:980px;table-layout:auto}
.leader-wrap.rank-compact-view .rank-name-col,.leader-wrap.rank-compact-view td[data-label="Learner"]{min-width:155px}
.leader-wrap.rank-compact-view td[data-label="Space"]{min-width:130px;white-space:normal}
.leader-wrap.rank-compact-view .rank-space-role{font-size:11px;color:#70809a;white-space:nowrap}
.leader-wrap.rank-compact-view .rank-mobile-meta{display:none}
@media(max-width:700px){
.leader-wrap.rank-compact-view tr.rank-mobile-card{display:grid!important;grid-template-columns:26px minmax(0,1fr) auto!important;grid-template-rows:auto!important;gap:7px!important;align-items:center!important;padding:9px 10px!important}
.leader-wrap.rank-compact-view tr.rank-mobile-card td[data-label="Rank"]{grid-column:1!important;grid-row:1!important;align-self:center!important}
.leader-wrap.rank-compact-view tr.rank-mobile-card td[data-label="Learner"]{grid-column:2!important;grid-row:1!important;display:block!important;min-width:0!important;white-space:normal!important;overflow:visible!important;font-size:13px!important}
.leader-wrap.rank-compact-view .rank-identity{min-width:0;line-height:1.3;overflow-wrap:anywhere}
.leader-wrap.rank-compact-view .rank-identity b{font-size:13px!important;white-space:normal}
.leader-wrap.rank-compact-view .rank-identity .dbid{font-size:11px;white-space:nowrap}
.leader-wrap.rank-compact-view .rank-mobile-meta{display:block!important;color:#60708a;font-size:10.5px;white-space:normal;margin-top:4px}
.leader-wrap.rank-compact-view tr.rank-mobile-card td[data-label="Remark"]{grid-column:3!important;grid-row:1!important;align-self:center!important;justify-content:flex-end!important}
.leader-wrap.rank-compact-view tr.rank-mobile-card td[data-label="Space"],.leader-wrap.rank-compact-view tr.rank-mobile-card td[data-label="Tests"],.leader-wrap.rank-compact-view tr.rank-mobile-card td[data-label="Avg Accuracy"],.leader-wrap.rank-compact-view tr.rank-mobile-card td[data-label="Highest"],.leader-wrap.rank-compact-view tr.rank-mobile-card td[data-label="Lowest"],.leader-wrap.rank-compact-view tr.rank-mobile-card td[data-label="Last Test"]{display:none!important}
.leader-wrap.rank-compact-view .rank-badge{min-width:24px!important;width:24px!important;height:25px!important;padding:0!important}
}

/* Compact variable reference beside editable Test Marks Formula; no changes to results or other forms. */
.marks-formula-field .marks-variable-row{display:flex;gap:5px;flex-wrap:wrap;margin:6px 0}
.marks-formula-field .marks-variable-chip{min-height:27px;height:27px;width:auto;padding:3px 8px;border:1px solid #bfd2ec;border-radius:7px;background:#f4f8ff;color:#24476b;font-size:11px;font-weight:800;white-space:nowrap}
.marks-formula-field .marks-variable-chip:focus-visible{outline:2px solid #3075d7;outline-offset:2px}
.marks-formula-field .marks-formula-guide{font-size:11px;line-height:1.5;color:#52657e;margin-top:4px}
.marks-formula-field .marks-formula-guide summary{cursor:pointer;font-weight:750}
.marks-formula-field .marks-formula-guide>div{margin:5px 0;padding:8px;border:1px solid #e0e9f5;background:#fafcff;border-radius:8px}
.marks-formula-field .marks-formula-guide code{overflow-wrap:anywhere}

/* Pinned tests now have dashboard cards; no bright outline in module feed. */
.learner-feed .target-pinned,.dense.available .target-pinned{outline:none!important;box-shadow:none!important;border-color:#d7e2f1!important;background:#fff!important;}

/* One-glance pinned targets, independent of module list and without loud red outlines. */
.dashboard-target-section{margin:12px 0 20px}.dashboard-target-section>.section-title{margin:0 0 10px}.dashboard-target-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:10px}
.dashboard-target-card{border:1px solid #d8e4f4;background:#fff;border-radius:13px;padding:13px 14px;display:flex;align-items:center;gap:12px;justify-content:space-between;min-width:0;box-shadow:0 4px 13px rgba(30,57,91,.035)}
.dashboard-target-copy{display:flex;flex-direction:column;min-width:0;gap:4px;flex:1}.dashboard-target-copy b{font-size:.94rem;line-height:1.4;overflow-wrap:anywhere}.dashboard-target-copy small{color:#667b99;font-size:.76rem}.dashboard-target-type{color:#2764e8;font-weight:800;text-transform:uppercase;font-size:.65rem;letter-spacing:.07em}
.dashboard-target-start{white-space:nowrap;padding:8px 13px!important;font-size:.8rem!important;flex-shrink:0}@media(max-width:480px){.dashboard-target-section{margin-top:10px}.dashboard-target-grid{grid-template-columns:minmax(0,1fr)}}

/* HAPPY dashboard: compact pinned test grid, four across on normal desktop. */
.dashboard-target-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
.dashboard-target-card{padding:12px!important;gap:8px!important;align-items:flex-start!important;min-width:0!important;min-height:105px;flex-direction:column!important}
.dashboard-target-copy{width:100%!important;gap:3px!important;min-width:0}
.dashboard-target-copy b{font-size:13px!important;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dashboard-target-copy small{font-size:10.5px!important;line-height:1.35}
.dashboard-target-start{margin-top:auto;margin-left:auto;padding:7px 12px!important;min-height:30px!important;font-size:11px!important}
@media (min-width:1550px){.dashboard-target-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}}
@media (max-width:1040px){.dashboard-target-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width:740px){.dashboard-target-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:430px){.dashboard-target-grid{grid-template-columns:minmax(0,1fr)!important}.dashboard-target-card{flex-direction:row!important;align-items:center!important;min-height:72px}}
/* No special outlines/shadows on pinned rows: identical to all ordinary test rows. */
.drow.target-pinned{border:0!important;border-top:1px solid var(--line2)!important;outline:none!important;background:#fff!important;box-shadow:none!important;animation:none!important}
.drow.target-pinned::before{content:none!important;display:none!important}
.drow.target-pinned:hover{background:#fbfdff!important}
.drow.target-pinned .title{color:inherit!important}
.drow.target-pinned .today-target{color:#2764ed!important;background:#eaf1ff!important;border:0!important;box-shadow:none!important}
/* Running/draft cards in learner dashboard, separated by one subtle rule. */
.dashboard-resume-section{border-top:1px solid #ccd9ea;padding-top:13px;margin:15px 0 18px}
.dashboard-resume-section[hidden]{display:none!important}
.dashboard-resume-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:10px;flex-wrap:wrap}
.dashboard-resume-heading h2{margin:0;color:var(--ink);font-size:17px}
.dashboard-resume-heading span{font-size:11px;color:#607592}
.dashboard-resume-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.dashboard-resume-card{display:flex;flex-direction:column;gap:8px;padding:12px 13px;border:1px solid #b9d0f0;border-radius:12px;background:#fff;min-width:0}
.dashboard-resume-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.dashboard-resume-kind{color:#2563eb;font-size:10px;font-weight:800;letter-spacing:.05em}
.dashboard-resume-copy b{font-size:13px;overflow-wrap:anywhere;line-height:1.35}
.dashboard-resume-copy small{font-size:11px;color:#607592;line-height:1.4}
.dashboard-resume-actions{display:flex;align-items:center;gap:6px;margin-top:auto;flex-wrap:wrap}
.dashboard-resume-button,.dashboard-clear-button{padding:7px 12px!important;min-height:32px!important;font-size:11px!important}
.dashboard-resume-unavailable{font-size:10px;color:#97521d;background:#fff5e9;padding:6px;border-radius:8px}
@media(max-width:900px){.dashboard-resume-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){.dashboard-resume-grid{grid-template-columns:minmax(0,1fr)}}


/* === HAPPY V244 compact dashboard cards + 3-column setup refinement === */
.setup-grid,
.typing-setup-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px 16px!important;
  align-items:start!important;
}
.setup-grid .field,
.typing-setup-grid .field{margin-bottom:0!important}
.setup-top{margin-bottom:14px}
.test-config-lock-note{margin-top:14px}
@media (max-width:980px){
  .setup-grid,
  .typing-setup-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:640px){
  .setup-grid,
  .typing-setup-grid{grid-template-columns:1fr!important}
}

.dashboard-target-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:14px!important;
}
.dashboard-target-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto;
  grid-template-rows:auto auto auto;
  gap:4px 10px!important;
  padding:14px!important;
  min-height:116px;
  align-items:start!important;
}
.dashboard-target-copy{
  grid-column:1 / -1;
  width:100%!important;
  min-width:0;
  display:block!important;
}
.dashboard-target-type{display:block;margin-bottom:6px}
.dashboard-target-copy b{
  display:block;
  font-size:13px!important;
  line-height:1.3;
  min-height:34px;
  overflow-wrap:anywhere;
}
.dashboard-target-copy small{
  display:block;
  margin-top:6px;
  font-size:10.75px!important;
  line-height:1.4;
}
.dashboard-target-start{
  grid-column:2;
  grid-row:3;
  justify-self:end;
  align-self:end;
  margin:0!important;
  padding:7px 14px!important;
  min-height:32px!important;
  font-size:11px!important;
}
@media (min-width:1550px){.dashboard-target-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media (max-width:1040px){.dashboard-target-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width:760px){.dashboard-target-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:430px){
  .dashboard-target-grid{grid-template-columns:minmax(0,1fr)!important}
  .dashboard-target-card{grid-template-columns:minmax(0,1fr) auto;min-height:auto;padding:13px!important}
  .dashboard-target-copy b{min-height:0}
}

.dashboard-resume-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
}
.dashboard-resume-card{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
  padding:14px;
  min-height:0;
  border:1px solid #c6d8f1;
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 12px rgba(33,64,108,.04);
}
.dashboard-resume-copy{gap:4px}
.dashboard-resume-kind{display:block;margin-bottom:2px}
.dashboard-resume-copy b{font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.dashboard-resume-copy small{font-size:11px;line-height:1.45;color:#61738d}
.dashboard-resume-actions{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  margin-top:0;
  flex-wrap:wrap;
}
.dashboard-resume-button,
.dashboard-clear-button{min-height:33px!important;padding:7px 13px!important;font-size:11px!important}
.dashboard-resume-unavailable{font-size:10.5px;line-height:1.35;padding:7px 8px}
@media(max-width:1040px){.dashboard-resume-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.dashboard-resume-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.dashboard-resume-grid{grid-template-columns:minmax(0,1fr)}}


/* Dashboard and exam setup: compact visual polish (no assessment behavior changes). */
.dashboard-target-topline{display:flex;align-items:center;justify-content:space-between;gap:6px;min-width:0;margin-bottom:6px}
.dashboard-target-topline .dashboard-target-type{margin:0;min-width:0;line-height:1.4}
.dashboard-pinned-badge{display:inline-flex;align-items:center;flex-shrink:0;gap:3px;border:1px solid #d6e4fa;border-radius:999px;background:#f1f6ff;color:#2456a5;font-size:9px;line-height:1.2;font-weight:800;letter-spacing:0;padding:4px 6px;white-space:nowrap}
.dashboard-target-copy b{min-height:0!important;margin-bottom:4px!important}
.dashboard-target-card{min-height:116px!important;grid-template-rows:auto auto!important;align-content:start!important}
.dashboard-target-copy{grid-column:1/-1!important;grid-row:1!important}
.dashboard-target-start{grid-row:2!important;margin-top:2px!important}
@media(min-width:1550px){.dashboard-target-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}

/* Use 3 columns on desktop, 2 on tablets and 1 on phones; group fields visibly. */
.setup-grid>.setup-group-label{grid-column:1/-1;display:block;color:#42618a;font-size:11px;line-height:1.4;font-weight:850;letter-spacing:.025em;padding:0 0 6px;border-bottom:1px solid #e1eaf5;margin:3px 0 0}
.setup-grid>.setup-group-label:first-child{margin-top:0}
.setup-grid .field{min-width:0}
.setup-grid .field select,.setup-grid .field input{max-width:100%;min-width:0}
.setup-grid-spaced,.typing-setup-grid{align-items:start!important;gap:12px 15px!important}

/* Clear distinction between the saved timestamp and the remaining timer at save. */
.dashboard-resume-time{display:inline-flex;align-self:flex-start;max-width:100%;padding:4px 8px;border-radius:7px;background:#eaf2ff;color:#2458b2;font-size:11px;line-height:1.35;font-weight:850;white-space:normal}
.dashboard-resume-copy small{margin-top:1px}
.dashboard-resume-card{border-color:#cdddef!important;min-height:128px!important;align-content:start!important}
.dashboard-resume-actions{margin-top:auto!important;justify-content:flex-end!important;padding-top:3px!important}
.dashboard-resume-button,.dashboard-clear-button{white-space:nowrap}
@media(max-width:520px){.dashboard-resume-card{min-height:0!important}}


/* === Compact dashboard cards refinement === */
.dashboard-target-section{margin:12px 0 18px!important}
.dashboard-target-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
.dashboard-target-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:"topline topline" "title action" "meta action"!important;
  gap:6px 12px!important;
  align-items:start!important;
  padding:13px 15px!important;
  min-height:0!important;
  border:1px solid #d4e1f3!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:0 4px 12px rgba(33,64,108,.035)!important;
}
.dashboard-target-copy{display:contents!important}
.dashboard-target-topline{grid-area:topline;display:flex;justify-content:space-between;align-items:center;gap:10px;min-width:0}
.dashboard-target-type{font-size:11px!important;font-weight:800!important;letter-spacing:.04em!important;text-transform:uppercase!important;color:#3263e8!important}
.dashboard-pinned-badge{font-size:10.5px!important;padding:4px 9px!important;border-radius:999px!important;white-space:nowrap;background:#f6f9ff!important;border:1px solid #d5e1f5!important;color:#4b6294!important}
.dashboard-target-copy>b{grid-area:title;display:block;font-size:13px!important;line-height:1.3!important;color:#12274b!important;min-width:0;overflow-wrap:anywhere}
.dashboard-target-copy>small{grid-area:meta;display:block;font-size:11px!important;line-height:1.35!important;color:#697c97!important}
.dashboard-target-start{grid-area:action;align-self:center!important;justify-self:end!important;margin:0!important;white-space:nowrap;padding:7px 14px!important;min-height:34px!important;font-size:11px!important;border-radius:12px!important}
@media (min-width:1500px){.dashboard-target-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media (max-width:1080px){.dashboard-target-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media (max-width:760px){.dashboard-target-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:440px){.dashboard-target-grid{grid-template-columns:minmax(0,1fr)!important}}

.dashboard-resume-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important}
.dashboard-resume-card{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:"title kind" "saved timer" "actions actions"!important;
  gap:7px 12px!important;
  padding:14px 15px!important;
  min-height:0!important;
  border:1px solid #c8d8ef!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 4px 12px rgba(33,64,108,.04)!important;
}
.dashboard-resume-title{grid-area:title;display:block;font-size:13px!important;line-height:1.3!important;color:#12274b!important;overflow-wrap:anywhere}
.dashboard-resume-kind{grid-area:kind;align-self:start;justify-self:end;font-size:11px!important;font-weight:800!important;letter-spacing:.04em!important;text-transform:uppercase!important;color:#3263e8!important;white-space:nowrap}
.dashboard-resume-saved{grid-area:saved;display:block;font-size:11px!important;line-height:1.35!important;color:#697c97!important}
.dashboard-resume-time{grid-area:timer;align-self:center;justify-self:end;display:inline-flex!important;align-items:center;white-space:nowrap;font-size:11px!important;font-weight:700!important;color:#325ad4!important;background:#eff4ff!important;border:1px solid #d6e1f6!important;border-radius:10px!important;padding:6px 9px!important}
.dashboard-resume-actions{grid-area:actions;display:flex!important;align-items:center;justify-content:space-between;gap:10px;flex-wrap:nowrap;margin-top:0!important}
.dashboard-clear-button,.dashboard-resume-button{min-height:36px!important;padding:7px 14px!important;font-size:11px!important;border-radius:12px!important}
.dashboard-resume-button{margin-left:auto!important}
.dashboard-resume-unavailable{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:7px 10px;border-radius:10px;background:#f6f7fb;border:1px solid #d8e1ee;color:#61738d;font-size:10.5px;line-height:1.35;text-align:center}
@media(max-width:1080px){.dashboard-resume-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){.dashboard-resume-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:520px){
  .dashboard-resume-grid{grid-template-columns:minmax(0,1fr)!important}
  .dashboard-resume-card{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"kind" "title" "timer" "saved" "actions"!important}
  .dashboard-resume-kind,.dashboard-resume-time{justify-self:start}
}


/* Pinned target cards: one compact count line; distinguish Resume from Start. */
.dashboard-target-card{
  grid-template-rows:auto auto auto!important;
  align-content:start!important;
  min-height:0!important;
  padding:11px 14px!important;
  row-gap:3px!important;
}
.dashboard-target-topline{margin-bottom:3px!important}
.dashboard-target-copy>b{min-height:0!important;margin:0!important;line-height:1.3!important}
.dashboard-target-copy>small{margin:0!important;line-height:1.3!important}
.dashboard-target-start{align-self:center!important}
.dashboard-target-start.is-resume,
.dashboard-resume-button,
.available .test-start-cell a.is-resume{
  background:#f97316!important;
  border-color:#f97316!important;
  color:#fff!important;
}
.dashboard-target-start.is-resume:hover,
.dashboard-resume-button:hover,
.available .test-start-cell a.is-resume:hover{background:#ea580c!important;border-color:#ea580c!important}
.dashboard-target-start.is-resume:focus-visible,
.dashboard-resume-button:focus-visible,
.available .test-start-cell a.is-resume:focus-visible{outline:3px solid rgba(249,115,22,.3)!important;outline-offset:2px}
/* Dedicated learner test feeds: just a few pixels more for Resume, Start unchanged. */
.available:not(.computer-list) .drow.has-resume .learner-test-actions{
  grid-template-columns:minmax(64px,1fr) minmax(80px,1.15fr)!important;
}
.available:not(.computer-list) .test-start-cell a.is-resume{
  width:80px!important;min-width:80px!important;max-width:80px!important;
  padding-left:7px!important;padding-right:7px!important;white-space:nowrap!important;
}
@media (max-width:700px){
  .available:not(.computer-list) .drow.has-resume{grid-template-columns:minmax(0,1fr) 80px!important}
}


/* HAPPY dashboard: replace the inherited multi-row grid with an intentional two-row card.
   Prevents empty implicit grid tracks between title and total; keeps the pin/action gap. */
.dashboard-target-card{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:9px!important;
  padding:12px 14px!important;
  min-height:0!important;
  height:auto!important;
}
.dashboard-target-card>.dashboard-target-topline{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin:0!important;
  min-width:0;
}
.dashboard-target-card>.dashboard-target-main{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}
.dashboard-target-card .dashboard-target-detail{
  display:flex;
  flex:1 1 auto;
  flex-direction:column;
  align-items:flex-start;
  gap:2px;
  min-width:0;
}
.dashboard-target-card .dashboard-target-detail>b{
  display:block!important;
  min-height:0!important;
  margin:0!important;
  font-size:13px!important;
  font-weight:850;
  line-height:1.25!important;
  color:#12274b;
  overflow-wrap:anywhere;
}
.dashboard-target-card .dashboard-target-detail>small{
  display:block!important;
  margin:0!important;
  font-size:11px!important;
  line-height:1.3!important;
  color:#697c97;
}
.dashboard-target-card .dashboard-target-start{
  flex:0 0 auto;
  align-self:center!important;
  justify-self:auto!important;
  margin:0!important;
  min-width:74px;
  min-height:34px!important;
  padding:7px 10px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center;
}
/* 'Practice' needs a little extra width inside the learner lists; Resume remains orange. */
.available .test-start-cell a.practice-test-btn{
  min-width:80px!important;
  width:80px!important;
  max-width:80px!important;
  padding-left:6px!important;
  padding-right:6px!important;
  white-space:nowrap!important;
}
@media(max-width:700px){
  .available .test-start-cell a.practice-test-btn{min-width:78px!important;width:78px!important;max-width:78px!important}
}

/* HAPPY built-in Mangal fallback: overlay only, NEVER add a row above the editor. */
#happyLayoutField[hidden], #happyKeyboardMount:empty {display:none!important}
#exam .happy-footer-left{display:flex;align-items:center;justify-content:flex-start;gap:7px;min-width:0}
#exam .happy-footer-left > #saveExit{flex:0 0 auto}
#exam .happy-keyboard-mount{flex:0 1 auto;min-width:0}
#exam .happy-keyboard-mount .saral-vkbd{border:1px solid #c9dafa;border-radius:8px;background:#f5f9ff;color:#17345a;padding:5px 8px;max-width:100%}
#exam .happy-keyboard-mount .saral-vkbd summary{cursor:pointer;font-size:11px;font-weight:800;white-space:nowrap;line-height:1.4}
#exam .happy-keyboard-mount .saral-vkbd[open]{position:absolute;bottom:calc(100% + 6px);left:0;z-index:60;width:min(760px,calc(100vw - 24px));max-height:min(60vh,520px);overflow:auto;box-shadow:0 8px 25px rgba(24,55,105,.18)}
#exam .happy-keyboard-mount .saral-vkbd p{font-size:11px;margin:7px 0;line-height:1.45}
#exam .happy-keyboard-mount .saral-vkbd-grid{overflow-x:auto;max-width:100%;padding:4px 0}
#exam .happy-keyboard-mount .saral-vkbd-row{display:flex;gap:3px;min-width:570px;margin-bottom:4px}
#exam .happy-keyboard-mount .saral-vkbd-key{min-width:0;flex:1;display:flex;flex-direction:column;align-items:center;justify-content:space-around;padding:3px 0;min-height:45px;background:white;color:#143e72;border:1px solid #c5d7ee;border-radius:5px;cursor:pointer}
#exam .happy-keyboard-mount .saral-vkbd-key b{font-size:16px;line-height:1.25}
#exam .happy-keyboard-mount .saral-vkbd-key small{font-size:10px}
#exam .happy-keyboard-mount .saral-vkbd-tools{display:flex;gap:5px;flex-wrap:wrap}
#exam .happy-keyboard-mount .saral-vkbd-tools button{font-size:11px;padding:5px 8px;border:1px solid #c6d5f1;border-radius:6px;background:white;color:#184b88;cursor:pointer}
#exam .happy-keyboard-mount .saral-vkbd-tools button[aria-pressed="true"]{background:#dbeaff}
@media(max-width:720px){#exam .happy-footer-left{flex-wrap:wrap}#exam .happy-keyboard-mount .saral-vkbd[open]{width:calc(100vw - 20px);left:0}}
/* Keep the footer's geometry constant while the optional keyboard overlay is open. */
#exam .happy-keyboard-mount:not(:empty){display:flex;align-items:center;min-height:36px;height:36px}

/* Read-only Raw/Master/User diagnostics; isolated from exam forms and score UI. */
.computer-reference-delta{line-height:1.55}
.computer-reference-delta h3{margin:0 0 8px;font-size:1.12rem}
.computer-reference-stats{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.computer-reference-stats span{padding:6px 10px;border-radius:9px;border:1px solid #cbd5e1;background:#f8fafc;color:#334155}
.computer-reference-list{margin:10px 0;padding:10px;border:1px solid #e2e8f0;border-radius:10px}
.computer-reference-list summary{cursor:pointer;font-weight:700}
.computer-reference-list .table-wrap{overflow-x:auto;margin-top:8px}
.computer-reference-list table{min-width:620px;width:100%;border-collapse:collapse;font-size:.88rem}
.computer-reference-list th,.computer-reference-list td{padding:9px;border-bottom:1px solid #e2e8f0;vertical-align:top;overflow-wrap:anywhere}
.computer-reference-delta p{margin:10px 0}

/* Word-change scoring: isolated to the new change ledger, not old results or exam pages. */
.computer-change-list th,.computer-change-list td{white-space:normal;vertical-align:top;line-height:1.5}
.computer-change-list .change-hit td:first-child{border-left:3px solid #16a34a}
.computer-change-list .change-miss td:first-child{border-left:3px solid #dc2626}
.computer-change-list td:nth-last-child(1){white-space:nowrap;font-variant-numeric:tabular-nums}
/* HAPPY Word change-mode: one readable five-column marks list only. */
.computer-change-simple{width:100%;table-layout:fixed}
.computer-change-simple th:first-child,.computer-change-simple td:first-child{width:9%;white-space:nowrap}
.computer-change-simple th:nth-child(2){width:29%}
.computer-change-simple th:nth-child(3),.computer-change-simple th:nth-child(4){width:25%}
.computer-change-simple th:last-child,.computer-change-simple td:last-child{width:12%}
.computer-change-simple .change-simple-target strong{display:block;font-weight:800;overflow-wrap:anywhere}
.computer-change-simple .change-simple-target small,.computer-change-simple .change-simple-caution{display:block;color:#63748c;font-size:.78rem;line-height:1.35;margin-top:3px;overflow-wrap:anywhere}
.computer-change-simple .change-simple-state{font-weight:700;overflow-wrap:anywhere}
.computer-change-simple .change-miss .change-simple-state{color:#b42318}
.computer-change-simple .change-hit .change-simple-state{color:#167347}
/* Word result only: attempted-but-wrong is blue; not-attempted is red. */
.result-summary-table.result-primary-summary th.result-change-wrong-count,
.result-summary-table.result-primary-summary td.result-change-wrong-count{color:#2563eb!important}
.result-summary-table.result-primary-summary th.result-change-missing-count,
.result-summary-table.result-primary-summary td.result-change-missing-count{color:#dc2626!important}
.computer-change-simple .change-miss.change-wrong .change-simple-state{color:#2563eb}
.computer-change-simple .change-miss.change-missing .change-simple-state{color:#dc2626}
.computer-change-list .change-miss.change-wrong td:first-child{border-left-color:#2563eb}
.computer-change-list .change-miss.change-missing td:first-child{border-left-color:#dc2626}
@media(max-width:650px){.computer-change-simple{min-width:660px}}
