/* Desert Pioneers Toastmasters — design system
 *
 * Colour comes from the official Toastmasters International brand palette and
 * nothing else: Loyal Blue, True Maroon, Cool Gray, Happy Yellow. Layout and
 * typography are modern and deliberately do not copy the club's FreeToastHost
 * site. Status colours are the minimum needed to signal success and danger.
 */

:root {
  /* Brand */
  --navy: #004165;
  --navy-deep: #002e48;
  --navy-soft: #1a5a80;
  --navy-wash: #eaf1f6;
  --maroon: #772432;
  --maroon-soft: #96404e;
  --maroon-wash: #f7edee;
  --gray: #a9b2b1;
  --yellow: #f2df74;

  /* Surfaces */
  --bg: #f5f7f8;
  --card: #ffffff;
  --line: #dfe4e8;
  --line-strong: #c6cfd6;
  --wash: #eef2f4;

  /* Ink */
  --ink: #1c2226;
  --ink-soft: #5a6570;
  --ink-faint: #8a939c;

  /* Status */
  --ok: #1e7a4b;
  --ok-wash: #e8f4ee;
  --warn: #a66a00;
  --warn-wash: #fbf2e0;
  --danger: #b3261e;
  --danger-wash: #fbeceb;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(0, 30, 50, 0.06), 0 4px 14px rgba(0, 30, 50, 0.05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.012em; line-height: 1.25; }
h1 { font-size: 25px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p  { margin: 0 0 12px; }
a  { color: var(--navy); text-underline-offset: 2px; }
a:hover { color: var(--navy-soft); }

/* --------------------------------------------------------------------------
   Officer app shell — collapsible sidebar
   -------------------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.shell.is-collapsed { grid-template-columns: 62px 1fr; }

.sidebar {
  background: var(--navy-deep);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-brand {
  padding: 17px 16px 15px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.sidebar-brand .txt { min-width: 0; }
.sidebar-brand .n { font-size: 14px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-brand .c { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #8fb2c6; margin-top: 2px; }

.nav-group { padding: 10px 8px 4px; }
.nav-group .label {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #7fa3bb; padding: 4px 10px 7px; white-space: nowrap; overflow: hidden;
}
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; margin-bottom: 2px; border-radius: var(--radius-sm);
  color: #c3d6e3; text-decoration: none; font-size: 14px; font-weight: 550;
  border: 0; background: none; width: 100%; text-align: left; cursor: pointer;
  font-family: inherit; white-space: nowrap; overflow: hidden;
}
.nav-item svg { width: 17px; height: 17px; flex: none; }
.nav-item:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.nav-item.active { background: rgba(255, 255, 255, .17); color: #fff; }
.nav-item .txt { overflow: hidden; text-overflow: ellipsis; }

.sidebar-foot { margin-top: auto; padding: 8px; border-top: 1px solid rgba(255, 255, 255, .12); }

.shell.is-collapsed .sidebar-brand { justify-content: center; padding-left: 8px; padding-right: 8px; }
.shell.is-collapsed .sidebar-brand .txt,
.shell.is-collapsed .nav-group .label,
.shell.is-collapsed .nav-item .txt { display: none; }
.shell.is-collapsed .nav-item { justify-content: center; padding-left: 0; padding-right: 0; }
.shell.is-collapsed .collapse-btn svg { transform: rotate(180deg); }

.collapse-btn svg { transition: transform .15s; }

.shell-main { min-width: 0; }
main { max-width: 1060px; margin: 0 auto; padding: 26px 24px 90px; }

/* Mobile: the sidebar becomes a drawer behind a top bar. */
.mobile-bar {
  display: none;
  position: sticky; top: 0; z-index: 45;
  background: var(--navy-deep); color: #fff;
  padding: 10px 14px; align-items: center; gap: 12px;
}
.mobile-bar .t { font-size: 15px; font-weight: 650; }
.mobile-bar button {
  background: none; border: 0; color: #fff; padding: 6px; cursor: pointer;
  display: flex; border-radius: var(--radius-sm);
}
.scrim { display: none; position: fixed; inset: 0; background: rgba(10, 24, 34, .5); z-index: 60; }

@media (max-width: 860px) {
  .shell, .shell.is-collapsed { grid-template-columns: 1fr; }
  .mobile-bar { display: flex; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: 254px; height: 100dvh;
    transform: translateX(-100%); transition: transform .18s ease-out; z-index: 65;
  }
  .shell.drawer-open .sidebar { transform: none; }
  .shell.drawer-open .scrim { display: block; }
  .shell.is-collapsed .sidebar-brand .txt,
  .shell.is-collapsed .nav-group .label,
  .shell.is-collapsed .nav-item .txt { display: block; }
  .shell.is-collapsed .nav-item { justify-content: flex-start; padding-left: 10px; padding-right: 10px; }
  .collapse-btn { display: none; }
  main { padding: 18px 16px 80px; }
}

.page-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.page-head .grow { flex: 1 1 260px; min-width: 0; }
.page-head p { color: var(--ink-soft); margin: 4px 0 0; font-size: 14.5px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 700;
  margin: 0 0 5px;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: -4px 0 16px;
}
.card-head h2, .card-head h3 { flex: 1 1 auto; }
.card.flat { box-shadow: none; }
.card.pad-0 { padding: 0; overflow: hidden; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
}
.btn:hover { background: var(--navy-soft); border-color: var(--navy-soft); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }

.btn-secondary { background: var(--card); color: var(--navy); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--wash); color: var(--navy); border-color: var(--gray); }

.btn-ghost { background: transparent; color: var(--ink-soft); border-color: transparent; }
.btn-ghost:hover { background: var(--wash); color: var(--ink); }

.btn-danger { background: var(--card); color: var(--danger); border-color: var(--line-strong); }
.btn-danger:hover { background: var(--danger-wash); border-color: var(--danger); color: var(--danger); }

.btn-sm { font-size: 13px; padding: 7px 11px; }
.btn-block { width: 100%; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: 14px; }
.field > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}
.field .hint { font-size: 12.5px; color: var(--ink-faint); margin-top: 4px; }
.field .req { color: var(--maroon); }

.input, .select, .textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 65, 101, 0.13);
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235a6570' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px; }
.input.narrow, .select.narrow { max-width: 190px; }

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 180px; min-width: 0; }

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.card.pad-0 .table-wrap { border: 0; border-radius: 0; }
table.table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
table.table th {
  background: var(--wash);
  text-align: left;
  padding: 10px 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.table tbody tr:last-child td { border-bottom: 0; }
table.table tbody tr:hover { background: #fafbfc; }
table.table td.tight { width: 1%; white-space: nowrap; }
table.table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--ink-faint); }
.strong { color: var(--ink); font-weight: 600; }

/* --------------------------------------------------------------------------
   Badges and pills
   -------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--wash);
  color: var(--ink-soft);
  white-space: nowrap;
}
.badge-navy   { background: var(--navy-wash);   color: var(--navy); }
.badge-maroon { background: var(--maroon-wash); color: var(--maroon); }
.badge-ok     { background: var(--ok-wash);     color: var(--ok); }
.badge-warn   { background: var(--warn-wash);   color: var(--warn); }
.badge-danger { background: var(--danger-wash); color: var(--danger); }

/* --------------------------------------------------------------------------
   Notices, empty states
   -------------------------------------------------------------------------- */
.notice {
  border-left: 3px solid var(--navy);
  background: var(--navy-wash);
  padding: 12px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 14.5px;
  margin-bottom: 16px;
  color: var(--ink);
}
.notice.warn   { border-left-color: var(--warn);   background: var(--warn-wash); }
.notice.danger { border-left-color: var(--danger); background: var(--danger-wash); }
.notice p:last-child { margin-bottom: 0; }
.notice strong { font-weight: 650; }

.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-soft);
}
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty p { max-width: 42ch; margin: 0 auto 16px; font-size: 14.5px; }

.spinner-line { color: var(--ink-faint); font-size: 14.5px; padding: 24px 0; text-align: center; }

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 26, 36, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  z-index: 60;
}
.modal {
  background: var(--card);
  border-radius: var(--radius);
  width: 100%;
  max-width: 520px;
  margin: auto;
  box-shadow: 0 12px 40px rgba(0, 30, 50, 0.24);
}
.modal.wide { max-width: 720px; }
.modal-head {
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.modal-head h2 { flex: 1; font-size: 17.5px; }
.modal-body { padding: 20px; }
.modal-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */
.toast-host {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 460px;
}
.toast {
  background: var(--navy-deep);
  color: #fff;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0, 30, 50, 0.3);
  animation: toast-in 0.18s ease-out;
  width: 100%;
}
.toast.err { background: var(--danger); }
.toast.ok  { background: var(--ok); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   Sign-in — split screen: brand on the left, form on the right
   -------------------------------------------------------------------------- */
.auth { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }

.auth-brand {
  background: var(--navy-deep);
  color: #fff;
  padding: 52px 48px 44px;
  display: flex;
  flex-direction: column;
}
.auth-brand .mark { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.auth-brand .mark span { color: var(--yellow); }
.auth-brand .rule { height: 1px; background: rgba(255,255,255,.18); margin: 16px 0 26px; }
.auth-brand h1 { font-size: 34px; line-height: 1.15; font-weight: 650; letter-spacing: -.02em; max-width: 16ch; }
.auth-brand h1 em { font-style: normal; color: var(--yellow); white-space: nowrap; }
.auth-brand .sub { color: #b9d0de; font-size: 15px; margin: 18px 0 0; max-width: 34ch; }

.auth-stats { margin-top: auto; padding-top: 40px; display: flex; gap: 40px; flex-wrap: wrap; }
.auth-stats .n { font-size: 26px; font-weight: 650; letter-spacing: -.02em; }
.auth-stats .k {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: #8fb2c6; margin-top: 6px; max-width: 17ch; line-height: 1.35;
}

.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 34px; background: var(--card); }
.auth-form .inner { width: 100%; max-width: 340px; }
.auth-form h2 { font-size: 25px; margin-bottom: 22px; }
.auth-form .foot { margin: 22px 0 0; font-size: 14px; color: var(--ink-faint); text-align: center; }

@media (max-width: 860px) {
  /* Brand panel sizes to its content; the form takes the rest of the screen.
     Without the explicit rows the panel stretches and leaves a dead gap. */
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: 100dvh; }
  .auth-brand { padding: 24px 22px 26px; }
  .auth-brand .rule { margin: 14px 0 18px; }
  .auth-brand h1 { font-size: 23px; max-width: none; }
  .auth-brand .sub, .auth-stats { display: none; }
  .auth-form { padding: 32px 22px 48px; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   Public agenda
   -------------------------------------------------------------------------- */
.pub-hero { background: var(--navy-deep); color: #fff; padding: 26px 20px 24px; }
.pub-hero .inner { max-width: 860px; margin: 0 auto; }
.pub-hero .club { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #9dc0d6; margin: 0 0 8px; }
.pub-hero h1 { font-size: 26px; margin: 0 0 6px; }
.pub-hero .when { color: #c3d6e3; font-size: 15px; margin: 0; }
.pub-hero .theme { margin: 14px 0 0; font-size: 17px; font-weight: 600; color: var(--yellow); }

main.pub { max-width: 860px; }

/* One agenda line. A grid rather than a table so it stays readable on a phone,
   which is where most members will open it. */
.agenda-list { margin: 0; }
.agenda-row {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 6px 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.agenda-row:last-child { border-bottom: 0; }
.agenda-row .t { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 650; font-size: 14px; white-space: nowrap; }
.agenda-row .what { font-size: 15.5px; color: var(--ink); font-weight: 550; }
.agenda-row .meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13.5px; margin-top: 2px; }
.agenda-row .role { color: var(--ink-faint); }
.agenda-row .who { color: var(--navy); font-weight: 650; }
.agenda-row.is-break { opacity: .62; }
.agenda-row.is-break .what { font-weight: 500; }

.speech {
  border: 1px solid var(--line);
  border-left: 3px solid var(--maroon);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--card);
}
.speech:last-child { margin-bottom: 0; }
.speech .who { font-size: 16px; font-weight: 650; color: var(--ink); }
.speech .title { font-size: 15px; color: var(--ink); margin-top: 3px; }
.speech .title em { color: var(--ink-soft); font-style: normal; }
.speech .line { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; }

.wod { background: var(--navy-wash); border-radius: var(--radius-sm); padding: 14px 16px; }
.wod .term { font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.wod .mean { font-size: 14.5px; color: var(--ink-soft); margin-top: 3px; }

/* Giving feedback — built for a thumb, standing at the back of the room. */
.pick {
  display: block; width: 100%; text-align: left; font: inherit; cursor: pointer;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 17px; margin-bottom: 10px;
}
.pick:hover { border-color: var(--navy); }
.pick .n { font-size: 16.5px; font-weight: 650; color: var(--ink); }
.pick .t { color: var(--ink-soft); font-size: 14.5px; margin-top: 2px; }
.pick .m { font-size: 13px; color: var(--ink-faint); margin-top: 7px; display: flex; gap: 12px; flex-wrap: wrap; }
.pick.done { background: var(--wash); }
.pick.done .n { color: var(--ink-soft); }

.crit { padding: 18px 0; border-bottom: 1px solid var(--line); }
.crit:first-child { padding-top: 4px; }
.crit:last-child { border-bottom: 0; padding-bottom: 4px; }
.crit h3 { font-size: 16px; }
.crit .help { font-size: 13.5px; color: var(--ink-soft); margin: 3px 0 0; }

.rate { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 11px; }
.rate button {
  flex: 1 1 82px; font: inherit; cursor: pointer; text-align: center;
  padding: 9px 6px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--card); color: var(--ink);
}
.rate button:hover { border-color: var(--navy); }
.rate button .v { display: block; font-size: 16px; font-weight: 700; line-height: 1.2; }
.rate button .l { display: block; font-size: 11px; color: var(--ink-soft); margin-top: 3px; line-height: 1.25; }
.rate button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.rate button[aria-pressed="true"] .l { color: rgba(255, 255, 255, .82); }
.crit.missing .rate button { border-color: var(--danger); }

.done-mark { color: var(--ok); font-weight: 650; }

/* Voting */
.pick.chosen { border-color: var(--navy); border-width: 2px; background: var(--navy-wash); }
.pick.chosen .n { color: var(--navy); }
.pick[disabled] { cursor: default; }
.pick .tick { float: right; color: var(--navy); font-weight: 700; }

.result-row { padding: 11px 0; border-bottom: 1px solid var(--line); }
.result-row:last-child { border-bottom: 0; }
.result-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.result-head .nm { color: var(--ink); }
.result-head .ct { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 14px; white-space: nowrap; }
.result-bar { height: 8px; background: var(--wash); border-radius: 99px; margin-top: 8px; overflow: hidden; }
.result-bar span { display: block; height: 100%; background: var(--navy); border-radius: 99px; transition: width .3s; }
.result-row.win .result-head .nm { font-weight: 700; }
.result-row.win .result-bar span { background: var(--maroon); }
.result-row.out { opacity: .55; }

.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); margin-right: 7px; vertical-align: middle;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Headline numbers. Not a chart — five single values have no shape to show. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile .n { font-size: 25px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-top: 5px; line-height: 1.3; }

/* One series, one hue, fixed 0–5 domain. The grid and the club-average marker
   stay recessive so the bars carry the reading. */
.cbar { display: grid; grid-template-columns: 118px 1fr 40px; gap: 12px; align-items: center; padding: 6px 0; }
.cbar .lab { font-size: 14px; color: var(--ink); }
.cbar .track { position: relative; height: 15px; background: var(--wash); border-radius: 4px; }
.cbar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--navy); border-radius: 4px; min-width: 3px; }
.cbar .ref { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--gray); border-radius: 2px; }
.cbar .val { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; color: var(--ink); }
.cbar-axis { display: grid; grid-template-columns: 118px 1fr 40px; gap: 12px; margin-top: 4px; }
.cbar-axis .marks { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.chart-note { font-size: 13px; color: var(--ink-soft); margin: 14px 0 0; display: flex; align-items: center; gap: 7px; }
.chart-note i { display: inline-block; width: 2px; height: 13px; background: var(--gray); border-radius: 2px; }

@media (max-width: 560px) {
  .cbar, .cbar-axis { grid-template-columns: 92px 1fr 36px; gap: 9px; }
  .cbar .lab { font-size: 13px; }
}

/* Reading feedback back */
.avg-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px;
}
.avg-row:last-child { border-bottom: 0; }
.avg-row .lbl { color: var(--ink); }
.avg-row .v { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy); }
.avg-row .v small { font-weight: 500; color: var(--ink-faint); margin-left: 3px; }

.entry { border-top: 1px solid var(--line); padding: 15px 0; }
.entry:first-of-type { border-top: 0; padding-top: 4px; }
.entry:last-of-type { padding-bottom: 2px; }
.entry .who { font-weight: 650; font-size: 14.5px; color: var(--ink); }
.entry .when { color: var(--ink-faint); font-size: 12.5px; margin-top: 1px; }
.entry .chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.entry .cmt {
  font-size: 14.5px; color: var(--ink); background: var(--wash);
  padding: 11px 13px; border-radius: var(--radius-sm); margin-top: 10px; white-space: pre-wrap;
}

/* Links and QR codes handed to the room */
.qr-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; width: 176px; margin: 0 auto 14px;
}
.qr-box svg { display: block; width: 100%; height: auto; }
.qr-url {
  font-size: 12.5px; color: var(--ink-faint); word-break: break-all;
  text-align: center; margin-bottom: 12px;
}

/* Full-screen for the projector, so a room of people can scan at once. */
.projector {
  position: fixed; inset: 0; z-index: 90;
  background: var(--navy-deep); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px; padding: 34px; text-align: center;
}
.projector h2 { font-size: clamp(26px, 5vw, 52px); letter-spacing: -.02em; }
.projector .sub { font-size: clamp(14px, 2vw, 21px); color: #b9d0de; }
.projector .qr-box { width: min(46vh, 66vw); padding: 16px; border: 0; margin: 0; }
.projector .u { font-size: clamp(12px, 1.5vw, 17px); color: #8fb2c6; word-break: break-all; }
.projector .close { position: absolute; top: 18px; right: 20px; }

.share-line {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  background: var(--wash); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 12px;
}
.share-line code {
  flex: 1 1 220px; min-width: 0; font-size: 12.5px; color: var(--ink-soft);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.meeting-link {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.meeting-link:last-child { border-bottom: 0; }
.meeting-link .n { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 650; font-size: 14px; min-width: 52px; }
.meeting-link .d { color: var(--ink); font-weight: 600; font-size: 15px; }
.meeting-link .th { color: var(--ink-soft); font-size: 14px; }
.meeting-link:hover .d { color: var(--navy); }

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .topbar, .page-actions, .no-print, .toast-host { display: none !important; }
  body { background: #fff; }
  main { max-width: none; padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

@media (max-width: 640px) {
  h1 { font-size: 21px; }
  main { padding: 18px 14px 80px; }
  .card { padding: 16px; }
  .topbar { padding: 0 14px; }
  .topbar-inner { min-height: 52px; gap: 10px; }
  .topbar nav { width: 100%; margin: 0 0 8px; overflow-x: auto; }
}
