@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
  --ink: #fdf4ed;
  --muted: #bd9a8f;
  --dim: #8a6a61;
  --canvas: #1c1512;
  --surface: rgba(38, 28, 25, 0.92);
  --surface-2: #2b201d;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #f4a28c;
  --gold-bright: #ffc4b8;
  --green: #78c7a1;
  --red: #eb826f;
  --blue: #8aafdd;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  font-family: 'Nunito', ui-rounded, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top right, rgba(244, 162, 140, 0.12), transparent 45rem),
    radial-gradient(circle at bottom left, rgba(168, 87, 115, 0.12), transparent 45rem),
    var(--canvas);
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}
.hidden { display: none !important; }
.ambient { position: fixed; width: 30rem; height: 30rem; border-radius: 50%; filter: blur(100px); pointer-events: none; opacity: .1; }
.ambient-a { background: var(--gold); top: -15rem; right: -10rem; }
.ambient-b { background: #b8627d; bottom: -20rem; left: -16rem; }

.app-shell { width: min(100%, 700px); min-height: 100dvh; margin: 0 auto; position: relative; }
.boot-screen { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem 1.5rem 6rem; }
.boot-card { width: 100%; max-width: 440px; padding: 3rem 2.5rem; border: 1px solid rgba(244, 162, 140, 0.15); border-radius: 40px; background: rgba(30, 24, 26, 0.5); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 60px rgba(0,0,0,0.3); text-align: center; }
.brand-mark { width: 4.5rem; height: 4.5rem; display: grid; place-items: center; border-radius: 50%; font-size: 2rem; margin: 0 auto 1.5rem; background: rgba(244, 162, 140, 0.1); box-shadow: 0 0 20px rgba(244, 162, 140, 0.15); }
.eyebrow { margin: 0 0 .8rem; color: var(--gold); font-size: .75rem; line-height: 1.3; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -.035em; }
.boot-screen h1 { margin-bottom: 1.5rem; font-family: 'Nunito', sans-serif; font-size: clamp(2rem, 8vw, 2.5rem); font-weight: 700; line-height: 1.15; color: #fff; }
.boot-screen h1 em { color: var(--gold-bright); font-style: normal; font-weight: 800; display: block; margin-top: 0.2rem; }
.muted { color: var(--muted); }
.pulse-text { animation: pulse 2s infinite ease-in-out; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.loader { width: 100%; height: 4px; margin-top: 2.5rem; overflow: hidden; background: rgba(244, 162, 140, 0.15); border-radius: 4px; }
.loader span { display: block; width: 40%; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); animation: load 1.5s infinite ease-in-out; border-radius: 4px; }
@keyframes load { 0% { transform: translateX(-110%); } 100% { transform: translateX(290%); } }

.workspace { min-height: 100dvh; padding: max(1.25rem, env(safe-area-inset-top)) 1rem calc(6.5rem + env(safe-area-inset-bottom)); }
.is-busy .workspace::before { content: "Salvando…"; position: fixed; z-index: 30; top: max(.75rem, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); padding: .45rem .8rem; border: 1px solid rgba(216,181,114,.34); border-radius: 999px; background: rgba(14,17,18,.94); color: var(--gold-bright); box-shadow: var(--shadow); font-size: .68rem; letter-spacing: .04em; }
.is-busy button { cursor: progress; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; margin: 0 .25rem 1rem; }
.topbar h1 { margin: 0; font-family: Georgia, serif; font-size: 1.85rem; font-weight: 400; }
.icon-button { width: 2.85rem; height: 2.85rem; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 1.3rem; cursor: pointer; }
.icon-button.loading { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; margin-bottom: .85rem; }
.stat { padding: .85rem .8rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.stat strong { display: block; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.stat span { color: var(--muted); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.filter-row { display: flex; gap: .5rem; margin: 0 -.15rem 1rem; padding: .15rem; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { min-height: 2.75rem; white-space: nowrap; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: .78rem; cursor: pointer; }
.filter-chip.active { border-color: rgba(216,181,114,.45); background: rgba(216,181,114,.11); color: var(--gold-bright); }
.filter-count { display: inline-grid; min-width: 1.2rem; min-height: 1.2rem; place-items: center; margin-left: .35rem; padding: 0 .28rem; border-radius: 999px; background: rgba(235,130,111,.18); color: #f4a79a; font-size: .62rem; font-weight: 750; }
.filter-count:empty { display: none; }
.street-filter-context { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin: -.15rem 0 1rem; padding: .8rem .9rem; border: 1px solid rgba(216,181,114,.25); border-radius: 16px; background: rgba(216,181,114,.055); }
.street-filter-context div { min-width: 0; }
.street-filter-context .eyebrow { margin-bottom: .2rem; font-size: .55rem; }
.street-filter-context strong, .street-filter-context small { display: block; }
.street-filter-context strong { overflow: hidden; font-family: Georgia, serif; font-size: 1rem; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.street-filter-context small { margin-top: .15rem; color: var(--muted); font-size: .63rem; }

.property-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); touch-action: pan-y; transition: transform .18s ease, opacity .18s ease; }
.listing-openable { cursor: pointer; }
.listing-openable:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.decision-conflict-card { border-color: rgba(235,130,111,.55); box-shadow: 0 0 0 1px rgba(235,130,111,.12), 0 24px 70px rgba(0,0,0,.48); }
.image-stage { position: relative; aspect-ratio: 16 / 10; background: #111; overflow: hidden; touch-action: pan-y; }
.image-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-stage.compact { aspect-ratio: 4 / 3; }
.image-stage.no-image { display: grid; place-items: center; color: var(--dim); background: linear-gradient(135deg, #171a1b, #101213); }
.image-unavailable { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: linear-gradient(135deg, #171a1b, #101213); font-size: .72rem; }
.image-unavailable.hidden { display: none; }
.image-counter, .source-pill { position: absolute; top: .75rem; padding: .38rem .62rem; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(4,6,7,.72); backdrop-filter: blur(12px); font-size: .68rem; }
.image-counter { right: .75rem; }
.source-pill { left: .75rem; text-transform: uppercase; letter-spacing: .08em; }
.carousel-arrow { position: absolute; z-index: 2; top: 50%; width: 2.75rem; height: 2.75rem; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(4,6,7,.72); color: white; box-shadow: 0 6px 18px rgba(0,0,0,.28); font-size: 1.65rem; line-height: 1; cursor: pointer; backdrop-filter: blur(10px); }
.carousel-arrow.previous { left: .55rem; }
.carousel-arrow.next { right: .55rem; }
.image-stage.compact .carousel-arrow { width: 2.75rem; height: 2.75rem; font-size: 1.3rem; }
.image-stage.compact .image-counter { top: .45rem; right: .45rem; padding: .28rem .44rem; font-size: .58rem; }
.card-body { padding: 1.1rem; }
.street-line { display: flex; gap: .45rem; align-items: center; min-width: 0; color: var(--gold); font-size: .75rem; font-weight: 650; letter-spacing: .045em; text-transform: uppercase; }
.street-line span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.confidence { color: var(--dim); font-size: .62rem; }
.listing-decision-badge { display: flex; align-items: baseline; gap: .45rem; width: fit-content; max-width: 100%; margin-top: .65rem; padding: .38rem .58rem; border: 1px solid rgba(216,181,114,.24); border-radius: 999px; background: rgba(216,181,114,.07); color: var(--gold-bright); font-size: .62rem; }
.listing-decision-badge strong { flex: 0 0 auto; font-size: .58rem; letter-spacing: .055em; }
.listing-decision-badge span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.listing-decision-badge.interest { border-color: rgba(120,199,161,.3); background: rgba(120,199,161,.08); color: var(--green); }
.listing-decision-badge.reject { border-color: rgba(235,130,111,.28); background: rgba(235,130,111,.07); color: var(--red); }
.card-title { display: -webkit-box; margin: .55rem 0 .85rem; overflow: hidden; font-family: Georgia, serif; font-size: clamp(1.08rem, 4.8vw, 1.28rem); font-weight: 400; line-height: 1.22; letter-spacing: -.012em; overflow-wrap: anywhere; text-wrap: balance; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.price-line { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.price { font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; }
.condo { color: var(--muted); font-size: 1.1rem; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--line); }
.fact { min-height: 3.8rem; padding: .65rem .45rem; display: grid; align-content: center; background: var(--surface-2); text-align: center; }
.fact strong { display: block; font-size: .9rem; }
.fact span { margin-top: .15rem; color: var(--dim); font-size: .62rem; text-transform: uppercase; }
.signal-box { margin-top: .85rem; padding: .8rem .9rem; border-left: 2px solid var(--gold); background: rgba(216,181,114,.06); color: #c8c5bd; font-size: .78rem; line-height: 1.45; }
.signal-box.danger { border-color: var(--red); background: rgba(235,130,111,.06); }
.signal-box.linked-copy-signal { border-color: var(--blue); background: rgba(138,175,221,.07); color: #c0d4ee; }
.meta-line { display: flex; justify-content: space-between; gap: 1rem; margin-top: .9rem; color: var(--dim); font-size: .67rem; }
.card-link { color: var(--blue); text-decoration: none; }
.decision-actions { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: .55rem; margin-top: 1rem; }
.action-button { min-height: 3.25rem; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); font-size: .78rem; font-weight: 700; cursor: pointer; }
.action-button.reject { color: var(--red); }
.action-button.interest { border-color: rgba(120,199,161,.34); background: rgba(120,199,161,.1); color: #a7dfc3; }
.action-button.later { color: var(--gold-bright); }
.decision-actions.decision-conflict-actions { grid-template-columns: 1fr 1fr; }
.decision-actions.interest-only-actions { grid-template-columns: 1fr; }
.action-button.property-reject { border-color: rgba(235,130,111,.42); background: rgba(235,130,111,.08); color: #f1a99c; }
.secondary-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .15rem .7rem; margin-top: .7rem; }
.text-button { min-height: 2.75rem; padding: .55rem; border: 0; background: transparent; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(255,255,255,.18); text-underline-offset: .2rem; font-size: .73rem; cursor: pointer; }
.queue-stage { display: grid; gap: 1rem; }
.continuous-card-list { display: grid; gap: 1rem; }
.continuous-card-list .property-card { content-visibility: auto; contain-intrinsic-size: auto 760px; }
.continuous-list-footer { display: flex; align-items: center; justify-content: space-between; gap: .8rem; min-height: 2.8rem; padding: .15rem .2rem; color: var(--dim); font-size: .68rem; }
.continuous-list-status { font-variant-numeric: tabular-nums; }
.continuous-list-sentinel { width: 100%; height: 1px; }
.continuous-list-load-more { flex: 0 0 auto; }
.empty-state { padding: 3rem 1.2rem; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.empty-state strong { display: block; margin-bottom: .45rem; color: var(--ink); font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }

.decision-conflict-panel { display: grid; gap: .75rem; margin: 0 0 1rem; padding: .8rem; border: 1px solid rgba(235,130,111,.36); border-left: 3px solid var(--red); border-radius: 17px; background: linear-gradient(135deg, rgba(235,130,111,.095), rgba(216,181,114,.045)); }
.decision-conflict-banner { display: grid; gap: .35rem; }
.decision-conflict-kicker { color: #f1a99c; font-size: .58rem; font-weight: 800; letter-spacing: .14em; }
.decision-conflict-intro { font-family: Georgia, serif; font-size: 1rem; font-weight: 400; line-height: 1.3; }
.decision-conflict-scope { color: var(--muted); font-size: .7rem; line-height: 1.4; }
.decision-conflict-count { width: fit-content; margin-top: .15rem; padding: .36rem .55rem; border: 1px solid rgba(235,130,111,.28); border-radius: 999px; color: #f1a99c; font-size: .64rem; font-weight: 750; }
.decision-conflict-history { display: grid; gap: .45rem; }
.decision-conflict-history-label { margin: 0; color: var(--gold); font-size: .56rem; font-weight: 750; letter-spacing: .14em; }
.decision-conflict-row { display: grid; gap: .27rem; padding: .65rem .7rem; border: 1px solid var(--line); border-radius: 13px; background: rgba(8,10,11,.38); }
.decision-conflict-row.interest { border-color: rgba(120,199,161,.27); }
.decision-conflict-row.reject { border-color: rgba(235,130,111,.27); }
.decision-conflict-row-label { color: var(--muted); font-size: .58rem; letter-spacing: .07em; }
.decision-conflict-row.interest .decision-conflict-row-label { color: var(--green); }
.decision-conflict-row.reject .decision-conflict-row-label { color: #f1a99c; }
.decision-conflict-row-summary { margin: 0; color: var(--ink); font-size: .72rem; line-height: 1.4; overflow-wrap: anywhere; }
.decision-conflict-row-meta { color: var(--dim); font-size: .59rem; line-height: 1.4; overflow-wrap: anywhere; }
.decision-conflict-link { width: fit-content; min-height: 2.75rem; display: inline-flex; align-items: center; color: var(--blue); font-size: .66rem; text-decoration: none; }

.bottom-nav { position: fixed; z-index: 10; bottom: max(.7rem, env(safe-area-inset-bottom)); left: 50%; width: min(calc(100% - 1.25rem), 670px); transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: .38rem; border: 1px solid var(--line); border-radius: 22px; background: rgba(14,17,18,.9); box-shadow: 0 12px 45px rgba(0,0,0,.48); backdrop-filter: blur(22px); }
.nav-item { min-height: 3.35rem; border: 0; border-radius: 999px; background: transparent; color: var(--dim); font-size: .68rem; cursor: pointer; transition: background 0.2s, color 0.2s; }
.nav-item span { display: block; margin-bottom: .15rem; font-size: 1.1rem; }
.nav-item b { display: inline-grid; min-width: 1.1rem; min-height: 1.1rem; place-items: center; margin-left: .2rem; border-radius: 99px; background: var(--red); color: white; font-size: .58rem; }
.nav-item b:empty { display: none; }
.nav-item.active { background: rgba(244, 162, 140, 0.15); color: var(--gold-bright); border-radius: 999px; }

.section-intro { padding: .7rem .2rem 1rem; }
.section-intro h2 { margin-bottom: .55rem; font-family: Georgia, serif; font-size: 1.7rem; font-weight: 400; }
.section-intro p:last-child { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.group-card { margin-bottom: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.group-head { display: flex; justify-content: space-between; gap: 1rem; align-items: start; margin-bottom: .85rem; }
.group-head h3 { margin: .2rem 0 0; font-family: Georgia, serif; font-size: 1.25rem; font-weight: 400; }
.status-pill { padding: .35rem .55rem; border-radius: 999px; background: rgba(216,181,114,.1); color: var(--gold); font-size: .62rem; white-space: nowrap; }
.status-pill.conflict { background: rgba(235,130,111,.1); color: var(--red); }
.common-data { margin: 0 0 .9rem; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.mini-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #131617; transition: border-color .16s ease, transform .16s ease; }
.mini-card.listing-openable:active { transform: scale(.985); }
.mini-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: grid; place-items: center; color: var(--dim); background: #0f1112; }
.mini-card-body { padding: .7rem; }
.mini-card h4 { min-height: 2.3em; margin: 0 0 .4rem; font-size: .78rem; line-height: 1.15; }
.mini-card p { margin: .2rem 0; color: var(--muted); font-size: .68rem; }
.evidence-list { display: flex; flex-wrap: wrap; gap: .35rem; margin: .75rem 0; }
.evidence-chip { padding: .3rem .45rem; border-radius: 8px; background: rgba(138,175,221,.08); color: #abc8e9; font-size: .61rem; }
.verdict-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .45rem; }
.verdict-button { min-height: 2.85rem; border: 1px solid var(--line); border-radius: 13px; background: transparent; color: var(--muted); font-size: .69rem; font-weight: 700; cursor: pointer; }
.verdict-button.same.selected, .verdict-button.same:hover { border-color: rgba(120,199,161,.45); color: var(--green); background: rgba(120,199,161,.08); }
.verdict-button.different.selected, .verdict-button.different:hover { border-color: rgba(235,130,111,.45); color: var(--red); background: rgba(235,130,111,.08); }
.verdict-button.inconclusive.selected, .verdict-button.inconclusive:hover { border-color: rgba(216,181,114,.45); color: var(--gold); background: rgba(216,181,114,.08); }
.pair-nav { display: flex; align-items: center; justify-content: space-between; margin-top: .8rem; }
.small-button { padding: .58rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--muted); font-size: .7rem; cursor: pointer; }
.finalize-button { width: 100%; margin-top: .9rem; }
.conflict-box { margin-top: .8rem; padding: .7rem; border: 1px solid rgba(235,130,111,.25); border-radius: 12px; color: #f0a99c; background: rgba(235,130,111,.06); font-size: .72rem; }

.cluster-review-card { padding: 1rem .85rem .85rem; }
.cluster-guidance { display: grid; gap: .3rem; margin-bottom: .75rem; padding: .85rem; border: 1px solid rgba(216,181,114,.2); border-radius: 15px; background: rgba(216,181,114,.055); }
.cluster-guidance strong { font-family: Georgia, serif; font-size: 1rem; font-weight: 400; }
.cluster-guidance span { color: var(--muted); font-size: .72rem; line-height: 1.45; }
.cluster-quick-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .85rem; }
.cluster-quick { min-height: 3rem; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); color: var(--muted); font-size: .68rem; font-weight: 700; cursor: pointer; }
.cluster-quick.all { border-color: rgba(120,199,161,.3); color: #a7dfc3; background: rgba(120,199,161,.07); }
.cluster-quick.none { border-color: rgba(235,130,111,.26); color: #efaa9e; background: rgba(235,130,111,.055); }
.cluster-current { display: grid; gap: .45rem; margin-bottom: .8rem; }
.cluster-label { margin: 0; color: var(--gold); font-size: .58rem; font-weight: 750; letter-spacing: .14em; }
.cluster-row { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .65rem .7rem; border: 1px solid rgba(120,199,161,.22); border-radius: 13px; background: rgba(120,199,161,.055); }
.cluster-row div { min-width: 0; }
.cluster-row strong, .cluster-row span { display: block; }
.cluster-row strong { font-size: .7rem; }
.cluster-row span { margin-top: .15rem; overflow: hidden; color: var(--muted); font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
.cluster-undo { flex: 0 0 auto; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font-size: .62rem; cursor: pointer; }
.cluster-member-list { display: grid; gap: .65rem; }
.cluster-member { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #121516; transition: border-color .17s ease, box-shadow .17s ease, transform .17s ease; }
.cluster-member.listing-openable:active { transform: scale(.99); }
.cluster-member.selected { border-color: rgba(216,181,114,.68); box-shadow: 0 0 0 2px rgba(216,181,114,.13), 0 15px 35px rgba(0,0,0,.26); }
.cluster-member.grouped { border-color: rgba(120,199,161,.36); }
.cluster-member-body { padding: .75rem; }
.cluster-member-badge { display: inline-flex; margin-bottom: .45rem; padding: .28rem .46rem; border-radius: 99px; background: rgba(255,255,255,.05); color: var(--muted); font-size: .58rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cluster-member-badge.locked { background: rgba(120,199,161,.09); color: var(--green); }
.cluster-member h4 { margin: 0 0 .4rem; font-family: Georgia, serif; font-size: 1rem; font-weight: 400; line-height: 1.2; }
.cluster-member p { margin: .18rem 0; }
.cluster-member-price { color: var(--ink); font-size: .88rem; font-weight: 750; }
.cluster-member-meta { color: var(--muted); font-size: .68rem; }
.cluster-member-id { color: var(--dim); font-size: .6rem; }
.cluster-select { width: 100%; min-height: 2.75rem; margin-top: .65rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); color: var(--muted); font-size: .7rem; font-weight: 750; cursor: pointer; }
.cluster-select.selected { border-color: rgba(216,181,114,.44); background: rgba(216,181,114,.12); color: var(--gold-bright); }
.cluster-group-button { width: 100%; margin-top: .75rem; border-color: rgba(216,181,114,.32); color: var(--gold-bright); background: rgba(216,181,114,.075); }
.cluster-footer { position: sticky; z-index: 5; bottom: calc(4.8rem + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto; gap: .75rem; align-items: center; margin: 1rem -.25rem 0; padding: .75rem; border: 1px solid rgba(216,181,114,.25); border-radius: 17px; background: rgba(17,20,20,.94); box-shadow: 0 15px 38px rgba(0,0,0,.44); backdrop-filter: blur(20px); }
.cluster-footer-copy strong, .cluster-footer-copy span { display: block; }
.cluster-footer-copy strong { font-size: .72rem; }
.cluster-footer-copy span { margin-top: .18rem; color: var(--muted); font-size: .62rem; }
.cluster-conclude { min-height: 2.8rem; padding-inline: .85rem; }
.group-navigation { margin: .9rem .15rem 1.5rem; }

.streets-list { display: grid; gap: .7rem; }
.street-card { padding: 1rem; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); }
.street-openable { cursor: pointer; transition: border-color .16s ease, transform .16s ease; }
.street-openable:hover { border-color: rgba(216,181,114,.28); }
.street-openable:active { transform: scale(.992); }
.street-openable:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.street-card-head { display: flex; align-items: start; justify-content: space-between; gap: .8rem; }
.street-card h3 { margin: 0 0 .3rem; font-family: Georgia, serif; font-size: 1.15rem; font-weight: 400; }
.street-neighborhood { display: block; margin: 0 0 .15rem; color: var(--gold-bright); font-size: .75rem; text-transform: uppercase; letter-spacing: .02em; }
.street-card-meta { color: var(--muted); font-size: .7rem; }
.confidence-badge { padding: .3rem .45rem; border-radius: 8px; color: var(--green); background: rgba(120,199,161,.08); font-size: .58rem; text-transform: uppercase; }
.confidence-badge.inferred { color: var(--gold); background: rgba(216,181,114,.08); }
.confidence-badge.unknown { color: var(--muted); background: rgba(255,255,255,.04); }
.street-actions { display: flex; gap: .4rem; margin-top: .85rem; overflow-x: auto; }
.street-pref { padding: .52rem .65rem; border: 1px solid var(--line); border-radius: 11px; background: transparent; color: var(--dim); font-size: .65rem; cursor: pointer; white-space: nowrap; }
.street-pref.selected { border-color: rgba(216,181,114,.38); color: var(--gold); background: rgba(216,181,114,.08); }
.street-pref.exclusion { margin-left: auto; color: var(--red); }
.street-pref.restore { color: var(--gold-bright); border-color: rgba(216,181,114,.34); background: rgba(216,181,114,.07); }
.excluded-streets { margin-top: .35rem; border: 1px solid var(--line); border-radius: 19px; background: rgba(255,255,255,.018); overflow: hidden; }
.excluded-streets-summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; padding: .9rem 1rem; color: var(--ink); cursor: pointer; list-style: none; }
.excluded-streets-summary::-webkit-details-marker { display: none; }
.excluded-streets-summary::after { content: "+"; order: 3; color: var(--gold); font-size: 1.2rem; font-weight: 300; transition: transform .18s ease; }
.excluded-streets[open] > .excluded-streets-summary::after { transform: rotate(45deg); }
.excluded-streets-summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; border-radius: 19px; }
.excluded-streets-label { display: grid; gap: .18rem; }
.excluded-streets-label strong { font-family: Georgia, serif; font-size: 1rem; font-weight: 400; }
.excluded-streets-label small { color: var(--muted); font-size: .64rem; }
.excluded-streets-count { order: 2; min-width: 1.65rem; padding: .27rem .42rem; border: 1px solid rgba(216,181,114,.24); border-radius: 999px; color: var(--gold); font-size: .65rem; text-align: center; }
.excluded-streets-notice { margin: 0; padding: 0 1rem .9rem; color: var(--muted); font-size: .68rem; line-height: 1.45; }
.excluded-streets-list { display: grid; gap: .55rem; padding: 0 .65rem .65rem; }
.street-card.archived { border-color: rgba(255,255,255,.055); background: rgba(10,12,12,.5); }
.street-card.archived h3 { color: var(--muted); }

.sheet-dialog { width: 100%; max-width: 700px; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0; border-radius: 28px 28px 0 0; background: transparent; color: var(--ink); }
.sheet-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.sheet-panel { max-height: 92dvh; overflow-y: auto; margin: 0; padding: .7rem 1.15rem calc(1.1rem + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-bottom: 0; border-radius: 28px 28px 0 0; background: #151819; box-shadow: var(--shadow); }
.sheet-handle { width: 2.8rem; height: .25rem; margin: .15rem auto 1.2rem; border-radius: 99px; background: rgba(255,255,255,.18); }
.dialog-heading h2 { margin-bottom: .4rem; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 400; }
.dialog-heading p:last-child { margin-bottom: 1rem; color: var(--muted); font-size: .8rem; }
.reason-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .48rem; margin-bottom: 1rem; }
.reason-option { min-height: 2.75rem; padding: .6rem; border: 1px solid var(--line); border-radius: 12px; background: transparent; color: var(--muted); font-size: .7rem; cursor: pointer; text-align: left; }
.reason-option.recommended { border-color: rgba(222,183,103,.42); color: var(--ink); }
.reason-history { display: block; margin-top: .22rem; color: var(--gold); font-size: .58rem; letter-spacing: .02em; }
.reason-option.selected { border-color: rgba(235,130,111,.42); background: rgba(235,130,111,.08); color: #f1a99c; }
.field-label { display: block; margin-bottom: .4rem; color: var(--muted); font-size: .72rem; }
input, textarea { width: 100%; padding: .8rem; border: 1px solid var(--line); border-radius: 13px; background: #0f1213; color: var(--ink); }
input { margin-bottom: 1rem; }
textarea { resize: vertical; }
.form-error { min-height: 1.1rem; margin: .45rem 0; color: var(--red); font-size: .7rem; }
.dialog-actions { display: grid; grid-template-columns: 1fr 1.45fr; gap: .6rem; }
.button { min-height: 3rem; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: transparent; font-weight: 700; font-size: .78rem; cursor: pointer; }
.button:disabled { opacity: .45; cursor: wait; }
.button-primary { border-color: rgba(216,181,114,.45); background: var(--gold); color: #17120a; }
.button-danger { border-color: rgba(235,130,111,.45); background: var(--red); color: #210d09; }
.button-ghost { color: var(--muted); }
.button-full { width: 100%; }
.candidate-reference { margin-bottom: .8rem; }
.candidate-section-label { margin: 0 0 .45rem; color: var(--gold); font-size: .56rem; font-weight: 750; letter-spacing: .14em; }
.candidate-results-label { margin: .9rem 0 .55rem; }
.candidate-reference-card { display: grid; grid-template-columns: minmax(7.5rem, 38%) minmax(0, 1fr); overflow: hidden; border: 1px solid rgba(216,181,114,.28); border-radius: 18px; background: rgba(216,181,114,.055); }
.candidate-reference-card .image-stage.compact { aspect-ratio: auto; min-height: 7.4rem; }
.candidate-reference-card .carousel-arrow { width: 2.1rem; height: 2.1rem; font-size: 1.15rem; }
.candidate-reference-body { display: grid; align-content: center; padding: .75rem; }
.candidate-reference-body h3 { margin: 0 0 .4rem; font-family: Georgia, serif; font-size: .9rem; font-weight: 400; line-height: 1.2; }
.candidate-reference-body p { margin: 0; color: var(--muted); font-size: .64rem; line-height: 1.4; }
.candidate-section { margin: .8rem 0 1.15rem; }
.candidate-section-title { margin: 0 0 .25rem; font-family: Georgia, serif; font-size: 1.08rem; font-weight: 400; }
.candidate-section-copy { margin: 0 0 .65rem; color: var(--muted); font-size: .66rem; line-height: 1.4; }
.known-copy-notice { margin: 0 0 .65rem; padding: .65rem .7rem; border: 1px solid rgba(216,181,114,.3); border-radius: 12px; background: rgba(216,181,114,.07); color: var(--gold-bright); font-size: .68rem; line-height: 1.4; }
.candidate-list { display: grid; gap: 1rem; margin-bottom: 1rem; }
.candidate-card { overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: #101314; box-shadow: 0 14px 34px rgba(0,0,0,.24); transition: border-color .16s ease, transform .16s ease; }
.candidate-card:hover { border-color: rgba(216,181,114,.28); }
.candidate-card:active { transform: scale(.994); }
.candidate-card-body { padding: .85rem; }
.candidate-card-heading { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .7rem; align-items: start; }
.candidate-card-heading h3 { margin: 0; font-family: Georgia, serif; font-size: 1rem; font-weight: 400; line-height: 1.22; }
.candidate-match { max-width: 8.2rem; padding: .32rem .48rem; border-radius: 9px; background: rgba(138,175,221,.08); color: #abc8e9; font-size: .57rem; font-weight: 750; line-height: 1.2; text-align: center; }
.candidate-match.high { background: rgba(120,199,161,.1); color: var(--green); }
.candidate-match.medium { background: rgba(216,181,114,.1); color: var(--gold); }
.candidate-summary { margin: .5rem 0 0; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.candidate-evidence { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .65rem; }
.candidate-card-footer { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .65rem; align-items: center; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
.candidate-identity { overflow: hidden; color: var(--dim); font-size: .6rem; line-height: 1.35; text-overflow: ellipsis; }
.candidate-confirm { min-height: 2.85rem; padding: .55rem .78rem; border: 1px solid rgba(120,199,161,.36); border-radius: 12px; background: rgba(120,199,161,.1); color: #a7dfc3; font-size: .68rem; font-weight: 750; cursor: pointer; }
.candidate-confirm:hover { background: rgba(120,199,161,.16); }
.known-copy-linked { max-width: 7.5rem; padding: .32rem .48rem; border-radius: 9px; background: rgba(120,199,161,.09); color: var(--green); font-size: .55rem; font-weight: 800; line-height: 1.2; text-align: center; }
.known-copy-status, .known-copy-decision { margin: .45rem 0 0; color: var(--muted); font-size: .66rem; line-height: 1.45; overflow-wrap: anywhere; }
.known-copy-decision { color: #d4d0c6; }
.known-copy-open { min-height: 2.85rem; display: inline-flex; align-items: center; justify-content: center; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 11px; color: var(--blue); font-size: .63rem; text-decoration: none; white-space: nowrap; }
@keyframes toastBounce {
  0% { opacity: 0; transform: translate(-50%, 2rem) scale(0.9); }
  50% { opacity: 1; transform: translate(-50%, -0.3rem) scale(1.02); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.view:not(.hidden) { animation: fadeIn 0.4s ease-out; }
.property-card { animation: fadeIn 0.4s ease-out; }

.toast { position: fixed; z-index: 40; left: 50%; bottom: calc(6rem + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 2rem); transform: translate(-50%, 2rem); padding: .72rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fdf4ed; color: #1c1512; font-weight: 700; font-size: .75rem; opacity: 0; pointer-events: none; transition: opacity .22s ease; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); animation: toastBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

@media (min-width: 600px) {
  .workspace { padding-left: 1.5rem; padding-right: 1.5rem; }
  .property-card { max-width: 560px; margin: 0 auto; }
  .continuous-card-list, .continuous-list-footer { max-width: 560px; width: 100%; margin-left: auto; margin-right: auto; }
  .sheet-dialog { margin-bottom: 1.2rem; border-radius: 28px; }
  .sheet-panel { border-radius: 28px; border-bottom: 1px solid var(--line); }
  .cluster-member-list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .cluster-quick-actions { grid-template-columns: 1fr; }
  .cluster-footer { grid-template-columns: 1fr; }
  .cluster-conclude { width: 100%; }
}

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