:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-2: #eef3f2;
  --ink: #17211f;
  --muted: #62706d;
  --line: #d9e1df;
  --brand: #0f766e;
  --brand-dark: #0b5f59;
  --rose: #b83256;
  --amber: #b7791f;
  --blue: #2b6cb0;
  --green: #25855a;
  --danger: #b42318;
  --shadow: 0 18px 48px rgba(23, 33, 31, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

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

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

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

.sidebar {
  background: #10231f;
  color: #f8fbfa;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.2)),
    var(--brand);
  display: grid;
  place-items: center;
  color: #0f3c37;
  font-weight: 900;
  letter-spacing: 0;
}

.brand h1 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.brand span {
  color: #a8bbb6;
  font-size: 12px;
}

.current-user {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
}

.current-user span,
.field label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.sidebar .current-user span {
  color: #adc4bf;
}

.current-user strong {
  display: block;
  font-size: 16px;
}

.current-user small {
  display: block;
  color: #bcd0cb;
  margin-top: 3px;
  font-size: 12px;
}

.logout-button {
  width: 100%;
  margin-top: 12px;
  min-height: 32px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  color: #e7f1ef;
  font-size: 12px;
}

.logout-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.field input,
.field select,
.field textarea,
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}

.nav {
  display: grid;
  gap: 6px;
}

.nav-button {
  color: #dce8e5;
  background: transparent;
  text-align: left;
  border-radius: 8px;
  padding: 11px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-button.active,
.nav-button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav-icon {
  width: 20px;
  text-align: center;
  color: #8bd3c7;
}

.sidebar-note {
  margin-top: auto;
  color: #a7bbb6;
  font-size: 12px;
  line-height: 1.6;
}

.main {
  min-width: 0;
  padding: 26px 30px 40px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.eyebrow {
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
  margin: 0 0 6px;
}

.topbar h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.topbar p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.btn {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 14px;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.btn.primary {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
}

.btn.primary:hover {
  background: var(--brand-dark);
}

.btn.danger {
  background: #fff3f1;
  border-color: #ffd2cc;
  color: var(--danger);
}

.btn.ghost {
  background: transparent;
}

.icon-only {
  width: 38px;
  min-height: 38px;
  padding: 0;
  justify-content: center;
}

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

.stats-grid {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(23, 33, 31, 0.04);
}

.stat {
  padding: 16px;
}

.stat[data-home-filter] { text-align: left; color: var(--ink); cursor: pointer; }
.stat[data-home-filter]:hover { background: var(--surface-2); }
.stat[data-home-filter]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.stat span {
  color: var(--muted);
  font-size: 12px;
}

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.birthday-summary { margin-top: 20px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.birthday-summary h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.birthday-summary h3 svg { width: 20px; height: 20px; color: var(--brand); }
.birthday-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.birthday-counter { display: grid; grid-template-columns: minmax(0, 1fr) auto 20px; gap: 12px; align-items: center; min-height: 64px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface); text-align: left; cursor: pointer; }
.birthday-counter span { font-size: 14px; }
.birthday-counter strong { font-size: 26px; }
.birthday-counter svg { width: 20px; height: 20px; }
.birthday-counter:hover { background: var(--surface-2); }
.birthday-counter:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.birthday-table { min-width: 600px; }
@media (max-width: 480px) { .birthday-counts { grid-template-columns: 1fr; } }

.content-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.8fr);
  align-items: start;
}

.panel {
  min-width: 0;
  padding: 18px;
}

#contactError { white-space: pre-line; overflow-wrap: anywhere; }

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-header h3 {
  margin: 0;
  font-size: 17px;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.labeled-filter { position: relative; min-width: 0; }
.filter-bar:has([data-filter="clientFollowup"]) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.demographic-filter-toggle { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 42px; padding: 10px 14px; text-align: left; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.demographic-filter-toggle > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demographic-filter-toggle > span:nth-child(2) { flex-shrink: 0; font-size: 12px; }
.demographic-filter-toggle svg { width: 16px; height: 16px; flex-shrink: 0; }
.demographic-filter-toggle[aria-expanded="true"] { border-color: var(--brand); }
.demographic-filter-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.demographic-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 12px; align-items: end; border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 14px; }
.demographic-filters .field { min-width: 0; }
.labeled-filter select { width: 100%; padding-right: 78px; }
.labeled-filter:has([data-filter="clientFollowup"]) select { padding-right: 94px; }
.labeled-filter > span { position: absolute; right: 26px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12px; pointer-events: none; }
.guest-detail-backdrop { position: fixed; inset: 0; z-index: 19; background: rgba(16, 35, 31, 0.35); display: flex; justify-content: flex-end; }
.guest-detail-panel { width: min(620px, 100%); padding: 22px; background: var(--surface); overflow-y: auto; box-shadow: var(--shadow); }
.guest-detail-panel .panel-header { align-items: center; gap: 12px; flex-direction: row; }
.guest-detail-panel .panel-header h3 { font-size: 18px; white-space: nowrap; }
.guest-detail-panel .panel-header .actions { flex-wrap: nowrap; justify-content: flex-end; }
.guest-detail-panel .panel-header .btn { flex: 0 0 auto; }
.guest-detail-panel p { overflow-wrap: anywhere; }
.drawer-container { display: flex; min-width: 0; }
.guest-workspace { display: grid; grid-template-columns: minmax(340px, 0.85fr) minmax(500px, 1.15fr); width: min(1120px, 100vw); height: 100%; background: var(--surface); }
.guest-workspace .drawer { width: auto; min-width: 0; box-shadow: none; border-left: 1px solid var(--line); }
.workspace-detail { min-width: 0; padding: 22px; overflow-y: auto; overflow-wrap: anywhere; }
.guest-workspace .drawer-header { position: sticky; top: 0; z-index: 1; background: var(--surface); padding-bottom: 12px; }
.embedded-followup { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.followup-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.followup-heading h3 { font-size: 17px; margin: 0; }
.followup-heading { flex-wrap: wrap; }
.followup-pool-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 100%; margin-left: auto; }
.member-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); margin-bottom: 16px; }
.member-summary > div { min-width: 0; }
.member-summary span { display: block; color: var(--muted); font-size: 14px; }
.member-summary strong { display: block; font-size: 24px; margin-top: 6px; }
.member-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.member-service-cell { min-width: 180px; }
.member-table { min-width: 1040px; }
.member-table th { white-space: nowrap; }
.member-service-cell > div { margin-top: 6px; }
.member-review { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.member-review h3 { font-size: 17px; }
.photo-item figcaption small { display: block; color: var(--muted); margin-top: 3px; }
@media (max-width: 600px) { .member-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.followup-heading .btn { flex: 0 0 auto; width: 148px; max-width: 100%; justify-content: center; font-size: 16px; }
.drawer-title { flex: 1; min-width: 0; }
.form-error { color: var(--danger); margin: 0; }
.form-error:empty { display: none; }
.followup-date-cell { white-space: nowrap; }
.guest-list-summary { margin: 12px 0; color: var(--muted); font-size: 14px; }
.guest-list-summary strong { color: var(--ink); }
.badge.guest-new-marker { display: block; width: max-content; margin-top: 4px; }
.age-mode { display: flex; gap: 0; }
.age-mode label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: 10px 12px; margin: 0; }
.age-mode input[type="radio"], .todo-control input[type="checkbox"] { width: 16px; height: 16px; padding: 0; }
.age-mode label:has(input:checked) { background: #e5f2ef; color: var(--brand-dark); }
.birth-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.birth-fields > .field { min-width: 0; }
.birth-fields input, .birth-fields select { min-width: 0; }
.birth-fields p { grid-column: 1 / -1; margin: 0; }
.todo-control > label { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 148px; max-width: 100%; min-height: 32px; margin-left: auto; padding: 0 14px; color: var(--ink); font-size: 16px; font-weight: 700; cursor: pointer; }
.todo-control > .field { margin-top: 12px; }
[hidden] { display: none !important; }
@media (max-width: 840px) {
  .guest-workspace { display: block; width: 100%; overflow-y: auto; }
  .guest-workspace .workspace-detail, .guest-workspace .drawer { overflow: visible; border-left: 0; }
  .guest-workspace .drawer { border-top: 1px solid var(--line); }
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

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

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  background: #f8faf9;
}

tr.deleted {
  color: #8a9592;
  background: #faf5f5;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.badge.green {
  background: #e7f5ee;
  color: var(--green);
}

.badge.rose {
  background: #fff0f4;
  color: var(--rose);
}

.badge.blue {
  background: #edf5ff;
  color: var(--blue);
}

.badge.amber {
  background: #fff7e8;
  color: var(--amber);
}

.masked {
  color: #8a9592;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mini-btn {
  border-radius: 7px;
  min-height: 30px;
  padding: 0 9px;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

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

.timeline-item {
  border-left: 3px solid var(--brand);
  padding: 10px 12px;
  background: #f8faf9;
  border-radius: 0 8px 8px 0;
}

.timeline-item strong {
  display: block;
  margin-bottom: 4px;
}

.timeline-item span {
  color: var(--muted);
  font-size: 12px;
}

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

.toggle-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fbfdfc;
}

.toggle-row span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: 0 0 auto;
}

.switch input {
  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c8d2cf;
}

.slider::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  transition: 0.18s ease;
}

.switch input:checked + .slider {
  background: var(--brand);
}

.switch input:checked + .slider::after {
  transform: translateX(20px);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 35, 31, 0.46);
  display: none;
  align-items: stretch;
  justify-content: flex-end;
  z-index: 20;
}

.drawer-backdrop.open {
  display: flex;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 35, 31, 0.46);
}

.modal {
  width: min(100%, 460px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-body {
  padding: 18px;
}

.modal-body p {
  margin: 0 0 10px;
  line-height: 1.7;
}

.modal-note {
  color: var(--muted);
  font-size: 13px;
}

.modal-actions {
  padding: 0 18px 18px;
}

.sensitive-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
}

.sensitive-list div {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8faf9;
}

.sensitive-list dt {
  color: var(--muted);
  font-size: 13px;
}

.sensitive-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.drawer {
  width: min(620px, 100vw);
  background: var(--surface);
  padding: 22px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.drawer-header h3 {
  margin: 0;
  font-size: 22px;
}

.drawer-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.section-title {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--brand);
  font-weight: 800;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 20px;
  color: var(--muted);
  background: #fbfdfc;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: #10231f;
  color: #ffffff;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  z-index: 40;
  display: none;
}

.toast.show {
  display: block;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #10231f;
  grid-template-rows: 1fr auto;
  gap: 24px;
}

.filing-footer {
  padding: 20px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.guest-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.guest-pagination .actions {
  flex-wrap: wrap;
  gap: 8px;
}

.guest-pagination-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.guest-page-jump {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.guest-page-jump input {
  width: 76px;
  min-width: 0;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.filing-footer a {
  color: inherit;
  text-decoration: none;
}

.filing-footer a:hover {
  text-decoration: underline;
}

.login-page > .filing-footer {
  padding: 0;
  color: #b8c9c4;
}

.login-panel {
  width: min(100%, 420px);
  padding: 30px;
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-brand {
  margin-bottom: 34px;
}

.login-brand h1 {
  color: var(--ink);
}

.login-intro h2 {
  margin: 0;
  font-size: 26px;
}

.login-intro > p:last-child {
  margin: 8px 0 22px;
  color: var(--muted);
}

.login-form {
  display: grid;
  gap: 14px;
}

.login-submit {
  justify-content: center;
  margin-top: 4px;
}
.captcha-row { display: flex; gap: 12px; align-items: center; }
.captcha-row input { min-width: 0; flex: 1; text-transform: uppercase; }
.captcha-refresh { padding: 0; flex: 0 0 160px; height: 56px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #edf4f1; cursor: pointer; }
.captcha-refresh img { display: block; width: 160px; height: 56px; }
#loginError { color: #a92c42; margin: 0; }

.login-hint {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 1040px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 14px;
  }

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

  .sidebar-note {
    display: none;
  }

  .content-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .main {
    padding: 18px 14px 28px;
  }

  .topbar,
  .panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .actions {
    justify-content: stretch;
  }

  .actions .btn {
    flex: 1 1 140px;
    justify-content: center;
  }

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

  .filter-bar,
  .demographic-filters,
  .content-grid,
  .stats-grid,
  .permission-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
}
.password-input { position: relative; width: 100%; }
.password-input input { padding-right: 48px; }
.password-toggle { position: absolute; right: 3px; top: 3px; bottom: 3px; width: 40px; padding: 0; display: grid; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 5px; cursor: pointer; }
.password-toggle:hover { background: var(--surface-2); color: var(--ink); }
.password-toggle:focus-visible { outline: 2px solid var(--brand); }
.password-toggle svg { width: 20px; height: 20px; }
.client-avatar-placeholder { width: 64px; height: 64px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.client-avatar-placeholder svg { width: 28px; height: 28px; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.selection-cell { width: 44px; min-width: 44px; text-align: center; }
.guest-number-cell { min-width: 64px; white-space: nowrap; }
.recycle-filter { grid-template-columns: minmax(0, 480px); }
.mini-btn.danger { color: #a92c42; border-color: #e8bac3; }
.purge-acknowledgement { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0; font-size: 14px; }
.purge-acknowledgement input { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: #a92c42; }
#purgeError { color: #a92c42; }
.recycle-detail-modal { max-height: 85vh; overflow-y: auto; }
.audit-table { min-width: 1120px; }
.time-cell { white-space: nowrap; }
.selection-cell input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); cursor: pointer; vertical-align: middle; }
.assignment-toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 12px; color: var(--muted); }
.assignment-clients { padding: 0; margin: 0; list-style: none; max-height: 220px; overflow-y: auto; }
.assignment-clients li { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.assignment-clients small { color: var(--muted); }
.photo-item { margin: 0; position: relative; min-width: 0; }
.photo-open { display: block; padding: 0; width: 100%; border: 1px solid #cddbd7; border-radius: 6px; background: #edf3f1; cursor: zoom-in; overflow: hidden; }
.photo-open img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.photo-item figcaption { font-size: 12px; margin-top: 5px; overflow-wrap: anywhere; }
.photo-remove { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 1px solid #cddbd7; border-radius: 4px; background: white; color: #a92c42; cursor: pointer; font-size: 20px; }
.modal.photo-viewer { width: min(950px, calc(100vw - 28px)); max-height: 92vh; overflow: auto; }
.photo-viewer > img { display: block; width: 100%; max-height: 78vh; object-fit: contain; }
