:root {
  color-scheme: light;
  --bg: #eef4f6;
  --surface: rgba(255, 255, 255, .62);
  --surface-strong: rgba(255, 255, 255, .8);
  --surface-warm: rgba(255, 253, 247, .78);
  --text: #19313a;
  --heading: #08232c;
  --muted: #5f7580;
  --line: rgba(112, 141, 152, .24);
  --line-strong: rgba(112, 141, 152, .4);
  --accent: #00a443;
  --accent-hover: #008c3a;
  --accent-soft: rgba(0, 164, 67, .1);
  --accent-light: rgba(0, 164, 67, .2);
  --brand-lime: #d6f127;
  --brand-yellow: #ffd21a;
  --brand-orange: #ff8a00;
  --brand-red: #ff2d16;
  --brand-rose: #b71b55;
  --brand-violet: #7912b8;
  --brand-blue: #1267f2;
  --rainbow: linear-gradient(90deg, #63ba32 0%, #d6f127 13%, #ffd21a 26%, #ff8a00 39%, #ff2d16 52%, #b71b55 65%, #7912b8 78%, #1267f2 91%, #00a443 100%);
  --danger: #c62817;
  --danger-soft: #fef3f2;
  --warn: #d35b00;
  --warn-soft: #fff7ed;
  --ok: #008f47;
  --ok-soft: #ecfdf3;
  --shadow-sm: 0 8px 24px rgba(8, 35, 44, .08);
  --shadow-md: 0 14px 40px rgba(8, 35, 44, .12);
  --shadow-lg: 0 22px 60px rgba(8, 35, 44, .16);
  --radius: 14px;
  --radius-sm: 10px;
  --glass-blur: saturate(1.2) blur(18px);
  --pixel-shadow: 0 0 0 2px rgba(13, 41, 48, .2), 0 0 0 5px rgba(255, 255, 255, .3);
}

@font-face {
  font-family: "bootstrap-icons";
  src:
    url("/static/vendor/bootstrap-icons/fonts/bootstrap-icons.woff2") format("woff2"),
    url("/static/vendor/bootstrap-icons/fonts/bootstrap-icons.woff") format("woff");
  font-display: block;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, "Segoe UI", Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(214, 241, 39, .2), transparent 32%),
    radial-gradient(circle at top right, rgba(18, 103, 242, .14), transparent 30%),
    linear-gradient(180deg, #fdfefe 0, #f3f7f8 160px, var(--bg) 420px);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body::before {
  content: "";
  display: block;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--rainbow);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .32), transparent 22%),
    linear-gradient(315deg, rgba(255, 255, 255, .15), transparent 18%);
  mix-blend-mode: screen;
  opacity: .65;
}

a {
  color: inherit;
}

.app-navbar {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .66);
  box-shadow: var(--shadow-md);
  backdrop-filter: var(--glass-blur);
}

.navbar-brand {
  flex-shrink: 0;
  color: var(--accent) !important;
  font-size: 18px;
  font-weight: 900 !important;
  letter-spacing: 0;
}

.brand-logo {
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(8, 35, 44, .18);
}

.navbar .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  color: #35505a !important;
  padding: .42rem .72rem;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
  background: rgba(255, 255, 255, .82);
  color: var(--accent) !important;
  border-color: rgba(0, 164, 67, .18);
  box-shadow: 0 8px 20px rgba(8, 35, 44, .06);
}

.navbar .nav-link i {
  color: var(--accent);
}

.navbar-collapse {
  min-width: 0;
}

.navbar-nav {
  flex-wrap: wrap;
  row-gap: 2px;
}

.navbar form[role="search"],
.navbar form.d-flex {
  flex: 0 1 156px;
}

.navbar .form-control {
  min-width: 120px;
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse {
    flex-wrap: wrap;
    row-gap: 6px;
  }
}

.topbar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--accent);
  letter-spacing: 0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

.nav a {
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  background: transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: background .15s, color .15s;
}

.nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  background: linear-gradient(180deg, #14bc57 0%, var(--accent) 100%);
  color: #fff;
  border-color: var(--accent);
  text-decoration: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  min-height: 38px;
}

button:hover,
.button-link:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-sm);
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
  box-shadow: none;
}

.hold-confirm-card {
  display: grid;
  gap: 12px;
  border: 1px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 251, 235, .92), rgba(255, 247, 237, .86));
  box-shadow: var(--shadow-sm);
}

.hold-confirm-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.hold-confirm-button {
  position: relative;
  width: 100%;
  min-height: 48px;
  overflow: hidden;
  border-color: #b45309;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
}

.hold-confirm-button:hover {
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
}

.hold-confirm-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: rgba(255, 255, 255, .32);
}

.hold-confirm-label {
  position: relative;
  z-index: 1;
}

.hold-confirm-button.is-holding .hold-confirm-progress {
  animation: hold-confirm-fill var(--hold-duration, 1200ms) linear forwards;
}

.hold-confirm-button.is-complete {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
}

@keyframes hold-confirm-fill {
  from { width: 0; }
  to { width: 100%; }
}

.secondary,
.secondary-button {
  background: rgba(255, 255, 255, .8);
  color: var(--text);
  border-color: var(--line-strong);
  font-weight: 500;
}

.secondary:hover,
.secondary-button:hover {
  background: var(--bg);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.danger-link {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #fda29b;
}

.glass-panel,
.ops-card,
.summary-strip div,
.calendar-day,
.appointment,
.detail-card,
.task-card,
.metric-card,
.queue-item,
.form-card,
.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  backdrop-filter: var(--glass-blur);
}

.glass-panel::before,
.ops-card::before,
.calendar-day::before,
.detail-card::before,
.task-card::before,
.metric-card::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--rainbow);
}

.glass-panel::after,
.ops-card::after,
.calendar-day::after,
.detail-card::after,
.task-card::after,
.metric-card::after {
  content: "";
  display: block;
  height: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .36), transparent 42%);
  margin-top: -100%;
  pointer-events: none;
}

.pixel-frame,
.pixel-card,
.pixel-badge,
.admin-calendar .calendar-day,
.admin-calendar .calendar-card,
.admin-calendar .summary-strip div {
  border-radius: 6px;
  box-shadow: var(--pixel-shadow);
}

.admin-calendar .calendar-day,
.admin-calendar .calendar-card,
.admin-calendar .summary-strip div {
  border-color: rgba(17, 34, 41, .32);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .66), rgba(233, 241, 244, .72)),
    repeating-linear-gradient(0deg, rgba(16, 35, 41, .03) 0 2px, transparent 2px 4px);
}

.admin-calendar .calendar-day-head {
  background:
    linear-gradient(180deg, rgba(15, 34, 40, .1), rgba(15, 34, 40, .05)),
    repeating-linear-gradient(90deg, rgba(15, 34, 40, .08) 0 8px, transparent 8px 16px);
  border-bottom-style: solid;
}

.admin-calendar .calendar-card {
  border-style: solid;
  border-left-width: 6px;
  image-rendering: pixelated;
}

.admin-calendar .status-pill {
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2px;
}

.small-action {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 500;
}

.confirmation-manual-form {
  display: grid;
  gap: 6px;
  min-width: 220px;
  margin-top: 8px;
}

.confirmation-manual-form input {
  width: 100%;
  min-width: 0;
}

.confirmation-manual-form .inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.time-off-decision-form {
  display: grid;
  gap: 8px;
  min-width: min(100%, 260px);
}

.time-off-decision-form input,
.time-off-decision-form textarea {
  width: 100%;
  min-width: 0;
}

.time-off-decision-form .inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.time-off-decision-change summary {
  cursor: pointer;
  font-weight: 600;
}

.time-off-decision-change[open] summary {
  margin-bottom: 8px;
}

.status-note.warning {
  margin: 6px 0 0;
  color: var(--warn);
  font-weight: 600;
}

.logout-form {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.logout-form span {
  color: var(--muted);
  font-weight: 600;
}

.logout-form button {
  background: transparent;
  color: var(--muted);
  border: none;
  font-weight: 500;
  min-height: auto;
  padding: 4px 8px;
}

.logout-form button:hover {
  color: var(--danger);
  box-shadow: none;
}

.top-search {
  display: grid;
  grid-template-columns: minmax(190px, 260px) auto;
  gap: 8px;
  align-items: center;
}

.top-search input {
  min-width: 0;
}

.page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 28px 48px;
}

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

.page-header h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: var(--heading);
}

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

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

.appointment-brief {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow-sm);
}

.appointment-brief-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.appointment-brief-head h2 {
  margin: 3px 0 4px;
  font-size: 22px;
  line-height: 1.18;
}

.appointment-brief-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.appointment-brief-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.appointment-brief-actions form,
.appointment-move-panel-head form {
  margin: 0;
}

.stacked-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.appointment-brief-actions .button-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.appointment-brief-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.appointment-brief-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface-strong);
}

.appointment-brief-item span,
.appointment-brief-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.appointment-brief-item strong {
  display: block;
  margin: 4px 0 3px;
  color: var(--heading);
  font-size: 16px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.appointment-brief-item.is-accent {
  border-color: rgba(0, 164, 67, .3);
  background: var(--accent-soft);
}

.appointment-brief-item.is-info {
  border-color: rgba(18, 103, 242, .28);
  background: rgba(18, 103, 242, .08);
}

.appointment-brief-item.is-warning {
  border-color: rgba(211, 91, 0, .28);
  background: var(--warn-soft);
}

.appointment-brief-item.is-error,
.appointment-brief-item.is-danger {
  border-color: rgba(198, 40, 23, .28);
  background: var(--danger-soft);
}

.appointment-brief-item.is-cancelled,
.appointment-brief-item.is-no_show {
  border-color: rgba(198, 40, 23, .28);
  background: var(--danger-soft);
}

.appointment-brief-item.is-rescheduled,
.appointment-brief-item.is-reserved,
.appointment-brief-item.is-proposed {
  border-color: rgba(211, 91, 0, .28);
  background: var(--warn-soft);
}

.appointment-attention {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.appointment-attention h2 {
  margin-bottom: 0;
  font-size: 15px;
}

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

.reschedule-chain-anchor,
.reschedule-step-anchor,
article.panel[id^="queue-"] {
  scroll-margin-top: 96px;
}

.reschedule-chain-anchor:target,
article.panel[id^="queue-"]:target {
  outline: 2px solid rgba(18, 103, 242, .42);
  box-shadow: 0 0 0 5px rgba(18, 103, 242, .1), var(--shadow-md);
  background: var(--surface-strong);
}

.reschedule-step-anchor:target td {
  background: rgba(18, 103, 242, .08);
}

.reschedule-step-anchor:target td:first-child {
  box-shadow: inset 4px 0 0 var(--brand-blue);
}

@media (prefers-reduced-motion: no-preference) {
  .reschedule-chain-anchor,
  .reschedule-step-anchor td,
  article.panel[id^="queue-"] {
    transition: background-color .2s ease, box-shadow .2s ease, outline-color .2s ease;
  }
}

.appointment-attention-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}

.appointment-attention-item {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  background: #fff;
  text-decoration: none;
}

.appointment-attention-item strong {
  color: var(--heading);
  font-size: 14px;
}

.appointment-attention-item span {
  color: var(--muted);
  font-size: 13px;
}

.appointment-attention-item.is-warning {
  border-color: rgba(211, 91, 0, .32);
  background: var(--warn-soft);
}

.appointment-attention-item.is-danger {
  border-color: rgba(198, 40, 23, .32);
  background: var(--danger-soft);
}

.appointment-attention-item.is-info {
  border-color: rgba(18, 103, 242, .24);
  background: rgba(18, 103, 242, .08);
}

a.appointment-attention-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.appointment-detail-table td {
  vertical-align: top;
}

.grant-report-table td,
.grant-report-table th {
  vertical-align: top;
}

.grant-report-service-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.grant-report-actions {
  text-align: right;
  white-space: nowrap;
}

.grant-report-actions button.btn-outline-danger {
  background: #fff;
  border-color: var(--danger);
  color: var(--danger);
}

.grant-report-actions button.btn-outline-danger:hover {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger);
}

h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  color: var(--heading);
}

.metrics,
.grid {
  display: grid;
  gap: 16px;
}

.metrics {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 24px;
}

.metrics article,
.metric-card {
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}

.metrics article:hover,
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.metrics article {
  background: var(--surface);
  border: 1px solid var(--line);
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  display: block;
}

.metric-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.metric-value {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.1;
}

.metrics article span:last-child,
.metric-card span:last-child {
  margin-top: 4px;
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.grid.two {
  grid-template-columns: 1fr 1fr;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.queue-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.queue-command {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.queue-next-action {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.queue-next-action:hover,
.queue-summary-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.queue-next-action span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.queue-next-action strong {
  color: var(--heading);
  font-size: 22px;
  line-height: 1.18;
}

.queue-next-action small {
  color: var(--muted);
  font-size: 13px;
}

.queue-next-action.is-warning,
.queue-summary-item.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.queue-next-action.is-danger,
.queue-summary-item.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.queue-next-action.is-info,
.queue-summary-item.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.queue-next-action.is-success,
.queue-summary-item.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.queue-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.queue-summary article,
.queue-summary-item {
  display: block;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.queue-summary strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
}

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

.queue-run-summary {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-bottom: 12px;
  background: var(--surface-strong);
}

.queue-run-summary strong {
  color: var(--heading);
  font-size: 15px;
}

.queue-run-summary p {
  margin: 0;
  overflow-wrap: anywhere;
}

.queue-section-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.queue-run-summary.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.queue-run-summary.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.queue-run-summary.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.queue-run-summary.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.certificate-readiness-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.certificate-readiness-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--surface-strong);
}

.certificate-readiness-grid strong {
  display: block;
  color: var(--heading);
  font-size: 22px;
  line-height: 1.1;
}

.certificate-readiness-grid span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.panel,
.auth-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: #f8fafc;
}

.muted-row td {
  color: var(--muted);
  background: #f8fafc;
}

.warning-row td {
  background: var(--warn-soft);
}

th {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.panel {
  overflow-x: auto;
}

.timeline {
  display: grid;
  gap: 12px;
}

.calendar-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(190px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.admin-calendar {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.calendar-day {
  min-height: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.staff-lane {
  border-top: 4px solid var(--accent);
}

.calendar-day-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--accent-soft);
  font-weight: 700;
  font-size: 15px;
}

.calendar-day-head small {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  font-size: 13px;
}

.calendar-day-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.calendar-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #fff;
  transition: box-shadow .15s;
}

.calendar-card:hover {
  box-shadow: var(--shadow-sm);
}

.calendar-card h2,
.calendar-card p {
  margin: 0;
}

.calendar-card h2 {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
}

.calendar-card p {
  font-size: 13px;
  color: var(--text);
}

.calendar-time {
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
}

.calendar-card.status-cancelled,
.calendar-card.status-no_show {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.calendar-card.status-completed {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.calendar-card.status-rescheduled,
.calendar-card.status-reserved,
.calendar-card.status-proposed {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.card-row,
.summary-strip,
.mark-actions,
.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--bg);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.muted-pill {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

.danger-pill {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #fda29b;
}

.warning-pill {
  color: var(--warn);
  background: var(--warn-soft);
  border-color: #fdba74;
}

.balance-exhausted {
  background: var(--danger-soft);
  border-color: #fda29b;
  color: var(--danger);
}

.balance-critical {
  background: #fff1f2;
  border-color: #fb7185;
  color: #be123c;
}

.balance-warning {
  background: var(--warn-soft);
  border-color: #fdba74;
  color: var(--warn);
}

.balance-notice {
  background: #fefce8;
  border-color: #fde047;
  color: #854d0e;
}

.empty-state {
  margin: 0;
  padding: 14px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.empty-action {
  display: block;
  text-decoration: none;
  transition: border-color .15s, color .15s;
}

.empty-action:hover {
  border-color: var(--accent);
  color: var(--accent);
  border-style: solid;
}

.specialist-header {
  align-items: center;
}

.specialist-overview {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.specialist-next-action {
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.specialist-next-action:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.specialist-next-action span,
.specialist-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.specialist-next-action strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.2;
}

.specialist-next-action small,
.specialist-summary-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.specialist-next-action.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.specialist-next-action.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.specialist-next-action.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.specialist-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.specialist-summary-grid > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.specialist-summary-grid strong {
  color: var(--heading);
  font-size: 20px;
  line-height: 1.1;
}

.specialist-quick-links {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.specialist-quick-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.specialist-quick-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.staff-ops-table td {
  vertical-align: top;
}

#staff-availability .field {
  align-self: start;
}

.availability-field-label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  position: relative;
}

.availability-field-label label {
  margin: 0;
}

.availability-help summary {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.availability-help summary::-webkit-details-marker {
  display: none;
}

.availability-help summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.availability-help p {
  position: absolute;
  z-index: 80;
  top: 100%;
  left: 0;
  right: 0;
  margin: 4px 0 0;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--heading);
  color: #fff;
  box-shadow: 0 4px 12px #0002;
  font-size: 14px;
  line-height: 1.5;
}

.staff-ops-actions {
  text-align: right;
  white-space: nowrap;
}

.summary-strip {
  justify-content: flex-end;
}

.summary-strip div {
  min-width: 116px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.summary-strip strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
}

.summary-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.appointment {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.appointment.status-cancelled,
.appointment.status-no_show {
  border-left-color: var(--danger);
}

.appointment.status-completed {
  border-left-color: var(--ok);
}

.appointment.status-reserved {
  border-left-color: var(--warn);
}

.time {
  font-weight: 700;
  font-size: 15px;
}

.muted {
  color: var(--muted);
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.message {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 12px 16px;
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.task-card strong,
.task-card p {
  margin: 0;
}

.task-card.status-cancelled,
.task-card.status-no_show {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.task-card.status-completed {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.task-card.status-rescheduled,
.task-card.status-proposed {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.task-card.status-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.task-card.status-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.task-card.status-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.task-card.status-ready {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.task-card.status-stale {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.task-card.status-failed {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.mini-form {
  display: inline-flex;
}

.financial-triage-form {
  align-items: center;
  gap: 6px;
}

.triage-note-input {
  width: min(220px, 42vw);
  min-height: 34px;
  padding: 7px 10px;
}

.financial-integrity-detail .appointment-brief-actions {
  align-items: flex-start;
  flex-wrap: wrap;
}

.financial-integrity-history {
  overflow: visible;
}

.financial-integrity-history-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.financial-integrity-history-head h2 {
  margin-bottom: 4px;
}

.financial-integrity-history-head p,
.financial-integrity-history-head small {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.financial-integrity-event {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: flex-start;
}

.financial-integrity-event span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  font-size: 13px;
}

.financial-integrity-event.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.financial-integrity-event.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.financial-integrity-event.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.financial-integrity-event.is-muted {
  border-left-color: var(--line-strong);
  background: #f8fafc;
}

.financial-integrity-event-note {
  grid-column: 2;
  margin: 2px 0 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.financial-integrity-payload {
  max-height: 360px;
  margin: 0;
  overflow: auto;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 13px;
}

.financial-report-filter-panel {
  margin-bottom: 16px;
}

.financial-report-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 220px)) minmax(260px, 1fr);
  gap: 12px;
  align-items: end;
}

.expense-report-filter {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.expense-report-filter .financial-report-filter-actions {
  grid-column: 1 / -1;
}

.financial-report-filter label {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.financial-report-filter-actions,
.financial-report-periods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.financial-report-periods .is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.financial-report-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .9fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.financial-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.financial-report-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.financial-report-summary-grid > div,
.financial-report-age-list > div {
  display: grid;
  gap: 4px;
  min-height: 98px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: #fff;
}

.financial-report-summary-grid span,
.financial-report-age-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.financial-report-summary-grid strong,
.financial-report-age-list strong {
  color: var(--heading);
  font-size: 28px;
  line-height: 1;
}

.financial-report-summary-grid small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.financial-report-summary-grid .is-success,
.financial-report-age-list .is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.financial-report-summary-grid .is-warning,
.financial-report-age-list .is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.financial-report-summary-grid .is-danger,
.financial-report-age-list .is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.financial-report-summary-grid .is-info,
.financial-report-age-list .is-info {
  border-left-color: var(--brand-blue);
  background: rgba(18, 103, 242, .08);
}

.financial-report-age-list {
  display: grid;
  gap: 10px;
}

.financial-report-table {
  table-layout: fixed;
  width: 100%;
  font-size: 13px;
}

.financial-report-table th,
.financial-report-table td {
  overflow-wrap: anywhere;
}

.financial-report-table th {
  white-space: normal;
}

.financial-report-run.is-failed {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.financial-report-run.is-completed {
  border-left-color: var(--ok);
}

.inline-form,
.form,
.mark-form {
  display: grid;
  gap: 12px;
}

.inline-form {
  grid-template-columns: auto auto;
}

.search-form {
  min-width: min(100%, 420px);
}

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

.appointment-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 16px;
  align-items: start;
}

.appointment-form-main {
  overflow: visible;
}

.appointment-form-stack {
  display: grid;
  gap: 16px;
}

.appointment-form-section {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: rgba(255, 255, 255, .46);
}

.appointment-form-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.appointment-form-section-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.appointment-form-section-head h2 {
  margin: 0;
}

.appointment-form-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 84px;
}

.appointment-form-summary {
  display: grid;
  gap: 12px;
}

.appointment-form-summary h2 {
  margin-bottom: 0;
}

.appointment-form-summary dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.appointment-form-summary dl div {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.appointment-form-summary dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.appointment-form-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.appointment-form-summary dd {
  display: grid;
  gap: 3px;
  margin: 0;
}

.appointment-form-summary strong {
  color: var(--heading);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.appointment-form-summary small,
.appointment-form-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.appointment-form-alerts {
  display: grid;
  gap: 8px;
}

.appointment-cancel-overview {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.appointment-cancel-next-action {
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.appointment-cancel-next-action:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.appointment-cancel-next-action span,
.appointment-cancel-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.appointment-cancel-next-action strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.2;
}

.appointment-cancel-next-action small,
.appointment-cancel-summary-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.appointment-cancel-next-action.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.appointment-cancel-next-action.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.appointment-cancel-next-action.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.appointment-cancel-next-action.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.appointment-cancel-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.appointment-cancel-summary-grid > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.appointment-cancel-summary-grid strong {
  color: var(--heading);
  font-size: 20px;
  line-height: 1.1;
}

.appointment-cancel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.appointment-cancel-main {
  min-width: 0;
}

.appointment-cancel-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 84px;
}

.appointment-cancel-form,
.appointment-cancel-control-panel {
  display: grid;
  gap: 16px;
}

.appointment-cancel-form-head h2,
.appointment-cancel-form-head p,
.appointment-cancel-control-panel h2 {
  margin: 0;
}

.appointment-cancel-form-head p {
  color: var(--muted);
  font-size: 13px;
}

.appointment-cancel-same-day {
  margin: 0;
}

.appointment-cancel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.appointment-cancel-actions .button-link {
  justify-content: center;
}

.appointment-cancel-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.appointment-cancel-check-list li {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.appointment-cancel-check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.appointment-cancel-check-list strong {
  color: var(--heading);
  font-size: 14px;
}

.appointment-cancel-check-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.appointment-move-overview {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.appointment-move-next-action {
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.appointment-move-next-action:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.appointment-move-next-action span,
.appointment-move-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.appointment-move-next-action strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.2;
}

.appointment-move-next-action small,
.appointment-move-summary-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.appointment-move-next-action.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.appointment-move-next-action.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.appointment-move-next-action.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.appointment-move-next-action.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.appointment-move-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.appointment-move-summary-grid > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.appointment-move-summary-grid strong {
  color: var(--heading);
  font-size: 20px;
  line-height: 1.1;
}

.appointment-move-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.appointment-move-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.appointment-move-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 84px;
}

.appointment-move-form,
.appointment-move-slots-panel,
.appointment-move-control-panel {
  display: grid;
  gap: 16px;
}

.appointment-move-form-head h2,
.appointment-move-form-head p,
.appointment-move-panel-head h2,
.appointment-move-panel-head p,
.appointment-move-control-panel h2 {
  margin: 0;
}

.appointment-move-form-head p,
.appointment-move-panel-head p {
  color: var(--muted);
  font-size: 13px;
}

.appointment-move-hold {
  margin: 0;
}

.appointment-move-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.appointment-move-actions .button-link {
  justify-content: center;
}

.appointment-move-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.appointment-move-check-list li {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.appointment-move-check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.appointment-move-check-list strong {
  color: var(--heading);
  font-size: 14px;
}

.appointment-move-check-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.object-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 16px;
  align-items: start;
}

.object-form-main,
.object-form-control {
  display: grid;
  gap: 16px;
  overflow: visible;
}

.object-form-head h2,
.object-form-head p,
.object-form-control h2 {
  margin: 0;
}

.object-form-head p {
  color: var(--muted);
  font-size: 13px;
}

.object-form-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 84px;
}

.object-form-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.object-form-check-list li {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.object-form-check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.object-form-check-list strong {
  color: var(--heading);
  font-size: 14px;
}

.object-form-check-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.placeholder-reference {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.placeholder-reference h3,
.placeholder-reference p {
  margin: 0;
}

.placeholder-reference h3 {
  color: var(--heading);
  font-size: 15px;
}

.placeholder-reference p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.placeholder-reference details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.placeholder-reference summary {
  color: var(--heading);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.placeholder-token-grid {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.placeholder-token-grid code {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--heading);
  display: block;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  padding: 5px 6px;
}

.object-form-actions {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.object-form-actions button,
.object-form-actions .button-link {
  justify-content: center;
  width: 100%;
}

.form-errors,
.field-error {
  color: var(--danger);
  font-size: 13px;
}

.form-errors {
  grid-column: 1 / -1;
}

.timesheet-filter-panel {
  margin-bottom: 16px;
  overflow: visible;
}

.timesheet-filter-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(170px, 240px)) auto;
  gap: 12px;
  align-items: end;
}

.timesheet-filter-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.timesheet-filter-form button {
  min-width: 150px;
}

.timesheet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.timesheet-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.timesheet-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 84px;
}

.timesheet-action-panel {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  overflow: visible;
}

.timesheet-action-panel h2,
.timesheet-action-panel p {
  margin: 0;
}

.timesheet-action-panel p,
.timesheet-table-head p {
  color: var(--muted);
  font-size: 13px;
}

.timesheet-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.timesheet-table-panel {
  display: grid;
  gap: 12px;
}

.timesheet-mobile-table td,
.timesheet-mobile-table tfoot th {
  vertical-align: top;
}

.timesheet-table-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.timesheet-table-head h2,
.timesheet-table-head p {
  margin: 0;
}

.timesheet-table-head span {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.timesheet-summary .appointment-attention-item.is-success,
.appointment-attention-item.is-success {
  border-color: rgba(0, 164, 67, .26);
  background: var(--ok-soft);
}

.grant-filter-panel {
  margin-bottom: 16px;
  overflow: visible;
}

.grant-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px) minmax(170px, 220px) auto;
  gap: 12px;
  align-items: end;
}

.grant-filter-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.grant-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.grant-report-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.grant-summary-panel,
.grant-control-panel {
  display: grid;
  gap: 12px;
}

.grant-control-panel h2 {
  margin-bottom: 0;
}

.grant-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.grant-summary-grid > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: rgba(255, 255, 255, .72);
}

.grant-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.grant-summary-grid strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.grant-summary-grid small {
  color: var(--muted);
  font-size: 13px;
}

.import-command {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.import-next-action {
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.import-next-action:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.import-next-action span,
.import-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.import-next-action strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.2;
}

.import-next-action small,
.import-summary-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.import-next-action.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.import-next-action.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.import-next-action.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.import-next-action.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.import-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.import-summary-grid > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.import-summary-grid strong {
  color: var(--heading);
  font-size: 20px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.import-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.import-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 84px;
}

.import-panel,
.import-control-panel {
  display: grid;
  gap: 12px;
}

.import-panel-head h2,
.import-panel-head p,
.import-control-panel h2,
.import-control-panel p {
  margin: 0;
}

.import-panel-head p,
.import-control-panel p {
  color: var(--muted);
  font-size: 13px;
}

.import-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.import-check-list li {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.import-check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.import-check-list strong {
  color: var(--heading);
  font-size: 14px;
}

.import-check-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.import-rows-table tr.is-invalid {
  background: var(--danger-soft);
}

.import-rows-table tr.is-warning {
  background: var(--warn-soft);
}

.import-row-status {
  display: grid;
  gap: 6px;
}

.import-cell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px 12px;
}

.import-cell-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.import-cell-grid strong {
  display: block;
  font-size: 14px;
}

.import-warning {
  color: var(--warn);
  font-size: 13px;
}

.directory-overview {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.directory-next-action {
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.directory-next-action:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.directory-next-action span,
.directory-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.directory-next-action strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.2;
}

.directory-next-action small,
.directory-summary-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.directory-next-action.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.directory-next-action.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.directory-next-action.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.directory-next-action.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.directory-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.directory-summary-grid > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.directory-summary-grid strong {
  color: var(--heading);
  font-size: 20px;
  line-height: 1.1;
}

.reschedule-plan-overview {
  grid-template-columns: minmax(0, 1fr);
}

.reschedule-plan-overview .directory-summary-grid {
  grid-column: 1 / -1;
}

.reschedule-metrics-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
}

.reschedule-metrics-head h2,
.reschedule-metrics-head p {
  margin: 0;
}

.reschedule-metrics-head h2 {
  color: var(--heading);
  font-size: 16px;
}

.reschedule-metrics-head p {
  color: var(--muted);
  font-size: 13px;
}

.directory-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

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

.directory-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 84px;
}

.directory-panel,
.directory-control-panel {
  display: grid;
  gap: 12px;
}

.directory-panel-head h2,
.directory-panel-head p,
.directory-control-panel h2 {
  margin: 0;
}

.directory-panel-head p {
  color: var(--muted);
  font-size: 13px;
}

.directory-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.directory-check-list li {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.directory-check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.directory-check-list strong {
  color: var(--heading);
  font-size: 14px;
}

.directory-check-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.expense-filter-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
}

.expense-filter-form label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.expense-filter-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.expense-filter-actions {
  display: flex;
  gap: 8px;
}

.expense-filter-actions button,
.expense-filter-actions .button-link {
  min-height: 40px;
  white-space: nowrap;
}

.expense-split-list {
  display: grid;
  gap: 2px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.expense-split-panel {
  overflow: visible;
}

.expense-split-table select,
.expense-split-table input,
.expense-split-table textarea {
  min-width: 160px;
}

.expense-delete-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.directory-table .color-dot,
.color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.payroll-sheet-overview {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.payroll-sheet-next-action {
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.payroll-sheet-next-action:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.payroll-sheet-next-action span,
.payroll-sheet-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.payroll-sheet-next-action strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.2;
}

.payroll-sheet-next-action small,
.payroll-sheet-summary-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.payroll-sheet-next-action.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.payroll-sheet-next-action.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.payroll-sheet-next-action.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.payroll-sheet-next-action.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.payroll-sheet-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.payroll-sheet-summary-grid > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.payroll-sheet-summary-grid strong {
  color: var(--heading);
  font-size: 20px;
  line-height: 1.1;
}

.payroll-sheet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.payroll-sheet-main {
  min-width: 0;
}

.payroll-sheet-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 84px;
}

.payroll-sheet-panel,
.payroll-sheet-control-panel {
  display: grid;
  gap: 12px;
}

.payroll-sheet-panel-head h2,
.payroll-sheet-panel-head p,
.payroll-sheet-control-panel h2 {
  margin: 0;
}

.payroll-sheet-panel-head p {
  color: var(--muted);
  font-size: 13px;
}

.payroll-sheet-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.payroll-sheet-check-list li {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.payroll-sheet-check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.payroll-sheet-check-list strong {
  color: var(--heading);
  font-size: 14px;
}

.payroll-sheet-check-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.payroll-sheet-actions {
  display: grid;
  gap: 8px;
}

.payroll-sheet-actions button,
.payroll-sheet-control-panel .button-link {
  justify-content: center;
  width: 100%;
}

.payroll-sheet-table td {
  vertical-align: top;
}

.mass-reschedule-overview {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.mass-reschedule-next-action {
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.mass-reschedule-next-action:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.mass-reschedule-next-action span,
.mass-reschedule-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.mass-reschedule-next-action strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.2;
}

.mass-reschedule-next-action small,
.mass-reschedule-summary-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.mass-reschedule-next-action.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.mass-reschedule-next-action.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.mass-reschedule-next-action.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.mass-reschedule-next-action.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.mass-reschedule-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.mass-reschedule-summary-grid > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.mass-reschedule-summary-grid strong {
  color: var(--heading);
  font-size: 20px;
  line-height: 1.1;
}

.mass-reschedule-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.mass-reschedule-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.mass-reschedule-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 84px;
}

.mass-reschedule-form,
.mass-reschedule-control-panel {
  display: grid;
  gap: 16px;
}

.mass-reschedule-form-head h2,
.mass-reschedule-form-head p,
.mass-reschedule-control-panel h2 {
  margin: 0;
}

.mass-reschedule-form-head p {
  color: var(--muted);
  font-size: 13px;
}

.mass-reschedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mass-reschedule-actions .button-link {
  justify-content: center;
}

.mass-reschedule-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mass-reschedule-check-list li {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.mass-reschedule-check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mass-reschedule-check-list strong {
  color: var(--heading);
  font-size: 14px;
}

.mass-reschedule-check-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.mass-reschedule-result:empty {
  display: none;
}

.payment-overview {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.payment-next-action {
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.payment-next-action:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.payment-next-action span,
.payment-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.payment-next-action strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.2;
}

.payment-next-action small,
.payment-summary-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.payment-next-action.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.payment-next-action.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.payment-next-action.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.payment-next-action.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.payment-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.payment-summary-grid > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.payment-summary-grid strong {
  color: var(--heading);
  font-size: 20px;
  line-height: 1.1;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

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

.payment-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 84px;
}

.payment-form,
.payment-control-panel {
  display: grid;
  gap: 16px;
}

.payment-form-head h2,
.payment-form-head p,
.payment-control-panel h2 {
  margin: 0;
}

.payment-form-head p {
  color: var(--muted);
  font-size: 13px;
}

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-actions .button-link {
  justify-content: center;
}

.payment-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.payment-check-list li {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.payment-check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.payment-check-list strong {
  color: var(--heading);
  font-size: 14px;
}

.payment-check-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.balance-overview {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.balance-next-action {
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.balance-next-action:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.balance-next-action span,
.balance-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.balance-next-action strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.2;
}

.balance-next-action small,
.balance-summary-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.balance-next-action.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.balance-next-action.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.balance-next-action.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.balance-next-action.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.balance-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.balance-summary-grid > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.balance-summary-grid strong {
  color: var(--heading);
  font-size: 20px;
  line-height: 1.1;
}

.balance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

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

.balance-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 84px;
}

.balance-panel,
.balance-control-panel {
  display: grid;
  gap: 12px;
}

.balance-panel-head h2,
.balance-panel-head p,
.balance-control-panel h2 {
  margin: 0;
}

.balance-panel-head p {
  color: var(--muted);
  font-size: 13px;
}

.balance-check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.balance-check-list li {
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.balance-check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.balance-check-list strong {
  color: var(--heading);
  font-size: 14px;
}

.balance-check-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.balance-table td {
  vertical-align: top;
}

.balance-account-source,
.account-origin {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.account-origin {
  flex-wrap: wrap;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.account-origin .status-pill {
  padding: 2px 7px;
  font-size: 11px;
}

.recipient-overview {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.recipient-next-action {
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.recipient-next-action:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.recipient-next-action span,
.recipient-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.recipient-next-action strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.2;
}

.recipient-next-action small,
.recipient-summary-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.recipient-next-action.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.recipient-next-action.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.recipient-next-action.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.recipient-next-action.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.recipient-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.recipient-summary-grid > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.recipient-summary-grid strong {
  color: var(--heading);
  font-size: 20px;
  line-height: 1.1;
}

.recipient-balance-actions {
  white-space: nowrap;
}

.recipient-detail-table td {
  vertical-align: top;
}

.recipient-detail-actions {
  text-align: right;
  white-space: nowrap;
}

.recipient-certificates-panel {
  grid-column: 1 / -1;
}

.transfer-overview {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.transfer-next-action {
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.transfer-next-action:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.transfer-next-action span,
.transfer-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.transfer-next-action strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.2;
}

.transfer-next-action small,
.transfer-summary-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.transfer-next-action.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.transfer-next-action.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.transfer-next-action.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.transfer-next-action.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.transfer-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.transfer-summary-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.transfer-summary-grid strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.15;
}

.transfer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.transfer-main {
  display: grid;
  gap: 16px;
}

.transfer-sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 12px;
}

.transfer-panel-head h2,
.transfer-panel-head p,
.transfer-control-panel h2 {
  margin: 0;
}

.transfer-panel-head p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.transfer-check-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.transfer-check-list li {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.transfer-check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.transfer-check-list strong {
  color: var(--heading);
  font-size: 14px;
}

.transfer-check-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.recommendation-overview {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.recommendation-next-action {
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.recommendation-next-action:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.recommendation-next-action span,
.recommendation-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.recommendation-next-action strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.2;
}

.recommendation-next-action small,
.recommendation-summary-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.recommendation-next-action.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.recommendation-next-action.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.recommendation-next-action.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.recommendation-next-action.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.recommendation-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.recommendation-summary-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.recommendation-summary-grid strong {
  color: var(--heading);
  font-size: 20px;
  line-height: 1.1;
}

.recommendation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.recommendation-panel {
  display: grid;
  gap: 16px;
}

.recommendation-sidebar {
  position: sticky;
  top: 84px;
}

.recommendation-panel-head h2,
.recommendation-panel-head p,
.recommendation-control-panel h2 {
  margin: 0;
}

.recommendation-panel-head p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.recommendation-table td {
  vertical-align: top;
}

.recommendation-table td strong,
.recommendation-table td small {
  display: block;
}

.recommendation-check-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.recommendation-check-list li {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.recommendation-check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.recommendation-check-list strong {
  color: var(--heading);
  font-size: 14px;
}

.recommendation-check-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.document-overview {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.document-next-action {
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.document-next-action:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.document-next-action span,
.document-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.document-next-action strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.2;
}

.document-next-action small,
.document-summary-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.document-next-action.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.document-next-action.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.document-next-action.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.document-next-action.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.document-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.document-summary-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.document-summary-grid strong {
  color: var(--heading);
  font-size: 20px;
  line-height: 1.1;
}

.document-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.document-panel {
  display: grid;
  gap: 16px;
}

.document-sidebar {
  position: sticky;
  top: 84px;
}

.document-panel-head h2,
.document-panel-head p,
.document-control-panel h2 {
  margin: 0;
}

.document-panel-head p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.document-table td {
  vertical-align: top;
}

.document-table td strong,
.document-table td small {
  display: block;
}

.document-check-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.document-check-list li {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.document-check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.document-check-list strong {
  color: var(--heading);
  font-size: 14px;
}

.document-check-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.consent-overview {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.consent-next-action {
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.consent-next-action:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.consent-next-action span,
.consent-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.consent-next-action strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.2;
}

.consent-next-action small,
.consent-summary-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.consent-next-action.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.consent-next-action.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.consent-next-action.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.consent-next-action.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.consent-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.consent-summary-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.consent-summary-grid strong {
  color: var(--heading);
  font-size: 20px;
  line-height: 1.1;
}

.consent-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.consent-panel {
  display: grid;
  gap: 16px;
}

.consent-sidebar {
  position: sticky;
  top: 84px;
}

.consent-panel-head h2,
.consent-panel-head p,
.consent-control-panel h2 {
  margin: 0;
}

.consent-panel-head p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.consent-table td {
  vertical-align: top;
}

.consent-check-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.consent-check-list li {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.consent-check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.consent-check-list strong {
  color: var(--heading);
  font-size: 14px;
}

.consent-check-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.support-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.support-form-panel {
  display: grid;
  gap: 16px;
}

.support-form-sidebar {
  position: sticky;
  top: 84px;
}

.support-form-head h2,
.support-form-head p,
.support-form-control h2 {
  margin: 0;
}

.support-form-head p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.support-form-control ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.support-form-control li {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.support-form-control li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.support-form-control strong {
  color: var(--heading);
  font-size: 14px;
}

.support-form-control span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.tomorrow-overview {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.tomorrow-next-action {
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.tomorrow-next-action:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.tomorrow-next-action span,
.tomorrow-summary-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.tomorrow-next-action strong {
  color: var(--heading);
  font-size: 18px;
  line-height: 1.2;
}

.tomorrow-next-action small,
.tomorrow-summary-grid small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.tomorrow-next-action.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.tomorrow-next-action.is-danger {
  border-left-color: var(--danger);
  background: var(--danger-soft);
}

.tomorrow-next-action.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.tomorrow-next-action.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.tomorrow-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.tomorrow-summary-grid > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.tomorrow-summary-grid strong {
  color: var(--heading);
  font-size: 20px;
  line-height: 1.1;
}

.tomorrow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.tomorrow-main {
  display: grid;
  gap: 16px;
}

.tomorrow-sidebar {
  position: sticky;
  top: 84px;
}

.tomorrow-panel {
  display: grid;
  gap: 14px;
}

.tomorrow-panel-head h2,
.tomorrow-panel-head p,
.tomorrow-control-panel h2 {
  margin: 0;
}

.tomorrow-panel-head p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.tomorrow-table td {
  vertical-align: top;
}

.tomorrow-table td small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.tomorrow-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tomorrow-list li {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface-subtle);
}

.tomorrow-list span,
.tomorrow-list small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.tomorrow-check-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.tomorrow-check-list li {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.tomorrow-check-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tomorrow-check-list strong {
  color: var(--heading);
  font-size: 14px;
}

.tomorrow-check-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.table-actions {
  text-align: right;
  white-space: nowrap;
}

.form-wide {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

input,
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.rm-native-select {
  position: absolute !important;
  width: 1px !important;
  min-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.rm-combobox {
  position: relative;
  width: 100%;
  min-width: 0;
}

.rm-combobox-input {
  padding-right: 42px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .64)),
    var(--surface);
}

.rm-combobox-sm .rm-combobox-input {
  min-height: 31px;
  padding: 5px 34px 5px 10px;
  font-size: 13px;
}

.rm-combobox-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  z-index: 2;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.rm-combobox-toggle:hover {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: none;
}

.rm-combobox-list {
  position: absolute;
  z-index: 1500;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  max-height: 280px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(245, 250, 252, .9)),
    repeating-linear-gradient(0deg, rgba(8, 35, 44, .025) 0 2px, transparent 2px 4px);
  box-shadow: var(--shadow-lg);
  backdrop-filter: var(--glass-blur);
}

.rm-combobox.is-open .rm-combobox-list {
  display: grid;
  gap: 3px;
}

.rm-combobox-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.rm-combobox-option:hover,
.rm-combobox-option.is-active {
  border-color: rgba(0, 164, 67, .2);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: none;
}

.rm-combobox-option:disabled {
  opacity: .48;
  cursor: not-allowed;
}

.rm-combobox-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rm-combobox-empty,
.rm-combobox-more {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.rm-combobox-more {
  border-top: 1px solid var(--line);
}

.rm-combobox.is-invalid .rm-combobox-input {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(198, 40, 23, .16);
}

.rm-combobox.is-disabled {
  opacity: .62;
}

.compact-form {
  min-width: 280px;
}

.signed-archive-upload {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.signed-archive-upload input[type="file"] {
  font-size: 12px;
  min-height: 30px;
  max-width: 170px;
  padding: 4px 6px;
}

.facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.facts div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.facts dd {
  margin: 0;
  font-size: 14px;
}

.note-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: #f8fafc;
  font-size: 14px;
  margin: 8px 0;
}

.slot-list {
  display: grid;
  gap: 8px;
}

.slot-link {
  display: grid;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #fff;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}

.slot-link:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-sm);
}

.slot-link small {
  color: var(--muted);
}

.shift-candidate {
  background: #fff7ed;
  border-color: #fed7aa;
}

.shift-candidate .small-action {
  justify-self: start;
  margin-top: 4px;
}

.warning-panel {
  border-color: #fedf89;
  background: var(--warn-soft);
}

.warning-panel p {
  margin-top: 0;
}

.staff-ops {
  margin-bottom: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.personal-requests-link {
  display: grid;
  gap: .25rem;
  flex: 0 1 22rem;
  min-width: 0;
  margin: .5rem 0 .5rem 1rem;
  padding: .5rem .75rem;
  border: 1px solid var(--accent-hover);
  border-radius: var(--radius-sm);
  background: var(--ok-soft);
  color: var(--text);
  font-size: .875rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.personal-requests-link:hover,
.personal-requests-link:focus-visible {
  color: var(--heading);
  outline: 2px solid var(--accent-hover);
  outline-offset: 2px;
}

.personal-requests-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .75rem;
}

.staff-requests-panel {
  border: 2px solid var(--accent-hover);
  scroll-margin-top: 12rem;
}

.staff-requests-panel:target {
  box-shadow: 0 0 0 4px var(--accent-light);
}

.staff-request-list {
  display: grid;
  gap: .75rem;
  padding: 0;
  margin: 1rem 0;
  list-style: none;
}

.staff-request-card {
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--muted);
  border-radius: var(--radius-sm);
  padding: 1rem;
  background: var(--surface-strong);
  overflow-wrap: anywhere;
}

.staff-request-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1rem;
}

.staff-request-decision:not(:empty) {
  margin-top: .75rem;
}

.staff-request-decision p {
  margin: .25rem 0;
}

.request-status {
  display: inline-block;
  padding: .25rem .75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
}

.staff-request-card.is-approved { border-left-color: var(--ok); }
.staff-request-card.is-pending { border-left-color: var(--warn); }
.staff-request-card.is-rejected { border-left-color: var(--danger); }
.request-status.is-approved { background: var(--ok-soft); }
.request-status.is-pending { background: var(--warn-soft); }
.request-status.is-rejected { background: var(--danger-soft); }

.staff-request-form-heading {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--line-strong);
}

@media (max-width: 991px) {
  .personal-requests-link {
    flex-basis: 100%;
    margin: .5rem 0 0;
  }
}

.compact-stack {
  margin-top: 14px;
}

.public-confirmation-shell {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(260px, 340px);
  gap: 16px;
  align-items: start;
}

.public-confirmation {
  display: grid;
  gap: 16px;
  max-width: none;
}

.public-confirmation-next {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px;
  background: var(--surface-subtle);
  color: inherit;
  text-decoration: none;
}

.public-confirmation-next:hover {
  border-color: var(--accent);
  border-left-color: var(--accent);
}

.public-confirmation-next span,
.public-confirmation-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.public-confirmation-next strong {
  color: var(--heading);
  font-size: 18px;
}

.public-confirmation-next small,
.public-confirmation-summary small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
}

.public-confirmation-next.is-warning {
  border-left-color: var(--warn);
  background: var(--warn-soft);
}

.public-confirmation-next.is-info {
  border-left-color: #1267f2;
  background: rgba(18, 103, 242, .08);
}

.public-confirmation-next.is-success {
  border-left-color: var(--ok);
  background: var(--ok-soft);
}

.public-confirmation-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.public-confirmation-summary > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: var(--surface-subtle);
}

.public-confirmation-summary strong {
  color: var(--heading);
  font-size: 17px;
  line-height: 1.15;
}

.public-confirmation-sidebar {
  position: sticky;
  top: 84px;
}

.public-confirmation-control h2 {
  margin: 0 0 12px;
}

.public-confirmation-checks {
  display: grid;
  gap: 10px;
}

.public-confirmation-checks > div {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.public-confirmation-checks > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.public-confirmation-checks strong {
  color: var(--heading);
  font-size: 14px;
}

.public-confirmation-checks span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.calendar-card textarea {
  min-height: 64px;
  resize: vertical;
}

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

.field span:first-child {
  font-weight: 700;
  font-size: 13px;
}

.field span:first-child:after {
  content: ":";
}

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

.participant-billing-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}

.participant-billing-row > button {
  width: 100%;
  min-width: 0;
}

.participant-billing-row strong,
.participant-billing-row small {
  display: block;
}

.participant-billing-row small {
  margin-top: 4px;
  color: var(--muted);
}

.participant-billing-reason textarea {
  min-height: 44px;
}

.participant-billing-reason {
  grid-column: span 2;
}

.participant-attendance-list {
  display: grid;
  gap: 8px;
}

.participant-attendance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
}

.participant-attendance-row strong,
.participant-attendance-row small {
  display: block;
}

.participant-attendance-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .participant-billing-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .participant-billing-row,
  .participant-attendance-row {
    grid-template-columns: 1fr;
  }

  .participant-billing-reason {
    grid-column: auto;
  }
}

.form-error {
  border: 1px solid #fda29b;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 14px;
}

.auth-panel {
  width: min(440px, calc(100vw - 56px));
  margin: 56px auto;
  padding: 0;
}

.auth-panel h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.auth-copy {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

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

.auth-panel .card,
.auth-panel .card-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  backdrop-filter: var(--glass-blur);
}

.auth-panel .card-body {
  padding: 28px;
}

.auth-panel .form-control {
  min-width: 0;
}

.auth-panel .btn-primary {
  border-radius: 999px;
}

@media (max-width: 520px) {
  .auth-panel {
    margin: 36px auto;
  }

  .auth-panel .card-body {
    padding: 20px;
  }
}

code {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  background: var(--bg);
  font-size: 13px;
}

.page-header .icon {
  font-size: 22px;
  margin-right: 4px;
}

.ops-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255,255,255,.97), rgba(255,253,247,.98)) padding-box,
    var(--rainbow) border-box;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.ops-hero h1 {
  margin: 0 0 6px;
  color: var(--heading);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: break-word;
}

.ops-hero p {
  color: var(--muted);
}

.ops-eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ops-hero-status {
  min-width: 154px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.88);
  text-align: center;
  position: relative;
  z-index: 1;
}

.ops-status-number {
  display: block;
  color: var(--heading);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.ops-hero-status span:last-child {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.ops-focus {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, .76);
  box-shadow: var(--shadow-sm);
}

.ops-focus-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.ops-focus-head h2,
.ops-focus-head p {
  margin: 0;
}

.ops-focus-head p {
  color: var(--muted);
  font-size: 13px;
}

.ops-focus-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.ops-focus-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.ops-focus-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.ops-focus-item span {
  grid-row: span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 19px;
  font-weight: 900;
}

.ops-focus-item strong {
  color: var(--heading);
  font-size: 14px;
  line-height: 1.2;
}

.ops-focus-item small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.ops-focus-item.is-warning {
  border-color: rgba(211, 91, 0, .28);
  background: var(--warn-soft);
}

.ops-focus-item.is-warning span {
  background: #fff7ed;
  color: var(--warn);
}

.ops-focus-item.is-danger {
  border-color: rgba(198, 40, 23, .28);
  background: var(--danger-soft);
}

.ops-focus-item.is-danger span {
  background: #fff1f2;
  color: var(--danger);
}

.ops-focus-item.is-info {
  border-color: rgba(18, 103, 242, .24);
  background: rgba(18, 103, 242, .08);
}

.ops-focus-item.is-info span {
  background: rgba(18, 103, 242, .11);
  color: #1267f2;
}

.ops-focus-item.is-success {
  border-color: rgba(0, 164, 67, .26);
  background: var(--ok-soft);
}

.ops-focus-item.is-success span {
  background: #e8f7ee;
  color: var(--ok);
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.quick-action {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--surface-warm));
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

.quick-action:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.quick-action.primary {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), #16b85b);
  color: #fff;
}

.quick-action.primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.quick-action i {
  font-size: 20px;
  line-height: 1;
}

.ops-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px;
}

.ops-metric {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fffdf8);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.ops-metric:nth-child(2) {
  border-top: 4px solid var(--brand-orange);
}

.ops-metric:nth-child(3) {
  border-top: 4px solid var(--brand-red);
}

.ops-metric:nth-child(4) {
  border-top: 4px solid var(--brand-violet);
}

.ops-metric:nth-child(5) {
  border-top: 4px solid var(--brand-blue);
}

.ops-metric:nth-child(6) {
  border-top: 4px solid var(--brand-lime);
}

.ops-metric:nth-child(7) {
  border-top: 4px solid var(--accent);
}

.ops-metric.needs-action:hover {
  border-color: var(--warn);
  background: var(--warn-soft);
}

.ops-metric-value {
  display: block;
  color: var(--heading);
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.ops-metric span:last-child {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.ops-panel {
  height: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-sm);
}

.ops-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.ops-panel-head h2 {
  margin-bottom: 2px;
  font-size: 18px;
}

.ops-panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.panel-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-warm);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.panel-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ops-table th {
  border-top: 0;
  white-space: nowrap;
}

.compact-timeline,
.load-list {
  display: grid;
  gap: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 4px 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  color: inherit;
  text-decoration: none;
}

.timeline-item:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.timeline-item span {
  grid-row: span 2;
  color: var(--accent);
  font-weight: 800;
}

.timeline-item strong,
.timeline-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-item small {
  color: var(--muted);
}

.load-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.load-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.load-row strong {
  min-width: 36px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  text-align: center;
}

.wizard-shell {
  display: grid;
  gap: 16px;
}

.wizard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.wizard-main {
  overflow: visible;
}

.wizard-form-stack {
  display: grid;
  gap: 16px;
}

.wizard-step {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: rgba(255, 255, 255, .46);
}

.wizard-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wizard-step-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.wizard-step-head h2 {
  margin: 0;
}

.wizard-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 84px;
}

.wizard-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.wizard-sidebar .wizard-summary {
  grid-template-columns: 1fr;
}

.wizard-summary h2 {
  margin-bottom: 0;
}

.wizard-summary dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.wizard-summary dl div {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.wizard-summary dl div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.wizard-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .3px;
}

.wizard-summary dd {
  display: grid;
  gap: 3px;
  margin: 0;
}

.wizard-summary strong {
  color: var(--heading);
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.wizard-summary small,
.wizard-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.wizard-summary > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .72);
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.weekday-picker ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.weekday-picker label,
.check-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.weekday-picker label {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .78);
  font-weight: 800;
}

.weekday-picker input,
.check-field input {
  width: auto;
  min-height: auto;
}

.auto-pick-field select {
  border-color: rgba(18, 103, 242, .35);
  background:
    linear-gradient(135deg, rgba(18, 103, 242, .08), rgba(255, 255, 255, .8)),
    rgba(255, 255, 255, .78);
}

.wizard-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .72);
}

.wizard-preview-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.wizard-preview-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.wizard-preview-head p {
  margin: 0;
  color: var(--muted);
}

.wizard-preview-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 220px;
}

.wizard-preview-stats span {
  padding: 6px 10px;
  border: 1px solid rgba(18, 103, 242, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 800px) {
  .topbar,
  .page-header,
  .ops-hero,
  .ops-focus-head,
  .ops-panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .ops-hero {
    display: flex;
  }

  .ops-hero-status {
    min-width: 0;
  }

  .ops-hero {
    padding: 18px;
  }

  .ops-hero h1 {
    font-size: 25px;
  }

  .appointment-brief-head {
    flex-direction: column;
  }

  .appointment-brief-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    width: 100%;
  }

  .appointment-brief-actions .button-link {
    justify-content: center;
  }

  .appointment-brief-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wizard-preview-head {
    display: grid;
  }

  .wizard-preview-stats {
    justify-content: flex-start;
    min-width: 0;
  }

  .financial-report-filter,
  .financial-report-overview,
  .financial-report-grid {
    grid-template-columns: 1fr;
  }

  .financial-report-filter-actions {
    display: grid;
    align-items: stretch;
  }

  .financial-report-filter-actions button,
  .financial-report-periods .panel-link {
    justify-content: center;
    width: 100%;
  }

  .financial-report-periods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .financial-report-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-wizard-table-wrap {
    overflow: visible;
  }

  .program-wizard-table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .program-wizard-table thead {
    display: none;
  }

  .program-wizard-table tbody,
  .program-wizard-table tr,
  .program-wizard-table td {
    display: block;
    width: 100%;
  }

  .program-wizard-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 10px;
  }

  .program-wizard-table td {
    border: 0;
    padding: 5px 0;
    text-align: left !important;
    white-space: normal;
  }

  .program-wizard-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
  }

  .ops-table-wrap {
    overflow: visible;
  }

  .ops-table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .ops-table thead {
    display: none;
  }

  .ops-table tbody,
  .ops-table tr,
  .ops-table td {
    display: block;
    width: 100%;
  }

  .ops-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 10px;
  }

  .ops-table td {
    border: 0;
    padding: 5px 0;
    text-align: left !important;
    white-space: normal;
  }

  .ops-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
  }

  .tomorrow-table-wrap {
    overflow: visible;
  }

  .tomorrow-table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .tomorrow-table thead {
    display: none;
  }

  .tomorrow-table tbody,
  .tomorrow-table tr,
  .tomorrow-table td {
    display: block;
    width: 100%;
  }

  .tomorrow-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 10px;
  }

  .tomorrow-table td {
    border: 0;
    padding: 5px 0;
    text-align: left !important;
    white-space: normal;
  }

  .tomorrow-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
  }

  .queue-balance-table-wrap {
    overflow: visible;
  }

  .queue-balance-table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .queue-balance-table thead {
    display: none;
  }

  .queue-balance-table tbody,
  .queue-balance-table tr,
  .queue-balance-table td {
    display: block;
    width: 100%;
  }

  .queue-balance-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 10px;
  }

  .queue-balance-table td {
    border: 0;
    padding: 5px 0;
    text-align: left !important;
    white-space: normal;
  }

  .queue-balance-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
  }

  .queue-balance-actions {
    display: grid;
    gap: 6px;
    padding-top: 8px;
    text-align: left;
    white-space: normal;
  }

  .queue-balance-actions .small-action {
    width: 100%;
  }

  .directory-table-wrap {
    overflow: visible;
  }

  .directory-table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .directory-table thead {
    display: none;
  }

  .directory-table tbody,
  .directory-table tr,
  .directory-table td {
    display: block;
    width: 100%;
  }

  .directory-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 10px;
  }

  .directory-table td {
    border: 0;
    padding: 5px 0;
    text-align: left !important;
    white-space: normal;
  }

  .directory-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
  }

  .directory-table .table-actions {
    display: grid;
    gap: 6px;
    padding-top: 8px;
    text-align: left;
    white-space: normal;
  }

  .directory-table .table-actions .small-action,
  .directory-table .table-actions button,
  .directory-table .table-actions form {
    width: 100%;
  }

  .directory-table .signed-archive-upload {
    display: grid;
    gap: 6px;
  }

  .directory-table .signed-archive-upload input[type="file"] {
    max-width: 100%;
    width: 100%;
  }

  .import-table-wrap {
    overflow: visible;
  }

  .import-columns-table,
  .import-rows-table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .import-columns-table thead,
  .import-rows-table thead {
    display: none;
  }

  .import-columns-table tbody,
  .import-columns-table tr,
  .import-columns-table td,
  .import-rows-table tbody,
  .import-rows-table tr,
  .import-rows-table td {
    display: block;
    width: 100%;
  }

  .import-columns-table tr,
  .import-rows-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 10px;
  }

  .import-columns-table td,
  .import-rows-table td {
    border: 0;
    padding: 5px 0;
    text-align: left !important;
    white-space: normal;
  }

  .import-columns-table td::before,
  .import-rows-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
  }

  .balance-table-wrap {
    overflow: visible;
  }

  .balance-table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .balance-table thead {
    display: none;
  }

  .balance-table tbody,
  .balance-table tr,
  .balance-table td {
    display: block;
    width: 100%;
  }

  .balance-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 10px;
  }

  .balance-table td {
    border: 0;
    padding: 5px 0;
    text-align: left !important;
    white-space: normal;
  }

  .balance-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
  }

  .balance-table .table-actions {
    display: grid;
    gap: 6px;
    padding-top: 8px;
    text-align: left;
    white-space: normal;
  }

  .balance-table .table-actions .small-action,
  .balance-table .table-actions button {
    width: 100%;
  }

  .balance-table .table-actions form[hidden] {
    display: none;
  }

  .financial-report-table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .financial-report-table thead {
    display: none;
  }

  .financial-report-table tbody,
  .financial-report-table tr,
  .financial-report-table td {
    display: block;
    width: 100%;
  }

  .financial-report-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 10px;
  }

  .financial-report-table td {
    border: 0;
    padding: 5px 0;
    text-align: left !important;
    white-space: normal;
  }

  .financial-report-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
  }

  .top-search {
    grid-template-columns: 1fr;
  }

  .metrics,
  .grid.two,
  .detail-grid,
  .queue-grid,
  .queue-command,
  .appointment-form-layout,
  .appointment-cancel-overview,
  .appointment-cancel-layout,
  .appointment-move-overview,
  .appointment-move-layout,
  .object-form-layout,
  .wizard-layout,
  .timesheet-layout,
  .timesheet-filter-form,
  .expense-filter-form,
  .grant-filter-form,
  .grant-report-overview,
  .specialist-overview,
  .import-command,
  .import-layout,
  .directory-overview,
  .directory-layout,
  .payroll-sheet-overview,
  .payroll-sheet-layout,
  .mass-reschedule-overview,
  .mass-reschedule-layout,
  .payment-overview,
  .payment-layout,
  .balance-overview,
  .balance-layout,
  .recipient-overview,
  .transfer-overview,
  .transfer-layout,
  .public-confirmation-shell,
  .recommendation-overview,
  .recommendation-layout,
  .document-overview,
  .document-layout,
  .consent-overview,
  .consent-layout,
  .support-form-layout,
  .tomorrow-overview,
  .tomorrow-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .appointment-form-sidebar,
  .appointment-cancel-sidebar,
  .appointment-move-sidebar,
  .object-form-sidebar,
  .wizard-sidebar,
  .timesheet-sidebar,
  .import-sidebar,
  .directory-sidebar,
  .payroll-sheet-sidebar,
  .mass-reschedule-sidebar,
  .payment-sidebar,
  .balance-sidebar,
  .transfer-sidebar,
  .public-confirmation-sidebar,
  .recommendation-sidebar,
  .document-sidebar,
  .consent-sidebar,
  .support-form-sidebar,
  .tomorrow-sidebar {
    position: static;
  }

  .timesheet-action-panel,
  .timesheet-table-head {
    display: grid;
  }

  .timesheet-actions {
    justify-content: stretch;
  }

  .timesheet-table-panel {
    overflow: visible;
  }

  .timesheet-mobile-table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .timesheet-mobile-table thead {
    display: none;
  }

  .timesheet-mobile-table tbody,
  .timesheet-mobile-table tfoot,
  .timesheet-mobile-table tr,
  .timesheet-mobile-table td,
  .timesheet-mobile-table tfoot th {
    display: block;
    width: 100%;
  }

  .timesheet-mobile-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 10px;
  }

  .timesheet-mobile-table td,
  .timesheet-mobile-table tfoot th {
    border: 0;
    padding: 5px 0;
    text-align: left;
  }

  .timesheet-mobile-table td::before,
  .timesheet-mobile-table tfoot th::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
  }

  .timesheet-mobile-table tfoot tr {
    border-color: var(--accent);
    background: rgba(16, 185, 129, .08);
  }

  .appointment-detail-table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .appointment-detail-table thead {
    display: none;
  }

  .appointment-detail-table tbody,
  .appointment-detail-table tr,
  .appointment-detail-table td {
    display: block;
    width: 100%;
  }

  .appointment-detail-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 10px;
  }

  .appointment-detail-table td {
    border: 0;
    padding: 5px 0;
    text-align: left;
  }

  .appointment-detail-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
  }

  .appointment-detail-table .small-action {
    width: 100%;
    justify-content: center;
  }

  .grant-report-table-wrap {
    overflow: visible;
  }

  .grant-report-table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .grant-report-table thead {
    display: none;
  }

  .grant-report-table tbody,
  .grant-report-table tfoot,
  .grant-report-table tr,
  .grant-report-table td,
  .grant-report-table th {
    display: block;
    width: 100%;
  }

  .grant-report-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 10px;
  }

  .grant-report-table td,
  .grant-report-table th {
    border: 0;
    padding: 5px 0;
    text-align: left !important;
    white-space: normal;
  }

  .grant-report-table td::before,
  .grant-report-table th::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
  }

  .grant-report-table tfoot tr {
    border-color: var(--accent);
    background: rgba(16, 185, 129, .08);
  }

  .grant-report-service-line {
    display: grid;
    gap: 8px;
  }

  .grant-report-service-line .btn,
  .grant-report-table .grant-report-actions .btn,
  .grant-report-table .grant-report-actions button {
    width: 100%;
  }

  .grant-report-table .grant-report-actions {
    display: grid;
    gap: 6px;
    padding-top: 8px;
    text-align: left;
    white-space: normal !important;
  }

  .timesheet-actions .mini-form,
  .timesheet-actions button,
  .grant-filter-actions,
  .grant-filter-actions button,
  .grant-filter-actions .button-link,
  .mass-reschedule-actions button,
  .mass-reschedule-actions .button-link,
  .appointment-cancel-actions button,
  .appointment-cancel-actions .button-link,
  .appointment-move-actions button,
  .appointment-move-actions .button-link,
  .payment-actions button,
  .payment-actions .button-link {
    width: 100%;
  }

  .appointment {
    grid-template-columns: 1fr;
  }

  .header-actions,
  .inline-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .calendar-board,
  .admin-calendar {
    grid-auto-flow: column;
    grid-auto-columns: minmax(245px, 86vw);
    grid-template-columns: none;
  }

  .summary-strip {
    justify-content: stretch;
  }

  .summary-strip div,
  .specialist-quick-links a,
  .mark-actions button {
    flex: 1;
  }

  .recipient-balance-table-wrap {
    overflow: visible;
  }

  .recipient-balance-table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .recipient-balance-table thead {
    display: none;
  }

  .recipient-balance-table tbody,
  .recipient-balance-table tr,
  .recipient-balance-table td {
    display: block;
    width: 100%;
  }

  .recipient-balance-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 10px;
  }

  .recipient-balance-table td {
    border: 0;
    padding: 4px 0;
  }

  .recipient-balance-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
  }

  .recipient-balance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: stretch;
    padding-top: 8px;
    text-align: left !important;
    white-space: normal;
  }

  .recipient-balance-actions::before {
    flex-basis: 100%;
  }

  .recipient-balance-actions .btn {
    flex: 1 1 120px;
    min-width: 0;
  }

  .recipient-detail-table-wrap,
  .program-detail-table-wrap {
    overflow: visible;
  }

  .recipient-detail-table,
  .program-detail-table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .recipient-detail-table thead,
  .program-detail-table thead {
    display: none;
  }

  .recipient-detail-table tbody,
  .recipient-detail-table tr,
  .recipient-detail-table td,
  .program-detail-table tbody,
  .program-detail-table tr,
  .program-detail-table td {
    display: block;
    width: 100%;
  }

  .recipient-detail-table tr,
  .program-detail-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 10px;
  }

  .recipient-detail-table td,
  .program-detail-table td {
    border: 0;
    padding: 4px 0;
    text-align: left !important;
    white-space: normal;
  }

  .recipient-detail-table td::before,
  .program-detail-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
  }

  .recipient-detail-actions {
    display: grid;
    gap: 6px;
    padding-top: 8px;
    text-align: left;
    white-space: normal !important;
  }

  .recipient-detail-actions .btn {
    width: 100%;
  }

  .recommendation-panel .table-wrap,
  .document-panel .table-wrap,
  .consent-panel .table-wrap {
    overflow: visible;
  }

  .recommendation-table,
  .document-table,
  .consent-table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .recommendation-table thead,
  .document-table thead,
  .consent-table thead {
    display: none;
  }

  .recommendation-table tbody,
  .recommendation-table tr,
  .recommendation-table td,
  .document-table tbody,
  .document-table tr,
  .document-table td,
  .consent-table tbody,
  .consent-table tr,
  .consent-table td {
    display: block;
    width: 100%;
  }

  .recommendation-table tr,
  .document-table tr,
  .consent-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 10px;
  }

  .recommendation-table td,
  .document-table td,
  .consent-table td {
    border: 0;
    padding: 5px 0;
    text-align: left !important;
    white-space: normal;
  }

  .recommendation-table td::before,
  .document-table td::before,
  .consent-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
  }

  .recommendation-table .table-actions {
    display: grid;
    gap: 6px;
    padding-top: 8px;
    text-align: left;
    white-space: normal;
  }

  .recommendation-table .table-actions .inline,
  .recommendation-table .table-actions .small-action {
    width: 100%;
  }

  .staff-ops-table-wrap {
    overflow: visible;
  }

  .staff-ops-table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .staff-ops-table thead {
    display: none;
  }

  .staff-ops-table tbody,
  .staff-ops-table tr,
  .staff-ops-table td {
    display: block;
    width: 100%;
  }

  .staff-ops-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 10px;
  }

  .staff-ops-table td {
    border: 0;
    padding: 5px 0;
  }

  .staff-ops-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
  }

  .staff-ops-actions {
    padding-top: 8px;
    text-align: left;
    white-space: normal;
  }

  .staff-ops-actions .mini-form,
  .staff-ops-actions button {
    width: 100%;
  }

  .payroll-sheet-table {
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  .payroll-sheet-table thead {
    display: none;
  }

  .payroll-sheet-table tbody,
  .payroll-sheet-table tr,
  .payroll-sheet-table td {
    display: block;
    width: 100%;
  }

  .payroll-sheet-table tr {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 10px;
  }

  .payroll-sheet-table td {
    border: 0;
    padding: 5px 0;
  }

  .payroll-sheet-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .2px;
    text-transform: uppercase;
  }

  .facts div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .quick-actions,
  .ops-metrics,
  .appointment-brief-grid,
  .appointment-attention-list {
    grid-template-columns: 1fr;
  }

  .quick-action {
    min-height: 48px;
  }

  .ops-metric {
    min-height: 92px;
  }

  .financial-report-periods,
  .financial-report-summary-grid {
    grid-template-columns: 1fr;
  }
}
