:root {
  color-scheme: light;
  --ink: #2e1536;
  --muted: #746579;
  --brand: #4a1b55;
  --brand-2: #6c2788;
  --accent: #d66a1f;
  --cream: #f8f3f0;
  --paper: #ffffff;
  --line: #e8ddea;
  --danger: #a23c4a;
  --success: #147a5a;
  --shadow: 0 18px 45px rgba(74, 27, 85, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--cream); color: var(--ink); }
img, svg, video, canvas { max-width: 100%; height: auto; }
main, .page, .property-card, .panel { min-width: 0; }
button, input, select, textarea { max-width: 100%; font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(214, 106, 31, 0.46);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(74, 27, 85, 0.10);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 208px;
  border: 0;
  background: transparent;
  color: var(--brand);
  text-align: start;
}
.brand-logo {
  display: block;
  width: 148px;
  height: auto;
  flex: 0 0 auto;
}
.brand-subtitle {
  display: block;
  max-width: 58px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
  font-weight: 750;
}

.desktop-nav { display: flex; justify-content: center; gap: 5px; }
.desktop-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 11px;
}
.desktop-nav button:hover, .desktop-nav button.active { background: #f7eef9; color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions select {
  border: 1px solid var(--line);
  background: white;
  padding: 9px 10px;
  border-radius: 10px;
}

.primary, .secondary, .danger, .ghost {
  border-radius: 12px;
  padding: 11px 17px;
  font-weight: 750;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.primary { background: var(--brand); color: white; box-shadow: 0 8px 18px rgba(74, 27, 85, 0.18); }
.primary:hover { background: var(--brand-2); transform: translateY(-1px); }
.primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.secondary { background: white; color: var(--brand); border-color: var(--line); }
.secondary:hover { border-color: var(--brand-2); }
.danger { background: #fff1ef; color: var(--danger); border-color: #f0c6c1; }
.ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.small { padding: 9px 13px; font-size: 14px; }

main { min-height: calc(100vh - 78px); }
.page { padding: clamp(24px, 5vw, 72px) clamp(18px, 5vw, 72px) 110px; max-width: 1480px; margin: 0 auto; }
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 82px);
  border-radius: 30px;
  background:
    radial-gradient(circle at 85% 15%, rgba(214, 106, 31, 0.34), transparent 27%),
    linear-gradient(125deg, #35143f 0%, #5b2071 64%, #7b2cbf 100%);
  color: white;
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  width: min(46vw, 560px);
  aspect-ratio: 1;
  inset-inline-end: -5%;
  bottom: -24%;
  background: url('/assets/maal-mark-transparent.png') center / contain no-repeat;
  opacity: 0.13;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.17em; font-size: 12px; font-weight: 850; color: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(38px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.045em; }
.hero p { max-width: 660px; color: rgba(255,255,255,0.8); font-size: clamp(16px, 2vw, 21px); line-height: 1.55; }
.search-panel {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  margin-top: 28px;
  padding: 10px;
  background: white;
  border-radius: 17px;
  max-width: 760px;
}
.search-panel input, .search-panel select {
  border: 0;
  min-width: 0;
  padding: 12px;
  color: var(--ink);
  background: transparent;
}

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 42px 0 20px; }
.section-head h2, .page-title h1 { margin: 0; font-size: clamp(27px, 4vw, 44px); letter-spacing: -0.035em; }
.section-head p, .page-title p { color: var(--muted); margin: 7px 0 0; max-width: 720px; line-height: 1.55; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.stat-card, .panel, .property-card, .metric-card, .assignment-card {
  background: var(--paper);
  border: 1px solid rgba(74, 27, 85, 0.09);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(74, 27, 85, 0.07);
}
.stat-card { padding: 20px; }
.stat-card small { color: var(--muted); }
.stat-card strong { display: block; margin-top: 8px; font-size: 28px; color: var(--brand); }
.stat-card .trend-up { color: var(--success); }
.stat-card .trend-down { color: var(--danger); }

.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.property-card { min-width: 0; overflow: hidden; }
.property-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(145deg, #b7cdc3, #4e806f);
}
.property-photo::before,
.property-photo::after {
  content: "";
  position: absolute;
  bottom: 0;
  background: rgba(255,255,255,0.73);
}
.property-photo::before { width: 58%; height: 58%; inset-inline-start: 9%; clip-path: polygon(0 30%, 50% 0, 100% 30%, 100% 100%, 0 100%); }
.property-photo::after { width: 29%; height: 46%; inset-inline-end: 8%; clip-path: polygon(0 25%, 50% 0, 100% 25%, 100% 100%, 0 100%); }
.photo-2 { background: linear-gradient(145deg, #e3d5bf, #99694d); }
.photo-3 { background: linear-gradient(145deg, #c5c9dc, #536281); }
.photo-4 { background: linear-gradient(145deg, #d9cbb2, #7a7652); }
.watermark {
  position: absolute;
  z-index: 2;
  inset-inline-end: 13px;
  bottom: 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid rgba(74, 27, 85, 0.12);
  border-radius: 9px;
  background: rgba(255, 249, 245, 0.92);
  color: var(--brand);
  box-shadow: 0 4px 14px rgba(44, 18, 53, 0.18);
  backdrop-filter: blur(8px);
}
.watermark img {
  display: block;
  width: 54px;
  height: auto;
}
.watermark span {
  padding-inline-start: 7px;
  border-inline-start: 1px solid rgba(74, 27, 85, 0.18);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.card-badges { position: absolute; z-index: 3; inset-inline-start: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: 999px; font-size: 11px; font-weight: 850; }
.badge.verified { background: #e7fff6; color: #086d4d; }
.badge.premium { background: #fff4cf; color: #795200; }
.badge.removed { background: #ffebe8; color: var(--danger); }
.badge.pending { background: #edf1ff; color: #40518f; }
.property-body { padding: 18px; }
.property-body h3 { margin: 0 0 7px; overflow-wrap: anywhere; font-size: 19px; }
.property-location { color: var(--muted); font-size: 14px; }
.property-price { margin: 16px 0 12px; color: var(--brand); font-size: 24px; font-weight: 900; }
.property-facts { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 13px; }
.property-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; padding-top: 14px; border-top: 1px solid var(--line); }
.confirmed { min-width: 0; font-size: 12px; line-height: 1.35; color: var(--success); }
.distance-chip { display: inline-flex; align-items: center; margin-bottom: 10px; padding: 6px 9px; border-radius: 999px; background: #f7eef9; color: var(--brand); font-size: 11px; font-weight: 850; }

.page-title { margin-bottom: 24px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.metric-card { padding: 20px; }
.metric-card span { color: var(--muted); font-size: 13px; }
.metric-card strong { display: block; font-size: 27px; margin: 8px 0; }
.metric-card small { color: var(--muted); }
.ai-report {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-top: 20px;
}
.panel { padding: clamp(20px, 3vw, 31px); }
.panel h2, .panel h3 { margin-top: 0; }
.report-copy { color: #5f5264; line-height: 1.72; }
.report-list { display: grid; gap: 12px; }
.report-item { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.confidence { display: inline-flex; align-items: center; gap: 7px; color: var(--success); font-weight: 750; }
.confidence::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--success); }
.hotspot-map {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 35%, rgba(233,185,73,0.8) 0 3%, rgba(233,185,73,0.25) 4% 10%, transparent 11%),
    radial-gradient(circle at 65% 30%, rgba(31,128,104,0.8) 0 4%, rgba(31,128,104,0.2) 5% 14%, transparent 15%),
    radial-gradient(circle at 72% 70%, rgba(167,59,54,0.72) 0 3%, rgba(167,59,54,0.18) 4% 12%, transparent 13%),
    linear-gradient(135deg, #e6eee9, #c7dad2);
}
.hotspot-map::before {
  content: "Sulaymaniyah · demand hotspots";
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  background: rgba(255,255,255,0.9);
  padding: 9px 12px;
  border-radius: 10px;
  font-weight: 800;
}
.map-road { position: absolute; height: 3px; background: rgba(255,255,255,0.85); transform-origin: left; border-radius: 999px; }
.road-1 { width: 76%; top: 42%; left: 9%; transform: rotate(-11deg); }
.road-2 { width: 62%; top: 61%; left: 19%; transform: rotate(18deg); }
.road-3 { width: 55%; top: 24%; left: 29%; transform: rotate(64deg); }

.progress-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr); gap: 20px; align-items: start; }
.progress-panel { position: sticky; top: 98px; }
.progress-ring {
  --progress: 65;
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  margin: 18px auto;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--brand) calc(var(--progress) * 1%), #eee5f1 0);
}
.progress-ring::before { content: ""; width: 112px; aspect-ratio: 1; border-radius: 50%; background: white; position: absolute; }
.progress-copy { position: relative; z-index: 1; text-align: center; }
.progress-copy strong { display: block; font-size: 28px; }
.progress-copy small { color: var(--muted); }
.step-list { display: grid; gap: 12px; }
.step-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}
.step-row.completed { border-color: #b9e2d3; background: #f5fff9; }
.step-status { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #f4eef6; color: var(--muted); font-weight: 900; }
.completed .step-status { background: var(--success); color: white; }
.step-row small { display: block; color: var(--muted); margin-top: 3px; }
.reminder-card { margin-top: 15px; padding: 17px; border-radius: 15px; background: #fff8df; border: 1px solid #efd98d; }

.control-grid { display: grid; grid-template-columns: 1fr; gap: 17px; }
.control-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.feature-toggle { display: flex; align-items: center; gap: 12px; padding: 13px 15px; background: #f4f7f5; border-radius: 13px; }
.switch { width: 47px; height: 26px; border-radius: 99px; border: 0; background: #aab7b1; padding: 3px; }
.switch::after { content: ""; display: block; width: 20px; height: 20px; border-radius: 50%; background: white; transition: transform 0.18s ease; }
.switch.on { background: var(--success); }
.switch.on::after { transform: translateX(21px); }
[dir="rtl"] .switch.on::after { transform: translateX(-21px); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { text-align: start; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
td strong { display: block; }
.action-row { display: flex; gap: 7px; flex-wrap: wrap; }
.audit-list { display: grid; gap: 8px; margin-top: 10px; }
.audit-item { padding: 12px 14px; background: #fbf8fb; border-radius: 12px; font-size: 13px; }

.assignment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.assignment-card { padding: 20px; }
.assignment-top { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.assignment-meta { color: var(--muted); font-size: 13px; line-height: 1.7; }
.video-placeholder {
  display: grid;
  place-items: center;
  min-height: 190px;
  margin: 16px 0;
  border-radius: 16px;
  background: linear-gradient(145deg, #4b1c58, #633070);
  color: white;
  font-size: 38px;
}

.reels-wrap { max-width: 540px; margin: 0 auto; }
.reel-card { position: relative; min-height: 680px; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, #4b1c58, #7b9277 55%, #d8c4a1); color: white; box-shadow: var(--shadow); }
.reel-card::before { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 58px; color: rgba(255,255,255,0.72); }
.reel-info { position: absolute; z-index: 2; inset-inline: 22px; bottom: 22px; }
.reel-info h2 { margin-bottom: 7px; }
.coming-soon { text-align: center; padding: clamp(40px, 8vw, 90px); }
.coming-icon { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 20px; border-radius: 28px; background: var(--brand); color: white; font-size: 34px; transform: rotate(-5deg); }


/* Property detail and nearby recommendations */
.back-link {
  min-height: 44px;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 850;
}
.detail-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 0.72fr);
  gap: 12px;
  margin-bottom: 24px;
}
.detail-main-photo { min-height: 520px; aspect-ratio: auto; border-radius: 25px; }
.detail-gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; min-width: 0; }
.detail-thumb {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(145deg, #b7cdc3, #4e806f);
}
.detail-thumb.photo-2 { background: linear-gradient(145deg, #e3d5bf, #99694d); }
.detail-thumb.photo-3 { background: linear-gradient(145deg, #c5c9dc, #536281); }
.detail-thumb.photo-4 { background: linear-gradient(145deg, #d9cbb2, #7a7652); }
.detail-thumb::before {
  content: "";
  position: absolute;
  inset: 18% 11% 0;
  border-radius: 100px 100px 0 0;
  background: rgba(255,255,255,0.45);
}
.detail-thumb span {
  position: absolute;
  z-index: 2;
  inset-inline-start: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border-radius: 8px;
  background: rgba(44, 18, 53, 0.78);
  color: white;
  font-size: 11px;
  font-weight: 800;
}
.property-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.5fr);
  gap: 22px;
  align-items: start;
}
.detail-content { display: grid; gap: 17px; min-width: 0; }
.detail-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: 6px 0 4px;
}
.detail-heading h1 { margin: 0; max-width: 840px; font-size: clamp(31px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -0.045em; }
.detail-location { margin: 11px 0 0; color: var(--muted); line-height: 1.5; }
.detail-price { flex: 0 0 auto; color: var(--brand); font-size: clamp(24px, 3vw, 37px); font-weight: 950; text-align: end; }
.detail-fact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.detail-fact-grid > div { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.detail-fact-grid small { display: block; margin-bottom: 6px; color: var(--muted); }
.detail-fact-grid strong { color: var(--brand); font-size: 17px; text-transform: capitalize; }
.detail-section { box-shadow: none; }
.detail-section > p { margin-bottom: 0; color: #5f5264; line-height: 1.72; }
.amenity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.amenity-grid span { padding: 12px 13px; border-radius: 12px; background: #faf6fa; color: #5b4d60; }
.compact-head { margin: 0 0 16px; }
.detail-map {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border-radius: 17px;
  background:
    radial-gradient(circle at 58% 42%, rgba(233,185,73,0.38), transparent 25%),
    linear-gradient(135deg, #eadff0, #b7d0c4);
}
.property-pin {
  position: absolute;
  z-index: 4;
  left: 52%;
  top: 43%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 5px solid white;
  border-radius: 50% 50% 50% 8px;
  background: var(--brand);
  color: white;
  font-weight: 950;
  transform: rotate(-45deg);
  box-shadow: 0 12px 25px rgba(74,27,85,0.24);
}
.property-pin { font-size: 0; }
.property-pin::after { content: "M"; font-size: 16px; transform: rotate(45deg); }
.privacy-copy { display: block; margin-top: 10px; color: var(--muted); line-height: 1.5; }
.detail-contact-card {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 11px;
}
.detail-contact-card h2 { margin-bottom: 0; font-size: 30px; }
.detail-contact-card > p:not(.eyebrow) { margin: 0 0 6px; color: var(--muted); line-height: 1.55; }
.detail-contact-card button { width: 100%; min-height: 48px; }
.contact-trust { display: grid; gap: 4px; margin-top: 6px; padding: 14px; border-radius: 13px; background: #eff9f5; color: var(--success); }
.contact-trust span { color: var(--muted); font-size: 12px; }
.nearby-section { margin-top: 52px; }
.nearby-count { flex: 0 0 auto; padding: 8px 11px; border-radius: 999px; background: #f7eef9; color: var(--brand); font-size: 12px; font-weight: 850; }
.nearby-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.nearby-card { height: 100%; }
.mobile-contact-bar { display: none; }


.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  gap: 20px;
  align-items: start;
}
.profile-actions { display: grid; gap: 17px; }
.compact-property { max-width: 520px; }
.status-panel, .legal-request-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.status-panel h2, .legal-request-card h2 { margin-bottom: 8px; }
.status-panel p, .legal-request-card p { color: var(--muted); line-height: 1.58; margin-bottom: 0; }
.status-pill { display: inline-flex; padding: 7px 10px; border-radius: 999px; font-size: 12px; font-weight: 850; background: #f5f0f6; color: var(--muted); }
.status-pill.active { background: #e7fff6; color: var(--success); }
.status-pill.sold { background: #edf1ff; color: #40518f; }
.request-summary {
  min-width: 235px;
  display: grid;
  grid-template-columns: auto auto;
  gap: 8px 17px;
  padding: 16px;
  border-radius: 15px;
  background: #fbf7fb;
}
.request-summary span { color: var(--muted); font-size: 12px; }
.request-summary strong { text-align: end; font-size: 13px; }
body.modal-open { overflow: hidden; }
.modal-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 28, 23, 0.62);
  backdrop-filter: blur(8px);
}
.modal-card {
  position: relative;
  width: min(580px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow-y: auto;
  padding: clamp(24px, 5vw, 38px);
  border-radius: 25px;
  background: white;
  box-shadow: 0 28px 80px rgba(5, 25, 20, 0.34);
}
.modal-card h2 { margin: 0 42px 12px 0; font-size: clamp(27px, 5vw, 38px); letter-spacing: -0.035em; }
[dir="rtl"] .modal-card h2 { margin: 0 0 12px 42px; }
.modal-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.62; }
.modal-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--muted);
  font-size: 23px;
  line-height: 1;
}
.modal-property {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 19px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fcf9fc;
}
.modal-property small { display: block; color: var(--muted); margin-top: 4px; }
.mini-photo { width: 72px; height: 58px; flex: 0 0 auto; border-radius: 11px; background: linear-gradient(145deg, #b7cdc3, #4e806f); }
.mini-photo.photo-2 { background: linear-gradient(145deg, #e3d5bf, #99694d); }
.mini-photo.photo-3 { background: linear-gradient(145deg, #c5c9dc, #536281); }
.mini-photo.photo-4 { background: linear-gradient(145deg, #d9cbb2, #7a7652); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.choice-grid button { min-height: 52px; }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.modal-actions button { flex: 1; }
.contract-note {
  display: grid;
  gap: 5px;
  margin-top: 19px;
  padding: 16px;
  border-radius: 15px;
  border: 1px solid #efd98d;
  background: #fff8df;
}
.contract-note span { color: #6c5b27; font-size: 13px; line-height: 1.5; }
.success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--success);
  color: white;
  font-size: 28px;
  font-weight: 900;
}

.empty-state { padding: 42px; text-align: center; color: var(--muted); }
.toast {
  position: fixed;
  z-index: 100;
  inset-inline-end: 22px;
  bottom: 94px;
  max-width: min(390px, calc(100vw - 44px));
  padding: 13px 17px;
  border-radius: 13px;
  background: #2c1235;
  color: white;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: 0.2s ease;
  box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translateY(0); }
.mobile-nav { display: none; }

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .topbar { grid-template-columns: 1fr auto; }
  .stats-grid, .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .property-grid, .nearby-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .property-detail-layout { grid-template-columns: minmax(0, 1fr) minmax(285px, 0.42fr); }
  .detail-gallery { grid-template-columns: minmax(0, 1.65fr) minmax(235px, 0.65fr); }
}

@media (max-width: 900px) {
  .property-detail-layout { grid-template-columns: 1fr; }
  .detail-contact-card { position: static; }
  .detail-gallery { grid-template-columns: minmax(0, 1.45fr) minmax(210px, 0.55fr); }
}

@media (max-width: 760px) {
  .topbar { min-height: 68px; gap: 10px; padding: 10px 15px; }
  .brand-subtitle, .header-actions .primary { display: none; }
  .page { padding: 20px 14px 102px; }
  .property-detail-page { padding-bottom: 176px; }
  .hero { padding: 30px 22px 34px; border-radius: 22px; }
  .hero h1 { font-size: 42px; }
  .search-panel { grid-template-columns: 1fr; }
  .stats-grid, .metric-grid, .property-grid, .assignment-grid { grid-template-columns: 1fr; }
  .ai-report, .progress-layout, .profile-grid { grid-template-columns: 1fr; }
  .status-panel, .legal-request-card { align-items: stretch; flex-direction: column; }
  .request-summary { width: 100%; min-width: 0; }
  .choice-grid { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }
  .progress-panel { position: static; }
  .section-head { align-items: start; flex-direction: column; }
  .section-head > button { width: 100%; }
  .property-footer { align-items: stretch; flex-direction: column; }
  .property-footer button { width: 100%; min-height: 44px; }
  .detail-gallery { grid-template-columns: 1fr; }
  .detail-main-photo { min-height: 310px; border-radius: 20px; }
  .detail-gallery-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .detail-thumb { min-height: 132px; border-radius: 16px; }
  .detail-heading { align-items: start; flex-direction: column; gap: 13px; }
  .detail-price { text-align: start; }
  .detail-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amenity-grid { grid-template-columns: 1fr; }
  .detail-map { min-height: 230px; }
  .detail-contact-card { display: none; }
  .nearby-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 82vw);
    gap: 13px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: thin;
    padding: 2px 2px 14px;
  }
  .nearby-card { scroll-snap-align: start; }
  .mobile-contact-bar {
    position: fixed;
    z-index: 65;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    inset-inline: 0;
    bottom: calc(72px + env(safe-area-inset-bottom));
    padding: 10px 14px;
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
  }
  .mobile-contact-bar button { min-height: 46px; }
  .mobile-nav {
    position: fixed;
    z-index: 60;
    bottom: 0;
    inset-inline: 0;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    min-height: 72px;
    padding: 7px 7px max(7px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }
  .mobile-nav button { min-width: 0; min-height: 48px; display: grid; place-items: center; gap: 2px; border: 0; background: transparent; color: var(--muted); }
  .mobile-nav span { font-size: 21px; }
  .mobile-nav small { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
  .mobile-nav .mobile-add span { display: grid; place-items: center; width: 42px; height: 42px; margin-top: -21px; border-radius: 14px; background: var(--brand); color: white; box-shadow: 0 8px 18px rgba(74,27,85,0.25); }
  .reel-card { min-height: calc(100vh - 118px); border-radius: 21px; }
}

@media (max-width: 480px) {
  .topbar { padding-inline: 11px; }
  .brand { gap: 8px; }
  .brand { min-width: 0; }
  .brand-logo { width: 112px; }
  .header-actions select { padding: 8px; font-size: 13px; }
  .page { padding-inline: 11px; }
  .hero { padding: 27px 18px 30px; }
  .hero h1 { font-size: 35px; }
  .hero p { font-size: 15px; }
  .section-head h2, .page-title h1 { font-size: 30px; }
  .property-body { padding: 15px; }
  .property-price { font-size: 21px; }
  .detail-heading h1 { font-size: 33px; }
  .detail-fact-grid { gap: 7px; }
  .detail-fact-grid > div { padding: 12px; }
  .detail-fact-grid strong { font-size: 15px; }
  .nearby-grid { grid-auto-columns: minmax(260px, 88vw); }
  .modal-backdrop { padding: 10px; }
  .modal-card { padding: 22px 18px; border-radius: 20px; }
  .toast { inset-inline: 11px; max-width: none; }
  .mobile-nav small { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* v0.5 operations dashboard, language and contract controls */
.contract-language-fieldset {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}
.contract-language-fieldset legend { font-weight: 900; font-size: 16px; }
.contract-language-fieldset > p { margin: 7px 0 12px; color: var(--muted); line-height: 1.5; }
.contract-language-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.contract-language-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  text-align: start;
  font-weight: 800;
}
.contract-language-choice:hover { border-color: var(--brand-2); }
.contract-language-choice.selected {
  border-color: var(--brand);
  background: var(--brand-light, #f7eef9);
  box-shadow: 0 0 0 2px rgba(74, 27, 85, 0.08);
}
.contract-language-choice strong { color: var(--success); font-size: 18px; }

.admin-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 24px;
  align-items: start;
}
.role-preview-card {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid rgba(74, 27, 85, 0.12);
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 32px rgba(74, 27, 85, 0.07);
}
.role-preview-card label { font-size: 12px; color: var(--muted); font-weight: 800; }
.role-preview-card select {
  width: 100%;
  min-height: 45px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}
.role-preview-card strong { color: var(--brand); }
.role-preview-card small { color: var(--muted); line-height: 1.45; }
.role-preview-notice { padding-top: 8px; border-top: 1px solid var(--line); }

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.dashboard-metrics article {
  padding: 18px;
  border: 1px solid rgba(74, 27, 85, 0.10);
  border-radius: 17px;
  background: white;
  box-shadow: 0 10px 25px rgba(74, 27, 85, 0.06);
}
.dashboard-metrics span { display: block; color: var(--muted); font-size: 12px; font-weight: 750; }
.dashboard-metrics strong { display: block; margin-top: 8px; color: var(--brand); font-size: 30px; }

.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-heading h2 { margin-bottom: 6px; }
.role-chip { flex: 0 0 auto; padding: 8px 11px; border-radius: 999px; background: #f7eef9; color: var(--brand); font-size: 12px; font-weight: 850; }
.workflow-panel { padding: 22px; }
.workflow-table { min-width: 1220px; }
.workflow-table td { vertical-align: top; }
.workflow-table td small, table td small { display: block; margin-top: 4px; color: var(--muted); line-height: 1.35; }
.next-action-copy { display: block; min-width: 190px; color: var(--muted); line-height: 1.45; font-size: 12px; }
.priority-chip, .queue-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}
.priority-chip.urgent { background: #ffe5e5; color: #991e2c; }
.priority-chip.high { background: #fff0df; color: #8b4a16; }
.priority-chip.normal { background: #eef2ff; color: #40518f; }
.priority-chip.low { background: #edf6f2; color: #2d6b58; }
.queue-status.new, .queue-status.assigned { background: #eef2ff; color: #40518f; }
.queue-status.contacted, .queue-status.waiting_customer { background: #fff8df; color: #735d10; }
.queue-status.completed { background: #e7fff6; color: var(--success); }
.queue-status.escalated { background: #ffe5e5; color: var(--danger); }

.restricted-panel {
  display: grid;
  gap: 7px;
  min-height: 118px;
  align-content: center;
  padding: 18px;
  border: 1px dashed #cdb8d2;
  border-radius: 15px;
  background: #faf6fb;
}
.restricted-panel strong { color: var(--brand); }
.restricted-panel p { margin: 0; color: var(--muted); line-height: 1.5; }
.permission-hint { padding: 10px 12px; border-radius: 11px; background: #faf6fb; font-size: 12px; }

.contact-log-list { display: grid; gap: 9px; margin-top: 14px; }
.contact-log-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fcf9fc; }
.contact-log-item span { color: var(--muted); font-size: 12px; line-height: 1.4; text-align: end; }
.muted-copy { color: var(--muted); }

.access-matrix { min-width: 1120px; }
.access-matrix th:first-child { min-width: 260px; text-align: start; }
.access-matrix td { min-width: 115px; text-align: center; }
.access-matrix td strong { display: block; font-size: 18px; }
.access-matrix td small { display: block; font-size: 10px; }
.access-allow { color: var(--success); background: rgba(20, 122, 90, 0.04); }
.access-read { color: #40518f; background: rgba(64, 81, 143, 0.04); }
.access-deny { color: #a89ba9; }
.selected-role-column { box-shadow: inset 0 0 0 2px rgba(214, 106, 31, 0.20); background: rgba(214, 106, 31, 0.05) !important; }

.feature-toggle { display: flex; align-items: center; gap: 14px; }
.feature-toggle small { display: block; margin-top: 4px; color: var(--muted); }
.control-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.switch { position: relative; width: 51px; height: 29px; flex: 0 0 auto; border: 0; border-radius: 999px; background: #d8cfd9; }
.switch::after { content: ''; position: absolute; top: 4px; inset-inline-start: 4px; width: 21px; height: 21px; border-radius: 50%; background: white; box-shadow: 0 2px 6px rgba(0,0,0,0.18); transition: 0.18s ease; }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(22px); }
[dir="rtl"] .switch.on::after { transform: translateX(-22px); }

@media (max-width: 980px) {
  .admin-title-row { grid-template-columns: 1fr; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .contract-language-grid { grid-template-columns: 1fr; }
  .dashboard-metrics { grid-template-columns: 1fr 1fr; gap: 9px; }
  .dashboard-metrics article { padding: 14px; }
  .dashboard-metrics strong { font-size: 25px; }
  .control-toolbar, .panel-heading, .contact-log-item { align-items: stretch; flex-direction: column; }
  .feature-toggle { width: 100%; justify-content: space-between; }
  .role-preview-card { padding: 15px; }
  .workflow-panel, .admin-dashboard-page .panel { padding: 16px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (max-width: 420px) {
  .dashboard-metrics { grid-template-columns: 1fr; }
}
.access-own { color: var(--accent); background: rgba(214, 106, 31, 0.05); }

/* v0.5 employee access controls */
.employee-access-panel select {
  min-width: 160px;
  max-width: 100%;
}

.employee-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
}

.employee-status.active {
  color: #0e664a;
  background: #e7fff6;
}

.employee-status.inactive {
  color: #7a3340;
  background: #fff0f2;
}

.employee-access-panel button:disabled,
.employee-access-panel select:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

/* v0.7 launch agent accounts and social publishing controls */
.agent-create-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fcf9fc;
}
.agent-create-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.agent-create-grid input,
.agent-create-grid select {
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
}
.agent-create-grid .agent-note-field { grid-column: span 2; }
.agent-create-grid > button { align-self: end; min-height: 43px; }
.agent-billing-badge,
.platform-chip,
.connection-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}
.agent-billing-badge.free { color: #0e664a; background: #e7fff6; }
.agent-billing-badge.paid { color: #653a0f; background: #fff2df; }

.social-connection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 14px;
}
.social-connection-card {
  display: grid;
  gap: 10px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fcf9fc;
}
.social-connection-card.connected { border-color: rgba(20, 122, 90, 0.35); background: #f4fff9; }
.social-connection-card > div:first-child { display: flex; align-items: center; gap: 9px; }
.social-connection-card small { color: var(--muted); line-height: 1.45; }
.social-platform-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: white;
  font-weight: 900;
}
.connection-status.connected { color: #0e664a; background: #e7fff6; width: fit-content; }
.connection-status.disconnected { color: #7a3340; background: #fff0f2; width: fit-content; }
.button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.integration-warning {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid #f0d9bb;
  border-radius: 12px;
  background: #fff8ef;
  color: #6c4c25;
  line-height: 1.5;
  font-size: 12px;
}
.social-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.social-setting-row {
  justify-content: space-between;
  min-height: 76px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
.social-setting-row > div { min-width: 0; }
.social-setting-row small { line-height: 1.4; }
.social-queue-heading { margin-top: 24px; }
.platform-chip { margin: 2px 4px 2px 0; color: var(--brand); background: #f7eef9; }
[dir="rtl"] .platform-chip { margin: 2px 0 2px 4px; }
.queue-status.pending_approval { background: #fff8df; color: #735d10; }
.queue-status.queued, .queue-status.publishing { background: #eef2ff; color: #40518f; }
.queue-status.published { background: #e7fff6; color: var(--success); }
.queue-status.failed, .queue-status.cancelled { background: #ffe5e5; color: var(--danger); }

@media (max-width: 1100px) {
  .agent-create-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-connection-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .agent-create-grid,
  .social-settings-grid { grid-template-columns: 1fr; }
  .agent-create-grid .agent-note-field { grid-column: auto; }
}
.backend-status {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
}
.backend-status.connected { color: #0e664a; background: #e7fff6; }
.backend-status.loading { color: #40518f; background: #eef2ff; }
.backend-status.offline,
.backend-status.idle { color: #7a3340; background: #fff0f2; }

/* v0.7.1 live MAAL Control authentication and agent administration */
.admin-auth-panel {
  margin-bottom: 18px;
  border-color: rgba(74, 27, 85, 0.16);
}
.admin-auth-panel.live {
  border-color: rgba(14, 102, 74, 0.28);
  background: linear-gradient(180deg, #fbfffd, #ffffff);
}
.admin-login-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(150px, 0.7fr) minmax(180px, 0.8fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}
.admin-login-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.admin-login-grid input,
.admin-login-grid select {
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
}
.admin-login-actions {
  align-items: center;
  min-height: 43px;
}
.admin-session-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(14, 102, 74, 0.2);
  border-radius: 14px;
  background: #f4fff9;
}
.admin-session-card > div:first-child {
  display: grid;
  gap: 4px;
}
.admin-session-card small { color: var(--muted); }
.admin-auth-error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff0f2;
  color: #7a3340;
  font-size: 12px;
  line-height: 1.45;
}
.agent-data-status {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.live-data-chip {
  color: #0e664a;
  background: #e7fff6;
}
.live-role-card {
  border-color: rgba(14, 102, 74, 0.25);
  background: #f7fffb;
}
.admin-auth-panel button:disabled,
.agent-management-panel button:disabled {
  cursor: wait;
  opacity: 0.6;
}

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

@media (max-width: 620px) {
  .admin-login-grid { grid-template-columns: 1fr; }
  .admin-login-actions { grid-column: auto; }
  .admin-session-card { align-items: flex-start; flex-direction: column; }
}

/* v0.8 live social publishing administration */
.social-connection-card.pending {
  border-color: rgba(154, 104, 22, 0.3);
  background: #fffaf1;
}
.connection-status.pending { color: #7a5a16; background: #fff0c7; width: fit-content; }
.social-connection-error { color: var(--danger) !important; }
.social-connection-actions { flex-wrap: wrap; }
.social-worker-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0 4px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.social-worker-state strong { white-space: nowrap; }
.social-worker-state span { color: var(--muted); line-height: 1.5; font-size: 12px; }
.social-worker-state.disabled { border-color: #ead4ac; background: #fff9ee; }
.social-worker-state.disabled strong { color: #735d10; }
.social-worker-state.enabled { border-color: rgba(20, 122, 90, 0.3); background: #f4fff9; }
.social-worker-state.enabled strong { color: var(--success); }
.social-general-settings {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(280px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fcf9fc;
}
.social-general-settings label,
.social-template-editor label,
.social-job-editor-grid label,
.social-caption-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.social-general-settings input,
.social-general-settings select,
.social-template-editor select,
.social-template-editor textarea,
.social-job-editor-grid input,
.social-job-editor-grid select,
.social-caption-field textarea {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
  color: var(--ink);
  font: inherit;
}
.social-template-editor {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fcf9fc;
}
.social-template-editor .panel-heading { margin-bottom: 12px; }
.social-template-editor .panel-heading label { min-width: 170px; }
.social-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.social-template-grid textarea,
.social-caption-field textarea {
  min-height: 170px;
  resize: vertical;
  line-height: 1.5;
  direction: inherit;
}
.social-job-modal { width: min(820px, 100%); }
.social-job-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.social-platform-fieldset {
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.social-platform-fieldset legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.social-platform-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.social-platform-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font-weight: 800;
}
.social-platform-choice input { width: 17px; height: 17px; }
.queue-status.draft { background: #f1f1f4; color: var(--muted); }

@media (max-width: 900px) {
  .social-general-settings { grid-template-columns: 1fr; }
  .social-template-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .social-worker-state { align-items: flex-start; flex-direction: column; }
  .social-job-editor-grid,
  .social-platform-choice-grid { grid-template-columns: 1fr; }
}
