.oh-shell { padding: 0; display: grid; gap: 18px; }
.oh-hero,
.oh-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}
.oh-hero {
  padding: 24px 26px;
  display: grid;
  gap: 16px;
  border-color: rgba(125, 211, 252, 0.48);
  background:
    radial-gradient(circle at 88% 8%, rgba(59, 130, 246, 0.10), transparent 28%),
    linear-gradient(135deg, #e8fbff 0%, #f3fffb 56%, #ffffff 100%);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}
.oh-card { padding: 22px; display: grid; gap: 16px; }
.oh-hero h1,
.oh-card h2,
.oh-card h3,
.oh-card p { margin: 0; }
.oh-copy { color: #475569; line-height: 1.7; }
.oh-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.oh-banner {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid #cbd5e1;
  font-weight: 700;
}
.oh-banner.ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.oh-banner.warn { background: #fff7ed; border-color: #fed7aa; color: #c2410c; }
.oh-banner.err { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.oh-meta-row,
.oh-actions,
.oh-filter-row,
.oh-pill-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.oh-pill,
.oh-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}
.oh-badge.is-live { background: #ecfeff; border-color: #a5f3fc; color: #0f766e; }
.oh-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.oh-stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.oh-stat {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #f8fafc;
  padding: 16px;
  display: grid;
  gap: 8px;
}
.oh-stat strong { font-size: 28px; color: #0f172a; }
.oh-stat .oh-note,
.oh-note { color: #64748b; font-size: 13px; }
.oh-flow {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.oh-flow-step {
  position: relative;
  border: 1px solid #dbe4ef;
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: grid;
  gap: 8px;
}
.oh-flow-step::after {
  content: '';
  display: none;
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: #94a3b8;
}
.oh-flow-step:last-child::after { display: none; }
.oh-quick-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.oh-quick-link {
  border: 1px solid #dbe4ef;
  border-radius: 18px;
  padding: 18px;
  text-decoration: none;
  color: #0f172a;
  background: #fff;
  display: grid;
  gap: 8px;
}
.oh-quick-link:hover { border-color: #93c5fd; box-shadow: 0 12px 22px rgba(37,99,235,.08); }
.oh-button,
.oh-link-button,
.oh-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid #0f172a;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}
.oh-button.secondary,
.oh-link-button.secondary,
.oh-filter {
  border-color: #cbd5e1;
  background: #fff;
  color: #0f172a;
}
.oh-filter.is-active { border-color: #0f172a; background: #0f172a; color: #fff; }
.oh-button[disabled] { opacity: .7; cursor: not-allowed; }
.oh-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
.oh-field { display: grid; gap: 8px; }
.oh-field label { font-size: 13px; font-weight: 700; color: #334155; }
.oh-field input,
.oh-field textarea,
.oh-readonly {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
  color: #0f172a;
}
.oh-field textarea { min-height: 180px; resize: vertical; }
.oh-readonly { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.oh-link-grid,
.oh-preview-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); align-items: start; }
.oh-qr-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #f8fafc;
  padding: 18px;
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}
.oh-qr-wrap img { width: min(260px, 100%); height: auto; border-radius: 18px; background: #fff; padding: 10px; border: 1px solid #e2e8f0; }
.oh-preview {
  border: 1px solid #dbe4ef;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 22px;
  display: grid;
  gap: 18px;
}
.oh-preview-brand { display: grid; gap: 14px; justify-items: center; text-align: center; }
.oh-preview-brand img { max-width: 220px; max-height: 84px; width: auto; height: auto; object-fit: contain; }
.oh-preview-copy { color: #475569; line-height: 1.7; text-align: center; }
.oh-preview-form { border: 1px solid #e2e8f0; border-radius: 20px; background: #f8fafc; padding: 18px; display: grid; gap: 14px; }
.oh-preview-form input,
.oh-preview-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: #334155;
}
.oh-preview-form textarea { min-height: 92px; resize: none; }
.oh-preview-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-weight: 800;
}
.oh-table-wrap { border: 1px solid #e2e8f0; border-radius: 18px; overflow: auto; background: #fff; }
.oh-table { width: 100%; min-width: 980px; border-collapse: collapse; }
.oh-table th,
.oh-table td { padding: 12px 14px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.oh-table th { background: #f8fafc; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #475569; }
.oh-table tr.oh-row-fresh td { background: #ecfeff; }
.oh-status,
.oh-email-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.oh-status.new { background: #eff6ff; color: #1d4ed8; }
.oh-status.pending { background: #fff7ed; color: #c2410c; }
.oh-status.invited { background: #ecfdf5; color: #047857; }
.oh-status.failed { background: #fef2f2; color: #b91c1c; }
.oh-status.accepted { background: #f5f3ff; color: #7c3aed; }
.oh-email-status.sent { background: #ecfdf5; color: #047857; }
.oh-email-status.failed { background: #fef2f2; color: #b91c1c; }
.oh-email-status.pending { background: #eff6ff; color: #1d4ed8; }
.oh-row-meta { display: grid; gap: 4px; color: #64748b; font-size: 13px; }
.oh-empty { padding: 18px; border-radius: 16px; border: 1px dashed #cbd5e1; background: #f8fafc; color: #64748b; }
.oh-hidden { display: none !important; }
.oh-toast-stack {
  position: fixed;
  top: 96px;
  right: 22px;
  z-index: 1200;
  display: grid;
  gap: 10px;
}
.oh-toast {
  min-width: 240px;
  max-width: 340px;
  border-radius: 16px;
  background: #0f172a;
  color: #fff;
  padding: 14px 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}
.oh-toast strong { display: block; margin-bottom: 4px; }
@keyframes oh-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.oh-toast,
.oh-row-fresh { animation: oh-fade-in .25s ease; }
@media (max-width: 980px) {
  .oh-link-grid,
  .oh-preview-grid { grid-template-columns: 1fr; }
  .oh-flow-step::after { display: none; }
}

.oh-flow-step::after {
  display: none !important;
  content: '' !important;
}

.oh-queue-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.oh-select-toggle {
  cursor: default;
  gap: 8px;
}
.oh-select-toggle input { margin: 0; }
.oh-row-meta-spaced { margin-top: 8px; }
.oh-link-meta {
  margin-bottom: 10px;
  max-width: 240px;
  word-break: break-all;
}
.oh-error-text { color: #b91c1c; }
.oh-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 210px;
}
.oh-inline-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  line-height: 1.55;
}
.oh-inline-note.is-protected {
  border-color: #ddd6fe;
  background: #f5f3ff;
  color: #6d28d9;
}
body.oh-modal-open { overflow: hidden; }
.oh-modal-shell {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 24px;
}
.oh-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}
.oh-modal {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 24px;
  border: 1px solid #dbe4ef;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.22);
  padding: 22px;
  display: grid;
  gap: 16px;
}
.oh-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.oh-modal-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.oh-field-full { grid-column: 1 / -1; }
.oh-modal .oh-field textarea { min-height: 132px; }
.oh-modal-actions {
  justify-content: flex-end;
  margin-top: 4px;
}
@media (max-width: 980px) {
  .oh-modal-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .oh-shell { padding: 16px; }
  .oh-card,
  .oh-hero,
  .oh-modal { padding: 18px; }
  .oh-row-actions { min-width: 0; }
}
