/* =====================================================================
   examportal/blog_exam/ui.css  -  design of the exam iframe and My Reports
   (GST DOST v8 design). Only the look: the login steps are unchanged.
   ===================================================================== */
:root{
  --ink:#11283a;--ink-soft:#203a4c;--teal:#145e70;--muted:#435d6c;
  --line:#cddbe0;--accent:#ffbf30;--success:#16806a;--danger:#ad3d42;
  --ease:cubic-bezier(.22,.7,.16,1);
}
*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;background:transparent;color:var(--ink)}
html.top,html.top body{background:#f3f7f8}
body{font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}
button,input{font:inherit}
button{cursor:pointer}
a{color:#16566f}
button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid rgba(22,111,138,.55);outline-offset:3px}
[hidden]{display:none!important}

.exam-shell{width:min(100%,1240px);margin-inline:auto;padding:16px 18px 24px}
.outer-card{position:relative;isolation:isolate;overflow:hidden;border-radius:28px;padding:22px 27px 24px;
  background:linear-gradient(125deg,#eaf0f1 0%,#e2eaed 53%,#dce8eb 100%);border:1px solid #cbdde2;
  box-shadow:0 14px 36px rgba(22,49,64,.10);animation:cardEnter .56s var(--ease) both}
.outer-card::after{content:"";position:absolute;right:-130px;top:105px;width:680px;height:370px;border-radius:50%;
  background:radial-gradient(ellipse,rgba(255,255,255,.57),rgba(255,255,255,.12) 55%,transparent 72%);z-index:-1;pointer-events:none}
@keyframes cardEnter{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}

/* top bar */
.topbar{position:relative;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;border-radius:13px;
  padding:11px 19px;background:#f4f8f9;border:1px solid #c4d6dc;box-shadow:0 2px 8px rgba(23,56,73,.025)}
.brand-mini{display:flex;align-items:center;gap:9px;white-space:nowrap;font-size:13px;font-weight:800;letter-spacing:.015em;color:#152f42}
.brand-mini b{color:#b77a00}
.account-actions,.user-strip,.top-actions{display:flex;align-items:center;gap:13px;min-width:0}
.account-actions{margin-left:auto;gap:20px}
.user-strip{gap:8px}
.user-strip strong{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:760;color:#172e40}
.user-strip form{margin:0;display:inline}
.user-initials{height:27px;width:27px;flex:none;border-radius:50%;background:#dcebf0;display:grid;place-items:center;color:#174457;font-size:10px;font-weight:800;border:1px solid #c0d3dc}
.top-actions{gap:17px}
.text-link{border:0;padding:4px 0;background:none;color:#16566f;font-size:12px;font-weight:640;white-space:nowrap;text-decoration:none;cursor:pointer}
.text-link:hover{text-decoration:underline;color:#093f58}
.user-strip .text-link{color:#12607b}
.top-actions .divider{width:1px;height:17px;background:#c6d5db}
.top-actions svg{height:13px;width:13px;vertical-align:-2px}

/* main */
.inner-card{position:relative;min-width:0;isolation:isolate}
.main-grid{position:relative;display:flex;align-items:center;min-height:410px;isolation:isolate;overflow:hidden;padding:27px 18px 11px}
.content-column{z-index:2;width:58%;max-width:650px;min-width:0;display:flex;flex-direction:column;justify-content:center;align-self:stretch;padding-left:1px}
.kicker{display:inline-flex;align-items:center;gap:10px;color:#155a71;font-size:10px;letter-spacing:.135em;font-weight:800;margin-bottom:12px;text-transform:uppercase}
.kicker i{height:8px;width:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px rgba(255,191,48,.19);animation:kickerPulse 2.6s ease-in-out infinite}
@keyframes kickerPulse{50%{box-shadow:0 0 0 8px rgba(255,191,48,.08)}}
.heading{margin:0 0 9px;font-size:clamp(28px,2.85vw,37px);font-weight:820;letter-spacing:-.9px;line-height:1.17;color:#14293c}
.heading .accent{color:#15647a}
.article-title{font-size:13px;font-weight:600;color:#3b5869;line-height:1.45;max-width:480px;border-left:3px solid var(--accent);padding-left:12px;margin:0}

/* the step (one at a time; slides in) */
.stage-region{position:relative;min-height:237px;margin-top:11px;display:flex;flex-direction:column;justify-content:center}
.stage{display:flex;flex-direction:column;justify-content:center;animation:stageIn .38s var(--ease) both}
.stage.back{animation-name:stageBack}
@keyframes stageIn{from{opacity:0;transform:translate3d(14px,0,0)}to{opacity:1;transform:none}}
@keyframes stageBack{from{opacity:0;transform:translate3d(-14px,0,0)}to{opacity:1;transform:none}}
.stage-head{display:flex;align-items:center;gap:12px;margin-bottom:14px;min-width:0}
.stage-head h2{font-size:21px;font-weight:780;letter-spacing:-.35px;line-height:1.2;margin:0;color:#173044}
.stage-head .sub{display:block;font-size:12.5px;font-weight:600;color:#4b6676;margin-top:3px;letter-spacing:0}
.icon-box{display:grid;place-items:center;flex:0 0 42px;height:42px;border-radius:12px;background:#d7e7eb;border:1px solid #c5dae0;color:#27778d}
.icon-box.success{color:#0b8066;background:#d7eee5;border-color:#bee4d6;animation:popIn .5s var(--ease) both}
.icon-box.warn{color:#9a5b00;background:#fdf0d5;border-color:#f3d79b}
@keyframes popIn{0%{transform:scale(.6);opacity:0}70%{transform:scale(1.08)}100%{transform:scale(1);opacity:1}}
.icon-box svg{height:21px;width:21px}

.primary{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;max-width:500px;min-height:54px;border:1px solid #ecb12e;border-radius:12px;
  color:#183047;background:#ffc43b;box-shadow:0 4px 0 #d9a42c,0 11px 18px rgba(54,61,69,.09);font-size:16px;letter-spacing:-.2px;font-weight:800;
  text-decoration:none;transition:background-color .18s ease,transform .2s var(--ease),box-shadow .2s var(--ease)}
.primary:hover{transform:translateY(-1px);background:#ffd056;box-shadow:0 5px 0 #d9a42c,0 14px 20px rgba(54,61,69,.11)}
.primary:active{transform:translateY(2px);box-shadow:0 1px 0 #d9a42c,0 4px 10px rgba(54,61,69,.10)}
.primary:disabled,.primary[aria-disabled=true]{opacity:.55;cursor:not-allowed;transform:none;box-shadow:0 2px 0 #d9a42c}
.primary.busy{opacity:.75;cursor:wait}
.primary svg{height:19px;width:19px;flex:none;transition:transform .2s var(--ease)}
.primary:hover svg{transform:translateX(3px)}
.tab-hint{display:flex;align-items:center;gap:6px;font-size:11.5px;color:#4b6676;margin-top:9px}
.tab-hint svg{width:13px;height:13px}

.stage form{max-width:500px;margin:0}
.stage .field-shell + .error + .primary{margin-top:6px}
.field-label{display:block;font-size:11px;color:#2b4c5d;margin-bottom:6px;font-weight:750}
.field-shell{height:48px;max-width:500px;display:flex;align-items:center;gap:10px;padding:0 13px;border:1px solid #bbcdd2;border-radius:11px;background:#fff;
  transition:border-color .2s,box-shadow .2s}
.field-shell:focus-within{border-color:#22798c;box-shadow:0 0 0 3px rgba(39,119,141,.13)}
.field-shell.invalid{border-color:#d58b8f;box-shadow:0 0 0 3px rgba(173,61,66,.10);animation:shake .35s}
@keyframes shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.field-shell>svg{height:17px;width:17px;flex:none;color:#69889a}
.field-shell input{width:100%;min-width:0;border:0;background:transparent;color:#21394e;outline:0;padding:10px 0;font-size:15px;box-shadow:none}
.field-shell input::placeholder{color:#8da1ac}
.eye-btn{border:0;background:none;color:#567789;padding:5px;display:flex;align-items:center}
.eye-btn svg{width:18px;height:18px}
.account-hint{font-size:11.5px;color:#405c6a;margin:0 0 8px;max-width:480px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-hint b{color:#173044}
.success-line{font-size:13px;color:#395a6a;margin:-3px 0 15px}
.links-row{display:flex;gap:18px;flex-wrap:wrap;margin-top:9px}
.minor{border:0;background:transparent;color:#266b80;padding:5px 0;font-size:12px;font-weight:640;text-decoration:none;cursor:pointer}
.minor:hover{text-decoration:underline}
.error{font-size:11.5px;color:var(--danger);line-height:1.3;min-height:15px;margin:5px 0 4px}
.error:empty{visibility:hidden}
.alert{font-size:12.5px;line-height:1.45;border-radius:10px;padding:9px 12px;margin:0 0 12px;max-width:500px;animation:stageIn .3s var(--ease) both}
.alert.err{background:#fbecec;color:#8c2f33;border:1px solid #f0c9cb}
.alert.warn{background:#fff6e2;color:#8a5a00;border:1px solid #f3dca6}
.alert{position:relative}
.alert.show{animation:alertIn .4s var(--ease) both}
@keyframes alertIn{from{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:none}}
/* thin bar that runs down until the message goes away */
.alert.timed::after{content:"";position:absolute;left:10px;right:10px;bottom:3px;height:2px;border-radius:2px;background:currentColor;opacity:.35;
  transform-origin:left;animation:alertTimer 4.5s linear forwards}
@keyframes alertTimer{from{transform:scaleX(1)}to{transform:scaleX(0)}}
/* not available (no test) */
.empty-card .topbar{justify-content:space-between}
.topbar-note{font-size:12px;font-weight:600;color:#4b6676;white-space:nowrap}
.empty-card{display:flex;flex-direction:column}
.empty-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:26px 12px 34px;min-height:340px}
.empty-art{width:min(72%,250px);margin:0 auto;animation:emptyIn .6s .05s var(--ease) both}
@keyframes emptyIn{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
.empty-svg{display:block;width:100%;height:auto}
.empty-svg .empty-lens{animation:lensMove 5s ease-in-out infinite;transform-origin:418px 261px}
@keyframes lensMove{50%{transform:translate(-6px,-4px) rotate(-4deg)}}
.empty-pill{display:inline-flex;align-items:center;gap:9px;margin-top:14px;padding:7px 15px;border-radius:999px;background:#f7fafb;border:1px solid #c9dade;
  font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:#2f5c6d;animation:stageIn .45s .15s var(--ease) both}
.empty-pill i{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 4px rgba(255,191,48,.18)}
.empty-title{margin:12px 0 0;font-size:clamp(21px,2.4vw,27px);font-weight:820;letter-spacing:-.6px;color:#14293c;animation:stageIn .45s .22s var(--ease) both}

/* several exams (exam group) */
.exam-list{display:flex;flex-direction:column;gap:9px;max-width:540px;max-height:250px;overflow:auto;padding:2px}
.exam-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:rgba(255,255,255,.82);border:1px solid #c7d8dd;border-radius:12px;padding:10px 12px}
.exam-row h3{margin:0;font-size:14px;color:#173044}
.exam-row .m{font-size:11.5px;color:#4b6676}
.exam-row .m.warn{color:#9a5b00}
.exam-row form{margin:0;flex:none}
.exam-row .primary{min-height:40px;font-size:14px;padding:0 16px;width:auto;box-shadow:0 3px 0 #d9a42c}

/* illustration */
.art-wrap{position:absolute;inset:18px 0 8px auto;width:43%;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:1}
.art-wrap::before{content:"";position:absolute;z-index:-1;width:92%;aspect-ratio:1;max-height:360px;border-radius:50%;
  background:radial-gradient(ellipse at 50% 46%,rgba(255,255,255,.92),rgba(237,246,247,.63) 58%,rgba(239,247,247,0) 74%)}
.art-svg{display:block;width:min(100%,455px);height:auto;max-height:353px;filter:drop-shadow(0 10px 13px rgba(30,62,81,.10));animation:illustrationEnter .65s .08s var(--ease) both}
@keyframes illustrationEnter{from{opacity:0;transform:translateX(12px)}to{opacity:1;transform:translateX(0)}}
.art-svg .art-board{animation:floatY 6s ease-in-out infinite;transform-origin:center}
.art-svg .art-leaf{animation:sway 5s ease-in-out infinite;transform-origin:150px 270px}
.art-svg .art-hand{animation:tick 12s linear infinite;transform-origin:431px 274px}
.art-svg .art-tick{stroke-dasharray:40;stroke-dashoffset:40;animation:draw .7s .6s var(--ease) forwards}
@keyframes floatY{50%{transform:translateY(-5px)}}
@keyframes sway{50%{transform:rotate(-2.5deg)}}
@keyframes tick{to{transform:rotate(360deg)}}
@keyframes draw{to{stroke-dashoffset:0}}

/* footer: your progress */
.progress{position:relative;z-index:3;display:grid;grid-template-columns:1.2fr repeat(var(--cols,3),minmax(0,1fr));align-items:center;min-height:80px;padding:10px 12px;
  background:rgba(255,255,255,.76);border:1px solid #c1d1d7;border-radius:14px;animation:cardEnter .6s .12s var(--ease) both}
.progress-label{display:flex;align-items:center;gap:10px;padding:0 17px 0 10px;white-space:nowrap;font-size:13px;font-weight:770;color:#214055}
.progress-label svg{height:21px;width:21px;color:#20768c;flex:none}
.metric{min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:45px;border-left:1px solid #cddde2;text-align:center}
.metric strong{font-size:19px;font-weight:820;letter-spacing:-.2px;line-height:1.2;color:#18334a;white-space:nowrap;font-variant-numeric:tabular-nums}
.metric span{font-size:11px;color:#435d6c;white-space:nowrap}
.metric .bar{width:min(80%,110px);height:4px;border-radius:9px;background:#dbe7ea;overflow:hidden;margin-top:2px}
.metric .bar i{display:block;height:100%;background:linear-gradient(90deg,#20768c,#16806a);border-radius:9px;transform-origin:left;animation:grow 1s .3s var(--ease) both}
@keyframes grow{from{transform:scaleX(0)}}

/* My Reports */
.rep-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:24px 8px 6px}
.rep-head .heading{margin:0;white-space:nowrap}
.rep-tabs{display:inline-flex;gap:4px;padding:4px;background:rgba(255,255,255,.7);border:1px solid #c7d8dd;border-radius:11px}
.rep-tabs a{padding:6px 12px;border-radius:8px;font-size:12px;font-weight:700;color:#3b5869;text-decoration:none}
.rep-tabs a.on{background:#fff;color:#14293c;box-shadow:0 1px 3px rgba(20,41,60,.12)}
.rep-list{display:flex;flex-direction:column;gap:10px;padding:14px 8px 8px}
.rep-item{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr) auto auto;align-items:center;gap:14px;background:rgba(255,255,255,.84);
  border:1px solid #c7d8dd;border-radius:14px;padding:13px 16px;animation:stageIn .4s var(--ease) both}
.rep-item h3{margin:0;font-size:14.5px;color:#14293c;line-height:1.3}
.rep-item .m{font-size:11.5px;color:#4b6676;margin-top:2px}
.rep-score{font-size:18px;font-weight:820;color:#18334a;white-space:nowrap;font-variant-numeric:tabular-nums}
.rep-score small{font-size:12px;color:#4b6676;font-weight:600}
.pill{display:inline-block;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:750;white-space:nowrap}
.pill.ok{background:#d7eee5;color:#0b6b55}.pill.bad{background:#fbe3e4;color:#9b2f35}.pill.na{background:#e8eef0;color:#4b6676}
.rep-view{min-height:40px;padding:0 16px;font-size:13.5px;width:auto;box-shadow:0 3px 0 #d9a42c}
.rep-empty{background:rgba(255,255,255,.8);border:1px dashed #b9ccd2;border-radius:14px;padding:26px;text-align:center;color:#3b5869}
.rep-note{font-size:12px;color:#4b6676;padding:4px 8px 0}

.exam-shell.full{min-height:100vh;display:flex;flex-direction:column;justify-content:center}
/* inside an iframe (blog / embed code): no space and no shadow around the card */
html:not(.top) .exam-shell{padding:0;width:100%}
html:not(.top) .outer-card{box-shadow:none}
/* embed code (iframe of a fixed height, no script): the card fills the iframe */
html.embed:not(.top) .exam-shell{min-height:100vh;display:flex;flex-direction:column}
html.embed:not(.top) .outer-card{flex:1;display:flex;flex-direction:column}
html.embed:not(.top) .inner-card{flex:1;display:flex;flex-direction:column}
html.embed:not(.top) .main-grid{flex:1}
html:not(.top) .exam-shell:has(.empty-card){min-height:100vh;display:flex;flex-direction:column}
html:not(.top) .exam-shell .empty-card{flex:1}

@media(max-width:980px){
  .exam-shell{padding:11px}.outer-card{padding:19px}.main-grid{min-height:387px}
  .art-wrap{width:44%;inset:32px -8px 8px auto}.art-svg{max-height:334px}
  .heading{font-size:clamp(26px,3.2vw,34px)}
}
@media(max-width:680px){
  .exam-shell{padding:7px}
  .outer-card{padding:12px 12px 15px;border-radius:21px}
  .topbar{padding:9px 12px;min-height:0;gap:8px;border-radius:12px}
  .brand-mini{display:none}
  .empty-card .brand-mini{display:flex;font-size:12px}
  .empty-card .topbar{display:flex}
  .empty-body{padding:20px 4px 24px;min-height:300px}
  .empty-art{width:min(70%,210px)}
  .account-actions{width:100%;margin:0;gap:6px 10px;justify-content:space-between;flex-wrap:wrap}
  .top-actions{margin-left:auto;gap:9px}
  .top-actions .divider{height:12px}
  .text-link{font-size:11px}
  .user-strip{min-width:0;gap:7px}
  .user-strip strong{font-size:11.5px;max-width:min(38vw,170px)}
  .user-initials{height:23px;width:23px;font-size:9px}
  .main-grid{min-height:0;display:block;padding:22px 7px 5px;overflow:hidden}
  .content-column{width:100%;max-width:none;padding:0;position:relative;z-index:2}
  .kicker{font-size:9px;margin-bottom:8px;letter-spacing:.1em}
  .heading{max-width:72%;font-size:clamp(24px,6vw,31px);margin-bottom:8px;line-height:1.15;letter-spacing:-.65px}
  .article-title{font-size:11.5px;max-width:64%;line-height:1.4}
  .art-wrap{width:43%;height:165px;top:16px;right:-10px;bottom:auto;opacity:.82;z-index:1}
  .art-wrap::before{width:100%;max-height:155px}
  .art-svg{max-height:174px;max-width:190px;filter:drop-shadow(0 5px 7px rgba(30,62,81,.07))}
  .stage-region{min-height:0;margin-top:22px;justify-content:flex-start}
  .stage-head h2{font-size:19px}.stage-head{gap:10px;margin-bottom:10px}
  .icon-box{height:36px;flex-basis:36px;border-radius:10px}.icon-box svg{width:18px;height:18px}
  .primary{min-height:50px;font-size:15px;max-width:none;border-radius:10px}
  .field-shell{height:46px}
  .field-shell input{font-size:16px}
  .progress{grid-template-columns:repeat(var(--cols,3),minmax(0,1fr));padding:9px 8px 12px;min-height:88px;gap:6px;margin-top:6px;border-radius:12px}
  .progress-label{grid-column:1/-1;border-bottom:1px solid #d1e0e4;padding:0 2px 6px;font-size:11px}
  .progress-label svg{height:16px;width:16px}
  .metric{min-height:34px}.metric:nth-child(2){border-left:0}
  .metric strong{font-size:15px}.metric span{font-size:10px}
  .exam-row{flex-direction:column;align-items:stretch}
  .exam-row .primary{width:100%}
  .rep-head{padding:18px 4px 4px}
  .rep-list{padding:12px 2px 6px}
  .rep-item{grid-template-columns:1fr auto;gap:8px 12px;padding:12px}
  .rep-item .rep-qa{grid-column:1}
  .rep-item .rep-view{grid-column:1/-1;width:100%}
}
@media(max-width:370px){
  .outer-card{padding:9px}.topbar{padding:8px 9px}
  .top-actions{gap:7px}.text-link{font-size:10px}
  .heading{font-size:23px}.stage-head h2{font-size:18px}
  .art-wrap{right:-20px;width:46%;opacity:.72}
  .metric strong{font-size:14px}.metric span{font-size:9.3px}
}
@media(prefers-reduced-motion:reduce){*:not(.alert),*:not(.alert)::before{transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
