/* ASU Los Diablos - shared design system
   Palette is ASU official: maroon #8C1D40, gold #FFC627. */

:root {
  --maroon:      #8C1D40;
  --maroon-dark: #6B1631;
  --maroon-tint: #F7EDF1;
  --gold:        #FFC627;
  --gold-dark:   #C89000;

  --ink:         #1A1A1A;
  --ink-2:       #4A4A4A;
  --ink-3:       #767676;
  --line:        #E0DEDB;
  --bg:          #FFFFFF;
  --bg-2:        #FAF9F7;

  --ok:          #127A46;
  --ok-bg:       #E8F5EE;
  --warn:        #A85E00;
  --warn-bg:     #FDF3E2;
  --bad:         #B3261E;
  --bad-bg:      #FCEDEC;

  --radius:      3px;
  --shadow:      none;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body { font-size: 16px; line-height: 1.55; }

a { color: var(--maroon); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 620px; margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------------- header */

.topbar {
  background: var(--maroon);
  color: #fff;
  border-bottom: 4px solid var(--gold);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none; font-weight: 800;
  letter-spacing: .02em; font-size: 1.05rem;
}
/* The pitchfork is taller than it is wide, like the real mark, so it is not boxed. */
.brand .pitchfork {
  width: 22px; height: 36px; flex: none;
  fill: var(--gold);
}
.brand small { display: block; font-weight: 500; font-size: .72rem; opacity: .85; letter-spacing: .04em; }

.topnav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.topnav a, .topnav button {
  color: #fff; text-decoration: none; font: inherit; font-size: .9rem; font-weight: 600;
  background: none; border: 0; cursor: pointer;
  padding: 8px 12px; border-radius: 6px;
}
.topnav a:hover, .topnav button:hover { background: rgba(255,255,255,.14); }
.topnav a.active { background: rgba(255,255,255,.2); }
.whoami { font-size: .85rem; opacity: .9; padding-right: 4px; }

/* ---------------------------------------------------------------- layout */

.page { padding: 32px 0 72px; }
.page-head { margin-bottom: 24px; }
.page-head p { color: var(--ink-2); margin: 0; max-width: 68ch; }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 20px;
}
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }

.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat .n { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--maroon); }
.stat .l { font-size: .82rem; color: var(--ink-2); margin-top: 6px; font-weight: 600; }

/* ---------------------------------------------------------------- table */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); font-weight: 700; white-space: nowrap;
  background: var(--bg-2); position: sticky; top: 0; z-index: 1;
}
tbody tr:hover { background: var(--bg-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.nowrap { white-space: nowrap; }

/* ---------------------------------------------------------------- pills */

.pill {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: .74rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
  border: 1px solid transparent;
}
.pill-ok      { background: var(--ok-bg);   color: var(--ok);     border-color: #BFE3CF; }
.pill-warn    { background: var(--warn-bg); color: var(--warn);   border-color: #F0DCB4; }
.pill-bad     { background: var(--bad-bg);  color: var(--bad);    border-color: #F2C9C6; }
.pill-quiet   { background: #F0EFEC;        color: var(--ink-2);  border-color: var(--line); }
.pill-maroon  { background: var(--maroon-tint); color: var(--maroon); border-color: #E7CFD8; }

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: .9rem; font-weight: 700;
  padding: 10px 18px; border-radius: 8px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .12s ease, border-color .12s ease;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary   { background: var(--maroon); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--maroon-dark); }
.btn-gold      { background: var(--gold); color: var(--maroon); }
.btn-gold:hover:not(:disabled) { background: var(--gold-dark); color: #fff; }
.btn-quiet     { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover:not(:disabled) { background: var(--bg-2); }
.btn-sm { padding: 6px 12px; font-size: .82rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- forms */

label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.hint { font-size: .82rem; color: var(--ink-3); font-weight: 400; margin: 4px 0 0; }

input[type=text], input[type=email], input[type=number], input[type=url], input[type=date],
select, textarea {
  width: 100%; font: inherit; font-size: .95rem;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--maroon); outline-offset: 1px; border-color: var(--maroon);
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.field { margin-bottom: 18px; }

/* ---------------------------------------------------------------- misc */

.msg { padding: 12px 16px; border-radius: 8px; font-size: .9rem; margin-bottom: 18px; font-weight: 600; }
.msg-ok   { background: var(--ok-bg);   color: var(--ok); }
.msg-bad  { background: var(--bad-bg);  color: var(--bad); }
.msg-info { background: var(--maroon-tint); color: var(--maroon); }
.msg:empty { display: none; }

.empty { text-align: center; padding: 48px 20px; color: var(--ink-3); }

.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.right { text-align: right; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.deadline {
  border-left: 4px solid var(--gold);
  background: var(--bg-2);
  padding: 14px 18px; border-radius: 0 8px 8px 0; margin-bottom: 18px;
}
.deadline strong { color: var(--maroon); }

/* Compliance grid: 22 event columns, so the scholar name has to stay pinned while the
   rest scrolls sideways. */
.gridwrap { overflow: auto; max-height: 78vh; border: 1px solid var(--line); border-radius: var(--radius); }
.gridwrap table { font-size: .84rem; border-collapse: separate; border-spacing: 0; }
.gridwrap th, .gridwrap td { border-bottom: 1px solid var(--line); padding: 8px 10px; background: #fff; }
.gridwrap thead th {
  position: sticky; top: 0; z-index: 3; background: var(--bg-2);
  border-bottom: 2px solid var(--line); font-size: .68rem; padding: 10px 8px;
  text-align: center; white-space: nowrap;
}
.gridwrap th.scholar-col, .gridwrap td.scholar-col {
  position: sticky; left: 0; z-index: 2;
  border-right: 2px solid var(--line); text-align: left; min-width: 190px;
}
.gridwrap thead th.scholar-col { z-index: 4; }
.gridwrap tbody tr:hover td { background: var(--maroon-tint); }
.gridwrap td.cell { text-align: center; font-weight: 800; font-size: .95rem; padding: 8px 6px; }
.cell-signed  { color: var(--ok); }
.cell-excused { color: var(--maroon); font-size: .7rem !important; font-weight: 800; }
.cell-missed  { color: var(--bad); }
.cell-pending { color: #D6D3CE; }
.gridwrap th.term-fall   { border-top: 3px solid var(--gold); }
.gridwrap th.term-spring { border-top: 3px solid var(--maroon); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: .85rem; margin: 14px 0 0; color: var(--ink-2); }
.legend b { font-size: 1rem; }

/* Tabs. Peer sections are tabs, never stacked down the page. Mirrors the house component
   in command-central/Platform/platform-mockup/style.css:648-667. */
.section-tabs {
  display: flex; justify-content: space-between; align-items: stretch;
  border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 10px;
}
.tab-group { display: flex; gap: 0; flex-wrap: wrap; }
.tab {
  background: transparent; border: 0; padding: 13px 20px;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--ink-3);
  cursor: pointer; border-bottom: 2px solid transparent; user-select: none;
}
.tab:hover { color: var(--ink); background: var(--bg-2); }
.tab.active { color: var(--maroon); border-bottom-color: var(--maroon); }
.tab:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.section-actions { display: flex; align-items: center; gap: 8px; padding: 7px 0; flex-wrap: wrap; }
.sub-panel { display: none; padding-top: 18px; }
.sub-panel.active { display: block; }
.card.tabbed { padding-top: 0; }

/* Status reads as words, not a badge on every row. Colour marks a problem only.
   (platform-mockup/style.css:103) */
.st { font-size: .86rem; color: var(--ink-2); }
.st-flag { color: var(--bad); font-weight: 700; }
.st-wait { color: var(--warn); font-weight: 600; }
.st-ok   { color: var(--ink-3); }

/* Signing and uploads */
.formdoc {
  max-height: 340px; overflow-y: auto; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px;
  font-size: .88rem; line-height: 1.6;
}
.formdoc p { margin: 0 0 11px; }
.formdoc p:last-child { margin-bottom: 0; }
.formdoc:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sigpad {
  border: 2px dashed var(--line); border-radius: 8px; background: #fff;
  display: block; width: 100%; height: 130px; touch-action: none; cursor: crosshair;
}
.agree { display: flex; gap: 9px; align-items: flex-start; font-weight: 600; font-size: .88rem; }
.agree input { width: auto; margin-top: 3px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.tile {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.tile .tname { font-weight: 700; font-size: .92rem; }
.drop {
  border: 2px dashed var(--line); border-radius: 8px; padding: 20px 14px;
  text-align: center; color: var(--ink-3); font-size: .84rem; background: var(--bg-2);
  cursor: pointer;
}
.drop:hover, .drop.over { border-color: var(--maroon); color: var(--maroon); }
.headshot {
  width: 104px; height: 104px; border-radius: var(--radius); background: var(--bg-2);
  border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden;
  color: var(--ink-3); font-size: .75rem; text-align: center; flex: none;
}
.headshot img { width: 100%; height: 100%; object-fit: cover; }

dialog {
  border: 0; border-radius: var(--radius); padding: 0;
  box-shadow: 0 10px 50px rgba(0,0,0,.28); max-width: 620px; width: calc(100% - 32px);
}
dialog::backdrop { background: rgba(0,0,0,.45); }
dialog .dlg-head { padding: 20px 24px 0; }
dialog .dlg-body { padding: 12px 24px; }
dialog .dlg-foot { padding: 16px 24px 22px; display: flex; gap: 10px; justify-content: flex-end; }

.spinner {
  width: 22px; height: 22px; border: 3px solid var(--line);
  border-top-color: var(--maroon); border-radius: 50%;
  animation: spin .7s linear infinite; margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  h1 { font-size: 1.55rem; }
  .wrap, .wrap-narrow { padding: 0 16px; }
  .card { padding: 16px; }
  .topbar .wrap { min-height: 60px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
}

/* Drill-down links: a scholar's name is clickable from any screen it appears on. */
a.drill { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--line-2, #CFC5C1); }
a.drill:hover { color: var(--maroon); border-bottom-color: var(--maroon); }
a.drill:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

details summary { cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--maroon); }
details summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------------------------------------------------------------- Promesa list
   Replaces the table of rows-with-buttons. Grouped by month, status carried by a chip and
   a coloured left edge, so the eye finds the exceptions without reading every line. */

.month-group { margin-bottom: 22px; }
.month-head {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--ink-3); font-weight: 700; margin: 0 0 8px; padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.promesa-list { list-style: none; margin: 0; padding: 0; }
.promesa-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 14px; margin-bottom: 6px; border-radius: 8px;
  background: var(--bg-2); border-left: 4px solid var(--line);
  flex-wrap: wrap;
}
.promesa-row.s-signed   { border-left-color: var(--ok); }
.promesa-row.s-excused  { border-left-color: var(--maroon); }
.promesa-row.s-awaiting { border-left-color: var(--warn); }
.promesa-row.s-disputed { border-left-color: var(--bad); background: var(--bad-bg); }
.promesa-row.s-missed   { border-left-color: var(--bad); }

.pr-main { display: flex; flex-direction: column; gap: 2px; min-width: 220px; flex: 1 1 auto; }
.pr-name { font-weight: 700; font-size: .95rem; }
.pr-when { font-size: .8rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pr-side { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pr-by { font-size: .78rem; color: var(--ink-3); }

.chip {
  display: inline-block; padding: 4px 11px; border-radius: 999px;
  font-size: .73rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent;
}
.chip-signed   { background: var(--ok-bg);   color: var(--ok);     border-color: #BFE3CF; }
.chip-excused  { background: var(--maroon-tint); color: var(--maroon); border-color: #E7CFD8; }
.chip-awaiting { background: var(--warn-bg); color: var(--warn);   border-color: #F0DCB4; }
.chip-disputed { background: var(--bad-bg);  color: var(--bad);    border-color: #F2C9C6; }
.chip-missed   { background: var(--bad-bg);  color: var(--bad);    border-color: #F2C9C6; }
.chip-pending  { background: #F0EFEC;        color: var(--ink-3);  border-color: var(--line); }

/* ---------------------------------------------------------------- callouts + check in */

.callout {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px;
  border: 1px solid var(--line); font-size: .93rem;
}
.callout-live { background: var(--warn-bg); border-color: #F0DCB4; color: var(--warn); }
.callout-bad  { background: var(--bad-bg);  border-color: #F2C9C6; color: var(--bad); }
.callout strong { color: inherit; }

.checkin-card { text-align: center; padding: 32px 24px; }
.checkin-btn { font-size: 1.15rem; padding: 20px; margin-top: 18px; }
.checkin-done {
  background: var(--ok-bg); color: var(--ok); border: 1px solid #BFE3CF;
  border-radius: var(--radius); padding: 20px; font-weight: 700; font-size: 1.05rem;
  margin: 18px 0 12px;
}

/* ---------------------------------------------------------------- event manager
   Everything else runs off the calendar, so each event is a card you can see and edit
   whole, rather than a row of cramped inputs. */

.event-row {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 14px; background: var(--bg);
}
.event-row:hover { border-color: var(--line); box-shadow: var(--shadow); }
.ev-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.ev-name {
  flex: 1 1 260px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; background: transparent; padding: 6px 8px;
}
.ev-name:hover { border-color: var(--line); background: var(--bg-2); }
.ev-actions { display: flex; gap: 6px; }
.ev-conflict {
  background: var(--warn-bg); color: var(--warn); border: 1px solid #F0DCB4;
  border-radius: 6px; padding: 8px 12px; font-size: .82rem; margin-bottom: 12px;
}
.ev-fields, .ev-fac {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px;
}
.ev-fac { margin-top: 12px; grid-template-columns: 1fr; }
.ev-fields label, .ev-fac label {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-3); font-weight: 700;
}
.ev-fields input, .ev-fields select, .ev-fac select { margin-top: 4px; font-size: .9rem; }
.ev-fields .hint, .ev-fac .hint { text-transform: none; letter-spacing: 0; font-size: .76rem; }
.ev-check {
  display: flex; align-items: center; gap: 8px; text-transform: none;
  letter-spacing: 0; font-size: .85rem; color: var(--ink); align-self: end; padding-bottom: 8px;
}
.ev-check input { width: auto; margin: 0; }

/* ---------------------------------------------------------------- activity grid
   Replaces the scrolling list. 11 activities fit on one screen as cards. */

.act-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 12px; align-items: start;
}
.act {
  border: 1px solid var(--line); border-left: 4px solid var(--line);
  border-radius: var(--radius); padding: 13px 15px; background: var(--bg);
}
.act header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.act-name { font-weight: 700; font-size: .91rem; line-height: 1.3; }
.act-when { font-size: .79rem; color: var(--ink-3); margin-top: 5px; font-variant-numeric: tabular-nums; }
.act-by   { font-size: .76rem; color: var(--ink-3); margin-top: 3px; }
.act-signed   { border-left-color: var(--ok); }
.act-excused  { border-left-color: var(--maroon); }
.act-awaiting { border-left-color: var(--warn); }
.act-disputed { border-left-color: var(--bad); background: var(--bad-bg); }
.act-missed   { border-left-color: var(--bad); }
.act-meeting { margin-top: 10px; }
.act-theirs {
  background: var(--bg-2); border-radius: 6px; padding: 9px 11px;
  font-size: .81rem; margin-bottom: 9px; line-height: 1.45;
}
.act-editor { margin-top: 10px; }
.act-editor textarea { font-size: .88rem; min-height: 90px; }
.act-editor-foot {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; margin-top: 8px; flex-wrap: wrap;
}

/* ---------------------------------------------------------------- live check in */

.live-now {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--maroon); color: #fff; border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 20px; flex-wrap: wrap;
}
.live-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); font-weight: 700; }
.live-name { font-size: 1.25rem; font-weight: 800; margin-top: 4px; }
.live-when { font-size: .84rem; opacity: .85; margin-top: 2px; }
.live-btn { font-size: 1.05rem; padding: 15px 34px; }
.live-done { background: rgba(255,255,255,.18); border-radius: 8px; padding: 14px 22px; font-weight: 700; }

/* ---------------------------------------------------------------- inline confirm */

.btn.armed {
  background: var(--bad) !important; color: #fff !important;
  border-color: var(--bad) !important;
}
.inline-summary td { background: var(--bg-2); }
.inline-summary textarea { min-height: 90px; font-size: .88rem; }

.owed-item {
  border: 1px solid var(--line); border-left: 4px solid var(--bad);
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
}
.owed-item h3 { margin-bottom: 2px; }
.owed-item textarea { margin: 10px 0; }

/* ---------------------------------------------------------------- contact */

.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.contact-role { font-size: .69rem; text-transform: uppercase; letter-spacing: .08em; color: var(--maroon); font-weight: 700; }
.contact-name { font-weight: 700; margin: 4px 0 6px; }
.contact-card a { display: block; font-size: .84rem; margin-top: 2px; }

/* ================================================================ record view
   This is a scholarship compliance record, not a consumer app. Dense rows, real column
   alignment, restrained colour. Mia: "these are not kindergarteners, please stop making
   bubbly design." No cards, no pills, no rounded blobs. */

.card { border-radius: 0; box-shadow: none; }
.stat { border-radius: 0; background: transparent; border: 0; border-left: 2px solid var(--maroon);
        padding: 4px 0 4px 14px; }
.stat .n { font-size: 1.5rem; font-weight: 700; }
.stat .l { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; }
.btn { border-radius: 2px; font-weight: 600; }
.btn-sm { padding: 5px 11px; }
input, select, textarea { border-radius: 2px; }
.chip { display: none; }

.rec-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 0 0 10px; margin-bottom: 0; border-bottom: 2px solid var(--ink);
  font-size: .85rem; flex-wrap: wrap;
}
.rec-count { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }

table.rec-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.rec-table thead th {
  font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--ink-3); text-align: left; padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--line); background: transparent; position: static;
}
table.rec-table td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
table.rec-table tbody tr:hover { background: transparent; }
tr.rec:hover .rec-name { color: var(--maroon); }

.rec-name   { font-weight: 600; width: 40%; }
.rec-when   { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; width: 20%; }
.rec-status { font-size: .8rem; width: 18%; }
.rec-by     { color: var(--ink-3); font-size: .82rem; width: 17%; }
.rec-act    { text-align: right; white-space: nowrap; }

/* the status colour is carried by the row's left edge, one pixel, not a badge */
tr.rec td:first-child { border-left: 3px solid transparent; padding-left: 11px; }
tr.rec-signed   td:first-child { border-left-color: var(--ok); }
tr.rec-excused  td:first-child { border-left-color: var(--maroon); }
tr.rec-awaiting td:first-child { border-left-color: var(--warn); }
tr.rec-disputed td:first-child { border-left-color: var(--bad); }
tr.rec-missed   td:first-child { border-left-color: var(--bad); }

.lnk {
  background: none; border: 0; padding: 0; font: inherit; font-size: .82rem;
  color: var(--maroon); cursor: pointer; text-decoration: underline;
  text-underline-offset: 2px;
}
.lnk:hover { color: var(--maroon-dark); }
.lnk:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.rec-editor-row td { background: var(--bg-2); padding: 14px 16px; }
.rec-editor-row label {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3);
}
.rec-editor-row textarea { font-size: .88rem; min-height: 74px; margin-top: 4px; }
.rec-editor-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.rec-theirs { font-size: .84rem; color: var(--ink-2); margin-bottom: 10px; line-height: 1.5; }
.rec-theirs-who { font-weight: 700; color: var(--ink); }

/* check in bar: a rule across the page, not a floating tile */
.live-now {
  border-radius: 0; background: var(--maroon); padding: 16px 20px;
  border-left: 4px solid var(--gold);
}
.live-label { font-size: .66rem; letter-spacing: .12em; }
.live-name { font-size: 1.1rem; font-weight: 700; }
.live-btn { font-size: .92rem; padding: 11px 26px; border-radius: 2px; }
.live-done { border-radius: 2px; padding: 10px 18px; font-size: .88rem; }

.callout, .due, .deadline, .owed-item, .contact-card, .event-row, .tile, .drop { border-radius: 0; }
.due { background: transparent; border-left: 3px solid var(--gold); padding: 8px 0 8px 14px; }

.role-picker { display: flex; gap: 16px; flex-wrap: wrap; margin: 8px 0 4px; }
.role-opt {
  display: flex; align-items: center; gap: 6px; font-size: .85rem;
  text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 500;
}
.role-opt input { width: auto; margin: 0; }
code { font-size: .84em; background: var(--bg-2); padding: 2px 5px; border-radius: 2px; }
