:root {
  --side-bg: #343a40;
  --side-text: #c2c7d0;
  --side-hover: rgba(255,255,255,.1);
  --side-active: #4b545c;
  --top-bg: #ffffff;
  --top-border: #dee2e6;
  --body-bg: #f4f6f9;
  --card-bg: #ffffff;
  --card-head-border: #e9ecef;
  --card-shadow: 0 0 1px rgba(0,0,0,.125), 0 1px 3px rgba(0,0,0,.2);
  --text: #212529;
  --muted: #8a8f96;
  --accent: #c8243a;
  --link: #007bff;
  --green: #1e6b3a;
  --green-bg: #1e6b3a;
  --blue-top: #2c5aa0;
  --row-alt: #f2f2f2;
  --row-hover: #ececec;
  --th-bg: #ffffff;
  --th-text: #212529;
  --th-border: #dee2e6;
  --td-border: #dee2e6;
  --input-border: #ced4da;
  --input-bg: #fff;
  --tile-hover: #faf6f3;
  --icon-color: #6c757d;
  --btn-tba-border: #6c757d;
  --btn-tba-text: #343a40;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --side-bg: #0f1424;
  --side-text: #c2c7d0;
  --side-active: #1c2740;
  --top-bg: linear-gradient(90deg, #17305a, #1e3e72);
  --top-border: #1e3e72;
  --body-bg: #1a2640;
  --card-bg: #1e2b47;
  --card-head-border: #2a3a5c;
  --card-shadow: 0 1px 3px rgba(0,0,0,.4);
  --text: #e6e9ef;
  --muted: #9aa3b5;
  --accent: #e04a5e;
  --link: #6ea8fe;
  --green: #4cc38a;
  --green-bg: #1e6b3a;
  --blue-top: #2c5aa0;
  --row-alt: #1e2b47;
  --row-hover: #24345a;
  --th-bg: #1f4880;
  --th-text: #ffffff;
  --th-border: #2a4f86;
  --td-border: #2f4064;
  --input-border: #33466d;
  --input-bg: #18233b;
  --tile-hover: #24345a;
  --icon-color: #e6e9ef;
  --btn-tba-border: #3a4a6a;
  --btn-tba-text: #5a6a8a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--body-bg);
}
a { color: var(--link); text-decoration: none; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: 234px;
  background: var(--side-bg);
  color: var(--side-text);
  overflow-y: auto;
  z-index: 1040;
  transition: transform .25s ease;
  scrollbar-width: thin;
}
.brand {
  display: block;
  text-align: center;
  color: #fff;
  padding: 10px 8px 14px;
  border-bottom: 1px solid #4b545c;
}
.brand-logo { width: 140px; height: 70px; color: #fff; display: block; margin: 0 auto 4px; }
.brand-name { font-size: 21px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; line-height: 1.1; }
.brand-sub { font-size: 12.5px; font-weight: 600; margin-top: 3px; }

.user-panel { text-align: center; padding: 14px 8px 10px; }
.avatar {
  width: 62px; height: 80px; margin: 0 auto 12px;
  background: #fff; color: #9aa0a6;
  display: grid; place-items: center; font-size: 34px;
}
.user-name { color: #fff; font-weight: 700; }
.user-id { color: #fff; font-size: 15px; }

.side-search { display: flex; margin: 12px 8px 6px; }
.side-search input {
  flex: 1; min-width: 0;
  background: #3f474e; border: 1px solid #56606a; border-right: 0;
  color: #fff; font: inherit; padding: 6px 12px; border-radius: 4px 0 0 4px;
}
.side-search input::placeholder { color: #c2c7d0; }
.side-search button {
  width: 42px; background: #3f474e; border: 1px solid #56606a; color: #fff;
  border-radius: 0 4px 4px 0; cursor: pointer;
}
:root[data-theme="dark"] .side-search input,
:root[data-theme="dark"] .side-search button { background: #2b3445; border-color: #3a4558; }

.side-nav { padding: 4px 8px 20px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  color: var(--side-text);
  padding: 8px 10px 8px 16px;
  border-radius: 4px;
  margin-bottom: 1px;
  white-space: nowrap;
  font-size: 16px;
}
.side-nav a i { width: 22px; text-align: center; font-size: 16px; }
.side-nav a:hover { background: var(--side-hover); color: #fff; }
.side-nav a.active { background: var(--side-active); color: #fff; }

/* ---------- Layout ---------- */
.wrapper { margin-left: 234px; min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .25s ease; }
body.collapsed .sidebar { transform: translateX(-100%); }
body.collapsed .wrapper { margin-left: 0; }
.backdrop { display: none; }

.topbar {
  position: sticky; top: 0; z-index: 1030;
  height: 53px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 16px;
  background: var(--top-bg);
  border-bottom: 1px solid var(--top-border);
}
:root[data-theme="dark"] .topbar { color: #fff; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  background: none; border: 0; cursor: pointer;
  color: var(--icon-color); font-size: 17px; padding: 6px 4px;
}
:root[data-theme="dark"] .icon-btn { color: #fff; }
.beta { font-weight: 700; font-size: 19px; margin-right: 6px; }
.demo-tag {
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  color: #fff; background: var(--accent); padding: 2px 7px; border-radius: 3px;
}
.badge-outline {
  border: 1px solid var(--green); color: var(--green);
  font-weight: 700; font-size: 15px;
  padding: 5px 9px; border-radius: 4px; cursor: default;
  transition: background .15s, color .15s;
}
.badge-outline:hover { background: var(--green-bg); color: #fff; border-color: var(--green-bg); }

.content { flex: 1; padding: 14px 14px 40px; }
.breadcrumb { display: flex; justify-content: flex-end; gap: 8px; color: var(--muted); margin-bottom: 20px; }
:root[data-theme="dark"] .breadcrumb { color: #c9cfdb; }

.footer {
  padding: 14px 16px; font-size: 15px; color: #869099;
  background: var(--card-bg); border-top: 1px solid var(--top-border);
}

/* ---------- Cards ---------- */
.card {
  background: var(--card-bg);
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  margin-bottom: 16px;
}
.card.top-blue { border-top: 3px solid var(--blue-top); }
.card-header { padding: 12px 20px; border-bottom: 1px solid var(--card-head-border); font-size: 17px; }
.card-body { padding: 20px; }

.profile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.profile-row .card { margin: 0; }
.kv { display: grid; grid-template-columns: 218px 1fr; row-gap: 6px; padding: 22px 18px 30px; }
.kv dt { font-weight: 700; }
.kv dd { margin: 0; }

/* ---------- Tables (DataTables look) ---------- */
.dt-top { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-bottom: 16px; }
.dt-top input, .input {
  border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text);
  border-radius: 4px; padding: 4px 8px; font: inherit; height: 32px; width: 178px;
}
.table-wrap { overflow-x: auto; border: 1px solid var(--th-border); }
table.dt { border-collapse: collapse; width: 100%; min-width: 900px; }
table.dt.narrow { min-width: 0; width: auto; }
table.dt th {
  background: var(--th-bg); color: var(--th-text);
  font-weight: 700; text-align: center; vertical-align: middle;
  padding: 10px 28px 10px 12px; position: relative; cursor: pointer; user-select: none;
  border: 1px solid var(--th-border); border-bottom-width: 2px;
  line-height: 1.4;
}
table.dt th.left, table.dt td.left { text-align: left; }
table.dt th::after {
  content: "\2191\2193"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 12px; letter-spacing: -2px; opacity: .3;
}
table.dt th.asc::after { content: "\2191"; opacity: .9; }
table.dt th.desc::after { content: "\2193"; opacity: .9; }
table.dt th.nosort { cursor: default; }
table.dt td {
  padding: 12px; border: 1px solid var(--td-border); text-align: center; vertical-align: top;
  line-height: 1.4;
}
table.dt tbody tr:nth-child(odd) { background: var(--row-alt); }
table.dt tbody tr:hover { background: var(--row-hover); }
table.dt tfoot th { cursor: default; border-top: 2px solid var(--th-border); }
table.dt tfoot th::after { content: none; }
.btn-tba {
  display: inline-block; border: 1px solid var(--btn-tba-border); color: var(--btn-tba-text);
  background: transparent; border-radius: 4px; padding: 5px 12px; font: inherit; cursor: pointer;
}
.btn-green {
  display: inline-block; border: 1px solid var(--green); color: var(--green); background: transparent;
  border-radius: 4px; padding: 5px 30px; font: inherit; cursor: pointer;
}
.btn-green:hover { background: var(--green-bg); color: #fff; }
.btn-primary {
  background: #2853a3; color: #fff; border: 0; border-radius: 4px; padding: 7px 14px; font: inherit; cursor: pointer;
}
.btn-primary:hover { background: #20468c; }
.dt-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; flex-wrap: wrap; gap: 10px; }
.pager { display: flex; border: 1px solid var(--input-border); border-radius: 4px; overflow: hidden; }
.pager span { padding: 6px 13px; color: var(--muted); }
.pager span.cur { background: #8dbbea; color: #fff; }
.status-line { font-size: 21px; margin: 2px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--card-head-border); }

/* ---------- Home tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 14px; padding-top: 36px; }
.tile {
  position: relative; display: block;
  background: var(--card-bg); color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
  min-height: 214px; padding: 50px 16px 20px; text-align: center;
  transition: background .2s;
}
.tile-icon {
  position: absolute; top: -28px; left: 50%; transform: translateX(-50%);
  width: 84px; height: 56px; background: var(--card-bg);
  display: grid; place-items: center; color: var(--accent); font-size: 34px;
  transition: box-shadow .2s;
}
.tile h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; color: #555; }
:root[data-theme="dark"] .tile h3 { color: var(--text); }
.tile p { margin: 0; color: var(--muted); }
.tile:hover { background: var(--tile-hover); }
.tile:hover h3 { color: var(--text); }
.tile:hover p { color: #555; }
:root[data-theme="dark"] .tile:hover p { color: var(--text); }
.tile:hover .tile-icon { box-shadow: 0 0 8px rgba(200,36,58,.35); }

/* ---------- Generic pages ---------- */
.empty { color: var(--muted); text-align: center; padding: 30px 10px; }
.form-grid { display: grid; grid-template-columns: 200px 1fr; gap: 12px; max-width: 640px; align-items: center; }
.form-grid .input { width: 100%; }
.note { background: rgba(200,36,58,.07); border-left: 3px solid var(--accent); padding: 10px 14px; margin-bottom: 16px; }

/* ---------- Page-specific (matches original layouts) ---------- */
:root { --gray-head: #f7f7f7; --tbl-stripe: #f2f2f2; --red: #e00000; --blue-btn: #2853a3; }
:root[data-theme="dark"] { --gray-head: #233252; --tbl-stripe: #22314f; --red: #ff6b6b; --blue-btn: #3b6fd1; }
.card-header.gray { background: var(--gray-head); }
.sysfont, .sysfont input, .sysfont button { font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif; }
.card.plain { border-top: 0; }
.closed-big { font-size: 54px; color: #5b2a33; text-align: center; padding: 18px 10px 26px; line-height: 1.2; }
:root[data-theme="dark"] .closed-big { color: #f0a7b3; }
.enrol-ok { color: var(--red); font-size: 32px; margin: 18px 0 8px; font-weight: 400; }
.status-blue { color: var(--blue-btn); font-weight: 700; font-size: 19px; }
hr.sep { border: 0; border-top: 1px solid var(--card-head-border); margin: 20px 0; }
.red { color: var(--red); }
.btn {
  display: inline-block; border-radius: 4px; padding: 7px 16px; font: inherit; cursor: pointer;
  border: 1px solid transparent; line-height: 1.5; text-align: center;
}
.btn-success { background: #1e6b3a; color: #fff; }
.btn-success:hover { background: #185a30; }
.btn-dark { background: #343a40; color: #fff; }
.btn-muted-green { background: #6c9a72; color: #fff; }
.btn-light { background: #fff; color: #212529; border-color: #dee2e6; }
.btn-blue { background: var(--blue-btn); color: #fff; }
.btn-blue:hover { filter: brightness(.92); }
.btn-outline-blue { border-color: var(--blue-btn); color: var(--blue-btn); background: transparent; padding: 4px 10px; }
.btn-outline-blue:hover { background: var(--blue-btn); color: #fff; }

/* plain bootstrap-like tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { border-collapse: collapse; width: 100%; }
table.tbl th, table.tbl td { border: 1px solid var(--td-border); padding: 12px 16px; text-align: left; vertical-align: top; }
table.tbl th { font-weight: 700; }
table.tbl.striped tbody tr:nth-child(odd) { background: var(--tbl-stripe); }
table.tbl.noborder th, table.tbl.noborder td { border: 0; border-bottom: 1px solid var(--td-border); }
table.tbl.noborder thead th { border-bottom: 2px solid var(--td-border); vertical-align: bottom; }
table.tbl tr.info td { background: #bee5eb; }
:root[data-theme="dark"] table.tbl tr.info td { background: #1d4a57; }
table.kv-tbl td:first-child { width: 270px; font-weight: 700; }
table.kv-tbl td { font-weight: 700; }
table.kv-tbl td:last-child { font-weight: 400; }
.sysfont table.kv-tbl td:last-child { font-weight: 700; }
td.empty-row { text-align: center !important; }
.dt-info-center { text-align: center; margin-top: 16px; }
.dt-top.center { justify-content: center; }
.dt-top.split { justify-content: space-between; flex-wrap: wrap; }
.dt-top select { border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text); border-radius: 4px; height: 38px; padding: 0 8px; font: inherit; font-size: 14px; }

/* module schedule */
.banner-blue { background: #007bff; color: #fff; font-size: 31px; padding: 16px 22px; margin-bottom: 0; }
.sched-wrap { overflow-x: auto; padding: 0 22px; }
table.sched { border-collapse: collapse; min-width: 1100px; width: 100%; }
table.sched th { background: #212529; color: #fff; padding: 10px 8px; font-size: 18px; vertical-align: bottom; text-align: center; border: 1px solid #32383e; }
table.sched td { border: 1px solid #dee2e6; height: 118px; vertical-align: top; padding: 0; }
:root[data-theme="dark"] table.sched td { border-color: #2f4064; }
table.sched td.day { font-weight: 700; font-size: 19px; text-align: center; padding-top: 10px; vertical-align: top; width: 140px; }
.ev { background: #28a745; color: #fff; font-size: 13.5px; text-align: center; line-height: 1.35; padding: 6px 6px; height: 100%; min-height: 118px; transition: box-shadow .15s; }
.ev.nc { background: #ffc107; color: #212529; }
.ev b { font-weight: 700; }
.ev.hl { box-shadow: inset 0 0 0 3px #212529; }
.legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 26px 0 8px; font-size: 15px; font-weight: 700; }
.legend span { padding: 6px 22px; border-radius: 3px; }
.lg-red { background: #dc3545; color: #fff; } .lg-green { background: #28a745; color: #fff; } .lg-yellow { background: #ffc107; color: #212529; }
.lg-link { background: var(--gray-head); color: var(--text); padding: 6px 14px !important; }
.rules { list-style: none; padding: 0; margin: 6px auto 0; max-width: 1320px; padding-left: 76px; }
.rules li { margin: 4px 0; font-size: 18px; }
.rules li span { display: inline-block; width: 34px; }
.closed-red { color: #dc3545; font-weight: 700; font-size: 26px; margin: 28px 0 14px; }
.btn-eye { background: var(--blue-btn); color: #fff; border: 0; border-radius: 4px; width: 60px; height: 50px; font-size: 20px; cursor: pointer; }

/* groups */
.form-row { display: grid; grid-template-columns: 360px 494px; gap: 14px 66px; align-items: center; margin: 6px 0; }
.form-row label { text-align: right; font-weight: 700; }
.form-row select, .sel { width: 100%; height: 50px; border: 1px solid var(--input-border); background: var(--input-bg); color: var(--text); border-radius: 4px; padding: 0 12px; font: inherit; }
.group-title { font-size: 40px; font-weight: 400; margin: 46px 10px 14px; padding-bottom: 14px; border-bottom: 1px solid var(--card-head-border); }
.g-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.g-mods div { margin-bottom: 4px; }

/* offences */
.notice-title { font-weight: 700; margin: 26px 0 30px; font-size: 19px; }
.notice-red { color: var(--red); font-size: 19px; line-height: 1.7; }
.total-points { font-size: 32px; margin: 18px 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--card-head-border); }
.nested { margin: 22px 0; }

/* exams */
.alert-teal { background: #17a2b8; color: #fff; border-radius: 4px; padding: 16px 52px 16px 32px; position: relative; margin-bottom: 22px; font-size: 18px; }
.alert-teal .x { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: rgba(0,0,0,.35); font-size: 20px; cursor: pointer; }
.alert-teal i.fa-info-circle { margin-right: 8px; }

/* MC */
.mc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--card-head-border); margin-bottom: 22px; }
.mc-top h3 { font-size: 32px; font-weight: 400; margin: 0; }
.legend-title { font-size: 38px; font-weight: 400; margin: 40px 0 18px; padding-top: 22px; border-top: 1px solid var(--card-head-border); }
pre.legend-pre { font-size: 18px; margin: 0 16px 60px; line-height: 1.6; overflow-x: auto; color: var(--text); }

/* payments */
.pay-form { display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid var(--card-head-border); margin-bottom: 22px; }
.pay-form label { font-weight: 700; }
.pay-form .sel { width: 238px; }
table.pay th { background: #c3e6cb; text-align: center; vertical-align: bottom; border-color: #8fd19e; }
:root[data-theme="dark"] table.pay th { background: #1f5a33; border-color: #2c7a46; }
table.pay th.sub { font-weight: 400; }
table.pay td { text-align: center; vertical-align: middle; }
table.pay td.r { text-align: right; }

/* news */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
.news-item { border-top: 1px solid var(--card-head-border); padding: 26px 10px 40px; }
.date-badge { display: inline-block; background: #dc3545; color: #fff; font-weight: 700; font-size: 14px; padding: 2px 10px; border-radius: 4px; }
.date-plain { font-weight: 700; font-size: 14px; padding: 2px 10px; }
.news-item h3, .news-detail h3 { font-size: 30px; font-weight: 700; margin: 18px 0 10px; line-height: 1.3; }
.news-item p { color: var(--muted); font-size: 19px; margin: 0 0 18px; }
.news-detail { font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 19px; }
.news-detail h2 { font-family: "Source Sans 3", sans-serif; font-weight: 400; font-size: 36px; margin: 0 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--card-head-border); }
.news-detail h3 { font-family: "Source Sans 3", sans-serif; }
.news-detail h4 { font-size: 26px; margin: 10px 0; }

/* closed pages */
.page-h { font-size: 36px; font-weight: 400; margin: 30px 0 0; }
.page-h.xl { font-size: 52px; margin-top: 30px; }
.deadline-closed { color: var(--red); font-weight: 700; font-size: 38px; margin: 0 0 8px; }

/* dropdowns */
.dd-wrap { position: relative; }
.dd { display: none; position: absolute; right: -40px; top: 44px; background: var(--card-bg); color: var(--text); min-width: 380px; box-shadow: 0 6px 18px rgba(0,0,0,.18); border: 1px solid var(--card-head-border); border-radius: 4px; z-index: 1100; text-align: center; }
.dd.open { display: block; }
.dd > a, .dd-muted { display: block; padding: 12px 16px; color: var(--text); }
.dd-muted { color: var(--muted); border-bottom: 1px solid var(--card-head-border); }
.dd > a:hover { background: var(--row-hover); }
.dd-user { min-width: 380px; text-align: left; }
.dd-user > a { text-align: center; border-top: 1px solid var(--card-head-border); }
.dd-profile { display: flex; gap: 20px; padding: 16px 20px; align-items: flex-start; position: relative; }
.avatar.sm { width: 70px; height: 80px; margin: 0; font-size: 30px; background: #e9ecef; }
.logout { color: #dc3545; display: inline-block; margin-top: 2px; }
.star { color: #dc3545; position: absolute; right: 22px; top: 60px; }

/* modal */
.modal-back { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1200; padding: 60px 16px; overflow-y: auto; }
.modal-back.open { display: block; }
.modal-box { background: var(--card-bg); max-width: 640px; margin: 0 auto; border-radius: 6px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--card-head-border); font-size: 20px; }
.modal-body { padding: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .wrapper { margin-left: 0; }
  body.open .sidebar { transform: none; }
  body.open .backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1035; }
  .profile-row { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; gap: 6px; }
  .form-row label { text-align: left; }
  .rules { padding-left: 0; }
}
@media (max-width: 700px) {
  .topbar { padding: 0 10px; }
  .topbar-right { gap: 6px; }
  .beta { font-size: 17px; margin-right: 2px; }
  .badge-outline { font-size: 13px; padding: 4px 7px; }
  .icon-btn { font-size: 16px; padding: 6px 2px; }
  .content { padding: 12px 16px 30px; }
  .kv { grid-template-columns: 1fr 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .dt-top input { width: 100%; }
  .news-grid { grid-template-columns: 1fr; }
  .news-item h3 { font-size: 24px; }
  .closed-big { font-size: 34px; }
  .enrol-ok { font-size: 24px; }
  .group-title { font-size: 28px; }
  .total-points, .mc-top h3 { font-size: 24px; }
  .legend-title { font-size: 28px; }
  pre.legend-pre { font-size: 14px; margin: 0 0 40px; }
  .page-h { font-size: 28px; } .page-h.xl { font-size: 36px; }
  .deadline-closed { font-size: 30px; }
  .banner-blue { font-size: 24px; }
  .sched-wrap { padding: 0; }
  .card-body { padding: 16px; }
  .dd { position: fixed; left: 12px; right: 12px; top: 56px; min-width: 0; }
  table.kv-tbl td:first-child { width: 45%; }
  .rules li { font-size: 16px; }
}
@media (max-width: 420px) {
  .badge-outline.sem { display: none; }
  #fullBtn { display: none; }
}
