:root {
  --paper: #f7f8f5;
  --surface: #ffffff;
  --ink: #12263a;
  --muted: #657483;
  --line: #d9e0e5;
  --blue: #1769aa;
  --blue-soft: #e8f2f8;
  --amber: #f0ad43;
  --good: #16856a;
  --whatsapp: #20a66a;
  --whatsapp-dark: #087a4a;
  --rent: #0f766e;
  --sale: #1769aa;
  --commercial: #8a5a00;
  --land: #6f5b3e;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { color-scheme: light; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.masthead { position: sticky; top: 0; z-index: 10; min-height: 58px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(247, 248, 245, .96); backdrop-filter: blur(10px); }
.brand { display: inline-flex; gap: 10px; align-items: center; color: var(--ink); text-decoration: none; font-weight: 680; letter-spacing: -.02em; }
.brand-mark { display: grid; grid-template-columns: repeat(3, 4px); gap: 3px; align-items: end; height: 22px; }
.brand-mark i { display: block; width: 4px; background: var(--blue); border-radius: 3px; }
.brand-mark i:nth-child(1) { height: 11px; }
.brand-mark i:nth-child(2) { height: 22px; }
.brand-mark i:nth-child(3) { height: 16px; background: var(--amber); }
.status { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; }
.status > span:last-child { display: none; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.status-dot.live { background: var(--good); box-shadow: 0 0 0 4px rgba(22, 133, 106, .12); }
.masthead-actions { display: flex; align-items: center; gap: 14px; }
.text-button { padding: 7px 0; border: 0; color: var(--blue); background: transparent; font-size: 13px; font-weight: 680; }
.manage-groups-link { padding: 7px 9px; border: 1px solid #b8c6d1; border-radius: 4px; color: var(--blue); background: white; text-decoration: none; font-size: 12px; font-weight: 680; white-space: nowrap; }
.manage-groups-link:hover { border-color: var(--blue); }
.text-button:hover { text-decoration: underline; }
.text-button:focus-visible, .manage-groups-link:focus-visible, .primary-action:focus-visible, .whatsapp-action:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

main, .site-footer { width: min(1180px, 90vw); margin: 0 auto; }
.intro { padding: 14px 0 18px; border-bottom: 1px solid var(--ink); }
h1 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.015em; font-weight: 650; }

.search-workbench { margin-top: 9px; padding: 17px; color: white; background: var(--ink); border-radius: 4px 4px 28px 4px; }
.search label { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 650; }
.search-line { height: 54px; display: flex; padding: 4px; background: white; border-radius: 4px; }
.search input { min-width: 0; flex: 1; padding: 0 11px; border: 0; color: var(--ink); background: transparent; outline: none; font-size: 15px; }
.search input::placeholder { color: #83909b; }
.search-line:focus-within { box-shadow: 0 0 0 3px rgba(240, 173, 67, .72); }
.search button[type="submit"] { min-width: 88px; border: 0; border-radius: 3px 3px 15px 3px; color: white; background: var(--blue); font-weight: 680; }

.filter-panel { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.18); }
.type-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.type-filters button { min-height: 44px; border: 1px solid rgba(255,255,255,.34); border-radius: 99px; color: #e5edf3; background: transparent; font-size: 14px; font-weight: 650; }
.type-filters button:hover, .type-filters button:focus-visible { border-color: white; outline: none; }
.type-filters button.active { border-color: var(--amber); color: var(--ink); background: var(--amber); }

.quick-filters, .secondary-filters { display: grid; gap: 10px; }
.quick-filters { grid-template-columns: 1fr 1fr; margin-top: 14px; }
.society-field { grid-column: 1 / -1; }
.filter-panel label, .filter-field { display: grid; gap: 6px; min-width: 0; color: #c8d5df; font-size: 12px; font-weight: 620; }
.filter-label { display: block; }
.filter-panel select, .filter-panel input { width: 100%; min-width: 0; height: 48px; padding: 0 11px; border: 1px solid rgba(255,255,255,.28); border-radius: 4px; color: var(--ink); background: white; outline: none; }
.filter-panel select:focus, .filter-panel input:focus { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(240, 173, 67, .25); }
.multi-select { position: relative; min-width: 0; color: var(--ink); font-weight: 500; }
.multi-select summary { min-height: 48px; display: flex; align-items: center; padding: 0 34px 0 11px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 4px; color: var(--ink); background: white; cursor: pointer; list-style: none; }
.multi-select summary::-webkit-details-marker { display: none; }
.multi-select summary::after { content: ""; position: absolute; right: 13px; top: 19px; width: 7px; height: 7px; border-right: 1.5px solid #52606d; border-bottom: 1.5px solid #52606d; transform: rotate(45deg); }
.multi-select summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-select[open] summary, .multi-select:focus-within summary { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(240,173,67,.25); }
.multi-select[open] summary::after { top: 23px; transform: rotate(225deg); }
.multi-select.has-selection summary { font-weight: 680; }
.multi-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 12; width: max(100%, 260px); max-width: min(88vw, 390px); padding: 9px; border: 1px solid #aebdca; border-radius: 5px; background: white; box-shadow: 0 14px 34px rgba(3,20,35,.25); }
.society-field .multi-menu { right: 0; left: auto; width: min(88vw, 390px); }
.locality-field .multi-menu { width: min(88vw, 390px); }
.multi-search { display: block !important; margin-bottom: 8px; }
.multi-search input { height: 42px !important; padding-left: 36px !important; border-color: #bcccdc !important; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' fill='none' stroke='%2352606d' stroke-width='2'%3E%3Ccircle cx='7.5' cy='7.5' r='4.5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 12px center !important; }
.multi-options { max-height: 245px; overflow-y: auto; overscroll-behavior: contain; }
.multi-option { min-height: 44px; display: flex !important; grid-template-columns: none !important; align-items: center; gap: 10px !important; padding: 7px 8px; border-bottom: 1px solid #e5eaee; color: var(--ink) !important; cursor: pointer; font-size: 13px !important; }
.multi-option:last-child { border-bottom: 0; }
.multi-option:hover { background: #edf5fa; }
.multi-option input { width: 18px !important; height: 18px !important; flex: 0 0 auto; padding: 0 !important; accent-color: var(--blue); box-shadow: none !important; }
.multi-option span { min-width: 0; overflow-wrap: anywhere; }
.multi-empty { margin: 16px 8px; color: var(--muted); text-align: center; font-size: 12px; }

.more-filters { margin-top: 12px; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.more-filters summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: white; cursor: pointer; font-size: 14px; font-weight: 650; list-style: none; }
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters summary::after { content: "+"; margin-left: auto; color: var(--amber); font-size: 22px; font-weight: 400; }
.more-filters[open] summary::after { content: "−"; }
.filter-count { padding: 3px 7px; border-radius: 99px; color: var(--ink); background: var(--amber); font-size: 11px; }
.secondary-filters { padding: 3px 0 14px; }

.filter-actions { display: grid; grid-template-columns: 76px 1fr; gap: 9px; margin-top: 14px; }
.clear-filters, .apply-filters { min-height: 48px; font-weight: 680; }
.clear-filters { border: 1px solid rgba(255,255,255,.3); border-radius: 4px; color: white; background: transparent; }
.apply-filters { border: 0; border-radius: 4px 4px 17px 4px; color: var(--ink); background: var(--amber); }
.examples { display: flex; gap: 8px; margin-top: 13px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.examples::-webkit-scrollbar { display: none; }
.examples button { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.24); border-radius: 99px; padding: 7px 10px; color: #d9e7f0; background: transparent; font-size: 11px; }
.examples button:focus-visible { border-color: white; outline: none; }

.ledger { padding: 22px 0 64px; }
.ledger-head { margin-bottom: 18px; }
.ledger h2 { margin: 0; font-size: 27px; letter-spacing: -.035em; }
.ledger-head p { margin: 5px 0 0; color: var(--muted); font-size: 14px; }
.stats { display: flex; margin: 20px 0 0; }
.stats div { flex: 1; min-width: 0; padding-left: 12px; border-left: 1px solid var(--line); }
.stats dt { font-size: 21px; font-weight: 680; letter-spacing: -.04em; }
.stats dd { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.results { border-top: 2px solid var(--ink); }
.listing { display: grid; gap: 16px; padding: 20px 3px 20px 14px; border-bottom: 1px solid var(--line); border-left: 4px solid #91a0ad; }
.listing-rent { border-left-color: var(--rent); }
.listing-sale { border-left-color: var(--sale); }
.listing-place { margin: 0 60px 5px 0; color: var(--blue); font-size: 13px; font-weight: 700; }
.listing h3 { margin: 0 60px 0 0; font-size: 19px; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.listing-primary { position: relative; min-width: 0; }
.listing-copy { position: absolute; top: 0; right: 0; min-width: 46px; min-height: 28px; margin: 0; padding: 0 8px; border: 1px solid var(--blue); border-radius: 4px; color: var(--blue); background: transparent; font-size: 11px; font-weight: 680; }
.listing-copy::before { content: ""; position: absolute; inset: -8px; }
.listing-copy:hover { color: white; background: var(--blue); }
.listing-copy.is-copied { border-color: var(--good); color: white; background: var(--good); }
.listing-copy:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.listing-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 16px 0 0; }
.listing-detail { min-width: 0; padding: 9px 0 8px; border-top: 1px solid #e3e8ec; }
.listing-detail dt { margin: 0 0 3px; color: var(--muted); font-size: 11px; font-weight: 650; line-height: 1.25; }
.listing-detail dd { margin: 0; color: var(--ink); font-size: 14px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.listing-detail .detail-price { font-variant-numeric: tabular-nums; }
.listing-detail .detail-rent, .listing-detail .detail-residential { color: var(--rent); }
.listing-detail .detail-sale { color: var(--sale); }
.listing-detail .detail-commercial { color: var(--commercial); }
.listing-detail .detail-land { color: var(--land); }
.listing-message-toggle { min-height: 44px; margin: 5px 0 0; padding: 0; border: 0; color: var(--blue); background: transparent; font-size: 12px; font-weight: 720; text-align: left; }
.listing-message-toggle:hover { text-decoration: underline; }
.listing-message-toggle:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.listing-full-message { margin: 0 0 4px; padding: 13px 14px; border-left: 3px solid #b8c9d5; color: #30495c; background: #edf3f6; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.listing-source { padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; }
.listing-group { margin: 0; font-weight: 680; }
.listing-meta { margin: 7px 0 0; color: var(--muted); line-height: 1.55; }
.listing-meta > * { display: block; }
.listing-phone { width: fit-content; color: var(--blue); text-decoration: none; font-size: 16px; font-weight: 680; }
.listing-phone:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.empty { padding: 56px 10px; text-align: center; color: var(--muted); border-bottom: 1px solid var(--line); }
.empty strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 20px; }
.site-footer { padding: 0 0 24px; color: var(--muted); font-size: 11px; }
.site-footer a { color: inherit; }

@media (min-width: 700px) {
  .masthead { min-height: 66px; padding: 0 4vw; }
  .status > span:last-child { display: inline; }
  .intro { padding: 18px 0 22px; }
  .search-workbench { padding: 24px; }
  .quick-filters { grid-template-columns: repeat(3, 1fr); }
  .society-field { grid-column: auto; }
  .secondary-filters { grid-template-columns: repeat(2, 1fr); }
  .ledger-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
  .stats { margin: 0; }
  .stats div { min-width: 88px; flex: initial; padding-left: 18px; }
  .listing { grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; padding-left: 18px; }
  .listing-details { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .listing-source { grid-column: auto; padding-top: 0; border-top: 0; }
}

@media (min-width: 980px) {
  .intro { min-height: 0; display: block; }
  h1 { font-size: 20px; }
  .search-workbench { margin-top: 10px; padding: 24px; }
  .secondary-filters { grid-template-columns: repeat(4, 1fr); }
  .ledger { padding-top: 48px; }
  .listing { grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; padding: 24px 8px 24px 20px; }
  .listing-details { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Account and WhatsApp onboarding */
.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; }
.auth-page, .onboarding-page { min-height: 100vh; background: #f7f9f8; }
.auth-shell { width: 100%; min-height: 100vh; margin: 0; }
.auth-context { min-height: 250px; padding: 24px 6vw 30px; color: white; background: var(--ink); }
.auth-brand { color: white; }
.auth-promise { margin-top: 48px; }
.auth-promise h1 { max-width: 520px; font-size: clamp(33px, 9vw, 58px); line-height: .98; letter-spacing: -.055em; }
.auth-promise p { max-width: 510px; margin: 18px 0 0; color: #c8d5df; font-size: 15px; line-height: 1.55; }
.auth-steps { display: none; margin: 48px 0 0; padding: 0; list-style: none; }
.auth-steps li { display: flex; align-items: center; gap: 12px; color: #d7e2e9; font-size: 14px; }
.auth-steps span { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #62788a; border-radius: 50%; color: white; font-size: 12px; }
.auth-form-panel { padding: 26px 6vw 44px; }
.auth-form-wrap { max-width: 440px; margin: 0 auto; }
.auth-tabs { display: grid; grid-template-columns: repeat(2, 1fr); padding: 4px; border: 1px solid var(--line); border-radius: 7px; background: #edf2f1; }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-weight: 650; }
.auth-tabs button.active { color: var(--ink); background: white; box-shadow: 0 1px 3px rgba(16,42,67,.12); }
.auth-heading { margin-top: 30px; }
.auth-heading h2 { margin: 0; font-size: 28px; letter-spacing: -.035em; }
.auth-heading p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }
.auth-form { display: grid; gap: 17px; margin-top: 25px; }
.auth-form label { display: grid; gap: 7px; color: #334e68; font-size: 13px; font-weight: 650; }
.auth-form input, .group-search input { width: 100%; height: 52px; padding: 0 14px; border: 1px solid #bcccdc; border-radius: 5px; color: var(--ink); background: white; outline: none; }
.auth-form input:focus, .group-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,170,.14); }
.primary-action, .whatsapp-action { min-height: 52px; border: 0; border-radius: 5px 5px 18px 5px; color: white; font-weight: 720; }
.primary-action { padding: 0 20px; background: var(--blue); }
.primary-action:disabled, .whatsapp-action:disabled { cursor: wait; opacity: .55; }
.privacy-note { margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.signup-paused { margin: 14px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.form-error { margin: 0; padding: 11px 13px; border-left: 3px solid #c3423f; color: #7b2626; background: #fff0ef; font-size: 13px; line-height: 1.45; }

.onboarding-head { background: rgba(247,249,248,.96); }
.onboarding-shell { width: min(680px, 100%); min-height: calc(100vh - 58px); margin: 0 auto; padding: 0 18px 90px; }
.relink-button { display: block; margin: 8px 0 14px auto; color: #9b2c2c; }
.setup-progress { position: sticky; top: 58px; z-index: 8; display: grid; grid-template-columns: repeat(3, 1fr); padding: 15px 0 14px; background: rgba(247,249,248,.96); backdrop-filter: blur(10px); }
.setup-progress span { position: relative; padding-top: 10px; border-top: 3px solid #d9e2ec; color: #829ab1; font-size: 12px; font-weight: 680; }
.setup-progress span.active { border-color: var(--whatsapp); color: var(--ink); }
.setup-progress span.done { border-color: var(--whatsapp); color: var(--whatsapp-dark); }
.setup-step { padding-top: 32px; }
.step-copy { max-width: 580px; }
.step-kicker { margin: 0 0 9px; color: var(--whatsapp-dark); font-size: 13px; font-weight: 730; }
.step-copy h1 { font-size: clamp(30px, 9vw, 48px); line-height: 1.04; letter-spacing: -.045em; }
.step-copy > p:last-child { margin: 16px 0 0; color: var(--muted); line-height: 1.6; }
.compact-copy h1 { font-size: clamp(29px, 8vw, 42px); }
.whatsapp-action { width: 100%; display: flex; align-items: center; justify-content: center; gap: 11px; margin-top: 34px; background: var(--whatsapp-dark); }
.history-choice + .whatsapp-action { margin-top: 18px; }
.history-choice { display: grid; gap: 9px; margin: 27px 0 0; padding: 0; border: 0; }
.history-choice legend { margin-bottom: 8px; color: #334e68; font-size: 13px; font-weight: 700; }
.history-choice label { min-height: 68px; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 11px; padding: 10px 13px; border: 1px solid #bcccdc; border-radius: 5px; background: white; cursor: pointer; }
.history-choice label:has(input:checked) { border-color: var(--whatsapp-dark); box-shadow: inset 4px 0 0 var(--whatsapp-dark); }
.history-choice input, .history-import-manage input { width: 18px; height: 18px; accent-color: var(--whatsapp-dark); }
.history-choice-copy strong, .history-choice-copy small, .history-import-manage strong, .history-import-manage small { display: block; }
.history-choice-copy strong, .history-import-manage strong { font-size: 14px; }
.history-choice-copy small, .history-import-manage small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.whatsapp-glyph { width: 25px; height: 25px; display: block; object-fit: contain; filter: brightness(0) invert(1); }
.pairing-step { text-align: left; }
.qr-stage { margin-top: 28px; padding: 18px; border: 1px solid #bcccdc; border-radius: 6px 6px 26px 6px; background: white; }
.qr-frame { width: min(330px, 100%); aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto; background: #eef2f4; }
.qr-frame img { width: 100%; height: 100%; display: block; object-fit: contain; }
.pairing-state { display: flex; justify-content: center; align-items: center; gap: 9px; margin-top: 17px; color: #334e68; font-size: 13px; font-weight: 650; }
.pairing-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--whatsapp); box-shadow: 0 0 0 5px rgba(32,166,106,.13); }
.qr-help { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 12px; }
.groups-step { padding-bottom: 36px; }
.group-tools { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; margin-top: 25px; }
.group-search input { height: 48px; padding-left: 41px; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%2352606d' stroke-width='2'%3E%3Ccircle cx='8' cy='8' r='5'/%3E%3Cpath d='m12 12 4 4'/%3E%3C/svg%3E") no-repeat 14px center; }
.selection-summary { display: flex; justify-content: space-between; margin: 18px 0 10px; color: var(--muted); font-size: 12px; }
.selection-summary strong { color: var(--whatsapp-dark); }
.group-list { border-top: 1px solid var(--ink); }
.history-import-manage { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 11px; margin: 2px 0 18px; padding: 13px; border-left: 4px solid var(--amber); background: #fff7e8; cursor: pointer; }
.group-row { min-height: 66px; display: grid; grid-template-columns: 24px 26px minmax(0, 1fr); align-items: center; border-bottom: 1px solid var(--line); cursor: pointer; }
.group-row input { position: absolute; opacity: 0; pointer-events: none; }
.custom-check { grid-column: 2; width: 20px; height: 20px; border: 1.5px solid #9fb3c8; border-radius: 4px; background: white; }
.group-row input:checked + .custom-check { border-color: var(--whatsapp-dark); background: var(--whatsapp-dark); box-shadow: inset 0 0 0 4px white; }
.group-row input:focus-visible + .custom-check { outline: 3px solid var(--amber); outline-offset: 2px; }
.group-name { grid-column: 3; min-width: 0; padding: 10px 0; }
.group-name strong, .group-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.group-name strong { font-size: 14px; }
.group-name small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.group-empty { padding: 34px 0; text-align: center; color: var(--muted); }
.sticky-submit { position: fixed; right: 0; bottom: 0; left: 0; z-index: 9; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(247,249,248,.96); backdrop-filter: blur(10px); }
.sticky-submit .primary-action { width: min(644px, 100%); display: block; margin: 0 auto; }
.success-step { padding-top: 80px; text-align: center; }
.success-mark { width: 62px; height: 62px; display: grid; place-items: center; margin: 0 auto 25px; border-radius: 50%; color: white; background: var(--whatsapp-dark); font-size: 30px; }
.success-step h1 { font-size: 34px; }
.success-step p { max-width: 440px; margin: 13px auto 28px; color: var(--muted); line-height: 1.55; }
.action-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

@media (min-width: 800px) {
  .auth-shell { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr); }
  .auth-context { min-height: 100vh; display: flex; flex-direction: column; padding: 42px 6vw; }
  .auth-promise { margin-top: auto; }
  .auth-steps { display: grid; gap: 15px; }
  .auth-form-panel { display: grid; align-items: center; padding: 60px 7vw; }
  .onboarding-shell { padding-top: 0; }
  .whatsapp-action { width: auto; min-width: 280px; padding: 0 30px; }
  .qr-stage { padding: 25px; }
}

/* Shared-catalog access */
.group-picker-shell { padding-top: 0; }
.add-group-note { display: grid; grid-template-columns: 34px 1fr; gap: 11px; align-items: start; margin-top: 22px; padding: 13px; border: 1px solid #b8d8ca; border-radius: 5px; background: #eef8f3; }
.add-group-note img, .add-group-admin > img { width: 30px; height: 30px; object-fit: contain; }
.add-group-note p { margin: 0; color: #355b4b; font-size: 13px; line-height: 1.45; }
.add-group-note a, .add-group-admin a { color: var(--whatsapp-dark); font-weight: 700; }

.approval-shell { min-height: calc(100vh - 58px); display: grid; place-items: center; padding: 28px 18px; }
.approval-card { width: min(480px, 100%); padding: 28px 22px; border: 1px solid var(--line); border-radius: 6px 6px 28px 6px; background: white; }
.approval-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; color: white; background: var(--whatsapp-dark); font-weight: 800; }
.approval-card h1 { max-width: 390px; font-size: clamp(27px, 8vw, 38px); line-height: 1.06; letter-spacing: -.04em; }
.approval-card p { margin: 16px 0 25px; color: var(--muted); line-height: 1.55; }
.approval-actions { display: flex; align-items: center; gap: 20px; }

.admin-page { min-height: 100vh; background: var(--paper); }
.admin-shell { padding: 26px 0 70px; }
.admin-title { display: grid; gap: 18px; align-items: end; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.admin-title h1 { max-width: 620px; font-size: clamp(29px, 8vw, 48px); line-height: 1.02; letter-spacing: -.045em; }
.admin-title .action-link { width: fit-content; min-height: 44px; }
.admin-panel { margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.admin-panel h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.admin-panel p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.connection-panel { display: grid; gap: 16px; border-left: 5px solid var(--whatsapp-dark); }
.admin-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.compact-action { width: auto; min-height: 42px; margin: 0; padding: 0 16px; border-radius: 4px 4px 13px 4px; }
.compact-action .whatsapp-glyph { width: 20px; height: 20px; }
.admin-qr { padding-top: 16px; border-top: 1px solid var(--line); }
.admin-qr img { width: min(280px, 100%); display: block; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding-bottom: 15px; }
.count-pill { flex: 0 0 auto; padding: 5px 9px; border-radius: 99px; color: #7b5417; background: #fff1d6; font-size: 11px; font-weight: 700; }
.admin-user-list { border-top: 1px solid var(--ink); }
.admin-user-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); }
.admin-user-identity strong, .admin-user-identity small { display: block; overflow-wrap: anywhere; }
.admin-user-identity small { margin-top: 4px; color: var(--muted); font-size: 11px; }
.approval-status { padding: 4px 7px; border-radius: 3px; color: #3e4c59; background: #edf1f4; font-size: 10px; font-weight: 750; text-transform: capitalize; }
.approval-status.approved { color: #0c6647; background: #ddf3e9; }
.approval-status.rejected { color: #8b2c29; background: #fde6e4; }
.approval-row-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; }
.approve-button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 4px; color: white; background: var(--whatsapp-dark); font-size: 12px; font-weight: 700; }
.approve-button:disabled, .approval-row-actions .text-button:disabled { opacity: .45; cursor: default; }
.add-group-admin { display: grid; grid-template-columns: 36px 1fr; gap: 12px; border-color: #b8d8ca; background: #f2faf6; }

@media (min-width: 700px) {
  .admin-title { grid-template-columns: 1fr auto; }
  .connection-panel { grid-template-columns: 1fr auto; align-items: center; }
  .admin-qr { grid-column: 1 / -1; }
  .admin-user-row { grid-template-columns: minmax(0, 1fr) 90px auto; }
  .approval-row-actions { grid-column: auto; justify-content: end; }
}
