:root {
  --bg: #f5efe8;
  --panel: rgba(255, 252, 247, 0.95);
  --ink: #17324a;
  --muted: #5d6d7b;
  --line: rgba(23, 50, 74, 0.12);
  --brand: #0d5c63;
  --brand-strong: #083d42;
  --accent: #d97c2b;
  --shadow: 0 22px 60px rgba(23, 50, 74, 0.12);
  --radius-hero: 34px;
  --radius-xl: 28px;
  --font-main: "Aptos", "Segoe UI", "Trebuchet MS", sans-serif;
  --font-mono: "Consolas", "SFMono-Regular", monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font-main);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(13, 92, 99, 0.16), transparent 24%),
    radial-gradient(circle at top right, rgba(217, 124, 43, 0.14), transparent 22%),
    linear-gradient(180deg, #fbf8f4 0%, #f1e9de 100%);
}
input, select, textarea, button { font: inherit; }
.marketplace-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.market-default { background: rgba(23, 50, 74, 0.08); color: var(--ink); border-color: rgba(23, 50, 74, 0.10); }
.market-amazon { background: rgba(245, 158, 11, 0.12); color: #9a5b00; border-color: rgba(245, 158, 11, 0.18); }
.market-veepee { background: rgba(168, 85, 247, 0.12); color: #7b3fc0; border-color: rgba(168, 85, 247, 0.18); }
.market-temu { background: rgba(249, 115, 22, 0.12); color: #b45309; border-color: rgba(249, 115, 22, 0.18); }
.market-kaufland { background: rgba(59, 130, 246, 0.12); color: #245fa6; border-color: rgba(59, 130, 246, 0.18); }
.market-cdiscount { background: rgba(14, 116, 144, 0.12); color: #0f5d73; border-color: rgba(14, 116, 144, 0.18); }
.market-but { background: rgba(20, 184, 166, 0.12); color: #0f766e; border-color: rgba(20, 184, 166, 0.18); }
.market-castorama { background: rgba(99, 102, 241, 0.12); color: #4248b8; border-color: rgba(99, 102, 241, 0.18); }
.market-conforama { background: rgba(236, 72, 153, 0.12); color: #b83280; border-color: rgba(236, 72, 153, 0.18); }
.market-lcl { background: rgba(82, 113, 255, 0.12); color: #3f56b8; border-color: rgba(82, 113, 255, 0.18); }
.market-leroy { background: rgba(132, 204, 22, 0.14); color: #5f8b12; border-color: rgba(132, 204, 22, 0.20); }
.market-manomano { background: rgba(6, 182, 212, 0.14); color: #0e7490; border-color: rgba(6, 182, 212, 0.20); }
.market-carrefour { background: rgba(37, 99, 235, 0.12); color: #2455ad; border-color: rgba(37, 99, 235, 0.18); }
.market-showroom { background: rgba(107, 114, 128, 0.12); color: #5c6475; border-color: rgba(107, 114, 128, 0.18); }
.market-venteunique { background: rgba(16, 185, 129, 0.12); color: #18765b; border-color: rgba(16, 185, 129, 0.18); }
.market-bol { background: rgba(139, 92, 246, 0.12); color: #6d42c7; border-color: rgba(139, 92, 246, 0.18); }
.shell { max-width: 1880px; margin: 0 auto; padding: 20px; }
.login-wrap { min-height: calc(100vh - 48px); display: grid; place-items: center; }
.login-card {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  border-radius: var(--radius-hero);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.login-hero, .hero {
  border-radius: var(--radius-hero);
  background: linear-gradient(135deg, rgba(8, 61, 66, 0.98), rgba(23, 50, 74, 0.98));
  color: white;
  box-shadow: var(--shadow);
}
.login-hero { padding: 34px; border-radius: 0; }
.login-panel { background: rgba(255, 252, 247, 0.98); padding: 34px; }
.eyebrow { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.login-hero .eyebrow, .hero .eyebrow { color: rgba(255,255,255,0.68); }
h1,h2,h3,p { margin-top: 0; }
h1 { margin: 0; font-size: clamp(34px, 4vw, 54px); line-height: 1; letter-spacing: -0.05em; }
h2 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
.login-hero p, .hero p { color: rgba(255,255,255,0.78); font-size: 15px; line-height: 1.6; }
.login-hero p:empty, .hero p:empty, .section-head p:empty, .kpi-sub:empty { display: none; }
.hero .hero-copy > p {
  max-width: 700px;
  min-height: 52px;
}
.muted { color: var(--muted); }
label { display: block; font-size: 13px; color: var(--muted); }
.required-mark {
  color: #c45116;
  font-weight: 900;
  margin-left: 2px;
}
.required-mark[hidden] {
  display: none;
}
input, select, textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid rgba(23, 50, 74, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  background: white;
  color: var(--ink);
}
textarea { resize: vertical; }
button {
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}
button:disabled {
  cursor: wait;
  opacity: 0.75;
}
.secondary {
  background: white;
  color: var(--brand-strong);
  border: 1px solid rgba(23, 50, 74, 0.12);
}
.error-box, .info-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 18px;
  font-size: 14px;
}
.error-box {
  background: linear-gradient(180deg, rgba(217, 124, 43, 0.10), rgba(217, 124, 43, 0.04));
  border: 1px solid rgba(217, 124, 43, 0.22);
  color: #8e4614;
}
.info-box {
  background: linear-gradient(180deg, rgba(13, 92, 99, 0.08), rgba(13, 92, 99, 0.02));
  border: 1px solid rgba(13, 92, 99, 0.12);
  color: var(--muted);
}
.live-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 70;
  min-width: 260px;
  max-width: 380px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(8, 61, 66, 0.96), rgba(13, 92, 99, 0.94));
  color: white;
  box-shadow: 0 20px 40px rgba(23, 50, 74, 0.18);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 700;
}
.loading-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(13, 92, 99, 0.18);
  border-top-color: var(--brand);
  animation: spin 0.9s linear infinite;
  flex: 0 0 auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.dashboard { display: grid; gap: 20px; }
.hero { padding: 30px; }
.hero-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.hero-copy { flex: 1 1 640px; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 12px;
  min-width: min(100%, 380px);
}
.meta-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 11px 13px;
  backdrop-filter: blur(8px);
}
.meta-card .label {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.meta-card .value {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: white;
  line-height: 1.25;
}
.lang-switch, .view-switch {
  display: inline-flex; gap: 8px; padding: 6px; border-radius: 999px;
  background: rgba(13, 92, 99, 0.08); border: 1px solid rgba(13, 92, 99, 0.10);
}
.lang-switch { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
.portal-nav {
  display: inline-flex;
  gap: 10px;
  margin-top: 22px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
}
.lang-btn, .view-btn, .portal-tab {
  border: 0; border-radius: 999px; background: transparent; padding: 8px 14px; cursor: pointer; font-weight: 700;
}
.lang-btn { color: rgba(255,255,255,0.78); }
.lang-btn.active { background: white; color: var(--brand-strong); }
.portal-tab { color: rgba(255,255,255,0.78); }
.portal-tab.active { background: white; color: var(--brand-strong); }
.portal-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f4b740;
  color: #7a4a00;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}
.view-btn { color: var(--brand-strong); }
.view-btn.active { background: var(--brand); color: white; }
.layout { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.panel { background: var(--panel); border-radius: var(--radius-xl); border: 1px solid rgba(255,255,255,0.65); box-shadow: var(--shadow); }
.section, .detail-panel { padding: 20px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.section-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.kpi-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}
.kpi-card { padding: 16px; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(248,244,238,0.96)); border: 1px solid rgba(23, 50, 74, 0.08); }
.split-kpi { display: grid; align-content: stretch; gap: 12px; }
.metric-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metric-card {
  min-height: 72px;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  align-content: space-between;
  background: linear-gradient(180deg, #ffffff, #f8faf9);
  border: 1px solid rgba(23, 50, 74, 0.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}
.metric-card span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.metric-card strong { font-size: 30px; line-height: 1; color: var(--ink); }
.create-action-stack {
  display: grid;
  gap: 12px;
  align-content: center;
  justify-self: end;
  width: min(100%, 360px);
  margin-right: 18px;
}
.create-ticket-cta {
  min-height: 64px;
  width: 100%;
  border-radius: 16px;
  background: linear-gradient(180deg, #f6fffd 0%, #dff3ef 100%);
  color: #06383d;
  box-shadow: 0 14px 30px rgba(13, 92, 99, 0.16);
  border: 1px solid rgba(13, 92, 99, 0.26);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  text-align: left;
  padding: 14px 18px;
}
.create-ticket-cta:hover {
  background: linear-gradient(180deg, #ffffff 0%, #cfece6 100%);
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(13, 92, 99, 0.20);
}
.shipment-cta {
  background: linear-gradient(180deg, #fff9ee 0%, #f2dfb8 100%);
  color: #53350a;
  border-color: rgba(196, 133, 30, 0.34);
  box-shadow: 0 14px 30px rgba(162, 116, 36, 0.16);
}
.shipment-cta:hover {
  background: linear-gradient(180deg, #fffdf8 0%, #ecd39f 100%);
  box-shadow: 0 18px 36px rgba(162, 116, 36, 0.20);
}
.create-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  color: white;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 8px 18px rgba(23, 50, 74, 0.14);
}
.ticket-action-icon {
  background: linear-gradient(180deg, #0d6f77 0%, #073a40 100%);
}
.shipment-action-icon {
  background: linear-gradient(180deg, #c4841e 0%, #6b4611 100%);
}
.create-action-icon svg {
  width: 29px;
  height: 29px;
  display: block;
  fill: currentColor;
}
.kpi-label { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.kpi-value { font-size: 32px; font-weight: 700; margin-bottom: 8px; }
.kpi-sub { color: var(--muted); font-size: 13px; line-height: 1.45; }
.ticket-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) 420px; gap: 20px; align-items: start; }
.table-block-head { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: center; margin-bottom: 18px; }
.table-filters { display: grid; grid-template-columns: minmax(320px, 1fr) auto 200px 200px; align-items: center; justify-content: flex-end; gap: 10px; }
.table-view-filter {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(13, 92, 99, 0.07);
  border: 1px solid rgba(13, 92, 99, 0.10);
  white-space: nowrap;
}
.table-view-filter .view-btn {
  min-width: 74px;
  padding: 8px 12px;
  font-size: 13px;
}
.table-type-switch {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(13, 92, 99, 0.07);
  border: 1px solid rgba(13, 92, 99, 0.10);
}
.table-type-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--brand-strong);
  padding: 9px 16px;
  cursor: pointer;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
}
.table-type-btn.active {
  background: var(--brand);
  color: white;
}
.table-alert-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f4b740;
  color: #7a4a00;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.52);
}
.table-type-btn.active .table-alert-badge {
  background: #fff3c4;
  color: #6f4300;
}
.table-card-block {
  padding: 22px 20px;
  border: 1px solid rgba(23, 50, 74, 0.08);
  border-radius: 20px;
  background: rgba(255, 252, 247, 0.92);
  box-shadow: 0 16px 34px rgba(23, 50, 74, 0.06);
}
.general-card-block {
  box-shadow: inset 0 0 0 1px rgba(13, 92, 99, 0.03);
}
.table-block h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 850;
}
.table-search-input, .table-status-filter, .table-marketplace-filter { width: 100%; }
.table-wrap { overflow: auto; max-height: 760px; border-radius: 18px; border: 1px solid rgba(23, 50, 74, 0.08); background: rgba(255,255,255,0.75); }
.shipment-table-wrap { max-height: 520px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
.request-table { min-width: 980px; }
.shipment-table-wrap .request-table { min-width: 1180px; }
thead th { position: sticky; top: 0; background: #fff9f2; z-index: 1; text-align: left; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
th, td { padding: 12px 14px; border-bottom: 1px solid rgba(23, 50, 74, 0.08); vertical-align: top; }
.request-table tbody tr { cursor: pointer; }
.request-table tbody tr:hover, .request-table tbody tr.active { background: rgba(13, 92, 99, 0.06); }
.mono { font-family: var(--font-mono); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.badge.status-new { background: rgba(245, 158, 11, 0.14); color: #a16207; }
.badge.status-waiting { background: rgba(249, 115, 22, 0.12); color: #b45309; }
.badge.status-action { background: rgba(236, 72, 153, 0.12); color: #b83280; }
.badge.status-hold { background: rgba(245, 158, 11, 0.14); color: #a16207; }
.badge.status-processed { background: rgba(16, 185, 129, 0.14); color: #0f766e; }
.badge.status-closed { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.badge.status-resent { background: rgba(13, 92, 99, 0.14); color: var(--brand-strong); }
.badge.status-default { background: rgba(23, 50, 74, 0.08); color: var(--ink); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-grid .full { grid-column: 1 / -1; }
.detail-panel.empty-state { display: grid; place-items: center; min-height: 320px; color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.detail-summary { margin-bottom: 8px; }
.detail-section { margin-top: 18px; }
.shipment-detail-box { padding: 14px; border-radius: 18px; background: rgba(162, 116, 36, 0.08); border: 1px solid rgba(162, 116, 36, 0.16); }
.detail-primary-action {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
}
.message-list { display: grid; gap: 12px; margin-top: 12px; }
.message { padding: 14px; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(248,244,238,0.96)); border: 1px solid rgba(23, 50, 74, 0.08); }
.message small { color: var(--muted); }
.attachment-dropzone {
  position: relative;
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 14px;
  border: 1px dashed rgba(13, 92, 99, 0.32);
  border-radius: 16px;
  background: rgba(13, 92, 99, 0.05);
  cursor: pointer;
  transition: 0.16s ease;
}
.attachment-dropzone:hover, .attachment-dropzone.dragging {
  background: rgba(13, 92, 99, 0.09);
  border-color: rgba(13, 92, 99, 0.55);
}
.attachment-dropzone input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.attachment-drop-main { font-weight: 800; color: var(--brand-strong); }
.attachment-drop-sub, .attachment-dropzone small { color: var(--muted); }
.upload-progress {
  overflow: hidden;
  position: relative;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(13, 92, 99, 0.08);
  color: var(--brand-strong);
  font-size: 12px;
}
.upload-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background: rgba(13, 92, 99, 0.14);
  animation: uploadSlide 1.2s infinite ease-in-out;
}
.upload-progress strong { position: relative; z-index: 1; }
@keyframes uploadSlide {
  0% { transform: translateX(-80%); }
  100% { transform: translateX(260%); }
}
.attachment-message { padding: 10px; }
.attachment-card { display: grid; grid-template-columns: 78px 1fr; gap: 12px; align-items: center; }
.attachment-preview {
  display: grid;
  place-items: center;
  width: 78px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(23, 50, 74, 0.06);
  border: 1px solid rgba(23, 50, 74, 0.08);
}
.attachment-preview img { width: 100%; height: 100%; object-fit: cover; }
.pdf-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 34px;
  border-radius: 8px;
  background: rgba(217, 124, 43, 0.14);
  color: #a44e12;
  font-size: 12px;
  font-weight: 900;
}
.attachment-info { min-width: 0; display: grid; gap: 5px; }
.attachment-info strong { overflow-wrap: anywhere; }
.attachment-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.attachment-actions .secondary { width: auto; min-height: 32px; padding: 7px 10px; text-decoration: none; font-size: 12px; }
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 50, 74, 0.32);
  display: grid;
  place-items: center;
  padding: clamp(10px, 3vh, 24px);
  z-index: 50;
  overflow: auto;
}
.modal-card {
  width: min(760px, calc(100vw - 20px));
  max-height: min(900px, calc(100dvh - 20px));
  background: rgba(255, 252, 247, 0.98);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
  padding: clamp(14px, 2.2vw, 22px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
.modal-card .section-head {
  align-items: center;
  padding-bottom: 10px;
}
.modal-card .quick-grid {
  overflow: auto;
  min-height: 0;
  padding-right: 4px;
  scrollbar-width: thin;
}
.create-form button.full {
  position: sticky;
  bottom: 0;
  min-height: 44px;
  box-shadow: 0 -10px 18px rgba(255, 252, 247, 0.88);
}
.modal-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  background: white;
  color: var(--brand-strong);
  border: 1px solid rgba(23, 50, 74, 0.12);
  font-size: 26px;
  line-height: 0;
  padding-bottom: 3px;
}
.modal-close-btn:hover {
  background: rgba(13, 92, 99, 0.08);
}
@supports not (height: 100dvh) {
  .modal-card { max-height: min(900px, calc(100vh - 20px)); }
}
@media (max-width: 1380px) { .ticket-layout { grid-template-columns: 1fr; } }
@media (max-width: 1100px) {
  .login-card, .hero-top, .hero-meta, .kpi-grid, .detail-grid, .table-tools, .quick-grid, .ticket-layout { grid-template-columns: 1fr; display: grid; }
  .table-block-head, .table-filters { align-items: stretch; justify-content: flex-start; }
  .metric-pair { grid-template-columns: 1fr; }
  .table-filters { grid-template-columns: 1fr; }
  .table-filters, .table-status-filter, .table-marketplace-filter, .table-view-filter { width: 100%; }
  .table-view-filter { justify-content: space-between; }
  .table-view-filter .view-btn { flex: 1; }
}
@media (max-width: 760px), (max-height: 760px) {
  .modal-backdrop {
    align-items: start;
  }
  .modal-card {
    width: min(100%, calc(100vw - 16px));
    max-height: calc(100dvh - 16px);
    border-radius: 20px;
  }
  .modal-card .quick-grid {
    grid-template-columns: 1fr;
  }
  .modal-card .quick-grid .full {
    grid-column: auto;
  }
}
@media (max-width: 520px) {
  .modal-backdrop {
    padding: 6px;
  }
  .modal-card {
    width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 16px;
  }
  .modal-card .section-head {
    gap: 10px;
  }
  .modal-card h2 {
    font-size: 20px;
  }
}
