:root {
  --bg-base: #EEF3F0;
  --blob-1: #8FE3CF;
  --blob-2: #FFCFA3;
  --blob-3: #B9C8FF;
  --blob-opacity: 0.55;

  --shell-bg: rgba(255, 255, 255, 0.52);
  --shell-border: rgba(255, 255, 255, 0.75);
  --shell-shadow: 0 30px 80px rgba(15, 40, 34, 0.16), 0 8px 24px rgba(15, 40, 34, 0.08);

  --surface: rgba(255, 255, 255, 0.68);
  --surface-strong: rgba(255, 255, 255, 0.92);
  --surface-hover: rgba(255, 255, 255, 0.85);
  --border: rgba(20, 40, 34, 0.09);
  --border-soft: rgba(20, 40, 34, 0.06);

  --text: #12201B;
  --text-muted: #5B6F67;
  --text-faint: #8CA097;

  --accent: #0C8F72;
  --accent-2: #12B8A0;
  --accent-ink: #FFFFFF;
  --accent-glow: rgba(18, 184, 160, 0.35);

  --success: #279A5C;
  --success-soft: rgba(39, 154, 92, 0.12);
  --warning: #C98A28;
  --warning-soft: rgba(201, 138, 40, 0.13);
  --danger: #D06455;
  --danger-soft: rgba(208, 100, 85, 0.12);
  --violet: #6C77E0;
  --violet-soft: rgba(120, 130, 240, 0.14);

  --card-shadow: 0 1px 1px rgba(15, 40, 34, 0.04), 0 12px 28px rgba(15, 40, 34, 0.07);
  --card-shadow-lift: 0 20px 44px rgba(15, 40, 34, 0.14), 0 4px 12px rgba(15, 40, 34, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-base: #0A100E;
    --blob-1: #1FA98A; --blob-2: #B8703C; --blob-3: #4A5CC7; --blob-opacity: 0.4;
    --shell-bg: rgba(16, 24, 22, 0.6);
    --shell-border: rgba(255, 255, 255, 0.09);
    --shell-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.3);
    --surface: rgba(255, 255, 255, 0.045);
    --surface-strong: rgba(255, 255, 255, 0.08);
    --surface-hover: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.09);
    --border-soft: rgba(255, 255, 255, 0.06);
    --text: #EAF2EF; --text-muted: #97A6A0; --text-faint: #647069;
    --accent: #3FE0BF; --accent-2: #6BEBCF; --accent-ink: #06231C; --accent-glow: rgba(63, 224, 191, 0.35);
    --success: #4FCB86; --success-soft: rgba(79, 203, 134, 0.14);
    --warning: #EFBE71; --warning-soft: rgba(239, 190, 113, 0.14);
    --danger: #EF8B79; --danger-soft: rgba(239, 139, 121, 0.14);
    --violet: #9AA4FF; --violet-soft: rgba(154, 164, 255, 0.16);
    --card-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 12px 28px rgba(0, 0, 0, 0.35);
    --card-shadow-lift: 0 20px 44px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"] {
  --bg-base: #0A100E;
  --blob-1: #1FA98A; --blob-2: #B8703C; --blob-3: #4A5CC7; --blob-opacity: 0.4;
  --shell-bg: rgba(16, 24, 22, 0.6);
  --shell-border: rgba(255, 255, 255, 0.09);
  --shell-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.3);
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --surface-hover: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.06);
  --text: #EAF2EF; --text-muted: #97A6A0; --text-faint: #647069;
  --accent: #3FE0BF; --accent-2: #6BEBCF; --accent-ink: #06231C; --accent-glow: rgba(63, 224, 191, 0.35);
  --success: #4FCB86; --success-soft: rgba(79, 203, 134, 0.14);
  --warning: #EFBE71; --warning-soft: rgba(239, 190, 113, 0.14);
  --danger: #EF8B79; --danger-soft: rgba(239, 139, 121, 0.14);
  --violet: #9AA4FF; --violet-soft: rgba(154, 164, 255, 0.16);
  --card-shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 12px 28px rgba(0, 0, 0, 0.35);
  --card-shadow-lift: 0 20px 44px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { color-scheme: light dark; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-base);
  color: var(--text);
  font-family: "Almarai", "Segoe UI", Tahoma, sans-serif;
  direction: rtl;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
  padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: var(--blob-opacity); }
.aurora .b1 { width: 80vw; height: 80vw; background: var(--blob-1); top: -30vw; right: -25vw; }
.aurora .b2 { width: 70vw; height: 70vw; background: var(--blob-2); bottom: -25vw; left: -20vw; }
.aurora .b3 { width: 50vw; height: 50vw; background: var(--blob-3); top: 45vh; left: 20vw; opacity: calc(var(--blob-opacity) * 0.7); }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

h1, h2, h3, .num { font-family: "Tajawal", "Almarai", sans-serif; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.shell {
  position: relative; z-index: 2;
  min-height: 100vh;
  background: var(--shell-bg);
  border: 1px solid var(--shell-border);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
}

.sidebar { display: none; }

.topbar {
  height: 60px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  position: sticky; top: 0; z-index: 4;
  background: var(--shell-bg);
  backdrop-filter: blur(20px);
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0;
  background: linear-gradient(155deg, var(--accent-2), var(--accent));
  display: grid; place-items: center; color: var(--accent-ink);
  font-family: "Tajawal", sans-serif; font-weight: 900; font-size: 14px;
  box-shadow: 0 6px 16px var(--accent-glow);
}
.topbar-brand strong { font-family: "Tajawal", sans-serif; font-weight: 900; font-size: 15px; }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border-soft); color: var(--text-muted);
  position: relative; flex-shrink: 0;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn .ping { position: absolute; top: 6px; left: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--surface-strong); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(155deg, var(--accent-2), var(--accent));
  display: grid; place-items: center; color: var(--accent-ink);
  font-weight: 800; font-size: 12.5px; font-family: "Tajawal", sans-serif;
}
.search-pill { display: none; }

main { padding: 18px 14px 28px; position: relative; z-index: 2; }

.greeting { margin-bottom: 18px; }
.greeting h2 { margin: 0 0 4px; font-size: 21px; font-weight: 900; letter-spacing: -0.01em; }
.greeting p { margin: 0; color: var(--text-muted); font-size: 13px; }
.greeting-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.period {
  font-size: 12px; color: var(--text-muted); background: var(--surface); border: 1px solid var(--border-soft);
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}

.feature-row {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity;
  margin: 0 -14px 14px; padding: 0 14px 4px;
  -webkit-overflow-scrolling: touch;
}
.feature-row::-webkit-scrollbar { display: none; }
.card-feature {
  scroll-snap-align: start; flex: 0 0 82%;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--card-shadow); padding: 20px 20px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.feature-top { display: flex; align-items: flex-start; justify-content: space-between; }
.feature-top .label { font-size: 12.5px; color: var(--text-muted); font-weight: 700; }
.feature-top .badge { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.badge.up { color: var(--success); background: var(--success-soft); }
.badge.down { color: var(--danger); background: var(--danger-soft); }
.feature-value { font-size: clamp(28px, 7vw, 34px); font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.feature-value small { font-size: 14px; font-weight: 700; color: var(--text-muted); margin-inline-start: 4px; }
.spark { width: 100%; height: 48px; display: block; }

.scroll-dots { display: flex; justify-content: center; gap: 6px; margin: -6px 0 16px; }
.scroll-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }
.scroll-dots span:first-child { background: var(--accent); width: 16px; border-radius: 4px; }

.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi-mini {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--card-shadow); padding: 15px 16px; display: flex; flex-direction: column; gap: 8px;
}
.mini-icon { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; }
.mini-icon svg { width: 15px; height: 15px; }
.mini-icon.teal { background: var(--success-soft); color: var(--success); }
.mini-icon.amber { background: var(--warning-soft); color: var(--warning); }
.mini-icon.violet { background: var(--violet-soft); color: var(--violet); }
.mini-value { font-size: 22px; font-weight: 900; letter-spacing: -0.01em; }
.mini-label { font-size: 12px; color: var(--text-muted); }
.mini-trend { font-size: 11px; font-weight: 700; color: var(--text-faint); }
.mini-trend b { color: var(--success); font-weight: 800; }

.lower-grid { display: flex; flex-direction: column; gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--card-shadow); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border-soft); }
.panel-head h3 { margin: 0; font-size: 14.5px; font-weight: 800; }
.panel-head a { font-size: 11.5px; color: var(--accent); font-weight: 800; }

.rtable { width: 100%; border-collapse: collapse; }
.rtable thead { display: none; }
.rtable tbody { display: flex; flex-direction: column; gap: 10px; padding: 14px; }
.rtable tr {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px;
  background: var(--surface-strong); border: 1px solid var(--border-soft); border-radius: 16px; padding: 12px 14px;
}
.rtable td { border: none; padding: 2px 0; font-size: 12.8px; }
.rtable td[data-label]::before { content: attr(data-label); display: block; font-size: 10.5px; color: var(--text-faint); font-weight: 700; margin-bottom: 1px; }
.rtable td.rt-title { grid-column: 1 / -1; font-weight: 800; font-size: 14px; padding-bottom: 4px; border-bottom: 1px solid var(--border-soft); margin-bottom: 4px; }
.rtable td.rt-status { grid-column: 1 / -1; margin-top: 2px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.chip.available { background: var(--success-soft); color: var(--success); }
.chip.sold { background: var(--border-soft); color: var(--text-muted); }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.timeline { padding: 6px 18px 16px; display: flex; flex-direction: column; }
.t-item { display: flex; gap: 12px; padding: 12px 0; position: relative; }
.t-item:not(:last-child)::before { content: ""; position: absolute; right: 15px; top: 34px; bottom: -12px; width: 1px; background: var(--border); }
.t-dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--surface-strong); border: 1px solid var(--border-soft); }
.t-dot svg { width: 15px; height: 15px; }
.t-dot.teal { color: var(--accent); }
.t-dot.green { color: var(--success); }
.t-dot.amber { color: var(--warning); }
.t-body p { margin: 0; font-size: 13px; }
.t-body span { font-size: 11.5px; color: var(--text-muted); }
.t-body strong { font-weight: 800; }

.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  background: var(--shell-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid var(--border-soft);
}
.bn-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 2px; border-radius: 14px; color: var(--text-faint);
}
.bn-item svg { width: 20px; height: 20px; }
.bn-item span { font-size: 10.5px; font-weight: 700; }
.bn-item.active { color: var(--accent); }
.bn-item.active svg { filter: drop-shadow(0 2px 6px var(--accent-glow)); }

@media (prefers-reduced-motion: reduce) { .card-feature, .kpi-mini { transition: none; } }

@media (min-width: 640px) {
  .rtable thead { display: table-header-group; }
  .rtable tbody { display: table-row-group; padding: 0; gap: 0; }
  .rtable tr { display: table-row; background: none; border: none; border-radius: 0; padding: 0; }
  .rtable tr:hover { background: var(--surface-hover); }
  .rtable td { border-top: 1px solid var(--border-soft); padding: 12px 20px; font-size: 13.3px; }
  .rtable td[data-label]::before { content: none; }
  .rtable td.rt-title { border-bottom: none; font-weight: 500; font-size: 13.3px; }
  .rtable thead th { text-align: right; font-size: 11px; color: var(--text-faint); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 11px 20px; }
  .table-wrap { overflow-x: auto; }
}

@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }

  .shell {
    margin: 18px; min-height: calc(100vh - 36px);
    display: grid; grid-template-columns: 252px 1fr;
    border-radius: 30px; box-shadow: var(--shell-shadow);
  }
  .sidebar {
    display: flex; flex-direction: column; gap: 26px;
    border-inline-start: 1px solid var(--border-soft); padding: 26px 18px;
  }
  .brand { display: flex; align-items: center; gap: 12px; padding-inline: 6px; }
  .brand .brand-mark { width: 42px; height: 42px; border-radius: 14px; font-size: 17px; }
  .brand-text { display: flex; flex-direction: column; }
  .brand-text strong { font-family: "Tajawal", sans-serif; font-weight: 900; font-size: 16.5px; letter-spacing: -0.01em; }
  .brand-text span { font-size: 11.5px; color: var(--text-muted); }

  .nav-group { display: flex; flex-direction: column; gap: 3px; }
  .nav-label { font-size: 11px; color: var(--text-faint); font-weight: 800; letter-spacing: 0.08em; padding: 0 12px; margin: 12px 0 6px; text-transform: uppercase; }
  .nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border-radius: 14px; color: var(--text-muted); font-weight: 600; font-size: 13.6px; transition: background 0.15s ease, color 0.15s ease; }
  .nav-item:hover { background: var(--surface); color: var(--text); }
  .nav-item.active { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: var(--accent-ink); font-weight: 800; box-shadow: 0 8px 20px var(--accent-glow); }
  .nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
  .sidebar-foot { margin-top: auto; padding: 13px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border-soft); display: flex; align-items: center; gap: 10px; }
  .sidebar-foot .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
  .sidebar-foot span { font-size: 12px; color: var(--text-muted); }

  .topbar { height: 78px; padding: 0 30px; background: none; backdrop-filter: none; }
  .topbar-brand { display: none; }
  .header-title { display: block; }
  .header-title h1 { margin: 0; font-size: 21px; font-weight: 900; letter-spacing: -0.01em; }
  .search-pill { display: flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-soft); color: var(--text-faint); font-size: 13px; width: 220px; }
  .search-pill svg { width: 15px; height: 15px; flex-shrink: 0; }
  .icon-btn { width: 38px; height: 38px; }
  .user-chip { display: flex; align-items: center; gap: 9px; padding: 6px 6px 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-soft); }
  .user-chip .who { display: flex; flex-direction: column; line-height: 1.25; }
  .user-chip .who strong { font-size: 12.5px; }
  .user-chip .who span { font-size: 11px; color: var(--text-muted); }
  .avatar { width: 32px; height: 32px; }

  main { padding: 26px 30px 44px; }
  .greeting-row { align-items: baseline; }
  .greeting h2 { font-size: 25px; }
  .greeting p { font-size: 13.5px; }

  .bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 16px; }
  .feature-row { display: contents; overflow: visible; margin: 0; padding: 0; }
  .card-feature { flex: none; scroll-snap-align: none; grid-column: span 3; padding: 22px 24px; }
  .scroll-dots { display: none; }
  .mini-grid { display: contents; }
  .kpi-mini { grid-column: span 2; padding: 18px 20px; }

  .lower-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; }
}

@media (min-width: 1180px) {
  .card-feature { grid-column: span 3; }
}

/* ---------- page head + actions ---------- */
.page-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.page-head h2 { margin: 0; font-size: 21px; font-weight: 900; letter-spacing: -0.01em; }
.page-head p { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: none; cursor: pointer;
  font-family: "Almarai", sans-serif; font-size: 13.5px; font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: var(--accent-ink); box-shadow: 0 8px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost {
  background: var(--surface); color: var(--text); border: 1px solid var(--border-soft);
}

/* ---------- messages / toasts ---------- */
.messages { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.messages li {
  padding: 12px 16px; border-radius: 14px; font-size: 13.5px; font-weight: 700;
  background: var(--success-soft); color: var(--success); border: 1px solid var(--border-soft);
}
.messages li.error { background: var(--danger-soft); color: var(--danger); }

/* ---------- forms ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  box-shadow: var(--card-shadow); padding: 22px; max-width: 560px;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.field input, .field select {
  font-family: inherit; font-size: 14px; color: var(--text);
  background: var(--surface-strong); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 14px; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow);
}
.field .errors { margin: 0; padding: 0; list-style: none; color: var(--danger); font-size: 12px; font-weight: 700; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; }

/* ---------- data table (non-responsive-card variant, for simple listing pages) ---------- */
.plain-table-wrap { overflow-x: auto; }
.plain-table { width: 100%; border-collapse: collapse; }
.plain-table thead th {
  text-align: right; font-size: 11px; color: var(--text-faint); font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 12px 18px;
}
.plain-table tbody td { padding: 13px 18px; font-size: 13.3px; border-top: 1px solid var(--border-soft); }
.plain-table tbody tr:hover { background: var(--surface-hover); }
.empty-state { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 13.5px; }

/* ---------- checkbox toggle field ---------- */
.field-toggle {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-strong); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 16px;
}
.field-toggle input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.field-toggle label { font-size: 13.5px; font-weight: 700; color: var(--text); cursor: pointer; }

.euro-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  background: var(--surface-strong); border: 1px dashed var(--border);
  border-radius: 14px; padding: 14px; margin: -6px 0 16px;
}
.euro-fields[hidden] { display: none; }
.euro-fields .hint {
  grid-column: 1 / -1; font-size: 11.5px; color: var(--text-muted); margin: 0;
}

/* ---------- ownership / partners section ---------- */
.section-title { font-size: 14px; font-weight: 800; margin: 22px 0 10px; }
.section-hint { font-size: 12px; color: var(--text-muted); margin: -6px 0 12px; }

.partner-row {
  display: grid; grid-template-columns: 1.6fr 1fr auto; gap: 10px; align-items: end;
  padding: 12px; background: var(--surface-strong); border: 1px solid var(--border-soft);
  border-radius: 14px; margin-bottom: 10px;
}
.partner-row .field { margin-bottom: 0; }
.partner-remove {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border-soft);
  background: var(--danger-soft); color: var(--danger); cursor: pointer; display: grid; place-items: center;
}
.partner-remove svg { width: 16px; height: 16px; }

.formset-errors { color: var(--danger); font-size: 12.5px; font-weight: 700; margin: 0 0 10px; }
