@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --purple: #6d28d9;
  --ink: #572b82;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  color: var(--slate-900);
  background: var(--slate-100);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
a { color: var(--purple); }

.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: var(--slate-100);
}
.login-card {
  width: min(100%, 28rem);
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
}
.hero-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.34em;
  margin: 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  overflow: visible;
}
.brand-mark {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 0.35rem;
}
.hero-title .brand-mark {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.4rem;
}
.hero-one {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  place-items: center;
  min-width: 4.35em;
  padding: 0.08em 0.44em;
  margin: 0 0.02em;
  border-radius: 999px;
  background:
    radial-gradient(120% 180% at 22% 18%, rgba(255, 255, 255, 0.12) 0 12%, transparent 13%),
    radial-gradient(120% 180% at 78% 82%, rgba(198, 190, 255, 0.16) 0 12%, transparent 13%),
    linear-gradient(90deg, #572B82 0%, #6F68EA 100%);
  background-size: 180% 180%, 180% 180%, 100% 100%;
  background-position: 0% 0%, 100% 100%, 0 0;
  color: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 36px rgba(87, 43, 130, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  vertical-align: middle;
  transform: translateY(-0.02em);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 0.97em;
  overflow: hidden;
  animation: hero-circuit-flow 6.8s ease-in-out infinite;
}
.hero-one > span { position: relative; z-index: 1; }
.hero-one::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    repeating-linear-gradient(135deg,
      transparent 0 13px,
      rgba(244, 240, 255, 0.12) 13px 14px,
      transparent 14px 26px,
      rgba(241, 232, 255, 0.06) 26px 27px,
      transparent 27px 40px),
    repeating-linear-gradient(45deg,
      transparent 0 16px,
      rgba(232, 226, 255, 0.05) 16px 17px,
      transparent 17px 34px),
    radial-gradient(circle, rgba(241, 236, 255, 0.48) 0 1.1px, transparent 1.6px),
    radial-gradient(circle, rgba(214, 210, 255, 0.52) 0 1.1px, transparent 1.6px),
    linear-gradient(90deg, transparent 0 10%, rgba(226, 220, 255, 0.18) 18%, transparent 35%, rgba(218, 212, 255, 0.10) 50%, transparent 65%, rgba(226, 220, 255, 0.18) 82%, transparent 100%);
  background-size: 170% 170%, 160% 160%, 14px 14px, 16px 16px, 200% 100%;
  background-position: 0% 0%, 100% 100%, 0 0, 2px 10px, 0 0;
  opacity: 0.62;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: hero-circuit-pulse 4.6s linear infinite;
}
.hero-one::after {
  content: "";
  position: absolute;
  inset: -18% -10%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 8% 52%, rgba(241, 236, 255, 0.70) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 24% 52%, rgba(225, 220, 255, 0.56) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 44% 52%, rgba(241, 236, 255, 0.68) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 68% 52%, rgba(225, 220, 255, 0.54) 0 1.1px, transparent 1.7px),
    radial-gradient(circle at 92% 52%, rgba(241, 236, 255, 0.72) 0 1.2px, transparent 1.8px),
    linear-gradient(90deg, transparent 0 12%, rgba(226, 220, 255, 0.16) 22%, rgba(232, 228, 255, 0.38) 26%, rgba(226, 220, 255, 0.16) 30%, transparent 44%, rgba(218, 212, 255, 0.10) 58%, rgba(232, 228, 255, 0.28) 64%, rgba(218, 212, 255, 0.10) 70%, transparent 100%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 220% 100%;
  filter: blur(0.1px);
  opacity: 0.58;
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: hero-circuit-run 3.4s linear infinite;
}
@keyframes hero-circuit-pulse {
  0% { background-position: 0% 0%, 100% 100%, 0 0, 6px 8px, 0 0; }
  50% { background-position: 10% 6%, 90% 94%, 14px 6px, 12px 20px, 32% 0; }
  100% { background-position: 0% 0%, 100% 100%, 0 0, 6px 8px, 0 0; }
}
@keyframes hero-circuit-run {
  0% { background-position: -20% 0, -20% 0, 0 0, 6px 8px, 2px 10px, 0 0; }
  50% { background-position: 110% 0, 110% 0, 0 0, 6px 8px, 2px 10px, 0 0; }
  100% { background-position: -20% 0, -20% 0, 0 0, 6px 8px, 2px 10px, 0 0; }
}
@keyframes hero-circuit-flow {
  0% { background-position: 0% 0%, 100% 100%, 0 0; transform: translateY(-0.02em) skewX(0deg); }
  50% { background-position: 10% 10%, 90% 90%, 0 0; transform: translateY(-0.02em) skewX(1deg); }
  100% { background-position: 0% 0%, 100% 100%, 0 0; transform: translateY(-0.02em) skewX(0deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-one,
  .hero-one::before,
  .hero-one::after { animation: none; }
}
.hero-subtitle {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--slate-700);
}
.login-copy { color: var(--slate-500); font-size: 0.92rem; }
.login-warning {
  margin: 0.9rem 0 0;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.4;
}
.login-footer {
  width: min(100%, 28rem);
  margin-top: 0.85rem;
  text-align: center;
}
.login-note {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.68rem;
  line-height: 1.45;
}
.login-note__label {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--slate-700);
  font-weight: 600;
}
.login-card label, .card label, .modal label, .search {
  display: block;
  margin: 0.9rem 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--slate-700);
}
.login-card input, .card input, .card select, .card textarea, .modal input, .modal select, .modal textarea, .search input {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  background: white;
  color: var(--slate-900);
}
.card textarea, .modal textarea { min-height: 5.5rem; resize: vertical; }
.login-button, .primary, .ghost, .danger {
  border-radius: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
}
.login-button, .primary {
  border: 0;
  background: linear-gradient(90deg, #451c86, #7c3aed);
  color: white;
}
.login-button {
  width: 100%;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.login-button img { width: 1.4rem; height: 1.4rem; background: white; border-radius: 999px; }
.ghost, .danger {
  border: 1px solid var(--slate-300);
  background: white;
  color: var(--slate-800);
}
.danger { color: #b91c1c; border-color: #fecaca; background: #fff; }
.login-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
}
.forgot-link { font-weight: 700; text-decoration: none; }
.login-links .forgot-link { font-size: 0.78rem; font-weight: 600; }
.login-links__dot {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  background: #94a3b8;
}
.simulate-button {
  width: 100%;
  margin-top: 0.75rem;
  border: 1px solid var(--slate-300);
  border-radius: 0.9rem;
  background: white;
  color: var(--slate-800);
  font-weight: 700;
  padding: 0.8rem 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(12rem, 1.1fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.2rem;
  padding: 0.55rem 1rem;
  background: white;
  border-bottom: 1px solid var(--slate-200);
}
.brand-lockup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28em;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 1.02rem;
  color: var(--slate-900);
}
.brand-lockup .brand-mark {
  width: 1.45rem;
  height: 1.45rem;
  margin-right: 0.08em;
}
.brand-lockup .hero-one { font-size: 0.92em; min-width: 4.45em; }
.topbar-center {
  min-width: 0;
  text-align: center;
  font-weight: 700;
  color: var(--slate-700);
}
.topbar-center strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--slate-900);
}
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}
.who {
  color: var(--slate-500);
  font-size: 0.78rem;
  font-weight: 600;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-btn, .topbar-actions .ghost {
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  text-decoration: none;
}

.page {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 1rem auto 2rem;
}
.shell {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  align-items: stretch;
  min-height: calc(100vh - 4.2rem);
}
.sidebar {
  position: sticky;
  top: 4.2rem;
  align-self: start;
  height: calc(100vh - 4.2rem);
  background: white;
  border-right: 1px solid var(--slate-200);
  padding: 1rem 0.7rem;
}
.side-label {
  margin: 0.15rem 0.75rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.side-link {
  display: block;
  margin-bottom: 0.25rem;
  padding: 0.72rem 0.8rem;
  border-radius: 0.75rem;
  color: var(--slate-800);
  font-weight: 700;
  text-decoration: none;
}
.side-link:hover { background: var(--slate-100); }
.side-link.is-active { background: #f3e8ff; color: #5b21b6; }
.page-fill {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 1rem 1rem 1.5rem;
}
.shell .grid { height: calc(100vh - 16.5rem); }
.shell .grid-editor { height: calc(100vh - 22rem); min-height: 360px; }
.tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 1rem 0 0.85rem;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 0.45rem;
}
.tab {
  border: 0;
  background: transparent;
  color: var(--slate-500);
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  border-radius: 0.7rem;
}
.tab:hover { background: var(--slate-100); color: var(--slate-800); }
.tab.is-active {
  background: #f3e8ff;
  color: #5b21b6;
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }
.panel-title { margin: 0 0 0.15rem; font-size: 1.15rem; letter-spacing: -0.03em; }
.share-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: start;
  margin-top: 0.9rem;
}
.share-link-block { min-width: 0; }
.share-qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  background: var(--slate-50);
}
.qr-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-500);
}
.qrcode {
  width: 220px;
  height: 220px;
  background: white;
  border-radius: 0.75rem;
  padding: 0.4rem;
  border: 1px solid var(--slate-200);
}
.qrcode img, .qrcode canvas { display: block; width: 100%; height: 100%; }
.guest-toolbar { align-items: flex-end; margin-bottom: 0.35rem; }
.guest-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.corp-domains {
  margin: 0.75rem 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--slate-200);
  border-radius: 0.8rem;
  background: var(--slate-50);
  color: var(--slate-700);
  font-size: 0.86rem;
  line-height: 1.45;
}
.corp-domains strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--slate-900);
}
.reg-fields-list { display: grid; gap: 0.55rem; margin-top: 0.35rem; }
.reg-fields-grid-wrap { margin-top: 0.7rem; }
.grid-reg-fields {
  width: 100%;
  min-height: 120px;
  height: auto;
}
.shell .grid-reg-fields { height: auto; min-height: 120px; }
.ag-theme-quartz .ag-cell.reg-toggle-cell,
.ag-theme-quartz .ag-cell.reg-toggle-cell .ag-cell-wrapper,
.ag-theme-quartz .ag-cell.reg-toggle-cell .ag-cell-value {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100%;
  height: 100%;
  margin: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: center;
}
.reg-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.reg-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin: 0;
  cursor: pointer;
}
.reg-toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.reg-toggle-track {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 2.55rem;
  height: 1.4rem;
  border-radius: 999px;
  background: #94a3b8;
  border: 1px solid #64748b;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.18);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.reg-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.28);
  transition: transform 0.15s ease;
}
.reg-toggle input:checked + .reg-toggle-track {
  background: #16a34a;
  border-color: #15803d;
  box-shadow: inset 0 1px 2px rgba(21, 128, 61, 0.25);
}
.reg-toggle input:checked + .reg-toggle-track .reg-toggle-thumb {
  transform: translateX(1.1rem);
}
.reg-toggle input:focus-visible + .reg-toggle-track {
  outline: 2px solid #86efac;
  outline-offset: 2px;
}
.share-block {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--slate-200);
}
.share-heading { margin: 0 0 0.2rem; font-size: 1.02rem; }
.guest-pass-qr { width: 240px; height: 240px; margin: 0.6rem auto; }
.guest-pass-modal { text-align: center; }
.guest-pass-card {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--slate-200);
  text-align: center;
}
.register-card { width: min(100%, 34rem); }
.center-brand { justify-content: center; margin-bottom: 0.8rem; }
.wide-btn { width: 100%; margin-top: 0.55rem; }
.qr-reader {
  width: 100%;
  min-height: 240px;
  margin: 0.7rem 0;
  overflow: hidden;
  border-radius: 0.9rem;
  background: #0f172a;
}
.session-pick-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}
@media print {
  body * { visibility: hidden; }
  #guestPassBackdrop, #guestPassBackdrop *,
  #passCard, #passCard * {
    visibility: visible;
  }
  #guestPassBackdrop, #passCard {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: white;
  }
  .no-print, .modal-actions, .topbar, .sidebar, .shell, .page { display: none !important; }
  .guest-pass-print, .guest-pass-card { display: block; text-align: center; }
}
.card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 1rem;
  padding: 1rem 1rem 1.05rem;
  margin-bottom: 1rem;
}
.card h1, .card h2 { margin: 0; letter-spacing: -0.03em; }
.card h1 { font-size: 1.45rem; }
.card h2 { font-size: 1.15rem; }
.lede, .hint { margin: 0.35rem 0 0; color: var(--slate-500); line-height: 1.45; }
.section-head, .page-head, .inline-form, .link-row, .modal-actions, .split-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}
.section-head, .page-head { justify-content: space-between; align-items: flex-end; }
.page-head h1 { margin: 0; font-size: 1.55rem; letter-spacing: -0.03em; }
.search { margin: 0.8rem 0; max-width: 28rem; }
.search input { margin-top: 0.35rem; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 0.9rem;
}
.wide { grid-column: 1 / -1; }
.inline-form input, .inline-form select { width: auto; min-width: 14rem; margin: 0; }
.inline-form { flex-wrap: wrap; margin-top: 0.8rem; }
.link-row input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.86rem; }
.banner {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 0.8rem;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.8rem;
  font-weight: 650;
}
.ok-note { color: #166534; font-weight: 700; min-height: 1.2rem; }
.grid { width: 100%; height: calc(100vh - 13.5rem); min-height: 420px; }
.grid-short { height: 380px; min-height: 280px; }
.grid-editor { height: 460px; min-height: 320px; }
.checkin-actions {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  height: 100%;
  min-height: 0;
  width: max-content;
  max-width: none;
  overflow: visible;
}
.checkin-btn,
.grid-row-btn {
  box-sizing: border-box;
  border-radius: 999px;
  border: 1px solid #c4b5fd;
  background: #f5f3ff;
  color: #5b21b6;
  font-weight: 700;
  font-size: 0.7rem;
  line-height: 1.15;
  height: 1.55rem;
  min-width: max-content;
  padding: 0 0.55rem;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: visible;
  text-overflow: clip;
}
.checkin-btn.pm { border-color: #99f6e4; background: #f0fdfa; color: #0f766e; }
.checkin-btn:disabled {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
  cursor: default;
  opacity: 1;
}
.checkin-btn.is-done:disabled {
  text-decoration: none;
  font-weight: 800;
}
/* Middle-align every cell via flex. Reset AG Grid's tall line-height so text
   glyphs sit optically centered. Role <select> keeps its own fixed box below. */
.ag-theme-quartz .ag-cell {
  display: flex !important;
  align-items: center !important;
  line-height: normal !important;
}
.ag-theme-quartz .ag-cell-wrapper {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}
.ag-theme-quartz .ag-cell-value {
  display: flex !important;
  align-items: center !important;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  line-height: 1.35;
  box-sizing: border-box;
}
.ag-theme-quartz .ag-action-cell,
.ag-theme-quartz .ag-cell:has(.checkin-actions),
.ag-theme-quartz .ag-cell:has(.grid-row-btn),
.ag-theme-quartz .ag-cell:has(.role-select-wrap),
.ag-theme-quartz .ag-cell:has(select.role-select) {
  overflow: visible;
}
/* Isolate native selects from AG theme + flex so labels stay visible */
.ag-theme-quartz .ag-cell:has(.role-select-wrap) .ag-cell-value {
  line-height: normal;
}
.ag-theme-quartz .ag-pinned-right-cols-container .ag-cell {
  border-left: 1px solid var(--slate-200);
}
@media (max-width: 960px) {
  .ag-theme-quartz .ag-root-wrapper {
    min-width: 0;
  }
}
.modal.wide-modal { width: min(100%, 72rem); }
.records-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0.8rem 0 0.6rem;
}
.records-toolbar .search { margin: 0; flex: 1 1 16rem; max-width: none; }
.records-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.records-grid { width: 100%; height: min(58vh, 520px); min-height: 280px; }
.role-select-wrap {
  display: flex;
  align-items: center;
  width: 100%;
}
/* AG Grid quartz injects large padding on selects inside cells — force readable sizing */
.ag-theme-quartz select.role-select,
select.role-select {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 9rem !important;
  height: 32px !important;
  min-height: 32px !important;
  max-height: 32px !important;
  margin: 0 !important;
  padding: 0 1.5rem 0 0.5rem !important;
  border-radius: 0.6rem !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 30px !important;
  opacity: 1 !important;
  appearance: menulist !important;
  -webkit-appearance: menulist !important;
}
.ag-theme-quartz select.role-select:disabled,
select.role-select:disabled {
  opacity: 1 !important;
  color: #334155 !important;
  background-color: #f8fafc !important;
  -webkit-text-fill-color: #334155 !important;
}
.ticket { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; color: var(--ink); }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.48);
}
.modal {
  width: min(100%, 36rem);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: white;
  border-radius: 1.2rem;
  border: 1px solid var(--slate-200);
  padding: 1.2rem 1.2rem 1.05rem;
}
.modal h2 { margin: 0; }
.modal-name { margin: 0.35rem 0 0.15rem; font-size: 1.15rem; font-weight: 800; }
.table-line { margin: 0.2rem 0; font-size: 1.05rem; font-weight: 800; }
.ticket-line {
  margin: 0 0 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink);
  font-size: 1.2rem;
}
.sig-wrap {
  border: 1px dashed #94a3b8;
  border-radius: 0.9rem;
  background: #fff;
  touch-action: none;
}
.sig-wrap canvas { width: 100%; height: 180px; display: block; touch-action: none; cursor: crosshair; }
.modal-actions { justify-content: flex-end; margin-top: 0.85rem; flex-wrap: wrap; }
.modal-error { color: #b91c1c; font-weight: 700; min-height: 1.2rem; margin: 0.45rem 0 0; }
body.modal-open { overflow: hidden; }
.toast {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: #14532d;
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  max-width: min(92vw, 36rem);
}
.drop {
  margin-top: 0.8rem;
  border: 1px dashed #c4b5fd;
  border-radius: 0.9rem;
  padding: 0.9rem;
  background: #faf7ff;
}
.drop.is-hot { background: #f3e8ff; }
.upload-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin-top: 0.55rem; }
.event-picker { display: grid; gap: 0.45rem; margin-top: 1rem; }
.event-picker .side-link { display: block; }
.audit-list { max-height: 50vh; overflow: auto; display: grid; gap: 0.35rem; margin: 0.8rem 0; }
@media (max-width: 800px) {
  .topbar { grid-template-columns: 1fr; }
  .topbar-center { text-align: left; }
  .form-grid { grid-template-columns: 1fr; }
  .section-head, .page-head { flex-direction: column; align-items: stretch; }
  .share-layout { grid-template-columns: 1fr; }
  .guest-actions { width: 100%; }
  .who { display: none; }
  .grid, .shell .grid { height: 70vh; }
  .shell .grid-editor { height: 60vh; }
  .shell { grid-template-columns: 1fr; min-height: 0; }
  .sidebar {
    position: static;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    border-right: 0;
    border-bottom: 1px solid var(--slate-200);
    padding: 0.7rem;
  }
  .side-label { width: 100%; margin: 0 0.2rem; }
  .side-link { margin: 0; padding: 0.55rem 0.75rem; }
}
