:root {
  --ink: #111111;
  --muted: #626873;
  --line: #e6e6eb;
  --bg: #f8f8fb;
  --panel: #ffffff;
  --brand-red: #c8243f;
  --brand-blue: #154aff;
  --brand-gradient: linear-gradient(120deg, #c8243f 0%, #154aff 100%);
  --brand-soft: #f3f5ff;
  --green: #1f9d68;
  --danger: #c9372c;
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 28px;
  --space-6: 36px;
  font-family: "Satoshi family", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

@font-face {
  font-family: "Satoshi family";
  src: url("/fonts/Satoshi-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi family";
  src: url("/fonts/Satoshi-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi family";
  src: url("/fonts/Satoshi-Bold.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body, #app {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
body { margin: 0; overflow-x: hidden; background: var(--bg); overflow-wrap: anywhere; }
button, input, select, textarea { max-width: 100%; min-width: 0; font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: .58; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(21,74,255,.25);
  outline-offset: 2px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px clamp(14px, 3vw, 36px);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230,230,235,.72);
}
.topbar button, .ghost {
  min-height: 42px;
  border: 1px solid rgba(230,230,235,.92);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  padding: 0 14px;
  box-shadow: 0 8px 24px rgba(17,17,17,.05);
  backdrop-filter: blur(10px);
}
.topbar-brand {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding-left: 0 !important;
  font-weight: 900;
  white-space: nowrap;
}
.topbar-brand:hover {
  color: var(--brand-blue);
}
.topbar-portal.active, .topbar-portal:hover, .ghost:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.topbar-login {
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
}
.topbar-login svg { display: block; }


.hero {
  display: grid;
  gap: var(--space-5);
  padding: 30px 18px 24px;
  background:
    linear-gradient(115deg, rgba(231,46,61,.08), rgba(21,74,255,.08)),
    #ffffff;
  border-bottom: 1px solid var(--line);
}
.hero-intro {
  max-width: 680px;
  margin: 12px 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.brand-logo {
  display: block;
  width: min(236px, 68vw);
  height: auto;
  margin: 0 0 18px;
}
h1 { margin: 0; font-size: clamp(32px, 7vw, 64px); line-height: .98; letter-spacing: 0; max-width: 880px; }
h1 {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h2 { margin: 0; font-size: 20px; letter-spacing: 0; }
h3 { margin: 0 0 10px; font-size: 16px; letter-spacing: 0; }
h1, h2, h3, p, strong, span, small { min-width: 0; }
.event-days { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-4); }
.event-days span, .status {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
}
.event-timezone { margin: 10px 0 0; font-size: 13px; }
.hero-panel {
  align-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--brand-gradient);
  color: white;
  padding: 18px;
}
.hero-panel span { display: block; font-size: 42px; font-weight: 800; }
.hero-panel small { color: rgba(255,255,255,.84); }

.layout, .admin-grid, .booking-page {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-3);
  width: 100%;
}
.list-only {
  grid-template-columns: 1fr;
}
.list-only .panel {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
}
.booking-page {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.panel {
  min-width: 0;
  max-width: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-4);
}
.narrow { width: min(680px, calc(100% - 28px)); margin: var(--space-6) auto; }
.panel-head { display: flex; gap: var(--space-3); align-items: center; justify-content: space-between; min-width: 0; margin-bottom: var(--space-4); }
.panel-head > * { min-width: 0; }
.panel-head input { max-width: 360px; }
.cards { display: grid; gap: var(--space-3); }
.exhibitor-card {
  width: 100%;
  text-align: left;
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.exhibitor-card:has(.exhibitor-logo) { grid-template-columns: 82px minmax(0, 1fr); align-items: center; }
.exhibitor-logo {
  display: block;
  width: 72px;
  height: 52px;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
}
.exhibitor-card-content { display: grid; gap: 6px; min-width: 0; }
.exhibitor-card.active { border-color: var(--brand-blue); box-shadow: inset 4px 0 0 var(--brand-red); background: linear-gradient(90deg, rgba(231,46,61,.05), #fff 46%); }
.exhibitor-card span, .selected span, .row span, .muted { color: var(--muted); }
.exhibitor-card small { color: var(--brand-blue); font-weight: 700; }

.back-button {
  justify-self: start;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 700;
}
.back-button:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
.booking-detail {
  display: grid;
  gap: var(--space-5);
}
.detail-header {
  display: grid;
  gap: var(--space-3);
  align-items: start;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.detail-header p {
  margin: 0 0 6px;
  color: var(--brand-blue);
  font-weight: 800;
}
.detail-header span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.detail-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: fit-content;
}
.booking-form-grid {
  gap: var(--space-5);
}
.visitor-fields {
  display: grid;
  gap: var(--space-3);
  align-content: start;
}
.visitor-fields > label,
.login-panel form > label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form { display: grid; gap: var(--space-3); }
input, select, textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
}
input[type="time"] { width: 100%; min-width: 0; }
textarea { display: block; min-height: 90px; resize: vertical; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.check input { width: 18px; min-height: 18px; margin-top: 2px; }
.primary, .danger {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: var(--brand-gradient);
  padding: 0 16px;
  font-weight: 800;
}
.primary:hover { filter: saturate(1.12) brightness(1.02); }
.danger { background: var(--danger); width: 100%; margin-top: 10px; }
.link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; margin-bottom: 12px; }
.selected, .empty {
  display: grid;
  gap: var(--space-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin: var(--space-3) 0;
  background: #fbfdfe;
}
.empty { color: var(--muted); }

.calendar-picker {
  display: grid;
  gap: var(--space-3);
}
.calendar-summary {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(21,74,255,.18);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(231,46,61,.07), rgba(21,74,255,.08)),
    #ffffff;
}
.calendar-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.calendar-summary strong {
  font-size: 16px;
}
.calendar-days {
  display: grid;
  gap: var(--space-3);
}
.calendar-day {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}
.calendar-day header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfbfd;
}
.calendar-day header span {
  color: var(--muted);
  font-size: 13px;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
  padding: 10px;
}
.slot-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}
.slot-button:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
.slot-button.active {
  border-color: transparent;
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(21,74,255,.18);
}

.toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 10;
  max-width: 420px;
  padding: 12px 14px;
  border-radius: 8px;
  color: white;
  background: var(--ink);
  box-shadow: 0 18px 44px rgba(18,34,56,.18);
}
.toast.error { background: var(--danger); }
.toast.success { background: var(--green); }
.toast.warning { background: #765500; }
.config-warning {
  margin-bottom: var(--space-3);
  padding: 12px 14px;
  border: 1px solid #e6b800;
  border-radius: 8px;
  background: #fff9d9;
  color: #5f4c00;
  font-size: 14px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
  margin: var(--space-4) 0 var(--space-5);
}
.stats div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}
.stats strong { display: block; font-size: 28px; }
.stats span { color: var(--muted); }
.admin-dashboard {
  width: min(1240px, calc(100% - 28px));
  margin: var(--space-5) auto;
}
.exhibitor-dashboard {
  width: min(1180px, calc(100% - 28px));
  margin: var(--space-5) auto;
}
.admin-tabs {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin: var(--space-4) 0 var(--space-5);
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-3);
}
.admin-tabs button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
}
.admin-tabs button.active {
  border-color: transparent;
  background: var(--brand-gradient);
  color: #ffffff;
}
.admin-view {
  display: grid;
  gap: var(--space-5);
}
.overview-grid, .admin-split {
  display: grid;
  gap: var(--space-5);
}
.mini-panel, .admin-create-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: var(--space-4);
}
.admin-create-grid {
  display: grid;
  gap: var(--space-3);
}
.compact-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
.compact-list div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-2);
}
.compact-list span, .section-title span {
  color: var(--muted);
  font-size: 13px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: end;
  margin-bottom: var(--space-4);
}
.admin-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--space-4);
}
.backup-tools {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfbfd;
}
.backup-tools p { margin: 6px 0 0; line-height: 1.5; }
.backup-tools .admin-toolbar { margin: 0; justify-content: flex-start; }
.restore-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: end;
}
.restore-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.restore-form button { min-height: 44px; }
.admin-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: var(--space-2);
  align-items: end;
  margin-bottom: var(--space-3);
}
.admin-filters button { min-height: 44px; }
.admin-exhibitors {
  display: grid;
  gap: var(--space-3);
  margin: var(--space-4) 0 var(--space-6);
}
.admin-exhibitor-card {
  display: grid;
  gap: var(--space-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-4);
  background: #ffffff;
}
.admin-exhibitor-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.admin-exhibitor-title span {
  color: var(--muted);
  font-size: 13px;
}
.admin-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.save-exhibitor, .delete-exhibitor {
  min-height: 40px;
  border-radius: 8px;
  padding: 0 12px;
  font-weight: 800;
}
.save-exhibitor {
  border: 1px solid var(--brand-blue);
  background: #ffffff;
  color: var(--brand-blue);
}
.delete-exhibitor {
  border: 1px solid rgba(201,55,44,.28);
  background: #fff7f7;
  color: var(--danger);
}
.table { display: grid; gap: var(--space-3); }
.email-outbox-list { margin: var(--space-4) 0; }
.email-outbox-row { grid-template-columns: 1fr; }
.outbox-status-actions { display: grid; gap: var(--space-2); justify-items: stretch; }
.outbox-bulk-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.outbox-bulk-actions .delete-exhibitor { flex: 1 1 240px; }
.outbox-status { display: inline-flex; justify-content: center; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.outbox-status.pending { background: #fff3cd; color: #765800; }
.outbox-status.sent { background: #dff5e8; color: #17633a; }

.compact-appointments {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}
.compact-rdv-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto;
  gap: var(--space-3);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-3);
  background: #ffffff;
  min-width: 0;
}
.compact-rdv-card > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.compact-rdv-card strong, .compact-rdv-card span {
  overflow-wrap: anywhere;
}
.compact-rdv-card span {
  color: var(--muted);
}
.copy-manage-link {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 800;
}
.copy-manage-link:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.exhibitor-appointments {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
}
.exhibitor-rdv-card {
  display: grid;
  gap: var(--space-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: var(--space-4);
}
.rdv-main {
  display: grid;
  gap: 8px;
}
.rdv-main > div:first-child {
  display: grid;
  gap: 4px;
}
.rdv-main span, .rdv-main small {
  color: var(--muted);
}
.rdv-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.rdv-actions button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
  font-weight: 800;
}
.rdv-actions button:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
.rdv-actions .danger-inline {
  border-color: rgba(201,55,44,.28);
  background: #fff7f7;
  color: var(--danger);
}
.exhibitor-settings {
  display: grid;
  gap: var(--space-5);
  align-items: start;
}
.row {
  display: grid;
  gap: var(--space-3);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-4);
}
.row > div { display: grid; gap: 3px; }
.note { min-height: 52px; }
.save-rdv {
  min-height: 40px;
  border: 1px solid var(--brand-blue);
  border-radius: 8px;
  background: white;
  color: var(--brand-blue);
  font-weight: 800;
}
.fatal {
  display: grid;
  gap: 16px;
  width: min(100% - 32px, 620px);
  margin: 12vh auto;
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid rgba(201,55,44,.25);
  border-radius: 14px;
  background: #fff;
  color: var(--danger);
  box-shadow: 0 18px 50px rgba(18,34,56,.08);
}
.fatal h1 { color: var(--ink); background: none; font-size: clamp(28px, 6vw, 42px); }
.fatal p { margin: 0; line-height: 1.55; }
.fatal button { width: fit-content; }

.privacy-notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfbfd;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.privacy-notice summary { cursor: pointer; color: var(--ink); font-weight: 800; }
.privacy-notice p { margin: 10px 0 0; }
.privacy-notice a, .site-footer a { color: #123fcf; }
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  padding: 22px clamp(14px, 3vw, 36px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* Responsive hardening */
img, svg { max-width: 100%; }
.table, .admin-view, .admin-dashboard, .exhibitor-dashboard, .panel { min-width: 0; max-width: 100%; }
.row > *, .admin-exhibitor-card > *, .exhibitor-rdv-card > *, .mini-panel > *, .admin-create-card > * { min-width: 0; max-width: 100%; }
.row strong, .row span, .rdv-main strong, .rdv-main span, .rdv-main small { overflow-wrap: anywhere; }
.status-select, .save-rdv, .delete-rdv, .copy-manage-link { width: 100%; }
.row .note { width: 100%; }


@media (min-width: 760px) {
  .hero { grid-template-columns: minmax(0, 1fr) 240px; padding: 44px clamp(28px, 4vw, 48px) 34px; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .overview-grid { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); }
  .admin-create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-header { grid-template-columns: minmax(0, 1fr) auto; }
  .rdv-main { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .calendar-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gdpr-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .email-outbox-row { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(160px, .65fr); align-items: start; }
}

@media (min-width: 980px) {
  .layout { grid-template-columns: minmax(360px, .9fr) minmax(440px, 1.1fr); padding: 32px 36px 42px; }
  .list-only { grid-template-columns: 1fr; }
  .booking-form-grid { grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr); }
}

@media (max-width: 1179px) {
  .compact-rdv-card { grid-template-columns: 1fr; align-items: start; }
  .compact-rdv-card .status { justify-self: start; }
  .row .status { justify-self: start; }
  .admin-actions, .rdv-actions { justify-content: stretch; }
  .admin-actions button, .rdv-actions button { flex: 1 1 150px; }
}

@media (max-width: 720px) {
  .grid-2, .panel-head, .section-title { grid-template-columns: 1fr; display: grid; }
  .topbar { min-height: 58px; padding: 8px 12px; align-items: center; }
  .topbar-brand { max-width: calc(100% - 56px); text-align: left; line-height: 1.05; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
  .topbar-login { width: 40px; height: 40px; min-width: 40px; flex: 0 0 40px; }
  .hero { padding: 24px 14px 22px; }
  h1 { font-size: clamp(34px, 11vw, 44px); }
  .brand-logo { width: min(210px, 70vw); }
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel { padding: var(--space-3); }
  .layout, .booking-page { padding: var(--space-4) var(--space-3); gap: var(--space-4); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: var(--space-3) 0 var(--space-4); }
  .panel-head button, .section-title .link, .admin-toolbar .link { width: 100%; margin-bottom: 0; }
  .admin-toolbar { justify-content: stretch; }
  .toast { left: 12px; right: 12px; max-width: none; }
  .site-footer { display: grid; }
  .restore-form { grid-template-columns: 1fr; }
  .restore-form button { width: 100%; }
}

@media (max-width: 420px) {
  .stats, .slot-grid { grid-template-columns: 1fr 1fr; }
  .event-days span { width: 100%; }
}

.login-panel h1 {
  color: var(--ink);
  background: none;
  font-size: clamp(30px, 5vw, 46px);
}
.login-panel .back-button {
  margin-bottom: var(--space-3);
}
.delete-rdv {
  min-height: 40px;
  border: 1px solid rgba(201,55,44,.28);
  border-radius: 8px;
  background: #fff7f7;
  color: var(--danger);
  padding: 0 10px;
  font-weight: 800;
}

/* Final product responsive layout */
.self-service-box {
  display: grid;
  gap: var(--space-3);
  border: 1px solid rgba(21,74,255,.18);
  border-radius: 12px;
  padding: var(--space-4);
  background: linear-gradient(120deg, rgba(231,46,61,.05), rgba(21,74,255,.06)), #fff;
  margin: var(--space-3) 0;
  min-width: 0;
}
.self-service-box h2 { font-size: 18px; }
.self-service-box input { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.self-service-actions, .rdv-record-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.self-service-actions button,
.calendar-button,
.rdv-record-actions button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.self-service-actions button:hover,
.calendar-button:hover,
.rdv-record-actions button:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}
.rdv-record {
  display: grid;
  gap: var(--space-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: var(--space-4);
  background: #fff;
  min-width: 0;
  width: 100%;
  overflow-wrap: anywhere;
}
.rdv-record-summary {
  display: grid;
  grid-template-columns: minmax(180px, .9fr) minmax(220px, 1.2fr) auto;
  gap: var(--space-3);
  align-items: start;
  min-width: 0;
}
.rdv-record-summary > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.rdv-record-summary strong,
.rdv-record-summary span,
.rdv-edit-grid label,
.visitor-edit summary {
  overflow-wrap: anywhere;
}
.rdv-record-summary span { color: var(--muted); }
.rdv-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  align-items: start;
  min-width: 0;
}
.rdv-edit-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.rdv-edit-grid input,
.rdv-edit-grid select,
.rdv-edit-grid textarea {
  color: var(--ink);
  font-weight: 400;
}
.wide-field { grid-column: 1 / -1; }
.visitor-edit {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 12px;
  min-width: 0;
}
.visitor-edit summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
}
.visitor-grid { margin-top: var(--space-3); }
.danger-inline, .delete-rdv {
  border-color: rgba(201,55,44,.28) !important;
  background: #fff7f7 !important;
  color: var(--danger) !important;
}
.exhibitor-settings {
  grid-template-columns: minmax(0, 1fr);
}
.exhibitor-settings > .mini-panel { min-width: 0; max-width: 100%; }
.exhibitor-dashboard {
  border-radius: 18px;
  padding: clamp(18px, 3vw, 32px);
  box-shadow: 0 18px 50px rgba(18, 34, 56, .06);
}
.exhibitor-dashboard .section-title .link { margin-bottom: 0; }
.exhibitor-dashboard .stats div {
  background: linear-gradient(145deg, #ffffff, #f8f9ff);
  border-color: rgba(21, 74, 255, .12);
}
.settings-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
  gap: var(--space-5);
  align-items: end;
  margin: var(--space-6) 0 var(--space-4);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}
.settings-heading > * { min-width: 0; }
.settings-heading h2 { margin-top: 6px; font-size: clamp(22px, 2.5vw, 30px); }
.settings-heading p { margin: 0; color: var(--muted); line-height: 1.55; }
.settings-kicker {
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.settings-card {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: var(--space-3);
  min-height: 0;
  border-radius: 14px;
  padding: clamp(18px, 2.5vw, 26px);
  background: linear-gradient(180deg, #ffffff, #fcfcff);
  box-shadow: 0 10px 30px rgba(18, 34, 56, .045);
}
.settings-card-header {
  display: grid;
  gap: 6px;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.settings-card-header h2 { font-size: 19px; }
.settings-card-header p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.settings-field,
.availability-time-grid > label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #555b68;
  font-size: 13px;
  font-weight: 800;
}
.settings-field input,
.settings-field textarea,
.availability-time-grid input {
  color: var(--ink);
  font-weight: 400;
}
.settings-card input { min-height: 48px; }
.profile-settings-card textarea { min-height: 132px; line-height: 1.5; }
.settings-submit {
  width: auto;
  min-width: 190px;
  min-height: 46px;
  align-self: flex-end;
  margin-top: auto;
}
.availability-settings-card { grid-column: 1 / -1; }
.availability-settings-card .settings-submit { min-width: 260px; }
.team-settings-card { grid-column: 1 / -1; }
.team-members { display: grid; gap: var(--space-2); }
.team-member-row,
.team-member-create {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: var(--space-2);
  align-items: end;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.team-member-create { margin-top: var(--space-2); background: #fbfdff; }
.team-member-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.team-member-actions button,
.team-member-create button { min-height: 44px; }
.team-member-summary {
  display: grid;
  gap: 4px;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.team-member-summary span,
.settings-field small { color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.4; }
.exhibitor-availability-days {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  align-items: stretch;
  margin-top: 0;
}
.exhibitor-availability-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}
.availability-card-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  align-items: start;
  min-width: 0;
}
.availability-card-head .availability-toggle {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--ink);
  font-weight: 700;
}
.availability-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
  min-width: 0;
}
.availability-time-grid .availability-blocks { grid-column: 1 / -1; }
.exhibitor-availability-row:has(.availability-enabled:not(:checked)) .availability-time-grid { opacity: .55; }
.table { overflow: visible; }

.visitor-manage-form {
  gap: var(--space-5);
}
.visitor-manage-section {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.visitor-manage-section > label,
.visitor-manage-section .grid-2 > label,
.admin-schedule-row > label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.visitor-manage-section input,
.admin-schedule-row input {
  color: var(--ink);
  font-weight: 400;
}

.admin-schedule {
  min-width: 0;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fbfbfd;
}
.admin-schedule summary {
  cursor: pointer;
  font-weight: 800;
}
.admin-schedule-days {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
  margin-top: var(--space-3);
  container-type: inline-size;
  container-name: schedule-grid;
}
.admin-schedule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-2);
  align-items: end;
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.admin-schedule-row > * { min-width: 0; max-width: 100%; }
.availability-day {
  display: grid;
  gap: 8px;
  align-self: center;
}
.availability-hours-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.availability-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}
.availability-toggle input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
}
.save-availability {
  min-height: 44px;
  border: 1px solid var(--brand-blue);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-blue);
  padding: 0 12px;
  font-weight: 800;
}
.save-availability:hover { background: var(--brand-soft); }

@container schedule-grid (min-width: 380px) {
  .admin-schedule-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .availability-day,
  .availability-blocks,
  .save-availability { grid-column: 1 / -1; }
}

@container schedule-grid (min-width: 900px) {
  .admin-schedule-row {
    grid-template-columns: minmax(180px, 1.2fr) repeat(2, minmax(105px, .7fr)) minmax(230px, 1.1fr) auto;
  }
  .availability-day,
  .availability-blocks,
  .save-availability { grid-column: auto; }
}

@media (max-width: 1120px) {
  .admin-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filters input { grid-column: 1 / -1; }
}

@media (max-width: 1050px) {
  .rdv-record-summary { grid-template-columns: 1fr; }
  .rdv-record-summary .status { justify-self: start; }
}

@media (max-width: 620px) {
  .self-service-actions, .rdv-record-actions { display: grid; grid-template-columns: 1fr; }
  .self-service-actions > *, .rdv-record-actions > * { width: 100%; }
  .rdv-edit-grid { grid-template-columns: 1fr; }
  .admin-dashboard, .exhibitor-dashboard { width: min(100% - 18px, 1240px); }
  .admin-tabs { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-tabs button { width: 100%; }
  .visitor-manage-section { padding: var(--space-3); }
  .admin-filters { grid-template-columns: 1fr; }
  .admin-filters input { grid-column: auto; }
  .exhibitor-card:has(.exhibitor-logo) { grid-template-columns: 64px minmax(0, 1fr); }
  .exhibitor-logo { width: 56px; height: 46px; }
}

@media (max-width: 759px) {
  .settings-heading { grid-template-columns: 1fr; gap: var(--space-2); }
  .settings-card { align-self: start; width: 100%; }
}

@media (max-width: 520px) {
  .exhibitor-dashboard { border-radius: 12px; padding: var(--space-3); }
  .availability-card-head { display: grid; }
  .availability-card-head .availability-toggle { justify-self: start; }
  .availability-time-grid { grid-template-columns: 1fr; }
  .availability-time-grid .availability-blocks { grid-column: auto; }
  .settings-submit, .availability-settings-card .settings-submit { width: 100%; min-width: 0; }
}

/* Kept last so the settings composition wins over the base mobile layout. */
@media (min-width: 760px) {
  .exhibitor-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #profileForm { order: 1; }
  #passwordForm { order: 2; }
  #availabilityForm { order: 3; grid-column: 1 / -1; }
}
