:root {
  --primary: #1f6feb;
  --primary-dark: #1659c4;
  --accent: #0a2540;
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #1a2330;
  --muted: #6b7280;
  --border: #e5e7eb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 30px rgba(10,37,64,0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

button, .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: all .15s;
}
button:hover, .btn:hover { background: #f3f4f6; }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-sm { padding: 5px 10px; font-size: 13px; }

input, textarea, select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--text);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31,111,235,0.15);
}
textarea { resize: vertical; min-height: 80px; }

label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 4px; color: var(--text); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-new { background: #dbeafe; color: #1e40af; }
.badge-priced { background: #fef3c7; color: #92400e; }
.badge-paid, .badge-active, .badge-resolved, .badge-closed { background: #d1fae5; color: #065f46; }
.badge-pending, .badge-open, .badge-waiting_customer { background: #fef3c7; color: #92400e; }
.badge-cancelled, .badge-failed, .badge-rejected { background: #fee2e2; color: #991b1b; }
.badge-high { background: #fee2e2; color: #991b1b; }
.badge-forwarded { background: #ede9fe; color: #5b21b6; }
.badge-normal { background: #e5e7eb; color: #374151; }
.badge-low { background: #dbeafe; color: #1e40af; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
th { font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.4px; background: #fafbfc; }
tr:hover td { background: #fafbfc; }

.row { display: flex; gap: 16px; flex-wrap: wrap; }
.col { flex: 1; min-width: 200px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.right { text-align: right; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.mb-1 { margin-bottom: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mt-3 { margin-top: 24px; }

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--accent); margin-top: 4px; }

.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,37,64,0.5);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.modal h2 { margin-top: 0; }

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1f2937;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 2000;
}
.toast-success { background: #065f46; }
.toast-error { background: #991b1b; }

/* PUBLIC SITE */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header .brand { font-weight: 700; font-size: 20px; color: var(--accent); }
.site-header nav { display: flex; gap: 24px; align-items: center; }
.site-header nav a { color: var(--text); font-weight: 500; }

.hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff;
  padding: 80px 24px;
  text-align: center;
}
.hero h1 { font-size: 44px; margin: 0 0 16px; }
.hero p { font-size: 18px; max-width: 700px; margin: 0 auto 30px; opacity: 0.95; }
.hero .btn-primary { background: #fff; color: var(--accent); border-color: #fff; padding: 14px 28px; font-size: 16px; font-weight: 600; }
.hero .btn-primary:hover { background: #f3f4f6; }

.section { padding: 80px 24px; max-width: 1200px; margin: 0 auto; }
.section h2 { font-size: 32px; text-align: center; margin: 0 0 12px; color: var(--accent); }
.section .lead { text-align: center; color: var(--muted); max-width: 700px; margin: 0 auto 40px; font-size: 16px; }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 6px 24px rgba(31,111,235,0.15); transform: scale(1.02); }
.pricing-card h3 { margin: 0 0 8px; color: var(--accent); }
.pricing-card .price { font-size: 36px; font-weight: 700; color: var(--accent); margin: 16px 0; }
.pricing-card .price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.pricing-card ul { padding-left: 18px; margin: 0 0 24px; }
.pricing-card ul li { margin-bottom: 6px; color: var(--text); }
.pricing-card .btn { margin-top: auto; }

.cta-block {
  background: var(--accent);
  color: #fff;
  padding: 60px 24px;
  text-align: center;
  border-radius: 12px;
  margin: 40px auto;
  max-width: 1100px;
}
.cta-block h2 { color: #fff; }
.cta-block .btn { background: #fff; color: var(--accent); border-color: #fff; }

footer.site-footer {
  background: var(--accent);
  color: #cbd5e1;
  padding: 40px 24px 20px;
  margin-top: 40px;
}
.site-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; }
.site-footer a { color: #cbd5e1; }

/* ADMIN/CUSTOMER PANEL */
.panel-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px;
  background: var(--accent);
  color: #cbd5e1;
  padding: 20px 0;
  flex-shrink: 0;
}
.sidebar .brand { color: #fff; font-weight: 700; font-size: 18px; padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar nav { padding: 16px 0; }
.sidebar nav a {
  display: block;
  padding: 10px 20px;
  color: #cbd5e1;
  font-size: 14px;
  border-left: 3px solid transparent;
}
.sidebar nav a:hover { background: rgba(255,255,255,0.05); color: #fff; text-decoration: none; }
.sidebar nav a.active { background: rgba(255,255,255,0.08); color: #fff; border-left-color: var(--primary); }
.sidebar .user-info { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; }
.sidebar .user-info strong { color: #fff; display: block; }
.sidebar .logout { color: #fca5a5; cursor: pointer; margin-top: 8px; display: block; }

.main { flex: 1; padding: 24px; overflow-x: auto; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 12px; }
.page-header h1 { margin: 0; font-size: 24px; color: var(--accent); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .icon { font-size: 40px; margin-bottom: 12px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; flex-wrap: wrap; }
.tab { padding: 10px 16px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  padding: 24px;
}
.login-card {
  background: #fff;
  padding: 36px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.login-card h1 { margin: 0 0 8px; color: var(--accent); }

.customer-detail-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }
@media (max-width: 900px) { .customer-detail-grid { grid-template-columns: 1fr; } .sidebar { width: 100%; } .panel-shell { flex-direction: column; } }

.timeline-item { padding: 12px; border-left: 3px solid var(--primary); background: #f8fafc; margin-bottom: 8px; border-radius: 0 6px 6px 0; }
.timeline-item.admin { border-left-color: var(--warning); background: #fffbeb; }
.timeline-item.internal { border-left-color: var(--danger); background: #fef2f2; }

.feature-list { padding: 0; list-style: none; }
.feature-list li { padding: 4px 0 4px 22px; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: bold; }

/* ============================================================
   DARK MODE — admin + klantenpaneel
   Wordt geactiveerd via <body class="dark"> (toggle in sidebar).
   Voorkeur wordt opgeslagen in localStorage onder 'wnm_theme'.
   ============================================================ */
body.dark {
  --primary: #4f8af0;
  --primary-dark: #3b78dd;
  --accent: #93c5fd;
  --bg: #0f1419;
  --card: #1a212b;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #2a3441;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #f87171;
  --shadow: 0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.5);
  color-scheme: dark;
}
body.dark a { color: var(--primary); }
body.dark button, body.dark .btn { background: #232c39; color: var(--text); border-color: var(--border); }
body.dark button:hover, body.dark .btn:hover { background: #2a3441; }
body.dark .btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
body.dark .btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
body.dark input, body.dark textarea, body.dark select {
  background: #232c39; color: var(--text); border-color: var(--border);
}
body.dark input::placeholder, body.dark textarea::placeholder { color: #6b7280; }
body.dark input:focus, body.dark textarea:focus, body.dark select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,138,240,0.18);
}
body.dark .card { background: var(--card); border-color: var(--border); }
body.dark table { color: var(--text); }
body.dark th { background: #1f2733; color: var(--muted); border-bottom-color: var(--border); }
body.dark td { border-bottom-color: var(--border); }
body.dark tbody tr:hover { background: #1f2733; }
body.dark .muted { color: var(--muted); }
body.dark .page-header { border-bottom-color: var(--border); }
body.dark .modal-backdrop { background: rgba(0,0,0,0.7); }
body.dark .modal { background: var(--card); color: var(--text); }
body.dark .sidebar { background: #0a1018; border-right: 1px solid var(--border); }
body.dark .sidebar nav a { color: #cbd5e1; }
body.dark .sidebar nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
body.dark .sidebar nav a.active { background: rgba(79,138,240,0.18); color: #fff; border-left-color: var(--primary); }
body.dark .badge { filter: brightness(0.9) saturate(1.2); }
body.dark .badge-paid, body.dark .badge-active { background: #064e3b; color: #6ee7b7; }
body.dark .badge-pending, body.dark .badge-open { background: #422006; color: #fbbf24; }
body.dark .badge-cancelled, body.dark .badge-failed { background: #450a0a; color: #fca5a5; }
body.dark .badge-new { background: #1e3a8a; color: #93c5fd; }
body.dark code { background: #232c39; color: #e5e7eb; padding: 2px 5px; border-radius: 3px; }
body.dark .timeline-item { background: #1a212b; }
body.dark .timeline-item.admin { background: #2a1f0a; }
body.dark .timeline-item.internal { background: #2a0e0e; }
body.dark hr { border-color: var(--border); }
body.dark .tab { color: var(--muted); border-bottom-color: var(--border); }
body.dark .tab.active { color: var(--text); border-bottom-color: var(--primary); }
body.dark .tabs { border-bottom-color: var(--border); }

/* Theme-toggle knop (in sidebar onderaan) */
.theme-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 20px; cursor: pointer; user-select: none;
  color: #cbd5e1; font-size: 13px; border-top: 1px solid rgba(255,255,255,0.1);
  background: transparent; border-left: none; border-right: none; border-bottom: none;
  width: 100%; text-align: left;
}
.theme-toggle:hover { background: rgba(255,255,255,0.05); color: #fff; }

/* Beheer: menu in groepen en werkruimte per platform (admin-app.jsx: Sidebar, PlatformWorkspace) */
.sidebar.admin-nav { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding-top: 18px; }
.admin-nav .brand { font-size: 17px; letter-spacing: .2px; }
.admin-nav .brand-sub { font-weight: 500; color: #8aa0bc; margin-left: 4px; }
.admin-nav nav { flex: 1; padding: 6px 0 14px; }
.admin-nav .nav-group { margin-top: 14px; }
.admin-nav .nav-group-title { padding: 0 20px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #7f93ad; }
.admin-nav nav a { display: flex; align-items: center; gap: 10px; padding: 7px 20px 7px 17px; font-size: 13.5px; line-height: 1.35; }
.admin-nav .nav-icon { width: 16px; height: 16px; flex: 0 0 16px; stroke-width: 1.8; opacity: .8; }
.admin-nav nav a.active .nav-icon, .admin-nav nav a:hover .nav-icon { opacity: 1; }
.admin-nav .nav-pf-dot { width: 10px; height: 10px; flex: 0 0 10px; margin: 0 3px; border-radius: 3px; box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.admin-nav .nav-count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.admin-nav .nav-ext { margin-left: auto; opacity: .6; font-size: 12px; }
@media (max-width: 900px) { .sidebar.admin-nav { position: static; height: auto; } }

.ws-title { display: flex; align-items: center; gap: 14px; }
.ws-mark { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.ws-mark-all { background: var(--accent); }
.ws-mark .nav-icon { width: 22px; height: 22px; stroke-width: 1.8; }
.ws-kicker { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.ws-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ws-header { flex-wrap: wrap; }
.tab .tab-count { display: inline-block; margin-left: 6px; min-width: 18px; padding: 0 6px; border-radius: 999px; background: #eef2f7; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
.tab .tab-count.alert { background: var(--primary); color: #fff; }
.stat-card.stat-link { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.stat-card.stat-link:hover, .stat-card.stat-link:focus-visible { border-color: var(--primary); box-shadow: var(--shadow); outline: none; }
.ws-facts { font-size: 14px; max-width: 640px; }
.ws-facts th { width: 160px; color: var(--muted); font-weight: 600; background: none; }
.badge-live { background: #d1fae5; color: #065f46; }
.badge-soon { background: #fef3c7; color: #92400e; }
.badge-request { background: #dbeafe; color: #1e40af; }
body.dark .tab .tab-count { background: rgba(255,255,255,.08); }
body.dark .tab .tab-count.alert { background: var(--primary); color: #fff; }
body.dark .ws-mark-all { background: #1f2733; }
body.dark .ws-facts th { background: none; }
body.dark .badge-live { background: #064e3b; color: #6ee7b7; }
body.dark .badge-soon { background: #422006; color: #fbbf24; }
body.dark .badge-request { background: #1e3a8a; color: #93c5fd; }

/* Beheer: sociale media (admin-app.jsx: SocialAdmin) */
.social-page { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.social-avatar { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; object-fit: cover; }
.social-list { padding: 0; }
.social-post { display: flex; gap: 16px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.social-post:last-child { border-bottom: none; }
.social-thumb { width: 96px; height: 96px; flex: 0 0 96px; border-radius: 8px; object-fit: cover; background: #eef2f7; }
.social-thumb-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 11px; background: #eef2f7; }
.social-body { flex: 1; min-width: 0; }
.social-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; font-size: 13.5px; }
.social-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
.social-text.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.social-foot { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 8px; font-size: 13px; }
@media (max-width: 560px) { .social-post { flex-direction: column; } .social-thumb { width: 100%; height: 180px; flex-basis: auto; } }
body.dark .social-thumb, body.dark .social-thumb-empty { background: #1f2733; }

/* Beheer: gedeelde bouwstenen (admin-app.jsx: PageHeader, FilterBar, Segmented, StatusBadge) */
.page-header { align-items: flex-start; flex-wrap: wrap; }
.page-title { flex: 1 1 320px; min-width: 0; }
.page-title h1 { margin: 0; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.page-back { display: inline-block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.page-back:hover { color: var(--primary); }
.page-sub { margin: 4px 0 0; max-width: 780px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.page-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.filter-bar input, .filter-bar select { width: auto; }
.filter-bar .filter-search { flex: 1 1 240px; min-width: 0; max-width: 440px; }
.filter-label { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.filter-count { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.filter-actions { display: flex; gap: 8px; margin-left: auto; }
.filter-count + .filter-actions { margin-left: 4px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: #f1f4f8; border-radius: 9px; }
.seg button { padding: 5px 12px; border: none; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; }
.seg button:hover { background: rgba(255,255,255,.75); color: var(--text); }
.seg button.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(10,37,64,.12); }
.card.table-card { padding: 0; overflow-x: auto; }
.card.table-card table { min-width: 560px; }
@media (max-width: 640px) { .page-title h1 { font-size: 20px; } .filter-count { margin-left: 0; } .page-actions { width: 100%; } }
body.dark .filter-bar { background: var(--card); border-color: var(--border); }
body.dark .seg { background: #1f2733; }
body.dark .seg button:hover { background: rgba(255,255,255,.06); color: var(--text); }
body.dark .seg button.on { background: #2b3544; color: #fff; box-shadow: none; }

/* Tickets: naar welke applicatie en voor welke klant (17 nov 2026) */
.app-tag { display: inline-block; padding: 1px 8px 1px 7px; border: 1px solid var(--border); border-left: 4px solid var(--app-color, #64748b); border-radius: 6px; background: var(--card); color: var(--text); font-size: 12.5px; font-weight: 600; line-height: 1.6; white-space: nowrap; }
.app-tag--panel { border-left-color: var(--muted); }
.ticket-head { position: sticky; top: -24px; z-index: 2; margin: -24px -24px 12px; padding: 20px 24px 12px; background: inherit; border-bottom: 1px solid var(--border); }
.ticket-head h2 { margin: 0 0 2px; }
.ticket-head__subject { margin: 0 0 10px; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.ticket-context { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 12px; margin: 0; }
.ticket-context > div { min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); }
.ticket-context dt { margin-bottom: 3px; font-size: 12px; color: var(--muted); }
.ticket-context dd { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.ticket-context dd .muted { font-size: 13px; }
.ticket-dest { margin: 8px 0 0; padding: 8px 10px; font-size: 13px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.ticket-info { margin: 8px 0 12px; padding: 10px 12px; font-size: 13px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.ticket-forward { margin: 0 0 12px; padding: 10px 12px; font-size: 13px; background: #f5f3ff; border: 1px solid #ddd6fe; border-radius: var(--radius); }
.ticket-forward__title { margin-bottom: 4px; font-weight: 600; color: #5b21b6; }
body.dark .ticket-forward { background: #241a3d; border-color: #4c1d95; }
body.dark .ticket-forward__title { color: #c4b5fd; }
@media (max-width: 640px) { .ticket-head { position: static; } }
