:root {
  color-scheme: dark;
  --bg: #211f1e;
  --panel: #272523;
  --panel-2: #302d2a;
  --panel-3: #36322f;
  --line: rgba(235, 219, 182, .16);
  --line-strong: rgba(235, 219, 182, .28);
  --gold: #e2bd73;
  --gold-2: #f0d59c;
  --gold-dark: #9e7540;
  --text: #f1ede4;
  --text-soft: #c7bfae;
  --muted: #a39a8c;
  --green: #87ad87;
  --red: #d9988e;
  --blue: #9bb7cf;
  --sidebar-width: 280px;
  --radius: 15px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { min-width: 320px; min-height: 100vh; margin: 0; background: var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
button:disabled { opacity: .55; cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 25px; height: 25px; }
.serif { font-family: Georgia, "Times New Roman", serif; }
.muted { color: var(--muted); }
.soft { color: var(--text-soft); }
.gold { color: var(--gold-2); }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 10px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Login and first access */
.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); background: radial-gradient(ellipse at 20% 15%, #3b3026 0, transparent 38%), linear-gradient(135deg, #211f1d 0%, #181716 100%); }
.auth-brand { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 6vw, 82px); overflow: hidden; border-right: 1px solid var(--line); }
.auth-brand::after { content: ""; position: absolute; width: 580px; height: 580px; right: -190px; bottom: -290px; border: 1px solid rgba(226, 189, 115, .14); border-radius: 50%; box-shadow: 0 0 0 35px rgba(226, 189, 115, .025), 0 0 0 90px rgba(226, 189, 115, .02); }
.auth-brand-lockup { position: relative; z-index: 1; display: flex; align-items: center; gap: 18px; }
.brand-mark { width: 54px; height: 54px; color: var(--gold); }
.auth-brand-title { margin: 0; font: 36px/1 Georgia, "Times New Roman", serif; letter-spacing: .12em; }
.auth-brand-subtitle { margin: 7px 0 0; color: var(--text-soft); font-size: 10px; letter-spacing: .3em; }
.auth-brand-copy { position: relative; z-index: 1; max-width: 610px; margin: auto 0; padding: 80px 0; }
.auth-brand-copy h1 { margin: 0 0 20px; font: 500 clamp(40px, 5vw, 70px)/1.05 Georgia, "Times New Roman", serif; }
.auth-brand-copy h1 span { color: var(--gold-2); font-style: italic; }
.auth-brand-copy p { max-width: 500px; color: var(--text-soft); font-size: 16px; line-height: 1.75; }
.auth-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.auth-point { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; color: var(--text-soft); font-size: 12px; background: rgba(255,255,255,.025); }
.auth-point .icon { color: var(--gold); width: 16px; height: 16px; }
.auth-footer { position: relative; z-index: 1; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: 38px; }
.auth-card { width: min(100%, 440px); padding: clamp(28px, 4vw, 42px); border: 1px solid var(--line-strong); border-radius: 20px; background: linear-gradient(160deg, #2b2826, #242220); box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.auth-card-brand { display: none; align-items: center; gap: 12px; margin-bottom: 28px; }
.auth-card h2 { margin: 0 0 9px; font: 30px/1.15 Georgia, "Times New Roman", serif; }
.auth-card > p { margin: 0 0 27px; color: var(--text-soft); font-size: 13px; line-height: 1.6; }
.auth-card .field { margin-bottom: 17px; }
.auth-notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 12px 13px; border: 1px solid rgba(226,189,115,.2); border-radius: 10px; color: var(--text-soft); background: rgba(226,189,115,.06); font-size: 11px; line-height: 1.55; }
.auth-notice .icon { color: var(--gold); margin-top: 1px; }

/* App frame */
.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); }
.sidebar { position: sticky; top: 0; z-index: 30; display: flex; flex-direction: column; height: 100vh; min-height: 620px; padding: 24px 16px 15px; border-right: 1px solid var(--line); background: #201e1d; }
.brand-block { display: flex; align-items: center; gap: 11px; padding: 0 13px 20px; border-bottom: 1px solid var(--line); }
.brand-block .brand-mark { width: 48px; height: 48px; }
.brand-name { margin: 0; font: 27px/.9 Georgia, "Times New Roman", serif; letter-spacing: .12em; }
.brand-sub { margin: 5px 0 0; color: var(--text-soft); font-size: 8px; letter-spacing: .27em; }
.sidebar-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; }
.nav-label { padding: 4px 12px 8px; color: #827b71; font-size: 9px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.nav-item { width: 100%; min-height: 43px; display: flex; align-items: center; gap: 13px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #d3cbbc; text-align: left; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.nav-item .icon { color: #d8c18e; }
.nav-item:hover { background: rgba(255,255,255,.055); color: #fff; }
.nav-item.active { border-color: rgba(245,212,145,.28); background: linear-gradient(100deg,#d6b36e,#b78d4d); color: #28221a; box-shadow: 0 4px 15px rgba(0,0,0,.12); }
.nav-item.active .icon { color: #2c251c; }
.nav-item-label { flex: 1; font-size: 12px; font-weight: 560; }
.nav-badge { min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #27211a; background: var(--gold); font-size: 10px; font-weight: 800; }
.nav-divider { height: 1px; margin: 18px 9px 13px; background: var(--line); }
.sidebar-spacer { flex: 1; }
.sidebar-admin { margin-top: 9px; padding-top: 13px; border-top: 1px solid var(--line); }
.sidebar-user { display: flex; align-items: center; gap: 10px; margin-top: 13px; padding: 11px 9px 3px; }
.avatar { display: inline-grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(226,189,115,.32); border-radius: 50%; color: #f0d7a2; background: linear-gradient(135deg,#65513a,#342c24); font: 13px Georgia,serif; }
.avatar.small { width: 33px; height: 33px; font-size: 11px; }
.avatar.tiny { width: 28px; height: 28px; font-size: 10px; }
.sidebar-user-copy { min-width: 0; flex: 1; }
.sidebar-user-name { overflow: hidden; color: var(--text); font-size: 11px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-role { margin-top: 3px; color: var(--muted); font-size: 10px; }
.sidebar-logout { display: grid; place-items: center; width: 31px; height: 31px; border: 0; border-radius: 8px; color: var(--text-soft); background: transparent; cursor: pointer; }
.sidebar-logout:hover { color: var(--gold); background: rgba(255,255,255,.06); }

.main-panel { min-width: 0; min-height: 100vh; padding: 0 clamp(18px, 2vw, 34px) 36px; background: radial-gradient(ellipse at 60% -20%, rgba(255,255,255,.035), transparent 50%), #211f1e; }
.topbar { height: 70px; display: flex; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); }
.mobile-menu { display: none; }
.global-search { position: relative; display: flex; align-items: center; width: min(570px, 53vw); height: 41px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; background: #2a2725; }
.global-search .icon { color: var(--gold); }
.global-search input { width: 100%; height: 100%; padding: 0 9px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 12px; }
.global-search input::placeholder { color: #a39a8b; }
.search-results { position: absolute; z-index: 30; top: calc(100% + 7px); left: 0; right: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 10px; background: #282523; box-shadow: 0 16px 36px rgba(0,0,0,.4); }
.search-shortcut { display: inline-flex; align-items: center; min-width: max-content; padding: 4px 7px; border: 1px solid var(--line); border-radius: 5px; color: #d2c4a6; background: #332f2b; font-size: 9px; }
.topbar-spacer { flex: 1; }
.icon-button { position: relative; display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid transparent; border-radius: 9px; color: var(--text-soft); background: transparent; cursor: pointer; }
.icon-button:hover { border-color: var(--line); color: var(--gold-2); background: rgba(255,255,255,.035); }
.notification-dot { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border: 1px solid var(--bg); border-radius: 50%; background: var(--gold); }
.topbar-profile { display: flex; align-items: center; gap: 10px; margin-left: 5px; padding-left: 14px; border-left: 1px solid var(--line); }
.topbar-profile-copy { line-height: 1.3; }
.topbar-profile-name { font-size: 11px; font-weight: 700; }
.topbar-profile-role { color: var(--muted); font-size: 9px; }
.topbar-profile .icon { width: 14px; color: var(--muted); }
.page-content { max-width: 1580px; margin: 0 auto; padding-top: 23px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 0 0 22px; }
.page-heading h1 { margin: 0; font: 31px/1.12 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.page-heading h1 em { color: var(--gold-2); font-weight: 400; }
.page-heading p { margin: 8px 0 0; color: var(--text-soft); font-size: 12px; line-height: 1.5; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.date-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 11px; white-space: nowrap; }
.date-chip .icon { color: var(--gold); }

/* Buttons, forms, cards */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 37px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); background: #302c29; font-size: 11px; font-weight: 650; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { border-color: rgba(226,189,115,.6); background: #39332d; transform: translateY(-1px); }
.btn .icon { width: 16px; height: 16px; }
.btn.primary { border-color: #c29b5c; color: #241e18; background: linear-gradient(105deg,#edcf8f,#cba45f); }
.btn.primary:hover { background: linear-gradient(105deg,#f3dca8,#d8b46f); }
.btn.outline-gold { border-color: rgba(226,189,115,.46); color: var(--gold-2); background: transparent; }
.btn.danger { border-color: rgba(217,152,142,.35); color: #e2aaa0; background: rgba(217,152,142,.06); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--text-soft); }
.btn.full { width: 100%; }
.btn.small { min-height: 31px; padding: 0 10px; font-size: 10px; }
.btn.icon-only { width: 34px; min-width: 34px; padding: 0; }
.card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg,rgba(255,255,255,.026),rgba(255,255,255,.008)),var(--panel); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 16px 11px; }
.card-head h2, .card-head h3 { display: flex; align-items: center; gap: 9px; margin: 0; color: #f1e5ca; font: 19px/1.2 Georgia, "Times New Roman", serif; }
.card-head h2 .icon, .card-head h3 .icon { color: var(--gold); }
.card-head .subhead { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 5px; border: 0; color: var(--gold); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.text-link:hover { color: var(--gold-2); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field-label { color: var(--text-soft); font-size: 10px; font-weight: 680; }
.field input, .field select, .field textarea, .input { width: 100%; min-height: 40px; padding: 10px 11px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); background: #211f1e; font-size: 12px; }
.field textarea { min-height: 86px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #857d73; }
.field select { cursor: pointer; }
.field select option { color: var(--text); background: #242220; }
.field-help { margin: -1px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.form-grid .span-2 { grid-column: 1/-1; }
.form-check { display: flex; align-items: flex-start; gap: 9px; color: var(--text-soft); font-size: 11px; line-height: 1.5; }
.form-check input { margin-top: 1px; accent-color: var(--gold); }
.pill { display: inline-flex; align-items: center; gap: 5px; min-height: 23px; padding: 0 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--text-soft); background: rgba(255,255,255,.03); font-size: 9px; font-weight: 700; white-space: nowrap; }
.pill.gold { color: #f0d49a; border-color: rgba(226,189,115,.25); background: rgba(226,189,115,.1); }
.pill.green { color: #bbd6b4; border-color: rgba(135,173,135,.25); background: rgba(135,173,135,.11); }
.pill.red { color: #e6b5aa; border-color: rgba(217,152,142,.26); background: rgba(217,152,142,.1); }
.pill.blue { color: #bdd1e5; border-color: rgba(155,183,207,.25); background: rgba(155,183,207,.1); }
.empty-state { display: grid; place-items: center; padding: 36px 18px; color: var(--muted); text-align: center; }
.empty-state .icon { width: 31px; height: 31px; margin-bottom: 10px; color: var(--gold-dark); }
.empty-state strong { color: var(--text-soft); font-size: 12px; }
.empty-state p { max-width: 330px; margin: 7px 0 0; font-size: 10px; line-height: 1.6; }

/* Dashboard */
.demo-banner { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; padding: 9px 12px; border: 1px solid rgba(226,189,115,.17); border-radius: 8px; color: #d5c7aa; background: rgba(226,189,115,.055); font-size: 10px; }
.demo-banner .icon { color: var(--gold); width: 15px; height: 15px; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { position: relative; min-height: 83px; display: flex; align-items: center; gap: 13px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(130deg,#2b2825,#252321); }
.stat-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(226,189,115,.16); border-radius: 12px; color: var(--gold); background: rgba(226,189,115,.07); }
.stat-label { color: var(--text-soft); font-size: 10px; line-height: 1.35; }
.stat-value { margin-top: 3px; color: #f5e9ce; font: 25px/1 Georgia, "Times New Roman", serif; }
.stat-change { margin-left: auto; align-self: center; padding: 5px 8px; border: 1px solid rgba(226,189,115,.16); border-radius: 999px; color: var(--gold-2); background: rgba(226,189,115,.1); font-size: 9px; font-weight: 700; white-space: nowrap; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(360px,.95fr); gap: 15px; }
.dashboard-stack { display: grid; align-content: start; gap: 15px; min-width: 0; }
.featured-property { display: grid; grid-template-columns: minmax(220px,.94fr) minmax(180px,.86fr); gap: 15px; padding: 0 15px 15px; }
.featured-image-wrap { position: relative; min-height: 190px; overflow: hidden; border-radius: 9px; background: #34302b; }
.featured-image-wrap img { width: 100%; height: 100%; min-height: 190px; display: block; object-fit: cover; }
.image-label { position: absolute; top: 11px; left: 11px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #fff1d3; background: rgba(32,29,25,.76); font-size: 9px; font-weight: 700; backdrop-filter: blur(5px); }
.featured-info { align-self: center; min-width: 0; }
.featured-info h3 { margin: 0 0 6px; color: #f0e4cc; font: 19px/1.24 Georgia, "Times New Roman", serif; }
.featured-info .location { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10px; }
.property-facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; color: var(--text-soft); font-size: 9px; }
.property-fact { display: inline-flex; align-items: center; gap: 5px; }
.property-fact .icon { width: 14px; height: 14px; color: var(--gold); }
.featured-price { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 14px; color: var(--gold-2); font: 22px/1 Georgia,serif; }
.featured-price small { color: var(--muted); font: 10px system-ui,sans-serif; }
.feature-card { position: relative; min-height: 237px; display: flex; align-items: center; padding: 24px 25px; overflow: hidden; background: linear-gradient(112deg,#302923 0%,#322a23 56%,#3a3027 100%); }
.feature-card::after { content: ""; position: absolute; top: -45px; right: -35px; width: 210px; height: 330px; border: 1px solid rgba(226,189,115,.22); border-radius: 50%; transform: rotate(32deg); box-shadow: 0 0 0 21px rgba(226,189,115,.025),0 0 0 49px rgba(226,189,115,.018); }
.feature-copy { position: relative; z-index: 1; max-width: 65%; }
.feature-copy h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; color: #f3e6c9; font: 23px/1.1 Georgia,serif; }
.feature-copy h2 .icon { color: var(--gold); }
.feature-copy p { max-width: 370px; margin: 0 0 17px; color: #d6ccba; font-size: 11px; line-height: 1.6; }
.feature-photo { position: absolute; z-index: 0; right: 0; bottom: 0; width: 33%; height: 100%; object-fit: cover; opacity: .78; mask-image: linear-gradient(90deg,transparent 0%,#000 45%); }
.followup-list { padding: 0 15px 12px; }
.followup-row { display: grid; grid-template-columns: 34px minmax(110px,1fr) auto auto; align-items: center; gap: 9px; min-height: 58px; border-top: 1px solid rgba(255,255,255,.065); }
.followup-row:first-child { border-top: 0; }
.followup-name { overflow: hidden; color: var(--text); font-size: 10px; font-weight: 740; text-overflow: ellipsis; white-space: nowrap; }
.followup-note { overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.followup-time { color: var(--text-soft); font-size: 9px; white-space: nowrap; }
.match-card { margin: 0 14px 14px; border: 1px solid rgba(226,189,115,.15); border-radius: 11px; background: linear-gradient(130deg,rgba(226,189,115,.055),rgba(255,255,255,.012)); }
.match-lead { display: flex; align-items: center; gap: 10px; padding: 12px; }
.match-lead-copy { flex: 1; min-width: 0; }
.match-lead-name { color: var(--text); font-size: 11px; font-weight: 750; }
.match-lead-text { margin-top: 4px; color: var(--text-soft); font-size: 9px; line-height: 1.5; }
.match-score { display: grid; place-items: center; min-width: 56px; height: 45px; padding: 0 7px; border: 1px solid rgba(226,189,115,.25); border-radius: 11px; color: var(--gold-2); background: rgba(226,189,115,.1); font: 18px/1 Georgia,serif; }
.match-score small { color: var(--text-soft); font: 8px/1.3 system-ui,sans-serif; }
.match-property { display: grid; grid-template-columns: 39% minmax(0,1fr); gap: 12px; align-items: center; padding: 0 12px 11px; }
.match-property img { width: 100%; height: 91px; object-fit: cover; border-radius: 7px; }
.match-property-title { color: #f1e5ce; font: 14px/1.2 Georgia,serif; }
.match-property-sub { margin-top: 5px; color: var(--muted); font-size: 9px; }
.match-property-price { margin-top: 8px; color: var(--gold-2); font: 17px/1 Georgia,serif; }
.match-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 12px 12px; }
.quick-actions { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; padding: 0 14px 14px; }
.quick-action { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; min-height: 82px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text-soft); background: rgba(255,255,255,.018); font-size: 9px; font-weight: 650; text-align: left; cursor: pointer; }
.quick-action:hover { border-color: rgba(226,189,115,.34); color: var(--gold-2); background: rgba(226,189,115,.06); }
.quick-action .icon { color: var(--gold); }
.section-rule { height: 1px; margin: 0 15px 12px; background: var(--line); }

/* Lists, cards and pages */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 0 0 14px; }
.toolbar-search { position: relative; width: min(100%,320px); }
.toolbar-search .icon { position: absolute; top: 11px; left: 11px; color: var(--muted); }
.toolbar-search input { padding-left: 36px; }
.toolbar-spacer { flex: 1; }
.view-toggle { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.view-toggle button { width: 30px; height: 27px; border: 0; border-radius: 5px; color: var(--muted); background: transparent; cursor: pointer; }
.view-toggle button.active { color: var(--gold-2); background: #40362a; }
.property-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.property-tile { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.property-tile-image { position: relative; height: 170px; overflow: hidden; background: #39332d; }
.property-tile-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.property-tile:hover .property-tile-image img { transform: scale(1.035); }
.property-tile-badge { position: absolute; top: 10px; left: 10px; }
.property-tile-body { padding: 13px; }
.property-tile-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.property-tile-title h3 { margin: 0; color: #f2e5cb; font: 17px/1.22 Georgia,serif; }
.property-tile-price { margin-top: 7px; color: var(--gold-2); font: 20px/1 Georgia,serif; }
.property-tile .property-facts { margin-top: 11px; }
.property-tile-location { display: flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--muted); font-size: 9px; }
.property-tile-actions { display: flex; justify-content: flex-end; gap: 5px; margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--line); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.data-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.data-table th { padding: 12px 13px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .09em; text-align: left; text-transform: uppercase; }
.data-table td { padding: 12px 13px; border-bottom: 1px solid rgba(255,255,255,.055); color: var(--text-soft); font-size: 10px; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.table-primary { color: var(--text); font-size: 11px; font-weight: 700; }
.table-secondary { margin-top: 4px; color: var(--muted); font-size: 9px; }
.table-actions { display: flex; justify-content: flex-end; gap: 4px; }
.table-property { display: flex; align-items: center; gap: 10px; min-width: 185px; }
.table-property img { width: 51px; height: 38px; object-fit: cover; border-radius: 6px; }
.client-list { display: grid; gap: 10px; }
.client-card { display: grid; grid-template-columns: auto minmax(150px,1fr) repeat(3,minmax(95px,.7fr)) auto; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.client-card-main { min-width: 0; }
.client-card-main strong { display: block; color: var(--text); font-size: 11px; }
.client-card-main span { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.client-meta-label { margin-bottom: 4px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.client-meta-value { color: var(--text-soft); font-size: 10px; }
.client-card-actions { display: flex; gap: 5px; }
.followup-page-list { display: grid; gap: 9px; }
.followup-card { display: grid; grid-template-columns: auto minmax(120px,1fr) minmax(150px,1.2fr) auto auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.followup-card.completed { opacity: .65; }
.followup-card-main strong { color: var(--text); font-size: 11px; }
.followup-card-main span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.marketing-layout { display: grid; grid-template-columns: minmax(280px,.72fr) minmax(0,1.28fr); gap: 15px; align-items: start; }
.marketing-form { padding: 18px; }
.marketing-form .field { margin-bottom: 14px; }
.marketing-output { min-height: 365px; padding: 18px; }
.output-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.output-head h2 { margin: 0; color: #f2e4c7; font: 19px Georgia,serif; }
.output-text { min-height: 230px; margin: 14px 0; padding: 16px; border: 1px solid var(--line); border-radius: 9px; color: var(--text-soft); background: #211f1e; font-size: 12px; line-height: 1.8; white-space: pre-wrap; }
.output-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.status-dot.offline { background: #978b7c; }
.assistant-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 14px; }
.assistant-chat { display: flex; flex-direction: column; min-height: 550px; }
.chat-history { flex: 1; display: flex; flex-direction: column; gap: 11px; padding: 18px; }
.chat-bubble { max-width: min(78%,610px); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; color: var(--text-soft); background: #302d2a; font-size: 11px; line-height: 1.65; white-space: pre-wrap; }
.chat-bubble.user { align-self: flex-end; border-color: rgba(226,189,115,.22); border-radius: 12px 12px 3px 12px; color: #f4e4c2; background: rgba(226,189,115,.1); }
.chat-form { display: flex; align-items: flex-end; gap: 8px; margin: 0 14px 14px; padding: 9px; border: 1px solid var(--line-strong); border-radius: 11px; background: #211f1e; }
.chat-form textarea { flex: 1; min-height: 39px; max-height: 120px; resize: vertical; padding: 9px; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 11px; }
.assistant-sidebar { padding: 16px; }
.assistant-sidebar h3 { margin: 0 0 12px; color: #f1e4c9; font: 17px Georgia,serif; }
.assistant-prompt { width: 100%; display: flex; align-items: flex-start; gap: 9px; margin: 6px 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--text-soft); background: rgba(255,255,255,.02); font-size: 10px; text-align: left; line-height: 1.45; cursor: pointer; }
.assistant-prompt:hover { border-color: rgba(226,189,115,.3); color: var(--gold-2); }
.assistant-prompt .icon { width: 15px; height: 15px; color: var(--gold); }
.match-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.match-result { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.match-result-top { position: relative; height: 142px; }
.match-result-top img { width: 100%; height: 100%; display: block; object-fit: cover; }
.match-result-top .match-score { position: absolute; right: 9px; bottom: 9px; min-width: 55px; height: 39px; background: rgba(36,31,25,.9); }
.match-result-body { padding: 13px; }
.match-result-body h3 { margin: 0; color: #f2e5cd; font: 17px Georgia,serif; }
.match-result-client { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--text-soft); font-size: 9px; }
.match-reasons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.report-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 14px; }
.report-card { padding: 17px; }
.report-card h2 { margin: 0 0 16px; color: #f1e4c9; font: 19px Georgia,serif; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 38px; align-items: center; gap: 10px; margin: 12px 0; color: var(--text-soft); font-size: 10px; }
.bar-track { height: 8px; overflow: hidden; border-radius: 999px; background: #3b3733; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg,#b28c51,#e6c781); }
.bar-count { color: var(--gold-2); text-align: right; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 13px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.admin-tab { min-height: 33px; padding: 0 11px; border: 1px solid transparent; border-radius: 7px; color: var(--text-soft); background: transparent; font-size: 10px; cursor: pointer; }
.admin-tab:hover { color: var(--gold-2); }
.admin-tab.active { border-color: rgba(226,189,115,.25); color: var(--gold-2); background: rgba(226,189,115,.08); }
.admin-content { display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,.7fr); gap: 14px; }
.admin-form-card { padding: 18px; }
.admin-form-card h2 { margin: 0 0 15px; color: #f2e5cb; font: 19px Georgia,serif; }
.integration-card { padding: 16px; }
.integration-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.integration-row:first-of-type { border-top: 0; }
.integration-copy { flex: 1; }
.integration-copy strong { display: block; color: var(--text); font-size: 11px; }
.integration-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.admin-warning { display: flex; gap: 9px; align-items: flex-start; padding: 12px; border: 1px solid rgba(226,189,115,.19); border-radius: 9px; color: var(--text-soft); background: rgba(226,189,115,.06); font-size: 10px; line-height: 1.55; }
.admin-warning .icon { color: var(--gold); }
.summary-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 14px; }
.summary-mini { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.summary-mini span { display: block; color: var(--muted); font-size: 9px; }
.summary-mini strong { display: block; margin-top: 7px; color: var(--gold-2); font: 23px Georgia,serif; }

/* Modal and notifications */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.66); backdrop-filter: blur(4px); }
.modal { width: min(100%, 650px); max-height: min(90vh, 850px); overflow: auto; border: 1px solid var(--line-strong); border-radius: 16px; background: #282523; box-shadow: 0 30px 100px rgba(0,0,0,.5); }
.modal.wide { width: min(100%, 800px); }
.modal-head { position: sticky; z-index: 2; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px 19px; border-bottom: 1px solid var(--line); background: #282523; }
.modal-head h2 { margin: 0; color: #f1e4c8; font: 22px Georgia,serif; }
.modal-head p { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.modal-body { padding: 18px 19px; }
.modal-foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 13px 19px; border-top: 1px solid var(--line); background: #282523; }
.modal-close { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-soft); background: transparent; cursor: pointer; }
.modal-close:hover { color: var(--gold); }
.env-list { display: grid; gap: 7px; }
.env-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.018); font-size: 10px; }
.env-row code { color: var(--gold-soft); font-size: 9px; overflow-wrap: anywhere; }
.env-row span { color: var(--muted); text-align: right; }
.search-result { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 11px; border: 0; border-bottom: 1px solid var(--line); color: var(--text); text-align: left; background: transparent; cursor: pointer; }
.search-result:last-child { border-bottom: 0; }
.search-result:hover { background: rgba(215,174,107,.08); }
.search-result > span:nth-child(2) { display: grid; gap: 3px; flex: 1; min-width: 0; }
.search-result strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.search-result small,.search-empty { color: var(--muted); font-size: 9px; }
.search-empty { padding: 13px; }
.toast-stack { position: fixed; z-index: 120; right: 18px; bottom: 18px; display: grid; gap: 8px; width: min(360px,calc(100vw - 36px)); }
.toast { display: flex; align-items: flex-start; gap: 9px; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); background: #302c29; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: 11px; line-height: 1.5; animation: toast-in .2s ease-out; }
.toast.success .icon { color: #a8c89f; }
.toast.error .icon { color: #e6a69a; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.loading-screen { min-height: 100vh; display: grid; place-items: center; color: var(--gold-2); font: 17px Georgia,serif; }
.loading-screen::after { content: ""; width: 9px; height: 9px; margin-left: 8px; border-radius: 50%; background: var(--gold); animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .25; transform: scale(.65); } }

@media (max-width: 1260px) {
  :root { --sidebar-width: 245px; }
  .dashboard-grid { grid-template-columns: minmax(0,1fr) minmax(330px,.9fr); }
  .stat-card { gap: 9px; padding: 12px; }
  .stat-icon { width: 38px; height: 38px; }
  .stat-change { display: none; }
  .property-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .client-card { grid-template-columns: auto minmax(140px,1fr) repeat(2,minmax(85px,.7fr)) auto; }
  .client-card .client-meta:nth-of-type(4) { display: none; }
}
@media (max-width: 1020px) {
  :root { --sidebar-width: 225px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid > .dashboard-stack { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid > .dashboard-stack:first-child .card:first-child { grid-column: 1/-1; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat-change { display: inline-flex; }
  .admin-content { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .auth-screen { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form-wrap { min-height: 100vh; padding: 20px; }
  .auth-card { padding: 27px 23px; }
  .auth-card-brand { display: flex; }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 80; width: 282px; height: 100dvh; min-height: 0; transform: translateX(-103%); transition: transform .22s ease; box-shadow: 20px 0 45px rgba(0,0,0,.35); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.58); }
  .main-panel { padding: 0 14px 25px; }
  .topbar { height: 62px; gap: 8px; }
  .mobile-menu { display: grid; width: 36px; height: 36px; flex: 0 0 auto; }
  .global-search { width: auto; flex: 1; height: 38px; padding: 0 8px; }
  .global-search input { min-width: 0; font-size: 10px; }
  .search-shortcut { display: none; }
  .topbar-profile { gap: 0; margin-left: 0; padding-left: 8px; }
  .topbar-profile .avatar { width: 32px; height: 32px; }
  .topbar-profile-copy, .topbar-profile > .icon { display: none; }
  .topbar .icon-button { width: 33px; }
  .page-content { padding-top: 18px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 16px; }
  .page-heading h1 { font-size: 26px; }
  .heading-actions { width: 100%; flex-wrap: wrap; }
  .stat-grid { gap: 8px; }
  .stat-card { min-height: 73px; gap: 9px; padding: 10px; }
  .stat-icon { width: 34px; height: 34px; border-radius: 9px; }
  .stat-icon .icon { width: 20px; height: 20px; }
  .stat-label { font-size: 9px; }
  .stat-value { font-size: 22px; }
  .dashboard-grid > .dashboard-stack { grid-template-columns: 1fr; }
  .dashboard-grid > .dashboard-stack:first-child .card:first-child { grid-column: auto; }
  .featured-property { grid-template-columns: 1fr; gap: 10px; }
  .featured-image-wrap, .featured-image-wrap img { min-height: 180px; max-height: 230px; }
  .feature-card { min-height: 205px; padding: 19px; }
  .feature-copy { max-width: 75%; }
  .feature-copy h2 { font-size: 20px; }
  .feature-photo { width: 29%; }
  .followup-row { grid-template-columns: 31px minmax(0,1fr) auto; gap: 8px; }
  .followup-time { display: none; }
  .followup-row .btn { min-height: 29px; padding: 0 8px; font-size: 9px; }
  .match-property { grid-template-columns: 38% minmax(0,1fr); }
  .quick-actions { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .property-grid { grid-template-columns: 1fr; }
  .property-tile-image { height: 190px; }
  .client-card { grid-template-columns: auto minmax(0,1fr) auto; gap: 9px; }
  .client-card .client-meta { display: none; }
  .client-card-actions { grid-column: 2/-1; }
  .followup-card { grid-template-columns: auto minmax(0,1fr) auto; }
  .followup-card > .followup-note-column { grid-column: 2/-1; }
  .followup-card > .followup-time { display: none; }
  .marketing-layout, .assistant-layout, .report-grid { grid-template-columns: 1fr; }
  .assistant-sidebar { order: -1; }
  .assistant-chat { min-height: 470px; }
  .match-list { grid-template-columns: 1fr; }
  .summary-strip { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .summary-mini { padding: 10px; }
  .summary-mini strong { font-size: 19px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .modal-backdrop { padding: 8px; }
  .modal-body { padding: 15px; }
}
@media (max-width: 420px) {
  .topbar { gap: 5px; }
  .topbar .icon-button { width: 29px; }
  .main-panel { padding-right: 10px; padding-left: 10px; }
  .stat-card { align-items: flex-start; flex-direction: column; }
  .stat-icon { width: 30px; height: 30px; }
  .stat-change { display: none; }
  .card-head { padding-right: 12px; padding-left: 12px; }
  .card-head h2, .card-head h3 { font-size: 17px; }
  .followup-row { grid-template-columns: 28px minmax(0,1fr); padding: 6px 0; }
  .followup-row .btn { grid-column: 2; justify-self: start; }
  .match-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ===== Cadastro com IA + dados privados do proprietário ===== */
.intake-card { margin-bottom: 15px; padding: 20px 22px; background: radial-gradient(ellipse at 0 0, rgba(226,189,115,.10), transparent 55%), var(--panel, #22201d); }
.intake-head h2 { margin: 0 0 6px; color: #f1e4c9; font: 22px/1.2 Georgia, serif; font-weight: 400; }
.intake-head h2 em { color: var(--gold-2); }
.intake-head .subhead { max-width: 760px; font-size: 12px; line-height: 1.6; }
.intake-body { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px; align-items: stretch; margin-top: 14px; }
.mic-button { width: 150px; min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 14px; border: 1px solid rgba(226,189,115,.5); border-radius: 14px; color: #241b10; background: linear-gradient(180deg,#f5dca3,#d6ae6c); box-shadow: inset 0 1px 0 rgba(255,250,235,.7), 0 8px 22px -10px rgba(214,170,98,.7); font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.mic-button svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mic-button:hover:not(:disabled) { transform: translateY(-2px); }
.mic-button:disabled { opacity: .45; cursor: not-allowed; }
.mic-button.recording { color: #fff; border-color: #e0605a; background: linear-gradient(180deg,#e0605a,#b23b36); animation: mic-pulse 1.4s ease-in-out infinite; }
@keyframes mic-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(224,96,90,.55); } 50% { box-shadow: 0 0 0 12px rgba(224,96,90,0); } }
.intake-form { display: flex; flex-direction: column; gap: 10px; }
.intake-form textarea { flex: 1; min-height: 120px; }
.intake-form .btn { align-self: flex-end; }
.intake-status { min-height: 16px; margin-top: 10px; color: var(--gold-2); font-size: 12px; }
.intake-status:empty { display: none; }
.owner-section { margin-top: 4px; padding: 14px; border: 1px dashed rgba(226,189,115,.45); border-radius: 12px; background: rgba(226,189,115,.05); }
.owner-section-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.owner-section-head .icon { color: var(--gold); margin-top: 2px; }
.owner-section-head strong { display: block; color: var(--gold-2); font-size: 13px; }
.owner-section-head span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.owner-private { display: flex; gap: 7px; align-items: flex-start; margin: 2px 0 10px; padding: 8px 10px; border: 1px dashed rgba(226,189,115,.35); border-radius: 8px; color: #d9cfbd; background: rgba(226,189,115,.05); font-size: 11px; line-height: 1.45; }
.owner-private .icon { color: var(--gold); flex: none; margin-top: 1px; }
.owner-private a { color: var(--gold-2); text-decoration: underline; }
.review-banner { padding: 13px 14px; border: 1px solid rgba(226,189,115,.4); border-radius: 12px; background: rgba(226,189,115,.08); }
.review-title { display: flex; gap: 8px; align-items: center; color: var(--gold-2); font-size: 13px; }
.review-banner details { margin-top: 9px; color: var(--muted); font-size: 11px; }
.review-banner summary { cursor: pointer; color: #d9cfbd; }
.review-banner details p { margin: 7px 0 0; line-height: 1.6; white-space: pre-line; }
.review-missing { display: flex; gap: 8px; margin-top: 9px; color: #f0c98a; font-size: 11px; line-height: 1.5; }
@media (max-width: 700px) {
  .intake-body { grid-template-columns: 1fr; }
  .mic-button { width: 100%; min-height: 84px; flex-direction: row; }
}

/* ===== Chat da Cris IA: cadastro com tabela, edição e carregamento dourado ===== */
.chat-history { max-height: 68vh; overflow-y: auto; scroll-behavior: smooth; }
.chat-bubble { font-size: 12.5px; }
.chat-draft { align-self: stretch; max-width: 720px; }
.chat-mic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border: 1px solid rgba(226,189,115,.5); border-radius: 50%; color: #241b10; background: linear-gradient(180deg,#f5dca3,#d6ae6c); cursor: pointer; transition: transform .2s; }
.chat-mic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.chat-mic:hover:not(:disabled) { transform: scale(1.06); }
.chat-mic:disabled { opacity: .4; cursor: not-allowed; }
.chat-mic.recording { color: #fff; border-color: #e0605a; background: linear-gradient(180deg,#e0605a,#b23b36); animation: mic-pulse 1.4s ease-in-out infinite; }
.chat-form textarea { font-size: 12.5px; }

/* "Pensando" com barrinha dourada */
.chat-bubble.thinking { width: min(78%, 420px); }
.thinking-label { display: flex; align-items: center; gap: 9px; color: var(--gold-2); font-weight: 600; }
.thinking-dots { display: inline-flex; gap: 3px; }
.thinking-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); animation: dot-bounce 1.2s infinite ease-in-out; }
.thinking-dots i:nth-child(2) { animation-delay: .15s; }
.thinking-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot-bounce { 0%,80%,100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-4px); opacity: 1; } }
.gold-loader { position: relative; height: 4px; margin-top: 11px; overflow: hidden; border-radius: 99px; background: rgba(226,189,115,.14); }
.gold-loader span { position: absolute; top: 0; left: -40%; width: 40%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, transparent, #f5dca3, #d6ae6c, transparent); box-shadow: 0 0 10px rgba(240,213,156,.6); animation: gold-slide 1.3s ease-in-out infinite; }
@keyframes gold-slide { 0% { left: -40%; } 100% { left: 100%; } }

/* Tabela do cadastro */
.draft-card { padding: 14px; border: 1px solid rgba(226,189,115,.42); border-radius: 14px; background: linear-gradient(160deg, rgba(226,189,115,.09), rgba(32,30,28,.95) 45%); box-shadow: 0 14px 34px -20px rgba(0,0,0,.8); }
.draft-card.saved { border-color: rgba(108,190,130,.5); }
.draft-card.cancelled { opacity: .55; }
.draft-status { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; color: var(--gold-2); font-size: 13px; font-weight: 700; }
.draft-status.saved { color: #8fd6a3; }
.draft-status.cancelled { color: var(--muted); }
.draft-table { display: grid; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.draft-row { display: grid; grid-template-columns: 170px minmax(0,1fr); border-top: 1px solid var(--line); }
.draft-row:first-child { border-top: 0; }
.draft-row:nth-child(even) { background: rgba(255,255,255,.018); }
.draft-row.editing { background: rgba(226,189,115,.08); }
.draft-label { padding: 10px 12px; color: var(--muted); font-size: 11.5px; border-right: 1px solid var(--line); }
.draft-cell { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px 8px 7px 12px; }
.draft-value { flex: 1; min-width: 0; color: var(--text); font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.draft-value.empty { color: #8f877a; font-style: italic; }
.draft-pencil { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; color: var(--gold); background: transparent; cursor: pointer; }
.draft-pencil:hover { border-color: rgba(226,189,115,.4); background: rgba(226,189,115,.1); }
.draft-pencil .icon { width: 15px; height: 15px; }
.draft-edit { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.draft-input { flex: 1; min-width: 160px; padding: 8px 10px; border: 1px solid rgba(226,189,115,.55); border-radius: 8px; outline: 0; color: var(--text); background: #1b1a18; font: inherit; font-size: 12.5px; }
textarea.draft-input { width: 100%; resize: vertical; }
.draft-owner { margin-top: 12px; padding: 10px; border: 1px dashed rgba(226,189,115,.45); border-radius: 12px; background: rgba(226,189,115,.04); }
.draft-owner-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 2px 8px; color: var(--gold-2); font-size: 12px; font-weight: 700; }
.draft-owner-head span { color: var(--muted); font-weight: 400; }
.draft-missing { display: flex; gap: 8px; margin-top: 11px; color: #f0c98a; font-size: 11.5px; line-height: 1.5; }
.draft-photo { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.draft-photo label { cursor: pointer; }
.draft-photo-name { color: var(--gold-2); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 13px; }
.draft-collapsed { padding: 8px 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 11px; }
@media (max-width: 700px) {
  .draft-row { grid-template-columns: 1fr; }
  .draft-label { padding: 8px 10px 0; border-right: 0; }
  .draft-actions .btn { flex: 1; }
  .chat-history { max-height: 62vh; padding: 12px; }
}

/* ===== Sem zoom acidental (toque duplo / foco em campo no iPhone) ===== */
html, body { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a, button, input, select, textarea, label, [data-action], [data-page] { touch-action: manipulation; }
@media (max-width: 900px) {
  input, select, textarea { font-size: 16px !important; }
}
