:root {
  --navy: #0b2d5c;
  --blue: #124a91;
  --gold: #d6a72c;
  --red: #b3212d;
  --bg: #f4f7fb;
  --surface: #fff;
  --line: #e1e7ef;
  --text: #172033;
  --muted: #667085;
  --ok: #16803c;
  --ok-bg: #e8f6ee;
  --bad: #c62828;
  --bad-bg: #fdecec;
  --warn: #9a6b00;
  --warn-bg: #fff4d6;
  --none-bg: #f1f4f8;
  --tab-h: 46px;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
}
button {
  font: inherit;
  cursor: pointer;
}

/* tab bar: brand · scrolling tab strip · signed-in user + logout (always visible) */
.portal-nav {
  height: var(--tab-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: linear-gradient(90deg, #08244a, var(--navy) 40%, #0f3a75);
  box-shadow: 0 2px 10px rgba(11, 45, 92, 0.25);
  position: relative;
  z-index: 10;
}
.portal-brand {
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  flex: none;
  padding-right: 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.portal-brand b {
  color: var(--gold);
  font-weight: 700;
}
.nav-tabs {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  padding: 0 8px;
}
.nav-tabs::-webkit-scrollbar {
  display: none;
}
.portal-tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #cfd9ea;
  font-weight: 500;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition:
    background 0.15s,
    color 0.15s;
}
.portal-tab .ti {
  font-size: 14px;
  line-height: 1;
}
.portal-tab .ts,
.portal-tab .tm {
  display: none;
}
.portal-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.portal-tab[aria-selected="true"] {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--gold);
}
.portal-tab:focus-visible,
.nav-out:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.nav-right {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}
/* narrower screens: short tab names, user name trimmed */
@media (max-width: 1560px) {
  .portal-tab .tl {
    display: none;
  }
  .portal-tab .ts {
    display: inline;
  }
}
@media (max-width: 900px) {
  .nav-user {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .portal-tab {
    padding: 7px 9px;
    font-size: 12px;
  }
}
/* small laptops: drop the brand text and tighten the tabs so every tab fits */
@media (max-width: 1150px) {
  .portal-brand {
    display: none;
  }
  .portal-tab {
    padding: 7px 10px;
  }
}
/* phones and tablets: icon tab bar that always fits the screen */
@media (max-width: 900px) {
  :root {
    --tab-h: 56px;
  }
  .portal-nav {
    gap: 4px;
    padding: 0 6px;
  }
  .portal-brand {
    display: none;
  }
  .nav-user {
    display: none;
  }
  .nav-out .tl2 {
    display: none;
  }
  .nav-right {
    padding-left: 6px;
  }
  .nav-tabs {
    -webkit-mask-image: none;
    mask-image: none;
    padding: 0;
    gap: 0;
  }
  .portal-tab {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    padding: 5px 2px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 8px;
  }
  .portal-tab .ti {
    font-size: 17px;
  }
  .portal-tab .ts {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .portal-tab .tm {
    display: inline;
  }
  .portal-tab .tm + *,
  .portal-tab .ts:has(+ .tm) {
    display: none;
  }
  .portal-tab[aria-selected="true"] {
    box-shadow: inset 0 -3px 0 var(--gold);
  }
}
.portal-frames {
  position: relative;
  height: calc(100% - var(--tab-h));
}
.portal-frames > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: none;
  background: var(--bg);
}
.portal-frames > .on {
  display: block;
}

/* dashboard */
.dash {
  overflow-y: auto;
  padding: 18px 22px 40px;
}
.dash > * {
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}
.dash-search {
  position: relative;
  margin-bottom: 6px;
}
#dashQ {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(11, 45, 92, 0.06);
}
#dashQ:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.dash-results {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(11, 45, 92, 0.16);
  max-height: 60vh;
  overflow: auto;
  padding: 6px;
}
.res {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  padding: 9px 10px;
  border-radius: 8px;
}
.res:hover,
.res:focus {
  background: #eef3fa;
  outline: none;
}
.kind {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #e6eefb;
  color: var(--blue);
  padding: 2px 7px;
  border-radius: 10px;
}
.kind.fac {
  background: #fdf1d6;
  color: var(--warn);
}
.dash-date {
  color: var(--muted);
  font-size: 12px;
  margin: 0 auto 14px;
}
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(11, 45, 92, 0.06);
  min-width: 0;
}
section.card {
  margin-bottom: 16px;
}
.card h2 {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--navy);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}
.kpi {
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}
.kpi b {
  display: block;
  font-size: 20px;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.kpi span {
  font-size: 11px;
  color: var(--muted);
}
.kpi.ok b {
  color: var(--ok);
}
.kpi.bad b,
.kpi.warn b {
  color: var(--bad);
}
.pbar {
  height: 8px;
  background: #e9eef5;
  border-radius: 6px;
  margin-top: 12px;
  overflow: hidden;
}
.pbar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #1c63b7);
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.card > .muted {
  margin-top: 10px;
}
.empty {
  color: var(--muted);
  padding: 14px 4px;
  line-height: 1.7;
}
.empty.good {
  color: var(--ok);
  font-weight: 500;
}
.btn {
  margin-top: 6px;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
}
.lnk {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  font-weight: 500;
  text-align: left;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.lnk:hover {
  color: var(--navy);
  text-decoration-style: solid;
}
.lnk.small {
  font-size: 11px;
  font-weight: 400;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
}
.chip {
  text-decoration: none;
  background: var(--none-bg);
  border-radius: 12px;
  padding: 3px 9px;
  font-size: 12px;
}
.chip.bad {
  background: var(--bad-bg);
  color: var(--bad);
}
.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--none-bg);
  color: var(--muted);
  white-space: nowrap;
}
.tag.ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.tag.bad {
  background: var(--bad-bg);
  color: var(--bad);
}
.tag.warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.amt {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}
.list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 8px 2px;
  border-bottom: 1px solid #eef1f6;
}
.list li:last-child {
  border-bottom: 0;
}
.when {
  font-weight: 700;
  font-size: 12px;
  color: var(--navy);
  min-width: 64px;
}
.what {
  color: var(--muted);
  font-size: 12px;
}

/* timetable / course tables */
.tt-wrap {
  overflow-x: auto;
}
.tt {
  border-collapse: collapse;
  width: 100%;
  min-width: 560px;
}
.tt th,
.tt td {
  border: 1px solid #e6ebf2;
  padding: 7px 8px;
  vertical-align: top;
  text-align: left;
  font-size: 12px;
}
.tt thead th {
  background: #f1f5f9;
  color: var(--navy);
  white-space: nowrap;
}
.tt tbody th {
  background: #fafbfd;
  white-space: nowrap;
}
.tt-slot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 8px;
  margin-bottom: 4px;
  border-left: 3px solid #c4ccd8;
  background: var(--none-bg);
}
.tt-slot.ok {
  background: var(--ok-bg);
  border-left-color: var(--ok);
}
.tt-slot.bad {
  background: var(--bad-bg);
  border-left-color: var(--bad);
}
.tt-slot .tag {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.7);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.legend .tt-slot {
  flex-direction: row;
  font-size: 11px;
  margin: 0;
  padding: 3px 8px;
}

@media (max-width: 600px) {
  .dash {
    padding: 12px 16px 32px;
  }
}

/* a signed-in student sees only their own details */
body.student-mode
  .portal-tab:not([data-app="dashboard"]):not([data-app="myatt"]):not([data-app="students"]):not([data-app="results"]):not(
    [data-app="notices"]
  ):not([data-app^="page:"]):not([data-app="files"]) {
  display: none;
}

/* nav: signed-in user + logout */
[hidden] {
  display: none !important;
}
.nav-user {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-out {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  white-space: nowrap;
}
.nav-out:hover {
  background: rgba(255, 255, 255, 0.12);
}
body.signed-out .portal-tab,
body.signed-out .nav-out {
  display: none;
}

/* sign-in screen */
.signin {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: linear-gradient(135deg, #0b2d5c, #124a91 60%, #1c63b7);
}
body.signed-out .signin {
  display: flex;
}
.signin-box {
  background: #fff;
  border-radius: 16px;
  border-top: 4px solid var(--gold);
  width: 100%;
  max-width: 400px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
}
.signin-h {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
}
.signin-h b {
  font-size: 18px;
  color: var(--navy);
}
.signin-h span {
  font-size: 12px;
  color: var(--muted);
}
.ltabs {
  display: flex;
  gap: 4px;
  background: #eef2f7;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 12px;
}
.ltab {
  flex: 1;
  border: 0;
  background: none;
  padding: 8px;
  border-radius: 8px;
  font-weight: 600;
  color: #3d4a60;
}
.ltab.active {
  background: var(--navy);
  color: #fff;
}
.fl {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #475467;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.fl input,
.fl select {
  font: inherit;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
}
.si-err {
  color: var(--red);
  font-size: 12px;
  font-weight: 600;
  min-height: 18px;
  margin-bottom: 6px;
}
.si-note {
  margin-top: 10px;
}
.btn.wide {
  width: 100%;
  padding: 10px;
  margin-top: 0;
}

/* idle warning */
.idle-warn {
  position: fixed;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff4d6;
  color: #7a5200;
  border: 1px solid #f0d993;
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(11, 45, 92, 0.18);
}
.idle-warn button {
  border: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
}

/* pages: backups, users & access */
.page-h {
  max-width: 1500px;
  margin: 0 auto 14px;
}
.page-h h1 {
  margin: 0;
  font-size: 20px;
  color: var(--navy);
}
.page-h p {
  margin: 4px 0 0;
}
.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.toolbar-row select {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 10px;
  font: inherit;
}
.btn.ghost {
  background: #fff;
  color: var(--blue);
}
.btn.danger {
  background: var(--bad-bg);
  border-color: #f3c2c2;
  color: var(--bad);
}
.btn.sm {
  padding: 4px 9px;
  font-size: 12px;
  margin-top: 0;
}
.toolbar-row .btn {
  margin-top: 0;
}
.tt td.c,
.tt th.c {
  text-align: center;
}
.tt.access td,
.tt.access th {
  white-space: nowrap;
}
.tt.access select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 7px;
  font: inherit;
  font-size: 12px;
}
.acc-box {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}
.row-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.row-inline select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
}
#bkStatus .kpi b {
  font-size: 15px;
}

/* portal dialog */
.pdlg {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(11, 45, 92, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.pdlg-box {
  background: #fff;
  border-radius: 14px;
  border-top: 4px solid var(--gold);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  padding: 16px 18px;
}
.pdlg-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.pdlg-h b {
  color: var(--navy);
  font-size: 16px;
}
.pdlg-h button {
  border: 0;
  background: #f1f4f8;
  border-radius: 50%;
  width: 30px;
  height: 30px;
}
.chkrow {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eef1f6;
}
.acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.pdlg hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}

/* backups: one section per app */
.bk-tabs {
  max-width: 1500px;
  margin: 0 auto 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bk-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 10px;
  padding: 8px 14px;
  font-weight: 600;
}
.bk-tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
#app-backups section {
  max-width: 1500px;
  margin: 0 auto;
}
.toolbar-row input[type="password"] {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 10px;
  font: inherit;
  min-width: 240px;
}
.btn.restore {
  background: #16803c;
  border-color: #16803c;
  color: #fff;
}

/* dashboard: reminders */
.rem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: 16px;
}
.rem-col h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--navy);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.rem {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eef1f6;
  font-size: 13px;
}
.rem:last-child {
  border-bottom: 0;
}
.rem .who {
  font-weight: 600;
}
.rem .acts2 {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.rem a.btn {
  text-decoration: none;
  margin-top: 0;
}

/* dashboard: important now, suggestions & reports */
.imp-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 8px;
}
.imp {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-left: 4px solid #c4ccd8;
  border-radius: 10px;
  padding: 9px 12px;
  background: #fff;
}
.imp.high {
  border-left-color: var(--bad);
  background: #fffafa;
}
.imp.mid {
  border-left-color: var(--gold);
  background: #fffdf5;
}
.imp.ok {
  border-left-color: var(--ok);
}
.imp b {
  display: block;
  font-size: 13px;
}
.imp .muted {
  display: block;
}
.imp .lnk {
  margin-top: 3px;
  font-size: 12px;
}
.fb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 16px;
}
.fb-col h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--navy);
}
.fb-item {
  border-bottom: 1px solid #eef1f6;
  padding: 8px 0;
}
.fb-item:last-child {
  border-bottom: 0;
}
.fb-item .txt {
  font-size: 13px;
  margin: 3px 0;
  white-space: pre-wrap;
}
.fb-item .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}

/* users & access: create a login */
.nu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.chk {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}
.tt.access .btn {
  margin-top: 0;
}

/* rights grid: tick-all row */
.tt.access tr.rg-all th,
.tt.access tr.rg-all td {
  background: #eef3fa;
}

/* popups, forgot password, field rights, toast */
.pd-acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}
.pd-acts .btn {
  margin-top: 0;
  padding: 8px 14px;
}
.pd-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -2px 0 12px;
}
.pdlg-box p {
  font-size: 13px;
  line-height: 1.45;
}
.si-forgot {
  display: block;
  margin: 10px auto 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rg-sub {
  margin: 18px 0 4px;
  font-size: 15px;
  color: var(--navy);
}
.tt.rg-fields {
  min-width: 0;
  max-width: 640px;
}
.tt.rg-fields td.c {
  width: 110px;
}
.tt.access tr.rg-grp th,
.tt.access tr.rg-grp td {
  background: #eef3fa;
  color: var(--navy);
  font-weight: 700;
}
.ptoast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: 0.2s;
  z-index: 80;
}
.ptoast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
#spQ {
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  background: #fff;
}
#spQ:focus {
  outline: 2px solid #c9d8ef;
  border-color: var(--blue);
}
.req-star {
  display: none;
  color: var(--red);
  font-weight: 700;
  margin-left: 2px;
}
.miss .req-star {
  display: inline;
}
.fl.miss {
  color: var(--red);
}
.fl.miss input,
.fl.miss select {
  border-color: var(--red);
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(179, 33, 45, 0.1);
}

/* 🔔 notifications */
.nav-bell {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  width: 34px;
  height: 30px;
  font-size: 15px;
  line-height: 1;
}
.nav-bell:hover {
  background: rgba(255, 255, 255, 0.12);
}
body.signed-out .nav-bell {
  display: none;
}
.nav-bell[hidden] {
  display: none;
}
.nb-n {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e5484d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  border: 2px solid var(--navy);
}
.nt-panel {
  position: fixed;
  top: calc(var(--tab-h) + 6px);
  right: 10px;
  z-index: 70;
  width: min(420px, calc(100vw - 20px));
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(11, 45, 92, 0.22);
  overflow: hidden;
}
.nt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.nt-head b {
  color: var(--navy);
  font-size: 15px;
}
.nt-read {
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
}
.nt-list {
  overflow: auto;
}
.nt-item {
  display: flex;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #eef1f6;
  background: #fff;
  padding: 10px 14px;
}
.nt-item:hover {
  background: #f5f8fd;
}
.nt-item.new {
  background: #f3f7ff;
}
.nt-item.new .nt-t {
  font-weight: 600;
}
.nt-ic {
  font-size: 18px;
  line-height: 1.3;
  flex: none;
}
.nt-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.nt-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nt-from {
  display: inline-block;
  max-width: 70%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 999px;
}
.nt-item.red .nt-from {
  background: var(--bad);
}
.nt-when {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.nt-t {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
}
.nt-item.new .nt-when::before {
  content: "● ";
  color: #2f6fed;
}
.nt-empty {
  padding: 28px 14px;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 600px) {
  .portal-tab {
    font-size: 9.5px;
    letter-spacing: -0.1px;
    padding: 5px 1px;
  }
  .nav-bell {
    width: 30px;
  }
  .nav-right {
    gap: 5px;
  }
}

/* 👨‍🏫 a signed-in faculty member sees only their own dashboard */
body.faculty-mode
  .portal-tab:not([data-app="mydash"]):not([data-app="notices"]):not([data-app="stuatt"]):not([data-app^="page:"]):not(
    [data-app="files"]
  ) {
  display: none !important;
}
.fd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.fd-att {
  margin: 0 0 12px;
}
.fd-month {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fd-month b {
  min-width: 130px;
  text-align: center;
  color: var(--navy, #0b2d5c);
}
.fd-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin: 10px 0 14px;
}
.fd-kpi {
  background: #fff;
  border: 1px solid #e1e7ef;
  border-top: 3px solid #d6a72c;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fd-kpi b {
  font-size: 22px;
  color: #0b2d5c;
}
.fd-kpi small {
  color: #667085;
  font-weight: 600;
}
.fd-log {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fd-msg {
  border: 1px solid #e1e7ef;
  border-left: 4px solid #16803c;
  border-radius: 10px;
  padding: 9px 12px;
  background: #fbfdfb;
}
.fd-msg.cut {
  border-left-color: #c62828;
  background: #fffafa;
}
.fd-msg.warn {
  border-left-color: #d6a72c;
  background: #fffdf5;
}
.fd-msg-h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 13px;
}
.fd-note {
  margin-top: 5px;
  color: #172033;
}
.fd-note.small {
  font-size: 12px;
  color: #475569;
}
.fd-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  background: #eef1f6;
  color: #475467;
  white-space: nowrap;
}
.fd-pill.ok {
  background: #e8f6ee;
  color: #16803c;
}
.fd-pill.cut {
  background: #fdecec;
  color: #c62828;
}
.fd-pill.warn {
  background: #fff4d6;
  color: #9a6b00;
}
.fd-table td {
  vertical-align: top;
}
.fd-lec {
  margin-bottom: 4px;
}
.fd-t {
  font-size: 12px;
  color: #667085;
  font-weight: 600;
}
.fd-topic {
  font-size: 12.5px;
  color: #124a91;
  margin: 2px 0 0 4px;
}
.fd-pw {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.fd-pw .fl {
  flex: 1 1 180px;
}
.fl-phone {
  width: 150px;
}
@media (max-width: 760px) {
  .fd-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .fd-table thead {
    display: none;
  }
  .fd-table,
  .fd-table tbody,
  .fd-table tr,
  .fd-table td {
    display: block;
    width: 100%;
  }
  .fd-table tr {
    border: 1px solid #e1e7ef;
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 8px 10px;
  }
  .fd-table td {
    border: 0 !important;
    padding: 3px 0 !important;
  }
  .fd-table td[data-l]::before {
    content: attr(data-l);
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #667085;
  }
}

/* 👨‍🏫 faculty dashboard: tabs, days as accordions, add-class form */
.fd-tabs {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #e9eef5;
  border-radius: 12px;
  overflow-x: auto;
  margin-bottom: 10px;
}
.fd-tab {
  flex: 1 0 auto;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 14px;
  border-radius: 9px;
  color: #475569;
  cursor: pointer;
  white-space: nowrap;
}
.fd-tab.active {
  background: #0b2d5c;
  color: #fff;
}
.fd-day {
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  margin-bottom: 8px;
  overflow: hidden;
}
.fd-day > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 12px;
  background: #f6f9fd;
  border-left: 4px solid #0b2d5c;
  font-size: 13.5px;
}
.fd-day > summary::-webkit-details-marker {
  display: none;
}
.fd-day > summary::before {
  content: "▸";
  color: #0b2d5c;
  font-weight: 800;
}
.fd-day[open] > summary::before {
  content: "▾";
}
.fd-day-b {
  padding: 10px 14px 12px;
}
.fd-rem {
  margin-top: 6px;
  font-size: 13px;
  color: #334155;
}
.fd-del {
  border: 1px solid #f2c4c4;
  background: #fff;
  color: #c62828;
  border-radius: 8px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 8px;
  cursor: pointer;
}
.fd-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.fd-form input[hidden] {
  display: none !important;
}
.fd-form .fl input,
.fd-form .fl select {
  width: 100%;
}
.fd-panel textarea {
  width: 100%;
}
.fd-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
@media (max-width: 760px) {
  .fd-form {
    grid-template-columns: 1fr 1fr;
  }
  .fd-tab {
    padding: 8px 10px;
    font-size: 12.5px;
  }
}
.fd-row {
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  padding: 8px 12px 4px;
  margin-bottom: 10px;
  background: #fbfcfe;
}
.fd-row-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  color: #0b2d5c;
}
.fd-form-top {
  grid-template-columns: 1fr 3fr;
  margin-bottom: 10px;
}
.fd-row input[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .fd-form-top {
    grid-template-columns: 1fr;
  }
}

/* ↺ Reset (Backups tab, Super Admin only) */
.bk-reset {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-left: 4px solid #c62828;
}
.bk-reset .muted {
  font-size: 13px;
  margin-top: 2px;
  max-width: 820px;
}
.rs-ovl {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.rs-box {
  background: #fff;
  border-radius: 14px;
  border-top: 5px solid #c62828;
  padding: 18px 20px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.rs-box h3 {
  margin: 0 0 8px;
  color: #b3212d;
}
.rs-box p {
  margin: 0 0 8px;
  font-size: 13px;
}
.rs-f {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 700;
  font-size: 13px;
  margin-top: 6px;
}
.rs-f input {
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
}
.rs-err {
  color: #c62828;
  font-size: 12px;
  font-weight: 600;
  min-height: 18px;
  margin-top: 6px;
}
.rs-acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* 🔔 Notifications tab */
.portal-tab .nb-tab {
  margin-left: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #e5484d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  display: inline-block;
  text-align: center;
}
.bk-tab .cnt:not(:empty) {
  margin-left: 4px;
  background: #e5484d;
  color: #fff;
  border-radius: 9px;
  padding: 0 6px;
  font-size: 11px;
}
#app-notices > *,
#app-results > * {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.nt-page {
  padding: 0;
  overflow: hidden;
}
.nt-page .nt-item {
  padding: 12px 16px;
}
.nt-form h2,
.rs-form h2 {
  margin: 0 0 10px;
  font-size: 17px;
  color: var(--navy);
}
.nt-form .fl,
.rs-form .fl {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 13px;
}
.nt-form input,
.nt-form textarea,
.nt-form select,
.rs-form input,
.rs-form select,
#rsBatch {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 400;
}
.nc-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.nc-row .btn {
  margin-bottom: 10px;
}
.nc-ok {
  color: var(--ok);
  font-weight: 600;
  font-size: 13px;
}
.nc-item.new {
  border-left: 4px solid #2f6fed;
}
.nc-item.focus {
  box-shadow: 0 0 0 3px rgba(214, 167, 44, 0.6);
}
.nc-h {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.nc-h b {
  font-size: 15px;
  color: var(--navy);
}
.nc-to {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.nc-body {
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
.nc-meta {
  margin-top: 8px;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* 📊 Results */
.rs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.rs-sub {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.rs-sub .rs-sn {
  flex: 1;
  min-width: 0;
}
.rs-sub .rs-sm {
  width: 120px;
}
.rs-title {
  color: var(--navy);
  font-size: 16px;
}
.rs-marks input.rs-mk {
  width: 64px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px;
  font: inherit;
}
.rs-marks input.rs-mk.miss {
  border-color: var(--bad);
  background: var(--bad-bg);
}
.rs-marks td.c,
.rs-marks th.c {
  text-align: center;
}
.rs-card-h {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.rs-card-h b {
  font-size: 16px;
  color: var(--navy);
}
.rs-card .kpis {
  margin-top: 10px;
}
.nc-item,
.nt-form,
.rs-card {
  margin-bottom: 12px;
}
.tt.rs-mini {
  min-width: 0;
}

/* ☰ More + 👤 account menus in the top bar */
.nav-more {
  flex: none;
  display: flex;
}
.nav-more-btn,
.nav-acct-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #cfd9ea;
  font: inherit;
  font-weight: 500;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
}
.nav-more-btn .ts {
  display: inline;
}
.nav-more-btn:hover,
.nav-acct-btn:hover,
.nav-more-btn[aria-expanded="true"],
.nav-acct-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.nav-more-btn.on {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--gold);
}
.nav-acct-btn {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  padding: 6px 10px;
}
.nav-acct-btn.on {
  border-color: var(--gold);
}
.nm-c {
  font-size: 10px;
  opacity: 0.8;
}
.nav-menu {
  position: fixed;
  z-index: 80;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(11, 45, 92, 0.22);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-menu[hidden] {
  display: none !important;
}
.nav-menu .portal-tab,
.nav-menu .nav-out {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  width: 100%;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  text-align: left;
}
.nav-menu .portal-tab .tl {
  display: inline !important;
}
.nav-menu .portal-tab .ts,
.nav-menu .portal-tab .tm {
  display: none !important;
}
.nav-menu .portal-tab:hover,
.nav-menu .nav-out:hover {
  background: #f1f5fb;
  color: var(--navy);
}
.nav-menu .portal-tab[aria-selected="true"] {
  background: #eaf1fc;
  color: var(--navy);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--gold);
}
.nav-menu .portal-tab.sub {
  padding-left: 30px;
}
.nav-menu .nav-out {
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  color: var(--bad);
  font-weight: 600;
  background: none;
}
.nm-who {
  display: flex;
  flex-direction: column;
  padding: 8px 12px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.nm-who b {
  color: var(--navy);
  font-size: 14px;
}
.nm-who span {
  color: var(--muted);
  font-size: 12px;
}
.nm-group {
  padding: 8px 12px 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nav-menu .portal-tab .nb-tab {
  margin-left: auto;
}
body.signed-out .nav-more,
body.signed-out .nav-acct {
  display: none;
}
.nav-menu .portal-tab {
  flex: none;
  min-width: 0;
}
@media (max-width: 900px) {
  .nav-more {
    flex: 1 1 0;
    min-width: 0;
  }
  .nav-more-btn {
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    padding: 5px 2px;
    font-size: 10px;
    font-weight: 600;
  }
  .nav-more-btn .ti {
    font-size: 17px;
    line-height: 1;
  }
  .nav-more-btn .nm-c {
    display: none;
  }
  .nav-acct-btn::before {
    content: "👤";
  }
  .nav-acct-btn {
    padding: 6px 8px;
  }
}
.rs-sub label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.rs-sub .rs-sm,
.rs-sub .rs-smin {
  width: 80px;
}
.rs-marks input.rs-mk.low {
  color: var(--bad);
  font-weight: 700;
}
.rs-an-card summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
.rs-an {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
  gap: 16px;
  margin-top: 10px;
}
.rs-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.rs-top b {
  color: var(--navy);
}
.rs-memo-wrap {
  margin-bottom: 18px;
}
.rs-memo-wrap .memo {
  margin: 0;
}
@media (max-width: 700px) {
  .rs-an {
    grid-template-columns: 1fr;
  }
  .rs-sub {
    flex-wrap: wrap;
  }
  .rs-sub .rs-sn {
    flex-basis: 100%;
  }
}
.nav-menu .nav-out .tl2 {
  display: inline !important;
  margin-left: 6px;
}
/* 📅 events */
.nc-date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 3px 6px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
  line-height: 1.1;
}
.nc-date b {
  font-size: 16px;
}
.nc-up {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
  border-left: 4px solid var(--gold);
}
.nc-up > b {
  color: var(--navy);
}
.nc-up-i {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
/* 📊 dashboard: top row, ⚙ Customise, student home */
.dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.dash-top .dash-date {
  margin: 0;
}
.dash-cust .dc-h {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}
.dash-cust .dc-h b {
  color: var(--navy);
}
.dc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 6px 14px;
  margin-bottom: 10px;
}
#app-dashboard.dash-stu > :not(#dashStu):not(.dash-top) {
  display: none !important;
}
#app-dashboard.dash-stu #dashCust {
  display: none;
}
#dashStu > * {
  margin-bottom: 16px;
}
.sh-hello {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.sh-hello h2 {
  margin: 0 0 6px;
}
.sh-hello > div:nth-child(2) {
  flex: 1;
  min-width: 220px;
}
.sh-av {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}
.sh-info {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 13px;
}
.sh-info span {
  color: var(--muted);
  margin-right: 4px;
}
.sh-todo {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.sh-room {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sh-room b {
  font-size: 22px;
  color: var(--navy);
}
/* 👨‍🏫 My days: calendar grid + day table */
.fd-vsw {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.fdg-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 11.5px;
  margin-bottom: 8px;
  color: var(--muted);
}
.fdg-legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 5px;
  vertical-align: -1px;
}
.fdg-legend .ok::before,
.fdg-c.ok {
  background: var(--ok-bg);
}
.fdg-legend .wait::before,
.fdg-c.wait {
  background: var(--warn-bg);
}
.fdg-legend .att::before,
.fdg-c.att {
  background: #e8efff;
}
.fdg-legend .cut::before,
.fdg-c.cut {
  background: var(--bad-bg);
}
.fdg {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}
.fdg-w {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}
.fdg-c {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 5px 6px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.fdg-c.empty {
  border: 0;
  background: none;
  cursor: default;
}
.fdg-c b {
  font-size: 14px;
  color: var(--navy);
}
.fdg-c span {
  font-size: 10.5px;
  color: var(--text);
}
.fdg-c.today {
  border-color: var(--gold);
  border-width: 2px;
}
.fdg-c.sel {
  outline: 3px solid var(--navy);
  outline-offset: -1px;
}
.fdt {
  margin-top: 14px;
}
.fdt-h {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.fdt-h b {
  font-size: 16px;
  color: var(--navy);
}
.fdt-tb {
  min-width: 640px;
}
.fdt-tb input {
  width: 100%;
  min-width: 140px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 8px;
  font: inherit;
}
.fdt-t {
  white-space: nowrap;
  font-weight: 600;
}
@media (max-width: 600px) {
  .fdg-c {
    min-height: 46px;
    padding: 4px;
  }
  .fdg-c span {
    font-size: 9px;
  }
}
/* 🕘 the three sessions of a faculty day */
.fd-sess {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.fd-ses {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
}
.fd-ses b {
  color: var(--navy);
  font-size: 14px;
}
.fd-ses.open {
  border-color: #2f6fed;
  background: #f3f7ff;
}
.fd-ses.done {
  border-color: var(--ok);
  background: var(--ok-bg);
}
.fd-ses.later {
  opacity: 0.65;
}
.fd-h3 {
  margin: 18px 0 8px;
  font-size: 15px;
  color: var(--navy);
}
/* 📒 student-wise results */
.rs-sw td.c,
.rs-sw th.c {
  text-align: center;
}
.rs-sw .rs-fail b,
.rs-sw td.rs-fail {
  color: var(--bad);
}
.rs-sw-r {
  cursor: pointer;
}
.rs-sw-r:hover td {
  background: #f5f8fd;
}
.rs-sw-d td {
  background: #f8fafc;
  font-size: 12.5px;
  line-height: 1.6;
}
.fd-ses.closed {
  background: #f3f4f6;
  color: var(--muted);
}
/* 🎓 portal-wide batch filter */
.nav-batch {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  padding: 5px 6px;
  font: inherit;
  font-size: 12px;
  max-width: 140px;
}
.nav-batch option {
  color: var(--text);
}
.nav-batch.on {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
  font-weight: 700;
}
body.signed-out .nav-batch {
  display: none;
}
@media (max-width: 600px) {
  .nav-batch {
    max-width: 96px;
    font-size: 10.5px;
    padding: 4px 2px;
  }
}
/* phones: icons only (the names are in each tab's tooltip) – room for 🎓 batch, 🔔 and 👤 */
@media (max-width: 600px) {
  .portal-tab .ts,
  .portal-tab .tm,
  .nav-more-btn .ts {
    display: none !important;
  }
  .portal-tab .ti,
  .nav-more-btn .ti {
    font-size: 19px;
  }
  .portal-tab,
  .nav-more-btn {
    padding: 8px 1px;
  }
}

/* ☰ phones and tablets: burger button + side menu with every page (full names) */
.nav-burger,
.nav-cur,
.nav-dhead,
.nav-shade {
  display: none;
}
@media (max-width: 900px) {
  .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }
  .nav-burger:hover,
  .nav-burger[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.12);
  }
  .nav-burger:focus-visible,
  .nav-dclose:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
  }
  .nav-cur {
    display: flex;
    align-items: center;
    gap: 7px;
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 6px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
  }
  .nav-cur span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-cur .ti {
    font-size: 17px;
  }
  body.signed-out .nav-burger,
  body.signed-out .nav-cur {
    display: none;
  }
  .portal-nav .nav-tabs {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: auto;
    width: min(300px, 84vw);
    z-index: 95;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0 10px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(-105%);
    visibility: hidden;
    transition:
      transform 0.22s ease,
      visibility 0.22s;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
  }
  body.nav-open .portal-nav .nav-tabs {
    transform: none;
    visibility: visible;
  }
  .nav-dhead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    padding: 14px 4px 12px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
  }
  .nav-dbrand {
    color: var(--navy);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.08em;
  }
  .nav-dbrand b {
    color: #b7861a;
    font-weight: 700;
  }
  .nav-dclose {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: #f1f5fb;
    color: var(--navy);
    font-size: 16px;
    cursor: pointer;
  }
  .nav-tabs .portal-tab,
  .nav-tabs .nav-menu .portal-tab {
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    color: var(--text);
    border-radius: 10px;
    box-shadow: none;
  }
  .nav-tabs .portal-tab .ti {
    font-size: 18px;
    width: 24px;
    text-align: center;
  }
  .nav-tabs .portal-tab .tl {
    display: inline !important;
  }
  .nav-tabs .portal-tab .ts,
  .nav-tabs .portal-tab .tm {
    display: none !important;
  }
  .nav-tabs .portal-tab .nb-tab {
    margin-left: auto;
  }
  .nav-tabs .portal-tab:hover {
    background: #f1f5fb;
    color: var(--navy);
  }
  .nav-tabs .portal-tab[aria-selected="true"] {
    background: #eaf1fc;
    color: var(--navy);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--gold);
  }
  .nav-tabs .nav-more {
    flex: none;
    flex-direction: column;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .nav-tabs .nav-more-btn,
  .nav-tabs .nav-more-btn.on {
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    gap: 6px;
    padding: 6px 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: none;
    box-shadow: none;
    cursor: default;
    pointer-events: none;
  }
  .nav-tabs .nav-more-btn .ti {
    font-size: 13px;
  }
  .nav-tabs .nav-more-btn .ts {
    display: inline !important;
  }
  .nav-tabs .nav-menu {
    position: static;
    min-width: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
  }
  .nav-shade {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 94;
    background: rgba(8, 20, 40, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }
  body.nav-open .nav-shade {
    opacity: 1;
    pointer-events: auto;
  }
}
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .portal-nav .nav-tabs,
  .nav-shade {
    transition: none;
  }
}

/* 📊 dashboard on phones: tighter cards, two-column number tiles, short "all clear" lines */
@media (max-width: 600px) {
  .dash {
    padding: 12px 12px 28px;
  }
  .dash-search {
    margin-bottom: 8px;
  }
  #dashQ {
    padding: 11px 14px;
    font-size: 14px;
    border-radius: 12px;
  }
  .dash-top {
    margin-bottom: 12px;
    flex-wrap: nowrap;
  }
  .dash-top .dash-date {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dash-top #dashCust {
    flex: none;
    margin: 0;
    padding: 5px 10px;
    font-size: 12px;
  }
  .dash-grid {
    gap: 12px;
    margin-bottom: 12px;
  }
  .dash .card {
    padding: 14px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(11, 45, 92, 0.05);
  }
  .dash section.card {
    margin-bottom: 12px;
  }
  .dash .card h2 {
    font-size: 15px;
    margin-bottom: 10px;
  }
  .dash .kpis {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  /* an odd last tile fills the row, number and name side by side */
  .dash .kpis > .kpi:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: 10px;
  }
  .dash .kpi {
    padding: 9px 11px;
    border-radius: 10px;
  }
  .dash .kpi b {
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }
  .dash .kpi span {
    font-size: 11.5px;
    line-height: 1.3;
  }
  .dash .empty {
    padding: 2px 0 0;
    font-size: 13px;
    line-height: 1.5;
  }
  .dash .chips {
    margin-top: 10px;
    gap: 5px;
  }
  .dash .chip {
    font-size: 11.5px;
  }
  /* reminders and suggestions: one block under the other, with a thin line between */
  .rem-grid,
  .fb-grid {
    gap: 0;
  }
  .rem-col + .rem-col,
  .fb-col + .fb-col {
    border-top: 1px solid #eef1f6;
    margin-top: 10px;
    padding-top: 10px;
  }
  .rem-col h3,
  .fb-col h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin-bottom: 4px;
    justify-content: space-between;
  }
  .rem .acts2 {
    margin-left: 0;
    width: 100%;
  }
  .imp {
    padding: 9px 11px;
  }
  /* batches table: smaller, scrolls sideways inside the card */
  #cardCourses .tt-wrap {
    overflow-x: auto;
    margin: 0 -4px;
  }
  #cardCourses .tt {
    font-size: 12px;
  }
  #cardCourses .tt th,
  #cardCourses .tt td {
    padding: 6px 8px;
    white-space: nowrap;
  }
}

/* 👨‍🏫 faculty dashboard on phones: icon beside the number, odd last tile full width, all tabs visible */
@media (max-width: 600px) {
  .fd-kpis {
    gap: 8px;
    margin: 8px 0 12px;
  }
  .fd-kpi {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 8px;
    row-gap: 0;
    padding: 9px 11px;
    border-radius: 10px;
  }
  .fd-kpi > span {
    grid-row: span 2;
    font-size: 18px;
  }
  .fd-kpi b {
    font-size: 18px;
    line-height: 1.2;
  }
  .fd-kpi small {
    font-size: 11.5px;
    line-height: 1.25;
  }
  .fd-kpis > .fd-kpi:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
  .fd-tabs {
    flex-wrap: wrap;
    overflow: visible;
  }
  .fd-tab {
    flex: 1 1 30%;
    padding: 8px 6px;
    font-size: 12.5px;
  }
}

/* 🎓 Students tab (every student) with ▾ beside it for VDC / VIA only */
.nav-stu {
  flex: none;
  display: flex;
  align-items: center;
  border-radius: 8px;
}
.nav-stu .nav-caret {
  padding: 7px 7px;
  margin-left: -6px;
}
.nav-stu.on {
  background: #fff;
  box-shadow: inset 0 -3px 0 var(--gold);
}
.nav-stu.on .portal-tab,
.nav-stu.on .nav-caret {
  background: transparent;
  box-shadow: none;
  color: var(--navy);
  font-weight: 700;
}
.nav-stu .nav-caret:hover {
  background: rgba(255, 255, 255, 0.12);
}
.nav-stu.on .nav-caret:hover {
  background: #eef3fa;
}
body.student-mode .nav-stu-dd,
body.student-mode #navStuMenu,
body.faculty-mode .nav-stu,
body.signed-out .nav-stu {
  display: none !important;
}
/* VINEX: opens the Dashboard */
button.portal-brand,
button.nav-dbrand {
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
}
button.portal-brand {
  font-size: 15px;
  letter-spacing: 0.12em;
}
button.nav-dbrand {
  border-right: 0;
  font-size: 15px;
  letter-spacing: 0.12em;
}
button.portal-brand:hover b,
button.nav-dbrand:hover b {
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 900px) {
  /* ☰ menu: Students, then VDC and VIA indented under it */
  .nav-tabs .nav-stu {
    flex-direction: column;
    align-items: stretch;
    background: none;
    box-shadow: none;
  }
  .nav-tabs .nav-stu-dd {
    margin: 0;
    padding: 0;
    border: 0;
  }
  .nav-tabs .nav-caret {
    display: none !important;
  }
  .nav-tabs .nav-stu .nav-menu .portal-tab {
    padding-left: 40px;
    font-size: 14px;
    min-height: 40px;
  }
  .nav-tabs .nav-stu.on .portal-tab[aria-selected="false"] {
    font-weight: 500;
    color: var(--text);
  }
}
.inst-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 10px;
  background: #fdf1d6;
  color: #8a5a00;
  font-size: 12px;
  font-weight: 700;
  vertical-align: middle;
}

/* laptops: every tab (with 💰 Fee Directory and ⚙ Settings) fits without scrolling */
@media (min-width: 901px) and (max-width: 1440px) {
  .nav-tabs .portal-tab,
  .nav-tabs .nav-more-btn {
    padding: 7px 8px;
    gap: 5px;
  }
  .nav-stu .nav-caret {
    padding: 7px 5px;
  }
  .portal-nav {
    gap: 6px;
  }
}
@media (min-width: 901px) and (max-width: 1300px) {
  .nav-tabs .portal-tab,
  .nav-tabs .nav-more-btn {
    padding: 6px 7px;
    font-size: 12.5px;
  }
}
/* small laptops / tablets in landscape: icons, with the name of the open page (names are in each tooltip) */
@media (min-width: 901px) and (max-width: 1150px) {
  .nav-tabs > .portal-tab:not([aria-selected="true"]) .ts,
  .nav-tabs > .portal-tab:not([aria-selected="true"]) .tm,
  .nav-stu:not(.on) > .portal-tab .ts,
  .nav-tabs .nav-more-btn:not(.on) .ts {
    display: none;
  }
  .nav-tabs .portal-tab .ti,
  .nav-tabs .nav-more-btn .ti {
    font-size: 16px;
  }
}

/* 🧭 Menu page */
.mn-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 16px;
}
.mn-for {
  min-width: 220px;
}
.mn-for select {
  min-width: 220px;
}
.mn-state {
  flex: 1 1 220px;
  color: var(--muted);
  font-size: 13px;
  padding-bottom: 8px;
}
.mn-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mn-acts .btn {
  margin-top: 0;
}
.mn-acts .btn[disabled] {
  opacity: 0.55;
  cursor: default;
}
.mn-prev {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  background: linear-gradient(90deg, #08244a, var(--navy) 40%, #0f3a75);
  border-radius: 10px;
}
.mn-chip {
  display: inline-flex;
  flex-direction: column;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}
.mn-chip.grp {
  background: rgba(214, 167, 44, 0.22);
}
.mn-chip small {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.85;
}
.mn-help {
  margin: -4px 0 10px;
}
.mn-list,
.mn-sub {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}
.mn-row.mn-g {
  flex-direction: column;
  align-items: stretch;
  background: #fffaf0;
  border-color: #f0dca8;
}
.mn-gh {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.mn-gi {
  width: 52px;
  text-align: center;
  font-size: 16px;
}
.mn-gl {
  flex: 1 1 160px;
  font-weight: 700;
}
.mn-gi,
.mn-gl {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.mn-sub {
  margin-left: 18px;
  padding-left: 10px;
  border-left: 3px solid #f0dca8;
}
.mn-ic {
  font-size: 18px;
  width: 26px;
  text-align: center;
}
.mn-nm {
  flex: 1 1 160px;
  font-weight: 600;
  color: var(--navy);
}
.mn-nm small {
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
.mn-ctl {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}
.mn-b {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
  font-size: 15px;
  cursor: pointer;
}
.mn-b:hover:not([disabled]) {
  background: #eaf1fc;
}
.mn-b[disabled] {
  opacity: 0.35;
  cursor: default;
}
.mn-b.red {
  color: var(--bad);
}
.mn-into {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.mn-into select {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  max-width: 190px;
}
.mn-fixed {
  padding: 0 6px;
}
.mn-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 6px 2px;
}
@media (max-width: 600px) {
  .mn-ctl {
    width: 100%;
    margin-left: 0;
  }
  .mn-into select {
    max-width: none;
    flex: 1;
  }
  .mn-into {
    flex: 1;
  }
  .mn-sub {
    margin-left: 4px;
  }
  .mn-for,
  .mn-for select {
    min-width: 0;
    width: 100%;
  }
}

/* 🧭 Menu: drag handle and dragging */
.mn-drag {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 36px;
  border-radius: 8px;
  color: #7a8aa3;
  font-size: 20px;
  line-height: 1;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.mn-drag:hover {
  background: #eef3fa;
  color: var(--navy);
}
.mn-drag:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.mn-is-dragging,
.mn-is-dragging * {
  cursor: grabbing !important;
  user-select: none;
}
.mn-row.mn-dragging {
  opacity: 0.9;
  border-color: var(--blue);
  box-shadow: 0 10px 26px rgba(11, 45, 92, 0.22);
  background: #f2f7ff;
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.mn-is-dragging .mn-g .mn-gh {
  outline: 2px dashed transparent;
  border-radius: 8px;
}
.mn-is-dragging .mn-g:not(.mn-dragging) .mn-gh:hover,
.mn-is-dragging .mn-empty:hover {
  outline-color: #d6a72c;
}
.mn-sub {
  min-height: 8px;
}
.mn-row.mn-g.mn-drop {
  border-color: #d6a72c;
  box-shadow: 0 0 0 3px #f6e3ae;
}
/* 🧭 Menu on phones: one line per row, so dragging is short */
@media (max-width: 600px) {
  .mn-row {
    flex-wrap: nowrap;
    gap: 6px;
    padding: 6px 8px;
  }
  .mn-row.mn-g {
    flex-wrap: wrap;
  }
  .mn-nm {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 14px;
  }
  .mn-nm small {
    display: block;
    margin-left: 0;
    font-size: 11px;
  }
  .mn-ctl {
    width: auto;
    margin-left: auto;
    flex: none;
  }
  .mn-into {
    flex: none;
  }
  .mn-into span {
    display: none;
  }
  .mn-into select {
    flex: none;
    max-width: 118px;
    padding: 5px 6px;
    font-size: 12px;
  }
  .mn-drag {
    width: 30px;
  }
  .mn-ic {
    width: 22px;
    font-size: 16px;
  }
  .mn-gh {
    flex-wrap: nowrap;
  }
  .mn-gl {
    min-width: 0;
    flex: 1 1 auto;
  }
  .mn-gi {
    width: 44px;
  }
  .mn-fixed {
    font-size: 11px;
  }
}

/* 🏅 Results: search, sort and the All students view */
.rs-q {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 340px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 13.5px;
  background: #fff;
}
.rs-sortl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.rs-swbar select {
  max-width: 200px;
}
.rs-swcount {
  margin: 4px 0 10px;
}
.rs-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.rs-th:hover {
  background: #e3ebf7;
}
.rs-th.on {
  color: var(--navy);
}
.rs-th .sort-ar {
  font-size: 10px;
  opacity: 0.6;
}
.rs-th.on .sort-ar {
  opacity: 1;
}
.rs-inst {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  background: #e6eefb;
  color: var(--blue);
}
.rs-inst.via {
  background: #fdf1d6;
  color: #8a5a00;
}
.rs-sw-r {
  cursor: pointer;
}
.rs-sw-r:hover td {
  background: #f5f8fd;
}
.rs-cw summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.rs-cw-r {
  cursor: pointer;
}
.rs-cw-r:hover td,
.rs-cw-r:focus td {
  background: #fff8e6;
}
.rs-m-only {
  display: none;
}
@media (max-width: 760px) {
  /* phones: VDC / VIA, batch and course go under the name */
  .rs-sw [data-m="h"] {
    display: none;
  }
  .rs-m-only {
    display: inline;
  }
  .rs-q {
    max-width: none;
    flex-basis: 100%;
  }
  .rs-swbar select,
  .rs-sortl {
    flex: 1 1 45%;
    max-width: none;
  }
  .rs-sortl select {
    flex: 1;
  }
}
@media (max-width: 760px) {
  .rs-cwt [data-m="h"] {
    display: none;
  }
  .rs-cwt td:first-child {
    white-space: nowrap;
  }
}

/* 📄 Pages: the page as everyone sees it, and the editor */
.cms-page {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px 30px;
  box-shadow: 0 8px 24px rgba(11, 45, 92, 0.06);
}
.cms-ph {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.cms-ph h1 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cms-ph .btn {
  margin-top: 8px;
}
.cms-ic {
  font-size: 1.1em;
}
.cms-draft {
  background: #fff6db;
  border: 1px solid #f0d78c;
  color: #8a5a00;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 12px;
  font-size: 13px;
}
.cms-body {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  overflow-wrap: anywhere;
}
.cms-body h2 {
  color: var(--navy);
  font-size: 21px;
  margin: 18px 0 8px;
}
.cms-body h3 {
  color: var(--navy);
  font-size: 17px;
  margin: 16px 0 6px;
}
.cms-body p {
  margin: 0 0 10px;
}
.cms-body ul,
.cms-body ol {
  margin: 0 0 10px;
  padding-left: 24px;
}
.cms-body a {
  color: var(--blue);
}
.cms-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.cms-body blockquote {
  margin: 10px 0;
  padding: 10px 14px;
  border-left: 4px solid var(--gold);
  background: #fffaf0;
  border-radius: 0 8px 8px 0;
}
.cms-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 10px 0;
  display: block;
  overflow-x: auto;
}
.cms-body th,
.cms-body td {
  border: 1px solid #cdd6e3;
  padding: 6px 10px;
  text-align: left;
  min-width: 60px;
}
.cms-body th {
  background: #eef3fa;
}
.cms-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 16px 0;
}
.cms-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 12px;
}
.cms-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cms-it-h {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.cms-it-h .cms-ic {
  font-size: 26px;
}
.cms-it-t {
  flex: 1;
  min-width: 0;
}
.cms-it-t b {
  color: var(--navy);
  font-size: 15px;
}
.cms-it-a {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cms-it-a .btn {
  margin-top: 0;
}
.cms-empty {
  text-align: center;
  padding: 30px 16px;
}
.cms-empty .cms-ic {
  font-size: 40px;
}
.cms-et {
  color: var(--navy);
}
.cms-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cms-f1,
.cms-f2 {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.cms-icf input {
  width: 70px;
  text-align: center;
  font-size: 20px;
}
.cms-tf {
  flex: 1 1 260px;
}
.cms-tf input {
  font-size: 16px;
  font-weight: 600;
}
.cms-who {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cms-chk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  background: #fff;
}
.cms-chk:has(input:checked) {
  background: #eaf1fc;
  border-color: var(--blue);
  color: var(--navy);
  font-weight: 600;
}
.cms-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px;
  background: #f5f8fc;
  border: 1px solid var(--line);
  border-radius: 10px;
  position: sticky;
  top: 0;
  z-index: 2;
}
.cms-tb {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.cms-tb:hover:not([disabled]) {
  background: #fff;
  border-color: var(--line);
}
.cms-tb[disabled] {
  opacity: 0.35;
  cursor: default;
}
.cms-tb.on {
  background: var(--navy);
  color: #fff;
}
.cms-sep {
  width: 1px;
  height: 22px;
  background: var(--line);
  margin: 0 3px;
}
.cms-grow {
  flex: 1;
}
.cms-ed,
.cms-src {
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
}
.cms-ed:focus,
.cms-src:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.cms-src {
  width: 100%;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}
.cms-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.cms-foot .btn {
  margin-top: 0;
}
@media (max-width: 600px) {
  .cms-page {
    padding: 16px 14px 22px;
    border-radius: 12px;
  }
  .cms-ph h1 {
    font-size: 20px;
  }
  .cms-sep {
    display: none;
  }
  .cms-ed,
  .cms-src {
    min-height: 260px;
  }
  .cms-foot .muted {
    flex-basis: 100%;
  }
}

/* 🔔 a new notification: the bell rings */
.nav-bell.ring {
  animation: bellRing 0.9s ease;
}
@keyframes bellRing {
  0%,
  100% {
    transform: rotate(0);
  }
  15% {
    transform: rotate(16deg);
  }
  30% {
    transform: rotate(-14deg);
  }
  45% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(-8deg);
  }
  75% {
    transform: rotate(4deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-bell.ring {
    animation: none;
  }
}
.nt-head {
  gap: 8px;
}
.nt-snd {
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 3px 9px;
  font: inherit;
  font-size: 11.5px;
  cursor: pointer;
  color: var(--muted);
}
.nt-snd:hover {
  color: var(--navy);
  border-color: var(--blue);
}
.nt-snd + .nt-read {
  margin-left: 0;
}

/* 📄 Pages: design blocks */
.cms-hero {
  background: linear-gradient(135deg, #0b2d5c, #1c63b7);
  color: #fff;
  border-radius: 14px;
  padding: 26px 24px;
  margin: 8px 0 14px;
}
.cms-body .cms-hero h2 {
  color: #fff;
  font-size: 26px;
  margin: 0 0 6px;
}
.cms-hero p {
  margin: 0;
  opacity: 0.92;
}
.cms-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 12px;
}
.cms-cols.cms-cols3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.cms-cols > div,
.cms-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fbfcfe;
  min-width: 0;
}
.cms-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin: 8px 0 12px;
}
.cms-card {
  background: #fff;
  box-shadow: 0 4px 14px rgba(11, 45, 92, 0.07);
  border-top: 3px solid var(--gold);
}
.cms-body .cms-cols h3,
.cms-body .cms-card h3 {
  margin-top: 0;
}
.cms-body a.cms-btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 10px;
}
.cms-body a.cms-btn:hover {
  background: #1c63b7;
}
.cms-note {
  border-radius: 12px;
  padding: 10px 14px;
  margin: 8px 0 12px;
  border: 1px solid;
}
.cms-note p:last-child {
  margin-bottom: 0;
}
.cms-note.info {
  background: #eef5ff;
  border-color: #bcd4f6;
}
.cms-note.warn {
  background: #fff8e6;
  border-color: #f0d78c;
}
.cms-note.ok {
  background: #ecfaf1;
  border-color: #a9e2bf;
}
.cms-faq {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 8px;
  background: #fff;
}
.cms-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
.cms-faq[open] summary {
  margin-bottom: 6px;
}
.cms-body ol.cms-steps {
  list-style: none;
  counter-reset: st;
  padding-left: 0;
}
.cms-steps li {
  counter-increment: st;
  position: relative;
  padding: 8px 0 8px 46px;
  min-height: 34px;
}
.cms-steps li::before {
  content: counter(st);
  position: absolute;
  left: 0;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cms-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 8px 0 12px;
}
.cms-stats > div {
  background: #f5f8fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.cms-stats b {
  display: block;
  font-size: 24px;
  color: var(--navy);
}
.cms-stats span {
  font-size: 12px;
  color: var(--muted);
}
.cms-contact {
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  padding: 12px 16px;
  background: #fff;
  max-width: 460px;
  margin: 8px 0 12px;
}
.cms-contact p {
  margin: 0 0 4px;
}
.cms-body figure {
  margin: 8px 0 12px;
}
.cms-body figcaption {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}
.cms-video {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 760px;
  margin: 8px 0 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1220;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.cms-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.cms-space {
  height: 28px;
}
.cms-mod {
  border: 2px dashed #b9c8de;
  border-radius: 12px;
  padding: 14px;
  margin: 8px 0 12px;
  color: var(--blue);
  font-weight: 700;
  background: #f5f8fd;
}
.cms-mod.cms-live {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font-weight: 400;
}
.cms-live-h {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.cms-body ul.cms-live-l {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.cms-live-l li {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid #eef1f6;
}
.cms-live-l li:last-child {
  border-bottom: 0;
}
.cms-live-l small {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
}
.cms-live-e {
  color: var(--muted);
}
.cms-live-go,
.cms-live-a {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cms-live-a {
  font-size: inherit;
}
@media (max-width: 600px) {
  .cms-cols,
  .cms-cols.cms-cols3 {
    grid-template-columns: 1fr;
  }
  .cms-hero {
    padding: 20px 16px;
  }
  .cms-body .cms-hero h2 {
    font-size: 21px;
  }
}

/* 📄 Pages: the block palette and the people picker */
.cms-tb-add {
  font-weight: 700;
  color: var(--blue);
  border-color: #bcd4f6;
  background: #fff;
}
.cms-pal {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(11, 45, 92, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cms-pal-g > b {
  display: block;
  color: var(--navy);
  font-size: 13px;
  margin-bottom: 6px;
}
.cms-pal-g small {
  font-weight: 400;
  color: var(--muted);
}
.cms-pal-l {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 6px;
}
.cms-pb {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfcfe;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}
.cms-pb span {
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
}
.cms-pb small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}
.cms-pb:hover {
  border-color: var(--blue);
  background: #eef5ff;
}
.cms-pb.live {
  background: #fffaf0;
  border-color: #f0dca8;
}
.cms-pplw small {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.cms-ppl {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cms-ppl input {
  max-width: 520px;
}
.cms-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cms-chips:empty {
  display: none;
}
.cms-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eaf1fc;
  color: var(--navy);
  border-radius: 14px;
  padding: 4px 6px 4px 10px;
  font-size: 12.5px;
}
.cms-chip button {
  border: 0;
  background: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 11px;
  cursor: pointer;
}
.cms-pres {
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(11, 45, 92, 0.14);
  max-height: 260px;
  overflow: auto;
}
.cms-pr {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #eef1f6;
  background: none;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.cms-pr:hover,
.cms-pr:focus {
  background: #eef5ff;
}

/* 📌 sticky notes on the dashboards */
.cms-pins {
  margin-bottom: 16px;
}
#app-dashboard.dash-stu > #dashPins.cms-pins {
  display: block !important;
}
#app-dashboard.dash-stu > #dashPins.cms-pins[hidden] {
  display: none !important;
}
.cms-pin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 14px;
}
.cms-pin {
  --pin: #fff6c9;
  --pin-b: #f0d36a;
  background: var(--pin);
  border: 1px solid var(--pin-b);
  border-radius: 4px 14px 14px 14px;
  padding: 12px 14px 10px;
  box-shadow: 0 8px 18px rgba(11, 45, 92, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  min-width: 0;
}
.cms-pin::before {
  content: "📌";
  position: absolute;
  top: -10px;
  left: 12px;
  font-size: 18px;
}
.cms-pin.b {
  --pin: #e7f0ff;
  --pin-b: #a9c6f2;
}
.cms-pin.g {
  --pin: #e6f8ec;
  --pin-b: #9fdcb5;
}
.cms-pin.p {
  --pin: #f2eaff;
  --pin-b: #c9b3f0;
}
.cms-pin.r {
  --pin: #ffecec;
  --pin-b: #f2b0b0;
}
.cms-pin-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 6px;
}
.cms-pin-h b {
  flex: 1;
  color: var(--navy);
  font-size: 15px;
}
.cms-pin-x {
  border: 0;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  cursor: pointer;
  color: var(--muted);
}
.cms-pin-x:hover {
  color: var(--bad);
}
.cms-body.cms-pin-b {
  font-size: 13.5px;
  line-height: 1.55;
  max-height: 230px;
  overflow: hidden;
  position: relative;
}
.cms-pin.long:not(.open) .cms-pin-b::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: linear-gradient(rgba(255, 255, 255, 0), var(--pin));
}
.cms-pin.open .cms-pin-b {
  max-height: none;
}
.cms-pin-b .cms-hero {
  padding: 14px;
}
.cms-pin-f {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.cms-pin-more {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
  visibility: hidden;
}
.cms-pin.long .cms-pin-more {
  visibility: visible;
}
.cms-pin-unhide {
  margin-top: 10px;
  border: 1px dashed var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 6px 12px;
  font: inherit;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}
#facPins {
  margin: 10px 0 14px;
}
.cms-tb.on,
.cms-tb.on:hover:not([disabled]) {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* 🧑‍💼 Non-teaching staff */
.nt-msg {
  background: #ecfaf1;
  border: 1px solid #a9e2bf;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 0 0 10px;
  font-size: 13px;
}
.nt-lock {
  background: #fff6db;
  border: 1px solid #f0d78c;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 0 0 10px;
  font-size: 13px;
}
.nt-wd {
  color: var(--navy);
}
.nt-kpis {
  margin-bottom: 12px;
}
.kpi.warn b {
  color: #b7791f;
}
.nt-day {
  padding: 4px 14px;
}
.nt-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) auto minmax(260px, 1.3fr);
  gap: 10px 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f6;
}
.nt-row:last-child {
  border-bottom: 0;
}
.nt-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nt-who b {
  color: var(--navy);
}
.nt-st {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.nt-sb {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 5px 10px;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--text);
}
.nt-sb:hover:not([disabled]) {
  border-color: var(--blue);
}
.nt-sb[disabled] {
  opacity: 0.55;
  cursor: default;
}
.nt-sb.on.sP {
  background: #e3f7ea;
  border-color: #34a35a;
  color: #166534;
  font-weight: 700;
}
.nt-sb.on.sH {
  background: #fff4d6;
  border-color: #d9a520;
  color: #8a5a00;
  font-weight: 700;
}
.nt-sb.on.sL {
  background: #e7f0ff;
  border-color: #5b8def;
  color: #1e40af;
  font-weight: 700;
}
.nt-sb.on.sO {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #334155;
  font-weight: 700;
}
.nt-sb.on.sA {
  background: #ffe9e9;
  border-color: #e05252;
  color: #b42318;
  font-weight: 700;
}
.nt-tm {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.nt-tm label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}
.nt-tm input {
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
}
.nt-note {
  flex: 1 1 120px;
  min-width: 0;
}
.nt-help {
  margin: 0 0 8px;
}
.nt-reg {
  font-size: 12px;
}
.nt-reg th.nt-dh {
  min-width: 26px;
  padding: 4px 2px;
}
.nt-reg th.sun {
  color: var(--bad);
}
.nt-reg td.nt-c {
  padding: 4px 2px;
  font-weight: 700;
  color: #94a3b8;
}
.nt-c.sP {
  color: #166534;
  background: #f0fbf3;
}
.nt-c.sH {
  color: #8a5a00;
  background: #fff8e6;
}
.nt-c.sL {
  color: #1e40af;
  background: #eef4ff;
}
.nt-c.sO {
  color: #475569;
  background: #f5f7fa;
}
.nt-c.sA {
  color: #b42318;
  background: #fff1f1;
}
.nt-nm {
  white-space: nowrap;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
}
.nt-left td {
  opacity: 0.6;
}
.nt-form {
  margin-bottom: 14px;
}
@media (max-width: 760px) {
  .nt-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .nt-sb span {
    display: none;
  }
  .nt-sb {
    padding: 6px 10px;
    font-size: 15px;
  }
}

/* 🎨 Appearance */
.th-presets {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
  gap: 10px;
}
.th-pre {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
}
.th-pre:hover {
  border-color: var(--blue);
}
.th-pre.on {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px var(--gold);
}
.th-sw {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
}
.th-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}
.th-cols .fl {
  flex: 1 1 260px;
}
.th-cols small {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.th-pick {
  display: flex;
  gap: 8px;
  align-items: center;
}
.th-pick input[type="color"] {
  width: 52px;
  height: 40px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.th-pick input:not([type]) {
  width: 110px;
  font-family: ui-monospace, Consolas, monospace;
}
.th-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.th-sz {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 7px 12px;
  font-family: inherit;
  cursor: pointer;
}
.th-sz.on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.th-sample {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.th-sample b {
  color: var(--navy);
  font-size: 17px;
}
.th-sample p {
  margin: 6px 0 0;
}
.th-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 -6px 20px rgba(11, 45, 92, 0.08);
  margin-top: 6px;
}
.th-bar .btn {
  margin-top: 0;
}
.th-bar .btn[disabled] {
  opacity: 0.5;
  cursor: default;
}
.th-grow {
  flex: 1;
}

/* 🧭 Menu: drop a tab onto another to make a sub-menu */
.mn-row.mn-combine {
  border: 2px dashed #d6a72c;
  background: #fff8e6;
  position: relative;
}
.mn-row.mn-combine::after {
  content: "📁 Drop here to make a sub-menu";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #d6a72c;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  pointer-events: none;
}

/* 📁 Uploads */
.fl-where {
  display: inline-block;
  background: #fff6db;
  border: 1px solid #f0d78c;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.fl-where.web {
  background: #ecfaf1;
  border-color: #a9e2bf;
}
.fl-wrap {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.fl-tree {
  position: sticky;
  top: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 140px);
  overflow: auto;
}
.fl-node {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  border-radius: 9px;
  padding: 7px 10px;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--text);
}
.fl-node b {
  flex: 1;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fl-node:hover {
  background: #f1f5fb;
}
.fl-node.on {
  background: #eaf1fc;
  color: var(--navy);
  box-shadow: inset 3px 0 0 var(--gold);
}
.fl-node.on b {
  font-weight: 800;
}
.fl-node.root b {
  font-weight: 800;
}
.fl-n {
  background: #e6eefb;
  color: var(--blue);
  border-radius: 10px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 700;
}
.fl-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 0;
  min-height: 300px;
}
.fl-crumb {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.fl-crumb b {
  color: var(--navy);
}
.fl-tools .btn {
  margin-top: 0;
}
.fl-busy,
.fl-err {
  border-radius: 10px;
  padding: 7px 12px;
  margin: 6px 0;
  font-size: 13px;
  background: #eef5ff;
  border: 1px solid #bcd4f6;
}
.fl-err {
  background: #ffefef;
  border-color: #f2b0b0;
  color: #9b1c1c;
}
.fl-drop {
  border: 2px dashed #c3d0e3;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 8px 0 10px;
  transition: background 0.15s;
}
.fl-drop.on {
  background: #eef5ff;
  border-color: var(--blue);
  color: var(--navy);
}
.fl-users {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 10px;
}
.fl-u {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 5px 12px;
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.fl-u.on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 700;
}
.fl-list {
  display: flex;
  flex-direction: column;
}
.fl-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid #eef1f6;
}
.fl-file:last-child {
  border-bottom: 0;
}
.fl-ic {
  font-size: 26px;
  flex: none;
}
.fl-ft {
  flex: 1;
  min-width: 0;
}
.fl-name {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  overflow-wrap: anywhere;
}
.fl-name:hover {
  text-decoration: underline;
}
.fl-note {
  font-size: 12.5px;
  margin-top: 2px;
}
.fl-acts {
  display: flex;
  gap: 6px;
  flex: none;
}
.fl-acts .btn {
  margin-top: 0;
}
.fl-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 10px;
}
@media (max-width: 760px) {
  .fl-wrap {
    grid-template-columns: 1fr;
  }
  .fl-tree {
    position: static;
    max-height: 260px;
  }
  .fl-file {
    flex-wrap: wrap;
  }
  .fl-acts {
    margin-left: 38px;
  }
}
/* 👥 All staff */
.sf-kpis {
  margin-bottom: 12px;
}
.sf-r {
  cursor: pointer;
}
.sf-r:hover td,
.sf-r:focus td {
  background: #f5f8fd;
}
.tag.bad {
  background: #ffefef;
  color: #b42318;
}
.sf-inst {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 3px 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  background: #e6eefb;
  color: var(--blue);
  cursor: pointer;
}
.sf-inst.via {
  background: #fdf1d6;
  color: #8a5a00;
}
.sf-inst.both {
  background: #eef7ee;
  color: #166534;
}
.sf-inst.none {
  background: #fff;
  color: var(--muted);
  font-weight: 400;
}

/* ==========================================================================
   🖼 Branding, ▤ left menu, 📣 announcement bar, footer line (assets/js/skcreative-15.js)
   ========================================================================== */
.portal-frames {
  height: calc(100% - var(--tab-h) - var(--ann-h, 0px) - var(--foot-h, 0px) - var(--gs-h, 0px));
}
/* ⚙ General settings: one list of its sections (assets/js/skcreative-01.js) – a dropdown on phones and tablets,
   a list down the left side on a computer */
:root {
  --gs-w: 228px;
}
.gs-bar {
  display: block;
  padding: 8px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 5;
}
.gs-bar[hidden],
.gs-title,
.gs-list {
  display: none;
}
.gs-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--navy);
}
.gs-pick span {
  white-space: nowrap;
}
.gs-pick select {
  flex: 1;
  min-width: 0;
  max-width: 420px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 600;
}
@media (max-width: 380px) {
  .gs-pick span {
    display: none;
  }
}
@media (min-width: 901px) {
  .gs-bar:not([hidden]) {
    position: fixed;
    top: calc(var(--tab-h) + var(--ann-h, 0px));
    bottom: var(--foot-h, 0px);
    left: 0;
    width: var(--gs-w);
    padding: 16px 10px 24px;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    overflow-y: auto;
    z-index: 4;
  }
  .gs-pick {
    display: none;
  }
  .gs-title {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 12px 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
  }
  .gs-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .gs-grp {
    margin: 14px 12px 4px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .gs-grp:first-child {
    margin-top: 4px;
  }
  .gs-it {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
  }
  .gs-it .ti {
    width: 20px;
    text-align: center;
  }
  .gs-it:hover {
    background: rgba(11, 45, 92, 0.05);
  }
  .gs-it[aria-current="page"] {
    background: rgba(11, 45, 92, 0.09);
    color: var(--navy);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--gold);
  }
  body.gs-on .portal-frames {
    margin-left: var(--gs-w);
  }
  body.layout-left.gs-on .gs-bar {
    left: var(--side-w);
  }
  body.layout-left.gs-on .portal-frames {
    margin-left: calc(var(--side-w) + var(--gs-w));
  }
}
/* top bar: logo and / or name */
.nav-dbrand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
@media (min-width: 1151px) {
  .portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
}
.nb-logo {
  height: 30px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
}
.nb-logo.chip {
  background: #fff;
  border-radius: 8px;
  padding: 3px 6px;
  height: 32px;
}
.nav-dbrand .nb-logo {
  height: 34px;
}
@media (max-width: 1150px) and (min-width: 901px) {
  body:not(.layout-left) .portal-brand.has-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  body:not(.layout-left) .portal-brand.has-logo b {
    display: none;
  }
}
/* sign-in page */
.si-logo {
  display: block;
  max-height: 64px;
  max-width: 220px;
  margin: 0 auto 10px;
  object-fit: contain;
}
.si-logo[hidden] {
  display: none;
}
.signin-box .signin-h {
  text-align: center;
  align-items: center;
}
.si-wel {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #344054;
  white-space: pre-line;
}
/* 📣 announcement bar */
.vx-ann {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  font-size: 13.5px;
  line-height: 1.4;
  background: #e8f1fd;
  color: #0b3b75;
  border-bottom: 1px solid #c9dcf5;
  position: relative;
  z-index: 9;
}
.vx-ann[hidden] {
  display: none;
}
.vx-ann.warn {
  background: #fff4d6;
  color: #7a5200;
  border-color: #f1d690;
}
.vx-ann.ok {
  background: #e8f6ee;
  color: #135d2f;
  border-color: #b9e2c8;
}
.vx-ann.urgent {
  background: #c62828;
  color: #fff;
  border-color: #a51f1f;
  font-weight: 600;
}
.vx-ann .va-t {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.vx-ann a {
  color: inherit;
  font-weight: 700;
}
.vx-ann .va-x {
  flex: none;
  border: 0;
  background: none;
  color: inherit;
  opacity: 0.7;
  font-size: 15px;
  padding: 2px 6px;
  border-radius: 6px;
}
.vx-ann .va-x:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.08);
}
body.signed-out .vx-ann {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
}
/* footer line */
.vx-foot {
  padding: 5px 14px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vx-foot[hidden] {
  display: none;
}
.vx-foot a {
  color: inherit;
}
body.signed-out .vx-foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
}
body.layout-left:not(.signed-out) .vx-foot {
  padding-left: calc(var(--side-w) + 14px);
}

/* 👤 menu: my look + install */
.nm-look {
  padding: 4px 8px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 240px;
}
.nm-lh {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 4px;
}
.nm-lh small {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.nm-lrow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  font-size: 12.5px;
  color: var(--text);
  padding: 0 4px;
}
.nm-lrow > span {
  white-space: nowrap;
  color: var(--muted);
}
.nm-lrow .br-seg {
  display: flex;
  flex-wrap: nowrap;
}
.nm-lrow .br-seg button {
  flex: 1 1 0;
  padding: 5px 4px;
  font-size: 12px;
  text-align: center;
}
@media (max-width: 900px) {
  .nm-desk {
    display: none;
  }
}
.nav-menu .nm-inst {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: #eaf1fc;
  color: var(--navy);
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 8px;
  margin-bottom: 4px;
}
.nav-menu .nm-inst[hidden] {
  display: none;
}

/* segmented buttons */
.br-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.br-seg button {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 7px 12px;
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.br-seg button:last-child {
  border-right: 0;
}
.br-seg button:hover {
  background: #f1f5fb;
}
.br-seg button.on {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

/* ⚙ Settings → 🎨 Appearance: the sections down the left (like General settings), the open one on the right */
.br-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.br-side {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
}
.br-side button {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  border-radius: 10px;
  padding: 9px 10px;
  font: inherit;
  cursor: pointer;
}
.br-side button:hover {
  background: #f1f5fb;
}
.br-side button[aria-selected="true"] {
  background: #eaf1fc;
  box-shadow: inset 3px 0 0 var(--gold);
}
.br-side .bs-i {
  font-size: 18px;
  line-height: 1.2;
  width: 24px;
  flex: none;
  text-align: center;
}
.br-side .bs-t {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.br-side .bs-t b {
  font-size: 13.5px;
  color: var(--navy);
}
.br-side .bs-t small {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}
.br-side .bs-dot {
  font-style: normal;
  color: #d97706;
  font-size: 10px;
  margin-left: 6px;
  vertical-align: middle;
}
.br-side .bs-dot[hidden] {
  display: none;
}
.br-main {
  min-width: 0;
}
.br-main .th-intro {
  margin-top: 0;
}
.br-unsaved {
  color: #b45309;
  font-weight: 600;
}
.br-bar {
  z-index: 2;
}
@media (max-width: 900px) {
  .br-layout {
    grid-template-columns: 1fr;
  }
  .br-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .br-side .bs-t small {
    display: none;
  }
}
@media (max-width: 420px) {
  .br-side button {
    padding: 8px 6px;
    gap: 6px;
  }
  .br-side .bs-t b {
    font-size: 12.5px;
  }
}
.br-pane .card h2 {
  margin-top: 0;
}
.br-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 0 18px;
}
.br-pane .fl textarea,
.br-pane .fl input {
  font: inherit;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 10px;
  background: var(--surface);
  resize: vertical;
}
.br-pane .fl small {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.br-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0;
}
.br-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.br-row > b {
  min-width: 110px;
  color: var(--navy);
  font-size: 13px;
}
.br-row > small {
  flex-basis: 100%;
  padding-left: 122px;
}
.br-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.br-act .btn {
  margin-top: 0;
}
.br-chk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin: 2px 14px 6px 0;
  cursor: pointer;
}
.br-checks {
  display: inline-flex;
  flex-wrap: wrap;
}
.br-d {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.br-d input {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
}
.br-note {
  margin: 12px 0 0;
  font-size: 12.5px;
}
.br-live {
  color: var(--ok);
  font-weight: 700;
}
.br-warn {
  color: var(--warn);
  font-weight: 600;
}
.br-howto {
  margin: 8px 0 0;
  padding-left: 20px;
  line-height: 1.7;
  font-size: 13.5px;
}
/* picture slots */
.br-slots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr));
  gap: 14px;
}
.br-slots.two {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  margin: 6px 0 12px;
}
.br-slot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}
.br-slot b {
  font-size: 13.5px;
  color: var(--navy);
}
.br-slot small {
  font-size: 12px;
  line-height: 1.4;
}
.br-img {
  height: 92px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #f0f2f6 25%, transparent 25%), linear-gradient(-45deg, #f0f2f6 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f2f6 75%), linear-gradient(-45deg, transparent 75%, #f0f2f6 75%);
  background-size: 16px 16px;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  border: 1px solid var(--line);
  overflow: hidden;
}
.br-img.dark {
  background: linear-gradient(90deg, #08244a, var(--navy));
}
.br-img img {
  max-width: 92%;
  max-height: 78px;
  object-fit: contain;
}
.br-slot.sm .br-img {
  height: 76px;
}
.br-slot.sm .br-img img {
  max-height: 64px;
}
.br-sbtn {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.br-sbtn .btn {
  margin-top: 0;
}
.br-ok {
  font-size: 12px;
  color: var(--ok);
  font-weight: 600;
}
/* top bar preview */
.br-barprev {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  height: 48px;
  padding: 0 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, #08244a, var(--navy) 40%, #0f3a75);
  overflow: hidden;
}
.br-barprev .portal-brand {
  display: inline-flex;
  font-size: 15px;
  letter-spacing: 0.12em;
}
.br-barprev .bp-t {
  color: #cfd9ea;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.br-barprev .bp-t.on {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  box-shadow: inset 0 -3px 0 var(--gold);
}
/* sign-in preview */
.br-lbg {
  border-radius: 12px;
  padding: 26px 16px;
  display: flex;
  justify-content: center;
  background: linear-gradient(135deg, #0b2d5c, #124a91 60%, #1c63b7);
}
.br-lbox {
  width: min(300px, 100%);
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.br-lbox img {
  max-height: 46px;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 4px;
}
.br-lbox b {
  color: #0b2d5c;
  font-size: 16px;
}
.br-lbox span {
  color: #667085;
  font-size: 12px;
}
.br-lbox p {
  margin: 6px 0 0;
  font-size: 12px;
  color: #344054;
  white-space: pre-line;
}
.br-lbox i {
  display: block;
  width: 100%;
  height: 30px;
  border: 1px solid #e1e7ef;
  border-radius: 8px;
  margin-top: 8px;
}
.br-lbox em {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 7px;
  border-radius: 8px;
  background: #0b2d5c;
  color: #fff;
  font-style: normal;
  font-weight: 700;
  font-size: 13px;
}
/* letterhead preview */
.br-lh-prev {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: #fff;
  color: #172033;
}
.lh-top {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 2px solid #0b2d5c;
  padding-bottom: 10px;
}
.lh-top img {
  height: 54px;
  max-width: 180px;
  object-fit: contain;
}
.lh-top div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.lh-top b {
  font-size: 17px;
  color: #0b2d5c;
  letter-spacing: 0.04em;
}
.lh-top span,
.lh-top small {
  font-size: 12px;
  color: #475467;
  overflow-wrap: anywhere;
}
.lh-sign {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  gap: 14px;
  margin-top: 26px;
}
.lh-s {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 150px;
}
.lh-s img {
  max-height: 46px;
  max-width: 160px;
  object-fit: contain;
}
.lh-s span {
  border-top: 1px solid #98a2b3;
  padding-top: 3px;
  font-size: 12px;
  width: 100%;
  text-align: center;
}
.lh-stamp {
  max-height: 70px;
  max-width: 70px;
  object-fit: contain;
  opacity: 0.9;
}
.br-ann-prev {
  border: 1px dashed var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 6px;
}
.br-foot-prev {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 6px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.br-start select {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  min-width: 220px;
  max-width: 100%;
  background: var(--surface);
  color: var(--text);
}
.br-appprev {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: #eef2f7;
}
.br-appprev img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.br-appprev b {
  font-size: 12px;
}
@media (max-width: 600px) {
  .br-row > b {
    min-width: 0;
    flex-basis: 100%;
  }
  .br-row > small {
    padding-left: 0;
  }
}

/* ▤ left menu (computers): the pages down the left side, groups open in place, ☰ makes it narrow */
@media (min-width: 901px) {
  body.layout-left {
    --side-w: 236px;
  }
  body.layout-left.side-mini {
    --side-w: 64px;
  }
  body.layout-left .nav-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    order: -1;
    width: 38px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
  }
  body.layout-left .nav-burger:hover {
    background: rgba(255, 255, 255, 0.12);
  }
  body.layout-left.signed-out .nav-burger {
    display: none;
  }
  body.layout-left .portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  body.layout-left .nav-cur {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
  }
  body.layout-left.signed-out .nav-cur {
    display: none;
  }
  body.layout-left .portal-nav .nav-tabs {
    position: fixed;
    top: calc(var(--tab-h) + var(--ann-h, 0px));
    left: 0;
    bottom: var(--foot-h, 0px);
    width: var(--side-w);
    height: auto;
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 8px 24px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    -webkit-mask-image: none;
    mask-image: none;
    background: var(--surface);
    border-right: 1px solid var(--line);
    transition:
      width 0.18s ease,
      box-shadow 0.18s;
  }
  body.layout-left.signed-out .portal-nav .nav-tabs {
    display: none;
  }
  body.layout-left .portal-frames {
    margin-left: var(--side-w);
    transition: margin-left 0.18s ease;
  }
  body.layout-left.signed-out .portal-frames {
    margin-left: 0;
  }
  body.layout-left .nav-tabs .portal-tab,
  body.layout-left .nav-tabs .nav-menu .portal-tab {
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    border-radius: 10px;
    box-shadow: none;
    white-space: nowrap;
  }
  body.layout-left .nav-tabs .portal-tab .ti,
  body.layout-left .nav-tabs .nav-more-btn .ti {
    font-size: 17px;
    width: 22px;
    flex: none;
    text-align: center;
  }
  body.layout-left .nav-tabs .portal-tab .tl {
    display: inline !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.layout-left .nav-tabs .portal-tab .ts,
  body.layout-left .nav-tabs .portal-tab .tm {
    display: none !important;
  }
  body.layout-left .nav-tabs .portal-tab .nb-tab {
    margin-left: auto;
  }
  body.layout-left .nav-tabs .portal-tab:hover {
    background: #f1f5fb;
    color: var(--navy);
  }
  body.layout-left .nav-tabs .portal-tab[aria-selected="true"] {
    background: #eaf1fc;
    color: var(--navy);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--gold);
  }
  /* groups (⚙ Settings and your own): a header that opens and closes */
  body.layout-left .nav-tabs .nav-more {
    flex: none;
    flex-direction: column;
  }
  body.layout-left .nav-tabs .nav-grp {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
  }
  body.layout-left .nav-tabs .nav-grp > .nav-more-btn {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: none;
    box-shadow: none;
    border-radius: 10px;
    white-space: nowrap;
  }
  body.layout-left .nav-tabs .nav-grp > .nav-more-btn:hover {
    background: #f1f5fb;
    color: var(--navy);
  }
  body.layout-left .nav-tabs .nav-grp > .nav-more-btn.on {
    color: var(--navy);
  }
  body.layout-left .nav-tabs .nav-grp > .nav-more-btn .ts {
    display: inline !important;
  }
  body.layout-left .nav-tabs .nav-more-btn .nm-c {
    display: inline;
    margin-left: auto;
    transition: transform 0.15s;
  }
  body.layout-left .nav-tabs .nav-more.open > .nav-more-btn .nm-c {
    transform: rotate(180deg);
  }
  body.layout-left .nav-tabs .nav-menu {
    position: static;
    min-width: 0 !important;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
  }
  body.layout-left .nav-tabs .nav-grp .nav-menu .portal-tab {
    padding-left: 16px;
  }
  /* 🎓 Students / 👥 Staff: the tab, with ▾ at its right end; VDC / VIA (Faculty …) indented under it */
  body.layout-left .nav-tabs .nav-stu {
    flex-direction: column;
    align-items: stretch;
    position: relative;
    background: none;
    box-shadow: none;
  }
  body.layout-left .nav-tabs .nav-stu > .portal-tab {
    padding-right: 40px;
  }
  body.layout-left .nav-tabs .nav-stu-dd {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
  }
  body.layout-left .nav-tabs .nav-stu .nav-caret {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: none;
    border-radius: 8px;
  }
  body.layout-left .nav-tabs .nav-stu .nav-caret:hover {
    background: #e7eef8;
    color: var(--navy);
  }
  body.layout-left .nav-tabs .nav-stu .nav-caret .nm-c {
    margin: 0;
  }
  body.layout-left .nav-tabs .nav-stu .nav-menu .portal-tab {
    padding-left: 46px;
    min-height: 36px;
    font-size: 13.5px;
  }
  body.layout-left .nav-tabs .nav-stu.on > .portal-tab[aria-selected="false"] {
    color: var(--navy);
    font-weight: 700;
  }
  /* narrow: icons only; pointing at it shows the names again (over the page) */
  body.layout-left.side-mini .nav-tabs:not(:hover) .portal-tab .tl,
  body.layout-left.side-mini .nav-tabs:not(:hover) .portal-tab .nb-tab,
  body.layout-left.side-mini .nav-tabs:not(:hover) .nav-more-btn .ts,
  body.layout-left.side-mini .nav-tabs:not(:hover) .nav-more-btn .nm-c,
  body.layout-left.side-mini .nav-tabs:not(:hover) .nav-caret,
  body.layout-left.side-mini .nav-tabs:not(:hover) .nav-menu {
    display: none !important;
  }
  body.layout-left.side-mini .nav-tabs:hover {
    width: 236px;
    box-shadow: 10px 0 30px rgba(11, 45, 92, 0.18);
  }
  body.layout-left.side-mini .nav-tabs:not(:hover) .nav-grp > .nav-more-btn {
    color: var(--navy);
  }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  body.layout-left .portal-nav .nav-tabs,
  body.layout-left .portal-frames {
    transition: none;
  }
}

/* top-left corner: logo + text (and a small second line) */
.nb-txt {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
  min-width: 0;
}
.nb-txt b {
  white-space: nowrap;
}
.nb-txt.long b {
  letter-spacing: 0.02em;
}
.nb-txt small {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #cfd9ea;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.nav-dbrand .nb-txt small {
  color: var(--muted);
}
.portal-brand.has-logo {
  gap: 9px;
}
/* 📊 Dashboard only behind the logo (⚙ Settings → 🎨 Appearance → Menu & look); phones keep it in the ☰ menu */
@media (min-width: 901px) {
  body.dash-hide .nav-tabs .portal-tab[data-app="dashboard"],
  body.dash-hide .nav-tabs .portal-tab[data-app="mydash"] {
    display: none !important;
  }
  body.dash-hide .portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
  }
  body.dash-hide .portal-brand {
    position: relative;
  }
  /* the Dashboard is open: a gold line under the logo, like the open tab */
  body.dash-hide .portal-brand.on::after {
    content: "";
    position: absolute;
    left: 0;
    right: 12px;
    bottom: -6px;
    height: 3px;
    border-radius: 3px;
    background: var(--gold);
  }
  /* 🧭 menu items: name only */
  body.menu-names .nav-tabs .portal-tab .ti,
  body.menu-names .nav-tabs .nav-more-btn .ti {
    display: none;
  }
  /* 🧭 menu items: icon only (the name shows when you point at it) */
  body.menu-icons:not(.layout-left) .nav-tabs > .portal-tab .tl,
  body.menu-icons:not(.layout-left) .nav-tabs > .portal-tab .ts,
  body.menu-icons:not(.layout-left) .nav-tabs > .portal-tab .tm,
  body.menu-icons:not(.layout-left) .nav-stu > .portal-tab .tl,
  body.menu-icons:not(.layout-left) .nav-stu > .portal-tab .ts,
  body.menu-icons:not(.layout-left) .nav-grp > .nav-more-btn .ts {
    display: none !important;
  }
  body.menu-icons:not(.layout-left) .nav-tabs > .portal-tab .ti,
  body.menu-icons:not(.layout-left) .nav-stu > .portal-tab .ti,
  body.menu-icons:not(.layout-left) .nav-grp > .nav-more-btn .ti {
    font-size: 18px;
  }
  body.menu-icons:not(.layout-left) .nav-tabs > .portal-tab,
  body.menu-icons:not(.layout-left) .nav-stu > .portal-tab {
    padding: 7px 10px;
  }
}
@media (min-width: 901px) and (max-width: 1150px) {
  body.dash-hide:not(.layout-left) .portal-brand .nb-txt small {
    display: none;
  }
}

/* 🔑 forgot password requests (🔐 Users & Access) */
.pwr .pwr-done {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 14px;
}
.pwr .pwr-done code {
  font-size: 16px;
  font-weight: 700;
  background: #fff;
  color: var(--text);
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}
.pwr .pwr-done .btn {
  margin-top: 0;
}

/* 🚀 Setup wizard */
.sw-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.sw-steps {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
}
.sw-steps button {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  cursor: pointer;
}
.sw-steps button:hover {
  background: #f1f5fb;
}
.sw-steps button[aria-current="true"] {
  background: #eaf1fc;
  box-shadow: inset 3px 0 0 var(--gold);
}
.sw-n {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e7edf6;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sw-steps button.ok .sw-n {
  background: var(--ok);
  color: #fff;
}
.sw-t {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sw-t b {
  font-size: 13.5px;
  color: var(--navy);
}
.sw-t small {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}
.sw-main {
  min-width: 0;
}
.sw-card ol.sw-ol {
  line-height: 1.9;
  padding-left: 22px;
}
.sw-nav {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 -6px 20px rgba(11, 45, 92, 0.08);
  margin-top: 6px;
  z-index: 2;
}
.sw-nav .btn {
  margin-top: 0;
}
.sw-nav .btn[disabled] {
  opacity: 0.5;
}
.sw-msg {
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 600;
}
.sw-err {
  color: var(--bad);
}
.sw-warn {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--warn-bg);
  color: var(--warn);
  font-weight: 600;
  margin: 8px 0;
}
.sw-pics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 14px;
  margin-top: 6px;
}
.sw-seg {
  margin: 4px 0 12px;
}
.sw-br {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 14px;
}
.sw-brc {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px 4px;
}
.sw-brc > b {
  display: block;
  color: var(--navy);
  margin-bottom: 8px;
}
.sw-brs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  margin: 6px 0 4px;
}
.sw-brh {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.sw-brh b {
  color: var(--navy);
  flex: 1;
}
.sw-brh .btn {
  margin-top: 0;
}
.sw-list,
.sw-mods {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}
.sw-row {
  display: flex;
  gap: 6px;
  width: 100%;
  max-width: 560px;
}
.sw-mod {
  max-width: none;
}
.sw-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  background: var(--surface);
  color: var(--text);
}
.sw-row .btn {
  margin-top: 0;
}
.sw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sw-chip {
  padding: 4px 10px;
  border-radius: 14px;
  background: #eef2f7;
  font-size: 13px;
}
.sw-chip.on {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}
.sw-fees td {
  vertical-align: middle;
}
.sw-fees .sw-sec td {
  background: #f4f7fb;
  font-weight: 700;
  color: var(--navy);
}
.sw-amt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.sw-amt input {
  width: 120px;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
}
.sw-sum {
  list-style: none;
  padding: 0;
  line-height: 1.9;
}
.sw-next {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.sw-next .btn {
  margin-top: 0;
}
@media (max-width: 900px) {
  .sw-layout {
    grid-template-columns: 1fr;
  }
  .sw-steps {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sw-t small {
    display: none;
  }
}

/* 📋 Student attendance */
.sa-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 12px;
}
.sa-tabs button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 20px;
  padding: 7px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.sa-tabs button[aria-selected="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  font-weight: 700;
}
.sa-f {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  align-items: flex-end;
}
.sa-f .fl {
  min-width: 150px;
  flex: 0 1 auto;
}
.sa-f .sa-q {
  flex: 1 1 200px;
}
.sa-f input {
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
}
.sa-sum {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 2px 0 10px;
  font-size: 13.5px;
}
.sa-c {
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}
.sa-c.p,
.sa-seg .p.on,
.sa-reg td.p {
  background: var(--ok-bg);
  color: var(--ok);
}
.sa-c.a,
.sa-seg .a.on,
.sa-reg td.a {
  background: var(--bad-bg);
  color: var(--bad);
}
.sa-c.l,
.sa-seg .l.on,
.sa-reg td.l {
  background: var(--warn-bg);
  color: var(--warn);
}
.sa-c.e,
.sa-seg .e.on,
.sa-reg td.e {
  background: #eef2ff;
  color: #3a49a8;
}
.sa-c.h,
.sa-reg td.h {
  background: linear-gradient(135deg, var(--ok-bg) 50%, var(--bad-bg) 50%);
  color: var(--bad);
}
.sa-list tr.sa-r.h td:first-child {
  box-shadow: inset 4px 0 0 var(--warn);
}
.sa-sum2 th,
.sa-sum2 td {
  min-width: 96px;
  padding: 6px 8px;
  font-size: 12.5px;
}
.sa-ok {
  color: var(--ok);
  font-weight: 600;
}
.sa-warn {
  color: var(--warn);
  font-weight: 600;
}
.sa-no {
  color: var(--bad);
  font-weight: 600;
}
.sa-msg {
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--ok-bg);
  color: var(--ok);
  font-weight: 600;
}
.sa-seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.sa-seg button {
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  min-width: 40px;
  padding: 7px 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.sa-seg button:last-child {
  border-right: 0;
}
.sa-seg button.on {
  font-weight: 800;
}
.sa-list tr.sa-r.a td:first-child {
  box-shadow: inset 4px 0 0 var(--bad);
}
.sa-list tr.sa-r.l td:first-child {
  box-shadow: inset 4px 0 0 var(--warn);
}
.sa-list tr.sa-r.e td:first-child {
  box-shadow: inset 4px 0 0 #3a49a8;
}
.sa-bar {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 -6px 20px rgba(11, 45, 92, 0.08);
  margin-top: 6px;
  z-index: 2;
}
.sa-bar .btn {
  margin-top: 0;
}
.sa-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12.5px;
}
.sa-act .btn {
  margin-top: 0;
}
.sa-reg th,
.sa-reg td {
  padding: 4px 3px;
  text-align: center;
  font-size: 12px;
  min-width: 24px;
}
.sa-reg .sa-n {
  text-align: left;
  min-width: 170px;
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
}
.sa-reg .sun {
  background: #f4f6fa;
}
.sa-reg td.sa-low,
.sa-lowk {
  color: var(--bad);
}
@media (max-width: 600px) {
  .sa-f .fl {
    min-width: 0;
    flex: 1 1 140px;
  }
  /* phones: number, name and the buttons only */
  table.tt.sa-list {
    min-width: 0;
  }
  .sa-list th:not(:first-child):not(:nth-child(2)):not(:last-child),
  .sa-list td:not(:first-child):not(:nth-child(2)):not(:last-child) {
    display: none;
  }
  .sa-list td,
  .sa-list th {
    padding: 6px 4px;
  }
  .sa-seg button {
    min-width: 34px;
  }
}

/* 📋 attendance as cards (like the Frontdesk): one card per student, four big buttons */
.sa-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 10px;
  margin-top: 4px;
}
.sa-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--ok);
  border-radius: 14px;
  padding: 10px 12px 12px;
  box-shadow: 0 2px 8px rgba(11, 45, 92, 0.05);
  transition: border-color 0.15s;
}
.sa-card.a {
  border-left-color: var(--bad);
  background: color-mix(in srgb, var(--bad-bg) 45%, var(--surface));
}
.sa-card.l {
  border-left-color: var(--warn);
}
.sa-card.e {
  border-left-color: #3a49a8;
}
.sa-ch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sa-av {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.sa-who {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sa-who b {
  font-size: 14.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sa-who small {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sa-badge {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  background: var(--ok-bg);
  color: var(--ok);
}
.sa-card.a .sa-badge {
  background: var(--bad-bg);
  color: var(--bad);
}
.sa-card.l .sa-badge {
  background: var(--warn-bg);
  color: var(--warn);
}
.sa-card.e .sa-badge {
  background: #eef2ff;
  color: #3a49a8;
}
.sa-big {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.sa-big button {
  min-height: 44px; /* a thumb on a phone */
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
}
.sa-big button span {
  font-size: 11px;
  font-weight: 600;
}
.sa-big button.p.on {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}
.sa-big button.a.on {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}
.sa-big button.l.on {
  background: var(--warn);
  border-color: var(--warn);
  color: #fff;
}
.sa-big button.e.on {
  background: #3a49a8;
  border-color: #3a49a8;
  color: #fff;
}
.sa-vw {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.sa-vw button {
  border: 0;
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
}
.sa-vw button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}
.sa-cfg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  font-size: 13px;
  margin: 6px 0 0;
}
.sa-cfg label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
@media (max-width: 600px) {
  .sa-sum {
    gap: 6px 8px;
  }
  .sa-card {
    padding: 9px 10px 10px;
  }
  .sa-bar {
    padding: 8px 10px;
  }
  .sa-bar .btn {
    flex: 1 1 auto;
  }
}

.sa-req {
  color: var(--bad);
}
.sa-by select:invalid,
.sa-by input:placeholder-shown {
  border-color: var(--warn);
}
/* 🎓 the student's own dashboard: 📋 My attendance */
.ma-card h2 {
  margin-bottom: 10px;
}
.ma-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.ma-today,
.ma-pc {
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--ok-bg);
  color: var(--ok);
}
.ma-today b,
.ma-pc b {
  font-size: 22px;
}
.ma-today small,
.ma-pc small {
  color: var(--muted);
  font-size: 12px;
}
.ma-today.a {
  background: var(--bad-bg);
  color: var(--bad);
}
.ma-today.l,
.ma-today.h {
  background: var(--warn-bg);
  color: var(--warn);
}
.ma-today.e {
  background: #eef2ff;
  color: #3a49a8;
}
.ma-today.n {
  background: #f1f4f8;
  color: var(--muted);
}
.ma-pc {
  background: #eef4fb;
  color: var(--navy);
}
.ma-pc.low {
  color: var(--bad);
}
.ma-hours {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ma-h {
  display: flex;
  flex-direction: column;
  min-width: 78px;
  padding: 6px 9px;
  border-radius: 10px;
  border-left: 4px solid var(--ok);
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.ma-h small {
  color: var(--muted);
  font-size: 11px;
}
.ma-h i {
  font-style: normal;
  font-weight: 700;
  color: var(--ok);
}
.ma-h.a {
  border-left-color: var(--bad);
}
.ma-h.a i {
  color: var(--bad);
}
.ma-h.l {
  border-left-color: var(--warn);
}
.ma-h.l i {
  color: var(--warn);
}
.ma-h.e {
  border-left-color: #3a49a8;
}
.ma-h.e i {
  color: #3a49a8;
}
.ma-last {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
}
.ma-d {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 0;
  border-radius: 9px;
  font-weight: 700;
  background: #f1f4f8;
  color: var(--muted);
}
.ma-d small {
  font-size: 10.5px;
  font-weight: 600;
}
.ma-d.p {
  background: var(--ok-bg);
  color: var(--ok);
}
.ma-d.a {
  background: var(--bad-bg);
  color: var(--bad);
}
.ma-d.l,
.ma-d.h {
  background: var(--warn-bg);
  color: var(--warn);
}
.ma-d.e {
  background: #eef2ff;
  color: #3a49a8;
}
.ma-subj {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.ma-subj div {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) 52px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.ma-bar {
  height: 8px;
  border-radius: 6px;
  background: #eef2f7;
  overflow: hidden;
}
.ma-bar i {
  display: block;
  height: 100%;
  background: var(--ok);
}
.ma-bar i.low {
  background: var(--bad);
}
.ma-subj b {
  text-align: right;
}
.ma-subj b.low {
  color: var(--bad);
}
.ma-note {
  font-size: 12px;
  margin: 8px 0 0;
}

/* 📅 the student's daily report */
.ma-rep {
  margin-top: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}
.ma-rep summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
.ma-mn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0;
}
.ma-mn .btn {
  margin: 0;
}
.ma-row {
  display: grid;
  grid-template-columns: 52px 118px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.ma-dt {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.ma-dt small {
  color: var(--muted);
}
.ma-res {
  font-weight: 700;
  font-size: 12.5px;
  padding: 3px 8px;
  border-radius: 10px;
  text-align: center;
  background: var(--ok-bg);
  color: var(--ok);
}
.ma-res.a {
  background: var(--bad-bg);
  color: var(--bad);
}
.ma-res.l,
.ma-res.h {
  background: var(--warn-bg);
  color: var(--warn);
}
.ma-res.e {
  background: #eef2ff;
  color: #3a49a8;
}
.ma-hrs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ma-hc {
  font-size: 11.5px;
  padding: 2px 6px;
  border-radius: 8px;
  background: var(--ok-bg);
  color: var(--ok);
  white-space: nowrap;
}
.ma-hc.a {
  background: var(--bad-bg);
  color: var(--bad);
}
.ma-hc.l {
  background: var(--warn-bg);
  color: var(--warn);
}
.ma-hc.e {
  background: #eef2ff;
  color: #3a49a8;
}
@media (max-width: 420px) {
  .ma-row {
    grid-template-columns: 46px 1fr;
  }
  .ma-hrs {
    grid-column: 1 / -1;
  }
}
/* 🙋 leave & permission */
.lv-kind {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.lv-kind label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}
.lv-kind label:has(input:checked) {
  border-color: var(--navy);
  background: rgba(11, 45, 92, 0.06);
}
.lv-kind small {
  color: var(--muted);
  font-weight: 400;
}
.lv-f {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.lv-f .fl {
  flex: 1 1 140px;
  min-width: 0;
}
.lv-f .lv-why {
  flex-basis: 100%;
}
.lv-f input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.lv-go {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0;
  font-size: 12.5px;
}
.lv-go .btn {
  margin: 0;
}
.lv-msg {
  color: var(--ok);
  font-weight: 600;
  margin: 8px 0 0;
}
.lv-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.lv-it {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--warn);
  border-radius: 12px;
  padding: 9px 12px;
  background: var(--surface);
}
.lv-it > div:first-child {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
}
.lv-it small {
  font-size: 12px;
  color: var(--text);
}
.lv-it small.muted {
  color: var(--muted);
}
.lv-it.ok {
  border-left-color: var(--ok);
}
.lv-it.no {
  border-left-color: var(--bad);
}
.lv-st {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
  background: var(--warn-bg);
  color: var(--warn);
}
.lv-st.ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.lv-st.no {
  background: var(--bad-bg);
  color: var(--bad);
}
.lv-act {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lv-act .btn,
.lv-it .btn {
  margin: 0;
}
.lv-filt {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.lv-ban {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--warn-bg);
  color: var(--warn);
  margin: 0 0 10px;
}
.lv-ban .btn {
  margin: 0;
}
.lv-note {
  font-size: 12.5px;
  margin-top: 12px;
}
@media (max-width: 600px) {
  .lv-it {
    flex-wrap: wrap;
  }
}
/* 👨‍🏫 faculty logins (🔐 Users & Access) */
.fl-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.fl-top input {
  flex: 1 1 240px;
  max-width: 380px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
}
.fl-acts {
  white-space: nowrap;
}
.fl-acts .btn {
  margin: 0 4px 0 0;
}
/* phones: one card per faculty member */
@media (max-width: 600px) {
  table.tt.fl-tab {
    min-width: 0;
  }
  .fl-tab thead {
    display: none;
  }
  .fl-tab,
  .fl-tab tbody,
  .fl-tab tr,
  .fl-tab td {
    display: block;
    width: 100%;
  }
  .fl-tab tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 6px 4px;
    margin-bottom: 8px;
  }
  .fl-tab td {
    border: 0 !important;
    padding: 4px 8px !important;
  }
  .fl-tab td:nth-child(2) {
    display: none; /* the ID is in the search and the details */
  }
  .fl-tab .fl-phone {
    width: 100%;
  }
  .fl-acts {
    white-space: normal;
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
  }
  .fl-acts .btn {
    margin: 0;
  }
}
.pa-attp {
  justify-content: flex-start;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
  font-size: 13.5px;
}
.pa-attp label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* 👪 Parents & payments */
.pa-link {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}
.pa-link input {
  flex: 1 1 260px;
  min-width: 0;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  background: #f8fafc;
}
.pa-link .btn {
  margin-top: 0;
}
.pa-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.pa-row .btn {
  margin-top: 0;
}
.pa-bad {
  color: var(--bad);
}
.pa-test {
  border-top: 1px dashed var(--line);
  margin-top: 8px;
}
.pa-test input {
  flex: 1 1 220px;
  max-width: 320px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
}
.pa-tout {
  margin-top: 6px;
  font-size: 13.5px;
}
.pa-tl {
  padding: 3px 0;
}
.pa-tl.ok {
  color: var(--ok);
}
.pa-tl.bad {
  color: var(--bad);
  font-weight: 600;
}
.pa-tl .btn {
  margin: 0 0 0 6px;
}
.pa-topen {
  margin: 6px 0 0;
}
.pa-reset {
  justify-content: flex-start;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}
.pa-reset input {
  width: 180px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
}
.pa-how {
  margin: 8px 0 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px 12px;
}
.pa-how summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
.pa-how ol {
  line-height: 1.7;
  padding-left: 20px;
}
.pa-st {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  background: #eef2f7;
}
.pa-st.paid {
  background: var(--ok-bg);
  color: var(--ok);
}
.pa-st.failed {
  background: var(--bad-bg);
  color: var(--bad);
}
.pa-al {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 8px;
  margin: 8px 0;
}
.pa-ali {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13.5px;
}
.pa-ali b {
  flex: 1;
}
.pa-tpl {
  width: 130px;
  font: inherit;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 7px;
}
.pa-tplx {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f6f8fc;
}
.pa-tplx code {
  white-space: pre-wrap;
  font-size: 12.5px;
}
.pa-h3 {
  font-size: 14px;
  color: var(--navy);
  margin: 14px 0 6px;
}
.pa-msg {
  max-width: 360px;
  font-size: 12.5px;
}
.pa-alerts .btn {
  margin-top: 0;
}
/* 🗂 Backups: download all + website backups */
.bk-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.bk-two .card {
  margin-bottom: 0;
}
.bk-srv {
  max-height: 260px;
  overflow: auto;
  margin-bottom: 10px;
}
.signin .ltabs .ltab {
  flex: 1 1 auto; /* each tab as wide as its name – every name stays on one line */
  font-size: 12.5px;
  padding: 9px 6px;
  white-space: nowrap;
}
.signin .ltabs {
  flex-wrap: wrap; /* a larger text size: a second row rather than a name broken in two */
}
/* small phones: the four sign-in tabs in two rows of two, never a name broken in two */
@media (max-width: 420px) {
  .signin .ltabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* 📲 install help */
.si-inst {
  font-weight: 600;
}
.vx-ih {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 22, 44, 0.45);
}
.vx-ihb {
  width: min(460px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--surface, #fff);
  color: var(--text, #1b2a41);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.vx-ihb > b {
  display: block;
  font-size: 17px;
  color: var(--navy);
  margin-bottom: 6px;
}
.vx-ihb ol {
  margin: 8px 0;
  padding-left: 22px;
  line-height: 1.6;
}
.vx-ihb .btn {
  margin-top: 6px;
}
.vx-ihw {
  background: var(--warn-bg);
  color: var(--warn);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}

/* 📥 Import (assets/js/skcreative-21.js) */
.im-step h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.im-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  flex: none;
}
.im-kinds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: 10px;
}
.im-kind {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  cursor: pointer;
}
.im-kind:hover {
  border-color: var(--blue);
}
.im-kind.on {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 45, 92, 0.12);
  background: var(--ok-bg);
}
.im-ki {
  font-size: 24px;
}
.im-kind small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.im-where {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.im-where .fl {
  min-width: 200px;
  flex: 1 1 200px;
}
.im-where .im-wide {
  flex-basis: 100%;
}
.im-mode {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}
.im-mode label {
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}
.im-small {
  font-size: 12.5px;
}
.im-ol {
  line-height: 1.7;
  padding-left: 22px;
}
.im-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.im-btns .btn {
  margin-top: 0;
}
.im-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 2px dashed var(--line);
  border-radius: 14px;
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  background: var(--surface);
}
.im-drop:hover,
.im-drop.on {
  border-color: var(--blue);
  background: var(--ok-bg);
}
.im-di {
  font-size: 30px;
}
.im-paste {
  margin-top: 10px;
}
.im-paste summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
}
.im-paste textarea {
  width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font:
    12.5px/1.4 ui-monospace,
    Consolas,
    monospace;
  resize: vertical;
}
.im-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
}
.im-file select {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.im-file .btn {
  margin-top: 0;
}
.im-map select {
  width: 100%;
  min-width: 170px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.im-map tr.im-off td {
  opacity: 0.6;
}
.im-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.im-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 16px;
  padding: 5px 12px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.im-chip.on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.im-planw {
  max-height: 460px;
  overflow: auto;
}
.im-st {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.im-st.im-new {
  background: var(--ok-bg);
  color: var(--ok);
}
.im-st.im-upd {
  background: #eef2ff;
  color: #3a49a8;
}
.im-st.im-same {
  background: #f1f4f8;
  color: var(--muted);
}
.im-st.im-skip {
  background: var(--bad-bg);
  color: var(--bad);
}
.im-w {
  color: var(--warn);
  font-size: 12px;
  margin-top: 2px;
}
.im-warn {
  color: var(--warn);
  font-weight: 600;
}
.im-bad {
  color: var(--bad);
  font-weight: 600;
}
.im-ok {
  color: var(--ok);
  font-weight: 600;
}
.im-go {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 -6px 20px rgba(11, 45, 92, 0.08);
}
.im-go .btn {
  margin-top: 0;
}
.im-undo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  font-size: 13px;
}
.im-undo .btn {
  margin-top: 0;
}
.im-done {
  border-color: var(--ok);
  background: var(--ok-bg);
}
@media (max-width: 600px) {
  .im-plan th:nth-child(4),
  .im-plan td:nth-child(4) {
    display: none;
  }
  table.tt.im-plan,
  table.tt.im-map {
    min-width: 0;
  }
  .im-map select {
    min-width: 0;
    max-width: 150px;
  }
  .im-map td,
  .im-map th {
    padding: 6px 4px;
    word-break: break-word;
  }
}

/* 🔐 Users & Access: tiles + one list of sections (assets/js/skcreative-02.js) */
.ua-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.ua-tile {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(11, 45, 92, 0.05);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.ua-tile:hover {
  border-color: var(--blue);
}
.ua-tile.on {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11, 45, 92, 0.1);
}
.ua-ti {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: #eef4fb;
}
.ua-tile b {
  font-size: 24px;
  line-height: 1.1;
  color: var(--navy);
}
.ua-tile small {
  color: var(--muted);
  font-size: 12.5px;
}
.ua-tile.hot {
  border-color: var(--bad);
  background: var(--bad-bg);
}
.ua-tile.hot b {
  color: var(--bad);
}
.ua-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.ua-nav {
  position: sticky;
  top: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
}
.ua-pick {
  display: none;
}
.ua-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ua-it {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ua-it .ti {
  width: 24px;
  text-align: center;
  font-size: 17px;
}
.ua-tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ua-tx b {
  font-size: 14px;
  font-weight: 600;
}
.ua-tx small {
  font-size: 11.5px;
  color: var(--muted);
}
.ua-it:hover {
  background: rgba(11, 45, 92, 0.05);
}
.ua-it[aria-current="page"] {
  background: rgba(11, 45, 92, 0.09);
  box-shadow: inset 3px 0 0 var(--gold);
}
.ua-it[aria-current="page"] .ua-tx b {
  color: var(--navy);
  font-weight: 800;
}
.ua-n {
  flex: none;
  min-width: 26px;
  padding: 2px 7px;
  border-radius: 10px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.ua-n.hot {
  background: var(--bad);
  color: #fff;
}
.ua-body > .ua-sec > .card,
.ua-body > .ua-sec > details.card,
.ua-body > .ua-sec > div {
  margin-top: 0;
  margin-bottom: 14px;
}
.ua-sub {
  margin: -4px 0 10px;
  font-size: 13px;
}
/* ＋ New login: folded until it is needed */
.ua-new > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  list-style: none;
  cursor: pointer;
}
.ua-new > summary::-webkit-details-marker {
  display: none;
}
.ua-new > summary .btn {
  margin: 0;
  pointer-events: none;
}
.ua-new[open] > summary {
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.ua-new[open] > summary .btn::before {
  content: "✕ ";
}
@media (max-width: 1100px) {
  .ua-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .ua-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .ua-nav {
    position: static;
    padding: 8px 10px;
  }
  .ua-list {
    display: none;
  }
  .ua-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--navy);
    font-size: 13.5px;
  }
  .ua-pick select {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-weight: 600;
  }
}
@media (max-width: 600px) {
  .ua-tiles {
    gap: 8px;
  }
  .ua-tile {
    padding: 10px 12px;
    column-gap: 8px;
  }
  .ua-ti {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .ua-tile b {
    font-size: 20px;
  }
}
/* 🔑 the new password, shown once after saving (assets/js/skcreative-02.js portalPwShow) */
.pd-pw {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #f6f9fd;
}
.pd-pw code {
  flex: 1;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--navy);
  word-break: break-all;
}
.pd-pw .btn {
  margin: 0;
}
.pd-row .btn {
  white-space: nowrap;
}

/* 👪 Parents & payments (assets/js/skcreative-19.js) – the same tiles and section list as 🔐 Users & Access */
.pa-warn {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 13.5px;
}
.pa-warn a {
  color: inherit;
  font-weight: 700;
}
.pa-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.pa-step {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.pa-step span {
  grid-row: 1 / 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
}
.pa-step small {
  color: var(--muted);
  font-size: 12.5px;
}
.pa-see,
.pa-msgs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 10px;
}
.pa-sw,
.pa-msgc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
}
.pa-sw span:last-child,
.pa-mt {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pa-sw small,
.pa-mt small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}
.pa-sw input {
  width: 20px;
  height: 20px;
  flex: none;
}
.pa-sw.on,
.pa-sw:has(input:checked),
.pa-msgc.on {
  border-color: var(--ok);
  background: color-mix(in srgb, var(--ok-bg) 55%, var(--surface));
}
.pa-fix {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: var(--ok);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pa-msgc {
  align-items: flex-start;
}
/* on / off switch */
.pa-tog {
  position: relative;
  flex: none;
  width: 42px;
  height: 24px;
  margin-top: 2px;
}
.pa-tog input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.pa-tog i {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: #cfd8e3;
  transition: background 0.15s;
}
.pa-tog i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s;
}
.pa-tog input:checked + i {
  background: var(--ok);
}
.pa-tog input:checked + i::after {
  transform: translateX(18px);
}
.pa-tog input:focus-visible + i {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.pa-try input {
  width: 100%;
  max-width: 460px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 15px;
}
.pa-try-acts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}
.pa-big {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: center;
  text-align: left;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.pa-big:hover {
  border-color: var(--navy);
}
.pa-big span {
  grid-row: 1 / 3;
  font-size: 26px;
}
.pa-big b {
  color: var(--navy);
}
.pa-big small {
  color: var(--muted);
  font-size: 12.5px;
}
.pa-state {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f1f4f8;
  margin-bottom: 10px;
}
.pa-state.ok {
  background: var(--ok-bg);
}
.pa-state.ok b {
  color: var(--ok);
}
.pa-state small {
  color: var(--muted);
}
.pa-alist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
  gap: 10px;
}
.pa-alc {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.pa-alc.todo {
  border-left-color: var(--warn);
}
.pa-alc.ok {
  border-left-color: var(--ok);
}
.pa-alc.bad {
  border-left-color: var(--bad);
}
.pa-alh {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}
.pa-alh span {
  font-size: 12.5px;
  font-weight: 600;
}
.pa-alh small {
  flex-basis: 100%;
}
.pa-alt {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
}
.pa-ala {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pa-ala .btn {
  margin: 0;
}
.pa-tplx label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
@media (max-width: 700px) {
  .pa-steps,
  .pa-try-acts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 📅 weekly report day · ⚠️ minimum attendance · 🎓 students too (👪 Parents & payments → WhatsApp messages) */
.pa-opts {
  display: grid;
  grid-template-columns: minmax(150px, 200px) minmax(130px, 170px) 1fr;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.pa-opts .fl {
  margin: 0;
}
.pa-pcin {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pa-pcin input {
  width: 80px;
}
.pa-stu .pa-tog input {
  width: 100%;
  height: 100%;
}
.pa-when {
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  margin-top: 10px;
}
.pa-when > .muted {
  flex: 1 1 320px;
  font-size: 12.5px;
  line-height: 1.45;
}
.pa-when-b {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
@media (max-width: 700px) {
  .pa-opts {
    grid-template-columns: 1fr 1fr;
  }
  .pa-opts .pa-stu {
    grid-column: 1 / -1;
  }
}
/* 🎓 the student's dashboard: ⚠️ below the minimum, this week and overall */
.ma-warn {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--bad) 45%, transparent);
  background: var(--bad-bg);
  color: var(--bad);
  font-size: 14px;
  line-height: 1.45;
}
.ma-wk {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 14px;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.ma-wk b {
  color: var(--text, inherit);
}
.ma-wk b.low {
  color: var(--bad);
}
.pa-opts .pa-pcin,
.pa-opts .pa-pcin b {
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
  color: var(--text);
}
/* 🎓 the student's hello card: 📋 My Attendance · 🎓 My Details & Fees */
.sh-go {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
/* 🎓 📋 My Attendance – a page of its own */
#app-myatt > * {
  margin-bottom: 16px;
}
/* 🎓 students always see 📊 My Dashboard in the menu (even when the Dashboard is kept behind the logo) */
@media (min-width: 901px) {
  body.dash-hide.student-mode .nav-tabs .portal-tab[data-app="dashboard"] {
    display: inline-flex !important;
  }
}
/* 👁 show / hide a password */
.pw-eye-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.pw-eye-wrap > input {
  width: 100%;
  box-sizing: border-box;
  padding-right: 42px !important;
}
.pw-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 5px 6px;
  border-radius: 8px;
  opacity: 0.7;
}
.pw-eye:hover,
.pw-eye.on {
  opacity: 1;
  background: rgba(11, 45, 92, 0.07);
}
/* 👪 a parent signed in on the portal: their view covers the whole page (same address) */
#parentView {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: #f4f7fb;
}
#parentView iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
body.parent-mode {
  overflow: hidden;
}
/* 📋 not marked yet: no button lit, a quiet card */
.sa-c.n {
  background: #eef2f7;
  color: #475467;
}
.sa-card.n .sa-badge {
  background: #eef2f7;
  color: #667085;
}
.sa-card.n {
  border-style: dashed;
}
.sa-who b[data-sa-open],
.sa-list b[data-sa-open] {
  cursor: pointer;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
/* 👤 a student's complete details (from 📋 Attendance – tap the name) */
.si-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.si-top b {
  display: block;
  font-size: 16px;
}
.si-top small {
  color: var(--muted);
}
.si-av {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  background: var(--navy);
  color: #fff;
}
.si-nums {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
.si-nums > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}
.si-nums span,
.si-nums small {
  font-size: 11.5px;
  color: var(--muted);
}
.si-nums b {
  font-size: 18px;
}
.si-nums b.low {
  color: var(--bad);
}
.si-nums b.ok {
  color: var(--ok, #16803c);
}
.si-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.si-dl span {
  color: var(--muted);
}
.si-dl b {
  font-weight: 600;
  text-align: right;
}
/* 📊 the register's summary (like the staff report) */
.sa-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.sa-kpis > div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--surface, #fff);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sa-kpis span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.sa-kpis b {
  font-size: 22px;
  color: var(--navy);
}
.sa-kpis b.low,
.sa-kpis .warn b {
  color: var(--bad);
}
.sa-kpis small {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 📷 👤 menu → My photo, and the photo in the top bar */
.nav-photo {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav-menu .nav-photo {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  width: 100%;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 12px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  text-align: left;
}
.nav-menu .portal-tab .tl {
  display: inline !important;
}
.nav-menu .portal-tab .ts,
.nav-menu .portal-tab .tm {
  display: none !important;
}
.nav-menu .portal-tab:hover,
.nav-menu .nav-photo:hover {
  background: #f1f5fb;
  color: var(--navy);
}
body.signed-out .nav-photo {
  display: none;
}
.nav-av {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 6px;
  border: 1.5px solid var(--gold, #d6a72c);
}
/* 📜 Activity (from the website) */
.act-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 10px;
}
.act-bar input[type="search"] {
  flex: 1 1 220px;
}
.act-bar label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
}
.act-th {
  cursor: pointer;
  white-space: nowrap;
}
.act-d {
  max-width: 340px;
  font-size: 12.5px;
}
/* 📢 Notice ▾ on the right of the top bar (Notice & Events · Results) */
.nav-right .nav-notice {
  position: relative;
  display: inline-flex;
}
.nav-right .nav-notice .nav-more-btn {
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  border-radius: 8px;
  height: 30px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  cursor: pointer;
}
.nav-right .nav-notice .nav-more-btn:hover,
.nav-right .nav-notice .nav-more-btn.on {
  background: rgba(255, 255, 255, 0.14);
}
.nav-right .nav-notice .nm-l {
  display: none;
}
@media (min-width: 1200px) {
  .nav-right .nav-notice .nm-l {
    display: inline;
  }
}
body.signed-out .nav-notice {
  display: none !important;
}
/* 🏅 Results: at a glance, progress bars, the first steps */
.rs-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.rs-kpi {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface, #fff);
  box-shadow: 0 6px 18px rgba(11, 45, 92, 0.06);
  min-width: 0;
}
.rs-kpi i {
  font-style: normal;
  font-size: 20px;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--navy) 8%, #fff);
}
.rs-kpi div {
  min-width: 0;
}
.rs-kpi b {
  display: block;
  font-size: 20px;
  color: var(--navy);
}
.rs-kpi span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rs-kpi.good b {
  color: var(--ok, #16803c);
}
.rs-kpi.bad b,
.rs-kpi.warn b {
  color: var(--bad);
}
.rs-prog {
  height: 7px;
  border-radius: 6px;
  background: #eef2f7;
  overflow: hidden;
  min-width: 80px;
}
.rs-prog i {
  display: block;
  height: 100%;
  background: var(--navy);
  border-radius: 6px;
}
.rs-prog.ok i {
  background: var(--ok, #16803c);
}
.rs-prog.low i {
  background: var(--bad);
}
.rs-list small {
  color: var(--muted);
  font-size: 11.5px;
}
.rs-empty {
  text-align: center;
  padding: 28px 18px;
}
.rs-empty-ic {
  font-size: 40px;
}
.rs-empty h3 {
  margin: 6px 0 14px;
  color: var(--navy);
}
.rs-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  text-align: left;
}
.rs-steps > div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.rs-steps b {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rs-steps span {
  font-size: 13px;
  color: var(--muted);
}
/* ===================== 🔐 sign-in: two panels (the institution · the sign-in card) ===================== */
body.signed-out .signin {
  gap: 0;
  padding: 24px;
  background:
    radial-gradient(800px 420px at 12% 10%, color-mix(in srgb, var(--gold, #d6a72c) 22%, transparent), transparent 70%),
    radial-gradient(700px 500px at 90% 100%, rgba(255, 255, 255, 0.08), transparent 70%),
    linear-gradient(135deg, var(--navy, #0b2d5c), color-mix(in srgb, var(--navy, #0b2d5c) 70%, #1c63b7));
}
.si-brand {
  display: none;
}
@media (min-width: 900px) {
  .si-brand {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 420px;
    min-height: 560px;
    align-self: stretch;
    max-height: 640px;
    margin: auto 0;
    padding: 36px 34px;
    border-radius: 24px 0 0 24px;
    color: #fff;
    background:
      radial-gradient(360px 240px at 100% 0%, color-mix(in srgb, var(--gold, #d6a72c) 30%, transparent), transparent 70%),
      linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-right: 0;
    backdrop-filter: blur(6px);
  }
  .si-brand + .signin-box {
    border-radius: 0 24px 24px 0;
    min-height: 560px;
    max-height: 640px;
    align-self: stretch;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 440px;
    padding: 30px 30px 24px;
    border-top: 0;
    border-left: 4px solid var(--gold, #d6a72c);
  }
}
.si-brand-in {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sib-logo {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}
.sib-logo img {
  max-width: 74px;
  max-height: 74px;
  object-fit: contain;
}
#sibTitle {
  font-size: 28px;
  line-height: 1.15;
}
#sibSub {
  opacity: 0.85;
  font-size: 15px;
}
#sibWel {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.9;
}
.sib-list {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.sib-list button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}
.sib-list i {
  font-style: normal;
  font-size: 20px;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.14);
}
.sib-list b {
  display: block;
  font-size: 14px;
}
.sib-list span {
  opacity: 0.92;
}
/* the sign-in card: bigger fields, a clear button */
.signin-box .fl input,
.signin-box .fl select {
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 15px;
}
.signin-box .fl input:focus,
.signin-box .fl select:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--navy) 14%, transparent);
}
.signin-box #siGo {
  padding: 12px;
  font-size: 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), color-mix(in srgb, var(--navy) 72%, #000));
}
/* 🔑 Forgot password on the sign-in page: its own card in the same place (not a small popup) */
body.signed-out .pdlg {
  background: transparent;
  backdrop-filter: none;
}
body.signed-out:has(#pdlg:not([hidden])) .signin-box,
body.signed-out:has(#pdlg:not([hidden])) .si-brand {
  filter: blur(3px);
  opacity: 0.35;
  pointer-events: none;
}
body.signed-out .pdlg-box {
  max-width: 440px;
  border-radius: 24px;
  padding: 26px 26px 20px;
  border-top: 4px solid var(--gold, #d6a72c);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}
body.signed-out .pdlg-h b::before {
  content: "🔐 ";
}
body.signed-out .pdlg-h b {
  font-size: 19px;
}
.nav-menu .nav-photo {
  gap: 8px;
}

/* 👆 the left panel's choices pick the login on the right */
.sib-list button {
  width: 100%;
  text-align: left;
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.sib-list button:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(3px);
}
.sib-list button.on {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--gold, #d6a72c);
  box-shadow: inset 4px 0 0 var(--gold, #d6a72c);
}
.sib-list button:focus-visible {
  outline: 2px solid var(--gold, #d6a72c);
  outline-offset: 2px;
}

/* 👥 Staff: add · import · export */
.sf-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
/* 🗄 Import & Export: every section in the database */
.db-card {
  margin-bottom: 14px;
}
.db-h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.db-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 10px;
}
.db-sec {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface, #fff);
}
.db-sec .db-n {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy);
}
.db-sec small {
  font-size: 11.5px;
  line-height: 1.4;
}
.db-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

/* ---------- 💼 Accounts → 📦 Inventory (assets/js/skcreative-22.js) ---------- */
.inv-page .kpis {
  margin: 0 0 12px;
}
.inv-page .toolbar-row {
  flex-wrap: wrap;
  gap: 8px;
}
.inv-sp {
  flex: 1 1 auto;
}
.inv-alert {
  background: var(--warn-bg);
  border: 1px solid #f0d78c;
  border-radius: 10px;
  padding: 8px 12px;
  margin: 0 0 10px;
  font-size: 13px;
}
.inv-alert.due {
  background: #eef4ff;
  border-color: #b9cdf2;
}
.inv-alert .linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}
.inv-tbl td,
.inv-tbl th {
  white-space: nowrap;
}
.inv-tbl td:nth-child(2) {
  white-space: normal;
  min-width: 140px;
}
.inv-tbl tr.inv-out td {
  background: var(--bad-bg);
}
.inv-acts {
  display: flex;
  gap: 4px;
}
.inv-page .card {
  margin: 0 0 12px;
}
.inv-page .card h2 {
  font-size: 15px;
  margin: 0 0 8px;
}
.inv-wide {
  grid-column: 1 / -1;
}
.inv-kinds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.inv-k {
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}
.inv-k b {
  display: block;
  font-size: 14px;
}
.inv-k span {
  font-size: 11px;
  color: var(--muted);
}
.inv-k.on {
  border-color: var(--blue);
  background: #eef4ff;
  box-shadow: 0 0 0 2px rgba(18, 74, 145, 0.15);
}
.inv-lines input {
  width: 100%;
  min-width: 70px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}
.inv-lines td:nth-child(2) {
  min-width: 200px;
}
.inv-lines td:nth-child(3),
.inv-lines td:nth-child(4),
.inv-lines td:nth-child(5) {
  width: 110px;
}
.inv-lines tfoot td {
  border-top: 2px solid var(--line);
}
.inv-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}
.inv-due {
  color: var(--warn);
}
.inv-hist h2 {
  margin: 0;
}
@media print {
  .inv-page .toolbar-row,
  .inv-page .bk-tabs,
  .inv-page .inv-alert {
    display: none !important;
  }
}
/* 🏷 Fields – rename and add fields (portalFields) */
.pf-ov {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.45);
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 16px;
  overflow: auto;
}
.pf-box {
  width: min(720px, 100%);
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.pf-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pf-h h2 {
  font-size: 17px;
  margin: 0;
}
.pf-box h3 {
  font-size: 14px;
  margin: 14px 0 6px;
}
.pf-q {
  width: 100%;
  margin: 4px 0 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}
.pf-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: var(--muted);
}
.pf-row[hidden] {
  display: none;
}
.pf-row input,
.pf-ex input,
.pf-ex select {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
}
.pf-ex {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.4fr auto;
  gap: 6px;
  margin: 0 0 6px;
}
.pf-ex input[hidden] {
  visibility: hidden;
  display: block;
}
.pf-foot {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
@media (max-width: 560px) {
  .pf-ex {
    grid-template-columns: 1fr 1fr;
  }
}
/* ⏱ permission tickets: out → back → closed (assets/js/skcreative-18.js) */
.lv-it small.lv-res,
.lv-res {
  display: inline-block;
  margin-top: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
  background: var(--none-bg);
}
.lv-res.out {
  background: #eef4ff;
  color: var(--blue);
}
.lv-res.back {
  background: var(--ok-bg);
  color: var(--ok);
}
.lv-res.half {
  background: var(--warn-bg);
  color: var(--warn);
}
.lv-res.full {
  background: var(--bad-bg);
  color: var(--bad);
}
.btn.lv-back {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
  white-space: nowrap;
}
/* 📋 PM permission (student attendance) and 💾 Save on top */
.sa-c.m,
.sa-seg .m.on,
.sa-reg td.m {
  background: #f3ecff;
  color: #6b3fb8;
}
.sa-card.m {
  border-left-color: #6b3fb8;
}
.sa-card.m .sa-badge {
  background: #f3ecff;
  color: #6b3fb8;
}
.sa-big button.m.on {
  background: #6b3fb8;
  border-color: #6b3fb8;
  color: #fff;
}
.sa-reg td.p {
  font-weight: 600;
}
.sa-bar.sa-top {
  top: 0;
  bottom: auto;
  z-index: 5;
  margin: 8px 0 10px;
  box-shadow: 0 6px 20px rgba(11, 45, 92, 0.08);
}
/* 🎓 the student's attendance: a colour for each letter – P present · A absent · L leave · PM permission · ½ half day */
.ma-today.m,
.ma-d.m,
.ma-res.m,
.ma-hc.m {
  background: #f3ecff;
  color: #6b3fb8;
}
.ma-h.m {
  border-left-color: #6b3fb8;
}
.ma-h.m i {
  color: #6b3fb8;
}
.ma-today.h,
.ma-d.h,
.ma-res.h,
.ma-hc.h {
  background: linear-gradient(135deg, var(--ok-bg) 50%, var(--warn-bg) 50%);
  color: var(--warn);
}
.ma-h.h {
  border-left-color: var(--warn);
}
.ma-h.h i {
  color: var(--warn);
}
.ma-today.l,
.ma-d.l,
.ma-res.l,
.ma-hc.l {
  background: #fff1e6;
  color: #b4530a;
}
.ma-let {
  display: inline-block;
  min-width: 26px;
  padding: 0 6px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.07);
  text-align: center;
  font-weight: 800;
  line-height: 1.5;
}
.ma-let.e {
  background: #eef2ff;
  color: #3a49a8;
}
.ma-let.m {
  background: #f3ecff;
  color: #6b3fb8;
}
.ma-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.ma-k {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text);
}
.ma-k > b {
  min-width: 30px;
  text-align: center;
  border-radius: 7px;
  padding: 2px 4px;
  font-weight: 800;
  background: var(--ok-bg);
  color: var(--ok);
}
.ma-k > span {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.ma-k small {
  color: var(--muted);
  font-size: 10.5px;
}
.ma-k > i {
  font-style: normal;
  font-weight: 800;
  font-size: 15px;
  margin-left: 2px;
}
.ma-k.a > b {
  background: var(--bad-bg);
  color: var(--bad);
}
.ma-k.e > b {
  background: #eef2ff;
  color: #3a49a8;
}
.ma-k.m > b {
  background: #f3ecff;
  color: #6b3fb8;
}
.ma-k.h > b {
  background: linear-gradient(135deg, var(--ok-bg) 50%, var(--warn-bg) 50%);
  color: var(--warn);
}
.ma-perm {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #f3ecff;
  color: #4b2a85;
  font-size: 13px;
}
.ma-perm > span {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ma-perm small {
  color: var(--muted);
}
.ma-perm.back {
  background: var(--ok-bg);
  color: var(--ok);
}
.ma-perm.half,
.ma-perm.w {
  background: var(--warn-bg);
  color: var(--warn);
}
.ma-perm.full {
  background: var(--bad-bg);
  color: var(--bad);
}
.lv-kind label > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lv-kind label {
  flex: 1 1 240px;
  align-items: flex-start;
}
.lv-kind label input {
  margin-top: 3px;
}
/* 📷 Import & Export → Student photos & phones (assets/js/skcreative-23.js) */
.ph-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.ph-pick label.btn {
  cursor: pointer;
}
.ph-got {
  margin: 4px 0 0;
}
.ph-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: flex-end;
  margin-bottom: 10px;
}
.ph-opt {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 600;
  font-size: 13px;
}
.ph-tbl td {
  vertical-align: middle;
}
.ph-tbl select {
  max-width: 260px;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 12.5px;
}
.ph-th {
  width: 44px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: block;
}
.ph-ch {
  display: inline-block;
  margin: 1px 0;
  padding: 1px 7px;
  border-radius: 8px;
  background: var(--ok-bg);
  color: var(--ok);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.ph-bad {
  color: var(--bad);
  font-size: 12px;
  font-weight: 600;
}
.ph-tbl tr.ph-none td {
  background: var(--warn-bg);
}
/* 📁 Uploads – the photo app (assets/js/skcreative-23.js) */
.up-page {
  padding-bottom: 40px;
}
.ga-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin: 4px 0 10px;
}
.ga-head h1 {
  margin: 0 0 4px;
  font-size: 24px;
}
.ga-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}
.ga-crumbs button {
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 6px;
}
.ga-crumbs button[aria-current] {
  color: var(--text);
  font-weight: 700;
}
.ga-crumbs span {
  color: var(--muted);
}
.ga-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ga-tools input {
  width: min(320px, 70vw);
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  background: var(--surface);
  color: var(--text);
}
.ga-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
}
.ga-stats > span {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.ga-stats .ok {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: transparent;
}
.ga-stats .no {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: transparent;
}
.ga-h2 {
  font-size: 15px;
  margin: 16px 0 10px;
}
.ga-albums {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.ga-a {
  border: 0;
  padding: 0;
  text-align: left;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(11, 45, 92, 0.08);
  color: var(--text);
  font: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.ga-a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(11, 45, 92, 0.14);
}
.ga-m {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  aspect-ratio: 4 / 3;
  background: var(--none-bg);
}
.ga-m img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
.ga-m.n1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}
.ga-m.n2,
.ga-m.n3 {
  grid-template-rows: 1fr;
}
.ga-m.n3 img:nth-child(3) {
  display: none;
}
.ga-m.logo img {
  object-fit: contain;
  background: #fff;
  padding: 6px;
}
.ga-at {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
}
.ga-at small {
  color: var(--muted);
  font-size: 11.5px;
}
.ga-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.ga-t {
  position: relative;
  border: 0;
  padding: 0;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--none-bg);
  box-shadow: 0 1px 6px rgba(11, 45, 92, 0.1);
  font: inherit;
}
.ga-t img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.25s;
}
.ga-t:hover img {
  transform: scale(1.05);
}
.ga-t.logo img {
  object-fit: contain;
  padding: 14px 14px 46px;
  background: #fff;
}
.ga-t:focus-visible {
  outline: 3px solid var(--blue);
}
.ga-n {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 9px 8px;
  background: linear-gradient(transparent, rgba(8, 20, 40, 0.85));
  color: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.ga-n b {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ga-n small {
  font-size: 10.5px;
  opacity: 0.85;
}
.ga-b {
  position: absolute;
  top: 7px;
  left: 7px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ok);
}
.ga-b.no {
  color: #fff;
  background: var(--warn);
}
.ga-v {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(6, 14, 30, 0.92);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
}
.ga-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 60px;
  min-height: 0;
}
.ga-img img {
  height: min(78vh, 720px); /* small photos are shown big too */
  width: auto;
  max-width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.ga-img.logo img {
  background: #fff;
  padding: 20px;
}
.ga-info {
  background: var(--surface);
  color: var(--text);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
}
.ga-info h3 {
  margin: 0;
  font-size: 18px;
}
.ga-path {
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
  margin: 0;
}
.ga-use {
  margin: 0;
  font-size: 13px;
}
.ga-who {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: var(--ok-bg);
}
.ga-who span {
  font-size: 12.5px;
  color: var(--muted);
}
.ga-who.no {
  background: var(--warn-bg);
}
.ga-who select {
  width: 100%;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.ga-act {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.ga-act .btn {
  text-decoration: none;
}
.ga-x,
.ga-prev,
.ga-next {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 26px;
  line-height: 1;
}
.ga-x {
  top: 14px;
  right: 334px;
  font-size: 18px;
}
.ga-prev,
.ga-next {
  top: 50%;
  transform: translateY(-50%);
}
.ga-prev {
  left: 12px;
}
.ga-next {
  right: 334px;
}
.ga-x:hover,
.ga-prev:hover,
.ga-next:hover {
  background: rgba(255, 255, 255, 0.28);
}
@media (max-width: 760px) {
  .ga-v {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }
  .ga-img {
    padding: 56px 12px 12px;
  }
  .ga-img img {
    max-height: 55vh;
  }
  .ga-x {
    right: 12px;
  }
  .ga-next {
    right: 12px;
  }
  .ga-prev,
  .ga-next {
    top: 30%;
  }
  .ga-info {
    max-height: 45vh;
  }
  .ga-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}
