:root {
  --ink: #10201c;
  --ink-2: #19302a;
  --cream: #f7f3ea;
  --paper: #fffdf8;
  --mint: #b8e3cd;
  --mint-2: #dff3e8;
  --line: rgba(16, 32, 28, .13);
  --muted: #6b7873;
  --danger: #a23b32;
  --warning: #8a6518;
  --shadow: 0 24px 70px rgba(9, 26, 21, .11);
}
* { box-sizing: border-box; }
html { background: var(--cream); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-height: 100vh; background:
  radial-gradient(circle at 10% 0%, rgba(184,227,205,.32), transparent 28rem),
  linear-gradient(180deg, #fbf8f1 0%, #f4efe5 100%); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell, .preview-shell { max-width: 1440px; margin: 0 auto; padding: 0 42px 70px; }
.topbar, .preview-topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: var(--cream); background: var(--ink); font-size: 13px; letter-spacing: .04em; }
.topbar-actions { display: flex; gap: 18px; align-items: center; }
.status-dot, .private-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.55); }
.status-dot i { width: 8px; height: 8px; border-radius: 50%; background: #31a06d; box-shadow: 0 0 0 4px rgba(49,160,109,.12); }
.quiet-link { font-size: 14px; color: var(--muted); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 68px; padding: 82px 0 68px; align-items: center; }
.hero-copy h1 { font-size: clamp(48px, 5.4vw, 82px); line-height: .98; letter-spacing: -.062em; max-width: 900px; margin: 15px 0 24px; }
.hero-copy p { max-width: 760px; font-size: 19px; line-height: 1.65; color: var(--muted); }
.eyebrow, .mini-label { text-transform: uppercase; letter-spacing: .13em; font-size: 11px; font-weight: 800; color: #527366; }
.workflow-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 34px; font-size: 13px; font-weight: 700; }
.workflow-line span { padding: 10px 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.62); }
.workflow-line b { color: #7f918a; }
.control-card, .analysis-panel, .purchase-card, .video-card, .evidence-grid article { background: rgba(255,253,248,.86); border: 1px solid rgba(16,32,28,.1); box-shadow: var(--shadow); border-radius: 26px; }
.control-card { padding: 30px; }
.control-card-head, .section-head, .video-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.control-card h2, .section-head h2, .purchase-card h2 { margin: 6px 0 0; font-size: 27px; letter-spacing: -.035em; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 7px 11px; background: var(--mint-2); color: #325d4c; font-weight: 750; font-size: 11px; white-space: nowrap; }
.badge.muted { background: #eef0ed; color: #67726d; }
.control-card label { display: block; margin: 26px 0 9px; font-size: 13px; font-weight: 750; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
input, select { min-width: 0; width: 100%; height: 50px; border: 1px solid var(--line); background: #fff; border-radius: 13px; padding: 0 15px; outline: none; color: var(--ink); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 42px; }
input:focus, select:focus { border-color: #6a9d88; box-shadow: 0 0 0 4px rgba(106,157,136,.12); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 13px; padding: 0 18px; border: 1px solid transparent; font-weight: 760; font-size: 14px; transition: transform .14s ease, opacity .14s ease, box-shadow .14s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .5; cursor: progress; transform: none; }
.button.primary { color: #fff; background: var(--ink); box-shadow: 0 8px 24px rgba(16,32,28,.18); }
.button.secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button.full { width: 100%; }
.helper, .fine-print { color: var(--muted); font-size: 12px; line-height: 1.55; }
.divider { display: flex; align-items: center; gap: 12px; color: #93a09a; font-size: 11px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.action-status { margin-top: 14px; min-height: 22px; font-size: 13px; color: var(--muted); }
.action-status.error { color: var(--danger); }
.analysis-panel { padding: 32px; margin-bottom: 52px; }
.hidden { display: none !important; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 25px; }
.summary-item { min-height: 112px; padding: 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.68); }
.summary-item span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; margin-bottom: 9px; }
.summary-item strong { font-size: 15px; line-height: 1.35; }
.review-control { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px; border: 1px solid #e3c778; border-radius: 15px; background: #fff8df; }
.review-control input { width: 18px; height: 18px; min-height: 0; margin-top: 2px; }
.review-control strong, .review-control small { display: block; }
.review-control small { color: var(--muted); margin-top: 4px; line-height: 1.45; }
.raw-details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.raw-details summary, details summary { cursor: pointer; font-weight: 700; font-size: 13px; }
pre { max-height: 420px; overflow: auto; background: var(--ink); color: #dff3e8; border-radius: 16px; padding: 18px; font-size: 12px; line-height: 1.55; }
.principles-grid, .evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 46px 0 80px; }
.principles-grid article { border-top: 1px solid var(--line); padding-top: 22px; }
.principles-grid .number { color: #729486; font-size: 12px; font-weight: 800; }
.principles-grid h3 { margin: 13px 0 9px; font-size: 21px; letter-spacing: -.025em; }
.principles-grid p, .evidence-grid p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }
.leads-section { margin-top: 30px; }
.table-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.62); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 17px 18px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td small { margin-top: 4px; color: var(--muted); }
.table-link { font-weight: 760; }
.decision { display: inline-flex; padding: 6px 9px; border-radius: 9px; font-weight: 800; font-size: 10px; text-transform: uppercase; }
.decision.build, .decision.build_with_note { background: #ddf3e6; color: #2e6d50; }
.decision.review { background: #f7ebc9; color: var(--warning); }
.decision.skip { background: #f5dcd8; color: var(--danger); }
.empty-state { border: 1px dashed #a6b1ac; border-radius: 20px; padding: 42px; text-align: center; color: var(--muted); }

.preview-main { padding: 58px 0 80px; }
.preview-statuses { display: flex; align-items: center; gap: 9px; }
.style-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: 8px 12px; color: #fff; background: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.preview-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 38px; }
.preview-intro h1 { margin: 15px 0 16px; font-size: clamp(40px, 5vw, 68px); line-height: 1; letter-spacing: -.055em; max-width: 900px; }
.event-chip { display: inline-flex; border-radius: 999px; background: var(--mint); padding: 8px 12px; font-size: 11px; font-weight: 850; letter-spacing: .11em; }
.property-meta { display: flex; gap: 15px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.property-meta strong { color: var(--ink); font-size: 22px; }
.property-meta span:not(:first-child)::before { content: "·"; margin-right: 15px; color: #a4aea9; }
.event-text { color: var(--muted); margin: 14px 0 0; }
.preview-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.campaign-overview { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); gap: 0; overflow: hidden; margin-bottom: 26px; border: 1px solid rgba(16,32,28,.12); border-radius: 28px; background: #0e1714; box-shadow: var(--shadow); }
.overview-image { display: block; min-width: 0; background: #0e1714; }
.overview-image img { display: block; width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.overview-copy { display: flex; flex-direction: column; justify-content: center; padding: 46px 40px; color: #fffdf8; }
.overview-copy .eyebrow { color: #9fc9d7; }
.overview-copy h2 { margin: 12px 0 16px; font-size: 40px; line-height: 1.02; letter-spacing: -.045em; }
.overview-copy p { margin: 0; color: #b9c6c1; font-size: 14px; line-height: 1.7; }
.format-strip { display: grid; gap: 9px; margin-top: 28px; }
.format-strip span { display: flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 750; }
.format-strip span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #9fc9d7; }
.preview-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); gap: 24px; align-items: start; }
.video-card { overflow: hidden; background: #0c1613; }
.video-card video { display: block; width: 100%; height: min(76vh, 780px); object-fit: contain; background: #0c1613; }
.video-caption { padding: 16px 18px; background: #fffdf8; }
.video-caption strong, .video-caption span { display: block; }
.video-caption span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.purchase-card { padding: 30px; position: sticky; top: 24px; }
.purchase-card h2 { font-size: 34px; line-height: 1.08; margin: 10px 0 24px; }
.check-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 13px; }
.check-list li { position: relative; padding-left: 27px; font-size: 14px; line-height: 1.4; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: -2px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); font-weight: 900; font-size: 11px; }
.asset-section { margin-top: 72px; }
.asset-grid { display: grid; gap: 16px; margin-top: 22px; align-items: start; }
.asset-grid-primary { grid-template-columns: 1fr .8fr 1fr; }
.asset-grid-secondary { grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr); }
.asset-card { display: block; margin: 0; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 13px 34px rgba(9,26,21,.07); transition: transform .16s ease, box-shadow .16s ease; }
.asset-card:hover { transform: translateY(-3px); box-shadow: 0 19px 42px rgba(9,26,21,.12); }
.asset-card img { display: block; width: 100%; height: auto; background: #eef1ed; }
.asset-card.portrait img, .asset-card.carousel img, .asset-card.carousel-slide img { aspect-ratio: 4 / 5; object-fit: cover; }
.asset-card.story img { aspect-ratio: 9 / 16; object-fit: cover; }
.asset-card.square img { aspect-ratio: 1 / 1; object-fit: cover; }
.asset-card.wide img { aspect-ratio: 1200 / 628; object-fit: cover; }
.asset-caption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 15px; }
.asset-caption strong, .asset-caption small { display: block; }
.asset-caption strong { font-size: 13px; }
.asset-caption small { color: var(--muted); font-size: 10px; text-align: right; }
.pdf-placeholder { min-height: 310px; display: grid; align-content: center; justify-items: center; padding: 20px; background: var(--ink); color: #fff; text-align: center; }
.pdf-placeholder span { display: grid; place-items: center; width: 56px; height: 68px; border-radius: 8px; background: var(--mint); color: var(--ink); font-weight: 900; margin-bottom: 16px; }
.pdf-placeholder small { color: #b7c8c1; margin-top: 6px; }

.asset-section-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.keyboard-hint { color: var(--muted); font-size: 12px; }
.viewer-link { appearance: none; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); padding: 8px 12px; font-size: 12px; font-weight: 780; cursor: pointer; }
.viewer-link:hover { border-color: rgba(16,32,28,.28); box-shadow: 0 8px 22px rgba(9,26,21,.08); }
.viewer-link:focus-visible, .asset-viewer button:focus-visible { outline: 3px solid rgba(106,157,136,.35); outline-offset: 2px; }
.carousel-showcase { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.carousel-showcase-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 18px; }
.carousel-showcase h3 { margin: 7px 0 0; font-size: 24px; letter-spacing: -.03em; }
.carousel-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.carousel-slide .asset-caption { padding: 12px 13px; }
.carousel-slide .asset-caption small { text-transform: uppercase; letter-spacing: .08em; }
body.asset-viewer-open { overflow: hidden; }
.asset-viewer { width: min(94vw, 1320px); max-width: none; height: min(94vh, 980px); max-height: none; padding: 0; border: 0; border-radius: 24px; overflow: hidden; background: #0b1411; color: #fff; box-shadow: 0 40px 120px rgba(0,0,0,.48); }
.asset-viewer::backdrop { background: rgba(5,12,10,.78); backdrop-filter: blur(12px); }
.asset-viewer-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.asset-viewer-header, .asset-viewer-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; background: rgba(11,20,17,.96); }
.asset-viewer-header { border-bottom: 1px solid rgba(255,255,255,.12); }
.asset-viewer-header strong, .asset-viewer-header span { display: block; }
.asset-viewer-header strong { font-size: 15px; }
.asset-viewer-header span { margin-top: 4px; color: #aebdb7; font-size: 12px; }
.asset-viewer-close { width: 40px; height: 40px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 25px; line-height: 1; }
.asset-viewer-stage { min-height: 0; display: grid; place-items: center; overflow: hidden; padding: 18px; background: #08100d; }
.asset-viewer-stage img, .asset-viewer-stage video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 18px 54px rgba(0,0,0,.28); }
.asset-viewer-stage video { width: min(100%, 520px); height: 100%; }
.asset-viewer-stage iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 12px; background: #fff; }
.asset-viewer-footer { border-top: 1px solid rgba(255,255,255,.12); }
.asset-viewer-footer button { min-width: 108px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; padding: 10px 14px; font-weight: 750; }
.asset-viewer-footer span { color: #b8c6c1; font-size: 12px; font-variant-numeric: tabular-nums; }
.evidence-grid article { padding: 25px; box-shadow: none; }
.evidence-grid h3 { font-size: 22px; margin: 10px 0 11px; }
.signal-list { padding-left: 18px; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .hero-grid, .preview-grid, .campaign-overview { grid-template-columns: 1fr; }
  .hero-grid { gap: 32px; padding-top: 52px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .asset-grid-primary, .asset-grid-secondary { grid-template-columns: repeat(2, 1fr); }
  .carousel-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .purchase-card { position: static; }
}
@media (max-width: 720px) {
  .shell, .preview-shell { padding: 0 18px 45px; }
  .topbar, .preview-topbar { height: 72px; }
  .topbar-actions .quiet-link { display: none; }
  .hero-copy h1 { font-size: 45px; }
  .input-row { grid-template-columns: 1fr; }
  .principles-grid, .evidence-grid, .summary-grid, .asset-grid-primary, .asset-grid-secondary { grid-template-columns: 1fr; }
  .section-head, .carousel-showcase-head { align-items: flex-start; flex-direction: column; }
  .asset-section-actions { justify-content: flex-start; }
  .carousel-strip { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(220px, 74vw); overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline mandatory; padding-bottom: 8px; }
  .carousel-slide { scroll-snap-align: start; }
  .asset-viewer { width: 100vw; height: 100dvh; border-radius: 0; }
  .asset-viewer-stage { padding: 10px; }
  .asset-viewer-footer button { min-width: 88px; padding-inline: 10px; }
  .preview-intro { align-items: flex-start; flex-direction: column; }
  .preview-actions { justify-content: flex-start; }
  .preview-statuses { gap: 5px; }
  .style-pill { display: none; }
  .overview-copy { padding: 32px 24px; }
  .overview-copy h2 { font-size: 32px; }
  .overview-image img { min-height: 260px; }
  .table-wrap { overflow-x: auto; }
  table { min-width: 780px; }
}
/* Address search progressively enhances ordinary inputs; manual entry always remains available. */
.address-search {
  position: relative;
  width: 100%;
}

.address-search > input {
  width: 100%;
}

.address-search-results {
  position: absolute;
  z-index: 50;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid rgba(15, 35, 31, 0.16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(9, 25, 22, 0.16);
}

.address-search-option {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid rgba(15, 35, 31, 0.08);
  background: #fff;
  color: #10201c;
  text-align: left;
  cursor: pointer;
}

.address-search-option strong {
  font: inherit;
  font-weight: 700;
}

.address-search-option span {
  overflow: hidden;
  color: #5f6f69;
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-search-option:hover,
.address-search-option[aria-selected="true"] {
  background: #eef8f3;
}

.address-search-option:focus-visible {
  outline: 3px solid #4f7dff;
  outline-offset: -3px;
}

.address-search-attribution {
  display: block;
  padding: 7px 12px;
  color: #71807b;
  font-size: 0.68rem;
  text-align: right;
}
