/* =====================================================================
   BMU Student 360 - same look as Employee 360 (orange / cream, Plus Jakarta Sans, sidebar + top bar)
   ===================================================================== */
:root {
  --bmu: #f47a1f; --bmu-d: #e0620f; --bmu-dd: #b94c08;
  --cream: #fff8ef; --cream-2: #fdf0e1; --cream-3: #f8e4cc;
  --ink: #2f2118; --ink-2: #4a3628; --muted: #8c7a6c; --line: #f0e2d2; --line-2: #e8d5bf;
  --ok: #15803d; --ok-bg: #e8f7ee; --bad: #b91c1c; --bad-bg: #fdecec; --warn: #b45309; --warn-bg: #fff4dc; --info: #0369a1; --info-bg: #e6f3fb;
  --grad: linear-gradient(120deg, #e0620f 0%, #f47a1f 45%, #ffa24a 100%);
  --grad-line: linear-gradient(90deg, #f47a1f, #e9a825 60%, #f6c453);
  --shadow: 0 1px 2px rgba(74, 54, 40, .05), 0 8px 24px rgba(160, 90, 30, .08);
  --shadow-lg: 0 20px 50px rgba(160, 80, 20, .18);
  --side: 256px;
  --bs-body-font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --bs-body-color: var(--ink); --bs-link-color: var(--bmu-d); --bs-link-hover-color: var(--bmu-dd);
  --bs-primary: #f47a1f; --bs-primary-rgb: 244, 122, 31; --bs-border-color: var(--line-2);
}
* { box-sizing: border-box; }
body { font-family: var(--bs-body-font-family); background: var(--cream); color: var(--ink); font-size: .92rem; -webkit-font-smoothing: antialiased; }
a { color: var(--bmu-d); text-decoration: none; }
a:hover { color: var(--bmu-dd); }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid rgba(244, 122, 31, .45); outline-offset: 2px; }
[hidden] { display: none !important; }
.text-muted, .muted { color: var(--muted) !important; }
.s-boot { min-height: 100vh; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; color: var(--muted); }
.s-spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--cream-3); border-top-color: var(--bmu); animation: s-rot .8s linear infinite; display: inline-block; }
.s-spin.sm { width: 18px; height: 18px; border-width: 3px; vertical-align: -3px; }
@keyframes s-rot { to { transform: rotate(360deg); } }

/* buttons */
.btn { border-radius: 999px; font-weight: 700; font-size: .84rem; padding: .5rem 1.05rem; display: inline-flex; align-items: center; gap: .45rem; justify-content: center; }
.btn-sm { padding: .32rem .8rem; font-size: .76rem; }
.btn-bmu { background: var(--grad); color: #fff; border: 0; box-shadow: 0 8px 18px rgba(244, 122, 31, .3); }
.btn-bmu:hover, .btn-bmu:focus { color: #fff; box-shadow: 0 12px 26px rgba(244, 122, 31, .4); }
.btn-soft { background: #fff; border: 1.5px solid var(--line-2); color: var(--ink-2); }
.btn-soft:hover { background: var(--cream-2); border-color: #e3c29f; color: var(--ink); }
.btn-soft.on { background: var(--ink-2); border-color: var(--ink-2); color: #fff; }

/* ---------------- shell ---------------- */
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: #fff; border-right: 1px solid var(--line); z-index: 1045; display: flex; flex-direction: column; transition: transform .25s ease; }
.sb-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; min-height: 64px; border-bottom: 1px solid var(--line); }
.sb-head img { width: 40px; height: 40px; }
.sb-head .t { font-weight: 800; font-size: .95rem; line-height: 1.1; }
.sb-head .s { font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bmu); margin-top: 2px; }
.sb-close { display: none; margin-left: auto; border: 0; background: var(--cream); width: 34px; height: 34px; border-radius: 10px; color: var(--ink-2); }
.sb-nav { flex: 1; overflow-y: auto; padding: 10px 12px 20px; scrollbar-width: thin; }
.sb-sec { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: transparent; text-align: left; font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #a98b73; padding: 11px 12px; margin-top: 2px; border-radius: 10px; cursor: pointer; }
.sb-sec:hover { background: var(--cream); color: var(--ink-2); }
.sb-sec > span:first-child { flex: 1; } .sb-sec > i { order: 2; font-size: .62rem; transition: transform .2s; }
.sb-sec[aria-expanded="true"] { color: var(--bmu-d); }
.sb-sec[aria-expanded="true"] > i { transform: rotate(180deg); }
.sb-sec .sb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bmu); }
.sb-grp { padding-bottom: 4px; }
.sb-link { display: flex; align-items: center; gap: 12px; padding: .55rem .85rem; margin: 2px 0; border-radius: 12px; color: var(--ink-2); font-weight: 600; font-size: .86rem; }
.sb-link > i:first-child { width: 20px; text-align: center; color: #a98b73; }
.sb-link .ext { margin-left: auto; font-size: .62rem; color: #c7ad96; }
.sb-link .cnt { margin-left: auto; font-size: .66rem; font-weight: 800; background: var(--cream-2); color: var(--bmu-dd); border-radius: 999px; padding: .08rem .5rem; }
.sb-link:hover { background: var(--cream); color: var(--ink); }
.sb-link.active { background: var(--grad); color: #fff; box-shadow: 0 8px 18px rgba(244, 122, 31, .3); }
.sb-link.active > i, .sb-link.active .ext { color: #fff; }
.sb-link.active .cnt { background: rgba(255, 255, 255, .25); color: #fff; }
.sb-foot { border-top: 1px solid var(--line); padding: 12px 16px; font-size: .72rem; color: var(--muted); }
.sb-backdrop { display: none; }
.main { margin-left: var(--side); min-height: 100vh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 24px;
       background: rgba(255, 248, 239, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.burger { display: none; border: 1px solid var(--line-2); background: #fff; width: 40px; height: 40px; border-radius: 12px; color: var(--ink-2); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand img { width: 38px; height: 38px; }
.brand .t { display: block; font-weight: 800; font-size: .95rem; line-height: 1.15; color: var(--ink); white-space: nowrap; }
.brand .s { display: block; font-size: .72rem; color: var(--muted); white-space: nowrap; }
.top-acts { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.icon-btn:hover { background: var(--cream-2); }
.icon-btn .dot { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--bmu); color: #fff; font-size: .6rem; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.user { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px 4px 4px; font-size: .82rem; font-weight: 700; color: var(--ink-2); max-width: 300px; }
.user:hover, .user[aria-expanded="true"] { background: var(--cream-2); border-color: #e3c29f; }
.user .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { position: relative; width: 32px; height: 32px; flex: none; border-radius: 50%; overflow: hidden; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: .7rem; font-weight: 800; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 84px; height: 84px; font-size: 1.6rem; border: 4px solid #fff; box-shadow: var(--shadow); }
.dropdown-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; font-size: .86rem; }
.dropdown-item { border-radius: 10px; padding: .5rem .8rem; display: flex; gap: 10px; align-items: center; font-weight: 600; }
.dropdown-item i { width: 18px; text-align: center; color: #b89a80; }
.content { padding: 24px 28px 60px; width: 100%; max-width: 1400px; }
.foot { margin-top: auto; padding: 14px 24px; text-align: center; color: var(--muted); font-size: .76rem; border-top: 1px solid var(--line); }

/* ---------------- page parts ---------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 1.45rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.page-head h1 .ic { width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--bmu); font-size: 1.05rem; box-shadow: var(--shadow); }
.page-head p { margin: .3rem 0 0; color: var(--muted); font-size: .86rem; }
.page-head .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.card-s { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.card-s::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad-line); }
.card-s.flat::before { display: none; }
.card-s > .hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 8px; }
.card-s > .hd h2 { font-size: 1rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.card-s > .hd h2 i { color: var(--bmu); }
.card-s > .hd .sub { font-size: .78rem; color: var(--muted); font-weight: 600; }
.card-s > .bd { padding: 8px 18px 18px; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; color: var(--ink); min-width: 0; }
a.tile:hover { border-color: #e3c29f; color: var(--ink); transform: translateY(-1px); }
.tile .ti { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: #fff1e2; color: var(--bmu-d); font-size: 1.1rem; }
.tile.ok .ti { background: var(--ok-bg); color: var(--ok); } .tile.bad .ti { background: var(--bad-bg); color: var(--bad); }
.tile.warn .ti { background: var(--warn-bg); color: var(--warn); } .tile.info .ti { background: var(--info-bg); color: var(--info); }
.tile b { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.tile span { display: block; font-size: .76rem; color: var(--muted); font-weight: 600; }
.tile small { display: block; font-size: .72rem; color: var(--muted); }
.hello { display: flex; align-items: center; gap: 16px; padding: 18px; flex-wrap: wrap; }
.hello h2 { font-size: 1.25rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); padding: 3px 10px; font-size: .74rem; font-weight: 700; color: var(--ink-2); }
.chip i { color: var(--bmu); }
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 2px 10px; font-size: .72rem; font-weight: 800; background: #f3eee8; color: #5f5850; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.info { background: var(--info-bg); color: var(--info); } .pill.live { background: var(--bmu); color: #fff; }
.s-note { display: flex; gap: 10px; align-items: flex-start; border-radius: 14px; padding: 12px 14px; font-size: .86rem; background: var(--info-bg); color: #0c4a6e; border: 1px solid #cfe6f5; }
.s-note.ok { background: var(--ok-bg); color: #14532d; border-color: #c9ecd6; } .s-note.bad { background: var(--bad-bg); color: #7f1d1d; border-color: #f6cfcf; }
.s-note.warn { background: var(--warn-bg); color: #78350f; border-color: #f6dfa8; }
.s-note > i { margin-top: 2px; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.empty i { font-size: 2rem; color: #d8bfa6; display: block; margin-bottom: 8px; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 14px; font-size: .86rem; }
.kv dt { color: var(--muted); font-weight: 600; } .kv dd { margin: 0; font-weight: 700; word-break: break-word; }
.list-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid #f6ece1; }
.list-row:last-child { border-bottom: 0; }
.list-row .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--cream); color: var(--bmu); display: grid; place-items: center; flex: none; }

/* tables */
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; }
.tbl th { background: #fdf6ee; color: #8a6f58; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .7rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: left; }
.tbl td { padding: .7rem .9rem; border-bottom: 1px solid #f6ece1; vertical-align: middle; font-size: .86rem; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fffaf4; }
.tbl tfoot td { background: #fdf6ee; font-weight: 800; border-top: 2px solid var(--line-2); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.low td { background: #fff6f6; }
.tbl-wrap { overflow-x: auto; }

/* attendance */
.meter { height: 8px; border-radius: 999px; background: #f3e7da; overflow: hidden; min-width: 80px; }
.meter > i { display: block; height: 100%; border-radius: 999px; background: var(--ok); }
.meter.bad > i { background: #dc2626; } .meter.warn > i { background: #f59e0b; }
.ring { --p: 0; --c: var(--ok); width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; flex: none;
        background: conic-gradient(var(--c) calc(var(--p) * 1%), #f3e7da 0); }
.ring > div { width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.ring b { font-size: 1.6rem; font-weight: 800; display: block; line-height: 1; } .ring span { font-size: .7rem; color: var(--muted); font-weight: 700; }

/* time table */
.week-nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.day { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: var(--shadow); }
.day.today { border-color: var(--bmu); box-shadow: 0 0 0 3px rgba(244, 122, 31, .15), var(--shadow); }
.day h3 { font-size: .9rem; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; }
.day h3 small { font-size: .72rem; color: var(--muted); font-weight: 700; }
.cls { border-left: 4px solid var(--line-2); background: var(--cream); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; font-size: .8rem; }
.cls b { display: block; font-size: .82rem; }
.cls .pill { white-space: normal; text-align: right; line-height: 1.25; flex: 0 1 auto; max-width: 55%; } .cls .m { color: var(--muted); font-size: .74rem; }
.cls.JOINED { border-left-color: var(--ok); } .cls.MISSED { border-left-color: #dc2626; } .cls.LIVE { border-left-color: var(--bmu); background: #fff1e2; }
.cls.CANCELLED { border-left-color: #9ca3af; opacity: .75; } .cls.CANCELLED b { text-decoration: line-through; } .cls.NOT_HELD { border-left-color: #d6c4b2; }

/* results */
.exam-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; margin-bottom: 10px; color: var(--ink); }
a.exam-row:hover { border-color: #e3c29f; background: #fffaf4; color: var(--ink); }
.exam-row .sem { width: 48px; height: 48px; border-radius: 13px; background: #fff1e2; color: var(--bmu-d); display: grid; place-items: center; font-weight: 800; flex: none; font-size: .78rem; text-align: center; line-height: 1.1; }
.marks-head { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.papers { font-size: .74rem; color: var(--muted); }
.print-only { display: none; }

/* support */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.link-card { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; color: var(--ink); box-shadow: var(--shadow); }
.link-card:hover { border-color: #e3c29f; color: var(--ink); }
.link-card i.big { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fff1e2; color: var(--bmu-d); flex: none; font-size: 1.05rem; }
.link-card b { display: block; font-size: .9rem; } .link-card span { font-size: .78rem; color: var(--muted); }

.form-control, .form-select { border-radius: 12px; border-color: var(--line-2); font-size: .88rem; }
.form-control:focus, .form-select:focus { border-color: #f4a35c; box-shadow: 0 0 0 .2rem rgba(244, 122, 31, .18); }

/* ---------------- responsive ---------------- */
@media (max-width: 1199.98px) { .g-main { grid-template-columns: minmax(0, 1fr); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991.98px) {
  .side { transform: translateX(-100%); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
  body.sb-open .side { transform: none; visibility: visible; box-shadow: var(--shadow-lg); transition: transform .25s ease; }
  body.sb-open .sb-backdrop { display: block; position: fixed; inset: 0; background: rgba(40, 25, 10, .35); z-index: 1040; }
  body.sb-open { overflow: hidden; }
  .sb-close, .burger { display: grid; place-items: center; }
  .main { margin-left: 0; }
  .top { padding: 8px 14px; gap: 10px; }
  .content { padding: 18px 14px 50px; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
  .brand .s, .user .nm, .user .fa-chevron-down { display: none; }
  .brand .t { font-size: .85rem; white-space: normal; }
  .user { padding: 3px; }
  .page-head h1 { font-size: 1.2rem; }
  .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 12px; } .tile .ti { width: 38px; height: 38px; } .tile b { font-size: 1.15rem; }
}


/* ---------------- phase 2 ---------------- */
.avatar.xl { width: 96px; height: 96px; font-size: 1.8rem; border-radius: 16px; border: 3px solid #fff; box-shadow: var(--shadow); }
.avatar.id { width: 104px; height: 124px; border-radius: 12px; font-size: 2rem; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.s-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); }
.s-toast { background: #fff; border: 1px solid var(--line-2); border-left: 5px solid var(--info); border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow-lg); font-weight: 600; font-size: .86rem; transition: opacity .35s, transform .35s; }
.s-toast.ok { border-left-color: var(--ok); } .s-toast.bad { border-left-color: var(--bad); } .s-toast.warn { border-left-color: #d97706; }
.s-toast.out { opacity: 0; transform: translateY(8px); }
/* assignments */
.upl { display: flex; gap: 8px; flex-wrap: wrap; } .upl .form-control { flex: 1 1 200px; min-width: 0; }
/* quizzes */
.quiz-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--ink-2); margin: 8px 0 4px; }
.quiz-meta i { color: var(--bmu-d); }
.quiz-bar { position: sticky; top: 64px; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; margin-bottom: 14px; box-shadow: var(--shadow); }
.timer { background: var(--cream-2); border-radius: 999px; padding: 6px 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.timer.low { background: var(--bad-bg); color: var(--bad); animation: s-blink 1s steps(2) infinite; }
@keyframes s-blink { 50% { opacity: .6; } }
.qq { margin-bottom: 12px; } .qtext { margin: 6px 0 10px; white-space: pre-line; font-weight: 600; }
.opts { display: grid; gap: 8px; }
.opt, .subj, .live-cls { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; margin: 0; }
.opt:hover, .subj:hover, .live-cls:hover { border-color: #f4a35c; }
.opt:has(input:checked), .subj:has(input:checked), .live-cls:has(input:checked) { border-color: var(--bmu); background: #fff6ec; }
.opt input, .subj input, .live-cls input { margin-top: 3px; flex: none; }
.list-row .ic.ok { background: var(--ok-bg); color: var(--ok); } .list-row .ic.bad { background: var(--bad-bg); color: var(--bad); }
/* exam form */
.subj-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
/* live class */
.live-cls { margin-bottom: 8px; } .live-cls .pill { margin-top: 4px; }
.cam { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1 / 1; border-radius: 16px; overflow: hidden; background: #2f2118; }
.cam video, .cam img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam video { transform: scaleX(-1); }
.cam-empty { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; color: #e8d5bf; font-weight: 700; }
.cam-empty i { font-size: 2rem; }
[data-code]::placeholder { text-transform: none; }
/* ID card */
.idwrap { display: flex; justify-content: center; }
.idcard { width: 340px; max-width: 100%; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.id-top { background: var(--grad); color: #fff; display: flex; gap: 10px; align-items: center; padding: 12px 14px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.id-top img { background: #fff; border-radius: 50%; padding: 2px; }
.id-top b { display: block; font-size: 1rem; } .id-top span { font-size: .72rem; opacity: .95; }
.id-body { padding: 14px 18px 6px; text-align: center; }
.id-photo { display: flex; justify-content: center; margin-bottom: 8px; }
.id-name { font-size: 1.15rem; font-weight: 800; } .id-role { display: inline-block; background: var(--bmu); color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .12em; border-radius: 999px; padding: 2px 12px; margin: 4px 0 10px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.idr { display: flex; justify-content: space-between; gap: 10px; text-align: left; font-size: .8rem; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.idr span { color: var(--muted); flex: none; } .idr b { text-align: right; }
.id-foot { display: flex; gap: 12px; align-items: center; padding: 10px 18px 16px; color: var(--muted); }
@media (max-width: 575.98px) { .quiz-bar { top: 56px; flex-wrap: wrap; } }

/* ---------------- print (marks statement) ---------------- */
@media print {
  .side, .top, .foot, .sb-backdrop, .no-print, .page-head .acts { display: none !important; }
  .main { margin: 0; } .content { padding: 0; max-width: none; }
  body { background: #fff; font-size: 11pt; }
  .card-s { box-shadow: none; border-color: #999; } .card-s::before { display: none; }
  .print-only { display: block; }
  .tbl th { background: #eee !important; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page-head, .s-toasts { display: none !important; }
  .idcard { box-shadow: none; border-color: #999; }
  @page { size: A4; margin: 12mm; }
}
