/* Vitrine editor: the client's area. Calm, neutral, so the client's site is the star. */
:root {
    --ink: #17171A; --ink-2: #55555C; --ink-3: #8C8C93; --line: #E6E4DF; --paper: #FAF9F6; --white: #FFFFFF;
    --brand: #17171A; --brand-on: #FFFFFF; --ok: #2E7D4F; --err: #B3261E; --r: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; color: var(--ink); background: var(--paper); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 420; letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.4rem; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.hint { color: var(--ink-3); font-size: .82rem; margin: 6px 0 0; display: block; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; color: var(--ink-3); margin: 0 0 10px; }
.error { color: var(--err); font-size: .9rem; }
.notice { background: #E7F3EC; color: var(--ok); padding: 12px 16px; border-radius: 10px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: .92rem; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-on); border-color: var(--brand); }
.btn-small { padding: 7px 14px; font-size: .84rem; }
.btn-block { width: 100%; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-2); cursor: pointer; text-decoration: none; font-weight: 500; }
.link:hover { color: var(--ink); }

.topbar { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 10; gap: 16px; }
.logo { font-family: 'Fraunces', serif; font-size: 1.35rem; text-decoration: none; font-style: italic; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.save-state { font-size: .82rem; color: var(--ink-3); }
.save-state.ok { color: var(--ok); }
.save-state.err { color: var(--err); }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(400px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 36px; }
.login-card .logo { margin: 0 0 22px; }

/* Fields */
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field > span { font-weight: 600; font-size: .88rem; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=date], select, textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,23,26,.08); }
textarea { resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.switch { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; margin: 6px 0 12px; }
.switch input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--ink); }

/* Panel */
.panel { padding: 36px 0 60px; display: grid; gap: 24px; }
.shell-main .panel-hero { margin-top: 4px; }
.panel-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 36px; align-items: center; }
.panel-hero h1 { font-size: 2.6rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.panel-thumb { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--white); position: relative; }
.panel-thumb iframe { position: absolute; top: 0; left: 0; width: 250%; height: 250%; transform: scale(.4); transform-origin: 0 0; border: 0; pointer-events: none; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; }
.progress-head { display: grid; gap: 12px; margin-bottom: 14px; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.checklist li a { margin-left: auto; text-decoration: none; font-weight: 700; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: .75rem; flex: none; }
.checklist li.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.checklist li.done span:last-of-type { color: var(--ink-2); }
.checklist.compact { grid-template-columns: 1fr 1fr; margin: 18px 0; }

/* Wizard */
.wizard { display: grid; grid-template-columns: minmax(380px, 470px) 1fr; height: calc(100vh - 60px); }
.wizard-panel { padding: 28px 32px 32px; overflow-y: auto; border-right: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; }
.steps-bar { display: flex; gap: 5px; margin-bottom: 22px; }
.steps-bar a { flex: 1; height: 5px; border-radius: 9px; background: var(--line); }
.steps-bar a.done { background: var(--ink-2); }
.steps-bar a.current { background: var(--ink); }
.step-form { margin-top: 18px; flex: 1; }
.wizard-nav { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; margin-top: 18px; border-top: 1px solid var(--line); position: sticky; bottom: -32px; background: var(--white); padding-bottom: 6px; }
.nav-right { display: flex; align-items: center; gap: 18px; }

.wizard-preview { display: flex; flex-direction: column; background: #EFEDE8; min-width: 0; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; }
.seg { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button, .seg label span { font: inherit; font-size: .82rem; font-weight: 600; border: 0; background: none; padding: 6px 14px; border-radius: 999px; cursor: pointer; color: var(--ink-2); display: block; }
.seg button.on, .seg input:checked + span { background: var(--ink); color: #fff; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { position: relative; }
.seg-wide { display: flex; width: 100%; }
.seg-wide label { flex: 1; text-align: center; }
.device { margin: 0 20px 20px; flex: 1; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 40px rgba(0,0,0,.06); transition: width .35s, max-width .35s; align-self: center; width: calc(100% - 40px); }
.device { position: relative; }
.device iframe { width: 100%; height: 100%; border: 0; display: block; }
.device[data-device-frame].desktop iframe { position: absolute; top: 0; left: 0; }
.device.phone { max-width: 390px; border-radius: 34px; border: 10px solid #17171A; }

/* Choices (radio cards) */
.choices { display: grid; gap: 12px; }
.lang-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.choices-2 { grid-template-columns: 1fr 1fr; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice-body { display: grid; gap: 6px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--white); transition: border-color .15s, box-shadow .15s; height: 100%; }
.choice:hover .choice-body { border-color: var(--ink-3); }
.choice input:checked + .choice-body { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,23,26,.08); }
.choice input:focus-visible + .choice-body { outline: 2px solid var(--ink); }
.swatches { display: flex; align-items: center; gap: 6px; height: 64px; border-radius: 10px; padding: 0 12px; border: 1px solid rgba(0,0,0,.06); }
.swatches i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(0,0,0,.08); }
.swatches b { margin-left: auto; padding: 6px 12px; border-radius: 99px; font-size: .8rem; }
.fp-head { font-size: 1.6rem; line-height: 1.1; }
.fp-body { font-size: .88rem; color: var(--ink-2); }

/* Styles (gallery inside step 3) */
.styles { display: grid; gap: 16px; }
.style-card { display: grid; gap: 8px; }
.style-pick { position: relative; cursor: pointer; display: grid; gap: 10px; }
.style-pick input { position: absolute; opacity: 0; }
.mini { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; border: 1.5px solid var(--line); position: relative; background: var(--paper); }
.mini iframe { position: absolute; top: 0; left: 0; width: 400%; height: 400%; transform: scale(.25); transform-origin: 0 0; border: 0; pointer-events: none; }
.style-pick input:checked ~ .mini { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,23,26,.1); }
.style-meta { display: grid; gap: 2px; }
.style-card > .link { justify-self: start; font-size: .88rem; }

/* Photos */
.photo-field { display: grid; gap: 10px; justify-items: start; }
.photo-box { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: repeating-linear-gradient(45deg, #F2F1ED, #F2F1ED 10px, #ECEAE4 10px, #ECEAE4 20px); position: relative; overflow: hidden; display: none; }
.photo-box.has { display: block; }
.photo-box img { width: 100%; height: 100%; object-fit: contain; background: #111; }
.photo-box.focal { cursor: crosshair; }
/* Logo shown on a checkerboard, so a transparent background is visible as such */
.logo-box { aspect-ratio: 3 / 1; }
.logo-box img { background: repeating-conic-gradient(#ECEAE4 0% 25%, #fff 0% 50%) 50% / 16px 16px; padding: 10px; }
.logo-note { margin: 0; font-size: .85rem; color: var(--ink-2); display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.try-thumb.logo img { background: repeating-conic-gradient(#ECEAE4 0% 25%, #fff 0% 50%) 50% / 12px 12px; }
.dot { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.4), 0 4px 12px rgba(0,0,0,.3); pointer-events: none; }
.upload { cursor: pointer; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.thumb { margin: 0; position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:first-child::after { content: "Capa"; position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.thumb.add::after { content: none; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 1; }
.thumb.add { display: grid; place-items: center; cursor: pointer; font-size: 1.8rem; color: var(--ink-3); border-style: dashed; }
.thumb.loading { opacity: .5; }

/* Review */
.review-frames { display: grid; grid-template-columns: 1fr 180px; gap: 14px; align-items: start; }
.review-frames .device { margin: 0; width: 100%; height: 300px; flex: none; }
.review-frames .device.desktop { position: relative; }
.review-frames .device.desktop iframe { position: absolute; width: 333%; height: 333%; transform: scale(.3); transform-origin: 0 0; }
.review-frames .device.phone { height: 360px; border-width: 6px; border-radius: 24px; position: relative; }
.review-frames .device.phone iframe { position: absolute; width: 375px; height: 780px; transform: scale(.45); transform-origin: 0 0; }
.is-wizard:has(.review) .wizard { grid-template-columns: minmax(380px, 760px); justify-content: center; }

/* Gallery page */
.is-gallery .topbar { position: sticky; }
.gallery-title { display: grid; text-align: center; }
.gallery-stage { height: calc(100vh - 60px); display: flex; justify-content: center; padding-top: 20px; background: #EFEDE8; }
/* The frame fills the height (its iframe is positioned and scaled by editor.js, so it has no height of its own). */
.gallery-stage .device { align-self: stretch; }

@media (max-width: 900px) {
    .wizard { grid-template-columns: 1fr; height: auto; }
    .wizard-panel { border-right: 0; padding: 22px 18px; }
    .wizard-preview { height: 80vh; }
    .wizard-nav { bottom: 0; }
    .panel-hero { grid-template-columns: 1fr; }
    .checklist, .checklist.compact { grid-template-columns: 1fr; }
    .choices-2, .row-2, .lang-row { grid-template-columns: 1fr; }
    .gallery-title { display: none; }
}

/* ---- Panel shell: side menu + content */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 60px); }
.side { border-right: 1px solid var(--line); background: var(--white); padding: 20px 12px; display: flex; flex-direction: column; gap: 2px; }
.side a { text-decoration: none; padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 500; }
.side a:hover { background: var(--paper); color: var(--ink); }
.side a.on { background: var(--ink); color: #fff; }
.side-out { margin-top: auto; }
.shell-main { padding: 32px clamp(18px, 3vw, 40px) 60px; min-width: 0; display: grid; gap: 22px; align-content: start; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.empty-card { background: var(--white); border: 1.5px dashed var(--line); border-radius: var(--r); padding: 48px 28px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.back { justify-self: start; }
.btn-danger { color: var(--err); }
.link.danger { color: var(--err); }
.notice { margin: 0; }

/* ---- Items list */
.list-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.list-tools input[type=search] { flex: 1; min-width: 220px; width: auto; font: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--white); }
.bulk-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 12px; }
.bulk-bar[hidden] { display: none; }
.bulk-bar span { margin-right: auto; font-weight: 600; }
.item-rows { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.item-row { display: grid; grid-template-columns: 18px 20px 72px minmax(0, 1fr) 130px 100px auto auto; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--white); }
.item-row:last-child { border-bottom: 0; }
.item-row.dragging { opacity: .4; }
.item-row[hidden] { display: none; }
.handle { cursor: grab; color: var(--ink-3); letter-spacing: -3px; user-select: none; }
.pick { width: 18px; height: 18px; accent-color: var(--ink); }
.row-thumb { width: 72px; height: 54px; border-radius: 8px; overflow: hidden; background: var(--paper); display: grid; place-items: center; font-size: .7rem; color: var(--ink-3); text-decoration: none; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-main { display: grid; text-decoration: none; min-width: 0; }
.row-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-price { font-weight: 600; font-size: .9rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); }
.badge-sold, .badge-rented { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge-reserved { background: #FFF4D6; border-color: #F0DFA8; }
.row-switches { display: flex; gap: 6px; }
.mini-switch { position: relative; cursor: pointer; }
.mini-switch input { position: absolute; opacity: 0; }
.mini-switch span { display: inline-block; font-size: .74rem; font-weight: 600; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink-3); }
.mini-switch input:checked + span { background: #E7F3EC; border-color: #BFE0CB; color: var(--ok); }
.mini-switch input:focus-visible + span { outline: 2px solid var(--ink); }
.row-actions { display: flex; gap: 14px; }
.row-actions form { margin: 0; }

/* ---- Item editor: form + preview */
.item-editor { display: grid; grid-template-columns: minmax(380px, 560px) 1fr; gap: 24px; align-items: start; }
.item-form h1 { margin-bottom: 16px; }
.block { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 20px; margin-bottom: 12px; }
.block[open] { padding-bottom: 18px; }
.block summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.block summary::-webkit-details-marker { display: none; }
.block summary::after { content: "⌄"; margin-left: auto; color: var(--ink-3); transition: transform .2s; }
.block[open] summary::after { transform: rotate(180deg); }
.count { font-size: .75rem; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; color: var(--ink-2); }
.thumb.selected { outline: 3px solid var(--ink); outline-offset: 1px; }
.thumb[draggable=true] { cursor: grab; }
.thumb.dragging { opacity: .4; }
.focal-editor { margin-top: 12px; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-pick { position: relative; cursor: pointer; }
.chip-pick input { position: absolute; opacity: 0; }
.chip-pick span { display: inline-block; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); font-size: .88rem; }
.chip-pick input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.radio { display: flex; gap: 8px; align-items: center; padding: 4px 0; cursor: pointer; }
.radio input { accent-color: var(--ink); }
.rows-edit { display: grid; gap: 8px; margin-bottom: 10px; }
.row-edit { display: grid; grid-template-columns: 1fr 2fr 28px; gap: 8px; align-items: start; }
.rows-stats .row-edit { grid-template-columns: 110px 1fr 28px; }
.rows-testimonials .row-edit { grid-template-columns: 2fr 1fr 1fr 96px 28px; }
.rows-faq .row-edit { grid-template-columns: 1fr 1.6fr 28px; }
.row-edit .link { font-size: 1.3rem; line-height: 40px; }
.danger-zone { padding: 12px 4px; }
.item-preview { position: sticky; top: 80px; height: calc(100vh - 110px); display: flex; flex-direction: column; background: #EFEDE8; border-radius: var(--r); }
.item-preview .device { margin: 0 14px 14px; width: calc(100% - 28px); }
.preview-empty { padding: 40px 24px; text-align: center; }
.block-card h2 { margin-bottom: 4px; }
.block-card .hint { margin-bottom: 16px; }

@media (max-width: 1100px) {
    .item-editor { grid-template-columns: 1fr; }
    .item-preview { position: static; height: 70vh; }
    .item-row { grid-template-columns: 18px 20px 64px minmax(0, 1fr) auto; }
    .row-price, .row-status, .row-actions { display: none; }
    .row-switches { grid-column: 3 / -1; }
}
@media (max-width: 760px) {
    .shell { grid-template-columns: 1fr; }
    .side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px; }
    .side a { white-space: nowrap; }
    .side-out { margin-top: 0; }
    .row-edit, .rows-stats .row-edit, .rows-testimonials .row-edit, .rows-faq .row-edit { grid-template-columns: 1fr 28px; }
    .row-edit > :not(.link) { grid-column: 1; }
    .row-edit .link { grid-column: 2; grid-row: 1; }
}

/* "See every style with my brand" (step 3 banner, compare page, colors step) */
.compare [hidden], .brand-choice [hidden] { display: none !important; }
.try-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 18px; border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--white); text-decoration: none; transition: transform .15s; }
.try-banner:hover { transform: translateY(-1px); }
.try-banner-text { display: grid; gap: 2px; flex: 1; }
.try-dots { display: flex; }
.try-dots i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--white); margin-left: -6px; }
.try-dots i:nth-child(1) { background: #044299; margin-left: 0; }
.try-dots i:nth-child(2) { background: #C9A96E; }
.try-dots i:nth-child(3) { background: #8F4F48; }
.compare { display: grid; grid-template-columns: 300px 1fr; min-height: calc(100vh - 60px); }
.try-panel { padding: 22px; border-right: 1px solid var(--line); background: var(--white); display: grid; gap: 18px; align-content: start; position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; }
.try-panel .field { display: grid; gap: 8px; }
.try-panel .field > span { font-weight: 600; font-size: .9rem; }
.try-photo { display: flex; align-items: center; gap: 12px; }
.try-thumb { width: 96px; height: 60px; border-radius: 10px; overflow: hidden; background: repeating-linear-gradient(45deg, #F2F1ED, #F2F1ED 8px, #ECEAE4 8px, #ECEAE4 16px); flex: none; }
.try-thumb img { width: 100%; height: 100%; object-fit: cover; }
.try-thumb.logo img { object-fit: contain; background: var(--white); }
.color-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.color-row input[type=color] { width: 44px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
.color-row input[type=color]:disabled { opacity: .35; cursor: default; }
.color-row code { font-size: .82rem; color: var(--ink-2); }
.chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.chip:hover { box-shadow: 0 0 0 2px var(--ink); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; cursor: pointer; }
.compare-grid { padding: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; align-content: start; background: #EFEDE8; }
.compare-card { display: grid; gap: 10px; background: var(--white); border-radius: var(--r); padding: 10px; border: 1px solid var(--line); }
.compare-card .mini { border-radius: 10px; aspect-ratio: 4 / 5; } /* tall: the opening and the start of the page below it */
.compare-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px 2px; }
.compare-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-choice { display: block; margin-bottom: 12px; }
.brand-choice .choice-body { gap: 8px; }
.brand-choice .color-row input { position: static; opacity: 1; }
@media (max-width: 760px) {
    .compare { grid-template-columns: 1fr; }
    .try-panel { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .compare-grid { padding: 16px; grid-template-columns: 1fr; }
}

/* ---- Results (visits and WhatsApp conversations) */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.month-pick select { font: inherit; font-weight: 600; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { padding: 18px 20px; }
.kpi p { margin: 0; }
.kpi-label { color: var(--ink-2); font-weight: 600; font-size: .85rem; }
.kpi-value { font-family: 'Fraunces', Georgia, serif; font-size: 2.6rem; line-height: 1.1; margin: 6px 0 4px !important; }
.kpi-main { background: #E7F3EC; border-color: #CFE6D8; }
.kpi-main .kpi-value { color: var(--ok); }
.kpi-change { font-size: .8rem; color: var(--ink-3); }
.kpi-change.up { color: var(--ok); }
.kpi-change.down { color: var(--err); }
.day-bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 8px; }
.day-bar { flex: 1; height: 100%; position: relative; border-radius: 4px 4px 0 0; background: var(--paper); }
.day-bar span { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 4px 4px 0 0; }
.bar-view { background: #CFCBC2; }
.bar-wa { background: var(--ok); }
.legend { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; }
.dot-view, .dot-wa { width: 10px; height: 10px; border-radius: 3px; display: inline-block; background: #CFCBC2; }
.dot-wa { background: var(--ok); margin-left: 10px; }
.source-row { display: grid; grid-template-columns: 130px 1fr 44px; align-items: center; gap: 10px; padding: 6px 0; }
.source-row b { text-align: right; }
.source-bar { height: 10px; background: var(--paper); border-radius: 99px; overflow: hidden; }
.source-bar span { display: block; height: 100%; background: var(--ink); border-radius: 99px; }
.top-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.top-row > span { white-space: nowrap; text-align: right; }
@media (max-width: 560px) { .top-row { grid-template-columns: 1fr; } .top-row > span { text-align: left; } }
.top-row a { font-weight: 600; text-decoration: none; }
.month-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; text-decoration: none; padding: 18px 22px; }
.month-card .eyebrow { margin: 0; }
.month-figures { display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink-2); }
.month-figures b { font-family: 'Fraunces', Georgia, serif; font-size: 1.6rem; color: var(--ink); font-weight: 500; margin-right: 4px; }
.btn-quick { background: #E7F3EC; border-color: #CFE6D8; }
.item-tools { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 12px; }

/* ---- Item report (for the owner of a property) */
.is-report { background: var(--paper); }
.report { width: min(960px, 100% - 32px); margin: 0 auto; padding: 28px 0 60px; display: grid; gap: 18px; }
.report-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.report-tools [data-share-result] { word-break: break-all; }
.report-head { display: flex; gap: 18px; align-items: center; }
.report-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.report-item { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: center; }
.report-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.report-table { width: 100%; border-collapse: collapse; }
.report-table th, .report-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: right; }
.report-table th:first-child, .report-table td:first-child { text-align: left; }
@media print {
    .no-print { display: none !important; }
    .is-report { background: #fff; }
    .card { break-inside: avoid; }
}

/* ---- Contacts left by visitors */
.lead-card { display: flex; justify-content: space-between; gap: 18px; padding: 18px 22px; flex-wrap: wrap; }
.lead-card h2 { font-size: 1.2rem; margin-bottom: 2px; }
.lead-card p { margin: 4px 0; }
.lead-card.is-done { opacity: .6; }
.lead-msg { background: var(--paper); border-radius: 10px; padding: 10px 14px; }
.lead-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lead-actions form { margin: 0; }
.link.danger { color: var(--err); }
.side .count { margin-left: 6px; background: var(--ok); color: #fff; border-color: var(--ok); }
.seg a { font-size: .82rem; font-weight: 600; padding: 6px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; }
.seg a.on { background: var(--ink); color: #fff; }

/* ---- Link in bio */
.links-editor { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.links-editor > div { display: grid; gap: 18px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font: inherit; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.howto { padding-left: 20px; margin: 12px 0 0; display: grid; gap: 6px; }
.rows-links .row-edit { grid-template-columns: 1fr 1.4fr auto; }
.phone-frame { position: sticky; top: 80px; width: 100%; aspect-ratio: 9 / 18; border: 10px solid var(--ink); border-radius: 36px; overflow: hidden; background: var(--white); }
.phone-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---- Promote: Instagram art and QR code */
.promote { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: start; }
.art-controls { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.art-controls .switch { margin: 0; }
.field-inline { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.field-inline select { font: inherit; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); }
.art-stage { background: var(--paper); border-radius: var(--r); padding: 14px; display: grid; place-items: center; }
.art-stage canvas { max-width: 100%; max-height: 62vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.qr-preview { width: 200px; height: 200px; display: block; margin: 12px auto 4px; }
.qr-address { text-align: center; word-break: break-all; }
.promote .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ---- Quick item (phone) */
.quick { max-width: 560px; width: 100%; margin: 0 auto; display: grid; gap: 14px; }
.quick-form { display: grid; gap: 12px; }
.quick-photo-btn { display: flex; align-items: center; justify-content: center; min-height: 120px; border: 2px dashed var(--ink-3); border-radius: var(--r); font-weight: 700; font-size: 1.1rem; background: var(--white); cursor: pointer; }
.quick-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-thumbs:empty { display: none; }
.quick-thumb { aspect-ratio: 1; border-radius: 10px; background: var(--line) center / cover; display: grid; place-items: center; font-size: .72rem; color: var(--ink-2); text-align: center; padding: 4px; }
.quick-go { padding: 16px; font-size: 1.05rem; }
.quick-done .actions { display: grid; gap: 10px; margin-top: 12px; }

@media (max-width: 900px) {
    .links-editor, .promote { grid-template-columns: 1fr; }
    .phone-frame { position: static; max-width: 320px; margin: 0 auto; }
    .report-item { grid-template-columns: 1fr; }
    .source-row { grid-template-columns: 100px 1fr 40px; }
}

.badge-offer { background: #FDECC8; color: #7A4B00; }
.reviews-top { margin-bottom: 8px; }
.review-message { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.review-stars { color: #C98A00; letter-spacing: .1em; margin: 0 0 4px; font-size: 1.05rem; }
.review-stars span { color: var(--line); }
.list-title { font-size: 1.05rem; margin: 26px 0 10px; display: flex; gap: 8px; align-items: center; }
.rows-testimonials select { min-width: 0; }
.step-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .85rem; margin-right: 6px; }
.import-columns { margin-top: 16px; }
.import-columns summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.mini-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .85rem; }
.mini-table th, .mini-table td { text-align: left; vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.mini-table th { width: 38%; }
.import-errors { border-color: #E8B4AE; background: #FFF6F5; }
.import-errors ul { margin: 8px 0 0; padding-left: 18px; font-size: .9rem; }
.wizard-exit { display: inline-block; font-size: .85rem; color: var(--ink-2); text-decoration: none; margin-bottom: 14px; }
.wizard-exit:hover { color: var(--ink); text-decoration: underline; }
.look-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.look-card { display: grid; gap: 6px; text-decoration: none; color: inherit; position: relative; padding-right: 40px; }
.look-card:hover { border-color: var(--ink); }
.look-go { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.2rem; }
.art-controls .field-inline { white-space: nowrap; flex-wrap: wrap; }
.address-hint { margin: -6px 0 14px; font-size: .88rem; color: var(--ink-2); }
.addr-free { color: var(--ok); font-weight: 700; }
.addr-taken { color: #A23B2A; font-weight: 600; }
.addr-unknown { color: var(--ink-2); }
.claim { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; padding: 28px; max-width: 1280px; margin: 0 auto; align-items: start; }
.claim-preview .device { margin: 0; width: 100%; height: 72vh; }
.claim-card h1 { margin-top: 0; }
.claim-address { border: 0; padding: 0; margin: 0 0 16px; }
.claim-address legend { font-weight: 700; margin-bottom: 8px; }
.address-search { display: flex; gap: 8px; }
.address-search input { flex: 1; }
.address-options { display: grid; gap: 6px; margin: 10px 0; }
.addr-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--white); }
.addr-option:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.addr-option.is-taken { opacity: .6; cursor: default; }
.addr-name { flex: 1; font-weight: 600; }
.claim-terms { margin: 6px 0 14px; }
.claim-call { margin-top: 16px; }
.claim-call h2 { margin-top: 0; }
.share-preview { margin-top: 14px; }
.share-preview summary { cursor: pointer; font-size: .9rem; color: var(--ink-2); }
.login-start { text-align: center; margin: 18px 0 0; font-size: .92rem; }
@media (max-width: 860px) { .claim { grid-template-columns: 1fr; padding: 16px; } .claim-preview .device { height: 46vh; } }
.logo-note[hidden], [data-logo-size][hidden] { display: none; }
.notice-alert { background: #FFF1EE; border-color: #F2C4BA; color: #7A2414; }
.login-or { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .85rem; margin: 16px 0; }
.login-or::before, .login-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
/* Logo of the Kiban Core Vitrine (Kiban logo + "Vitrine"), resources/brand/logo-vitrine.html */
.logo img { display: block; height: 32px; width: auto; }
.login-card .logo img { height: 40px; margin: 0 auto; }

/* Sample photos still in the site: asked at publishing and reminded on the panel */
.sample-warn { margin-top: 16px; padding: 16px 18px; border-radius: var(--r); background: #FFF6E5; border: 1px solid #F1D9A6; }
.sample-warn p { margin: 0 0 6px; }
.sample-warn-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; align-items: center; }
.sample-warn-actions form { margin: 0; }
