:root {
  --ink: #17171a;
  --muted: #6c6865;
  --paper: #f5f2ed;
  --surface: #ffffff;
  --surface-soft: #faf8f5;
  --line: #ded9d2;
  --line-strong: #bdb6ad;
  --red: #bd102b;
  --red-dark: #8f0a21;
  --red-soft: #f9e9ec;
  --green: #1f704e;
  --green-soft: #e7f4ed;
  --amber: #9b5b00;
  --amber-soft: #fff2d8;
  --blue: #225aa8;
  --blue-soft: #e9f1ff;
  --slate: #505762;
  --slate-soft: #edf0f3;
  --danger: #a01921;
  --shadow-sm: 0 1px 2px rgb(24 18 12 / 6%);
  --shadow-lg: 0 20px 60px rgb(24 18 12 / 16%);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  outline-color: var(--red);
  outline-offset: 3px;
}

button {
  color: inherit;
}

a {
  color: var(--red-dark);
}

[hidden] {
  display: none !important;
}

.site-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: var(--surface);
  border-top: 5px solid var(--red);
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
}

.division-logo {
  width: 68px;
  height: 68px;
  object-fit: cover;
  object-position: center;
  display: block;
  flex: none;
  background: #fff;
  border-radius: 4px;
}

.brand-title,
.brand-subtitle {
  display: block;
}

.brand-title {
  font-weight: 760;
  letter-spacing: -0.015em;
}

.brand-subtitle {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.service-label {
  color: var(--muted);
  font-size: 13px;
}

.public-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.public-nav a {
  display: inline-block;
  padding: 12px 0;
  color: var(--red-dark);
  font-weight: 700;
  text-underline-offset: 4px;
}

#booking-form,
#faq {
  scroll-margin-top: 24px;
}

.public-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 66px 0 90px;
}

.public-intro {
  max-width: 760px;
  margin-bottom: 36px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.public-intro p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
}

.booking-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.form-section {
  padding: 34px 38px 38px;
  border-bottom: 1px solid var(--line);
}

.form-section:last-child {
  border-bottom: 0;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.section-number {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 760;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  font-size: 13px;
  font-weight: 720;
}

.optional {
  color: var(--muted);
  font-weight: 500;
}

.required {
  color: var(--red);
}

.field input,
.field select,
.field textarea,
.filter-control,
.drawer input,
.drawer select,
.drawer textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field textarea,
.drawer textarea {
  min-height: 112px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.filter-control:focus,
.drawer input:focus,
.drawer select:focus,
.drawer textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgb(189 16 43 / 11%);
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.venue-options {
  display: grid;
  gap: 10px;
}

.venue-option {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.venue-option:has(input:checked) {
  background: var(--red-soft);
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.venue-option:hover {
  transform: translateY(-1px);
}

.venue-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--red);
}

.venue-option strong,
.venue-option span {
  display: block;
}

.venue-option span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.phone-field {
  display: grid;
  grid-template-columns: 58px 1fr;
}

.phone-prefix {
  min-height: 48px;
  display: grid;
  place-items: center;
  background: #f0ede8;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-weight: 700;
}

.phone-field input {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.verification-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 710;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.button:hover:not(:disabled) {
  background: #f2efeb;
  border-color: #8e8780;
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}

.button.primary {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.button.primary:hover:not(:disabled) {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.button.danger {
  color: var(--danger);
  background: #fff;
  border-color: #dfb8bc;
}

.button.ghost {
  min-height: 36px;
  padding: 7px 10px;
  background: transparent;
  border-color: transparent;
}

.button.small {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 12px;
}

.submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.submit-row .button {
  min-width: 220px;
}

.official-note {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.booking-aside {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 14px;
}

.aside-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.aside-card.dark {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.individual-booking-card {
  background: var(--red-soft);
  border-color: #dfabb5;
}

.aside-card .aside-kicker {
  margin: 0 0 5px;
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.individual-booking-button {
  width: 100%;
  margin-top: 8px;
}

.aside-card h2 {
  margin-bottom: 10px;
  font-size: 17px;
}

.aside-card p,
.aside-card li {
  color: var(--muted);
  font-size: 13px;
}

.aside-card.dark p,
.aside-card.dark li {
  color: #d4cfca;
}

.aside-card ul {
  margin: 0;
  padding-left: 18px;
}

.aside-card li + li {
  margin-top: 6px;
}

.faq {
  margin-top: 70px;
  padding-top: 38px;
  border-top: 2px solid var(--ink);
}

.faq h2 {
  font-size: 30px;
  letter-spacing: -0.035em;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item {
  padding: 22px;
  background: var(--surface);
}

.faq-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.faq-item h3 {
  margin-bottom: 7px;
  font-size: 14px;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.faq-item ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.form-message {
  margin: 0 0 18px;
  padding: 13px 15px;
  background: var(--blue-soft);
  border: 1px solid #b8cfee;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.form-message.error {
  color: var(--danger);
  background: #fff0f1;
  border-color: #e5b8bd;
}

.form-message.success {
  color: var(--green);
  background: var(--green-soft);
  border-color: #b8d9c7;
}

.site-footer {
  padding: 30px 5vw 42px;
  color: #d3d0cc;
  background: #252426;
  font-size: 12px;
}

.site-footer strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.site-footer > span {
  display: block;
}

.site-footer .footer-contact {
  margin-top: 10px;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  margin-top: 14px;
}

.site-footer a {
  color: #fff;
  text-underline-offset: 3px;
}

.simple-header .brand-lockup {
  color: var(--ink);
  text-decoration: none;
}

.policy-main {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 64px 0 90px;
}

.policy-main > h1 {
  max-width: 680px;
  margin-bottom: 10px;
}

.policy-updated {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.policy-main section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.policy-main section h2 {
  margin-bottom: 8px;
  font-size: 19px;
}

.policy-main section p {
  margin: 0;
  color: var(--muted);
}

/* Internal workspace */
.ops-body {
  min-height: 100vh;
  background: #f3f1ee;
}

.ops-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
}

.ops-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  color: #f8f6f3;
  background: #202023;
  border-top: 5px solid var(--red);
}

.ops-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 22px 21px;
  border-bottom: 1px solid #3c3b3e;
}

.ops-brand .division-logo {
  width: 64px;
  height: 64px;
}

.ops-brand strong,
.ops-brand span {
  display: block;
}

.ops-brand strong {
  font-size: 14px;
}

.ops-brand span {
  margin-top: 2px;
  color: #aaa6a2;
  font-size: 11px;
}

.ops-nav {
  display: grid;
  gap: 4px;
  padding: 18px 12px;
}

.ops-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  color: #c6c2be;
  border-radius: 9px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 650;
}

.ops-nav a:hover {
  color: #fff;
  background: #302f32;
}

.ops-nav a[aria-current="page"] {
  color: #fff;
  background: #39373a;
}

.ops-nav a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.62;
}

.nav-link-note {
  margin-left: auto;
  color: #aaa6a2;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ops-nav a[data-configured="true"] .nav-link-note {
  display: none;
}

.nav-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: #aaa6a2;
  font-size: 14px;
}

.nav-count {
  min-width: 24px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-left: auto;
  padding: 0 6px;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: 11px;
}

.ops-user {
  margin-top: auto;
  padding: 18px 22px 22px;
  border-top: 1px solid #3c3b3e;
}

.ops-user strong,
.ops-user span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-user strong {
  font-size: 13px;
}

.ops-user span {
  margin-top: 3px;
  color: #aaa6a2;
  font-size: 11px;
}

.ops-main {
  min-width: 0;
}

.ops-topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.ops-topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ops-topbar-title h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.ops-topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.system-content {
  max-width: 1120px;
}

.system-overall {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 24px;
  color: #153824;
  background: #e8f4ec;
  border: 1px solid #b9d7c4;
  border-radius: var(--radius-lg);
}

.system-overall[data-status="warning"] {
  color: #664308;
  background: #fff4d8;
  border-color: #e8cb84;
}

.system-overall[data-status="error"] {
  color: #721d2b;
  background: #fae8ea;
  border-color: #e7b8c0;
}

.system-overall[data-status="loading"] {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.system-overall-mark,
.system-check-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  font-weight: 850;
}

.system-overall-mark {
  width: 48px;
  height: 48px;
  font-size: 24px;
}

.system-overall[data-status="warning"] .system-overall-mark,
.system-check[data-status="warning"] .system-check-mark {
  background: var(--amber);
}

.system-overall[data-status="error"] .system-overall-mark,
.system-check[data-status="error"] .system-check-mark {
  background: var(--danger);
}

.system-overall[data-status="loading"] .system-overall-mark {
  background: var(--muted);
}

.system-eyebrow {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.system-overall h2,
.system-fallback h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.025em;
}

.system-overall p,
.system-fallback p {
  margin: 6px 0 0;
  line-height: 1.5;
}

.system-version {
  align-self: start;
  padding: 7px 10px;
  white-space: nowrap;
  background: rgb(255 255 255 / 62%);
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.system-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: 16px 0;
}

.system-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.system-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.system-check {
  display: flex;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
}

.system-check[data-status="warning"] {
  border-left-color: var(--amber);
}

.system-check[data-status="error"] {
  border-left-color: var(--danger);
}

.system-check-mark {
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.system-check-body {
  min-width: 0;
  flex: 1;
}

.system-check-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.system-check-heading h3 {
  margin: 0;
  font-size: 14px;
}

.system-check-heading span {
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.system-check[data-status="warning"] .system-check-heading span {
  color: #87600c;
}

.system-check[data-status="error"] .system-check-heading span {
  color: var(--danger);
}

.system-check p {
  margin: 9px 0 0;
  color: var(--ink);
  line-height: 1.5;
  font-size: 12px;
}

.system-check .system-check-details {
  color: var(--muted);
}

.system-next-action {
  display: grid;
  gap: 3px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.45;
}

.system-next-action strong {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.system-fallback {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  background: #ebe8e3;
  border-radius: var(--radius);
}

.system-fallback > div {
  max-width: 760px;
}

.system-guides {
  margin-top: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.system-guides-heading h2 {
  margin: 0;
  font-size: 20px;
}

.system-guides-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.system-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.system-guide-grid a {
  display: grid;
  gap: 6px;
  padding: 17px;
  color: var(--ink);
  background: #f7f4f0;
  border: 1px solid var(--line);
  border-radius: 11px;
  text-decoration: none;
}

.system-guide-grid a:hover {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgb(189 16 43 / 8%);
}

.system-guide-grid strong {
  font-size: 14px;
}

.system-guide-grid span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.system-guide-grid b {
  margin-top: 5px;
  color: var(--red);
  font-size: 11px;
}

.guide-body {
  min-height: 100vh;
  color: var(--ink);
  background: #f3f1ee;
}

.guide-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  gap: 20px;
  align-items: center;
  padding: 10px 24px;
  background: var(--surface);
  border-top: 5px solid var(--red);
  border-bottom: 1px solid var(--line);
}

.guide-brand {
  display: flex;
  gap: 11px;
  align-items: center;
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}

.guide-brand .division-logo {
  width: 50px;
  height: 50px;
}

.guide-brand strong,
.guide-brand small {
  display: block;
}

.guide-brand small {
  margin-top: 2px;
  color: var(--muted);
}

.guide-nav,
.guide-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.guide-nav a {
  padding: 9px 11px;
  color: var(--muted);
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.guide-nav a[aria-current="page"] {
  color: #fff;
  background: #272629;
}

.guide-actions {
  justify-content: flex-end;
}

.guide-layout {
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: 220px minmax(0, 820px);
  gap: 32px;
  justify-content: center;
  align-items: start;
  margin: 0 auto;
  padding: 38px 0 70px;
}

.guide-toc {
  position: sticky;
  top: 112px;
  max-height: calc(100vh - 140px);
  overflow: auto;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-toc > strong {
  display: block;
  margin-bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-toc nav {
  display: grid;
  gap: 3px;
}

.guide-toc a {
  padding: 6px 8px;
  color: var(--muted);
  border-radius: 6px;
  text-decoration: none;
  font-size: 11px;
  line-height: 1.35;
}

.guide-toc a:hover {
  color: var(--red);
  background: #f7f4f0;
}

.guide-toc .toc-h3 {
  padding-left: 18px;
}

.guide-article {
  min-width: 0;
  padding: 38px 44px 52px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.guide-article h1 {
  margin: 0 0 10px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.guide-article h2 {
  margin: 40px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 22px;
  line-height: 1.3;
}

.guide-article h3 {
  margin: 28px 0 10px;
  font-size: 16px;
}

.guide-article p,
.guide-article li {
  font-size: 14px;
  line-height: 1.7;
}

.guide-article p {
  margin: 10px 0;
}

.guide-article ul,
.guide-article ol {
  padding-left: 24px;
}

.guide-article li + li {
  margin-top: 5px;
}

.guide-article code {
  padding: 2px 5px;
  background: #f0ede9;
  border-radius: 5px;
  font-size: 0.9em;
}

.guide-article pre {
  overflow: auto;
  padding: 16px;
  background: #272629;
  border-radius: 10px;
}

.guide-article pre code {
  padding: 0;
  color: #f7f4f0;
  background: transparent;
}

.guide-article a {
  color: var(--red);
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

.guide-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.guide-article th,
.guide-article td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
  line-height: 1.5;
}

.guide-article th {
  background: #f4f1ed;
}

.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 0%, rgb(189 16 43 / 9%), transparent 32rem),
    var(--paper);
}

.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.auth-card {
  width: min(100%, 500px);
  padding: 34px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.auth-brand strong,
.auth-brand span {
  display: block;
}

.auth-brand strong {
  font-size: 15px;
}

.auth-brand div span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.auth-copy {
  padding: 34px 0 26px;
}

.auth-copy h1 {
  margin-bottom: 14px;
  font-size: clamp(34px, 8vw, 48px);
}

.auth-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
}

.auth-action {
  min-height: 90px;
}

.auth-progress {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.auth-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-message.error {
  color: var(--danger);
}

.auth-email-form {
  display: grid;
  gap: 8px;
}

.auth-email-form label {
  font-size: 13px;
  font-weight: 720;
}

.auth-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.auth-input-row input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}

.auth-input-row input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgb(189 16 43 / 11%);
}

.auth-code-sent {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.auth-use-different {
  width: fit-content;
  margin-top: 2px;
  padding-left: 0;
  padding-right: 0;
}

.auth-public-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 700;
}

.environment-pill {
  padding: 4px 8px;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.history-warning {
  margin-bottom: 18px;
  padding: 12px 14px;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid #e0c898;
  border-radius: var(--radius-sm);
  font-size: 13px;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.history-marker {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--red-dark);
  background: var(--red-soft);
  border-radius: 50%;
  font-weight: 800;
}

.history-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.history-heading > div,
.history-heading strong,
.history-action {
  display: block;
}

.history-heading strong {
  margin-top: 3px;
  font-size: 15px;
}

.history-heading time,
.history-action,
.history-actor {
  color: var(--muted);
  font-size: 12px;
}

.history-action {
  color: var(--red-dark);
  font-weight: 760;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.history-heading time {
  flex: none;
  white-space: nowrap;
}

.history-actor {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 10px;
}

.history-actor strong {
  color: var(--ink);
}

.history-details {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.history-details summary {
  padding-top: 12px;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.history-changes {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.history-change {
  display: grid;
  grid-template-columns: minmax(100px, 0.8fr) minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.history-change > span:nth-of-type(2) {
  color: var(--muted);
}

.history-reason {
  margin-top: 12px;
  padding: 12px;
  background: #fff7ed;
  border-left: 3px solid var(--amber);
}

.history-reason p,
.history-no-diff {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.history-reference {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
}

.ops-content {
  padding: 30px 32px 60px;
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.page-heading h2 {
  margin-bottom: 5px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  min-height: 96px;
  padding: 17px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.stat-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stat-value {
  display: block;
  font-size: 27px;
  font-weight: 770;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat-note {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-spacer {
  flex: 1 1 auto;
}

.filter-control {
  min-height: 38px;
  width: auto;
  padding: 7px 30px 7px 10px;
  font-size: 12px;
}

.search-control {
  width: min(260px, 100%);
  padding-right: 10px;
}

.segmented {
  display: inline-flex;
  padding: 3px;
  background: #efede9;
  border-radius: 9px;
}

.segmented button {
  min-height: 32px;
  padding: 5px 10px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.segmented button[aria-pressed="true"] {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.schedule-board {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.schedule-head,
.schedule-row {
  display: grid;
  grid-template-columns: 96px 90px 92px minmax(170px, 1.25fr) 120px minmax(130px, 0.9fr) 132px 42px;
  align-items: center;
}

.schedule-head {
  min-height: 43px;
  color: var(--muted);
  background: #f7f5f2;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.schedule-head > span,
.schedule-row > * {
  padding: 0 13px;
}

.date-group + .date-group {
  border-top: 1px solid var(--line-strong);
}

.date-label {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 12px 14px;
  color: var(--muted);
  background: #fbfaf8;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.date-label strong {
  color: var(--ink);
  font-size: 14px;
}

.schedule-row {
  min-height: 65px;
  border-bottom: 1px solid #ebe7e2;
  cursor: pointer;
  transition: background 120ms ease;
}

.schedule-row:last-child {
  border-bottom: 0;
}

.schedule-row:hover,
.schedule-row:focus-within {
  background: #fcf7f7;
}

.schedule-time {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 730;
}

.activity-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  padding: 5px 8px;
  background: var(--slate-soft);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.activity-code.rpp {
  color: var(--red-dark);
  background: var(--red-soft);
}

.activity-code.pe {
  color: var(--blue);
  background: var(--blue-soft);
}

.client-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 680;
}

.venue-name,
.officer-name {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.officer-name.unassigned {
  color: var(--amber);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 760;
}

.status-pill::before {
  width: 6px;
  height: 6px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.status-confirmed,
.status-ready {
  color: var(--green);
  background: var(--green-soft);
}

.status-pending,
.status-reserved,
.status-keep-free {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-cancelled,
.status-postponed,
.status-error {
  color: var(--danger);
  background: #fae8ea;
}

.row-open-button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 17px;
}

.row-open-button:hover {
  background: #efebe6;
}

.empty-state,
.loading-state {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.empty-state strong,
.loading-state strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.loading-state > div::before {
  content: "";
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto 14px;
  border: 3px solid #ddd6cf;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: rpp-spin 0.75s linear infinite;
}

.button[aria-busy="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button[aria-busy="true"]::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: rpp-spin 0.7s linear infinite;
}

@keyframes rpp-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .loading-state > div::before,
  .button[aria-busy="true"]::before {
    animation: none;
  }
}

.approval-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
  gap: 16px;
  align-items: start;
}

.panel {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-heading {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 17px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h3 {
  margin: 0;
  font-size: 14px;
}

.approval-list {
  max-height: calc(100vh - 250px);
  overflow-y: auto;
}

.approval-item {
  width: 100%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 15px 16px;
  text-align: left;
  background: var(--surface);
  border: 0;
  border-bottom: 1px solid #ebe7e2;
  cursor: pointer;
}

.approval-item:hover,
.approval-item[aria-current="true"] {
  background: #fcf7f7;
}

.approval-item[aria-current="true"] {
  box-shadow: inset 3px 0 var(--red);
}

.date-tile {
  width: 52px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--red-dark);
  background: var(--red-soft);
  border-radius: 9px;
  line-height: 1.05;
}

.date-tile strong,
.date-tile span {
  display: block;
}

.date-tile strong {
  font-size: 19px;
}

.date-tile span {
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.approval-summary strong,
.approval-summary span {
  display: block;
}

.approval-summary strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.approval-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.approval-age {
  color: var(--muted);
  font-size: 10px;
}

.approval-detail {
  padding: 22px;
}

.approval-detail-header {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.approval-detail-header h3 {
  margin-bottom: 7px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.approval-detail-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.detail-cell {
  min-height: 72px;
  padding: 13px 14px;
  background: var(--surface);
}

.detail-cell.full {
  grid-column: 1 / -1;
}

.detail-cell dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 770;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.detail-cell dd {
  margin: 0;
  font-size: 13px;
  white-space: pre-wrap;
}

.approval-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
}

.error-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.error-summary button {
  padding: 16px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.error-summary button:hover,
.error-summary button[aria-pressed="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgb(189 16 43 / 9%);
}

.error-summary strong,
.error-summary span {
  display: block;
}

.error-summary strong {
  margin-bottom: 5px;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.error-summary span {
  color: var(--muted);
  font-size: 11px;
}

.error-list {
  display: grid;
  gap: 9px;
}

.error-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.error-symbol {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--amber);
  background: var(--amber-soft);
  border-radius: 50%;
  font-weight: 800;
}

.error-symbol.sync {
  color: var(--danger);
  background: #fae8ea;
}

.error-copy strong,
.error-copy span {
  display: block;
}

.error-copy strong {
  font-size: 13px;
}

.error-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.error-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgb(19 17 15 / 32%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 21;
  width: min(520px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transform: translateX(102%);
  transition: transform 190ms ease;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.drawer-close {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: #f2efeb;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
}

.drawer-section {
  margin-bottom: 24px;
}

.drawer-section h3 {
  margin-bottom: 13px;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.drawer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.drawer-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 15px 20px;
  background: #faf8f5;
  border-top: 1px solid var(--line);
}

.disclosure {
  border-top: 1px solid var(--line);
}

.disclosure summary {
  padding: 15px 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.disclosure dl {
  margin: 0 0 18px;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  gap: 8px;
}

.toast {
  max-width: 360px;
  padding: 12px 14px;
  color: #fff;
  background: #28272a;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
}

.toast.error {
  background: var(--danger);
}

@media (max-width: 1050px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-board {
    overflow-x: auto;
  }

  .schedule-head,
  .schedule-row {
    min-width: 930px;
  }

  .stats-row,
  .error-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-checks {
    grid-template-columns: 1fr;
  }

  .guide-header {
    grid-template-columns: 1fr auto;
  }

  .guide-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    order: 3;
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-toc {
    position: static;
    max-height: none;
  }

  .guide-toc nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .ops-shell {
    display: block;
  }

  .ops-sidebar {
    position: static;
    height: auto;
    border-top-width: 4px;
  }

  .ops-brand {
    padding: 14px 18px;
  }

  .ops-nav {
    display: flex;
    overflow-x: auto;
    padding: 8px 12px 12px;
  }

  .ops-nav a {
    flex: 0 0 auto;
  }

  .ops-user {
    display: none;
  }

  .ops-topbar {
    min-height: 60px;
    padding: 0 18px;
  }

  .ops-content {
    padding: 22px 18px 50px;
  }

  .approval-layout {
    grid-template-columns: 1fr;
  }

  .approval-list {
    max-height: 360px;
  }

  .system-overall {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .system-version {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .auth-main {
    padding: 20px 12px;
  }

  .auth-card {
    padding: 28px 24px;
  }

  .auth-input-row {
    grid-template-columns: 1fr;
  }

  .auth-input-row .button {
    width: 100%;
  }

  .history-item {
    grid-template-columns: 1fr;
  }

  .history-heading {
    display: grid;
  }

  .history-change {
    grid-template-columns: 1fr;
  }

  .history-change > span:nth-of-type(2) {
    display: none;
  }

  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-header {
    min-height: 70px;
    flex-wrap: wrap;
    gap: 0 16px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .service-label {
    display: none;
  }

  .brand-lockup {
    gap: 12px;
  }

  .brand-lockup .division-logo {
    width: 54px;
    height: 54px;
  }

  .public-main {
    width: min(100% - 24px, 1180px);
    padding-top: 42px;
  }

  h1 {
    font-size: 38px;
  }

  .public-intro p:last-child {
    font-size: 16px;
  }

  .form-section {
    padding: 27px 22px 30px;
  }

  .form-grid,
  .faq-list,
  .booking-aside,
  .drawer-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-cell.full {
    grid-column: auto;
  }

  .verification-row,
  .submit-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .submit-row .button {
    width: 100%;
  }

  .page-heading {
    display: grid;
    align-items: start;
  }

  .page-actions {
    flex-wrap: wrap;
  }

  .stats-row,
  .error-summary {
    grid-template-columns: 1fr 1fr;
  }

  .toolbar {
    align-items: stretch;
  }

  .toolbar-group,
  .filter-control,
  .search-control {
    width: 100%;
  }

  .toolbar-group .filter-control {
    flex: 1;
  }

  .error-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .error-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .system-overall {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .system-version {
    grid-column: auto;
  }

  .system-actions,
  .system-fallback {
    align-items: stretch;
    flex-direction: column;
  }

  .system-actions .button,
  .system-fallback .button {
    width: 100%;
  }

  .system-guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-header {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 16px 16px;
  }

  .guide-nav {
    grid-column: auto;
    grid-row: auto;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .guide-actions {
    justify-content: flex-start;
  }

  .guide-layout {
    width: min(100% - 24px, 1180px);
    gap: 14px;
    padding: 18px 0 40px;
  }

  .guide-toc {
    display: none;
  }

  .guide-article {
    padding: 28px 22px 38px;
  }

  .guide-article h1 {
    font-size: 30px;
  }
}

@media print {
  .guide-header,
  .guide-toc {
    display: none !important;
  }

  .guide-body {
    background: #fff;
  }

  .guide-layout {
    width: 100%;
    display: block;
    padding: 0;
  }

  .guide-article {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
:root { --workspace-sync-gap: 1rem; }
.sync-status { color: var(--muted, #635c56); font-size: .8rem; margin: 0 0 var(--workspace-sync-gap); }
.sync-status[aria-busy="true"]::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .5em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rpp-spin .8s linear infinite; }
.member-guidance { max-width: 70ch; color: var(--muted, #635c56); margin: 1rem 0; }
.member-list, .member-editor { border: 1px solid #ded8d1; border-radius: 16px; background: white; }
.member-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem; border-bottom: 1px solid #e9e3dc; }
.member-row:last-child { border-bottom: 0; }
.member-info { min-width: 0; display: grid; gap: .35rem; overflow-wrap: anywhere; }
.member-info span, .member-info small { color: var(--muted, #635c56); font-size: .8rem; }
.member-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.member-editor { padding: 1.5rem; margin: 1rem 0; max-width: 720px; }
.member-permissions { border: 1px solid #ded8d1; border-radius: 10px; margin: 1rem 0; padding: 1rem; }
.member-permissions label { display: block; padding: .4rem 0; }
.member-permissions input { width: auto; margin-right: .5rem; }
.member-permissions p, .field-help { font-size: .8rem; color: var(--muted, #635c56); }
#member-form-error, #member-audit-warning { color: #a01729; }
@media (max-width: 650px) { .member-row { align-items: stretch; flex-direction: column; } .member-actions { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .sync-status[aria-busy="true"]::before { animation: none; } }
/* Scheduling dialogs use the browser's modal focus handling. */
.action-dialog { width: min(32rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; border: 1px solid #cbd5e1; border-radius: 14px; padding: 24px; color: #17212f; background: #fff; }
.action-dialog::backdrop { background: rgb(15 23 42 / 45%); }
.action-dialog h2 { margin: 0 0 16px; }
.action-dialog p { line-height: 1.6; }
.confirmation-summary { white-space: pre-line; overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.slot-panel { margin: 20px 0; padding: 18px; border: 1px solid #d5dae1; border-radius: 12px; background: white; }
.slot-panel summary { cursor: pointer; font-weight: 700; }
.slot-panel p { line-height: 1.5; }
.slot-row { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 0; border-top: 1px solid #e2e8f0; }
.slot-row small { display: block; margin-top: 4px; overflow-wrap: anywhere; }
.slot-row > div { min-width: 0; }
.slot-row button { flex-shrink: 0; }
.form-error { color: #a51e2c; }
.drawer-footer { flex-wrap: wrap; }
.drawer-footer .form-error { flex-basis: 100%; margin: 0; font-size: 13px; line-height: 1.4; }
#all-day-field input { width: auto; }
@media (max-width: 520px) { .slot-row { align-items: flex-start; flex-wrap: wrap; } .page-actions { flex-wrap: wrap; } }

.external-requirements { border: 2px solid #b30f24; border-radius: 10px; padding: 20px; background: #fff7f7; }
.external-requirements legend { font-size: 1.2rem; font-weight: 750; padding: 0 8px; }
.external-requirements label { display: flex; align-items: flex-start; gap: 12px; margin: 16px 0; font-size: 1rem; line-height: 1.55; cursor: pointer; }
.external-requirements input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; }
.challenge-host { margin: 16px 0; }
.officer-name small { display: block; margin-top: 5px; color: #6b6b72; }
.operations-settings { margin-top: 32px; padding-top: 24px; border-top: 1px solid #ddd; }
.operations-settings label { display: block; margin: 12px 0 6px; }
.operations-settings .inline-check { display: inline-flex; gap: 8px; align-items: center; margin-right: 18px; }
.operations-settings textarea { width: 100%; min-height: 100px; }
.operations-form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
#cancellation-message, #schedule-cancellation-body { width: 100%; min-height: 250px; }
.login-activity { margin-top: 16px; }
