/* OMI Pro 17 — single responsive layout contract */
:root{
  --omi-header:64px;--omi-nav:68px;--omi-safe-top:env(safe-area-inset-top,0px);--omi-safe-bottom:env(safe-area-inset-bottom,0px);
  --omi-green:#075f4d;--omi-green-2:#0a765e;--omi-ink:#172a22;--omi-muted:#5f7269;--omi-line:#d9e5df;--omi-soft:#edf6f2;--omi-panel:#fff;
  --omi-shadow:0 14px 36px rgba(16,53,43,.12);--omi-ease:cubic-bezier(.22,.8,.22,1)
}
html{max-width:100%;overflow-x:hidden;scroll-padding-top:calc(var(--omi-header) + var(--omi-safe-top) + 14px);-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.omi-layout{max-width:100%;min-height:100svh;margin:0;padding:calc(var(--omi-header) + var(--omi-safe-top)) 0 calc(var(--omi-nav) + var(--omi-safe-bottom) + 14px)!important;overflow-x:hidden!important;background:#f4f7f6;color:var(--omi-ink);touch-action:pan-y;-webkit-overflow-scrolling:touch}
body.omi-layout main,body.omi-layout .screen,body.omi-layout .wrap,body.omi-layout .shell{min-width:0;max-width:100%}
body.omi-layout img,body.omi-layout svg{max-width:100%;height:auto}
body.omi-layout input,body.omi-layout select,body.omi-layout textarea{max-width:100%;font-size:16px}
body.omi-layout [hidden]{display:none!important}

/* One global header. */
#omi-fixed-header{position:fixed!important;inset:0 0 auto!important;z-index:1000!important;height:calc(var(--omi-header) + var(--omi-safe-top))!important;padding:var(--omi-safe-top) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left))!important;display:flex!important;align-items:center!important;gap:8px!important;background:rgba(255,255,255,.98)!important;border:0!important;border-bottom:1px solid var(--omi-line)!important;box-shadow:0 4px 18px rgba(18,55,45,.06)!important;color:var(--omi-ink)!important;font:700 14px/1.2 Inter,system-ui,sans-serif!important;transform:none!important;contain:none!important}
#omi-fixed-header a,#omi-fixed-header button,#omi-fixed-header summary{min-width:44px;min-height:44px;border:0;border-radius:13px;display:flex;align-items:center;justify-content:center;color:inherit;background:transparent;text-decoration:none;cursor:pointer}
#omi-fixed-header svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#omi-fixed-header .omi-brand-link{min-width:0;gap:9px;justify-content:flex-start;padding:0 4px;color:var(--omi-green)}
#omi-fixed-header .omi-brand-link img{width:34px;height:34px;border-radius:10px;flex:none}
#omi-fixed-header .omi-page-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#40584e;font-size:13px;text-align:center}
#omi-fixed-header .omi-back,#omi-fixed-header .omi-sound-toggle,#omi-fixed-header .omi-menu-toggle,#omi-fixed-header .omi-page-options summary{background:var(--omi-soft);color:var(--omi-green)}
#omi-fixed-header .omi-sound-toggle[aria-pressed="false"]{color:#687a72}
body.omi-layout .omi-old-header,body.omi-layout>.app-header,body.omi-layout>.topbar{display:none!important}
body.omi-layout>.omi-bottom-nav,body.omi-layout>.omi-admin-nav,body.omi-layout>.omi-app-bar{display:none!important}

/* Four stable destinations; details live in the menu drawer. */
.omi-primary-nav{position:fixed;z-index:990;inset:auto 0 0;height:calc(var(--omi-nav) + var(--omi-safe-bottom));padding:5px max(8px,env(safe-area-inset-right)) var(--omi-safe-bottom) max(8px,env(safe-area-inset-left));display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border-top:1px solid var(--omi-line);box-shadow:0 -8px 26px rgba(16,53,43,.08)}
.omi-primary-nav a{position:relative;overflow:hidden;min-width:0;min-height:54px;border-radius:14px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#5c7067;text-decoration:none;font:700 11px/1 system-ui;transition:background .16s var(--omi-ease),color .16s var(--omi-ease),transform .12s var(--omi-ease)}
.omi-primary-nav a[aria-current="page"]{background:var(--omi-soft);color:var(--omi-green)}
.omi-primary-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* Side drawer with four purposeful groups. */
.omi-drawer{position:fixed;inset:0 auto 0 0;margin:0;width:min(390px,92vw);height:100dvh;max-height:100dvh;padding:0 16px calc(24px + var(--omi-safe-bottom));border:0;border-right:1px solid var(--omi-line);background:#fff;color:var(--omi-ink);box-shadow:18px 0 60px rgba(7,40,31,.24);overflow-y:auto;overscroll-behavior:contain;font:14px/1.45 system-ui}
.omi-drawer::backdrop{background:rgba(9,31,25,.48)}
.omi-drawer-head{position:sticky;top:0;z-index:2;min-height:70px;padding:11px 0;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid #eef2f0}
.omi-drawer-head>div{display:grid}.omi-drawer-head small{font-size:10px;letter-spacing:.13em;color:var(--omi-green);font-weight:900}.omi-drawer-head strong{font-size:20px}
.omi-drawer-head button{width:44px;height:44px;border:0;border-radius:13px;background:var(--omi-soft);color:var(--omi-green);font-size:26px;cursor:pointer}
.omi-menu-search-label{display:grid;gap:6px;margin:14px 0 10px;font-weight:750;color:#435c51}.omi-drawer-search{width:100%;min-height:46px;margin:0!important;padding:10px 12px!important;border:1px solid #b9cec2!important;border-radius:12px!important;background:#fff!important;color:var(--omi-ink)!important}
.omi-menu-section{padding:10px 0;border-top:1px solid #e7eeea}.omi-menu-section h2{margin:2px 5px 7px;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#6a7d74}.omi-menu-section>div{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.omi-menu-section a{position:relative;overflow:hidden;min-height:48px;padding:10px 11px;border-radius:11px;display:flex;align-items:center;color:#233d32;text-decoration:none;font-weight:670;background:#f7f9f8;border:1px solid transparent}.omi-menu-section a[aria-current="page"]{background:var(--omi-soft);color:var(--omi-green);border-color:#cee3d9}.omi-menu-empty{padding:18px;text-align:center;color:var(--omi-muted)}
body.omi-drawer-open{overflow:hidden!important}

/* Page options remain secondary and never replace primary navigation. */
.omi-page-options{position:relative}.omi-page-options summary{list-style:none;font-size:25px}.omi-page-options summary::-webkit-details-marker{display:none}
.omi-options-panel{position:fixed;z-index:1100;top:calc(var(--omi-header) + var(--omi-safe-top) + 7px);right:10px;width:min(360px,calc(100vw - 20px));max-height:calc(100dvh - var(--omi-header) - 28px);padding:12px;overflow:auto;overscroll-behavior:contain;border:1px solid #c9dad1;border-radius:16px;background:#fff;color:var(--omi-ink);box-shadow:var(--omi-shadow)}
.omi-options-panel>*{position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-wrap:wrap!important;gap:7px!important;width:100%!important}.omi-options-panel a,.omi-options-panel button,.omi-options-panel label{min-height:44px!important;max-width:100%;height:auto!important;color:var(--omi-ink)!important;background:var(--omi-soft)!important;white-space:normal!important}

/* Consistent touch affordance and subtle click wave. */
body.omi-layout button,body.omi-layout a,body.omi-layout summary,body.omi-layout .option,body.omi-layout .mode-card{position:relative;overflow:hidden;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
body.omi-layout button:active,body.omi-layout a:active,body.omi-layout .option:active,body.omi-layout .mode-card:active{transform:scale(.985)}
.omi-touch-wave{position:absolute;z-index:3;width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;pointer-events:none;background:currentColor;opacity:.14;animation:omi-wave .48s ease-out forwards}
@keyframes omi-wave{to{transform:scale(18);opacity:0}}
:focus-visible{outline:3px solid rgba(8,100,81,.25)!important;outline-offset:2px!important}

/* Feedback. */
.omi-toast-stack{position:fixed;z-index:1200;right:12px;bottom:calc(var(--omi-nav) + var(--omi-safe-bottom) + 12px);width:min(360px,calc(100vw - 24px));display:grid;gap:8px;pointer-events:none}
.omi-toast{padding:12px 14px;border-radius:13px;background:#153d33;color:#fff;box-shadow:var(--omi-shadow);font:700 13px/1.45 system-ui;animation:omi-toast-in .2s var(--omi-ease)}.omi-toast.warn{background:#6b4c12}@keyframes omi-toast-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Simple directory pages. */
.omi-directory{width:min(1120px,100%);margin:auto;padding:clamp(18px,4vw,42px) clamp(12px,3vw,26px);font:16px/1.5 system-ui}.omi-directory h1{margin:0 0 6px;font-size:clamp(1.8rem,4vw,2.7rem);letter-spacing:-.035em}.omi-directory>p{margin:0 0 22px;color:var(--omi-muted)}.menu-group{margin:24px 0}.menu-group h2{margin:0 0 10px;font-size:17px}.menu-grid-new{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:9px}.menu-grid-new a{min-height:58px;padding:12px 15px;display:flex;align-items:center;justify-content:space-between;border:1px solid var(--omi-line);border-radius:13px;background:#fff;color:#183e30;text-decoration:none;font-weight:700}.menu-search-label{display:grid;gap:6px;max-width:580px;font-size:14px;font-weight:700}.menu-search-label input{width:100%;padding:12px;border:1px solid #b8cdc1;border-radius:11px}
.omi-home{padding-top:clamp(24px,6vw,68px)}.home-kicker{display:inline-block;margin-bottom:10px;color:var(--omi-green);font-size:12px;font-weight:900;letter-spacing:.11em;text-transform:uppercase}.omi-home h1{max-width:760px;font-size:clamp(2.15rem,6vw,4.5rem);line-height:1.02}.home-focus{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:30px 0}.home-focus-card{position:relative;min-height:210px;padding:24px;border-radius:24px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:1fr auto;gap:14px 17px;color:#fff;text-decoration:none;box-shadow:0 20px 48px rgba(15,60,48,.16)}.home-focus-card.learn{background:linear-gradient(145deg,#075f4d,#0a8065)}.home-focus-card.exam{background:linear-gradient(145deg,#234b70,#336d99)}.home-card-icon{width:54px;height:54px;border-radius:17px;display:grid;place-items:center;background:#ffffff20;border:1px solid #ffffff35;font-size:25px;font-weight:900}.home-focus-card>span:nth-child(2){display:flex;flex-direction:column}.home-focus-card small{font-size:11px;letter-spacing:.1em;opacity:.74;font-style:normal}.home-focus-card strong{margin:5px 0;font-size:clamp(1.45rem,3vw,2rem)}.home-focus-card em{max-width:42ch;font-size:14px;line-height:1.5;opacity:.86;font-style:normal}.home-focus-card>b{grid-column:2;align-self:end;justify-self:start;padding:9px 13px;border-radius:11px;background:#fff;color:#153b31}.home-secondary{margin-top:28px}.home-secondary h2{font-size:18px}

/* Direct learning route: subject is already chosen; no competing modes. */
body.omi-practice-start #welcomeScreen .mode-cards,body.omi-practice-start #welcomeScreen .overview,body.omi-practice-start #welcomeScreen .hero-main,body.omi-practice-start #welcomeScreen .start-card>a,body.omi-practice-start #welcomeScreen #modeInfo{display:none!important}
body.omi-practice-start #welcomeScreen .hero{display:block!important}body.omi-practice-start #welcomeScreen .start-card{width:min(620px,100%);margin:auto!important}body.omi-practice-start #welcomeScreen .start-card>h3{font-size:clamp(1.45rem,5vw,2rem)!important;margin:0 0 6px!important}body.omi-practice-start #welcomeScreen .start-card>h3::after{content:"Pilih identitas, lalu mulai belajar bertahap.";display:block;margin-top:6px;color:var(--omi-muted);font-size:14px;font-weight:500}

/* Guided tutor: one visible step, clear checks, no nested competing panels. */
.guided-tutor{margin:18px 0;border:1px solid #d6e4dc;border-radius:17px;background:#fff;overflow:hidden}.guided-head{padding:14px 15px;background:#edf6f1;display:flex;justify-content:space-between;gap:10px}.guided-head h3{margin:0;font-size:17px}.guided-body{padding:15px}.guided-body h4{margin:0 0 9px;font-size:17px}.guided-body p{line-height:1.58}.guided-body label{display:block;margin:10px 0;font-size:14px}.guided-body input,.guided-body textarea{width:100%;min-height:46px;padding:10px;border:1px solid #b9cdbf;border-radius:10px}.guided-body textarea{min-height:96px}.guided-body button{min-height:44px;margin:6px 6px 0 0;padding:10px 14px;border:1px solid #c7dbd0;border-radius:10px;background:#edf6f0;color:var(--omi-green);font-weight:700;cursor:pointer}.guided-body .guided-primary{background:var(--omi-green);color:#fff}.guided-feedback,.guided-source{padding:11px 12px;border-radius:10px;background:#fff7df;line-height:1.5}.guided-history{padding:10px 14px;border-bottom:1px solid #e2ebe5;font-size:14px}.guided-final{padding:15px;background:#edf6f0}.guided-check{display:flex!important;gap:9px;align-items:center}.guided-check input{width:20px;min-height:20px}

/* Exam: retain one vertical scroller and keep a visible exit route. */
body.omi-layout.omi-exam-active,body.omi-layout.omi-secure-exam{padding-bottom:0!important}
body.omi-layout.omi-exam-active .omi-primary-nav,body.omi-layout.omi-secure-exam .omi-primary-nav{display:none!important}
body.omi-layout .q-nav{z-index:940!important}.table-scroll,.table-wrap{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.stimulus,.prompt,.source-card,.question-card{max-width:100%;overflow-wrap:anywhere}

@media(max-width:760px){
  #omi-fixed-header{gap:5px!important}#omi-fixed-header .omi-brand-link span{display:none}#omi-fixed-header .omi-page-name{text-align:left;font-size:13px}#omi-fixed-header .omi-page-options summary,#omi-fixed-header .omi-back,#omi-fixed-header .omi-sound-toggle,#omi-fixed-header .omi-menu-toggle{width:42px;min-width:42px}
  .omi-menu-section>div{grid-template-columns:1fr 1fr}.menu-grid-new{grid-template-columns:1fr 1fr}.menu-grid-new a{min-width:0;min-height:62px;padding:11px;font-size:13px;overflow-wrap:anywhere}
  body.omi-layout main,body.omi-layout main>.screen,body.omi-layout .omi-main,body.omi-layout .omi-container{width:100%!important;max-width:100%!important}
  body.omi-layout main{padding-inline:10px!important}body.omi-layout main>.screen{padding-inline:0!important}.omi-directory{padding-inline:12px!important}
  body.omi-layout .hero{display:block!important;gap:12px!important}body.omi-layout .hero-main{min-height:0!important;margin-bottom:12px!important;padding:16px!important;border-radius:16px!important}body.omi-layout .hero-main h1,body.omi-layout .hero-main h2{font-size:24px!important;line-height:1.2!important}
  body.omi-layout .start-card,body.omi-layout .question-card{padding:14px!important;border-radius:16px!important;box-shadow:none!important}body.omi-layout .fields,body.omi-layout .field-grid,body.omi-layout .student-picker{grid-template-columns:1fr!important}
  body.omi-layout .stats,body.omi-layout .badges,body.omi-layout .omi-hero-side{display:none!important}.omi-toast-stack{bottom:calc(var(--omi-nav) + var(--omi-safe-bottom) + 10px)}
  .home-focus{grid-template-columns:1fr;margin-top:22px}.home-focus-card{min-height:168px;padding:18px;border-radius:19px}.omi-home h1{font-size:clamp(2rem,10vw,3rem)}
  body.omi-layout.omi-exam-active .screen.active,body.omi-layout.omi-secure-exam .screen.active{height:auto!important;max-height:none!important;overflow:visible!important}body.omi-layout.omi-exam-active .exam-layout.active,body.omi-layout.omi-secure-exam .exam-layout.active{height:auto!important;display:block!important;padding:8px 8px calc(76px + var(--omi-safe-bottom))!important}body.omi-layout.omi-exam-active .exam-main,body.omi-layout.omi-secure-exam .exam-main{height:auto!important;display:block!important;overflow:visible!important}body.omi-layout.omi-exam-active .question-card,body.omi-layout.omi-secure-exam .question-card{height:auto!important;overflow:visible!important}
  body.omi-layout .exam-layout .sidebar{position:fixed!important;inset:calc(var(--omi-header) + var(--omi-safe-top) + 7px) 8px 8px!important;width:auto!important;height:auto!important;max-height:none!important;overflow-y:auto!important;z-index:970!important;padding:12px 12px calc(18px + var(--omi-safe-bottom))!important;border-radius:16px!important}.omi-palette-open{overflow:hidden!important}.omi-palette-open .q-nav{visibility:hidden!important}
}
@media(max-width:380px){.omi-menu-section>div,.menu-grid-new{grid-template-columns:1fr}#omi-fixed-header .omi-sound-toggle{display:none}}
@media(min-width:900px){
  body.omi-layout{padding-top:calc(var(--omi-header) + 54px + var(--omi-safe-top))!important;padding-bottom:24px!important}.omi-primary-nav{top:calc(var(--omi-header) + var(--omi-safe-top));bottom:auto;height:54px;padding:4px max(20px,calc((100vw - 820px)/2));border-top:0;border-bottom:1px solid var(--omi-line);box-shadow:none}.omi-primary-nav a{min-height:44px;flex-direction:row;gap:8px;font-size:13px}.omi-primary-nav svg{width:19px;height:19px}.omi-toast-stack{bottom:18px}
}
@media(hover:hover){.omi-primary-nav a:hover,.omi-menu-section a:hover,.menu-grid-new a:hover{background:#e8f4ee;color:var(--omi-green)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}}
@media print{#omi-fixed-header,.omi-primary-nav,.omi-drawer,.omi-options-panel{display:none!important}body.omi-layout{padding:0!important}}

/* ======================================================================
   OMI Pro 18 — Mobile-first system layer
   This block is intentionally last: it normalizes legacy page generations
   without changing assessment, authentication, scoring, or server logic.
   ====================================================================== */
:root{
  --omi-header:60px;
  --omi-nav:68px;
  --omi-page:16px;
  --omi-section:24px;
  --omi-radius-sm:12px;
  --omi-radius:16px;
  --omi-radius-lg:20px;
  --omi-green:#075f4d;
  --omi-green-2:#0b725d;
  --omi-green-3:#eaf5f0;
  --omi-blue:#285f8a;
  --omi-blue-soft:#edf4fa;
  --omi-gold:#a97418;
  --omi-gold-soft:#fff5df;
  --omi-bg:#f5f7f6;
  --omi-panel:#ffffff;
  --omi-ink:#17271f;
  --omi-muted:#617169;
  --omi-line:#dbe4df;
  --omi-line-strong:#c5d3cc;
  --omi-danger:#a33f42;
  --omi-danger-soft:#fff0f1;
  --omi-warning:#8c641a;
  --omi-warning-soft:#fff7e4;
  --omi-success:#08704b;
  --omi-success-soft:#eaf7f1;
  --omi-shadow-sm:0 4px 14px rgba(14,54,43,.055);
  --omi-shadow:0 14px 36px rgba(14,54,43,.10);
  --omi-ease:cubic-bezier(.22,.78,.24,1);
  --omi-keyboard:0px;
}

html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;scroll-behavior:smooth}
body.omi-layout{font:400 16px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;background:var(--omi-bg)!important;color:var(--omi-ink)!important;padding-bottom:calc(var(--omi-nav) + var(--omi-safe-bottom) + 10px + var(--omi-keyboard))!important}
body.omi-layout *{box-sizing:border-box}
body.omi-layout p{line-height:1.55}
body.omi-layout h1,body.omi-layout h2,body.omi-layout h3{overflow-wrap:anywhere;color:var(--omi-ink)}
body.omi-layout h1{font-size:clamp(1.72rem,7vw,2.35rem);line-height:1.12;letter-spacing:-.035em}
body.omi-layout h2{font-size:clamp(1.15rem,4vw,1.45rem);line-height:1.2;letter-spacing:-.018em}
body.omi-layout h3{font-size:1rem;line-height:1.3}
body.omi-layout a{color:inherit}
body.omi-layout img{object-fit:contain}
body.omi-layout main{isolation:isolate}
body.omi-layout main.omi-enter{opacity:0;transform:translateY(10px)}
body.omi-layout main.omi-enter.omi-entered{opacity:1;transform:none;transition:opacity .36s var(--omi-ease),transform .36s var(--omi-ease)}

/* One stable app bar. */
#omi-fixed-header{height:calc(var(--omi-header) + var(--omi-safe-top))!important;padding-left:max(10px,env(safe-area-inset-left))!important;padding-right:max(10px,env(safe-area-inset-right))!important;gap:6px!important;background:#fffffff7!important;backdrop-filter:saturate(120%) blur(12px);-webkit-backdrop-filter:saturate(120%) blur(12px);box-shadow:none!important}
#omi-fixed-header .omi-brand-link{flex:0 0 auto!important;min-width:42px!important;max-width:138px!important}
#omi-fixed-header .omi-brand-link img{width:32px!important;height:32px!important;border-radius:10px!important}
#omi-fixed-header .omi-brand-link span{font-size:14px;font-weight:900;white-space:nowrap}
#omi-fixed-header .omi-page-name{font-size:13px!important;text-align:left!important;font-weight:800!important;color:#41554c!important}
#omi-fixed-header .omi-back,#omi-fixed-header .omi-sound-toggle,#omi-fixed-header .omi-menu-toggle,#omi-fixed-header .omi-page-options summary{width:44px;min-width:44px;height:44px;min-height:44px;border-radius:13px!important;background:#eef4f1!important}
#omi-fixed-header .omi-page-options summary{font-size:18px!important;letter-spacing:.08em}

/* Bottom navigation is flat and stable, never a floating decorative island. */
.omi-primary-nav{height:calc(var(--omi-nav) + var(--omi-safe-bottom));padding:4px max(6px,env(safe-area-inset-right)) var(--omi-safe-bottom) max(6px,env(safe-area-inset-left));box-shadow:0 -4px 18px rgba(16,53,43,.055)!important}
.omi-primary-nav a{min-height:56px;border-radius:13px;font-size:11px;font-weight:750}
.omi-primary-nav a[aria-current="page"]{background:#edf5f1;color:var(--omi-green)}
.omi-primary-nav svg{width:20px;height:20px}

/* Drawer: one overlay at a time, simple grouped destinations. */
.omi-drawer{inset:0 0 0 auto!important;width:min(370px,94vw)!important;border:0!important;border-left:1px solid var(--omi-line)!important;border-radius:18px 0 0 18px!important;padding:0 14px calc(22px + var(--omi-safe-bottom))!important;box-shadow:-20px 0 60px rgba(8,35,27,.22)!important;transform:none!important}
.omi-drawer::backdrop{background:rgba(10,31,25,.42)}
.omi-drawer-head{padding:calc(10px + var(--omi-safe-top)) 2px 10px!important;min-height:calc(64px + var(--omi-safe-top))!important}
.omi-drawer-head small{font-size:10px!important}.omi-drawer-head strong{font-size:19px!important}.omi-drawer-head button{display:grid;place-items:center;width:44px;height:44px;padding:0!important}.omi-drawer-head button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2}
.omi-menu-section{padding:14px 0 5px!important}.omi-menu-section h2{margin:0 4px 8px!important;font-size:11px!important}.omi-menu-section>div{grid-template-columns:1fr!important;gap:6px!important}.omi-menu-section a{min-height:48px!important;padding:11px 12px!important;border-radius:12px!important;background:#f7f9f8!important;font-size:14px!important}.omi-menu-section a[aria-current="page"]{background:var(--omi-green-3)!important}

/* Reusable page shell and headings. */
.omi-page-shell,.omi-directory,body.omi-layout>.wrap,body.omi-layout>.shell,body.omi-layout>.archive-main,body.omi-layout>.guidance-main,body.omi-layout main.wrap{width:min(920px,100%)!important;margin:0 auto!important;padding:20px var(--omi-page) 28px!important}
.page-kicker,.home-kicker{display:inline-block;color:var(--omi-green)!important;font-size:11px!important;font-weight:900!important;letter-spacing:.11em!important;text-transform:uppercase!important}
.section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 10px}.section-heading h2{margin:0 0 3px!important}.section-heading p{margin:0!important;color:var(--omi-muted)!important;font-size:13px}.section-heading .text-link,.text-link{min-height:44px;display:inline-flex;align-items:center;color:var(--omi-green)!important;text-decoration:none;font-size:13px;font-weight:850;white-space:nowrap}

/* Universal surfaces. */
body.omi-layout .card,body.omi-layout .omi-card,body.omi-layout .panel,body.omi-layout .result-card,body.omi-layout .pick-card,body.omi-layout .question-card,body.omi-layout .manual-card{border:1px solid var(--omi-line)!important;border-radius:var(--omi-radius)!important;background:var(--omi-panel)!important;box-shadow:none!important}
body.omi-layout .btn,body.omi-layout .omi-btn,body.omi-layout button.primary-btn,body.omi-layout .primary-btn{min-height:48px;border-radius:13px!important;padding:11px 15px!important;font:800 14px/1.2 inherit!important;display:inline-flex;align-items:center;justify-content:center;gap:7px}
body.omi-layout .btn.primary,body.omi-layout .omi-btn.primary,body.omi-layout .primary-btn{background:var(--omi-green)!important;color:#fff!important;border-color:var(--omi-green)!important}
body.omi-layout .btn.soft,body.omi-layout .omi-btn.soft,body.omi-layout .secondary-btn{background:#fff!important;color:var(--omi-green)!important;border:1px solid var(--omi-line)!important}
body.omi-layout .btn.danger,body.omi-layout .danger{background:var(--omi-danger-soft)!important;color:var(--omi-danger)!important;border:1px solid #ecc9cb!important}
body.omi-layout input:not([type="checkbox"]):not([type="radio"]),body.omi-layout select,body.omi-layout textarea{width:100%;min-height:48px;padding:11px 12px!important;border:1px solid var(--omi-line-strong)!important;border-radius:12px!important;background:#fff!important;color:var(--omi-ink)!important;box-shadow:none!important;outline:none}
body.omi-layout textarea{min-height:96px;resize:vertical}
body.omi-layout input:focus,body.omi-layout select:focus,body.omi-layout textarea:focus{border-color:#78a99a!important;box-shadow:0 0 0 3px #dceee7!important}
body.omi-layout label{font-size:13px;font-weight:750;color:#3e544a}
body.omi-layout table{border-collapse:collapse;width:100%}
body.omi-layout th,body.omi-layout td{padding:10px 11px;border-bottom:1px solid var(--omi-line);text-align:left;vertical-align:top}
body.omi-layout th{font-size:12px;color:var(--omi-muted)}

/* Mobile home: compact, calm, no redundant hero. */
.omi-home{padding-top:24px!important}.home-intro{max-width:650px}.omi-home h1{max-width:620px;margin:5px 0 8px!important;font-size:clamp(2rem,10vw,3.1rem)!important;line-height:1.04!important}.home-intro>p{margin:0;color:var(--omi-muted);max-width:54ch}
.home-focus{grid-template-columns:1fr 1fr;gap:12px;margin:24px 0!important}.home-focus-card{min-height:178px!important;padding:18px!important;border-radius:var(--omi-radius-lg)!important;grid-template-columns:46px 1fr!important;gap:10px 13px!important;box-shadow:none!important}.home-focus-card.learn{background:#086451!important}.home-focus-card.exam{background:#2c638f!important}.home-card-icon{width:46px!important;height:46px!important;border-radius:14px!important;font-size:21px!important}.home-focus-card small{font-size:10px!important}.home-focus-card strong{font-size:1.3rem!important}.home-focus-card em{font-size:13px!important;line-height:1.45!important}.home-focus-card>b{padding:8px 11px!important;border-radius:10px!important;font-size:13px!important}.home-secondary{margin-top:24px!important}.home-secondary h2{margin:0 0 9px!important}.compact-links a span:first-child{display:grid;gap:2px}.compact-links a strong{font-size:14px}.compact-links a small{font-size:12px;color:var(--omi-muted);font-weight:500}

/* Sitemap fallback. */
.omi-menu-page>h1{margin:4px 0 6px}.omi-menu-page>p{max-width:62ch}.menu-group{margin:24px 0!important}.menu-group h2{font-size:14px!important;margin-bottom:8px!important}.menu-grid-new{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}.menu-grid-new a{min-height:70px!important;padding:12px!important;border-radius:14px!important;align-items:center!important;gap:10px!important;background:#fff!important}.menu-grid-new a>span:first-child{min-width:0;display:grid;gap:2px}.menu-grid-new a strong{font-size:14px}.menu-grid-new a small{font-size:11.5px;line-height:1.35;color:var(--omi-muted);font-weight:500}

/* Learning centre. */
.guidance-main{display:grid;gap:var(--omi-section)}.guidance-hero{max-width:680px;padding:0!important;background:none!important;border:0!important}.guidance-hero h1{margin:5px 0 8px!important}.guidance-hero p{margin:0;color:var(--omi-muted);max-width:58ch}.subject-section,.guidance-method{margin:0!important}.guidance-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}.guidance-card{min-width:0!important;min-height:176px!important;padding:16px!important;border:1px solid var(--omi-line)!important;border-radius:var(--omi-radius)!important;background:#fff!important;color:var(--omi-ink)!important;text-decoration:none!important;display:grid!important;grid-template-columns:42px 1fr!important;grid-template-rows:1fr auto!important;gap:10px 12px!important;box-shadow:none!important}.guidance-card .subject-mark{width:42px!important;height:42px!important;border-radius:13px!important;display:grid!important;place-items:center!important;background:var(--omi-green-3)!important;color:var(--omi-green)!important;font-size:20px!important;font-weight:900!important}.guidance-card small{font-size:10px!important;color:var(--omi-green)!important;font-weight:900!important;letter-spacing:.08em}.guidance-card h3{margin:2px 0 4px!important}.guidance-card p{margin:0!important;font-size:12.5px!important;color:var(--omi-muted)!important}.guidance-card>b{grid-column:2;color:var(--omi-green);font-size:13px}.step-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;counter-reset:guide}.step-list li{counter-increment:guide;min-height:92px;padding:13px;border:1px solid var(--omi-line);border-radius:14px;background:#fff;display:grid;grid-template-columns:28px 1fr;align-content:start;gap:2px 8px}.step-list li:before{content:counter(guide);grid-row:1/3;width:28px;height:28px;border-radius:9px;background:var(--omi-green-3);color:var(--omi-green);display:grid;place-items:center;font-size:12px;font-weight:900}.step-list b{font-size:13px}.step-list span{font-size:12px;color:var(--omi-muted)}

/* Portal panitia. */
.admin-portal{display:grid;gap:var(--omi-section)}.admin-portal>.top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0!important}.admin-portal>.top h1{margin:0;font-size:1.4rem}.admin-portal>.top small{color:var(--omi-muted)}.admin-portal .logout{min-height:44px;padding:9px 12px;border:1px solid var(--omi-line);border-radius:12px;background:#fff;text-decoration:none;font-size:13px;font-weight:800}.portal-intro{padding:19px;border-radius:var(--omi-radius-lg);background:var(--omi-green);color:#fff}.portal-intro .page-kicker{color:#bfe7d7!important}.portal-intro h2{color:#fff!important;margin:4px 0 5px;font-size:1.55rem}.portal-intro p{margin:0;max-width:62ch;opacity:.86;font-size:13px}.portal-primary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.portal-job{min-height:150px;padding:15px;border:1px solid var(--omi-line);border-radius:var(--omi-radius);background:#fff;text-decoration:none;display:grid;grid-template-columns:36px 1fr;grid-template-rows:1fr auto;gap:8px 10px}.job-index{width:36px;height:36px;border-radius:11px;background:var(--omi-green-3);color:var(--omi-green);display:grid;place-items:center;font-size:11px;font-weight:900}.portal-job>span:nth-child(2){display:grid;align-content:start;gap:3px}.portal-job strong{font-size:15px}.portal-job small{font-size:12px;color:var(--omi-muted)}.portal-job>b{grid-column:2;color:var(--omi-green);font-size:12px}.portal-section{margin:0}.portal-rows{display:grid;gap:7px}.portal-rows a{min-height:62px;padding:11px 13px;border:1px solid var(--omi-line);border-radius:13px;background:#fff;text-decoration:none;display:flex;align-items:center;justify-content:space-between;gap:10px}.portal-rows a>span:first-child{display:grid}.portal-rows strong{font-size:14px}.portal-rows small{font-size:11.5px;color:var(--omi-muted)}.portal-inline-links{display:flex;flex-wrap:wrap;gap:8px}.portal-inline-links a{min-height:44px;padding:10px 12px;border:1px solid var(--omi-line);border-radius:12px;background:#fff;text-decoration:none;font-size:13px;font-weight:750}

/* Student identity + progress. */
.student-shell,.progress-shell{display:grid;gap:var(--omi-section)}.student-intro,.progress-intro{max-width:680px}.student-intro h1,.progress-intro h1{margin:5px 0 8px}.student-intro p,.progress-intro p{margin:0;color:var(--omi-muted)}.student-login-main{margin-top:16px}.student-summary-grid,.progress-summary{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}.student-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.progress-stat{min-height:90px;padding:13px;border:1px solid var(--omi-line);border-radius:14px;background:#fff;display:flex;flex-direction:column;justify-content:space-between}.progress-stat span{font-size:12px;color:var(--omi-muted)}.progress-stat strong{font-size:1.45rem;color:var(--omi-green)}.progress-concepts,.student-concepts,.progress-recommendations{display:grid;gap:8px}.progress-item,.recommendation-item{padding:13px;border:1px solid var(--omi-line);border-radius:14px;background:#fff}.progress-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.progress-item-head>div{min-width:0;display:grid;gap:2px}.progress-item-head strong{font-size:13px;overflow-wrap:anywhere}.progress-item-head span{font-size:11.5px;color:var(--omi-muted)}.progress-value{font-size:13px;color:var(--omi-green);white-space:nowrap}.omi-progress{height:8px!important;margin-top:10px!important;border-radius:99px!important;background:#e7eeea!important;overflow:hidden}.omi-progress span{display:block;height:100%;width:var(--value,0%);background:var(--omi-green)!important;border-radius:inherit}.recommendation-item{display:grid;grid-template-columns:auto 1fr;gap:10px}.recommendation-subject{height:30px;padding:0 9px;border-radius:9px;background:var(--omi-blue-soft);color:var(--omi-blue);display:inline-flex;align-items:center;font-size:10px;font-weight:900;text-transform:uppercase}.recommendation-item strong{font-size:13px}.recommendation-item p{margin:2px 0 0;font-size:11.5px;color:var(--omi-muted)}
.omi-state-card{min-height:86px;padding:14px;border:1px dashed var(--omi-line-strong);border-radius:14px;background:#fafcfb;display:grid;grid-template-columns:36px 1fr;align-items:start;gap:10px}.state-mark{width:36px;height:36px;border-radius:11px;background:var(--omi-green-3);color:var(--omi-green);display:grid;place-items:center;font-weight:900}.omi-state-card strong{font-size:14px}.omi-state-card p{margin:2px 0 9px;font-size:12.5px;color:var(--omi-muted)}

/* Modal / keyboard-safe identity and confirmation dialogs. */
.omi-modal{width:min(440px,calc(100vw - 24px));max-height:min(720px,calc(100dvh - 24px - var(--omi-keyboard)));margin:auto;padding:0;border:0;border-radius:20px;background:#fff;color:var(--omi-ink);box-shadow:0 24px 70px rgba(8,35,27,.25);overflow:auto}.omi-modal::backdrop{background:rgba(9,31,25,.46)}.omi-modal form{padding:18px;display:grid;gap:12px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.modal-head h2{margin:3px 0 0}.icon-close{width:44px;height:44px;padding:0!important;border:0!important;border-radius:13px!important;background:#eef4f1!important;font-size:22px!important;color:var(--omi-green)!important}.omi-modal label{display:grid;gap:5px}.form-note,.omi-modal>form>p{margin:0;color:var(--omi-muted);font-size:12.5px}.modal-actions{position:sticky;bottom:0;display:grid;grid-template-columns:1fr 1.4fr;gap:8px;padding-top:2px;background:#fff}.omi-inline-message{min-height:20px!important;color:var(--omi-muted)!important}

/* Admin legacy pages normalized into calm mobile panels. */
body.omi-layout>main.wrap,body.omi-layout main.wrap{max-width:980px!important}.wrap>h1,.wrap>.page-title{margin:8px 0 6px!important}.wrap>p.note,.wrap>p{color:var(--omi-muted)}.wrap>a[href*="admin-ujian"]{min-height:44px;display:inline-flex;align-items:center;color:var(--omi-green);text-decoration:none;font-weight:800;font-size:13px}
body.omi-layout .grid{gap:8px}.card>h2,.panel>h2{margin-top:0!important}.card .note,.panel .note{font-size:12.5px;color:var(--omi-muted)}

/* Registration: keep real counts, but remove oversized hero treatment. */
body.omi-admin main.wrap>.hero{padding:17px!important;border-radius:var(--omi-radius-lg)!important;background:var(--omi-green)!important;color:#fff!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:14px!important}.omi-admin main.wrap>.hero h1{color:#fff!important;margin:2px 0 5px!important;font-size:1.55rem!important}.omi-admin main.wrap>.hero p{margin:0!important;font-size:12.5px!important;max-width:60ch!important}.omi-admin main.wrap>.hero .stats{min-width:0!important;width:min(390px,100%)!important;grid-template-columns:repeat(4,1fr)!important;gap:6px!important}.omi-admin main.wrap>.hero .stat{padding:9px!important;border-radius:12px!important}.omi-admin main.wrap>.hero .stat b{font-size:1.12rem!important}.data-audit{font-size:13px!important}.manual-card summary{min-height:52px!important}.manual-form{gap:8px!important}.toolbar{gap:8px!important}.student{box-shadow:none!important}.student-actions{gap:6px!important}.student-actions .btn{min-height:44px!important;padding:9px 10px!important;font-size:12px!important}

/* Monitoring and result pages: data first, effects second. */
body.omi-layout.omi-monitor .wrap,body.omi-layout main.wrap{overflow:visible}.omi-monitor .metric,.omi-monitor .stat,.summary-grid>*,.metrics>*{box-shadow:none!important}.omi-monitor .tabs{position:static!important;top:auto!important;backdrop-filter:none!important}.omi-monitor .row,.participant-row,.history-row{border-radius:14px!important}.omi-monitor [class*="pulse"],.omi-monitor .live-dot{animation-duration:1.8s!important}

/* System health: technical functions stay here. */
.system-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0}.system-tools a{min-height:62px;padding:12px;border:1px solid var(--omi-line);border-radius:13px;background:#fff;text-decoration:none;display:flex;align-items:center;justify-content:space-between;gap:8px}.system-tools strong{font-size:13px}.system-tools small{display:block;font-size:11px;color:var(--omi-muted)}

/* Exam preparation: quiet, linear setup. */
body.omi-participant.omi-setup-active main.setup{width:min(900px,100%)!important;margin:0 auto!important;padding:16px!important}.omi-participant .setup>.hero{display:grid!important;grid-template-columns:minmax(0,.8fr) minmax(300px,1fr)!important;gap:12px!important;align-items:start!important}.omi-participant .setup .intro{padding:18px!important;border-radius:var(--omi-radius-lg)!important;background:var(--omi-blue)!important;color:#fff!important}.omi-participant .setup .intro h1{color:#fff!important;margin:4px 0 7px!important;font-size:1.55rem!important}.omi-participant .setup .intro p{margin:0!important;font-size:12.5px!important}.omi-participant .setup .facts{margin-top:14px!important;gap:6px!important}.omi-participant .setup .facts span{padding:9px!important;border-radius:12px!important;font-size:11px!important}.omi-participant .pick-card{padding:16px!important}.omi-participant .pick-card h2{margin-top:0!important}.omi-participant .pick-sub,.omi-participant .scan-note{font-size:12px!important;color:var(--omi-muted)!important}.omi-participant .entry-divider{margin:13px 0!important}.omi-device-check{margin:12px 0;padding:11px 12px;border:1px solid var(--omi-line);border-radius:13px;background:#f7faf8;display:flex;align-items:center;justify-content:space-between;gap:10px}.omi-device-check span{display:grid}.omi-device-check strong{font-size:12.5px}.omi-device-check small{font-size:11px;color:var(--omi-muted)}.omi-device-check a{min-height:44px;display:inline-flex;align-items:center;padding:8px 10px;border-radius:10px;background:var(--omi-blue-soft);color:var(--omi-blue);text-decoration:none;font-size:12px;font-weight:800}

/* Active exam: global chrome hidden; status compact; question card owns the page. */
body.omi-layout.omi-exam-active,body.omi-layout.omi-secure-exam{padding-top:0!important;padding-bottom:0!important;background:#f7f8f7!important}
body.omi-layout.omi-exam-active #omi-fixed-header,body.omi-layout.omi-secure-exam #omi-fixed-header{display:none!important}
body.omi-layout.omi-exam-active .exam-status,body.omi-layout.omi-secure-exam .exam-status{position:sticky!important;top:0!important;z-index:930!important;min-height:56px!important;padding:max(7px,var(--omi-safe-top)) 10px 7px!important;background:#fff!important;border-bottom:1px solid var(--omi-line)!important;box-shadow:none!important}
body.omi-layout.omi-exam-active .question-card,body.omi-layout.omi-secure-exam .question-card{padding:16px!important;border-radius:0!important;border-left:0!important;border-right:0!important}.question-inner,.prompt,.options{min-width:0!important}.prompt{font-size:16px!important;line-height:1.55!important}.prompt img,.stimulus img,.question-card img{max-width:100%!important;height:auto!important;border-radius:12px!important;cursor:zoom-in}.options{display:grid!important;gap:8px!important}.option{min-height:52px!important;padding:11px 12px!important;border:1px solid var(--omi-line)!important;border-radius:13px!important;background:#fff!important}.option.selected{border-color:#7da99a!important;box-shadow:0 0 0 2px #dceee7!important}.exam-actions{position:sticky!important;bottom:0!important;z-index:925!important;padding:7px 8px max(7px,var(--omi-safe-bottom))!important;background:#fff!important;border-top:1px solid var(--omi-line)!important;box-shadow:none!important}.assessment-controls{gap:7px!important}.assessment-controls>*{min-height:44px!important}.sidebar{box-shadow:var(--omi-shadow)!important}.palette button{min-width:44px!important;min-height:44px!important}

/* Guided question experience. */
.guided-tutor{border-radius:var(--omi-radius)!important}.guided-head{padding:12px 13px!important}.guided-body{padding:13px!important}.guided-body h4{font-size:15px!important}.guided-body button{min-height:44px!important;border-radius:11px!important}.guided-feedback,.guided-source{font-size:13px!important}.guided-final{padding:13px!important}

/* Legacy subject start screens: suppress competing mode furniture in direct practice flow. */
body.omi-practice-start #welcomeScreen{padding-top:10px!important}.omi-practice-start #welcomeScreen .start-card{padding:16px!important;border-radius:var(--omi-radius)!important}.omi-practice-start #welcomeScreen .student-picker{gap:9px!important}.omi-practice-start #welcomeScreen #startBtn,.omi-practice-start #welcomeScreen #resumeBtn{min-height:48px!important}.omi-practice-start #welcomeScreen label{font-size:12px!important}.legacy-app .question-card{max-width:860px!important;margin-inline:auto!important}.legacy-app .question-meta{gap:6px!important}.legacy-app .options{gap:8px!important}.legacy-app .option{font-size:14px!important;line-height:1.45!important}

/* Archive/reference pages. */
.archive-main{display:block!important}.archive-main .hero,.archive-main .archive-hero{border-radius:var(--omi-radius-lg)!important;box-shadow:none!important}.archive-main .grid,.archive-main .catalog-grid{gap:8px!important}.archive-main .card{box-shadow:none!important}.archive-main iframe,.archive-main embed{max-width:100%!important}

/* Error/offline/loading states. */
body.omi-layout .box{width:min(520px,calc(100% - 32px))!important;margin:24px auto!important;padding:20px!important;border:1px solid var(--omi-line)!important;border-radius:var(--omi-radius-lg)!important;background:#fff!important;box-shadow:none!important}.omi-loading,.empty,.omi-empty{padding:20px!important;color:var(--omi-muted)!important;text-align:center!important}.omi-error{padding:14px!important;border-radius:13px!important;background:var(--omi-danger-soft)!important;color:var(--omi-danger)!important}

/* Liquid touch wave with two very small droplets. */
.omi-touch-wave{width:10px!important;height:10px!important;margin:-5px 0 0 -5px!important;opacity:.12!important;animation:omi-liquid-wave .52s var(--omi-ease) forwards!important}
.omi-touch-drop{position:absolute;z-index:3;width:5px;height:5px;margin:-2.5px 0 0 -2.5px;border-radius:50%;pointer-events:none;background:currentColor;opacity:.13;animation:omi-liquid-drop .48s ease-out forwards}
@keyframes omi-liquid-wave{0%{transform:scale(.5);border-radius:50%}55%{transform:scale(9,7);border-radius:44% 56% 48% 52%}100%{transform:scale(17,14);opacity:0;border-radius:50%}}
@keyframes omi-liquid-drop{to{transform:translate(var(--dx),var(--dy)) scale(.45);opacity:0}}

/* Image zoom overlay supplied by shell. */
.omi-image-viewer{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#10241feF;color:#fff}.omi-image-viewer::backdrop{background:#10241fef}.omi-image-viewer-inner{width:100%;height:100%;padding:max(14px,var(--omi-safe-top)) 14px max(14px,var(--omi-safe-bottom));display:grid;grid-template-rows:auto 1fr;gap:10px}.omi-image-viewer-head{display:flex;justify-content:flex-end}.omi-image-viewer-head button{width:44px;height:44px;border:1px solid #ffffff33;border-radius:13px;background:#ffffff14;color:#fff;font-size:22px}.omi-image-viewer figure{margin:0;min-height:0;display:grid;place-items:center;overflow:auto}.omi-image-viewer img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;border-radius:8px}

/* Responsive contract at required widths. */
@media(max-width:760px){
  body.omi-layout main{padding-left:var(--omi-page)!important;padding-right:var(--omi-page)!important}
  #omi-fixed-header .omi-brand-link span{display:none!important}
  .home-focus{grid-template-columns:1fr!important}.home-focus-card{min-height:160px!important}
  .menu-grid-new{grid-template-columns:1fr!important}
  .guidance-grid{grid-template-columns:1fr!important}.guidance-card{min-height:136px!important}
  .step-list{grid-template-columns:1fr 1fr!important}
  .portal-primary{grid-template-columns:1fr!important}.portal-job{min-height:112px!important}
  .student-summary-grid{grid-template-columns:1fr 1fr!important}.progress-summary{grid-template-columns:1fr 1fr!important}
  body.omi-admin main.wrap>.hero{grid-template-columns:1fr!important}.omi-admin main.wrap>.hero .stats{width:100%!important}
  .omi-participant .setup>.hero{grid-template-columns:1fr!important}.omi-participant .setup .intro{display:none!important}
  .system-tools{grid-template-columns:1fr!important}
  body.omi-layout .grid{grid-template-columns:1fr!important}
  body.omi-layout .toolbar,body.omi-layout .manual-form{grid-template-columns:1fr!important}
  body.omi-layout .student{grid-template-columns:1fr!important}
  .omi-toast-stack{bottom:calc(var(--omi-nav) + var(--omi-safe-bottom) + 8px)!important}
}
@media(max-width:430px){
  :root{--omi-page:16px}
  .step-list{grid-template-columns:1fr!important}
  .portal-inline-links{display:grid!important;grid-template-columns:1fr 1fr!important}.portal-inline-links a{justify-content:center!important}
  .home-focus-card{grid-template-columns:42px 1fr!important;padding:16px!important}.home-card-icon{width:42px!important;height:42px!important}.home-focus-card strong{font-size:1.18rem!important}
}
@media(max-width:360px){
  :root{--omi-page:14px}
  #omi-fixed-header{gap:4px!important}
  #omi-fixed-header .omi-sound-toggle{display:none!important}
  #omi-fixed-header .omi-back,#omi-fixed-header .omi-menu-toggle,#omi-fixed-header .omi-page-options summary{width:42px;min-width:42px;height:42px;min-height:42px}
  .progress-summary{grid-template-columns:1fr 1fr!important}.progress-stat{min-height:82px!important;padding:11px!important}.progress-stat strong{font-size:1.2rem!important}
  .modal-actions{grid-template-columns:1fr!important}
}
@media(max-width:320px){
  :root{--omi-page:12px}
  #omi-fixed-header .omi-brand-link{min-width:36px!important}.omi-primary-nav a{font-size:10px!important}.omi-primary-nav svg{width:19px!important;height:19px!important}
  .home-focus-card{grid-template-columns:38px 1fr!important;gap:8px 10px!important}.home-card-icon{width:38px!important;height:38px!important}.home-focus-card em{font-size:12px!important}
  .portal-inline-links{grid-template-columns:1fr!important}
  .student-summary-grid{grid-template-columns:1fr!important}
}
@media(min-width:900px){
  body.omi-layout{padding-top:calc(var(--omi-header) + 52px + var(--omi-safe-top))!important;padding-bottom:26px!important}.omi-primary-nav{top:calc(var(--omi-header) + var(--omi-safe-top));bottom:auto;height:52px;padding:4px max(20px,calc((100vw - 840px)/2));box-shadow:none!important}.omi-primary-nav a{min-height:44px;flex-direction:row;gap:7px;font-size:12px}.omi-primary-nav svg{width:18px;height:18px}.omi-page-shell,.omi-directory,body.omi-layout>.wrap,body.omi-layout>.shell,body.omi-layout>.archive-main{padding-top:30px!important}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.omi-enter,.omi-entered{opacity:1!important;transform:none!important;transition:none!important}.omi-touch-wave,.omi-touch-drop{display:none!important}}

/* OMI 18 — management page details */
.settings-disclosure{padding:0!important;overflow:hidden}.settings-disclosure>summary{min-height:58px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:12px;list-style:none;cursor:pointer}.settings-disclosure>summary::-webkit-details-marker{display:none}.settings-disclosure>summary>span:first-child{display:grid;gap:2px}.settings-disclosure>summary strong{font-size:14px}.settings-disclosure>summary small{font-size:11.5px;color:var(--omi-muted);font-weight:500}.settings-disclosure>.settings-body{padding:0 15px 15px;border-top:1px solid var(--omi-line)}.settings-disclosure .grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.switch-row{display:flex!important;align-items:flex-start;gap:10px!important;padding:11px 0}.switch-row>input{width:20px!important;height:20px!important;min-height:20px!important;flex:0 0 20px!important;margin-top:1px}.switch-row>span{display:grid;gap:2px}.switch-row strong{font-size:13px}.switch-row small{font-size:11.5px;color:var(--omi-muted);font-weight:500}.sticky-save{position:sticky;bottom:calc(var(--omi-nav) + var(--omi-safe-bottom) + 8px);z-index:20;padding:8px;border:1px solid var(--omi-line);border-radius:15px;background:#fffffff2;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:flex;align-items:center;gap:10px;flex-wrap:wrap}.sticky-save .omi-inline-message{margin:0!important;flex:1;min-width:150px}.omi-inline-message{font-size:12px;color:var(--omi-muted)}

.question-bank-layout{display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr);gap:12px;align-items:start}.question-list-panel{position:sticky;top:calc(var(--omi-header) + var(--omi-safe-top) + 64px);max-height:calc(100dvh - var(--omi-header) - 90px);overflow:auto}.question-list{display:grid;gap:6px;margin-top:10px}.question-list-item{width:100%;min-height:64px;padding:10px!important;border:1px solid var(--omi-line)!important;border-radius:12px!important;background:#f9fbfa!important;color:var(--omi-ink)!important;text-align:left;display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:8px!important}.question-list-item>span:first-child{min-width:0;display:grid;gap:3px}.question-list-item b{font-size:12.5px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.question-list-item small{font-size:10.5px;color:var(--omi-muted)}.tag{display:inline-flex;align-items:center;min-height:25px;padding:3px 7px;border-radius:8px;background:var(--omi-green-3);color:var(--omi-green);font-size:10px;font-weight:850;white-space:nowrap}.question-editor{display:grid;gap:10px}.question-editor .card{margin:0!important}.editor-check{margin-top:8px;padding:9px 10px;border-radius:10px;background:var(--omi-success-soft);color:var(--omi-success);font-size:11.5px}.editor-check.bad{background:var(--omi-danger-soft);color:var(--omi-danger)}.student-preview{min-height:140px;padding:14px;border:1px solid var(--omi-line);border-radius:14px;background:#fbfcfb}.student-preview #previewPrompt{margin:10px 0 12px;font-size:15px;line-height:1.55}.preview-option{min-height:44px;margin-top:6px;padding:8px 10px;border:1px solid var(--omi-line);border-radius:11px;background:#fff;display:grid;grid-template-columns:27px 1fr;align-items:center;gap:8px}.preview-option>span{width:27px;height:27px;border-radius:8px;background:#eef4f1;color:var(--omi-green);display:grid;place-items:center;font-size:11px;font-weight:900}.preview-option>b{font-size:12px}.editor-actions{display:flex;gap:7px;flex-wrap:wrap}.editor-actions .btn{flex:0 1 auto}

.omi-system-health .card{padding:15px!important;margin:10px 0!important}.omi-system-health #checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.omi-system-health .item{min-height:82px;padding:11px;border:1px solid var(--omi-line);border-radius:12px;background:#fbfcfb;display:grid;gap:2px}.omi-system-health .item>b{font-size:12px}.omi-system-health .item>strong{font-size:10.5px}.omi-system-health .item>small{font-size:11px;color:var(--omi-muted)}.omi-system-health .normal{color:var(--omi-success)}.omi-system-health .warning{color:var(--omi-warning)}.omi-system-health .critical{color:var(--omi-danger)}.backup-list{display:grid;gap:7px;margin-top:12px}.backup-row{padding:10px;border:1px solid var(--omi-line);border-radius:12px;background:#fbfcfb;display:flex;align-items:center;justify-content:space-between;gap:10px}.backup-row>span:first-child{display:grid}.backup-row small{font-size:11px;color:var(--omi-muted)}.backup-row>span:last-child{display:flex;gap:5px;flex-wrap:wrap}.backup-row .btn{min-height:40px!important;padding:8px 10px!important;font-size:11px!important}

@media(max-width:760px){.settings-disclosure .grid{grid-template-columns:1fr!important}.question-bank-layout{grid-template-columns:1fr!important}.question-list-panel{position:static;max-height:none}.question-list{max-height:330px;overflow:auto;overscroll-behavior:contain}.sticky-save{bottom:calc(var(--omi-nav) + var(--omi-safe-bottom) + 6px)}.omi-system-health #checks{grid-template-columns:1fr!important}.backup-row{align-items:flex-start;flex-direction:column}.backup-row>span:last-child{width:100%}.backup-row>span:last-child .btn{flex:1}.editor-actions .btn{flex:1 1 calc(50% - 7px)}}
@media(min-width:900px){.sticky-save{bottom:12px}}

/* V18 image viewer + monitor/result refinements */
.omi-image-viewer{width:min(94vw,860px);max-width:860px;height:min(88dvh,760px);padding:0;border:0;border-radius:18px;background:var(--omi-panel,#fff);box-shadow:0 24px 64px rgba(4,35,29,.24);overflow:hidden}
.omi-image-viewer::backdrop{background:rgba(4,25,21,.72)}
.omi-image-viewer-head{min-height:52px;padding:8px 10px 8px 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--omi-line,#dbe6e1)}
.omi-image-viewer-head button{width:44px;height:44px;border:0;background:transparent;border-radius:12px;display:grid;place-items:center}
.omi-image-viewer-head svg{width:22px;height:22px}.omi-image-viewer-stage{height:calc(100% - 52px);display:grid;place-items:center;padding:12px;overflow:auto;background:#f4f8f6}
.omi-image-viewer-stage img{max-width:100%;max-height:100%;object-fit:contain}
.prompt img,.stimulus-block img,.question-card img,.source-card img,.question-text img{cursor:zoom-in;max-width:100%;height:auto}
.monitor-intro,.history-intro{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 14px}.monitor-intro h1,.history-intro h1{margin:.15rem 0 .25rem}.monitor-intro p,.history-intro p{margin:0;color:var(--omi-muted,#65746f)}
.tabs,.filters{overflow-x:auto;flex-wrap:nowrap!important;scrollbar-width:none;padding-bottom:3px}.tabs::-webkit-scrollbar,.filters::-webkit-scrollbar{display:none}.tabs>.tab,.filters>.filter{flex:0 0 auto;min-height:44px}
.result-detail-body{padding:18px}.result-detail-body .modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.icon-close{width:44px;height:44px;border:1px solid var(--omi-line,#dbe6e1);border-radius:12px;background:#fff;font-size:24px}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.detail-grid>div{padding:12px;border:1px solid var(--omi-line,#dbe6e1);border-radius:12px;background:#f8faf9}.detail-grid span{display:block;color:var(--omi-muted,#65746f);font-size:.78rem}.detail-grid b{display:block;margin-top:3px}.result-source-note{color:var(--omi-muted,#65746f)}
@media(max-width:430px){.monitor-intro,.history-intro{display:grid;grid-template-columns:1fr}.monitor-intro>.btn,.history-intro>.btn{width:100%}.detail-grid{grid-template-columns:1fr}.omi-image-viewer{width:calc(100vw - 20px);height:min(86dvh,680px)}}
.submit-dialog{width:min(92vw,520px);border:0;border-radius:18px;padding:0;box-shadow:0 24px 60px rgba(4,35,29,.26)}
.submit-dialog::backdrop{background:rgba(4,25,21,.58)}.submit-dialog-card{padding:20px}.submit-dialog-card h2{margin:.2rem 0 .7rem}.submit-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.submit-summary>div{padding:12px 8px;text-align:center;border:1px solid var(--omi-line,#dbe6e1);border-radius:12px;background:#f8faf9}.submit-summary span{display:block;font-size:.72rem;color:var(--omi-muted,#65746f)}.submit-summary b{font-size:1.35rem}.submit-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}.submit-dialog-actions .btn{min-height:48px}
@media(max-width:360px){.submit-summary{grid-template-columns:1fr}.submit-dialog-actions{grid-template-columns:1fr}.submit-dialog-card{padding:16px}}
.home-card-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.subject-mark svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.learning-secondary{margin:18px 0;border:1px solid var(--omi-line,#dbe6e1);border-radius:14px;background:var(--omi-panel,#fff);padding:0 14px}.learning-secondary summary{min-height:48px;display:flex;align-items:center;font-weight:800;cursor:pointer}.learning-secondary-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 0 14px}.learning-secondary-links a{min-height:44px;display:flex;align-items:center;padding:9px 11px;border:1px solid var(--omi-line,#dbe6e1);border-radius:11px;text-decoration:none;color:inherit}@media(max-width:430px){.learning-secondary-links{grid-template-columns:1fr}}

/* ======================================================================
   OMI PRO V19 — MOBILE VISUAL REFINEMENT
   Reference direction: generous question cards, pastel answer states,
   bottom-sheet navigation/palette, calm high-contrast hierarchy.
   Structure and assessment logic remain unchanged.
   ====================================================================== */
:root{
  --omi-bg:#f7f8f7;
  --omi-blue:#168dca;
  --omi-blue-strong:#0b78b6;
  --omi-blue-soft:#e9f6fc;
  --omi-gold:#e5ad22;
  --omi-gold-soft:#fff8de;
  --omi-rose:#d96278;
  --omi-rose-soft:#fff0f3;
  --omi-mint:#0a8a66;
  --omi-mint-soft:#e9f9f3;
  --omi-amber:#9b5a08;
  --omi-amber-soft:#fff8df;
  --omi-ink-strong:#17283e;
  --omi-card-shadow:0 8px 20px rgba(31,50,68,.08),0 2px 5px rgba(31,50,68,.04);
}
body.omi-layout{background:var(--omi-bg)!important;color:var(--omi-ink-strong)!important}

/* Header: quiet, compact, stable. */
#omi-fixed-header{height:calc(66px + var(--omi-safe-top))!important;background:#fffffff8!important;border-bottom:1px solid #e8ecef!important;box-shadow:0 3px 16px rgba(29,48,65,.05)!important;padding-inline:max(10px,env(safe-area-inset-left)) max(10px,env(safe-area-inset-right))!important}
#omi-fixed-header .omi-brand-link{color:var(--omi-ink-strong)!important;font-weight:850!important}
#omi-fixed-header .omi-brand-link img{width:36px!important;height:36px!important;border-radius:12px!important;box-shadow:0 3px 10px rgba(7,95,77,.16)}
#omi-fixed-header .omi-page-name{font-size:13px!important;color:#6b7a8d!important;font-weight:750!important}
#omi-fixed-header .omi-back,#omi-fixed-header .omi-sound-toggle,#omi-fixed-header .omi-menu-toggle,#omi-fixed-header .omi-page-options summary{border:1px solid #e5eaf0!important;background:#f7f9fb!important;color:#42546a!important;border-radius:14px!important}

/* Bottom navigation: four destinations only, with a strong active capsule. */
.omi-primary-nav{height:calc(76px + var(--omi-safe-bottom))!important;padding:7px max(8px,env(safe-area-inset-right)) var(--omi-safe-bottom) max(8px,env(safe-area-inset-left))!important;border-top:1px solid #e2e8ee!important;box-shadow:0 -8px 26px rgba(28,45,64,.08)!important}
.omi-primary-nav a{min-height:59px!important;border-radius:18px!important;color:#617187!important;font-size:11.5px!important;gap:4px!important}
.omi-primary-nav a[aria-current="page"]{background:#edf0ff!important;color:#3a30a6!important;box-shadow:inset 0 0 0 1px #dde2ff!important}
.omi-primary-nav svg{width:23px!important;height:23px!important;stroke-width:1.9!important}

/* Menu becomes a bottom sheet on phones. Desktop keeps side drawer. */
@media(max-width:760px){
  .omi-drawer{inset:auto 0 0!important;width:100%!important;height:min(82dvh,720px)!important;max-height:min(82dvh,720px)!important;border:0!important;border-radius:30px 30px 0 0!important;padding:16px 16px calc(24px + var(--omi-safe-bottom))!important;box-shadow:0 -24px 70px rgba(17,31,49,.28)!important;overflow-y:auto!important;overscroll-behavior:contain!important}
  .omi-drawer::before{content:"";display:block;width:102px;height:8px;border-radius:999px;background:#d4dee6;margin:0 auto 10px}
  .omi-drawer::backdrop{background:rgba(20,32,49,.60)!important;backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
  .omi-drawer-head{top:-16px;min-height:78px;padding:16px 2px 12px!important;background:#fff!important}
  .omi-drawer-head small{color:#5a52c9!important;letter-spacing:.1em!important}
  .omi-drawer-head strong{font-size:25px!important;color:var(--omi-ink-strong)!important;letter-spacing:-.02em}
  .omi-drawer-head button{width:50px!important;height:50px!important;border-radius:50%!important;background:#f2f5f9!important;color:#4d6077!important}
  .omi-menu-section{padding:14px 0!important;border-top:0!important}
  .omi-menu-section h2{margin:0 8px 10px!important;color:#8a9bb0!important;font-size:12px!important;letter-spacing:.1em!important}
  .omi-menu-section>div{grid-template-columns:1fr 1fr!important;gap:10px!important}
  .omi-menu-section a{min-height:74px!important;padding:13px 14px!important;border:1px solid #dfe6ec!important;border-radius:18px!important;background:#fbfcfd!important;color:#24354c!important;font-size:14px!important;line-height:1.2!important;box-shadow:0 2px 6px rgba(32,51,69,.03)!important}
  .omi-menu-section a[aria-current="page"]{background:#eef0ff!important;color:#342da0!important;border-color:#d9ddff!important}
}

/* Shared page shell and cards. */
.omi-page-shell,.omi-directory{color:var(--omi-ink-strong)!important}
.page-kicker,.home-kicker{color:#7f91a8!important;font-weight:900!important;letter-spacing:.1em!important}
.section-heading h2,.progress-intro h1,.guidance-hero h1,.portal-intro h2,.student-intro h1{color:var(--omi-ink-strong)!important;letter-spacing:-.025em!important}
.section-heading p,.progress-intro p,.guidance-hero p,.portal-intro p,.student-intro p{color:#6c7d91!important}
.progress-stat,.progress-item,.recommendation-item,.portal-section,.omi-state-card,.student-concepts,.student-summary-grid>article{border:1.5px solid #dfe7ed!important;border-radius:20px!important;background:#fff!important;box-shadow:var(--omi-card-shadow)!important}
.progress-stat{min-height:118px!important;padding:18px!important}
.progress-stat span{color:#8596aa!important;font-size:12px!important;font-weight:900!important;letter-spacing:.04em!important;text-transform:uppercase}
.progress-stat strong{font-size:clamp(1.65rem,7vw,2.35rem)!important;color:var(--omi-ink-strong)!important}
.omi-progress{height:10px!important;background:#edf1f4!important;border-radius:999px!important}
.omi-progress>span{background:linear-gradient(90deg,var(--omi-green),#15a47a)!important;border-radius:999px!important}

/* Home: strong cards, but still only two primary jobs + three secondary links. */
.omi-home{max-width:940px!important;padding-top:28px!important}
.home-intro{padding:4px 2px 10px!important}.omi-home h1{max-width:680px!important;font-size:clamp(2rem,8vw,3.55rem)!important;line-height:1.06!important;color:var(--omi-ink-strong)!important}
.home-intro p{max-width:650px;color:#718197!important}
.home-focus{gap:16px!important;margin:20px 0 26px!important}
.home-focus-card{min-height:190px!important;border-radius:26px!important;padding:24px!important;box-shadow:0 13px 28px rgba(24,48,62,.12)!important;border:1px solid rgba(255,255,255,.16)!important}
.home-focus-card.learn{background:linear-gradient(145deg,#075f4d,#0a795f 72%,#108268)!important}
.home-focus-card.exam{background:linear-gradient(145deg,#126ea7,#179bd4 76%,#2aa9dd)!important}
.home-focus-card small{font-weight:900!important;letter-spacing:.11em!important;opacity:.78}.home-focus-card strong{font-size:1.45rem!important}.home-focus-card em{font-style:normal!important;line-height:1.5!important;opacity:.88!important}
.home-focus-card b{min-height:46px!important;padding:0 14px!important;border-radius:14px!important;background:#ffffff18!important;border:1px solid #ffffff26!important;display:inline-flex!important;align-items:center!important;justify-content:space-between!important}
.compact-links a{min-height:76px!important;border-radius:18px!important;border:1.5px solid #dfe6ec!important;background:#fff!important;color:#26384d!important;padding:14px 16px!important;box-shadow:var(--omi-card-shadow)!important}
.compact-links small{color:#7a8b9d!important;font-weight:550!important}

/* Subject selection in the learning center. */
.guidance-grid{gap:13px!important}.guidance-card{border-radius:22px!important;border:1.5px solid #dfe6ec!important;background:#fff!important;box-shadow:var(--omi-card-shadow)!important;min-height:160px!important}.guidance-card h3{color:var(--omi-ink-strong)!important}.guidance-card p{color:#718299!important}.guidance-card b{border-radius:12px!important;min-height:44px!important;display:inline-flex!important;align-items:center!important;gap:8px!important}
.learning-secondary{border-radius:19px!important;border:1.5px solid #dfe6ec!important;background:#fff!important;box-shadow:var(--omi-card-shadow)!important}
.step-list li{border-radius:18px!important;border:1.5px solid #dfe6ec!important;background:#fff!important;box-shadow:0 3px 10px rgba(29,50,67,.04)!important}

/* Generic modal/dialog becomes a mobile sheet where appropriate. */
@media(max-width:650px){
  dialog.omi-modal:not(.omi-image-viewer){inset:auto 0 0!important;width:100%!important;max-width:none!important;max-height:88dvh!important;margin:auto 0 0!important;border-radius:28px 28px 0 0!important;border:0!important;padding:20px 16px calc(20px + var(--omi-safe-bottom))!important;box-shadow:0 -24px 70px rgba(19,33,50,.25)!important}
  dialog.omi-modal:not(.omi-image-viewer)::before{content:"";display:block;width:92px;height:7px;border-radius:999px;background:#d5dfe7;margin:0 auto 14px}
  dialog.omi-modal::backdrop{background:rgba(20,32,49,.58)!important;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
}

/* ======================================================================
   PRACTICE / GUIDED QUESTION UI — reference-inspired, not brand copied.
   ====================================================================== */
@media(max-width:900px){
  body.legacy-app.omi-exam-active{background:#f8fafb!important;padding:0 0 92px!important}
  body.legacy-app.omi-exam-active .screen.exam-layout.active{padding:12px 10px 104px!important;max-width:760px!important;margin:0 auto!important}
  body.legacy-app.omi-exam-active .exam-main{overflow:visible!important}
  body.legacy-app.omi-exam-active .exam-top{padding:2px 5px 8px!important;margin:0!important}
  body.legacy-app.omi-exam-active .question-card{position:relative!important;padding:22px 18px 24px!important;border:2px solid #f0d878!important;border-radius:28px!important;background:#fff!important;box-shadow:0 8px 20px rgba(37,54,73,.08)!important;overflow:visible!important}
  body.legacy-app.omi-exam-active .q-meta{min-height:52px!important;align-items:center!important;margin-bottom:10px!important}
  body.legacy-app.omi-exam-active .q-num{width:52px!important;height:52px!important;border-radius:50%!important;background:#f6b915!important;color:#213149!important;box-shadow:0 4px 10px rgba(178,127,0,.20)!important;font-size:1.22rem!important}
  body.legacy-app.omi-exam-active .tags{margin-left:auto!important;justify-content:flex-end!important}.legacy-app .tag{border-radius:999px!important;background:#fff9df!important;border:1.5px solid #efd24a!important;color:#78520c!important}
  body.legacy-app.omi-exam-active .prompt{font-size:clamp(1.1rem,4.8vw,1.35rem)!important;line-height:1.6!important;color:#17283e!important;margin:18px 0 20px!important;font-weight:720!important}
  body.legacy-app.omi-exam-active .stimulus{border:1.5px solid #dde6ed!important;border-left:5px solid #efc13a!important;border-radius:18px!important;background:#fbfcfd!important;padding:14px!important;margin:14px 0!important}
  body.legacy-app.omi-exam-active .options{gap:12px!important}
  body.legacy-app.omi-exam-active .option{position:relative!important;grid-template-columns:54px minmax(0,1fr)!important;gap:14px!important;min-height:78px!important;padding:12px 58px 12px 14px!important;border-width:2px!important;border-radius:22px!important;font-size:1.05rem!important;font-weight:850!important;box-shadow:0 4px 10px rgba(27,44,61,.06)!important;transform:none!important}
  body.legacy-app.omi-exam-active .option:nth-child(4n+1){background:var(--omi-rose-soft)!important;border-color:#f3b7c2!important;color:#9b1837!important}
  body.legacy-app.omi-exam-active .option:nth-child(4n+2){background:var(--omi-blue-soft)!important;border-color:#9fdcf5!important;color:#07587e!important}
  body.legacy-app.omi-exam-active .option:nth-child(4n+3){background:var(--omi-mint-soft)!important;border-color:#91e6c7!important;color:#086147!important}
  body.legacy-app.omi-exam-active .option:nth-child(4n+4){background:var(--omi-amber-soft)!important;border-color:#f2d96d!important;color:#844708!important}
  body.legacy-app.omi-exam-active .option-marker{width:48px!important;height:48px!important;border-radius:15px!important;background:#fff!important;color:#1c2b3e!important;box-shadow:0 3px 8px rgba(25,44,62,.12)!important;font-size:1.15rem!important}
  body.legacy-app.omi-exam-active .option.selected{background:#159bd6!important;border-color:#0879b8!important;color:#fff!important;box-shadow:0 0 0 5px #c5edf9,0 5px 12px rgba(11,124,181,.22)!important}
  body.legacy-app.omi-exam-active .option.selected .option-marker{color:#1f3044!important}
  body.legacy-app.omi-exam-active .option.selected::after{content:"✓";position:absolute;right:18px;top:50%;translate:0 -50%;width:36px;height:36px;border-radius:50%;border:3px solid #fff;display:grid;place-items:center;color:#fff;font-weight:950;font-size:18px}
  body.legacy-app.omi-exam-active .option.correct-option{outline:3px solid #3bc28d!important;outline-offset:2px!important}body.legacy-app.omi-exam-active .option.wrong-option{outline:3px solid #df6478!important;outline-offset:2px!important}
  body.legacy-app.omi-exam-active .confidence{margin-top:22px!important;padding-top:18px!important;border-top:1px solid #e8edf1!important}.confidence-buttons button{border-radius:14px!important}
  body.legacy-app.omi-exam-active .q-nav{position:fixed!important;left:0!important;right:0!important;bottom:0!important;z-index:965!important;display:grid!important;grid-template-columns:minmax(0,.9fr) minmax(0,.9fr) minmax(0,1.25fr)!important;gap:8px!important;padding:9px 10px max(9px,var(--omi-safe-bottom))!important;background:#fffffff6!important;border-top:1px solid #e3e9ee!important;box-shadow:0 -9px 25px rgba(26,43,61,.10)!important;backdrop-filter:none!important}
  body.legacy-app.omi-exam-active .q-nav button{min-width:0!important;min-height:52px!important;border-radius:15px!important;padding:9px 8px!important;font-size:.8rem!important;line-height:1.15!important;white-space:normal!important}.legacy-app .q-nav .primary-btn{background:#08aa79!important;box-shadow:0 5px 0 #087c5d,0 9px 16px rgba(8,124,93,.15)!important}.legacy-app .q-nav .secondary-btn{background:#f4f6f8!important;border-color:#e3e8ee!important;color:#77879a!important}.legacy-app .q-nav .skip-btn{background:#fff8d8!important;border:1.5px solid #e4c13f!important;color:#765019!important;font-weight:850!important}
  body.legacy-app.omi-exam-active .sidebar{inset:auto 0 0!important;width:100%!important;height:min(76dvh,720px)!important;max-height:76dvh!important;border-radius:30px 30px 0 0!important;padding:20px 18px calc(22px + var(--omi-safe-bottom))!important;transform:translateY(110%)!important;transition:transform .28s var(--omi-ease)!important;background:#fff!important;box-shadow:0 -24px 70px rgba(20,33,50,.27)!important;overflow-y:auto!important}
  body.legacy-app.omi-exam-active .sidebar::before{content:"";display:block;width:96px;height:7px;border-radius:999px;background:#d4dfe7;margin:-4px auto 15px}
  body.legacy-app.omi-exam-active .sidebar.open{transform:none!important}.legacy-app .palette{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:9px!important}.legacy-app .palette button{min-width:0!important;min-height:52px!important;aspect-ratio:1.12!important;border:2px solid #dfe6ee!important;border-radius:16px!important;background:#f3f6fa!important;color:#41546c!important;font-size:1rem!important}.legacy-app .palette button.current{outline:4px solid #f0b918!important;outline-offset:2px!important;background:#fff!important}.legacy-app .palette button.answered{background:#e9f8f1!important;border-color:#84d9b7!important;color:#087555!important}.legacy-app .palette button.flagged{box-shadow:inset 0 -5px 0 #e5b529!important}
}

/* Official exam: same readability, more restrained blue state, no playful hint palette. */
@media(max-width:820px){
  body.omi-layout.omi-exam-active #examScreen.exam-fixed.active,body.omi-layout.omi-secure-exam #examScreen.exam-fixed.active{padding:8px 8px 82px!important;background:#f7f9fb!important}
  body.omi-layout.omi-exam-active .question-card,body.omi-layout.omi-secure-exam .question-card{padding:18px 15px 22px!important;border:2px solid #b5ddf0!important;border-radius:26px!important;background:#fff!important;box-shadow:0 7px 18px rgba(31,53,72,.07)!important}
  body.omi-layout.omi-exam-active .question-meta,body.omi-layout.omi-secure-exam .question-meta{justify-content:flex-start!important;margin-bottom:12px!important}
  body.omi-layout.omi-exam-active #position,body.omi-layout.omi-secure-exam #position{width:50px!important;height:50px!important;min-width:50px!important;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:#178fc8!important;color:#fff!important;font-size:1rem!important;font-weight:950!important;border:0!important;box-shadow:0 4px 10px rgba(18,118,167,.20)!important}
  body.omi-layout.omi-exam-active .prompt,body.omi-layout.omi-secure-exam .prompt{font-size:1.06rem!important;line-height:1.62!important;color:#182a3f!important;margin:12px 0 18px!important}
  body.omi-layout.omi-exam-active .options,body.omi-layout.omi-secure-exam .options{gap:11px!important}
  body.omi-layout.omi-exam-active .option,body.omi-layout.omi-secure-exam .option{position:relative!important;grid-template-columns:49px minmax(0,1fr)!important;min-height:70px!important;padding:10px 50px 10px 12px!important;border:2px solid #dce5ec!important;border-radius:20px!important;background:#fff!important;font-size:.98rem!important;font-weight:760!important;box-shadow:0 3px 9px rgba(24,43,60,.04)!important}
  body.omi-layout.omi-exam-active .option:nth-child(4n+1),body.omi-layout.omi-secure-exam .option:nth-child(4n+1){background:#fff4f6!important;border-color:#f0c8d0!important}
  body.omi-layout.omi-exam-active .option:nth-child(4n+2),body.omi-layout.omi-secure-exam .option:nth-child(4n+2){background:#eff8fc!important;border-color:#bbe2f2!important}
  body.omi-layout.omi-exam-active .option:nth-child(4n+3),body.omi-layout.omi-secure-exam .option:nth-child(4n+3){background:#eefaf5!important;border-color:#b4e9d3!important}
  body.omi-layout.omi-exam-active .option:nth-child(4n+4),body.omi-layout.omi-secure-exam .option:nth-child(4n+4){background:#fff9e9!important;border-color:#f1dfa2!important}
  body.omi-layout.omi-exam-active .letter,body.omi-layout.omi-secure-exam .letter{width:44px!important;height:44px!important;border-radius:14px!important;background:#fff!important;color:#1b2c42!important;box-shadow:0 2px 7px rgba(22,41,59,.11)!important;font-size:1rem!important}
  body.omi-layout.omi-exam-active .option.selected,body.omi-layout.omi-secure-exam .option.selected{background:#168fca!important;border-color:#0877b2!important;color:#fff!important;box-shadow:0 0 0 4px #c8edf8!important}
  body.omi-layout.omi-exam-active .option.selected::after,body.omi-layout.omi-secure-exam .option.selected::after{content:"✓";position:absolute;right:15px;top:50%;translate:0 -50%;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;border:2px solid #fff;color:#fff;font-weight:900}
  body.omi-layout.omi-exam-active .assessment-controls,body.omi-layout.omi-secure-exam .assessment-controls{margin-top:18px!important;padding-top:14px!important;border-top:1px solid #e5ebef!important}
  body.omi-layout.omi-exam-active .exam-actions,body.omi-layout.omi-secure-exam .exam-actions{grid-template-columns:.9fr 1fr 1.25fr!important;gap:7px!important;padding:8px 9px max(8px,var(--omi-safe-bottom))!important}.exam-actions #reviewBtn{display:none!important}.exam-actions .btn{min-height:50px!important;border-radius:15px!important;font-size:.78rem!important;padding:8px 6px!important}.exam-actions #next{background:#0aa879!important}.exam-actions #submitFixed{background:#5140e6!important;border-color:#5140e6!important}
  body.omi-layout.omi-exam-active .palette-drawer,body.omi-layout.omi-secure-exam .palette-drawer{position:fixed!important;inset:auto 0 0!important;z-index:1100!important;width:100%!important;height:min(72dvh,680px)!important;max-height:72dvh!important;border-radius:30px 30px 0 0!important;padding:20px 18px calc(22px + var(--omi-safe-bottom))!important;background:#fff!important;box-shadow:0 -24px 70px rgba(17,31,49,.28)!important;transform:translateY(110%)!important;transition:transform .28s var(--omi-ease)!important;overflow-y:auto!important}
  body.omi-layout.omi-exam-active .palette-drawer::before,body.omi-layout.omi-secure-exam .palette-drawer::before{content:"";display:block;width:96px;height:7px;border-radius:999px;background:#d2dde6;margin:-5px auto 15px}.palette-drawer.open{transform:none!important}.palette-drawer .palette{gap:9px!important}.palette-drawer .palette button{min-height:50px!important;border-radius:15px!important;border:2px solid #dfe6ed!important;background:#f2f5f9!important;color:#42556c!important}.palette-drawer .palette .done{background:#e9f8f2!important;border-color:#82d9b7!important;color:#087454!important}.palette-drawer .palette .current{outline:4px solid #efb91a!important;outline-offset:2px!important;background:#fff!important}
}

/* Extra-small screens: preserve touch targets without overflow. */
@media(max-width:360px){
  .omi-menu-section a{font-size:12.5px!important;padding:11px!important}.omi-primary-nav a{font-size:10.5px!important}
  body.legacy-app.omi-exam-active .question-card{padding:18px 13px 20px!important;border-radius:24px!important}body.legacy-app.omi-exam-active .option{grid-template-columns:48px minmax(0,1fr)!important;min-height:72px!important;padding-left:10px!important;font-size:.95rem!important}.legacy-app .option-marker{width:43px!important;height:43px!important}
  body.legacy-app.omi-exam-active .q-nav{grid-template-columns:.8fr .8fr 1.2fr!important}.legacy-app .q-nav button{font-size:.72rem!important}
}
.omi-drawer-head>div>span{font-size:12px;color:#7c8da1;font-weight:650;margin-top:2px}
.palette-title{display:grid;gap:3px;margin:8px 0 12px}.palette-title b,.palette-head b{font-size:1.15rem;color:#1c2d43}.palette-title small,.palette-head small{display:block;margin-top:3px;color:#7c8da1;font-size:.76rem;line-height:1.4}.palette-head>div{min-width:0}
.progress-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.progress-overview-card{grid-column:1/-1;min-height:150px;padding:20px;border:1.5px solid #b8e0ef;border-radius:22px;background:#fff;box-shadow:var(--omi-card-shadow);display:flex;align-items:center;justify-content:space-between;gap:18px}.progress-overview-card>div:first-child{min-width:0}.progress-card-label{display:block;color:#8394a9;font-size:12px;font-weight:900;letter-spacing:.08em}.progress-overview-card strong{display:block;margin-top:5px;color:#17283e;font-size:2.25rem;line-height:1}.progress-overview-card p{margin:8px 0 0;color:#6d7e92;font-size:.88rem}.mastery-ring{--p:0%;width:94px;height:94px;flex:0 0 94px;border-radius:50%;background:conic-gradient(#4e40dc var(--p),#e9edff 0);display:grid;place-items:center;position:relative;box-shadow:0 0 0 7px #eff8fb}.mastery-ring::before{content:"";position:absolute;inset:10px;border-radius:50%;background:#fff}.mastery-ring b{position:relative;color:#4638c6;font-size:1.15rem}.progress-stat small{display:block;margin-top:6px;color:#7b8ca0;font-size:.78rem;line-height:1.4}
@media(max-width:430px){.progress-summary{grid-template-columns:1fr!important}.progress-overview-card{grid-column:auto;min-height:142px}.mastery-ring{width:84px;height:84px;flex-basis:84px}}
/* Login panitia aligned with the same mobile visual language. */
body.omi-layout.omi-login{display:block!important;min-height:100svh!important;padding:calc(var(--omi-header) + var(--omi-safe-top) + 14px) 10px calc(26px + var(--omi-safe-bottom))!important;background:#f7f8fa!important}
body.omi-layout.omi-login .login{width:min(430px,100%)!important;margin:0 auto!important;padding:22px 18px 20px!important;border:1.5px solid #dfe6ed!important;border-radius:26px!important;background:#fff!important;box-shadow:0 9px 24px rgba(27,47,65,.08)!important}
body.omi-layout.omi-login .brand{margin-bottom:18px!important}.omi-login .mark{width:54px!important;height:54px!important;border-radius:17px!important;background:linear-gradient(145deg,#075f4d,#0b8066)!important;box-shadow:0 7px 15px rgba(7,95,77,.18)!important}.omi-login h1{color:#17283e!important;line-height:1.08!important}.omi-login .lead{color:#6d7e92!important;line-height:1.5!important}.omi-login .field{color:#2c3e53!important}.omi-login .field input{min-height:50px!important;border:1.5px solid #d9e2e9!important;border-radius:15px!important;background:#fbfcfd!important}.omi-login .field input:focus{border-color:#168fc8!important;outline:3px solid #168fc822!important}.omi-login .submit{min-height:52px!important;border-radius:16px!important;background:#075f4d!important;box-shadow:0 5px 0 #054c3d,0 9px 18px rgba(5,76,61,.16)!important}.omi-login .back{min-height:44px;display:flex!important;align-items:center;justify-content:center;color:#566a82!important}
