/* LPC Accomplishment Reports
   Colours come from the college seal and letterhead: field green, leaf green, seal gold, seal red. */

:root {
  --green-900: #12401b;
  --green-700: #1f6b2a;
  --green-600: #24802f;
  --green-100: #e3f1de;
  --gold: #f2c230;
  --gold-100: #fcefc2;
  --gold-ink: #6b4e00;
  --red: #b3261e;
  --red-100: #fbe3e1;
  --ink: #18231c;
  --muted: #5a675e;
  --line: #d6ded3;
  --bg: #f3f6f1;
  --card: #ffffff;
  --radius: 8px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg);
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; }
a { color: var(--green-700); text-underline-offset: 2px; }
a:hover { color: var(--green-900); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; }
h1 { font-size: 1.65rem; font-weight: 750; letter-spacing: -0.01em; }
h2 { font-size: 1.1rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .75rem; }
code { font-size: .9em; background: #eef2ec; padding: 1px 5px; border-radius: 4px; }
pre.code { background: #eef2ec; padding: 12px; border-radius: var(--radius); overflow-x: auto; font-size: 13px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.muted { color: var(--muted); }
.small { font-size: .875rem; }
.text-alert { color: var(--red); }
.text-ok { color: var(--green-700); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--green-900);
  color: #fff;
  border-bottom: 4px solid var(--gold);
}
.topbar-inner {
  max-width: 1180px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand:hover { color: #fff; }
.brand img { width: 40px; height: 40px; border-radius: 50%; background: #fff; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 1rem; }
.brand-app { font-size: .82rem; color: #cfe3c9; }

.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav a {
  color: #e9f1e6; text-decoration: none; padding: 8px 10px; border-radius: 6px;
  border-bottom: 3px solid transparent;
}
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); border-radius: 6px 6px 0 0; }
.nav-spacer { flex: 1; }
.nav-user { display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.nav-user small { color: #b9d3b2; font-size: .75rem; }
.nav-logout button {
  font: inherit; font-size: .9rem; color: #fff; cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; padding: 6px 10px;
}
.nav-logout button:hover { background: rgba(255,255,255,.1); }
.menu-toggle { display: none; }

@media (max-width: 820px) {
  .js .menu-toggle {
    display: inline-block; margin-left: auto;
    font: inherit; font-weight: 600; color: var(--green-900); background: var(--gold);
    border: 0; border-radius: 6px; padding: 7px 14px; cursor: pointer;
  }
  .nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding-top: 6px; }
  .js .nav:not(.is-open) { display: none; }
  .nav a { padding: 10px; }
  .nav a[aria-current="page"] { border-bottom: 0; border-left: 4px solid var(--gold); border-radius: 0 6px 6px 0; }
  .nav-spacer { display: none; }
  .nav-user { text-align: left; border-top: 1px solid rgba(255,255,255,.15); margin-top: 6px; padding-top: 12px !important; }
  .nav-logout { padding: 4px 10px 8px; }
}

/* ---------- Page ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 24px 16px; }
.sitefoot { padding-top: 0; color: var(--muted); font-size: .8rem; }

.page-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px;
  margin-bottom: 20px;
}
.page-head > div:first-child { min-width: 0; max-width: 760px; }
.page-head p { margin: 0; }
.crumbs { font-size: .875rem; color: var(--muted); margin-bottom: 4px !important; }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.panel.narrow { max-width: 560px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.panel-head h2 { margin: 0; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.layout-2 > .panel { margin-bottom: 0; }
.layout-2 + .layout-2, .layout-2 + .panel, .panel + .layout-2 { margin-top: 16px; }
.layout-2 > div > .panel:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .layout-2 { grid-template-columns: 1fr; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2;
  padding: 10px 16px; min-height: 42px;
  color: var(--green-900); background: #fff;
  border: 1px solid #b9c6b5; border-radius: 6px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: #f1f6ef; color: var(--green-900); }
.btn-primary { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-900); border-color: var(--green-900); color: #fff; }
.btn-alert { color: var(--red); border-color: #e2b4b0; }
.btn-alert:hover { background: var(--red-100); color: var(--red); }
.btn-small { padding: 6px 12px; min-height: 34px; font-size: .875rem; }
.btn-block { width: 100%; }
.link-btn {
  font: inherit; font-size: .875rem; background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: var(--green-700); text-decoration: underline; text-underline-offset: 2px;
}
.link-btn.text-alert { color: var(--red); }

/* ---------- Forms ---------- */
.form fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.form legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.field { margin-bottom: 14px; min-width: 0; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.field small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; }
.field .static { margin: 0; padding: 9px 0; }
input[type=text], input:not([type]), input[type=email], input[type=password], input[type=number],
input[type=date], input[type=month], select, textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  background: #fff;
  border: 1px solid #b9c6b5; border-radius: 6px;
  padding: 9px 10px; min-height: 42px;
}
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--green-700); }
input[type=file] { font: inherit; font-size: .9rem; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: .95rem; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green-700); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.span-2 { grid-column: 1 / -1; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
@media (max-width: 600px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.form .check input[type=radio] { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--green-700); }
.auth-card ol { padding-left: 20px; }
.auth-card ol li { margin-bottom: 6px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.inline { display: inline; }
.inline select { min-height: 34px; padding: 4px 8px; width: auto; }

.period-picker { display: flex; align-items: center; gap: 8px; }
.period-picker label { font-size: .875rem; color: var(--muted); font-weight: 600; }
.period-picker input { width: auto; min-height: 42px; }

/* ---------- Messages ---------- */
.flash { padding: 12px 14px; border-radius: 6px; margin-bottom: 12px; border-left: 4px solid; background: #fff; }
.flash-success { border-color: var(--green-700); background: var(--green-100); }
.flash-info { border-color: var(--gold); background: var(--gold-100); }
.flash-error { border-color: var(--red); background: var(--red-100); }
.callout { padding: 14px 16px; border-radius: var(--radius); margin-bottom: 16px; border: 1px solid; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout ul { margin: 8px 0 0; padding-left: 20px; }
.callout-alert { background: var(--red-100); border-color: #efc2be; }
.callout-alert strong { color: #7d1a15; }
.empty { text-align: center; padding: 48px 16px; max-width: 520px; margin: 0 auto; }
.empty h1, .empty h2 { margin-bottom: 8px; }

/* ---------- Status badges ---------- */
.badge {
  display: inline-block; white-space: nowrap;
  font-size: .78rem; font-weight: 650; line-height: 1;
  padding: 5px 9px; border-radius: 999px;
  background: #eceeea; color: #3e4741;
}
.badge-submitted { background: var(--gold-100); color: var(--gold-ink); }
.badge-returned { background: var(--red-100); color: #8e1c16; }
.badge-received_head { background: var(--green-100); color: var(--green-700); }
.badge-received_president { background: var(--green-700); color: #fff; }

/* ---------- Lists of reports ---------- */
.month-group { margin-bottom: 28px; }
.month-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; border-bottom: 2px solid var(--green-700); padding-bottom: 6px; margin-bottom: 4px; }
.month-head h2 { margin: 0; font-size: 1.2rem; }
.month-print { margin-left: auto; }
.report-list { list-style: none; margin: 0; padding: 0; }
.report-list li {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line);
}
.report-list li:last-child { border-bottom: 0; }
.report-link { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 12px 0; text-decoration: none; color: var(--ink); }
.report-link:hover .report-subject { text-decoration: underline; }
.report-subject { font-weight: 650; color: var(--green-900); }
.go { font-size: .875rem; font-weight: 600; color: var(--green-700); }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mini-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }

/* ---------- Tally strip ---------- */
.tally {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.tally > div { padding: 14px 18px; border-left: 1px solid var(--line); }
.tally > div:first-child { border-left: 0; }
.tally dt { font-size: .85rem; color: var(--muted); font-weight: 600; }
.tally dd { margin: 2px 0 0; font-size: 2rem; font-weight: 750; line-height: 1.1; color: var(--green-900); }
.tally dd small { font-size: .85rem; font-weight: 500; color: var(--muted); }
.tally dd.is-hot { color: var(--gold-ink); box-shadow: inset 0 -4px 0 var(--gold); display: inline-block; }
.tally dd.is-alert { color: var(--red); }
@media (max-width: 760px) {
  .tally { grid-template-columns: 1fr 1fr; }
  .tally > div:nth-child(3) { border-left: 0; }
  .tally > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .8rem; color: var(--muted); font-weight: 650; border-bottom: 2px solid var(--line); vertical-align: bottom; }
.table .num, .num { text-align: right; }
.table tr.is-inactive td { opacity: .6; }
.row-actions { white-space: nowrap; display: flex; gap: 14px; align-items: center; }

.watch .bar-col { width: 34%; min-width: 150px; }
.bar {
  position: relative; display: inline-block; vertical-align: middle;
  width: calc(100% - 3.2em); height: 10px; border-radius: 5px; background: #e9ede7;
}
.bar > span { position: absolute; inset: 0 auto 0 0; width: var(--v); border-radius: 5px; background: var(--red); }
.bar::after { content: ""; position: absolute; top: -3px; bottom: -3px; left: var(--t); width: 2px; background: var(--ink); opacity: .45; }
.bar-num { display: inline-block; width: 3em; text-align: right; font-weight: 650; }

/* On-screen tracking matrix */
.matrix { border-collapse: collapse; width: 100%; font-size: .9rem; }
.matrix th, .matrix td { border: 1px solid var(--line); padding: 7px 8px; }
.matrix thead th { background: #f1f5ef; font-size: .78rem; font-weight: 700; text-align: center; vertical-align: bottom; }
.matrix thead th.wk span { display: block; font-weight: 500; color: var(--muted); }
.matrix thead th:nth-child(-n+4) { text-align: left; }
.matrix tbody th { text-align: left; white-space: nowrap; }
.matrix td small { display: block; font-size: .72rem; color: var(--muted); }
.matrix td.is-low { background: var(--red-100); }
.matrix td.is-low small { color: var(--red); font-weight: 650; }
.matrix td.off { text-align: center; color: var(--muted); font-size: .78rem; font-weight: 650; background: #f7f8f6; }
.matrix .blank { color: var(--red); font-weight: 700; }

/* ---------- Routing slip (stamps) ---------- */
.slip {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.stamp {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  padding: 12px 14px;
  border: 2px dashed #bfc9bc; border-radius: 6px;
  color: var(--muted); background: rgba(255,255,255,.6);
}
.stamp-role { font-size: .78rem; font-weight: 650; }
.stamp-name { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.stamp-verb { font-size: .85rem; }
.stamp-done {
  border: 3px double var(--green-700); color: var(--green-700); background: #fff;
  transform: rotate(-0.8deg);
}
.stamp-done:nth-child(2) { transform: rotate(0.6deg); }
.stamp-done:nth-child(3) { transform: rotate(-0.4deg); }
.stamp-done .stamp-verb { font-weight: 750; letter-spacing: .02em; }
.stamp-alert { border: 3px double var(--red); color: var(--red); background: #fff; transform: rotate(-0.8deg); }
.stamp-alert .stamp-verb { font-weight: 750; }
@media (max-width: 640px) { .slip { grid-template-columns: 1fr; } .stamp, .stamp-done, .stamp-alert { transform: none !important; } }
@media (prefers-reduced-motion: reduce) { .stamp { transform: none !important; } }

/* ---------- Report view ---------- */
.prose p { overflow-wrap: anywhere; }
.prose h3 { margin-top: 14px; }
.prose h3:first-of-type { margin-top: 0; }
.review-panel { border: 2px solid var(--gold); }
.inline-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 16px; }
.files { list-style: none; padding: 0; margin: 0 0 12px; }
.files li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 14px 6px; display: flex; flex-direction: column; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #9fb09a; }
.timeline li.tl-received_head::before, .timeline li.tl-received_president::before { background: var(--green-700); border-color: var(--green-700); }
.timeline li.tl-returned::before { background: var(--red); border-color: var(--red); }
.timeline li.tl-submitted::before, .timeline li.tl-resubmitted::before { background: var(--gold); border-color: var(--gold-ink); }
.tl-what { font-weight: 650; }
.timeline blockquote { margin: 6px 0 0; padding: 8px 10px; background: #f4f6f2; border-radius: 6px; font-size: .9rem; }

/* ---------- Report form ---------- */
.week { border-top: 1px solid var(--line) !important; padding-top: 14px !important; }
.week:first-of-type { border-top: 0 !important; padding-top: 0 !important; }
.week legend { float: left; width: 100%; margin-bottom: 6px; color: var(--green-900); }
.week-dates { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 12px; clear: both; }
.week-dates .field { width: 170px; }
.week-dates .link-btn { margin: 0 0 22px auto; }

.class-card {
  border: 1px solid var(--line) !important; border-radius: var(--radius);
  padding: 14px !important; margin-bottom: 14px !important; background: #fbfcfa;
}
.class-card legend { padding: 0 6px !important; color: var(--green-900); font-size: 1.05rem; }
.class-fields { display: grid; grid-template-columns: 1.1fr .8fr 1fr 1.3fr; gap: 0 12px; }
@media (max-width: 700px) { .class-fields { grid-template-columns: 1fr 1fr; } }
.week-grid { border-collapse: collapse; width: 100%; margin-bottom: 6px; font-size: .92rem; }
.lbl-short { display: none; }
.week-grid th, .week-grid td { padding: 6px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.week-grid thead th { font-size: .78rem; color: var(--muted); font-weight: 650; }
.week-grid tbody th { font-weight: 650; white-space: nowrap; }
.week-grid tbody th span { display: block; font-weight: 400; font-size: .78rem; }
.week-grid td.num, .week-grid th.num { text-align: right; }
.week-grid input[type=number] { width: 6em; text-align: right; }
.week-grid select { min-width: 9.5em; }
.week-grid tr.is-off input { background: #f1f3ef; }
.week-grid input.is-over { border-color: var(--red); background: var(--red-100); }
.rate { display: inline-block; min-width: 3em; font-weight: 650; color: var(--muted); font-size: .85rem; }
.rate.is-low { color: var(--red); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.chip {
  font: inherit; font-size: .82rem; text-align: left; cursor: pointer;
  background: var(--green-100); color: var(--green-900);
  border: 1px solid #c4dcbc; border-radius: 999px; padding: 6px 12px;
}
.chip:hover { background: #d4e9cc; }
.chip.is-used { background: #fff; color: var(--muted); border-style: dashed; }

.implicit-submit { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.action-bar {
  position: sticky; bottom: 0; z-index: 4;
  margin: 0 -16px; padding: 10px 16px;
  background: rgba(243, 246, 241, .96); border-top: 1px solid var(--line);
  backdrop-filter: blur(4px);
}
.action-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.action-bar-inner [data-save-state] { margin-right: auto; }
.action-bar-inner [data-save-state].is-dirty { color: var(--gold-ink); font-weight: 600; }
@media (max-width: 520px) {
  .action-bar-inner [data-save-state] { flex-basis: 100%; }
  .action-bar-inner .btn { flex: 1; }
}
.danger-zone { margin-top: 18px; text-align: right; }

@media (max-width: 600px) {
  .wrap { padding: 18px 12px; }
  .panel { padding: 14px; }
  .class-card { padding: 10px !important; }
  .week-grid { font-size: .85rem; }
  .week-grid th, .week-grid td { padding: 5px 3px; }
  .week-grid thead th { font-size: .72rem; }
  .week-grid select { min-width: 0; width: 100%; padding: 6px 2px; font-size: .85rem; }
  .week-grid input[type=number] { width: 3.4em; padding: 6px 4px; }
  .rate { min-width: 0; font-size: .75rem; }
  .lbl-long { display: none; }
  .lbl-short { display: inline; }
  .action-bar { margin: 0 -12px; padding: 8px 12px; }

  /* low-attendance list becomes stacked rows */
  .watch thead { display: none; }
  .watch, .watch tbody { display: block; }
  .watch tr {
    display: grid; grid-template-columns: 1fr auto; gap: 2px 12px;
    grid-template-areas: "cls wk" "subj subj" "bar num";
    padding: 12px 0; border-bottom: 1px solid var(--line);
  }
  .watch td { display: block; border: 0; padding: 0; text-align: left; }
  .watch td:nth-child(1) { grid-area: cls; }
  .watch td:nth-child(2) { grid-area: subj; }
  .watch td:nth-child(3) { grid-area: wk; }
  .watch td:nth-child(4) { grid-area: num; align-self: center; }
  .watch td:nth-child(5) { grid-area: bar; width: auto; min-width: 0; align-self: center; }
}

/* ---------- Sign in and installer ---------- */
.page-auth { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 24px; background: var(--green-900); }
.auth-card {
  width: 100%; max-width: 440px; background: #fff; border-radius: 10px; padding: 26px 26px 20px;
  border-top: 6px solid var(--gold);
}
.auth-wide { max-width: 680px; }
.auth-letterhead { display: block; width: 100%; max-width: 340px; height: auto; margin: 0 0 20px; }
.auth-card h1 { font-size: 1.45rem; }
.auth-card fieldset { border-top: 1px solid var(--line); padding-top: 12px; }

/* ---------- Twice-a-month report (v2) ---------- */
.todo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 12px 16px; margin-bottom: 10px;
  background: var(--gold-100); border: 1px solid #ecd78f; border-radius: var(--radius);
}
.todo div { display: flex; flex-direction: column; }
.todo.is-late { background: var(--red-100); border-color: #efc2be; }
.todo form { margin: 0; }

.week-block { padding-top: 14px; }
.week-head {
  display: grid; grid-template-columns: minmax(0, 220px) 1fr auto;
  gap: 0 12px; align-items: end;
  padding-bottom: 6px; margin-bottom: 12px; border-bottom: 2px solid var(--green-700);
}
.week-head .field { margin-bottom: 8px; }
.week-head select { font-weight: 700; color: var(--green-900); }
.week-head .link-btn { margin-bottom: 18px; }

.entry {
  border: 1px solid var(--line) !important; border-left: 4px solid var(--green-600) !important;
  border-radius: var(--radius); padding: 12px 14px 8px !important; margin: 0 0 12px !important; background: #fbfcfa;
}
.entry legend { padding: 0 6px !important; font-weight: 700; color: var(--green-900); }
.entry.is-off { border-left-color: #b9c2b6 !important; background: #f6f7f5; }
.entry.is-off .entry-held { display: none; }
.entry-top { display: grid; grid-template-columns: 1.1fr 1fr 1fr 0.9fr 0.6fr; gap: 0 10px; }
.entry-mid { display: grid; grid-template-columns: 1.6fr 0.8fr 0.8fr 0.7fr; gap: 0 10px; align-items: end; }
.entry .field { margin-bottom: 10px; }
.entry textarea { min-height: 0; }
.rate-field .label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; color: var(--muted); }
.rate-field .rate { display: block; padding: 10px 0; font-size: 1rem; }
.entry-actions { display: flex; gap: 18px; justify-content: flex-end; border-top: 1px dashed var(--line); padding-top: 6px; }
.pick-field .picker {
  min-height: 34px; padding: 4px 8px; margin-bottom: 4px; font-size: .85rem;
  background: var(--green-100); border-color: #c4dcbc; color: var(--green-900);
}
html:not(.js) .picker { display: none; }
@media (max-width: 860px) {
  .entry-top { grid-template-columns: 1fr 1fr; }
  .entry-mid { grid-template-columns: 1fr 1fr; }
  .week-head { grid-template-columns: 1fr auto; }
}

.week-matrix + .week-matrix { margin-top: 18px; }
.week-matrix h3 { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; color: var(--green-900); }
.matrix-rows { font-size: .86rem; min-width: 1100px; }
.matrix-rows thead th { text-align: left; }
.matrix-rows tbody th { white-space: normal; min-width: 110px; }
.matrix-rows tbody th span { display: block; font-weight: 500; }
.matrix-rows td.text { min-width: 140px; vertical-align: top; }
.matrix-rows td { vertical-align: top; }

/* Submission monitor */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0 14px; align-items: flex-end; padding: 14px 16px; }
.filter-bar .field { margin-bottom: 0; min-width: 160px; }
.filter-bar .btn { margin-bottom: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 0 0 12px; color: var(--muted); }
.sub-state { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: .8rem; font-weight: 650; }
.sub-received { background: var(--green-700); color: #fff; }
.sub-submitted { background: var(--gold-100); color: var(--gold-ink); }
.sub-returned { background: #fde7d9; color: #8a3b12; }
.sub-missing, .sub-missing_draft { background: var(--red-100); color: #8e1c16; }
.sub-draft, .sub-pending { background: #eceeea; color: #4b554e; }
.late-tag { display: inline-block; font-size: .7rem; font-weight: 750; color: var(--red); border: 1px solid currentColor; border-radius: 4px; padding: 0 4px; }
.monitor-panel { padding: 0; overflow: hidden; }
.monitor { border-collapse: collapse; width: 100%; font-size: .86rem; }
.monitor th, .monitor td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.monitor thead th { background: #f1f5ef; font-size: .78rem; vertical-align: bottom; white-space: nowrap; }
.monitor thead th span { display: block; font-weight: 500; color: var(--muted); }
.monitor thead th a { color: var(--green-900); }
.monitor .m-name { position: sticky; left: 0; background: #fff; min-width: 180px; z-index: 1; }
.monitor thead .m-name { background: #f1f5ef; }
.monitor .m-group th { background: #f7f9f6; color: var(--green-900); font-size: .82rem; }
.monitor .m-cell { min-width: 96px; border-left: 1px solid var(--line); font-weight: 600; }
.monitor .m-cell a { color: inherit; }
.monitor .m-cell.sub-received { background: #e5f2e1; color: var(--green-700); }
.monitor .m-cell.sub-submitted { background: #fdf6dc; color: var(--gold-ink); }
.monitor .m-cell.sub-returned { background: #fdf0e7; color: #8a3b12; }
.monitor .m-cell.sub-missing, .monitor .m-cell.sub-missing_draft { background: #fcecea; color: #8e1c16; }
.monitor .m-cell.sub-draft, .monitor .m-cell.sub-pending { background: #fff; color: var(--muted); font-weight: 500; }
.monitor .m-date { display: block; font-weight: 500; font-size: .75rem; opacity: .85; }
.monitor .m-total { font-weight: 700; white-space: nowrap; }
.monitor .m-total.has-missing { color: var(--red); }
.monitor tfoot td, .monitor tfoot th { background: #f7f9f6; font-weight: 700; }
@media print {
  .topbar, .sitefoot, .no-print { display: none !important; }
  body { background: #fff; }
  .wrap { max-width: none; padding: 0; }
  .monitor-panel { border: 0; }
  .monitor .m-name { position: static; }
  .table-scroll { overflow: visible; }
  .monitor { font-size: 8pt; }
  .monitor th, .monitor td { padding: 3pt 4pt; }
  @page { size: landscape; margin: 12mm; }
}

/* Submitted confirmation with print button (v2.1) */
.submitted-note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  padding: 14px 16px; margin-bottom: 16px;
  background: var(--green-100); border: 1px solid #c4dcbc; border-radius: var(--radius);
}
.submitted-note div { display: flex; flex-direction: column; }
.submitted-note strong { color: var(--green-900); }
.report-list .print-link { margin-left: 4px; }

/* Required items left blank, after a submit attempt (v2.2) */
input.is-missing, select.is-missing, textarea.is-missing {
  border: 2px solid var(--red);
  background: #fff7f6;
}
input.is-missing:focus, select.is-missing:focus, textarea.is-missing:focus { border-color: var(--red); }
.field-error, .field small.field-error { display: block; margin-top: 3px; color: var(--red); font-weight: 650; font-size: .8rem; }
p.field-error { font-size: .9rem; }
.entry.has-missing { border-left-color: var(--red) !important; background: #fffbfa; }
.week-block.has-missing { border-color: #efc2be; }
.needs {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: .72rem; font-weight: 700; vertical-align: middle;
}
#issues ul a { color: #7d1a15; }

/* Daily time record (v2.5) */
.table-scroll { position: relative; } /* keeps visually hidden labels inside the scroll box on phones */
input[type=time] {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #b9c6b5; border-radius: 6px; padding: 9px 10px; min-height: 42px;
}
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 12px; }
@media (max-width: 760px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
.clock-panel { border-top: 4px solid var(--green-700); }
.clock-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 4px 20px; margin-bottom: 14px; }
.clock-head h2 { margin-bottom: 2px; }
.clock-head p { margin: 0; }
.clock { font-size: 2.4rem; font-weight: 750; line-height: 1; color: var(--green-900); letter-spacing: -0.02em; }
.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.slot {
  display: flex; flex-direction: column; gap: 6px; min-height: 104px;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fafbf9;
}
.slot-label { font-size: .85rem; font-weight: 650; color: var(--muted); }
.slot-time { font-size: 1.5rem; font-weight: 750; color: var(--green-900); line-height: 1.1; }
.slot .btn { margin-top: auto; width: 100%; white-space: normal; }
.slot.is-next { border: 2px solid var(--green-700); background: #fff; }
.slot.is-done { background: var(--green-100); border-color: #c4dcbc; }
.edited-tag {
  display: inline-block; align-self: flex-start; font-size: .7rem; font-weight: 700; line-height: 1.3;
  color: var(--gold-ink); background: var(--gold-100); border-radius: 4px; padding: 0 5px; vertical-align: 1px;
}
@media (max-width: 760px) { .slot-grid { grid-template-columns: 1fr 1fr; } }
.month-nav { display: flex; gap: 16px; font-size: .9rem; }
.dtr-table th[scope=row] { white-space: nowrap; font-weight: 650; }
.dtr-table td, .dtr-table th { padding: 7px 10px; }
.dtr-table td { white-space: nowrap; }
.dtr-table tr.is-weekend th, .dtr-table tr.is-weekend td { background: #f6f7f5; color: var(--muted); }
.dtr-table tr.is-today th[scope=row] { box-shadow: inset 4px 0 0 var(--gold); }
.dtr-table tr.is-today th, .dtr-table tr.is-today td { background: #fffbea; }
.dtr-table tr:target th, .dtr-table tr:target td { background: #fff4c7; }
.dtr-note-row { text-align: center; letter-spacing: .06em; font-weight: 600; color: var(--green-900); }
.day-form { white-space: normal; padding: 6px 0; }
.day-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 12px; }
@media (max-width: 860px) { .day-grid { grid-template-columns: 1fr 1fr; } }
.table .group-row { background: #f7f9f6; color: var(--green-900); font-size: .85rem; }

/* Arrival and departure in each class row, for the DTR (v2.7) */
.entry-time {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(170px, 1.3fr); gap: 0 12px; align-items: start;
  margin: 2px 0 12px; padding: 10px 12px 0; background: #fff; border: 1px dashed #c9d6c4; border-radius: 6px;
}
.entry-time .field { margin-bottom: 10px; }
.entry-time input { min-height: 38px; padding: 6px 8px; }
.entry-time-note { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 24px 0 10px; line-height: 1.3; }
.entry.is-off .entry-time { opacity: .85; }
.source-panel p { max-width: 70ch; }
.source-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.source-switch { margin: 8px 0 0; }
@media (max-width: 760px) {
  .entry-time { grid-template-columns: 1fr 1fr; }
  .entry-time-note { grid-column: 1 / -1; padding-top: 0; }
}

/* A report's DTR typed by hand (report_dtr, v2.8) */
.time-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 12px; }
.time-head, .time-day {
  display: grid; grid-template-columns: minmax(130px, 1.3fr) repeat(4, minmax(0, 1fr)) minmax(0, 1.4fr);
  gap: 8px; align-items: start;
}
.time-head { font-size: .8rem; font-weight: 650; color: var(--muted); padding: 0 8px 6px; border-bottom: 2px solid var(--line); }
.time-day { padding: 8px; border-bottom: 1px solid var(--line); }
.time-day .field { margin: 0; }
.time-day .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.time-day input { min-height: 38px; padding: 6px 8px; }
.time-date { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
.time-date .small { line-height: 1.3; }
.time-day.is-weekend { background: #f6f7f5; }
.time-day.is-weekend .time-date strong { color: var(--muted); }
.time-day.has-missing { background: #fdf3f2; box-shadow: inset 4px 0 0 var(--red); }
.time-day:focus { outline: 2px solid var(--green-700); outline-offset: -2px; }
.how-tag { align-self: flex-start; font-size: .72rem; font-weight: 650; line-height: 1.4; padding: 0 6px; border-radius: 4px; background: #eef2ec; color: var(--muted); }
.how-tag.how-hand { background: var(--gold-100); color: var(--gold-ink); }
.how-tag.how-rows { background: var(--green-100); color: var(--green-900); }
@media (max-width: 760px) {
  .time-head { display: none; }
  .time-day { grid-template-columns: 1fr 1fr; padding: 12px 4px; }
  .time-date { grid-column: 1 / -1; padding-top: 0; }
  .time-day .field label { position: static; width: auto; height: auto; clip: auto; font-size: .8rem; }
  .time-day .field:last-child { grid-column: 1 / -1; }
}
.time-date .link-btn { align-self: flex-start; text-align: left; padding: 0; }
.week-head .link-btn { justify-self: end; }
.span-pick { max-width: 320px; }
.day-grid .field[hidden] { display: none; }
.create-dtr { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 12px; padding: 12px; margin: 0 0 14px; background: #f7f9f6; border: 1px solid var(--line); border-radius: var(--radius); }
.create-dtr .field { margin: 0; min-width: 240px; }
.create-dtr p { flex-basis: 100%; margin: 4px 0 0; }
.table th[scope=row] .small { font-weight: 400; }

/* Add many users (v3.1) */
.mono-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; white-space: pre; overflow-x: auto; tab-size: 16; }
.bulk-table td { vertical-align: top; }
.bulk-table tr.bulk-alert td { background: #fdf3f2; }
.bulk-table tr.bulk-muted td { color: var(--muted); }
.bulk-table tr.bulk-warn td:last-child { color: var(--gold-ink); }
.preview-cols { margin-top: 10px; }
.preview-cols summary { cursor: pointer; font-weight: 600; color: var(--green-900); }
.filter-bar.plain { padding: 0; margin: 0 0 12px; background: none; border: 0; box-shadow: none; }
.day-tools { display: flex; gap: 8px; align-items: baseline; margin-top: 2px; }
.dtr-table tfoot th, .dtr-table tfoot td { border-top: 2px solid var(--line); text-align: right; }

/* How to use (guide, v3.3): open to everyone, no sign-in */
.guide { page: guide; max-width: 1040px; }
.guide-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 8px; }
.guide-date {
  display: flex; flex-direction: column; gap: 1px;
  padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.guide-date.is-now { border-left: 6px solid var(--gold); }
.guide-date strong { color: var(--green-900); font-size: 1.08rem; }
.guide-date .due { font-weight: 650; }
.guide-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 20px; }
.guide-toc { position: sticky; top: 16px; font-size: .92rem; }
.guide-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.guide-toc a {
  display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent;
  color: var(--muted); text-decoration: none;
}
.guide-toc a:hover { color: var(--green-900); border-left-color: var(--green-600); }
.guide-toc a.is-current { color: var(--green-900); font-weight: 650; border-left-color: var(--gold); }
.guide-sheet { padding: 4px 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.guide-section { padding: 26px 0 18px; border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.guide-section:first-child { border-top: 0; }
.guide-section h2 { font-size: 1.35rem; color: var(--green-900); margin-bottom: 12px; }
.guide-section h3 { margin: 20px 0 6px; }
.guide-section p, .guide-section li, .guide-section dd { max-width: 70ch; }
.ui {
  padding: 1px 7px; border: 1px solid #b7c6b2; border-radius: 5px; background: #f6f9f5;
  color: var(--green-900); font-weight: 650; font-size: .9em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 14px; }
.steps > li { counter-increment: step; position: relative; padding-left: 42px; margin-bottom: 14px; min-height: 28px; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-700); color: #fff; font-weight: 700; font-size: .88rem;
}
.steps ul, .guide-list { padding-left: 20px; margin: 6px 0 0; }
.steps ul li, .guide-list li { margin-bottom: 6px; }
.guide-note { padding: 10px 14px; background: var(--gold-100); border-radius: var(--radius); color: #3d2e00; }
.route { list-style: none; display: flex; gap: 30px; padding: 0; margin: 20px 0 16px; }
.route li {
  flex: 1; position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px; background: #f5f8f3; border-top: 4px solid var(--green-700); border-radius: 0 0 6px 6px;
}
.route li strong { color: var(--green-900); }
.route li span { font-size: .9rem; color: var(--muted); line-height: 1.35; }
.route li + li::before {
  content: ""; position: absolute; left: -23px; top: 50%; width: 12px; height: 12px;
  border-top: 3px solid var(--gold-ink); border-right: 3px solid var(--gold-ink);
  transform: translateY(-50%) rotate(45deg);
}
.status-list { margin: 8px 0 12px; }
.status-list > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid #e7ece5; }
.status-list > div:first-child { border-top: 0; }
.status-list dt { font-weight: 650; }
.status-list dd { margin: 0; }
.account-list > div { grid-template-columns: 120px minmax(0, 1fr); }
.print-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.print-pair h3 { margin-top: 4px; }
.print-settings { margin: 0 0 12px; }
.print-settings > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; padding: 5px 0; border-top: 1px solid #e7ece5; }
.print-settings dt { color: var(--muted); }
.print-settings dd { margin: 0; font-weight: 650; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--green-900); }
.faq details p { margin: 8px 0 0; }
.sitefoot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.sitefoot a { color: inherit; }
.auth-help { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 16px 0 0; font-size: .92rem; }
@media (max-width: 860px) {
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .guide-toc { position: static; }
  .guide-toc ol { display: flex; flex-wrap: wrap; gap: 2px 18px; border-left: 0; }
  .guide-toc a { padding: 4px 0; margin: 0; border-left: 0; color: var(--green-700); text-decoration: underline; }
  .guide-toc a.is-current { font-weight: 400; }
  .print-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .guide-dates { grid-template-columns: minmax(0, 1fr); }
  .guide-sheet { padding: 0 18px; }
  .route { flex-direction: column; gap: 30px; }
  .route li + li::before { left: 22px; top: -25px; transform: rotate(135deg); }
  .status-list > div, .account-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .print-settings > div { grid-template-columns: 130px minmax(0, 1fr); }
}
@page guide { size: portrait; margin: 14mm; }
@media print {
  .guide-toc, .guide .head-actions { display: none; }
  .guide-layout { display: block; }
  .guide-sheet { border: 0; padding: 0; max-width: none; }
  .faq details { break-inside: avoid; }
}

/* Suggestions (v3.3): anyone signed in sends, administrators read */
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.check-help { margin: -4px 0 14px 35px; }
.badge-s-new { background: var(--gold-100); color: var(--gold-ink); }
.badge-s-planned { background: var(--green-100); color: var(--green-700); }
.badge-s-done { background: var(--green-700); color: #fff; }
.badge-s-declined { background: #f1f2f0; color: var(--muted); }
.sent-list { list-style: none; margin: 0; padding: 0; }
.sent-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.sent-list li:first-child { border-top: 0; padding-top: 4px; }
.sent-list p { margin: 6px 0 0; overflow-wrap: anywhere; }
.sent-head, .suggestion-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.status-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.status-tabs a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--green-900); text-decoration: none; font-size: .9rem;
}
.status-tabs a span { color: var(--muted); font-size: .82rem; }
.status-tabs a:hover { background: #f1f6ef; }
.status-tabs a[aria-current="page"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.status-tabs a[aria-current="page"] span { color: #d7ead2; }
.suggestion { padding: 16px 0 16px 0; border-top: 1px solid var(--line); }
.suggestion:first-child { border-top: 0; padding-top: 4px; }
.suggestion.is-new { padding-left: 14px; box-shadow: inset 4px 0 0 var(--gold); }
.suggestion-from { margin: 4px 0 8px; }
.suggestion-text { max-width: 75ch; margin: 0 0 12px; overflow-wrap: anywhere; }
.suggestion-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.suggestion-actions form { display: inline-flex; align-items: center; gap: 6px; }
.sender-line { margin: 0 0 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.narrow-note { max-width: 560px; }

/* Your signature (v3.4): Account page */
html:not(.js) .needs-js { display: none; }
.sig-preview {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  min-height: 130px; margin: 6px 0 12px; padding: 12px 16px 8px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.sig-preview img { max-height: 84px; max-width: 80%; margin-bottom: -10px; }
.sig-preview span { min-width: 60%; padding-top: 4px; border-top: 1.5px solid #222; text-align: center; font-weight: 650; font-size: .9rem; }
.sig-replace { margin-top: 14px; }
.sig-replace > summary { cursor: pointer; font-weight: 650; color: var(--green-900); margin-bottom: 10px; }
.sig-tabs { display: inline-flex; gap: 4px; padding: 3px; margin: 4px 0 12px; background: #eef2ec; border-radius: 8px; }
.sig-tabs button { font: inherit; font-size: .92rem; padding: 6px 14px; border: 0; border-radius: 6px; background: transparent; color: var(--green-900); cursor: pointer; }
.sig-tabs button[aria-selected="true"] { background: var(--card); box-shadow: 0 1px 2px rgba(18, 64, 27, .18); font-weight: 650; }
.sig-pad { position: relative; aspect-ratio: 5 / 2; background: #fff; border: 1px dashed #9fb39a; border-radius: var(--radius); overflow: hidden; }
.sig-pad::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 26%; border-top: 1.5px solid #c9d3c6; pointer-events: none; }
.sig-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; z-index: 1; }
.sig-pad-hint { position: absolute; left: 8%; bottom: calc(26% + 6px); color: #a3b0a0; font-size: .9rem; pointer-events: none; }
.has-ink .sig-pad-hint { display: none; }
.sig-pad-bar { display: flex; align-items: center; gap: 8px; margin: 8px 0 4px; }
.sig-pad-bar [data-sig-clear] { margin-left: auto; }
.pen { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #b8c4b4; cursor: pointer; padding: 0; }
.pen-black { background: #141414; }
.pen-blue { background: #1c3a94; }
.pen[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--gold-ink); }
.sig-msg { margin: 8px 0 0; }
.date-note { display: block; color: var(--gold-ink); }
.entry.is-coord { border-left-color: var(--gold) !important; background: #fdfbf3; }
.entry.is-coord .entry-time { opacity: 1; }
.entry [data-students]:disabled { background: #eef0ec; color: var(--muted); cursor: not-allowed; }
.coord-note { display: none; margin: 4px 0 0; }
.entry.is-coord .coord-na { display: none; }
.entry.is-coord .coord-note { display: block; }
