:root {
  --navy: #243982; --navy-2: #1b2c66; --navy-soft: #eef1fa;
  --red: #c9251b; --red-soft: #fdeeed; --red-2: #a91e16;
  --orange: #d9640f; --orange-soft: #fff1e6;
  --amber: #b7791f; --amber-soft: #fff8e6;
  --blue: #2563a8; --blue-soft: #e8f0fb;
  --grey: #6b7280; --grey-soft: #eef0f3;
  --green: #11643c; --green-soft: #e9f6ef;
  --purple: #6b3fa0; --purple-soft: #f1ebfa;
  --bg: #f4f5f9; --card: #fff; --surface-2: #fafbfd;
  --ink: #1b2133; --muted: #5f6880; --line: #e2e5ee; --input-line: #cfd4e0;
  --focus: rgba(36,57,130,.25); --radius: 12px;
  --shadow: 0 1px 2px rgba(20,30,60,.06), 0 2px 8px rgba(20,30,60,.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); font-size: 15px; line-height: 1.45;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); min-height: 100vh; }
a { color: var(--navy); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; } h4 { font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); } .small { font-size: .86rem; } .tiny { font-size: .78rem; }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; }
.mt { margin-top: 14px; } .mb { margin-bottom: 14px; }
pre.wrap { white-space: pre-wrap; font: inherit; margin: 0; }

/* header */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.top-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 0 16px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--red); display: grid; place-items: center; font-size: .9rem; }
.brand .sub { font-weight: 400; opacity: .8; font-size: .85rem; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 8px; opacity: .85; font-weight: 500; }
.nav a:hover { background: rgba(255,255,255,.1); opacity: 1; }
.nav a.active { background: rgba(255,255,255,.16); opacity: 1; }
.nav a .pill { background: var(--red); color: #fff; border-radius: 10px; padding: 0 7px; font-size: .75rem; margin-left: 5px; }
.top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.anon { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 4px 10px 4px 6px; cursor: pointer; color: #fff; font-size: .85rem; }
.anon .dot { width: 18px; height: 18px; border-radius: 50%; background: #9aa3b8; border: 2px solid rgba(255,255,255,.6); }
.anon.on .dot { background: var(--red); }
.btn-link { background: none; border: none; color: #fff; opacity: .85; cursor: pointer; padding: 6px; }
.btn-link:hover { opacity: 1; }

/* layout */
.wrap { max-width: 1280px; margin: 0 auto; padding: 20px 16px 60px; }
.wrap.narrow { max-width: 760px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.card + .card { margin-top: 14px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.cols.wide-left { grid-template-columns: 3fr 2fr; }
@media (max-width: 900px) { .cols, .cols.wide-left { grid-template-columns: 1fr; } }

/* forms */
label.field { display: block; margin-bottom: 12px; }
label.field > span, .field-label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .92rem; }
label.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=datetime-local], input[type=number], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--input-line); border-radius: 8px; background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--focus); }
.check { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 8px; cursor: pointer; }
.check input { margin-top: 4px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--navy-2); }
.btn.secondary { background: #fff; color: var(--navy); }
.btn.secondary:hover { background: var(--navy-soft); }
.btn.danger { background: var(--red); border-color: var(--red); }
.btn.danger:hover { background: var(--red-2); }
.btn.small { padding: 5px 10px; font-size: .85rem; font-weight: 500; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.seg { display: inline-flex; border: 1px solid var(--input-line); border-radius: 8px; overflow: hidden; }
.seg button { border: none; background: #fff; padding: 8px 14px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--input-line); }
.seg button.on { background: var(--navy); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 14px; font-size: .82rem; background: var(--grey-soft); border: 1px solid transparent; cursor: pointer; }
.chip:hover { border-color: var(--navy); }
.chip.student { background: var(--blue-soft); color: var(--blue); }
.chip.parent { background: var(--green-soft); color: var(--green); }
.chip.teacher { background: var(--purple-soft); color: var(--purple); }
.chip.external { background: var(--amber-soft); color: var(--amber); }
.chip .ref { opacity: .7; font-size: .74rem; }
.chip .x { opacity: .6; margin-left: 2px; } .chip .x:hover { opacity: 1; color: var(--red); }

/* badges */
.badge { display: inline-block; padding: 2px 9px; border-radius: 12px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.lvl-0 { background: var(--grey-soft); color: var(--grey); }
.lvl-1 { background: var(--blue-soft); color: var(--blue); }
.lvl-2 { background: var(--amber-soft); color: var(--amber); }
.lvl-3 { background: var(--orange-soft); color: var(--orange); }
.lvl-4 { background: var(--red); color: #fff; }
.lvl-none { background: #fff; color: var(--muted); border: 1px dashed var(--input-line); }
.st-new { background: var(--red-soft); color: var(--red); }
.st-open { background: var(--navy-soft); color: var(--navy); }
.st-monitoring { background: var(--amber-soft); color: var(--amber); }
.st-closed { background: var(--grey-soft); color: var(--grey); }
.danger-flag { color: var(--red); font-weight: 700; }
.notice { padding: 12px 14px; border-radius: 10px; border: 1px solid; margin-bottom: 14px; }
.notice.red { background: var(--red-soft); border-color: #f3b9b4; color: var(--red-2); }
.notice.blue { background: var(--navy-soft); border-color: #c7cfee; color: var(--navy); }
.notice.amber { background: var(--amber-soft); border-color: #f0d9a0; color: var(--amber); }
.notice.green { background: var(--green-soft); border-color: #a9dbbf; color: var(--green); }

/* level picker */
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.levels button { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 6px; cursor: pointer; text-align: center; }
.levels button b { display: block; font-size: 1.3rem; }
.levels button span { font-size: .78rem; color: var(--muted); }
.levels button.on.l0 { border-color: var(--grey); background: var(--grey-soft); }
.levels button.on.l1 { border-color: var(--blue); background: var(--blue-soft); }
.levels button.on.l2 { border-color: var(--amber); background: var(--amber-soft); }
.levels button.on.l3 { border-color: var(--orange); background: var(--orange-soft); }
.levels button.on.l4 { border-color: var(--red); background: var(--red-soft); }
@media (max-width: 600px) { .levels { grid-template-columns: repeat(2, 1fr); } }

/* lists */
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; text-decoration: none; color: inherit; }
.item:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.item.new { border-left: 4px solid var(--red); }
.item .ref { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; color: var(--muted); }
.item .title { font-weight: 600; }
.item .excerpt { color: var(--muted); font-size: .9rem; margin: 2px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item .when { font-size: .82rem; color: var(--muted); text-align: right; white-space: nowrap; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.stat b { font-size: 1.5rem; display: block; }
.stat span { color: var(--muted); font-size: .84rem; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button { border: 1px solid var(--line); background: #fff; padding: 6px 12px; border-radius: 20px; cursor: pointer; }
.tabs button.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* case log */
.log { display: flex; flex-direction: column; gap: 10px; }
.log .ev { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.log .ev .t { font-size: .8rem; color: var(--muted); }
.log .ev .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ev-kind { display: inline-block; padding: 1px 7px; border-radius: 8px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.ev-concern { background: var(--red-soft); color: var(--red); }
.ev-triage { background: var(--navy-soft); color: var(--navy); }
.ev-note, .ev-status { background: var(--grey-soft); color: var(--grey); }
.ev-action { background: var(--green-soft); color: var(--green); }
.ev-conversation { background: var(--purple-soft); color: var(--purple); }
.ev-parent_contact { background: var(--amber-soft); color: var(--amber); }
.ev-informed { background: var(--blue-soft); color: var(--blue); }
.ev-evidence { background: var(--orange-soft); color: var(--orange); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.thumbs img { max-width: 160px; max-height: 120px; border-radius: 6px; border: 1px solid var(--line); }
.thumbs a.file { display: inline-block; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: .84rem; }

/* timeline */
.tl-wrap { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(360px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .tl-wrap { grid-template-columns: 1fr; } }
.tl-scroll { position: relative; overflow: auto; max-height: calc(100vh - 230px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 10px; }
.tl-canvas { position: relative; min-height: 200px; }
.tl-axis { position: absolute; left: 50%; top: 0; bottom: 0; width: 6px; margin-left: -3px; background: var(--purple); border-radius: 3px; }
.tl-axis::before, .tl-axis::after { content: ''; position: absolute; left: -7px; border: 10px solid transparent; }
.tl-axis::before { top: -14px; border-bottom-color: var(--purple); }
.tl-axis::after { bottom: -14px; border-top-color: var(--purple); }
.tl-node { position: absolute; width: calc(50% - 34px); }
.tl-node.left { right: calc(50% + 24px); }
.tl-node.right { left: calc(50% + 24px); }
.tl-node .tick { position: absolute; top: 18px; width: 24px; height: 2px; background: var(--purple); }
.tl-node.left .tick { right: -24px; } .tl-node.right .tick { left: -24px; }
.tl-node .dotp { position: absolute; top: 13px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--purple); }
.tl-node.left .dotp { right: -33px; } .tl-node.right .dotp { left: -33px; }
.tl-card { background: #fff; border: 1.5px solid var(--purple); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.tl-card:hover, .tl-card.on { background: var(--purple-soft); box-shadow: 0 0 0 3px rgba(107,63,160,.2); }
.tl-card .t { font-size: .76rem; color: var(--muted); }
.tl-card .h { font-weight: 600; font-size: .92rem; }
.tl-card .s { font-size: .84rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tl-card.level-4 { border-color: var(--red); } .tl-card.level-3 { border-color: var(--orange); }
.tl-gap { position: absolute; left: 50%; transform: translateX(-50%); background: var(--bg); color: var(--muted); font-size: .72rem; padding: 1px 8px; border-radius: 8px; border: 1px solid var(--line); }
.tl-detail { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 72px; max-height: calc(100vh - 100px); overflow: auto; }
.tl-detail .empty { color: var(--muted); text-align: center; padding: 60px 20px; }
.zoom { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.zoom input { width: 140px; }

/* misc */
.login { max-width: 420px; margin: 60px auto; }
.login .users { display: flex; flex-direction: column; gap: 8px; }
.login .users button { text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.login .users button:hover { border-color: var(--navy); background: var(--navy-soft); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 50; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
.toast.err { background: var(--red); }
.suggest { border: 1px dashed var(--amber); background: var(--amber-soft); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; }
.search-results { border: 1px solid var(--line); border-radius: 8px; max-height: 220px; overflow: auto; background: #fff; }
.search-results button { display: block; width: 100%; text-align: left; border: none; background: none; padding: 8px 10px; cursor: pointer; border-bottom: 1px solid var(--line); }
.search-results button:hover { background: var(--navy-soft); }
.lang-switch { position: absolute; right: 16px; top: 14px; }
.lang-switch button { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 5px 10px; border-radius: 8px; cursor: pointer; }
.lang-switch button.on { background: #fff; color: var(--navy); }
.hero { background: var(--navy); color: #fff; padding: 30px 16px 60px; position: relative; }
.hero h1 { font-size: 1.7rem; margin-bottom: 6px; }
.hero p { opacity: .85; max-width: 640px; }
.form-card { margin-top: -36px; }
.radio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.radio-grid label { border: 1.5px solid var(--line); border-radius: 10px; padding: 10px; cursor: pointer; text-align: center; }
.radio-grid label:has(input:checked) { border-color: var(--navy); background: var(--navy-soft); }
.radio-grid input { display: none; }
.done { text-align: center; padding: 20px; }
.done .ref { font-family: ui-monospace, Menlo, monospace; font-size: 2rem; font-weight: 700; color: var(--navy); letter-spacing: .05em; margin: 10px 0; }
.anon .lbl { display: inline-block; min-width: 86px; text-align: left; }

/* page headers: the title side shrinks and wraps internally; the controls never move when a name changes length */
.page-head { display: flex; gap: 16px; align-items: flex-start; }
.page-head > :first-child { flex: 1 1 auto; min-width: 0; }
.page-head > .controls { flex: 0 0 auto; flex-wrap: nowrap; }
@media (max-width: 640px) { .page-head { flex-wrap: wrap; } }

.tl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 0 10px 6px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tl-cols span:first-child { text-align: right; color: var(--red); } .tl-cols span:last-child { color: var(--navy); }
.tl-node.left .tl-card { border-color: var(--red); } .tl-node.left .dotp { border-color: var(--red); } .tl-node.left .tick { background: var(--red); }

body.auditor .edit-only { display: none !important; }
body.auditor .anon { cursor: default; }

/* body map */
.bodymap .bm-views { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.bodymap .bm-view { text-align: center; }
.bodymap .bm-title { font-size: .8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.bodymap svg { width: 150px; height: 330px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.bodymap.compact svg { width: 90px; height: 198px; }
.bodymap svg.editable { cursor: crosshair; }
.bodymap .outline { fill: #e6e9f2; stroke: #9aa3b8; stroke-width: 1.5; }
.bodymap .side { font-size: 11px; fill: var(--muted); font-weight: 600; }
.bodymap .pin circle { fill: var(--red); stroke: #fff; stroke-width: 2; }
.bodymap .pin text { font-size: 10px; font-weight: 700; fill: #fff; text-anchor: middle; }
.bodymap svg.editable .pin { cursor: pointer; }
.bodymap .bm-hint { font-size: .84rem; color: var(--muted); text-align: center; margin: 6px 0; }
.bodymap .bm-list { margin: 8px 0 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.bodymap .bm-list li[data-i] { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.bodymap .bm-list select, .bodymap .bm-list input { width: auto; padding: 5px 8px; font-size: .86rem; }
.bodymap .bm-list input[data-k=note] { flex: 1; min-width: 120px; }
.bodymap .bm-where { font-weight: 600; }
.bodymap .bm-remove { border: none; background: none; color: var(--muted); cursor: pointer; } .bodymap .bm-remove:hover { color: var(--red); }
.bodymap .bm-none { color: var(--muted); font-size: .86rem; }

/* injury prompt */
.injury { border: 1.5px solid var(--amber); background: var(--amber-soft); border-radius: 10px; padding: 12px 14px; margin: 10px 0 14px; }
.injury h3 { margin: 0 0 4px; color: var(--amber); }
.injury .row { margin-top: 8px; }

/* highlight-to-identify */
.ident-btn { position: absolute; z-index: 30; background: var(--navy); color: #fff; border: none; border-radius: 8px; padding: 6px 10px; font-size: .84rem; font-weight: 600; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ident-btn::after { content: ''; position: absolute; left: 14px; top: -6px; border: 6px solid transparent; border-bottom-color: var(--navy); border-top: 0; }
.concern-text .pn { background: var(--navy-soft); border-bottom: 1.5px solid var(--navy); border-radius: 3px; padding: 0 2px; }
.ident-hint { font-size: .8rem; color: var(--muted); margin: 4px 0 0; }

/* Microsoft sign-in button */
.ms-btn { width: 100%; justify-content: center; padding: 12px 16px; font-size: 1rem; background: #2f2f2f; border-color: #2f2f2f; }
.ms-btn:hover { background: #1f1f1f; }
.ms-logo { display: inline-grid; grid-template-columns: 9px 9px; gap: 2px; margin-right: 6px; }
.ms-logo i { width: 9px; height: 9px; display: block; }
.ms-logo i:nth-child(1) { background: #f25022; } .ms-logo i:nth-child(2) { background: #7fba00; } .ms-logo i:nth-child(3) { background: #00a4ef; } .ms-logo i:nth-child(4) { background: #ffb900; }

/* settings table: give the name and email boxes room */
#settings-users td:nth-child(1) input { min-width: 150px; }
#settings-users td:nth-child(2) input { min-width: 220px; }
#settings-users { overflow-x: auto; display: block; }
#settings-users table { min-width: 760px; }

/* person flags */
.flags { display: inline-flex; gap: 4px; flex-wrap: wrap; vertical-align: middle; }
.flag { display: inline-block; padding: 1px 7px; border-radius: 8px; font-size: .74rem; font-weight: 600; background: var(--amber-soft); color: var(--amber); border: 1px solid #f0d9a0; }
.flag.small { font-size: .68rem; padding: 0 5px; }
.flag-dot { display: inline-block; min-width: 14px; height: 14px; line-height: 14px; border-radius: 7px; background: var(--amber); color: #fff; font-size: .62rem; text-align: center; margin-left: 2px; }
.meta { color: var(--muted); margin-top: 3px; }

/* network map */
.network { width: 100%; max-width: 560px; height: auto; display: block; margin: 0 auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.network .nn { font-size: 11px; fill: var(--ink); text-anchor: middle; font-weight: 600; }
.network .nl { font-size: 9px; fill: var(--muted); text-anchor: middle; }
.network .node:hover circle { stroke: var(--red); }
/* oversight */
.bar { background: var(--grey-soft); border-radius: 4px; height: 12px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--navy); }
.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 170px; }
.months .m { display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.months .col { width: 100%; height: 120px; display: flex; align-items: flex-end; }
.months .col i { display: block; width: 100%; background: var(--navy-soft); border: 1px solid #c7cfee; border-radius: 4px 4px 0 0; position: relative; overflow: hidden; min-height: 2px; }
.months .col i b { position: absolute; left: 0; right: 0; bottom: 0; background: var(--navy); display: block; }
.months span { font-size: .68rem; color: var(--muted); margin-top: 4px; } .months em { font-size: .72rem; font-style: normal; font-weight: 600; }
.ev-clinic { background: var(--green-soft); color: var(--green); }
body.head .edit-only { display: none !important; }
