/* Radus — modern RTL-first design system (no frameworks) */
:root {
  color-scheme: light;
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #4f46e5;
  --primary-2: #6366f1;
  --primary-soft: #eef2ff;
  --success: #059669;
  --warning: #b45309;
  --danger: #dc2626;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --sidebar-bg: #0b1220;
  --sidebar-bg-2: #101a2e;
  --sidebar-text: #94a3b8;
  --sidebar-active: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .16);
  --shadow-lg: 0 24px 48px -24px rgba(15, 23, 42, .22);
  --sidebar-w: 264px;
  --font: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.65;
}
a { color: var(--primary); }
svg.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- Layout shell ---------- */
.shell { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { flex: 1; }
.container { width: 100%; max-width: 1400px; margin-inline: auto; padding: 24px 28px 48px; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: var(--sidebar-w);
  flex: none;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg-2) 100%);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: sticky;
  inset-block-start: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #334155 transparent;
}
.side-brand {
  position: relative;
  display: flex; flex-direction: column; gap: 2px;
  padding: 22px 22px 18px;
  border-block-end: 1px solid rgba(148, 163, 184, .12);
}
.brand-logo { max-height: 40px; max-width: 100%; object-fit: contain; margin-block-end: 6px; }
.brand-name { color: #fff; font-weight: 800; font-size: 20px; letter-spacing: .2px; }
.brand-tag { color: var(--sidebar-text); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; }
.side-nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-section {
  color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 16px 12px 6px;
}
/* Collapsible nav groups (native details/summary, no JS) */
.nav-group { border-radius: var(--radius-sm); }
.nav-group > summary {
  list-style: none; cursor: pointer; user-select: none;
  display: flex; align-items: center; justify-content: space-between;
  color: #64748b; font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 14px 12px 6px;
  transition: color .15s ease;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after {
  content: ""; width: 7px; height: 7px; flex: none;
  border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor;
  transform: rotate(45deg); opacity: .6; transition: transform .18s ease;
  margin-inline-end: 4px;
}
[dir="ltr"] .nav-group > summary::after { transform: rotate(-45deg); }
.nav-group[open] > summary::after { transform: rotate(225deg); }
[dir="ltr"] .nav-group[open] > summary::after { transform: rotate(135deg); }
.nav-group > summary:hover { color: #cbd5e1; }
.nav-group .nav-link { margin-inline-start: 6px; }
.nav-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  color: var(--sidebar-text); text-decoration: none; font-weight: 500;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.nav-link:hover { background: rgba(99, 102, 241, .16); color: #e2e8f0; transform: translateX(calc(-2px * 1)); }
[dir="ltr"] .nav-link:hover { transform: translateX(2px); }
.nav-link.active {
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
  color: var(--sidebar-active);
  box-shadow: 0 8px 16px -8px rgba(79, 70, 229, .55);
}
.nav-group[open] > summary { color: #cbd5e1; }
.nav-group > summary { border-radius: var(--radius-sm); }
.nav-group > summary:hover { background: rgba(99, 102, 241, .10); }
.side-foot {
  padding: 16px 22px; font-size: 12px; color: var(--sidebar-text);
  border-block-start: 1px solid rgba(148, 163, 184, .12);
  display: flex; align-items: center; gap: 8px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.dot.ok { background: #34d399; box-shadow: 0 0 10px rgba(52, 211, 153, .8); }

/* ---------- Topbar ---------- */
.topbar {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  border-block-end: 1px solid var(--border);
  padding: 15px 28px;
  position: sticky; inset-block-start: 0; z-index: 20;
}
.hamburger {
  display: none; cursor: pointer; color: var(--text);
  border: 0; background: transparent; padding: 8px;
  min-inline-size: 40px; min-block-size: 40px;
}
.hamburger svg { width: 24px; height: 24px; fill: currentColor; }
.nav-close, .nav-backdrop { display: none; }
.top-title { font-size: 18px; font-weight: 700; }
.top-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 14px; }
.lang-select {
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); font: inherit; font-size: 13px; cursor: pointer;
}
.user-chip { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px;
}
.user-mail { font-size: 13px; color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.btn-ghost {
  background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 7px; cursor: pointer; color: var(--muted); display: grid; place-items: center;
  transition: all .15s ease;
}
.btn-ghost:hover { color: var(--danger); border-color: var(--danger); background: #fef2f2; }

/* ---------- Guest (login) ---------- */
.is-guest {
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(99, 102, 241, .25), transparent 60%),
    radial-gradient(900px 500px at 10% 110%, rgba(16, 185, 129, .18), transparent 55%),
    linear-gradient(160deg, #0b1220 0%, #101a2e 55%, #0b1220 100%);
  display: flex; flex-direction: column;
}
.is-guest .container { flex: 1; display: flex; align-items: center; justify-content: center; }
.guest-brand {
  position: absolute; inset-block-start: 24px; inset-inline-start: 28px;
  color: #fff; font-weight: 800; font-size: 20px; display: flex; align-items: center; gap: 10px;
}
.guest-foot { color: #64748b; text-align: center; padding: 18px; font-size: 12px; }
.is-guest .card, .is-guest form {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.is-guest h1 { color: var(--text); }

/* ---------- Cards & stats ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-block: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}
.card:hover { box-shadow: var(--shadow); }
.narrow { max-width: 560px; margin-inline: auto; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; display: grid; gap: 6px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease;
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.stat::before {
  content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--primary-2));
}
.stat { position: relative; display: flex; align-items: center; gap: 14px; }
.stat-icon {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: grid; place-items: center; padding: 9px;
}
.stat-body { display: grid; gap: 2px; }
.stat-indigo .stat-icon { background: #eef2ff; color: #4f46e5; }
.stat-sky .stat-icon { background: #e0f2fe; color: #0284c7; }
.stat-emerald .stat-icon { background: #d1fae5; color: #059669; }
.stat-amber .stat-icon { background: #fef3c7; color: #b45309; }
.stat-rose .stat-icon { background: #ffe4e6; color: #e11d48; }
.stat.stat-indigo::before { background: linear-gradient(180deg, #4f46e5, #818cf8); }
.stat.stat-sky::before { background: linear-gradient(180deg, #0ea5e9, #38bdf8); }
.stat.stat-emerald::before { background: linear-gradient(180deg, #059669, #34d399); }
.stat.stat-amber::before { background: linear-gradient(180deg, #d97706, #fbbf24); }
.stat.stat-rose::before { background: linear-gradient(180deg, #e11d48, #fb7185); }
.stat strong { font-size: 30px; font-weight: 800; letter-spacing: -.5px; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 13px; font-weight: 600; }
.muted { color: var(--muted); }
.warning { color: var(--warning); font-weight: 600; }

/* ---------- Page headers ---------- */
h1 { font-size: 24px; font-weight: 800; margin-block: 4px 16px; letter-spacing: -.3px; }
h2 { font-size: 18px; font-weight: 700; }
h1, h2, h3 { color: var(--text); }

/* ---------- Forms ---------- */
form { display: grid; gap: 12px; }
form.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
form.filters label { display: flex; align-items: center; gap: 6px; }
input, select, textarea {
  padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  font: inherit; background: var(--surface); color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input:hover, select:hover, textarea:hover { border-color: var(--primary-2); }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); background: var(--surface);
  box-shadow: 0 0 0 4px rgba(79, 70, 229, .14);
}
label { font-weight: 600; font-size: 13px; }
form p { margin: 0; }
.helptext { display: block; margin-block-start: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.errorlist { margin: 4px 0 0; padding: 0; list-style: none; color: var(--danger); font-size: 12px; font-weight: 600; }
form.filters p { display: grid; gap: 4px; min-inline-size: 180px; }
button, .primary, .btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff; border: 0; border-radius: var(--radius-sm);
  padding: 10px 20px; cursor: pointer; text-decoration: none; display: inline-flex;
  align-items: center; gap: 8px; font: inherit; font-weight: 600;
  box-shadow: 0 6px 14px -8px rgba(79, 70, 229, .5);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
button:hover, .primary:hover, .btn:hover { filter: brightness(1.08); transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(79, 70, 229, .55); }
button:active, .primary:active, .btn:active { transform: translateY(0); }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid rgba(79, 70, 229, .4); outline-offset: 2px; }
.secret-box {
  display: block; padding: 16px; background: var(--primary-soft);
  border: 1px solid #c7d2fe; border-radius: var(--radius-sm); overflow-wrap: anywhere;
  font-family: ui-monospace, monospace;
}

/* ---------- Tables ---------- */
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { padding: 13px 16px; border-block-end: 1px solid var(--border); text-align: start; }
th {
  color: var(--muted); font-weight: 700; font-size: 12px; letter-spacing: .4px;
  text-transform: uppercase; background: var(--surface-2);
}
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: var(--primary-soft); }
tbody tr:last-child td { border-block-end: 0; }
table a { text-decoration: none; font-weight: 600; }

/* ---------- Messages ---------- */
.messages { display: grid; gap: 10px; margin-block: 12px; }
.message {
  padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--primary-soft); border: 1px solid #c7d2fe;
}
.message.success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.message.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.message.warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ---------- Vouchers / print ---------- */
.print-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.voucher-card {
  border: 1px dashed var(--border-strong); border-radius: var(--radius);
  padding: 16px; display: grid; gap: 6px; break-inside: avoid; background: var(--surface);
}
.voucher-card strong { font-size: 1.4rem; letter-spacing: .08em; }
.billing-nav { display: flex; gap: 14px; flex-wrap: wrap; margin-block: 8px; }
.billing-nav a { color: var(--primary); text-decoration: none; font-weight: 600; }
.invoice-print { max-width: 720px; margin-inline: auto; display: grid; gap: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .sidebar { width: 232px; }
  .container { padding: 18px; }
}
@media (max-width: 860px) {
  .sidebar {
    position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 40;
    transform: translateX(100%); transition: transform .2s ease;
    box-shadow: var(--shadow-lg);
  }
  [dir="ltr"] .sidebar { transform: translateX(-100%); }
  .nav-toggle:checked ~ .shell .sidebar { transform: translateX(0); }
  .hamburger { display: grid; place-items: center; }
  .nav-close {
    display: grid; place-items: center; position: absolute;
    inset-block-start: 10px; inset-inline-end: 10px;
    min-inline-size: 40px; min-block-size: 40px; padding: 8px;
    color: #fff; border: 1px solid rgba(148, 163, 184, .3);
    border-radius: var(--radius-sm); background: transparent; cursor: pointer;
  }
  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 30;
    border: 0; padding: 0; background: rgba(15, 23, 42, .48);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }
  .nav-toggle:checked ~ .nav-backdrop {
    opacity: 1; visibility: visible; pointer-events: auto;
  }
  .topbar { padding: 12px 16px; }
  .user-mail { display: none; }
  table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar, .nav-backdrop { transition: none; }
}

/* ---------- Print ---------- */
@media print {
  .no-print, .sidebar, .topbar, .language-form, .logout-form { display: none !important; }
  body { background: white; }
  .card { border: 0; box-shadow: none; }
  .invoice-print th, .invoice-print td { border: 1px solid #666; }
}

/* ---------- Dashboard extras ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin-block-end: 4px; }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  background: var(--primary-soft); color: var(--primary);
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  vertical-align: middle;
}
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.quick-link {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text); text-decoration: none; font-weight: 600;
  transition: all .15s ease;
}
.quick-link:hover {
  background: var(--primary-soft); border-color: #c7d2fe; color: var(--primary);
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}

/* ---------- Pills & health ---------- */
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.pill.ok { background: #ecfdf5; color: #065f46; }
.pill.bad { background: #fef2f2; color: #991b1b; }
.health-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.health-item {
  display: grid; gap: 4px; padding: 14px 16px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  transition: border-color .15s ease;
}
.health-item:hover { border-color: var(--primary-2); }
.health-item strong { font-size: 15px; overflow-wrap: anywhere; }

/* ---------- Tickets ---------- */
.ticket-msg { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); margin-block: 10px; }
.ticket-msg.staff { background: var(--primary-soft); border-inline-start: 3px solid var(--primary); }
.ticket-msg p { margin-block: 6px 0; }

/* ---------- Settings forms ---------- */
.setting-row { display: grid; gap: 6px; margin-block: 10px; }
.setting-row label { font-size: 13px; color: var(--muted); }
.setting-row input { width: 100%; max-width: 520px; }

/* ---------- Row actions & modal & chips ---------- */
.row-actions { position: relative; display: inline-block; }
.row-actions summary { cursor: pointer; list-style: none; padding: 2px 10px; border-radius: 8px; font-weight: 700; color: var(--muted); }
.row-actions summary::-webkit-details-marker { display: none; }
.row-actions summary:hover { background: var(--primary-soft); color: var(--primary); }
.row-actions .menu {
  position: absolute; inset-inline-end: 0; inset-block-start: 100%; z-index: 30;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); min-width: 190px; display: grid; padding: 6px;
}
.row-actions[open] .menu a { padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13px; cursor: pointer; }
.row-actions[open] .menu a:hover { background: var(--primary-soft); color: var(--primary); }
.row-actions .menu a.danger { color: var(--danger); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-block-end: 14px; }
.chip { padding: 4px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.chip:hover { background: var(--primary-soft); color: var(--primary); border-color: #c7d2fe; }
.modal-wrap:empty { display: none; }
.modal-wrap { position: fixed; inset: 0; z-index: 100; background: rgba(15, 23, 42, .55); display: grid; place-items: center; padding: 20px; }
.modal-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; width: 100%; max-width: 520px; max-height: 85vh; overflow-y: auto; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pricing-card { text-align: center; }
.pricing-card .price { font-size: 26px; font-weight: 800; color: var(--primary); margin-block: 8px; }
.pricing-card ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: 13px; }

.chart-wrap { overflow-x: auto; margin-bottom: 12px; }
.chart-row { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.chart-cell { flex: 1 1 300px; min-width: 280px; }
.chart-cell h3 { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.radus-chart { width: 100%; max-width: 760px; display: block; }
.challenge-box { display: flex; align-items: center; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.challenge-code { font-size: 1.5rem; letter-spacing: 3px; background: #eef2ff; color: #4f46e5; padding: 4px 14px; border-radius: 8px; user-select: none; direction: ltr; }

.page-guide {
  margin-block: 0 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.page-guide summary {
  min-block-size: 48px;
  padding: 12px 18px;
  cursor: pointer;
  color: var(--primary);
  background: var(--primary-soft);
  font-weight: 700;
}
.page-guide summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: -3px;
}
.page-guide-title { color: var(--text); }
.page-guide-body { padding: 4px 18px 16px; }
.page-guide-body p { margin-block: 10px; color: var(--muted); }
.page-guide-body ol { margin-block: 8px 0; padding-inline-start: 24px; }
.page-guide-body li { padding-inline-start: 4px; margin-block: 4px; }
@media print {
  .page-guide { display: none !important; }
}

/* ---------- Organized owner forms (vertical, labeled, with help) ---------- */
.owner-form { display: grid; gap: 16px; }
.owner-form .form-field { display: grid; gap: 5px; }
.owner-form .form-field label { font-weight: 600; font-size: 13px; color: var(--text); }
.owner-form .form-field input,
.owner-form .form-field select { width: 100%; max-width: 460px; }
.owner-form .form-help { font-size: 12px; color: var(--muted); line-height: 1.5; }
.owner-form .form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.owner-form .form-row .form-field input,
.owner-form .form-row .form-field select { max-width: none; }
.owner-form .form-actions { display: flex; gap: 10px; margin-block-start: 6px; }
.owner-form .form-checkbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.owner-form .form-checkbox input { width: auto; max-width: none; }
.owner-form .form-checkbox .form-help { flex-basis: 100%; }

.stat-violet .stat-icon { background: #ede9fe; color: #7c3aed; }
.stat.stat-violet::before { background: linear-gradient(180deg, #7c3aed, #a78bfa); }


/* Webhook event choices remain native, keyboard-operable checkboxes. */
.event-options { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.event-options li { min-width: 0; }
.event-options label { display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); overflow-wrap: anywhere; }
.event-options input { flex: none; accent-color: var(--primary); }
.owner-form fieldset { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; min-width: 0; }
.email-preview { display: block; inline-size: 100%; min-block-size: 360px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; }
.email-text-preview { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.owner-form legend { padding-inline: 6px; font-weight: 700; }
.owner-form textarea { max-width: 100%; }
