:root {
  color-scheme: dark;
  --bg: #111315;
  --surface: #1b1e21;
  --surface-strong: #25292d;
  --surface-muted: #202428;
  --ink: #f4f1eb;
  --muted: #b2bac0;
  --line: #3a4045;
  --orange: #f28c18;
  --orange-light: #ffb45f;
  --green: #7bd78b;
  --amber: #f3bd62;
  --red: #ff8a80;
  --shadow: 0 14px 32px rgb(0 0 0 / 18%);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
a { color: var(--orange-light); }
header { min-height: 88px; padding: 18px 5vw; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; font-size: .87rem; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { display: block; width: 156px; height: auto; }
.brand span { color: var(--muted); font-size: 14px; margin-left: 22px; border-left: 1px solid var(--line); padding-left: 22px; }
#identity { color: var(--muted); overflow-wrap: anywhere; }
main { max-width: 1450px; margin: auto; padding: 38px 5vw 70px; }
h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; margin: 8px 0 14px; letter-spacing: -1px; }
h2 { font-size: 19px; margin: 0 0 18px; }
h3 { font-size: 17px; margin: 0 0 5px; }
p { margin: 8px 0 18px; }
.eyebrow { font-size: 11px; font-weight: 750; letter-spacing: 1.7px; color: var(--orange-light); margin: 0; }
.heading, .sectionTitle { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.heading > div { flex: 1; min-width: 0; }
.heading > button { flex: none; }
.sectionTitle { margin-bottom: 18px; }
.sectionTitle h2 { margin-bottom: 0; }
.heading p:last-child, .muted { color: var(--muted); }
button, input, select, textarea { font: inherit; min-width: 0; max-width: 100%; }
button { border: 1px solid var(--line); background: var(--surface-strong); color: var(--ink); border-radius: 7px; padding: 9px 14px; cursor: pointer; font-weight: 600; white-space: nowrap; }
button:hover { border-color: var(--orange); background: #30353a; }
button:disabled { opacity: .55; cursor: wait; }
.primary { background: var(--orange); border-color: var(--orange); color: var(--bg); }
.primary:hover { background: var(--orange-light); border-color: var(--orange-light); color: var(--bg); }
label { display: block; font-size: 12px; font-weight: 650; margin: 12px 0; }
input, select, textarea { display: block; width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); padding: 10px; margin-top: 5px; min-height: 42px; font-weight: 400; font-size: 14px; accent-color: var(--orange); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input:disabled, select:disabled, textarea:disabled { color: var(--muted); background: var(--surface-muted); }
textarea { resize: vertical; }
.toolbar { display: flex; gap: 18px; align-items: end; margin: 26px 0; }
.toolbar label { margin: 0; min-width: 160px; }
.toolbar .search { flex: 1; }
.layout { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(255px, 1fr); gap: 24px; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
.narrow { max-width: 440px; margin: 45px auto; }
.narrow > p:not(.eyebrow) { color: var(--muted); }
.narrow .primary { width: 100%; margin-top: 10px; }
.meeting { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); align-items: center; }
.date { min-width: 54px; padding: 9px 6px; text-align: center; line-height: 1.15; border-radius: 8px; background: var(--surface-muted); }
.date strong { display: block; font-size: 30px; margin-top: 3px; }
.date span { font-size: 11px; text-transform: uppercase; color: var(--orange-light); }
.meetingInfo { flex: 1; min-width: 0; }
.meetingInfo h3 { overflow-wrap: anywhere; }
.meetingInfo p { font-size: 12px; color: var(--muted); margin: 4px 0; }
.badge { display: inline-block; font-size: 11px; padding: 3px 8px; background: #182d37; border-radius: 20px; color: #8bb8c9; margin: 4px 5px 0 0; }
.badge.ready { background: #17351f; color: var(--green); }
.badge.pending { background: #3a2d12; color: var(--amber); }
.update { border-top: 1px solid var(--line); padding: 14px 0; font-size: 13px; overflow-wrap: anywhere; }
.update p { margin: 3px 0; font-size: 12px; color: var(--muted); }
.update button { font-size: 11px; padding: 4px 8px; margin-top: 5px; }
.empty { padding: 30px 0; color: var(--muted); }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 15px; }
dialog { border: 1px solid var(--line); border-radius: 14px; padding: 28px; width: min(650px, 94vw); max-height: 90vh; overflow: auto; color: var(--ink); background: var(--surface); box-shadow: 0 24px 80px rgb(0 0 0 / 55%); }
dialog::backdrop { background: rgb(0 0 0 / 72%); }
dialog h2 { overflow-wrap: anywhere; }
.sectionTitle > button[data-close] { flex: none; width: 36px; height: 36px; padding: 0; font-size: 22px; }
.formError { color: var(--red); font-size: 13px; }
#feedback { color: var(--muted); font-size: 13px; min-height: 20px; white-space: pre-wrap; }
#detailBody > p { white-space: pre-wrap; overflow-wrap: anywhere; }
#count { color: var(--muted); font-size: 12px; white-space: nowrap; }
.danger { color: var(--red); }
.danger:hover { border-color: var(--red); background: #3b1d1b; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 400; }
.check input { width: 18px; min-height: 18px; margin: 0; flex: none; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 7px; padding: 10px 16px; }
legend { font-size: 12px; font-weight: 650; }
#people { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 28px; }
#people .actions { justify-content: flex-start; margin-top: 8px; }
#grant { margin-bottom: 18px; }
#people strong, #personIdentity, #roleIdentity { overflow-wrap: anywhere; }
#peopleNav { background: transparent; }
#peopleNav:hover { background: var(--surface-strong); }
#calendarLayout { align-items: start; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--orange-light); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--bg); }
@media (max-width: 1100px) { header { flex-wrap: wrap; } }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .toolbar { flex-wrap: wrap; }
  .heading { align-items: start; }
  .meeting { gap: 12px; }
  .toolbar .search { min-width: 190px; }
}
@media (max-width: 600px) {
  header { padding: 16px 20px; }
  .brand img { width: 139px; }
  .brand span { margin-left: 16px; padding-left: 16px; }
  nav { gap: 12px; width: 100%; }
  main { padding: 25px 18px; }
  .heading { display: block; }
  .panel { padding: 17px; }
  .two { grid-template-columns: 1fr; gap: 0; }
  .meeting { display: grid; grid-template-columns: 54px minmax(0, 1fr); }
  .meeting > button { grid-column: 2; justify-self: start; font-size: 12px; padding: 8px 12px; }
  .toolbar { gap: 12px; }
  .toolbar label { min-width: 120px; flex: 1; }
  dialog { padding: 20px; }
  #identity { max-width: 100%; }
}
