:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #1c2430;
  --muted: #637083;
  --border: #dde2ea;
  --brand: #1f4e79;
  --brand-ink: #ffffff;
  --ok: #1e7b45;   --ok-bg: #e3f4ea;
  --bad: #b3261e;  --bad-bg: #fbe6e4;
  --warn: #8a5a00; --warn-bg: #fff3d6;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11151b; --card: #1a2029; --text: #e6eaf0; --muted: #98a3b3; --border: #2c3542;
    --brand: #5b9bd5; --brand-ink: #0b1420;
    --ok: #6fd39a; --ok-bg: #173526; --bad: #ff8a80; --bad-bg: #3d1d1b; --warn: #f2c25b; --warn-bg: #3a2e12;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--brand); }
h1 { font-size: 1.4rem; margin: 0 0 .5rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
code { background: var(--bg); padding: .1em .35em; border-radius: 6px; }
.big-code { font-size: 1.4rem; letter-spacing: .15em; font-weight: 700; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem 1rem; padding-top: max(.6rem, env(safe-area-inset-top));
  background: var(--card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5;
}
.brand { display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--text); text-decoration: none; }

/* Logo strip stays white in dark mode too, since the logo artwork has a white background. */
.logo-banner { background: #ffffff; border-bottom: 1px solid var(--border); padding: .6rem 1rem; text-align: center; }
.logo-banner img { display: block; margin: 0 auto; width: 100%; max-width: 760px; height: auto; }
.who { font-size: .9rem; }
.container { max-width: 960px; margin: 0 auto; padding: 1rem; }

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.card.narrow { max-width: 420px; margin: 2rem auto; }
.card.alert { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-color: var(--brand); border-width: 2px; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.error { color: var(--bad); margin: 0; }

.stack { display: flex; flex-direction: column; gap: .75rem; }
.inline { display: flex; gap: .5rem; flex-wrap: wrap; }
.inline input { flex: 1 1 160px; }
.inline .grow { flex: 3 1 220px; }
.row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }

label { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; font-weight: 600; }
label[hidden] { display: none; }
input, select {
  font: inherit; padding: .6rem .7rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); min-width: 0;
}
.seg { display: flex; gap: .5rem; }
.seg label { flex-direction: row; align-items: center; gap: .4rem; flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: .55rem .7rem; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font: inherit; font-weight: 600; padding: .6rem 1rem; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--text); text-decoration: none;
}
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { padding: .3rem .6rem; font-size: .85rem; }
.btn.big { padding: .9rem 1.2rem; font-size: 1.05rem; width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.danger-text { color: var(--bad); }
/* Year switch (Year 1 / Year 2 / Year 3) */
.yearbar { display: flex; gap: .35rem; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: .3rem; margin-bottom: 1rem; overflow-x: auto; }
.yeartab { flex: 1; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); padding: .55rem .9rem; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.yeartab.active { background: var(--brand); color: var(--brand-ink); }

/* Discipline cards: whole card is a link; the Guest QR button sits on top of it */
.disc-card { position: relative; }
.disc-card .stretched { position: absolute; inset: 0; border-radius: inherit; z-index: 0; }
.disc-card .stretched:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
div.disc-card:hover { border-color: var(--brand); }
.disc-card .guestqr { position: relative; z-index: 1; align-self: flex-start; margin-top: .5rem; }

/* Guest QR dialog */
.qr-card { text-align: center; }
.qr-img { width: min(280px, 70vw); height: auto; margin: .4rem auto; image-rendering: pixelated; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
/* Preceptor sign-off */
.sigpad { display: block; width: 100%; height: 160px; border: 1px dashed var(--border); border-radius: 8px; background: #fff; touch-action: none; cursor: crosshair; }
.narrow-stack { max-width: 560px; margin-left: auto; margin-right: auto; }
.so-entry .so-choice { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: .5rem; }
.signoff-cta { border-color: var(--brand); }
.qr-link { width: 100%; font-size: .8rem; text-align: center; }
.center-row { justify-content: center; }
.guest-head h1 { margin: .1rem 0 .2rem; }

/* Lecturer ↔ discipline matching */
.admin-card { border-color: var(--brand); }
.admin-card p { margin: .25rem 0 0; max-width: 46rem; }
.disc-cell .chip { display: inline-block; margin: .1rem 0; font-size: .75rem; }
.disc-pick { border: 1px solid var(--border); border-radius: 8px; padding: .4rem .8rem .6rem; margin: 0; }
.disc-pick legend { font-weight: 700; padding: 0 .3rem; }
.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 500; padding: .2rem 0; }
.check input { width: 1.1rem; height: 1.1rem; }

/* On/Off switch (Master control → Years & clinical) */
.toggle {
  display: inline-flex; align-items: center; gap: .5rem; border: 0; background: none; padding: .2rem; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--muted);
}
.toggle .knob {
  width: 2.6rem; height: 1.5rem; border-radius: 999px; background: var(--border); position: relative; transition: background .15s; flex: none;
}
.toggle .knob::after {
  content: ''; position: absolute; top: .2rem; left: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s;
}
.toggle.on { color: var(--ok); }
.toggle.on .knob { background: var(--ok); }
.toggle.on .knob::after { transform: translateX(1.1rem); }
.toggle:disabled { opacity: .5; cursor: default; }

/* Class / Clinical switch */
.modebar { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
.modetab {
  display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem .8rem; border-radius: 10px;
  border: 2px solid var(--border); background: var(--card); color: var(--muted); font-weight: 700; text-decoration: none; text-align: center;
}
.modetab.active { border-color: var(--brand); color: var(--text); background: var(--bg); box-shadow: inset 0 -3px 0 var(--brand); }
.subtabs { margin-bottom: 1rem; }

/* Student clinical check-in */
.site-box { padding: .8rem; border-radius: 10px; background: var(--bg); margin-bottom: .8rem; }
.site-name { font-weight: 700; font-size: 1.1rem; }
.checkin-status { padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--border); margin-bottom: .7rem; }
.checkin-status.in { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.switch { flex-direction: row; align-items: flex-start; gap: .55rem; font-weight: 500; margin: .8rem 0 .2rem; }
.switch input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; flex: none; }
input[type=date], input[type=time] { min-width: 9rem; }

/* Attendance / Master control switch for managers */
.topnav { display: flex; gap: .5rem; margin-bottom: .75rem; }
.topnav a { padding: .45rem .8rem; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; }
.topnav a.active { background: var(--card); color: var(--text); border: 1px solid var(--border); }

/* Master control section tabs */
.admin-head h1 { margin-bottom: .6rem; }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.tabs a { padding: .5rem .8rem; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--text); border-bottom-color: var(--brand); }

/* Discipline / year cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.cards .card { margin-bottom: 0; }
.disc-card { display: flex; flex-direction: column; gap: .25rem; text-decoration: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
a.disc-card:hover, button.disc-card:hover { border-color: var(--brand); }
.disc-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.disc-pct { font-size: 1.6rem; font-weight: 700; margin-top: .3rem; }

.row.between { justify-content: space-between; align-items: center; margin-top: 0; margin-bottom: .5rem; }
.row.between h2 { margin: 0; }
.filters { margin-bottom: .6rem; }
.inline-label { flex-direction: row; align-items: center; gap: .4rem; font-weight: 500; white-space: nowrap; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin: .8rem 0 .5rem; }
.chip { padding: .2rem .6rem; border-radius: 999px; background: var(--bg); font-size: .85rem; font-weight: 600; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.preview { max-height: 360px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.preview th { position: sticky; top: 0; background: var(--card); }
.row-bad td { background: var(--bad-bg); }
.row-muted td { opacity: .55; }
.muted-badge { opacity: .7; }
input[type=search] { width: 100%; margin-bottom: .6rem; }
input[type=file] { padding: .45rem; }

/* Class request form while clinical rotations are in session */
fieldset.plain { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: .75rem; }
.is-disabled { opacity: .55; }
.is-disabled .btn { cursor: not-allowed; }
.paused-note { background: var(--warn-bg); color: var(--warn); }

/* Registered attendance phone */
.device-card { border: 2px solid var(--brand); }
.device-card.warn { border-color: var(--warn); background: var(--warn-bg); }
.device-card.bad { border-color: var(--bad); background: var(--bad-bg); }
.device-card h2 { margin-bottom: .3rem; }
.device-card p { margin: .3rem 0 .6rem; }
.warn-note { background: var(--warn-bg); color: var(--warn); }

.notify-banner { border: 2px solid var(--brand); }
.notify-banner h2 { margin-bottom: .2rem; }
.notify-banner p { margin: .25rem 0 .6rem; }
.danger-zone { border-color: var(--bad); }
.danger-zone p { margin: 0 0 .75rem; }
#confirm ul { margin: .4rem 0 .6rem; padding-left: 1.2rem; }
#confirm .purge-list { max-height: 9rem; overflow: auto; }
#confirm label { text-align: left; margin: .25rem 0; }
.card.install { display: flex; gap: .9rem; align-items: flex-start; border-color: var(--brand); }
.card.install img { border-radius: 11px; flex: none; }
.card.install h2 { margin-bottom: .2rem; }
.card.install p { margin: .25rem 0 .6rem; }
.grow { flex: 1; min-width: 0; }
/* Phone browser before the app is installed: install steps instead of the sign-in form */
.install-first { text-align: left; }
.install-first img { display: block; margin: 0 auto .6rem; border-radius: 14px; }
.install-first h1 { text-align: center; font-size: 1.3rem; }
.steps { margin: .4rem 0; padding-left: 1.2rem; }
.steps li { margin: .25rem 0; }
.ios-share { display: inline-block; border: 1px solid var(--border); border-radius: 4px; padding: 0 .3rem; }
.menuwrap { position: relative; }
.menubtn { gap: .45rem; }
.avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem;
  border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: .85rem; font-weight: 700;
}
.menu {
  position: absolute; right: 0; top: calc(100% + .4rem); width: min(320px, calc(100vw - 2rem)); z-index: 15;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18); overflow: hidden;
}
.menu[hidden] { display: none; }
.menu-section { padding: .8rem 1rem; border-bottom: 1px solid var(--border); }
.menu-section p { margin: .3rem 0 .5rem; }
.menu-section .row { margin-top: .25rem; }
.menu-title { font-weight: 700; font-size: .9rem; }
.menu-item {
  display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--border);
  padding: .8rem 1rem; font: inherit; font-weight: 600; color: var(--text); cursor: pointer;
}
.menu-item:last-child { border-bottom: 0; }
.menu-item:hover { background: var(--bg); }
.menu-item.danger-text { color: var(--bad); }
.iconbtn { background: none; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: .2rem .4rem; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: underline; }
#confirm { z-index: 25; }
#confirm .modal-card { text-align: left; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--border); }
.list li:first-child { border-top: 0; }
.clickable { cursor: pointer; }
.clickable:hover { background: var(--bg); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: .5rem .5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; white-space: nowrap; }
td select { padding: .3rem .4rem; font-size: .85rem; }

.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--bg); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .6rem; margin: .75rem 0; }
.stat { border-radius: 10px; padding: .7rem; background: var(--bg); text-align: center; }
.stat b { display: block; font-size: 1.8rem; line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }
.stat.ok { background: var(--ok-bg); } .stat.ok b { color: var(--ok); }
.stat.bad { background: var(--bad-bg); } .stat.bad b { color: var(--bad); }
.stat.warn { background: var(--warn-bg); } .stat.warn b { color: var(--warn); }

.countdown { font-weight: 700; font-size: 1.1rem; }
.closed { color: var(--bad); }
.note { padding: .6rem .8rem; border-radius: 8px; background: var(--bg); margin: 0 0 .5rem; }
.note.ok { background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.note.bad { background: var(--bad-bg); color: var(--bad); }
.note:empty { display: none; }

.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); display: flex; align-items: center; justify-content: center; padding: 1rem; z-index: 20; }
.modal[hidden] { display: none; }
.modal-card {
  background: var(--card); border-radius: 16px; padding: 1.5rem; width: 100%; max-width: 400px;
  text-align: center; display: flex; flex-direction: column; gap: .5rem; animation: pop .25s ease-out;
}
.modal-card p { margin: 0; }
.pin { font-size: 2.5rem; animation: bounce 1.2s infinite; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.toast {
  position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--text); color: var(--card); padding: .7rem 1rem; border-radius: 10px; z-index: 30; max-width: calc(100% - 2rem);
}
.toast.ok { background: var(--ok); color: #fff; }
.toast.bad { background: var(--bad); color: #fff; }

/* Clinical rotation switch (start/end dates) */
.rotation-card { border-left: 4px solid var(--border); }
.rotation-card.on { border-left-color: var(--ok); }
.rotation-card p { margin: .4rem 0; }
.nowrap-row { flex-wrap: nowrap; }
.row-selected td { background: var(--ok-bg); }

/* Clinical logbook */
.lb-wizard { max-height: 92vh; overflow-y: auto; }
.lb-wizard textarea { width: 100%; font: inherit; padding: .6rem; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); box-sizing: border-box; }
.lb-progress { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.lb-bar { height: 6px; background: var(--bg); border-radius: 999px; overflow: hidden; }
.lb-bar i { display: block; height: 100%; background: var(--brand); transition: width .2s; }
.lb-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; margin: .75rem 0; }
.lb-opt { text-align: left; padding: .8rem .9rem; border: 2px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; min-height: 3rem; }
.lb-opt:hover { border-color: var(--brand); }
.lb-opt.on { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.lb-opt .tick { margin-right: .4rem; }
.lb-wizard input[type="search"], .lb-wizard #lbtext { width: 100%; box-sizing: border-box; }
.lb-summary li { align-items: center; }
.lb-total { margin-bottom: .6rem; }
.lb-total .chips { margin: .25rem 0 0; }
.lb-total .chip b { margin-left: .25rem; }
.lb-entries li { align-items: flex-start; }
.lb-entries li > div { display: flex; flex-direction: column; gap: .15rem; }
.lb-setup { padding-left: 1.2rem; margin: .5rem 0; }
.lb-setup summary { cursor: pointer; padding: .2rem 0; }
.lb-setup ul { margin: .2rem 0 .5rem; padding-left: 1.1rem; }
@media (max-width: 480px) { .lb-options { grid-template-columns: 1fr; } }

.visit-patients > td { background: var(--bg); padding: .6rem .8rem; }
/* Records & logbooks: one row per student; their visits open below */
.student-row { cursor: pointer; }
.student-row:hover, .student-row.open { background: var(--bg); }
.student-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.student-visits-row > td { padding: .2rem .4rem .8rem 1.2rem; border-left: 3px solid var(--brand); }
.visits-table.inner { font-size: .92em; }
.visit-patients .lb-entries { margin: .3rem 0 0; }
.cardpart + .cardpart { margin-top: 1rem; }
.cardpart h3 { margin: 0 0 .5rem; }
.cardpart.lb-student { background: var(--bg); border-radius: 10px; padding: .8rem; }
/* Offline / waiting-to-send notice for students: a full-width line inside the (sticky) top bar,
   so it stays visible while scrolling and pushes the page down instead of covering it. */
.topbar { flex-wrap: wrap; }
.topbar > .brand { flex: 1 1 0; min-width: 0; }
.topbar > #userbox { flex: 0 0 auto; }
.offline-bar { flex: 0 0 calc(100% + 2rem); order: 3; margin: .1rem -1rem -.6rem; padding: .45rem 1rem; background: var(--warn-bg); color: var(--warn);
  border-top: 1px solid var(--border); font-size: .85rem; font-weight: 600; text-align: center; line-height: 1.35; }
.offline-bar.sending { background: var(--ok-bg); color: var(--ok); }
.offline-bar[hidden] { display: none; }
.pending-entry { border-left: 3px solid var(--warn); padding-left: .6rem; }
hr.divider { border: 0; border-top: 1px solid var(--border); margin: 1.1rem 0 .9rem; }
.recovery-key { display: block; font-size: 1.05rem; letter-spacing: .05em; padding: .7rem; background: var(--bg); border-radius: 8px; word-break: break-all; user-select: all; }
.pid { font-family: ui-monospace, Consolas, monospace; }
.lb-howto { margin: .6rem 0; padding-left: 1.3rem; }
.lb-howto li { margin: .25rem 0; }

/* Make-up days: calendar picker and day chips */
.makeup-dialog { max-height: 92vh; overflow-y: auto; }
.calhead { display: flex; align-items: center; justify-content: space-between; margin: .5rem 0 .25rem; }
.calgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; }
.calwd { text-align: center; font-size: .75rem; color: var(--muted); padding: .2rem 0; }
.calday { aspect-ratio: 1; min-height: 2.2rem; border: 1px solid var(--border); border-radius: 8px; background: var(--card); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.calday.weekend { background: var(--bg); }
.calday.today { border: 2px solid var(--brand); }
.calday.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.calday.booked, .calkey.booked { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-bg); }
.calday.inrot:not(.on):not(.booked), .calkey.inrot { background: var(--ok-bg); border-color: var(--ok-bg); }
.calday:disabled { cursor: default; opacity: .45; }
.calday.booked:disabled { opacity: 1; }
.calkey { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; vertical-align: middle; margin-right: .3rem; }
.daychips { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.daychip { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .5rem; border-radius: 999px; background: var(--bg); font-size: .8rem; font-weight: 600; white-space: nowrap; }
.daychip.today { background: var(--ok-bg); color: var(--ok); }
.daychip.past { opacity: .55; }
.daychip .linkbtn { font-size: .75rem; padding: 0; }

/* Combined clinical tabs: a heading above each section */
.section-title { font-size: 1.05rem; margin: 1.4rem .25rem .5rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
#clinbody > .section-title:first-child { margin-top: .6rem; }
