:root {
    --blue: #146b34;
    --blue-bright: #1b8a42;
    --header: #146b34;
    --pin: #1fa84a;
    --pin-deep: #0f6b38;
    --ink: #1c2b22;
    --muted: #66756c;
    --line: #e3ebe6;
    --paper: #f3f6f4;
    --card: #ffffff;
    --ok: #e7f8ee;
    --err: #fdecea;
    --shadow: 0 10px 28px rgba(20, 107, 52, 0.1);
    --tab: 5.2rem;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 84px; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 16px/1.45 "Segoe UI", Arial, system-ui, sans-serif;
    padding-bottom: calc(var(--tab) + 28px + env(safe-area-inset-bottom));
    overflow-x: clip;
}
a { color: var(--blue); }
h1, h2, h3 { font-weight: 750; letter-spacing: -0.03em; margin: 0 0 6px; }
h1 { font-size: 1.7rem; color: var(--blue); }
main { width: min(1080px, calc(100% - 28px)); margin: 18px auto 32px; }

.top {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    gap: 12px 16px;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 16px;
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
}
.brand { text-decoration: none; color: inherit; }
.brand-lockup { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
    display: inline-flex;
    align-items: flex-end;
    color: var(--blue);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.045em;
}
.brand-i {
    position: relative;
    display: inline-block;
    width: 0.72em;
    height: 0.78em;
}
.stem {
    position: absolute;
    left: 0.1em;
    bottom: 0.02em;
    width: 0.14em;
    height: 0.46em;
    border-radius: 2px;
    background: var(--blue);
}
.pin {
    position: absolute;
    left: -0.02em;
    bottom: 0.34em;
    width: 0.62em;
    height: 0.8em;
}
.brand-sub {
    margin-top: 3px;
    color: var(--ink);
    font-size: 0.62rem;
    font-weight: 750;
    letter-spacing: 0.18em;
}
.top nav {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-left: 8px;
    flex-wrap: wrap;
}
.top nav a, .top button.link {
    color: var(--ink);
    text-decoration: none;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer;
    padding: 6px 0;
}
.top nav a.is-on { color: var(--blue); font-weight: 700; }
.pill {
    background: var(--blue) !important;
    color: #fff !important;
    padding: 8px 14px !important;
    border-radius: 999px;
}
.city-form { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.city-pin { width: 14px; height: 18px; display: block; }
.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
select, input, textarea {
    font: inherit;
    color: var(--ink);
    background: #fff;
    border: 1px solid #d5e2ee;
    border-radius: 12px;
    padding: 11px 12px;
}
textarea { width: 100%; min-height: 110px; }
.city-form select {
    background: #f4f8fc;
    color: var(--ink);
    border-color: transparent;
    border-radius: 999px;
    padding: 8px 12px;
    max-width: 46vw;
}
.hero { display: grid; gap: 6px; margin-bottom: 14px; }
.hero p { margin: 0; color: var(--muted); }
.tagline { color: var(--blue-bright); font-style: italic; }
.search {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    gap: 10px;
    margin: 14px 0 16px;
}
.search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #d5e2ee;
    border-radius: 999px;
    padding: 0 14px;
    box-shadow: var(--shadow);
}
.search-field input {
    border: 0;
    width: 100%;
    padding: 12px 0;
    background: transparent;
    outline: none;
}
.search-field svg { flex: 0 0 auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.people { display: grid; gap: 10px; }
.card, .panel, .person {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    box-shadow: var(--shadow);
}
.card, .person { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.person {
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
}
.card:hover, .person:hover { border-color: #b9d0e6; }
.card strong, .person strong { font-size: 1.02rem; }
.meta { color: var(--muted); font-size: 0.92rem; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 0.75rem; border-radius: 999px; padding: 2px 8px; background: #e8f1f8; color: var(--blue); }
.badge.ok { background: var(--ok); color: var(--pin-deep); }
.badge.hot { background: #e7f0fa; color: var(--blue); }
.photo, .avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: #e7f0fa;
}
.avatar {
    display: grid;
    place-items: center;
    color: var(--blue);
    font-weight: 800;
    font-size: 1.25rem;
}
.person .photo, .person .avatar { width: 56px; height: 56px; }
.row { display: flex; gap: 14px; align-items: flex-start; }
.grid-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 18px; }
.stack { display: grid; gap: 10px; }
button, .button {
    background: var(--blue);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 11px 16px;
    min-height: 44px;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
button:hover, .button:hover { background: var(--blue-bright); }
button.secondary, .button.secondary { background: #fff; color: var(--blue); border: 1px solid #b9d0e6; }
button.ghost, .button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.flash { padding: 12px 14px; border-radius: 14px; }
.flash.ok { background: var(--ok); color: var(--pin-deep); }
.flash.err { background: var(--err); }
.price { font-size: 1.7rem; font-weight: 800; color: var(--blue); margin: 4px 0; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.help { background: #f3f8fd; border: 1px dashed #b9d0e6; border-radius: 14px; padding: 12px 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; }
.chips a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.9rem;
}
.chips a:hover { border-color: var(--blue); color: var(--blue); }
footer {
    width: min(1080px, calc(100% - 28px));
    margin: 0 auto 18px;
    color: var(--muted);
    font-size: 0.88rem;
}
.empty { padding: 28px; text-align: center; color: var(--muted); }

.tabbar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 18px rgba(20, 107, 52, 0.06);
}
.tabbar a {
    display: grid;
    justify-items: center;
    gap: 2px;
    min-width: 0;
    text-decoration: none;
    color: #8b97a6;
    font-size: 0.68rem;
    font-weight: 650;
    padding: 4px 0;
}
.tabbar a.is-on { color: var(--blue); }
.tabbar svg { width: 22px; height: 22px; }
.tab-pin {
    width: 58px;
    height: 58px;
    margin: -26px auto 0;
    border-radius: 50%;
    background: var(--pin);
    border: 4px solid #fff;
    box-shadow: 0 8px 16px rgba(20, 107, 52, 0.28);
    display: grid;
    place-items: center;
    color: #fff;
}
.tab-pin svg { width: 28px; height: 36px; }
.tabbar a.tab-pin.is-on { color: #fff; }

.install {
    position: fixed;
    z-index: 50;
    left: 12px;
    right: 12px;
    bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 8px);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 12px;
}
.install p { margin: 0; flex: 1 1 180px; }
.install[hidden] { display: none; }

@media (max-width: 899px) {
    .search, .grid-2 { grid-template-columns: 1fr; }
    .top nav { width: auto; max-width: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; }
    .top nav a.in-tab { display: none; }
    .top nav a, .top button.link { white-space: nowrap; }
    table { display: block; overflow-x: auto; }
    h1 { font-size: 1.35rem; }
}
@media (min-width: 900px) {
    .install { left: auto; right: 20px; width: min(420px, calc(100% - 40px)); }
}

.appbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    min-height: 56px;
    padding: env(safe-area-inset-top) 8px 0;
    background: var(--header);
    color: #fff;
}
.wordmark, .bar-title {
    justify-self: center;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.wordmark { display: inline-flex; align-items: center; gap: 6px; font-size: 1.35rem; }
.wordmark svg { width: 18px; height: 24px; }
.bar-title { margin: 0; font-size: 1.05rem; }
.iconbtn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: #fff;
    background: transparent;
    border: 0;
    padding: 0;
    min-height: 0;
    border-radius: 12px;
}
.iconbtn svg { width: 24px; height: 24px; }
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 80; }
.app-loading {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 22vh;
    background: rgba(243, 246, 244, 0.78);
}
.app-loading[hidden] { display: none; }
.app-loading span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: var(--header);
    font-weight: 750;
    border-radius: 999px;
    padding: 12px 16px;
    box-shadow: var(--shadow);
}
.spin {
    width: 18px;
    height: 18px;
    border: 2px solid #d7eadc;
    border-top-color: var(--pin);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(8, 30, 16, 0.45); border: 0; border-radius: 0; min-height: 0; }
.drawer-panel {
    position: relative;
    width: min(320px, 86vw);
    height: 100%;
    background: #fff;
    padding: calc(18px + env(safe-area-inset-top)) 18px 18px;
    display: grid;
    align-content: start;
    gap: 4px;
    overflow: auto;
}
.drawer-panel a { color: var(--ink); text-decoration: none; padding: 8px 0; font-weight: 650; }
.drawer-panel button.link {
    background: none;
    color: var(--ink);
    border: 0;
    border-radius: 0;
    min-height: 0;
    padding: 8px 0;
    justify-content: flex-start;
}
.drawer .city-form { margin: 8px 0 12px; }
.drawer .city-form select { width: 100%; max-width: none; }

body.is-map main { width: 100%; max-width: 100vw; margin: 0; overflow-x: clip; }
body.is-map .flash { margin: 12px 14px 0; }
.find { padding: 12px 14px 0; }
.find-field {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border-radius: 999px;
    padding: 0 14px;
    box-shadow: var(--shadow);
}
.find-field input { border: 0; width: 100%; padding: 12px 0; background: transparent; outline: none; }
.find-field svg { width: 20px; height: 20px; flex: 0 0 auto; }
.stage { position: relative; z-index: 0; isolation: isolate; margin: 12px 14px 0; border-radius: 22px; overflow: hidden; background: #d7eadc; min-height: 280px; }
.city-map { height: min(42vh, 320px); min-height: 220px; background: #d7eadc; }
.stage-short .city-map { height: 210px; min-height: 210px; }
.where { position: absolute; top: 12px; left: 12px; right: 12px; z-index: 500; }
.where select {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow);
    font-weight: 700;
}
.radar {
    position: absolute;
    left: 50%;
    top: 54%;
    width: 168px;
    height: 168px;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 450;
}
.radar i, .radar b {
    position: absolute;
    inset: 0;
    border-radius: 50%;
}
.radar i { border: 2px solid rgba(31, 168, 74, 0.55); animation: pulse 2.2s ease-out infinite; }
.radar i:nth-child(2) { animation-delay: .7s; }
.radar i:nth-child(3) { animation-delay: 1.4s; }
.radar b { inset: 38%; background: rgba(31, 168, 74, 0.85); box-shadow: 0 0 24px rgba(31, 168, 74, 0.8); }
@keyframes pulse {
    from { transform: scale(.35); opacity: .9; }
    to { transform: scale(1); opacity: 0; }
}
.map-toast, .map-count {
    position: absolute;
    z-index: 500;
    left: 12px;
    right: 12px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 10px 12px;
}
.map-toast { top: 62px; display: grid; }
.map-toast strong { color: var(--ink); }
.map-toast span, .map-count { color: var(--muted); font-size: .92rem; }
.map-toast.is-gone { opacity: 0; transition: opacity .4s ease; }
.map-count { top: 12px; margin: 0; font-weight: 700; color: var(--ink); }
.sheet { padding: 16px 14px 8px; }
.sheet-head, .filters { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sheet-head h2 { margin: 0; font-size: 1.15rem; color: var(--ink); }
.sheet-head a { color: var(--blue); font-weight: 700; text-decoration: none; }
.sheet { width: 100%; max-width: 100vw; box-sizing: border-box; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; width: 100%; }
.tiles a {
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    text-align: center;
    text-decoration: none;
    color: var(--ink);
    font-size: .78rem;
    font-weight: 700;
}
.tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; }
.tile svg { width: 26px; height: 26px; }
.t-cv { background: #1fa84a; }
.t-home { background: #3b82f6; }
.t-car { background: #f59e0b; }
.t-tool { background: #f97316; }
.near { display: flex; gap: 10px; overflow-x: auto; width: 100%; max-width: 100%; min-width: 0; padding-bottom: 6px; }
.near-card {
    flex: 0 0 148px;
    display: grid;
    gap: 2px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border-radius: 18px;
    padding: 8px;
    box-shadow: var(--shadow);
}
.near-card img, .near-card .avatar { width: 100%; height: 112px; border-radius: 14px; object-fit: cover; }
.near-card .avatar { display: grid; place-items: center; font-size: 2rem; }
.near-card strong { font-size: .92rem; }
.near-card span, .near-card em { color: var(--muted); font-style: normal; font-size: .8rem; }
.filters { justify-content: flex-start; overflow-x: auto; max-width: 100%; min-width: 0; padding: 10px 14px 4px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters a {
    flex: 0 0 auto;
    text-decoration: none;
    color: var(--ink);
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 650;
}
.filters a.is-on { background: var(--header); color: #fff; }
.results { display: grid; gap: 8px; padding: 12px 14px 8px; }
.hit {
    display: grid;
    grid-template-columns: 56px 1fr 42px;
    gap: 10px;
    align-items: center;
    background: #fff;
    border-radius: 18px;
    padding: 10px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
}
.hit img, .hit .avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.hit span { display: grid; }
.hit small, .hit em { color: var(--muted); font-style: normal; }
.hit i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--pin);
    display: grid;
    place-items: center;
}
.hit i svg { width: 18px; height: 18px; }
.inbox { padding: 16px 14px; }
.leaflet-container { font: inherit; }
.pin-face { background: transparent; border: 0; }
.pin-face img, .pin-face b {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin: 0 auto;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2);
    background: #e7f6ec;
    color: var(--header);
    font-size: 1.1rem;
    object-fit: cover;
}
.pin-face small {
    display: block;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--header);
    background: #fff;
    border-radius: 999px;
    margin-top: 2px;
}

/* Vagas */
.tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.t-job { background: #7c3aed; }
.tiles a.is-on .tile { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #7c3aed; }
.job-form fieldset { border: 1px solid #e3e9ef; border-radius: 14px; padding: 12px 14px; margin: 0; }
.job-form legend { font-weight: 700; padding: 0 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
label.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
label.check input { width: auto; margin: 0; }
.rich { line-height: 1.55; overflow-wrap: anywhere; }
.rich p { margin: 0 0 10px; }
.rich ul, .rich ol { margin: 0 0 10px; padding-left: 20px; }
.rich li p { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { font-size: .85rem; border-radius: 999px; padding: 4px 10px; background: #eef4f0; color: var(--pin-deep); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 6px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.company-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.company-line .avatar { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; }
.logo, .logo-sm { object-fit: contain; border-radius: 12px; background: #fff; }
.logo { width: 64px; height: 64px; }
.logo-sm { width: 28px; height: 28px; }
.answers { white-space: pre-line; font-size: .9rem; }
.tags-admin { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag-admin { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #e3e9ef; border-radius: 12px; padding: 4px 6px 4px 10px; background: #fff; }
.tag-admin small { display: block; color: var(--muted); font-size: .75rem; }
.tag-admin button { padding: 4px 8px; font-size: .8rem; }
.tag-admin.is-off { opacity: .55; }

/* Gestão da empresa */
.chips a.is-on { background: var(--header); border-color: var(--header); color: #fff; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
legend { font-weight: 700; padding: 0 4px; }
details > summary { cursor: pointer; color: var(--blue); }
article.is-off { opacity: .6; }
