:root {
    color-scheme: light;
    --navy: #101c35;
    --mint: #5de4c7;
    --ink: #17243b;
    --muted: #57677c;
    --line: #e2e8ef;
    --surface: #fff;
    --background: #f3f6fa;
    font: 15px/1.55 "DM Sans", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--background); }
a { color: inherit; }
h1, h2, h3 { font-family: Manrope, system-ui, sans-serif; line-height: 1.16; margin: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: .5em 0 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #268575; outline-offset: 3px; }
button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: var(--mint);
    color: var(--navy);
    font: 700 .875rem/1.3 system-ui, sans-serif;
    text-decoration: none;
    cursor: pointer;
}
button:hover, .button:hover { filter: brightness(.95); }
button:disabled { opacity: .54; cursor: default; }
.secondary { background: #fff; border-color: var(--line); }
.quiet { background: transparent; color: inherit; border-color: currentColor; }
.danger { background: #fff4f2; color: #a43631; border-color: #f0d1cc; }
label { display: grid; gap: 5px; font-size: .875rem; font-weight: 650; }
label small { color: var(--muted); font-weight: 400; }
input:not([type=checkbox]), select, textarea {
    width: 100%;
    min-width: 0;
    padding: 10px 11px;
    border-radius: 8px;
    border: 1px solid #cdd7e2;
    background: #fff;
    color: #17243b;
    font: inherit;
}
input[type=color] { min-height: 44px; padding: 4px; }
textarea { resize: vertical; }
.check { display: flex; align-items: center; }
.fields { display: grid; gap: 14px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.actions, .inline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.inline select { flex: 1 0 115px; }
.nuviqo-logo { max-width: 145px; max-height: 50px; object-fit: contain; }
.auth-top { padding: 18px clamp(18px, 5vw, 80px); background: var(--navy); }
.auth-card { background: #fff; max-width: 610px; margin: 48px auto; padding: clamp(20px, 5vw, 38px); border: 1px solid var(--line); border-radius: 16px; }
.auth-card h1 { margin-bottom: 18px; }
.auth-card form { display: grid; gap: 16px; }
.auth-card form section { display: grid; gap: 12px; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.steps li { font-size: .85rem; padding: 6px 10px; border-radius: 30px; background: var(--background); color: var(--muted); }
.steps li.current { background: #d8f8ef; color: #12594d; font-weight: 750; }
.requirements { margin: 0; padding: 0; list-style: none; }
.requirements li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.error, .success { padding: 11px 14px; border-radius: 9px; margin-bottom: 12px; overflow-wrap: anywhere; }
.error { color: #922e28; background: #fff0ed; }
.success { color: #15594c; background: #dff9f0; }
#workspace { min-height: 100vh; display: grid; grid-template-columns: 224px minmax(0, 1fr); }
.sidebar { padding: 18px 14px; background: var(--navy); color: #e2ebf5; display: flex; flex-direction: column; gap: 24px; }
.brand { display: grid; gap: 4px; padding: 0 10px; }
.brand small { color: #b7c8da; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav button { justify-content: start; gap: 10px; background: transparent; color: inherit; text-align: left; }
.sidebar nav button span { width: 1.2rem; color: #83e9d4; }
.sidebar nav button.active { background: #233657; color: white; }
.signout { margin-top: auto; padding: 0 10px 6px; }
.admin-main { padding: 22px clamp(16px, 3vw, 42px) 46px; min-width: 0; }
.admin-top, .screen-head, .card-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.admin-top { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.admin-top a:not(.button) { text-decoration: none; font-weight: 750; }
#site-status { margin-left: 8px; color: #15594c; background: #dff9f0; border-radius: 20px; font-size: .75rem; white-space: nowrap; padding: 4px 9px; }
.screen-head { margin-bottom: 20px; }
.screen-head p, .card-head p, .overview-card p { color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 17px; min-width: 0; box-shadow: 0 5px 15px #15294908; }
.stats, .settings-grid, .editor-grid, .collection-grid { display: grid; gap: 14px; align-items: start; }
.stats { grid-template-columns: repeat(3, 1fr); }
.stat { display: grid; gap: 6px; }
.stat strong { font-size: 1.7rem; }
.overview-card { margin-top: 14px; }
.overview-card .actions { margin-top: 14px; }
.settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.collection-grid { grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); }
.editor-grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 345px); }
.page-picker { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.section-list { display: grid; gap: 6px; }
.editor-controls > * + * { margin-top: 12px; }
.list-button { justify-content: start; text-align: left; background: #f6f8fa; border-color: var(--line); overflow-wrap: anywhere; }
.list-button.selected, .theme-choice.selected { background: #dff9f0; border-color: #6acbb8; }
.divided { padding-top: 14px; border-top: 1px solid var(--line); }
.preview-frame { min-height: 520px; margin-top: 12px; border-radius: 10px; overflow: hidden; background: #edf2f5; }
.preview-frame iframe { display: block; border: 0; width: 100%; height: 558px; margin: auto; background: white; }
.preview-frame.mobile iframe { max-width: 390px; }
.page-settings { margin-top: 14px; }
.page-settings summary { cursor: pointer; font-weight: 750; }
.page-settings .fields { margin-top: 16px; }
.media-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.media-row img { width: 66px; height: 50px; object-fit: contain; background: #eff4f7; border-radius: 5px; }
.theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.theme-choice { min-width: 0; padding: 7px; flex-direction: column; background: #f6f8fa; border-color: var(--line); }
.theme-choice span { background: linear-gradient(#f1ebe1 20%, #1f3c32 20% 82%, #f1ebe1 82%); width: 100%; aspect-ratio: 2; border-radius: 4px; }
.theme-sample-origem span { background: linear-gradient(90deg, #0f2037 55%, #ded1b0 55%); }
.theme-sample-bairro span { background: linear-gradient(#f7fbef 25%, #bce47c 25% 83%, #f7fbef 83%); }
.lead-list { display: grid; gap: 12px; }
.lead-message { white-space: pre-wrap; overflow-wrap: anywhere; }
#more-leads { margin-top: 14px; }

.site { background: #faf7f0; }
.site-shell { color: var(--site-ink); min-height: 100vh; }
.site-wrap { width: min(100% - 2 * clamp(16px, 5vw, 86px), 1190px); margin-inline: auto; }
.site-header { background: color-mix(in srgb, #faf7f0, white 20%); }
.site-nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.site-brand { text-decoration: none; font-weight: 850; font-size: 1.2rem; }
.site-brand img { max-width: 180px; max-height: 56px; object-fit: contain; }
.site-nav nav { display: flex; flex-wrap: wrap; gap: 5px 20px; }
.site-nav nav a { text-decoration: none; padding: 4px 0; }
.site-nav nav [aria-current] { border-bottom: 2px solid var(--site-accent); }
.preview-label { text-align: center; padding: 5px; background: #e5fbf5; color: #15594c; font-size: .76rem; }
.site-block { padding: clamp(24px, 5vw, 75px) 0; }
.site-block h2 { font-size: clamp(1.45rem, 3vw, 2.65rem); margin-bottom: 14px; }
.block-hero { min-height: clamp(320px, 45vw, 640px); display: grid; align-items: center; position: relative; isolation: isolate; background: #e6e8dc; }
.block-hero.has-image { background: #1c2222; color: white; }
.block-hero.has-image::after { position: absolute; inset: 0; z-index: -1; content: ""; background: linear-gradient(90deg, #071113dc, #07111321); }
.cover { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: -2; }
.block-hero h1 { font-size: clamp(2.25rem, 6.7vw, 6.5rem); line-height: .99; max-width: 9.2em; letter-spacing: -.06em; }
.block-copy { max-width: 66ch; overflow-wrap: anywhere; }
.site-button { display: inline-flex; text-decoration: none; background: var(--site-accent); color: var(--site-button-text); border-radius: 24px; padding: 11px 18px; font-weight: 800; align-self: start; margin-top: 14px; }
.site-button:hover { filter: brightness(.93); }
.site-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.site-tile { border-radius: 10px; overflow: hidden; background: color-mix(in srgb, #fff 75%, var(--site-accent)); align-self: stretch; }
.site-tile img { height: 170px; width: 100%; object-fit: cover; }
.site-tile div { padding: 16px; }
.site-tile h3 { font-size: 1.2rem; overflow-wrap: anywhere; }
.site-tile h3 a { text-decoration: none; }
.site-tile small, .detail-link { font-weight: 750; }
.detail-link { display: inline-block; margin-top: 10px; }
.block-photo, .site-article img { margin-top: 16px; max-height: 620px; border-radius: 8px; object-fit: cover; }
.block-cta { background: #e7ece4; }
.page-title { padding: 30px 0 0; }
.site-article { padding: 40px 0; }
.site-article p { max-width: 75ch; overflow-wrap: anywhere; }
.block-faq details { padding: 12px 0; border-top: 1px solid #cce0d8; }
.block-faq summary { font-weight: 750; cursor: pointer; }
.contact-form { display: grid; max-width: 520px; gap: 12px; margin-top: 18px; }
.contact-form button { justify-self: start; }
.trap { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); }
.lead-notice { margin: 18px auto 0; width: min(90%, 600px); padding: 10px; color: #15594c; background: #dff9f0; }
.site-footer { padding: 28px 0; background: #ecebe3; }
.site-footer .site-wrap { display: flex; gap: 8px 18px; flex-wrap: wrap; }
.whatsapp { position: fixed; bottom: 18px; right: 18px; box-shadow: 0 3px 16px #0002; }
.font-serif h1, .font-serif h2, .font-serif h3 { font-family: Georgia, serif; }
.font-humanist { font-family: "Trebuchet MS", system-ui, sans-serif; }
.font-humanist h1, .font-humanist h2, .font-humanist h3 { font-family: inherit; }
.theme-origem { background: #edf0f5; }
.theme-origem .site-header, .theme-origem .site-footer { background: #101c35; color: white; }
.theme-origem .block-hero { background: #243855; color: white; min-height: clamp(270px, 36vw, 510px); }
.theme-origem .block-hero h1 { letter-spacing: -.015em; }
.theme-origem .block-cta { background: #dce6f2; }
.theme-origem .site-button, .theme-origem .site-tile { border-radius: 4px; }
.theme-bairro { background: #f7fbef; }
.theme-bairro .block-hero { margin: 14px auto 0; width: min(96%, 1320px); border-radius: 32px; min-height: clamp(280px, 34vw, 470px); overflow: hidden; }
.theme-bairro .block-hero:not(.has-image) { background: color-mix(in srgb, white 45%, var(--site-accent)); }
.theme-bairro .block-hero .site-wrap { text-align: center; }
.theme-bairro .block-hero h1, .theme-bairro .block-copy { margin-inline: auto; }
.theme-bairro .site-tile { border-radius: 21px; }
@media (max-width: 1040px) {
    #workspace { grid-template-columns: 175px minmax(0, 1fr); }
    .editor-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
    #workspace { display: block; }
    .sidebar { gap: 7px; padding: 8px; }
    .sidebar nav { display: flex; overflow: auto; }
    .sidebar nav button { white-space: nowrap; }
    .signout { align-self: flex-end; }
    .brand { display: flex; align-items: center; gap: 12px; }
    .brand .nuviqo-logo { width: 100px; }
    .settings-grid, .collection-grid, .two { grid-template-columns: 1fr; }
    .stats { gap: 5px; }
    .stats .card { padding: 9px; font-size: .75rem; }
    .auth-card { margin: 16px; }
    .site-nav { flex-direction: column; align-items: flex-start; padding-block: 13px; gap: 8px; }
    .site-nav nav { font-size: .875rem; gap: 3px 12px; }
    .site-button.whatsapp { position: static; margin: 10px 16px; }
}
.theme-origem .block-hero .site-wrap { border-left: 4px solid var(--site-accent); padding-left: clamp(16px, 4vw, 45px); }
