/* ============================================================================
 Comedians Teach You (aid 14) - Michigan course pages - ONE complete stylesheet
 File name: aid14-cty-course-v1.css
 BUILD: 2026-11-23-A
 This is the ONLY course stylesheet this school links. Nothing else to add.
 Header record of aid 14, LAST line inside the <head> (after the inline <style> block):
 <link rel="stylesheet" href="https://cheapeasyfun.com/affimg/14/aid14-cty-course-v1.css">
 Covers: start/login, register, confirmation, tracker step, payment, student
 home, chapters, quizzes, final test, result page, profile edit.
 To change this school's colours or price: edit the SCHOOL SETTINGS block only.
 ========================================================================= */

/* ===== SCHOOL SETTINGS (Comedians Teach You: teal header from comediansteachyou.com, purple line (its site shares sky blue with Simple Fast Fun Easy, so purple keeps it apart)) ===== */
:root:root{
 --mi-primary:#1C536B; /* buttons, links, table header, registration bar (the teal on comediansteachyou.com) */
 --mi-primary-dark:#133B4D; /* button hover */
 --mi-head-bg:#1C536B; /* header bar (the logo is light, so keep this dark) */
 --mi-accent:#8E5CC2; /* line under the header, pay card edge: this school's own colour */
 --mi-soft:#F0E8F8; /* hover and selected answers */
 --mi-page:#F7F5FA; /* page background */
 --mi-foot:#0F2F3D; /* footer bar */
 --mi-course:"Michigan Basic Driver Improvement Course"; /* name on the registration bar */
 --mi-price:"$57.95"; /* full list price on comediansteachyou.com ($47.95 with the instant coupon) */
}

/* ===================== SHARED MICHIGAN LAYOUT (same in every Michigan school's file) =====================
 Everything below the settings block is identical for every Michigan school.
 Every rule starts with ":root body" so it beats the sheets the platform loads
 later inside the page (chapters.css and menu.css) and the inline style block. */

:root{
 --mi-ink:#111827;--mi-muted:#4B5563;--mi-line:#E5E7EB;--mi-card:#fff;--mi-ok:#16A34A;
 --mi-head-h:72px;--mi-timer-h:46px}
@media (max-width:640px){:root{--mi-head-h:64px}}

/* ---------- 0. Base: page background, text, nothing wider than the screen ---------- */
html{overflow-x:hidden;background:var(--mi-page)}
:root body{max-width:100%}
:root body{background:var(--mi-page)!important;color:var(--mi-ink);font-family:Arial,Helvetica,sans-serif;-webkit-text-size-adjust:100%}
:root body img,:root body video,:root body iframe,:root body object,:root body embed{max-width:100%!important;box-sizing:border-box}
:root body img{height:auto}
:root body [style*="width"]:not(#prog_bar *){max-width:100%!important;box-sizing:border-box}
:root body table[width]{max-width:100%}
:root body p,:root body li,:root body td{overflow-wrap:break-word}

/* ---------- 1. School header: own colour, logo first, pinned at the top ---------- */
:root body > a[name="top"]{position:absolute;top:0;left:0}
:root body:has(> #header){padding-top:var(--mi-head-h)!important}
:root body > #header{position:fixed!important;top:0;left:0;right:0;z-index:50;display:flex!important;align-items:center;gap:4px 12px;
 height:var(--mi-head-h)!important;min-height:0;width:100%!important;max-width:none!important;margin:0!important;overflow:visible!important;
 padding:0 max(16px,calc((100% - 1000px)/2))!important;box-sizing:border-box;
 background:var(--mi-head-bg)!important;border-bottom:3px solid var(--mi-accent)!important;box-shadow:0 1px 4px rgba(16,24,40,.12)}
:root body > #header > .row{margin:0!important;max-width:none!important;width:auto!important;padding:0!important}
:root body > #header > .row::before,:root body > #header > .row::after{content:none!important}
:root body > #header > .row > .columns{padding:0!important;width:auto!important;float:none!important}
:root body > #header > .row:nth-child(2){order:1;flex:1 1 auto;min-width:0} /* logo */
:root body > #header > .row:nth-child(3){order:2;flex:none} /* Support */
:root body > #header > .row:nth-child(1){order:3;flex:none} /* Login / Register */
:root body > #header #logo{margin:0!important;width:auto!important;max-width:100%}
:root body > #header #logo a{display:block;line-height:0}
:root body > #header #logo img{display:block;height:auto;max-height:calc(var(--mi-head-h) - 12px);width:auto;max-width:100%!important}
:root body > #header .top-bar{height:auto!important;line-height:normal!important;padding:0!important;border:0!important;
 background:none!important;display:block!important;margin:0!important;overflow:visible!important}
:root body > #header :is(.top-bar ul,ul#reg_log){margin:0!important;padding:0!important;float:none!important;display:flex!important;list-style:none;background:none!important}
:root body > #header :is(.top-bar ul li,ul#reg_log li){float:none!important;display:block!important;padding:0!important;background:none!important}
:root body > #header :is(.top-bar,#reg_log) a{display:inline-flex;align-items:center;min-height:44px;padding:0 10px!important;border-radius:8px;
 font:600 15px/1.2 Arial,Helvetica,sans-serif!important;color:#fff!important;text-decoration:none!important;background:none!important;white-space:nowrap}
:root body > #header :is(.top-bar,#reg_log) a:hover{background:rgba(255,255,255,.14)!important}
/* signed-in pages: "Login Here / Register Now" are not needed */
:root body:has(#menu_container,#Timer,.mainbox,#payment-form,#right_panel,form[name="finaltest"],div.final,table#table1,input[name="First_Name"],input#test,.security_entry) > #header > .row:nth-child(1){display:none!important}
@media (max-width:640px){
 :root body > #header{padding:0 10px!important;gap:4px}
 :root body > #header :is(.top-bar,#reg_log) a{font-size:14px!important;padding:0 7px!important}
 /* phones: logo + Login + Register fit; Support stays reachable on signed-in pages */
 :root body:not(:has(#menu_container,#Timer,.mainbox,#payment-form,#right_panel,form[name="finaltest"],div.final,table#table1,input[name="First_Name"],input#test,.security_entry)) > #header > .row:nth-child(3){display:none!important}
}

/* ---------- 2. Page area: one white card; footer full width in the school's colour ---------- */
:root body > #content_container{max-width:1000px;margin:20px auto 0!important;padding:0 16px!important;box-sizing:border-box;min-height:calc(100vh - 200px)}
:root body #content_container > #aff_content{width:auto!important;max-width:100%!important;margin:0!important;background:var(--mi-card)!important;
 border:1px solid var(--mi-line);border-radius:16px;padding:24px!important;box-shadow:0 1px 3px rgba(16,24,40,.06);box-sizing:border-box;text-align:left}
:root body #aff_content > div[align="center"]{text-align:left}
:root body div#footer_nav{max-width:none!important;width:100%!important;height:auto!important;background:var(--mi-foot)!important;margin:24px 0 0!important;padding:0!important}
:root body div#footer_nav ul{width:auto!important;max-width:100%!important;margin:0!important;padding:16px 12px!important;background:none!important;height:auto!important;text-align:center}
:root body #footer_nav ul li{display:block!important;padding:0!important;color:#fff!important;font:400 14px/1.4 Arial,Helvetica,sans-serif!important}
@media (max-width:640px){
 :root body > #content_container{margin:0 auto!important;padding:0!important}
 :root body #content_container > #aff_content{border-radius:0;border-width:0 0 1px;padding:16px 14px!important;box-shadow:none}
}

/* ---------- 3. One standard look for buttons, links and fields ---------- */
:root body #aff_content a{color:var(--mi-primary)}
:root body #aff_content :is(input[type="submit"],input[type="button"],button){
 -webkit-appearance:none;appearance:none;display:inline-block;
 background:var(--mi-primary)!important;color:#fff!important;border:0!important;border-radius:8px!important;
 font:600 16px/1.2 Arial,Helvetica,sans-serif!important;padding:12px 24px!important;min-height:44px;height:auto!important;margin:4px!important;
 cursor:pointer;text-decoration:none;box-shadow:0 1px 2px rgba(0,0,0,.15);max-width:100%;white-space:normal}
:root body #aff_content :is(input[type="submit"],input[type="button"],button):hover{background:var(--mi-primary-dark)!important}
:root body #aff_content :is(input[type="submit"],input[type="button"],button):focus-visible{outline:3px solid #93C5FD;outline-offset:2px}
/* "Back" and "Cancel": outlined, so the main button stands out */
:root body #aff_content input[type="button"]:is([value="Back"],[value="Cancel"]){background:#fff!important;color:var(--mi-primary)!important;
 box-shadow:inset 0 0 0 1px var(--mi-primary)!important}
:root body #aff_content :is(input[type="text"],input[type="password"],input[type="email"],input[type="tel"],input:not([type]),select,textarea){
 min-height:44px;padding:8px 12px!important;border:1px solid #CBD5E1!important;border-radius:8px!important;background-color:#fff!important;
 font:400 16px Arial,Helvetica,sans-serif!important;color:var(--mi-ink);box-sizing:border-box;max-width:100%}
:root body #aff_content :is(input[type="text"],input[type="password"],input:not([type]),select):focus{border-color:var(--mi-primary)!important;outline:3px solid var(--mi-soft)}
:root body #aff_content :is(input[type="radio"],input[type="checkbox"]){width:22px;height:22px;accent-color:var(--mi-primary);cursor:pointer;vertical-align:middle}

/* ---------- 4. Login page ---------- */
:root body #login_container{width:auto!important;max-width:420px;margin:0 auto!important;text-align:left!important}
:root body #login_container form > br{display:none}
:root body #login_container .row{max-width:none!important;margin:0!important;width:auto!important}
:root body #login_container .row .form_entry{width:auto!important;margin:0 0 12px!important;padding:0!important;background:none!important;border:0!important;text-align:left!important}
:root body #login_container .form_entry label{display:block!important;margin:0 0 6px;font:700 15px/1.3 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)!important;padding:0!important}
:root body #login_container .form_entry input{width:100%!important}
:root body #login_container input[type="submit"]{width:100%;margin:8px 0 0!important;min-height:50px;font-size:17px!important}
:root body #login_container div[style*="color:red"]:not(:empty){margin:0 0 14px;padding:10px 14px;border-radius:8px;background:#FEF2F2;border:1px solid #FECACA;
 border-left:4px solid #DC2626;color:#991B1B!important;font:600 15px/1.4 Arial,Helvetica,sans-serif}
:root body #login_container p[style*="color"]{margin:14px 0 0!important;color:var(--mi-muted)!important;font:400 14px/1.5 Arial,Helvetica,sans-serif!important;text-align:left}
:root body #login_container p[style*="color"] a{color:var(--mi-primary)!important;font-weight:700;overflow-wrap:anywhere}

/* ---------- 5. Registration (pay.universalecom.com/mi/register.php) ---------- */
:root body #registration_left_panel{display:none!important}
:root body #registration_panel{float:none!important;width:auto!important;max-width:640px;margin:0 auto!important;padding:0!important}
/* course name + price pinned under the header while the student fills in the form */
:root body #welcome{position:sticky;top:var(--mi-head-h);z-index:30;display:flex;align-items:center;justify-content:space-between;gap:12px;
 margin:-24px -24px 18px!important;padding:12px 24px;background:var(--mi-primary);color:#fff;border-radius:16px 16px 0 0;box-shadow:0 2px 6px rgba(16,24,40,.12)}
:root body #welcome h2{margin:0!important;font-size:0!important;line-height:0;color:#fff!important}
:root body #welcome h2::before{content:var(--mi-course);font:700 17px/1.3 Arial,Helvetica,sans-serif}
:root body #welcome::after{content:var(--mi-price);flex:none;background:#fff;color:var(--mi-primary);border-radius:99px;padding:6px 14px;font:800 18px/1 Arial,Helvetica,sans-serif}
:root body #registration_panel > p{margin:0 0 14px!important;font:400 15px/1.5 Arial,Helvetica,sans-serif!important;color:var(--mi-muted)!important}
:root body #registration_container{width:auto!important;margin:0!important}
:root body .registration_subdivision{width:auto!important;margin:0 0 16px!important;padding:0!important;border:0!important;background:none!important}
:root body .subdivision_title{margin:0 0 6px!important;font:700 18px/1.3 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)!important}
/* each field: label above a full-width box */
:root body #registration_container .row,:root body #registration_container .row_err{display:block!important;max-width:none!important;width:auto!important;
 margin:0!important;padding:12px 0!important;background:none!important;border:0!important;border-bottom:1px solid var(--mi-line)!important;text-align:left!important}
:root body #registration_container label.form{display:block!important;float:none!important;margin:0 0 6px!important;padding:0!important;
 font:700 15px/1.3 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)!important}
:root body #registration_container label.form .desc{font:400 13px/1.3 Arial,Helvetica,sans-serif;color:var(--mi-muted)}
:root body #registration_container .contact_field{display:block;width:100%!important}
/* date fields (deadline, date of birth): month / day / year side by side */
:root body #registration_container .row:has(> select + select){display:flex!important;flex-wrap:wrap;gap:8px;align-items:center}
:root body #registration_container .row:has(> select + select) > label{flex:1 0 100%}
:root body #registration_container .row:has(> select + select) > select{flex:1 1 90px;min-width:0}
:root body #registration_container .row:has(> select + select) > .note{flex:1 0 100%}
:root body #registration_container .row > select:only-of-type{width:auto;min-width:120px}
/* helper text under a field (license format, deadline note) */
:root body #registration_container .note{margin:8px 0 0!important;font:400 14px/1.45 Arial,Helvetica,sans-serif!important;color:var(--mi-muted)!important;text-align:left!important}
/* the re-processing fee line */
:root body #registration_container form > .registration_subdivision > strong[style*="color"]{display:block;margin:14px 0 0;padding:10px 14px;border-radius:8px;
 background:#FFFBEB;border:1px solid #FDE68A;color:#92400E!important;font:600 14px/1.45 Arial,Helvetica,sans-serif}
:root body #registration_container form div[align="center"]{margin-top:18px}
:root body #registration_container input[name="submit"]{width:100%;min-height:52px;font-size:18px!important;margin:0!important}
/* missing or wrong fields: one red box at the top, the field rows marked red */
:root body #registration_panel :is(p.error,div.error,ul.error):not(:empty),
:root body #registration_panel #overwrite{display:block;margin:0 0 16px!important;padding:12px 16px!important;border-radius:8px;background:#FEF2F2!important;
 border:1px solid #FECACA!important;border-left:4px solid #DC2626!important;color:#991B1B!important;font:400 14px/1.6 Arial,Helvetica,sans-serif!important;text-align:left}
:root body #registration_panel .error :is(ul,ol){margin:4px 0 0 18px!important;padding:0}
:root body #registration_panel .error li{margin:0!important;padding:0!important;text-align:left}
:root body #registration_panel #overwrite a{color:#991B1B!important;font-weight:700;text-decoration:underline}
:root body #registration_container .row_err label.form{color:#B91C1C!important}
:root body #registration_container .row_err :is(input,select){border-color:#DC2626!important;background:#FEF2F2!important}
@media (max-width:640px){
 :root body #welcome{margin:-16px -14px 14px!important;padding:10px 14px;border-radius:0}
 :root body #welcome h2::before{font-size:15px}
 :root body #welcome::after{font-size:16px;padding:6px 10px}
}

/* ---------- 6. Registration confirmation (username + password) ----------
 Not seen yet for Michigan: styled the same way as Virginia. Checked on the second pass. */
:root body #receipt_container{width:auto!important;max-width:640px;margin:0 auto!important;padding:0!important}
:root body #receipt{width:auto!important;margin:0 0 18px!important;padding:16px 18px!important;border:1px solid var(--mi-line);border-radius:12px;background:var(--mi-page);text-align:left}
:root body #receipt .entry{padding:6px 0!important;font:400 15px/1.45 Arial,Helvetica,sans-serif!important;border-bottom:1px solid var(--mi-line)}
:root body #receipt .entry:last-child{border-bottom:0}
:root body #confirm-container{max-width:640px;margin:0 auto}
:root body #confirm-container > table:first-child{width:100%!important;margin:0 0 22px!important;border:1px solid var(--mi-line);border-radius:12px;
 border-collapse:separate!important;border-spacing:0!important;background:var(--mi-page)!important;overflow:hidden}
:root body #confirm-container > table:first-child td{padding:9px 16px!important;border:0!important;vertical-align:top;background:none!important}
:root body #confirm-container > table:first-child tr > td + td{font-weight:700;overflow-wrap:anywhere}
:root body #confirm-container > table:last-child,:root body #confirm-container > table:last-child > tbody,
:root body #confirm-container > table:last-child tr,:root body #confirm-container > table:last-child td{display:block!important;width:100%!important;padding:0!important;border:0!important;background:none!important}
:root body #confirm-container > table:last-child{padding:18px 20px!important;border:1px solid var(--mi-line)!important;border-radius:12px;box-sizing:border-box;background:#fff!important}
:root body #confirm-container > table:last-child tr{margin:0 0 14px!important}
:root body #confirm-container input:is([type="text"],[type="password"]){display:block;width:100%!important}
:root body :is(#confirm-container,#receipt_container) input[type="submit"]{width:100%;min-height:52px;font-size:18px!important;margin:8px 0 0!important}

/* ---------- 7. Student home: traffic light, details, progress bar, chapter table ---------- */
:root body #aff_content > div[align="center"]:has(#menu_container){text-align:left}
:root body #menu_container{width:auto!important;max-width:820px;margin:0 auto 18px!important;float:none!important;height:auto!important}
:root body #menu_header{display:grid!important;grid-template-columns:auto 1fr;gap:20px!important;align-items:stretch!important;margin:0!important;
 min-height:0!important;height:auto!important;padding:0!important;background:none!important;overflow:visible!important}
:root body #stoplight_container{float:none!important;display:flex!important;align-items:center;width:auto!important;height:auto!important;
 padding:16px 20px 16px 16px!important;margin:0!important;background:#fff;border:1px solid var(--mi-line);border-radius:14px;box-sizing:border-box}
:root body #stoplight_container table{display:block!important;width:auto!important;height:auto!important;background:none!important;border:0!important}
:root body #stoplight_container :is(tbody,tr){display:block!important}
:root body #stoplight_container td{display:block!important;width:auto!important;height:auto!important;padding:0!important;background:none!important;border:0!important}
:root body #stoplight_container td a{display:flex!important;align-items:center;gap:16px;height:auto!important;min-height:0!important;padding:0!important;
 background:none!important;color:var(--mi-ink)!important;font:600 17px/1.25 Arial,Helvetica,sans-serif!important;text-decoration:none!important}
:root body #stoplight_container td a:hover{background:none!important}
:root body #stoplight_container .light_text{margin:0!important;line-height:1.25!important;color:inherit!important;font:inherit!important;padding:8px 10px;border-radius:8px}
:root body #stoplight_container td a:hover .light_text{background:var(--mi-soft);text-decoration:underline}
:root body #stoplight_container td a:focus-visible .light_text{outline:3px solid #93C5FD}
/* lamps inside one dark box, words outside it */
:root body #stoplight_container td a::before,
:root body #stoplight_container td:not(:has(a))::before{content:"";flex:none;width:64px;height:64px;background-color:#1F2937}
:root body #stoplight_container td:not(:has(a)){display:flex!important;align-items:center;gap:16px}
:root body #red_light::before,:root body #red_light a::before{border-radius:14px 14px 0 0;
 background:radial-gradient(circle,#FCA5A5 0 3px,#EF4444 9px 19px,#450A0A 20px 22px,transparent 23px),#1F2937!important}
:root body #yellow_light::before,:root body #yellow_light a::before{
 background:radial-gradient(circle,#FEF08A 0 3px,#FACC15 9px 19px,#422006 20px 22px,transparent 23px),#1F2937!important}
:root body #green_light::before,:root body #green_light a::before{border-radius:0 0 14px 14px;
 background:radial-gradient(circle,#BBF7D0 0 3px,#22C55E 9px 19px,#052E16 20px 22px,transparent 23px),#1F2937!important}
:root body #red_light:has(a)::before,:root body #yellow_light:has(a)::before,:root body #green_light:has(a)::before{content:none}
:root body #green_light a{color:var(--mi-primary)!important;font-weight:700!important}
:root body #green_light a .light_text::after{content:" \203A";font-size:20px}
:root body #stoplight_container td:not(:has(a)) .light_text{font:700 16px/1.25 Arial,Helvetica,sans-serif!important;color:var(--mi-muted)!important}
:root body #stoplight_container #green_light:not(:has(a)) .light_text{background:#15803D!important;color:#fff!important}
/* student details and the due-date countdown (the page hid them on phones) */
:root body #profile_container{display:block!important;float:none!important;width:auto!important;height:auto!important;margin:0!important;
 padding:18px 20px!important;border:1px solid var(--mi-line)!important;border-radius:14px;background:var(--mi-page)!important;
 font:400 16px/1.5 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)!important;text-align:left!important;box-sizing:border-box}
:root body #profile_container > b:first-child{display:block;font-size:20px;margin-bottom:6px}
:root body #profile_container > b:first-child + br,:root body #profile_container > b:first-child + br + br{display:none}
:root body #profile_container > b:last-of-type > div{margin-top:10px;padding:10px 12px;border-radius:8px;background:#FFFBEB;border:1px solid #FDE68A;
 color:#92400E;font-weight:600}
:root body #profile_container > b:last-of-type > div > br{display:none}
:root body #profile_container > b:last-of-type > div span[style*="color"]{color:#B45309!important}
@media (max-width:640px){
 :root body #menu_header{grid-template-columns:1fr;gap:14px!important}
 :root body #stoplight_container{padding:14px!important}
 :root body #stoplight_container td a,:root body #stoplight_container td:not(:has(a)) .light_text{font-size:16px!important}
 :root body #stoplight_container td a::before,:root body #stoplight_container td:not(:has(a))::before{width:58px;height:58px}
}
/* the wrapper table around the progress bar and chapter list */
:root body table[height="300"]{display:block!important;width:100%!important;height:auto!important;max-width:820px;margin:0 auto!important}
:root body table[height="300"] > tbody,:root body table[height="300"] > tbody > tr{display:block!important}
:root body table[height="300"] > tbody > tr > td{display:block!important;width:auto!important;padding:0!important;text-align:left!important}
:root body table[height="300"] > tbody > tr > td:empty,
:root body table[height="300"] > tbody > tr > td[width="174"]{display:none!important}
/* progress bar: the page draws the fill 606px wide at 100%, so the bar keeps
 that width and is scaled down to fit (the fill stays true on every screen) */
:root body #prog_per{margin:0 0 4px!important;text-align:left!important;font:700 15px/1.4 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)}
:root body #prog_per::before{content:"Course progress: ";font-weight:400;color:var(--mi-muted)}
:root body #prog_bar{display:block!important;width:606px!important;max-width:none!important;height:20px!important;margin:0 0 16px!important;padding:0!important;
 background:#E5E7EB!important;border:0!important;border-radius:99px;overflow:hidden;box-sizing:content-box}
:root body #prog_bar > div{height:20px!important;max-width:none!important;background:var(--mi-ok)!important;border-radius:99px}
@media (max-width:860px){:root body #prog_bar{zoom:.9}}
@media (max-width:640px){:root body #prog_bar{zoom:.52}}
@media (max-width:360px){:root body #prog_bar{zoom:.46}}
/* chapter list: one clean table */
:root body #menu_table{display:table!important;width:100%!important;max-width:820px;margin:0 auto!important;border-collapse:separate!important;border-spacing:0;
 border:1px solid var(--mi-line)!important;border-radius:14px;overflow:hidden;background:#fff}
:root body #menu_table > tbody{display:table-row-group!important}
:root body #menu_table tr{display:table-row!important}
:root body #menu_table td{display:table-cell!important;width:auto!important;padding:12px 14px!important;border:0!important;border-bottom:1px solid var(--mi-line)!important;
 background:#fff!important;font:400 15px/1.35 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)!important;vertical-align:middle!important;text-align:left!important}
:root body #menu_table tr:last-child td{border-bottom:0!important}
:root body #menu_table tr:nth-child(odd):not(.menu_header) td{background:#FAFBFC!important}
:root body #menu_table tr.menu_header td{background:var(--mi-primary)!important;color:#fff!important;border:0!important;letter-spacing:.04em;
 font:700 13px/1.2 Arial,Helvetica,sans-serif!important;text-transform:uppercase}
:root body #menu_table tr.menu_header td b{color:#fff!important;font-weight:700}
:root body #menu_table tr.menu_header td:nth-child(3){text-align:center!important}
:root body #menu_table tr.menu_header td:nth-child(4){text-align:right!important}
:root body #menu_table td:nth-child(1){width:1%!important;white-space:nowrap!important;color:var(--mi-muted)!important}
:root body #menu_table td:nth-child(1) b{font-weight:600}
:root body #menu_table td ul{margin:0!important;padding:0!important;list-style:none!important}
:root body #menu_table li.sections{margin:0!important;padding:2px 0!important;font:600 15px/1.35 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)!important;list-style:none}
:root body #menu_table li.sections b{font-weight:600}
:root body #menu_table li.sections a{color:var(--mi-primary)!important;text-decoration:underline!important}
:root body #menu_table tr:not(.menu_header) td:nth-child(3){width:1%!important;white-space:nowrap!important;text-align:center!important}
:root body #menu_table tr:not(.menu_header) td:nth-child(4){width:1%!important;white-space:nowrap!important;text-align:right!important;font-variant-numeric:tabular-nums}
:root body #menu_table td:nth-child(4) font{color:var(--mi-muted)!important;font-size:14px!important}
/* status: the "INCOMPLETE" picture and the "DONE" stamp printed over it become clean labels */
:root body #menu_table tr:not(.menu_header) td:nth-child(3) img{display:none!important}
:root body #menu_table tr:not(.menu_header) td:nth-child(3)::after{content:"To do";display:inline-block;padding:5px 10px;border-radius:99px;
 font:700 12px/1 Arial,Helvetica,sans-serif;background:#F3F4F6;color:#4B5563;border:1px solid #E5E7EB}
:root body #menu_table tr:not(.menu_header) td:nth-child(3):has(img[src$="/complete.jpg"])::after{content:"\2713 Done";background:#DCFCE7;color:#166534;border-color:#BBF7D0}
/* final test row under the chapter list */
:root body table.menu_footer{display:table!important;width:100%!important;max-width:820px;margin:14px auto 0!important;border:1px solid var(--mi-line)!important;
 border-collapse:separate!important;border-radius:12px;background:var(--mi-page)!important;overflow:hidden}
:root body table.menu_footer td{display:table-cell!important;width:50%!important;padding:14px 16px!important;border:0!important;background:none!important;
 font:700 16px/1.3 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)!important;text-align:left!important}
:root body table.menu_footer td + td{text-align:right!important;color:#B91C1C!important}
:root body table.menu_footer td + td b{color:inherit!important}
:root body table.menu_footer a{display:inline-block;padding:10px 18px;border-radius:8px;background:var(--mi-primary);color:#fff!important;text-decoration:none}
@media (max-width:640px){
 :root body #menu_table td{padding:10px 8px!important;font-size:14px!important}
 :root body #menu_table li.sections{font-size:14px!important}
 :root body #menu_table tr.menu_header td{font-size:11px!important;letter-spacing:0}
 :root body #menu_table td:nth-child(1){font-size:13px!important}
 :root body #menu_table tr:not(.menu_header) td:nth-child(3)::after{padding:4px 7px;font-size:11px}
}
@media (max-width:360px){:root body #menu_table td{padding:9px 5px!important;font-size:13px!important}}
/* chapter review pop-up (sized for a 900px desktop) */
:root body #chapreview{left:8px!important;right:8px!important;width:auto!important;margin-left:0!important;max-width:900px;height:80vh!important;
 margin:0 auto!important;border-radius:12px;overflow:hidden;box-shadow:0 10px 30px rgba(0,0,0,.25)}
:root body #chapreview iframe{width:100%!important;height:calc(100% - 44px)!important}
:root body #reviewbar{width:auto!important;height:44px!important;box-sizing:border-box;display:flex;align-items:center;justify-content:flex-end;background:var(--mi-primary)!important;border:0!important}
:root body #reviewbar a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;color:#fff!important;font:700 20px Arial!important}

/* ---------- 8. Alerts on the student home: due date passed, "not quite done" pay card ---------- */
:root body #notice{position:absolute!important;left:12px!important;right:12px!important;top:calc(var(--mi-head-h) + 16px)!important;margin:0 auto!important;
 max-width:560px;padding:18px 20px!important;box-sizing:border-box;background:#FEF2F2!important;border:1px solid #FECACA!important;border-left:5px solid #DC2626!important;
 border-radius:12px;box-shadow:0 8px 24px rgba(0,0,0,.18);text-align:left!important;font:400 15px/1.55 Arial,Helvetica,sans-serif;color:#7F1D1D}
:root body #notice *{background:none!important}
:root body #notice a{display:inline-flex;align-items:center;min-height:40px;margin:6px 6px 0 0;padding:0 14px;border-radius:8px;background:#DC2626!important;
 color:#fff!important;font-weight:700;text-decoration:none!important}
:root body #aff_content table#table1{width:100%!important;max-width:620px;margin:8px auto!important;border:1px solid var(--mi-line)!important;
 border-left:5px solid var(--mi-accent)!important;border-collapse:separate!important;border-radius:14px;background:var(--mi-soft)!important}
:root body table#table1 td{padding:22px 24px!important;text-align:left}
:root body table#table1 p{margin:0 0 14px!important}
:root body table#table1 p:last-child{margin:0!important;color:var(--mi-muted)}
:root body table#table1 font{font-family:Arial,Helvetica,sans-serif!important;font-size:16px!important;line-height:1.5}
:root body table#table1 b > font[size="4"]{display:block;margin-bottom:4px;font-size:22px!important;font-weight:800;color:var(--mi-primary)}
:root body table#table1 font[size="2"]{display:block;margin-top:4px;font-size:14px!important;color:var(--mi-muted)}
:root body table#table1 a[href*="payment.php"]{display:inline-block;margin:0 0 12px;padding:14px 24px;border-radius:10px;background:var(--mi-primary);
 color:#fff!important;font:700 17px/1.2 Arial,Helvetica,sans-serif;text-decoration:none}
:root body table#table1 a[href*="payment.php"] + br{display:none}
:root body table#table1 img{display:inline-block;height:28px;width:auto;margin:0 6px 0 0;vertical-align:middle}
@media (max-width:640px){
 :root body table#table1 td{padding:18px 16px!important}
 :root body table#table1 a[href*="payment.php"]{display:block;text-align:center}
}

/* ---------- 9. Change your profile information ---------- */
:root body div[style*="575px"]:has(input[name="First_Name"]){width:auto!important;max-width:620px!important;margin:0 auto!important}
:root body table:has(input[name="First_Name"]){width:100%!important;border-collapse:collapse}
:root body table:has(input[name="First_Name"]) td{padding:6px 6px!important;vertical-align:top;text-align:left!important}
:root body table:has(input[name="First_Name"]) td p{margin:0!important}
:root body table:has(input[name="First_Name"]) font{font-family:Arial,Helvetica,sans-serif!important;font-size:15px!important}
:root body table:has(input[name="First_Name"]) font[size="1"]{font-size:12px!important;color:var(--mi-muted)}
:root body table:has(input[name="First_Name"]) font[color]{color:var(--mi-ink)!important;font-weight:700}
:root body table:has(input[name="First_Name"]) :is(input[type="text"],select){width:100%!important}
:root body table:has(input[name="First_Name"]) a[href="home.php"]::before{content:"\2039 "}
@media (max-width:640px){
 :root body table:has(input[name="First_Name"]),:root body table:has(input[name="First_Name"]) > tbody,
 :root body table:has(input[name="First_Name"]) tr{display:block!important;width:100%!important}
 :root body table:has(input[name="First_Name"]) tr{display:flex!important;flex-wrap:wrap;gap:0 8px}
 :root body table:has(input[name="First_Name"]) td{display:block!important;flex:1 1 90px;padding:4px 0!important}
 :root body table:has(input[name="First_Name"]) td[align="right"]{flex:1 0 100%;padding-top:12px!important}
 :root body table:has(input[name="First_Name"]) tr[height] td{flex:1 0 100%}
 :root body table:has(input[name="First_Name"]) tr[height] input{width:100%;margin:6px 0 0!important}
}

/* ---------- 10. Security questions (login and before the test) ----------
 Fixed 2026-11-23: works for BOTH page layouts the platform uses:
 all questions inside one .security_entry (start-test page), or one question per
 .security_entry (login). The Yes / No header row is found by its <b>Yes</b> <b>No</b>
 labels on the .entry itself, so a question row can never be hidden by it. */
:root body #login_container{max-width:560px!important;width:auto!important;margin:0 auto!important;float:none!important;text-align:left!important}
:root body #login_container form{font:16px/1.5 Arial,Helvetica,sans-serif;color:var(--mi-ink)}
:root body #login_container form > br{display:none}
:root body form[action="start-test.php"]{max-width:560px;margin:0 auto!important;font:600 16px/1.5 Arial,Helvetica,sans-serif;color:var(--mi-ink)}
:root body .security_entry{width:auto!important;max-width:560px;margin:12px auto 0!important;padding:0!important;text-align:left!important;
 border:1px solid var(--mi-line);border-radius:12px;background:#fff!important;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,.04)}
:root body .security_entry + .security_entry{margin-top:8px!important}
:root body .security_entry .entry{display:grid!important;grid-template-columns:1fr 56px 56px;align-items:center;gap:0;margin:0!important;
 padding:12px 14px!important;border:0!important;border-top:1px solid var(--mi-line)!important;background:#fff!important;
 font:600 16px/1.35 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)!important;text-align:left!important}
:root body .security_entry .entry:first-child{border-top:0!important}
:root body .security_entry .entry input[type="radio"]{-webkit-appearance:radio!important;appearance:auto!important;justify-self:center;margin:0!important;
 width:24px!important;height:24px!important;accent-color:var(--mi-primary);cursor:pointer}
:root body .security_entry .entry input[type="text"]{grid-column:1 / -1;width:100%!important;float:none!important;margin:6px 0 0!important;
 min-height:44px;padding:10px 12px;font-size:16px!important;border:1px solid #C9CED8;border-radius:8px;box-sizing:border-box}
:root body .security_entry .entry:has(input:checked){background:var(--mi-soft)!important;box-shadow:inset 4px 0 0 var(--mi-primary)}
/* header row: QUESTION | YES | NO */
:root body .security_entry .entry:has(> b){background:var(--mi-primary)!important;grid-template-columns:1fr 56px 0 56px;
 padding:10px 14px!important;font-size:0!important;overflow:hidden}
:root body .security_entry .entry:has(> b)::before{content:"Question";font:700 13px/1 Arial,Helvetica,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#fff}
:root body .security_entry .entry:has(> b) b{justify-self:center;font:700 13px/1 Arial,Helvetica,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#fff!important}
:root body .security_entry ~ input[type="submit"],:root body form[action="start-test.php"] input[type="submit"],
:root body #login_container input[type="submit"]{display:block;width:100%;max-width:560px;margin:16px auto 0!important;min-height:52px}
@media (max-width:640px){
 :root body .security_entry .entry{grid-template-columns:1fr 48px 48px;font-size:15px!important}
 :root body .security_entry .entry:has(> b){grid-template-columns:1fr 48px 0 48px;font-size:0!important}
}

/* ---------- 11. Chapter pages ---------- */
:root body #main_chapter_container,:root body #content_chapter_container{width:auto!important;max-width:760px;margin:0 auto!important;padding:0!important;
 background:none!important;text-align:left!important;font:400 16px/1.6 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)}
:root body #aff_content > div[style*="text-align"]:has(#main_chapter_container){max-width:100%}
:root body .chapter_title{background:none!important;width:auto!important;max-width:100%!important;height:auto!important;min-height:0!important;padding:0!important;
 margin:8px 0 16px!important;font:700 26px/1.25 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)!important;letter-spacing:0!important;text-transform:none}
:root body .section_title{padding:0!important;margin:32px 0 10px!important;font:700 20px/1.3 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)!important}
:root body .section_sub{padding:0!important;margin:22px 0 8px!important;font:700 17px/1.35 Arial,Helvetica,sans-serif!important;color:#374151!important}
:root body p.content,:root body #content_chapter_container p{width:auto!important;max-width:100%!important;padding:0!important;margin:0 0 1em!important;
 font:400 16px/1.6 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)}
:root body #content_chapter_container :is(.chapter_list,.numbered_list){list-style-position:outside!important;padding-left:22px!important;margin:0 0 1em!important;
 font-size:16px!important;line-height:1.6!important}
:root body #content_chapter_container :is(.chapter_list,.numbered_list) li{margin:0 0 6px!important}
:root body #content_chapter_container :is(.chapter_list,.numbered_list) ul{margin:6px 0!important;padding-left:20px!important}
:root body #content_chapter_container .img{padding:8px 0!important;margin:0 0 8px;text-align:center}
:root body #content_chapter_container .img_lt{padding:0 16px 8px 0!important;max-width:45%}
:root body #content_chapter_container .img_rt{padding:0 0 8px 16px!important;max-width:45%}
:root body #content_chapter_container .img_txt{font:400 14px/1.4 Arial,Helvetica,sans-serif!important;color:var(--mi-muted)!important}
:root body #content_chapter_container .img_txt br{display:none}
/* wide tables (stopping power, speed limits): fit, or scroll inside themselves */
:root body #content_chapter_container table{display:block;width:auto!important;max-width:100%;overflow-x:auto;border-collapse:collapse;font-size:15px;margin:0 auto}
:root body #content_chapter_container table td{padding:8px 10px!important;border:1px solid #D1D5DB!important}
:root body #content_chapter_container td[bgcolor]{background:var(--mi-soft)!important}
:root body .course_video video{width:100%;max-width:640px;height:auto;border-radius:10px;background:#000}
/* jokes and stories: calm boxes */
:root body :is(.one_liner,.collision,.bumper_snickers,.vanity,.joke,.silly_signs){max-width:100%;box-sizing:border-box;margin:6px 0 0!important;padding:14px 16px!important;
 border-radius:10px;border-width:1px!important;font:600 15px/1.5 Arial,Helvetica,sans-serif!important;text-align:left!important}
:root body :is(.one_liner_header,.collision_header,.bumper_snickers_header,.vanity_header,.joke_header,.silly_signs_header){font:700 16px/1.3 Arial,Helvetica,sans-serif!important}
/* the notice: shown once, at the top, as a calm box; the copy at the bottom keeps only the Continue button */
:root body #course_note{max-width:760px;margin:0 auto 16px!important;padding:12px 16px!important;box-sizing:border-box;background:#FEF2F2!important;
 border:1px solid #FECACA;border-left:4px solid #DC2626;border-radius:8px;font:400 15px/1.5 Arial,Helvetica,sans-serif!important;color:#7F1D1D!important;text-align:left!important}
:root body #course_note strong{font-weight:700;color:#991B1B}
:root body #course_note:has(#Timer){font-size:0!important;background:none!important;border:0!important;padding:0!important;margin-top:24px!important}
:root body #course_note:has(#Timer) > :is(strong,br){display:none}
:root body #course_note:has(#Timer) > div[align="center"]{line-height:0}
/* Continue (shows when the time is up): one big button */
:root body #Continue{margin:0 auto!important;text-align:center;font-size:16px}
:root body #Continue > br{display:none}
:root body #Continue a{display:inline-block;padding:14px 40px!important;border:0!important;border-radius:10px;background:var(--mi-primary)!important;
 color:#fff!important;font:700 18px/1.2 Arial,Helvetica,sans-serif!important;text-decoration:none!important;min-height:44px;box-sizing:border-box}
:root body #Continue a:hover{background:var(--mi-primary-dark)!important}
/* section name + text size bar */
:root body #dock{display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 16px;width:auto!important;height:auto!important;
 max-width:760px;margin:0 auto 16px!important;padding:8px 14px!important;box-sizing:border-box;background:#1F2937!important;border:0!important;border-radius:8px;text-align:left!important}
:root body #dock .dock_content{float:none!important;width:auto!important;padding:0!important;font:600 14px/1.4 Arial,Helvetica,sans-serif!important;color:#fff!important}
:root body #dock .dock_content:has(a){display:flex;align-items:center;flex-wrap:nowrap;gap:2px}
:root body #dock .dock_content a{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;margin:0!important;color:#fff!important;text-decoration:none}
/* Student Center | Log Off */
@media (max-width:640px){
 :root body .chapter_title{font-size:22px!important}
 :root body .section_title{font-size:19px!important;margin-top:26px!important}
 :root body p.content,:root body #content_chapter_container p,:root body #content_chapter_container li{font-size:17px!important}
 :root body #content_chapter_container :is(.img_lt,.img_rt){float:none!important;display:block;max-width:100%;margin:0 auto;padding:0 0 10px!important;text-align:center}
 :root body #course_note{font-size:14px!important;padding:10px 12px!important}
 :root body #course_note:has(#Timer){font-size:0!important}
 :root body #dock{flex-direction:column;align-items:flex-start}
 :root body #Continue a{display:block}
}

/* ---------- 11b. Chapter page bottom: waiting note + Student Center / Log Off buttons (2026-11-23) ---------- */
/* while the timer runs, the empty Continue space shows a short note instead of a blank gap */
:root body #course_note:has(#Timer):not(:has(#Continue[style*="visible"]))::after{content:"Continue appears here when the chapter timer reaches 0:00";
 display:block;max-width:420px;margin:0 auto;padding:12px 16px;border:1px dashed #C9CED8;border-radius:10px;background:#F9FAFB;
 font:600 14px/1.4 Arial,Helvetica,sans-serif;color:#4B5563;text-align:center}
:root body #course_note:has(#Timer):not(:has(#Continue[style*="visible"])) #Continue{display:none!important}
/* Student Center | Log Off as two real buttons */
:root body #course-footer-links{display:flex!important;justify-content:center;flex-wrap:nowrap;gap:12px;max-width:760px;margin:20px auto 28px!important;
 padding:0 16px;box-sizing:border-box;font-size:0!important;color:transparent!important}
:root body #course-footer-links a{display:inline-flex!important;align-items:center;justify-content:center;flex:1 1 0;min-width:0;max-width:240px;min-height:48px;margin:0!important;
 padding:10px 18px!important;box-sizing:border-box;border:2px solid var(--mi-primary);border-radius:10px;background:#fff!important;
 color:var(--mi-primary)!important;font:700 16px/1.2 Arial,Helvetica,sans-serif!important;text-decoration:none!important;white-space:nowrap}
:root body #course-footer-links a[href*="home.php"]::before{content:"\2302";margin-right:8px;font-size:18px}
:root body #course-footer-links a[href*="quit.php"]{border-color:#C9CED8;color:#374151!important}
:root body #course-footer-links a:hover{background:var(--mi-soft)!important}
@media (max-width:400px){:root body #course-footer-links a[href*="home.php"]::before{display:none}}

/* ---------- 12. Chapter timer: right under the school header, pinned while reading ----------
 The countdown sits at the bottom of the chapter page; it is shown as a soft red
 bar fixed under the header. When the time is up it turns green. */
:root body #Timer{position:fixed!important;top:var(--mi-head-h)!important;left:0!important;right:0!important;bottom:auto!important;z-index:45!important;
 display:flex!important;align-items:center!important;justify-content:center!important;gap:10px;visibility:visible!important;opacity:1!important;
 width:auto!important;max-width:none!important;height:var(--mi-timer-h)!important;margin:0!important;padding:0 16px!important;box-sizing:border-box!important;
 background:#FEF2F2!important;color:#991B1B!important;border:0!important;border-bottom:1px solid #FECACA!important;border-radius:0!important;
 box-shadow:0 2px 4px rgba(153,27,27,.08)!important;font:700 15px/1.2 Arial,Helvetica,sans-serif!important;text-align:center!important}
:root body #Timer::before{content:"This chapter";font:600 15px/1.2 Arial,Helvetica,sans-serif}
:root body #TimerText{display:inline-block!important;background:#fff!important;color:#B91C1C!important;border:1px solid #FCA5A5!important;border-radius:999px!important;
 padding:6px 14px!important;margin:0!important;font:700 17px/1 Arial,Helvetica,sans-serif!important;font-variant-numeric:tabular-nums;white-space:nowrap}
:root body #TimerText:empty{display:none!important}
:root body:has(#Timer) > #content_container{padding-top:var(--mi-timer-h)!important}
html:has(#Timer){scroll-padding-top:calc(var(--mi-head-h) + var(--mi-timer-h) + 16px)}
/* time is up: green, with the page's own "You can move on now!" */
:root body:has(#Continue[style*="visible"]) #Timer{background:#ECFDF5!important;color:#065F46!important;border-color:#A7F3D0!important}
:root body:has(#Continue[style*="visible"]) #Timer::before{content:none}
:root body:has(#Continue[style*="visible"]) #Timer::after{content:"\00a0 Scroll down and tap Continue.";font-weight:400}
@media (max-width:400px){
 :root body #Timer{font-size:14px!important;gap:8px;padding:0 10px!important}
 :root body #Timer::before{font-size:14px}
 :root body #TimerText{font-size:16px!important;padding:5px 11px!important}
 :root body:has(#Continue[style*="visible"]) #Timer::after{content:"\00a0 Tap Continue below."}
}

/* ---------- 13. Chapter quiz ---------- */
:root body .mainbox:has(.question){max-width:720px;margin:0 auto!important;text-align:left}
:root body .mainbox .question{margin:22px 0 10px!important;font:700 17px/1.4 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)}
:root body .mainbox .answer{position:relative;display:block!important;margin:0 0 8px!important;padding:13px 14px 13px 48px!important;border:1px solid var(--mi-line);
 border-radius:10px;background:#fff;font:400 16px/1.4 Arial,Helvetica,sans-serif!important;color:var(--mi-ink);cursor:pointer}
:root body .mainbox .answer input{position:absolute;left:14px;top:50%;margin:-11px 0 0!important}
:root body .mainbox .answer:has(input:checked){border-color:var(--mi-primary);background:var(--mi-soft);box-shadow:inset 0 0 0 1px var(--mi-primary)}
@supports selector(:has(*)){
 :root body .mainbox .answer input{left:0;top:0;width:100%!important;height:100%!important;margin:0!important;opacity:0;z-index:1}
 :root body .mainbox .answer::before{content:"";position:absolute;left:15px;top:50%;width:20px;height:20px;margin-top:-10px;border:2px solid #9CA3AF;
  border-radius:50%;box-sizing:border-box;background:#fff}
 :root body .mainbox .answer:has(input:checked)::before{border-color:var(--mi-primary);background:radial-gradient(circle,var(--mi-primary) 0 4px,#fff 5px)}
 :root body .mainbox .answer:has(input:focus-visible){outline:3px solid #93C5FD;outline-offset:2px}
}
:root body form[name="form1"]:has(.mainbox .question) input[type="submit"]{display:block;width:100%;max-width:720px;margin:18px auto 0!important;min-height:52px;font-size:18px!important}
/* quiz result: "You answered 3 questions correctly / you didn't pass" */
:root body .mainbox:not(:has(.question)){max-width:520px;margin:8px auto!important;padding:24px 20px!important;text-align:center;border:1px solid var(--mi-line);
 border-radius:14px;background:#fff;font:600 18px/1.6 Arial,Helvetica,sans-serif;color:var(--mi-ink);box-sizing:border-box}
:root body .mainbox:not(:has(.question)) > br:first-child,:root body .mainbox table:not(:has(td:not(:empty))){display:none}
:root body .mainbox > a[href*="show="]{display:inline-block;margin-top:12px;padding:13px 40px!important;border-radius:8px;min-height:44px;box-sizing:border-box;
 background:var(--mi-primary)!important;color:#fff!important;font:600 17px/1.2 Arial,Helvetica,sans-serif!important;text-decoration:none!important}

/* ---------- 14. Final test: start, the test, result ---------- */
:root body #aff_content > div[align="center"]:has(input#test){max-width:560px;margin:0 auto!important;text-align:center!important}
:root body #aff_content > div[align="center"]:has(input#test) > br{display:none}
:root body #aff_content > div[align="center"]:has(input#test) > p:first-of-type{margin:0 0 16px!important;padding:16px 18px;border-radius:12px;background:#ECFDF5;
 border:1px solid #A7F3D0;color:#065F46;font:700 18px/1.45 Arial,Helvetica,sans-serif}
:root body input#test{width:100%;min-height:56px!important;font-size:19px!important}
/* the test: intro card, then each question with big answer rows */
:root body form[name="finaltest"]{max-width:720px;margin:0 auto!important}
:root body form[name="finaltest"] > div[align="center"]{margin:0 0 18px!important;padding:16px 18px!important;border-radius:12px;background:var(--mi-page);
 border:1px solid var(--mi-line);text-align:left!important;font:400 15px/1.55 Arial,Helvetica,sans-serif;color:var(--mi-ink);overflow-wrap:anywhere}
:root body form[name="finaltest"] > div[align="center"] br{display:none}
:root body form[name="finaltest"] > div[style*="margin-left"]{margin:0!important}
:root body form[name="finaltest"] div[style*="margin:20px 0 5px"]{margin:26px 0 10px!important;padding-top:18px;border-top:1px solid var(--mi-line);
 font:700 17px/1.4 Arial,Helvetica,sans-serif!important}
:root body form[name="finaltest"] div[style*="padding:5px 0"]{display:flex;align-items:center;gap:0;margin:0 0 8px!important;padding:0!important;
 border:1px solid var(--mi-line);border-radius:10px;background:#fff;font:400 16px/1.4 Arial,Helvetica,sans-serif!important}
:root body form[name="finaltest"] div[style*="padding:5px 0"] input{flex:none;margin:0 0 0 14px!important}
:root body form[name="finaltest"] div[style*="padding:5px 0"] label{flex:1;display:block;padding:13px 14px 13px 12px;cursor:pointer;min-height:44px;box-sizing:border-box}
:root body form[name="finaltest"] div[style*="padding:5px 0"]:has(input:checked){border-color:var(--mi-primary);background:var(--mi-soft);box-shadow:inset 0 0 0 1px var(--mi-primary)}
:root body form[name="finaltest"] input[name="answers"]{display:block;width:100%;min-height:56px;font-size:19px!important;margin:24px 0 0!important}
/* result page */
:root body div.final{max-width:620px;margin:0 auto!important;text-align:left!important;font:400 16px/1.55 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)}
:root body div.final > p{margin:0 0 12px!important;line-height:1.55!important;text-align:left!important}
:root body div.final > p:first-child{padding:14px 16px;border-radius:12px;background:#ECFDF5;border:1px solid #A7F3D0;border-left:5px solid #16A34A;
 color:#065F46;font:700 20px/1.35 Arial,Helvetica,sans-serif!important}
:root body div.final > p:nth-child(2),:root body div.final > p:nth-child(3){display:inline-block;margin:0 16px 12px 0!important;font-weight:700}
:root body div.final > br{display:none}
:root body div.final > p:has(u){display:block;padding:14px 16px;border-radius:12px;background:#FFFBEB;border:1px solid #FDE68A;color:#78350F;font-size:15px}
/* "You missed the following questions:" with nothing listed */
:root body div.final > p:has(+ div[align="left"]:empty),:root body div.final > div[align="left"]:empty{display:none!important}
:root body div.final a[href="home.php"]{display:inline-block;margin-top:6px;padding:13px 32px;border-radius:8px;background:var(--mi-primary);color:#fff!important;
 font:700 17px/1.2 Arial,Helvetica,sans-serif;text-decoration:none!important;min-height:44px;box-sizing:border-box}

/* ---------- 15. Completion tracker step and payment (pay.universalecom.com/mi) ---------- */
:root body #left_panel{display:none!important}
:root body #right_panel{float:none!important;width:auto!important;max-width:620px;margin:0 auto!important;text-align:left}
:root body #right_panel > p{margin:0 0 16px!important;padding:12px 14px;border-radius:10px;background:#FFFBEB;border:1px solid #FDE68A;color:#92400E;font:400 14px/1.5 Arial,Helvetica,sans-serif}
:root body #shipping_header{margin:0 0 16px!important;padding:16px 18px!important;border:1px solid var(--mi-line)!important;border-radius:12px;background:var(--mi-page)!important;text-align:left!important}
:root body #shipping_header h1{margin:0 0 6px!important;font:700 20px/1.3 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)}
:root body #shipping_header p{margin:0!important;font:400 15px/1.5 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)}
:root body #right_panel .divider{margin:0 0 10px!important;padding:0!important;border:0!important;font:400 15px/1.5 Arial,Helvetica,sans-serif;color:var(--mi-muted)}
:root body #right_panel .divider h2{margin:0 0 4px!important;font:700 19px/1.3 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)}
:root body #right_panel .divider br{display:none}
/* each option: [ picture .............. price ]  [ o  description ] */
:root body #right_panel .shipping_option{display:grid!important;grid-template-columns:28px minmax(0,1fr) auto;grid-template-areas:"img img price" "pick text text";
 align-items:center;gap:8px 10px;margin:0 0 10px!important;padding:14px!important;border:1px solid var(--mi-line);border-radius:12px;background:#fff!important;box-sizing:border-box}
:root body #right_panel .shipping_option > .clear{display:none}
:root body #right_panel .shipping_option > .upgrade_img{grid-area:img;float:none!important;margin:0}
:root body #right_panel .shipping_option > .upgrade_img img{max-height:44px;width:auto;margin:0}
:root body #right_panel .shipping_option > .price{grid-area:price;float:none!important;margin:0!important;font:800 18px/1 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)}
:root body #right_panel .shipping_option > input{grid-area:pick;float:none!important;width:24px!important;height:24px!important;margin:0!important;align-self:start}
:root body #right_panel .shipping_option > label{grid-area:text;float:none!important;width:auto!important;display:block;margin:0!important;cursor:pointer;
 font:400 15px/1.5 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)!important}
:root body #right_panel .shipping_option:has(input:checked){border-color:var(--mi-primary);box-shadow:inset 0 0 0 1px var(--mi-primary);background:var(--mi-soft)!important}
:root body #right_panel form[name="form1"] > br + div[align="center"],:root body #right_panel div[align="center"]:has(> input[value="Back"]){display:flex;gap:10px;margin-top:16px}
:root body #right_panel div[align="center"]:has(> input[value="Back"]) > input{flex:1;margin:0!important;min-height:52px}
:root body #right_panel div[align="center"]:has(> input[value="Back"]) > input[value="Back"]{flex:0 0 110px}
/* payment: order summary card */
:root body #right_panel #registration_container{width:auto!important}
:root body #right_panel .price_row{width:auto!important;margin:0 0 16px!important;padding:6px 16px!important;border:1px solid var(--mi-line)!important;border-radius:12px;
 background:var(--mi-page)!important;text-align:left!important}
:root body #right_panel .price_row label.price{display:block!important;float:none!important;margin:0!important;padding:9px 0!important;border-bottom:1px solid var(--mi-line);
 font:400 16px/1.4 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)!important;text-align:left!important}
:root body #right_panel .price_row label.price:last-of-type{border-bottom:0;font-weight:800!important;font-size:18px!important}
:root body #right_panel .price_row .note:empty{display:none}
:root body #right_panel #registration_container > br{display:none}
/* voucher and coupon boxes */
:root body #right_panel #registration_container > .row{display:block!important;max-width:none!important;width:auto!important;margin:0 0 12px!important;padding:14px!important;
 border:1px solid var(--mi-line)!important;border-radius:12px;background:#fff!important;text-align:left!important}
:root body #right_panel #registration_container > .row form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
:root body #right_panel #registration_container > .row label.form{flex:1 0 100%;float:none!important;width:auto!important;margin:0!important;
 font:700 14px/1.3 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)!important}
:root body #right_panel #registration_container > .row > label.form{display:block;margin:0 0 8px!important}
:root body #right_panel #registration_container > .row input[type="text"]{flex:1 1 160px;width:auto!important;margin:0!important}
:root body #right_panel #registration_container > .row input[type="submit"]{flex:1 1 auto;margin:0!important;background:#fff!important;color:var(--mi-primary)!important;
 box-shadow:inset 0 0 0 1px var(--mi-primary)!important}
:root body #right_panel #registration_container > .row form > div[style*="clear"]{display:none}
:root body #right_panel #registration_container > .row br{display:none}
:root body #right_panel #registration_container > .row .note{flex:1 0 100%;font:400 13px/1.4 Arial,Helvetica,sans-serif!important;color:var(--mi-muted)!important}
/* billing + card: label above a full-width box */
:root body #payment-form > br{display:none}
:root body #payment-form .divider{margin:22px 0 4px!important;padding:0 0 8px!important;border:0!important;border-bottom:1px solid var(--mi-line)!important;
 font:700 18px/1.3 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)!important;text-align:left!important}
:root body #payment-form .row{display:block!important;max-width:none!important;width:auto!important;margin:0!important;padding:10px 0!important;background:none!important;
 border:0!important;text-align:left!important}
:root body #payment-form label.form{display:block!important;float:none!important;margin:0 0 6px!important;font:700 14px/1.3 Arial,Helvetica,sans-serif!important;color:var(--mi-ink)!important}
:root body #payment-form :is(input[type="text"],select){width:100%!important;max-width:100%!important}
:root body #payment-form .row:has(.card-expiry-month){display:flex!important;flex-wrap:wrap;align-items:center;gap:8px}
:root body #payment-form .row:has(.card-expiry-month) label{flex:1 0 100%}
:root body #payment-form .row:has(.card-expiry-month) select{flex:1;width:auto!important}
:root body #payment-form .card-cvc{max-width:140px!important}
:root body #payment-form .row .note{display:block;margin-top:6px;font:400 13px/1.4 Arial,Helvetica,sans-serif!important;color:var(--mi-muted)!important}
:root body #payment-form .row .note br{display:none}
:root body #payment-form .payment-errors:not(:empty){padding:10px 14px;border-radius:8px;background:#FEF2F2;border:1px solid #FECACA;color:#991B1B}
:root body #payment-form > div[align="center"]:has(.submit-button){display:flex;gap:10px;margin-top:12px}
:root body #payment-form .submit-button{flex:1;min-height:54px;font-size:18px!important;margin:0!important}
:root body #payment-form input[value="Back"]{flex:0 0 110px;margin:0!important}

/* ---------- 16. Printing: global.css hides the whole page when printed ----------
 Students need to print or save the result page, so printing works again. */
@media print{
 :root body *{display:revert!important}
 :root body :is(script,style,link,#reg_log,.top-bar,#footer_nav,#Timer,#course-footer-links,#left_panel,#registration_left_panel){display:none!important}
 :root body{padding-top:0!important;background:#fff!important}
 :root body > #header{position:static!important;box-shadow:none!important}
}
