/* ELDT Practice - shared look. --c1 / --c2 are the school's colors (ELDT navy and red when there is no school). */
:root { --c1:#0a3161; --c2:#b31942; --ink:#1b2530; --muted:#52606d; --line:#d5dbe3; --bg:#f1f3f7; --ok:#2e7d4f; --okbg:#e2f3e8; --bad:#b31942; --badbg:#fde8ec; --font:"Lato"; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.5 var(--font), "Lato", Arial, sans-serif; color: var(--ink); background: var(--bg); }
h1, h2, h3 { font-family: var(--font), "Poppins", Arial, sans-serif; color: var(--c1); line-height: 1.2; margin: 0 0 10px; }
h1 { font-size: 24px; } h2 { font-size: 20px; } h3 { font-size: 17px; }
p { margin: 0 0 10px; }
a { color: var(--c1); }
[hidden] { display: none !important; }
.top { background: var(--c1); color: #fff; border-bottom: 5px solid var(--c2); padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 5; }
.top .logo { width: auto; min-width: 44px; max-width: 160px; height: 44px; border-radius: 10px; background: #fff; object-fit: contain; padding: 3px; flex: none; }
.top .t { flex: 1; min-width: 0; }
.top .t b { display: block; font: 700 17px var(--font), "Poppins", Arial, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .t small { opacity: .85; font-size: 13px; }
.top button { background: rgba(255,255,255,.16); color: #fff; border: 0; border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; }
main { max-width: 640px; margin: 0 auto; padding: 16px; }
main.wide { max-width: 1100px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 0 0 14px; box-shadow: 0 2px 8px rgba(10,49,97,.05); }
label { display: block; font-weight: 700; margin: 12px 0 6px; }
label:first-child { margin-top: 0; }
input, select, textarea { width: 100%; font: inherit; padding: 12px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--c1); }
.pin { letter-spacing: 8px; font-size: 22px; text-align: center; }
.btn { display: block; width: 100%; margin: 14px 0 0; border: 0; border-radius: 12px; padding: 14px; background: var(--c2); color: #fff; font: 700 17px var(--font), "Lato", Arial, sans-serif; cursor: pointer; text-align: center; text-decoration: none; }
.btn.alt { background: var(--c1); }
.btn.light { background: #fff; color: var(--c1); border: 2px solid var(--line); }
.btn.small { display: inline-block; width: auto; padding: 9px 14px; font-size: 15px; margin: 0; }
.btn:disabled { opacity: .55; }
.note { color: var(--muted); font-size: 14px; }
.msg { min-height: 1.3em; margin: 10px 0 0; font-weight: 700; color: var(--bad); }
.msg.ok { color: var(--ok); }
.center { text-align: center; }
.links { text-align: center; margin: 16px 0; font-size: 15px; }
.links a { margin: 0 8px; font-weight: 700; display: inline-block; padding: 6px 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1b2530; color: #fff; padding: 12px 18px; border-radius: 10px; z-index: 50; max-width: 90vw; }

/* tests */
.test { display: flex; align-items: center; gap: 14px; }
.test .badge { width: 54px; height: 54px; border-radius: 14px; background: var(--c1); color: #fff; display: grid; place-items: center; font: 800 18px var(--font), "Poppins", Arial, sans-serif; flex: none; }
.test .info { flex: 1; min-width: 0; }
.test .info b { display: block; color: var(--c1); font-size: 18px; }
.pill { display: inline-block; border-radius: 99px; padding: 2px 10px; font-size: 13px; font-weight: 700; background: #e7ecf5; color: var(--c1); white-space: nowrap; }
.pill.ok { background: var(--okbg); color: var(--ok); } .pill.bad { background: var(--badbg); color: var(--bad); }
.bar { height: 10px; background: #e5e9ef; border-radius: 99px; overflow: hidden; margin: 10px 0 4px; }
.bar i { display: block; height: 100%; background: var(--c2); border-radius: 99px; }
.qtext { font-size: 19px; font-weight: 700; margin: 4px 0 14px; white-space: pre-line; }
.choice { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 13px 14px; margin: 0 0 10px; font: inherit; color: var(--ink); cursor: pointer; }
.choice .k { width: 28px; height: 28px; border-radius: 50%; background: #e7ecf5; color: var(--c1); display: grid; place-items: center; font-weight: 800; flex: none; }
.choice.on { border-color: var(--c1); background: #f4f7fc; }
.choice.on .k { background: var(--c1); color: #fff; }
.choice.right { border-color: var(--ok); background: var(--okbg); }
.choice.right .k { background: var(--ok); color: #fff; }
.choice.wrong { border-color: var(--bad); background: var(--badbg); }
.choice.wrong .k { background: var(--bad); color: #fff; }
.nav2 { display: flex; gap: 10px; }
.nav2 .btn { margin-top: 6px; }
.score { font: 800 56px var(--font), "Poppins", Arial, sans-serif; color: var(--c1); margin: 4px 0; }
.why { background: #e7ecf5; border-left: 4px solid var(--c1); border-radius: 8px; padding: 10px 12px; margin: 4px 0 0; font-size: 15px; }
.hint { background: #fff4d6; border-left: 4px solid #c8821b; border-radius: 8px; padding: 10px 12px; margin: 8px 0 0; font-size: 15px; }
.choice:disabled { cursor: default; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.row:first-of-type { border-top: 0; }
.row button { background: none; border: 0; color: var(--c1); font: inherit; font-weight: 700; cursor: pointer; text-align: left; padding: 0; }

/* staff and owner tables */
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr.click { cursor: pointer; } tr.click:hover { background: #f4f7fc; }
.scroll { overflow-x: auto; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.swatches button { width: 36px; height: 36px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); cursor: pointer; }
.logos { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0; }
.logos button { width: 96px; height: 96px; border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 6px; cursor: pointer; }
.logos button.on { border-color: var(--c2); box-shadow: 0 0 0 2px var(--c2); }
.logos img { width: 100%; height: 100%; object-fit: contain; }
.stat { display: inline-block; margin-right: 18px; } .stat b { display: block; font-size: 24px; color: var(--c1); }

/* a school demo: the notice under the header */
.demobar { background: #fff8e6; border-bottom: 2px solid #c8821b; color: #4a3200; padding: 9px 16px; font-size: 14px; line-height: 1.45; text-align: center; }
.demobar a { color: #4a3200; font-weight: 700; }
.demobar[hidden] { display: none; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.filters input, .filters select { width: auto; flex: 1 1 200px; min-width: 0; max-width: 100%; padding: 9px 10px; font-size: 15px; }
.sso { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin: 0 0 10px; min-height: 52px; padding: 0 14px; border-radius: 12px; background: #fff; text-decoration: none; }
.sso svg { width: 22px; height: 22px; flex: none; }
.sso.google { border: 1px solid #747775; color: #1f1f1f; font: 500 17px "Roboto", Arial, sans-serif; }
.sso.microsoft { border: 1px solid #8c8c8c; color: #5e5e5e; font: 600 17px "Segoe UI", Arial, sans-serif; }
.sso:hover, .sso:focus { background: #f6f8fa; }

/* who's online: small print at the bottom of the owner and school pages */
.onfoot { max-width: 1100px; margin: 8px auto 24px; padding: 0 16px; font-size: 12px; line-height: 1.6; color: #6b7280; text-align: center; }
.onfoot b { color: #374151; }
.onfoot .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; margin-right: 4px; vertical-align: 1px; }
.onfoot .dot.off { background: #9ca3af; }
.onfoot .spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; vertical-align: -1px; margin-left: 3px; }
.onfoot .spark i { display: block; width: 4px; background: #9ca3af; border-radius: 1px; }
.onfoot .spark i.today { background: #16a34a; }
