/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

/* ════════════════════════════════════════════════════════════════════
   TERRA SOLUÇÕES — Brand tokens (paleta alinhada ao logo oficial)
   • Marinho   #0a2c4a  → top bar / texto de marca
   • Verde água #2d9c91  → acento principal (anel do pin)
   • Lima      #5aab1e  → detalhe pontual
   Direção visual: papel quente, navy só onde precisa de contraste,
   verde água como cor de identidade. Mais arejado e elegante.
   ════════════════════════════════════════════════════════════════════ */

:root {
    --top-bar-height: 60px;

    /* Marca */
    --brand-night:        #08182a;
    --brand-deep:         #0a2c4a;
    --brand-forest:       #1d544f;
    --brand-forest-soft:  #2d9c91;
    --brand-moss:         #5aab1e;
    --brand-gold:         #2d9c91;
    --brand-gold-strong:  #1f7a72;
    --brand-gold-soft:    rgba(45, 156, 145, 0.14);
    --brand-cream:        #faf7f0;
    --brand-cream-strong: #ffffff;
    --brand-mist:         #eef3ee;
    --brand-line:         rgba(10, 44, 74, 0.10);
    --focus-ring:         0 0 0 3px rgba(45, 156, 145, 0.42);

    /* Auth */
    --auth-ink:           #11293f;
    --auth-ink-soft:      #5b6f7c;
    --auth-surface:       rgba(250, 247, 240, 0.94);
    --auth-line:          rgba(10, 44, 74, 0.10);
    --auth-accent:        var(--brand-gold);
    --auth-accent-strong: var(--brand-gold-strong);
    --auth-accent-soft:   var(--brand-gold-soft);
    --auth-forest:        var(--brand-forest);
    --auth-forest-soft:   var(--brand-forest-soft);
    --auth-cream:         var(--brand-cream);
    --auth-shadow:        0 28px 80px rgba(8, 24, 42, 0.20);

    /* Shell */
    --shell-navy-strong:  var(--brand-night);
    --shell-navy:         var(--brand-deep);
    --shell-ink:          #11293f;
    --shell-gold:         var(--brand-gold);
    --shell-mist:         var(--brand-mist);
    --shell-card:         rgba(255, 255, 255, 0.92);
    --shell-line:         rgba(10, 44, 74, 0.08);

    /* Fundos: papel quente, sopro de teal, sem peso */
    --page-bg:
        radial-gradient(circle at 12% 8%,  rgba(45, 156, 145, 0.10), transparent 32%),
        radial-gradient(circle at 88% 18%, rgba(90, 171, 30, 0.05),  transparent 28%),
        linear-gradient(180deg, #fbf8f1 0%, #f0ede4 100%);
    --page-bg-authenticated:
        radial-gradient(circle at 14% 6%,  rgba(45, 156, 145, 0.07), transparent 30%),
        radial-gradient(circle at 86% 12%, rgba(10, 44, 74, 0.05),   transparent 30%),
        linear-gradient(180deg, #f7f4ec 0%, #ebe8df 100%);
    --app-shell-bg:
        radial-gradient(circle at 12% 8%,  rgba(45, 156, 145, 0.08), transparent 24%),
        radial-gradient(circle at 88% 14%, rgba(10, 44, 74, 0.05),   transparent 26%),
        linear-gradient(180deg, #f7f5ed 0%, #ebe9e0 100%);

    /* Auth: hero usa marinho profundo, mas com transição suave para teal */
    --auth-screen-bg:
        radial-gradient(circle at 16% 20%, rgba(45, 156, 145, 0.22), transparent 24%),
        radial-gradient(circle at 84% 78%, rgba(90, 171, 30, 0.10),  transparent 26%),
        linear-gradient(135deg, #08182a 0%, #0a2c4a 38%, #1d544f 70%, #2d9c91 100%);
    --auth-hero-panel-bg:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)),
        radial-gradient(circle at top right, rgba(45, 156, 145, 0.18), transparent 26%),
        linear-gradient(160deg, rgba(8, 24, 42, 0.94) 0%, rgba(10, 44, 74, 0.92) 50%, rgba(29, 84, 79, 0.86) 100%);

    --surface-card-bg:
        radial-gradient(circle at top right, rgba(45, 156, 145, 0.10), transparent 26%),
        linear-gradient(180deg, rgba(255,255,255,0.86) 0%, rgba(250, 247, 240, 0.96) 100%);
    --surface-card-glow:  rgba(45, 156, 145, 0.08);
    --top-bar-bg:         #0a2c4a;
    --spotlight-hero-bg:  linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-forest) 56%, var(--brand-forest-soft) 100%);

    --analyses-bg:
        radial-gradient(circle at top left,  rgba(45, 156, 145, 0.10), transparent 20%),
        radial-gradient(circle at top right, rgba(10, 44, 74,  0.06),  transparent 24%),
        linear-gradient(180deg, #faf7ef 0%, #efece4 48%, #e9e6dd 100%);
}

body {
    font-family: "Manrope", "Avenir Next", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: var(--page-bg);
    overflow: hidden;
    color: var(--shell-ink);
}

/* ── AURORA — claro e arejado, teal mais saturado ───────────────── */
:root[data-site-theme="aurora"],
body[data-site-theme="aurora"] {
    --brand-night:        #0e2538;
    --brand-deep:         #0d3a5c;
    --brand-forest:       #186f67;
    --brand-forest-soft:  #1faea0;
    --brand-moss:         #6cc424;
    --brand-gold:         #1faea0;
    --brand-gold-strong:  #138a7e;
    --brand-gold-soft:    rgba(31, 174, 160, 0.16);
    --brand-mist:         #e6f1ec;
    --brand-line:         rgba(13, 58, 92, 0.10);
    --auth-ink:           #0d3a5c;
    --auth-ink-soft:      #51718a;
    --shell-ink:          #0d3a5c;
    --shell-line:         rgba(13, 58, 92, 0.08);

    --page-bg:
        radial-gradient(circle at 10% 6%,  rgba(31, 174, 160, 0.14), transparent 30%),
        radial-gradient(circle at 90% 16%, rgba(108, 196, 36, 0.06), transparent 28%),
        linear-gradient(180deg, #f4faf6 0%, #e6efe9 100%);
    --page-bg-authenticated:
        radial-gradient(circle at 12% 8%,  rgba(31, 174, 160, 0.10), transparent 28%),
        radial-gradient(circle at 88% 14%, rgba(13, 58, 92,  0.07),  transparent 28%),
        linear-gradient(180deg, #f0f6f2 0%, #e2e9e3 100%);
    --app-shell-bg:
        radial-gradient(circle at 12% 8%,  rgba(31, 174, 160, 0.10), transparent 22%),
        radial-gradient(circle at 88% 14%, rgba(13, 58, 92,  0.07),  transparent 24%),
        linear-gradient(180deg, #f1f7f3 0%, #e3eae4 100%);
    --auth-screen-bg:
        radial-gradient(circle at 18% 18%, rgba(31, 174, 160, 0.24), transparent 22%),
        radial-gradient(circle at 82% 78%, rgba(108, 196, 36, 0.14), transparent 26%),
        linear-gradient(135deg, #0e2538 0%, #0d3a5c 32%, #186f67 66%, #1faea0 100%);
    --auth-hero-panel-bg:
        linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03)),
        radial-gradient(circle at top right, rgba(31, 174, 160, 0.22), transparent 26%),
        linear-gradient(155deg, rgba(14, 37, 56, 0.95) 0%, rgba(13, 58, 92, 0.9) 48%, rgba(24, 111, 103, 0.84) 100%);
    --surface-card-bg:
        radial-gradient(circle at top right, rgba(31, 174, 160, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(244, 250, 247, 0.98) 100%);
    --surface-card-glow:  rgba(31, 174, 160, 0.1);
    --top-bar-bg:         #0d3a5c;
    --analyses-bg:
        radial-gradient(circle at top left,  rgba(31, 174, 160, 0.14), transparent 18%),
        radial-gradient(circle at top right, rgba(13, 58, 92,  0.08),  transparent 24%),
        linear-gradient(180deg, #f4faf6 0%, #e9f0eb 46%, #dde6df 100%);
    --focus-ring:         0 0 0 3px rgba(31, 174, 160, 0.45);
}

/* ── NIGHT — noturno sóbrio, teal escuro ────────────────────────── */
:root[data-site-theme="night"],
body[data-site-theme="night"] {
    --brand-night:        #050d18;
    --brand-deep:         #0a1d33;
    --brand-forest:       #0e3f47;
    --brand-forest-soft:  #18857c;
    --brand-moss:         #4a9e1c;
    --brand-gold:         #18857c;
    --brand-gold-strong:  #0e655e;
    --brand-gold-soft:    rgba(24, 133, 124, 0.20);
    --brand-mist:         #dee5df;
    --brand-line:         rgba(10, 29, 51, 0.16);
    --auth-ink:           #0a1d33;
    --auth-ink-soft:      #44586a;
    --shell-ink:          #0a1d33;
    --shell-line:         rgba(10, 29, 51, 0.12);

    --page-bg:
        radial-gradient(circle at 10% 6%,  rgba(24, 133, 124, 0.16), transparent 28%),
        radial-gradient(circle at 88% 16%, rgba(74, 158, 28, 0.08),  transparent 28%),
        linear-gradient(180deg, #ecf0ec 0%, #dee3df 100%);
    --page-bg-authenticated:
        radial-gradient(circle at 12% 8%,  rgba(24, 133, 124, 0.12), transparent 26%),
        radial-gradient(circle at 88% 14%, rgba(74, 158, 28,  0.07), transparent 26%),
        linear-gradient(180deg, #eef2ec 0%, #dde2dd 100%);
    --app-shell-bg:
        radial-gradient(circle at 12% 8%,  rgba(24, 133, 124, 0.12), transparent 22%),
        radial-gradient(circle at 88% 14%, rgba(10, 29, 51,  0.10),  transparent 24%),
        linear-gradient(180deg, #eef2ec 0%, #dee3df 100%);
    --auth-screen-bg:
        radial-gradient(circle at 16% 20%, rgba(24, 133, 124, 0.22), transparent 22%),
        radial-gradient(circle at 84% 78%, rgba(74, 158, 28, 0.14),  transparent 26%),
        linear-gradient(135deg, #050d18 0%, #0a1d33 38%, #0e3f47 68%, #18857c 100%);
    --auth-hero-panel-bg:
        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
        radial-gradient(circle at top right, rgba(24, 133, 124, 0.18), transparent 26%),
        linear-gradient(155deg, rgba(5, 13, 24, 0.98) 0%, rgba(10, 29, 51, 0.95) 48%, rgba(14, 63, 71, 0.86) 100%);
    --surface-card-bg:
        radial-gradient(circle at top right, rgba(24, 133, 124, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,0.88) 0%, rgba(238, 242, 236, 0.98) 100%);
    --surface-card-glow:  rgba(24, 133, 124, 0.12);
    --top-bar-bg:         #050d18;
    --analyses-bg:
        radial-gradient(circle at top left,  rgba(24, 133, 124, 0.14), transparent 18%),
        radial-gradient(circle at top right, rgba(74, 158, 28,  0.10),  transparent 24%),
        linear-gradient(180deg, #eef2ec 0%, #dde5df 46%, #d2dad3 100%);
    --focus-ring:         0 0 0 3px rgba(24, 133, 124, 0.5);
}

.app-shell {
    position: relative;
    min-height: 100vh;
    background: var(--app-shell-bg);
}

.app-shell[hidden] {
    display: none !important;
}

.auth-screen[hidden] {
    display: none !important;
}

.auth-screen {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: stretch;
    justify-content: center;
    background: var(--auth-screen-bg);
    color: #fdf8ef;
    padding: clamp(16px, 2.6vw, 30px);
    overflow: auto;
    overscroll-behavior: contain;
}

.auth-screen::before,
.auth-screen::after {
    content: "";
    position: absolute;
    pointer-events: none;
    filter: blur(12px);
}

.auth-screen::before {
    width: 360px;
    height: 360px;
    border-radius: 50%;
    top: -80px;
    left: -70px;
    background: rgba(214, 171, 88, 0.16);
}

.auth-screen::after {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    bottom: -90px;
    right: -60px;
    background: rgba(84, 142, 113, 0.16);
}

.auth-screen[data-auth-mode="login"] {
    --auth-accent: var(--brand-gold);
    --auth-accent-strong: var(--brand-gold-strong);
    --auth-accent-soft: var(--brand-gold-soft);
}

.auth-screen[data-auth-mode="client"] {
    --auth-accent: #73b28a;
    --auth-accent-strong: #3d7f61;
    --auth-accent-soft: rgba(115, 178, 138, 0.18);
}

.auth-screen[data-auth-mode="admin"] {
    --auth-accent: #d7a461;
    --auth-accent-strong: #9a6b2b;
    --auth-accent-soft: rgba(215, 164, 97, 0.22);
}

.auth-screen-shell {
    position: relative;
    z-index: 1;
    width: min(1240px, 100%);
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
    gap: clamp(18px, 2vw, 28px);
    align-items: stretch;
}

.auth-hero-panel,
.auth-card {
    position: relative;
    border-radius: 32px;
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: var(--auth-shadow);
    overflow: hidden;
}

.auth-hero-panel {
    display: grid;
    grid-template-rows: 1fr auto;
    align-content: stretch;
    gap: 12px;
    padding: clamp(20px, 2.4vw, 28px);
    min-height: min(940px, calc(100dvh - 64px));
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)),
        radial-gradient(circle at top right, rgba(214, 171, 88, 0.18), transparent 25%),
        linear-gradient(160deg, rgba(10, 26, 29, 0.92) 0%, rgba(15, 45, 40, 0.9) 50%, rgba(27, 68, 59, 0.86) 100%);
    backdrop-filter: blur(16px);
}

.auth-hero-ambient {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.auth-hero-ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 18, 20, 0.18) 0%, rgba(8, 24, 26, 0.52) 58%, rgba(10, 28, 24, 0.76) 100%),
        radial-gradient(circle at 78% 24%, rgba(214, 171, 88, 0.16), transparent 24%);
}

.auth-hero-ambient-image,
.auth-hero-ambient-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-hero-ambient-image {
    opacity: 0.28;
    transform: scale(1.04);
    filter: blur(1px) saturate(0.95);
}

.auth-hero-ambient-video {
    opacity: 0.42;
    mix-blend-mode: screen;
}

.auth-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(125deg, transparent 0%, rgba(255,255,255,0.05) 32%, transparent 54%),
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,0.03) 0,
            rgba(255,255,255,0.03) 1px,
            transparent 1px,
            transparent 84px
        );
    pointer-events: none;
}

.auth-card {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.78) 0%, rgba(252,248,240,0.94) 100%);
    color: var(--auth-ink);
    padding: clamp(22px, 2.6vw, 32px);
    display: grid;
    align-content: start;
    gap: 20px;
    backdrop-filter: blur(22px);
    min-height: 0;
    max-height: calc(100dvh - 64px);
    overflow: auto;
    scrollbar-gutter: stable;
}

.auth-card-head {
    display: grid;
    gap: 12px;
}

.auth-card-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.auth-card-brandmark,
.auth-hero-logo {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
}

.auth-hero-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.auth-hero-brandlockup {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.auth-hero-brandtext,
.auth-hero-copy,
.auth-hero-pills,
.auth-hero-visual-frame,
.auth-hero-metrics,
.auth-theme-showcase {
    position: relative;
    z-index: 1;
}

.auth-hero-brandtext {
    display: grid;
    gap: 4px;
}

.auth-hero-brandtext span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(246, 236, 220, 0.72);
}

.auth-hero-brandtext strong {
    font-size: 20px;
    line-height: 1;
    color: #ffffff;
}

.auth-hero-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    color: #fff5df;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.auth-hero-link:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.28);
}

.auth-hero-copy {
    display: grid;
    gap: 12px;
}

.auth-hero-eyebrow {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(214, 171, 88, 0.38);
    background: rgba(214, 171, 88, 0.12);
    color: #f3dca0;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.auth-hero-copy h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(32px, 3.3vw, 46px);
    line-height: 1;
    letter-spacing: -0.02em;
    color: #fff8ec;
    max-width: 18ch;
    margin: 0;
}

.auth-hero-copy p {
    max-width: 38ch;
    font-size: 14.5px;
    line-height: 1.65;
    color: rgba(248, 242, 230, 0.82);
    margin: 0;
}

.auth-hero-visual-frame {
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.12);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
    padding: 12px;
}

.auth-hero-visual-stage {
    position: relative;
    min-height: 320px;
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 22%, rgba(214, 171, 88, 0.24), transparent 24%),
        linear-gradient(145deg, rgba(9, 30, 34, 0.9) 0%, rgba(17, 48, 45, 0.84) 50%, rgba(28, 64, 54, 0.8) 100%);
}

.auth-hero-visual {
    display: block;
    width: 100%;
    border-radius: 20px;
}

.auth-hero-visual-illustration,
.auth-hero-visual-poster,
.auth-hero-visual-video {
    position: absolute;
}

.auth-hero-visual-illustration {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
}

.auth-hero-visual-poster {
    right: 18px;
    bottom: 18px;
    width: 144px;
    height: 144px;
    object-fit: cover;
    border-radius: 28px;
    opacity: 0.16;
    filter: blur(1px);
}

.auth-hero-visual-video {
    right: 24px;
    bottom: 24px;
    width: clamp(120px, 24%, 164px);
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 22px 42px rgba(5, 17, 23, 0.34);
    background: rgba(255,255,255,0.06);
}

.auth-hero-visual-caption {
    position: absolute;
    left: 20px;
    right: 172px;
    bottom: 20px;
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(8, 28, 31, 0.58);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
}

.auth-hero-visual-caption span {
    color: rgba(247, 237, 218, 0.78);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-hero-visual-caption strong {
    color: #fff8ee;
    font-size: 14px;
    line-height: 1.45;
}

.auth-theme-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 112px));
    gap: 8px;
    justify-self: end;
    align-self: end;
    position: relative;
    z-index: 1;
}

.auth-theme-showcase-floating {
    position: fixed;
    right: clamp(16px, 2vw, 28px);
    bottom: clamp(16px, 2vw, 24px);
    z-index: 20;
    padding: 8px;
    border-radius: 18px;
    background: rgba(6, 18, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.auth-theme-card {
    appearance: none;
    font: inherit;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(12, 31, 28, 0.48);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.auth-theme-card[data-theme-option="terra"] {
    background:
        linear-gradient(160deg, rgba(4, 21, 27, 0.62) 0%, rgba(23, 59, 53, 0.58) 60%, rgba(45, 156, 145, 0.38) 100%);
}

.auth-theme-card[data-theme-option="aurora"] {
    background:
        linear-gradient(160deg, rgba(16, 40, 59, 0.54) 0%, rgba(32, 87, 106, 0.5) 58%, rgba(216, 176, 106, 0.34) 100%);
}

.auth-theme-card[data-theme-option="night"] {
    background:
        linear-gradient(160deg, rgba(5, 8, 20, 0.68) 0%, rgba(16, 26, 52, 0.62) 56%, rgba(48, 70, 127, 0.46) 100%);
}

.auth-theme-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.16);
}

.auth-theme-card-active,
.auth-theme-card.is-active {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.08) 100%);
    border-color: rgba(214, 171, 88, 0.36);
    box-shadow: 0 18px 34px rgba(4, 21, 27, 0.14);
}

.auth-theme-card-head {
    display: block;
}

.auth-theme-card-head strong {
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #fff8ee;
}

.auth-theme-swatches {
    display: flex;
    gap: 4px;
}

.auth-theme-swatches span {
    flex: 1 1 0;
    height: 18px;
    border-radius: 999px;
    background: var(--swatch);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
}

.auth-brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: rgba(18, 54, 49, 0.08);
    color: #305650;
}

.auth-card-head h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(38px, 4vw, 52px);
    line-height: 0.94;
    letter-spacing: -0.02em;
    color: var(--auth-ink);
}

.auth-card-copy {
    font-size: 14px;
    line-height: 1.75;
    color: var(--auth-ink-soft);
}

.auth-card-glance {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.auth-card-glance article {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 20px;
    background: rgba(18, 54, 49, 0.05);
    border: 1px solid rgba(18, 54, 49, 0.08);
}

.auth-card-glance strong {
    font-size: 14px;
    color: var(--auth-ink);
}

.auth-card-glance span {
    font-size: 12px;
    line-height: 1.6;
    color: var(--auth-ink-soft);
}

.auth-card-tabs {
    display: inline-grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border-radius: 20px;
    background: rgba(18, 54, 49, 0.07);
    position: sticky;
    top: 0;
    z-index: 2;
    backdrop-filter: blur(12px);
}

.auth-tab-button {
    border: none;
    border-radius: 16px;
    background: transparent;
    color: #5b6d69;
    font-size: 12px;
    font-weight: 800;
    padding: 13px 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-tab-button.is-active {
    background: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,249,238,1) 100%);
    color: var(--auth-accent-strong);
    box-shadow: 0 16px 38px rgba(31, 62, 98, 0.12);
    transform: translateY(-1px);
}

.auth-panel {
    display: grid;
    gap: 18px;
    min-height: 0;
}

.auth-panel-head {
    display: grid;
    gap: 8px;
}

.auth-panel-head h2 {
    font-size: 25px;
    line-height: 1.1;
    color: var(--auth-ink);
}

.auth-panel-head p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--auth-ink-soft);
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -4px 2px 2px;
    flex-wrap: wrap;
}

.auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12.5px;
    color: var(--auth-ink-soft);
    user-select: none;
}

.auth-remember input[type="checkbox"] {
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    border: 1.5px solid rgba(18, 54, 49, 0.28);
    background: #ffffff;
    cursor: pointer;
    display: inline-grid;
    place-items: center;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.auth-remember input[type="checkbox"]::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: transparent;
    transition: background 0.18s ease, transform 0.18s ease;
    transform: scale(0.6);
}

.auth-remember input[type="checkbox"]:checked {
    border-color: var(--auth-accent-strong);
    background: var(--auth-accent-strong);
}

.auth-remember input[type="checkbox"]:checked::after {
    background: #ffffff;
    transform: scale(1);
}

.auth-remember:hover {
    color: var(--auth-ink);
}

.auth-linklike {
    background: none;
    border: none;
    padding: 0;
    color: var(--auth-accent-strong);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0;
    text-transform: none;
    transition: color 0.18s ease, text-decoration-color 0.18s ease;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
}

.auth-linklike:hover {
    text-decoration-color: currentColor;
}

.auth-quick-details {
    border: 1px solid rgba(18, 54, 49, 0.1);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.84) 0%, rgba(247,242,232,0.9) 100%);
    padding: 12px 14px;
}

.auth-quick-details > summary {
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    color: var(--auth-ink);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-quick-details > summary::-webkit-details-marker {
    display: none;
}

.auth-quick-details > summary::after {
    content: "▾";
    font-size: 12px;
    color: #7a806f;
}

.auth-quick-details[open] {
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(246,239,224,0.96) 100%);
}

.auth-quick-details[open] > summary::after {
    content: "▴";
}

.auth-quick-details .auth-quick-logins {
    display: grid;
    gap: 12px;
    padding: 10px 0 2px;
    background: transparent;
}

.auth-quick-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-quick-head strong {
    font-size: 13px;
    color: var(--auth-ink);
}

.auth-quick-head span {
    font-size: 12px;
    color: var(--auth-ink-soft);
}

.auth-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.auth-quick-btn {
    border: 1px solid rgba(18, 54, 49, 0.1);
    border-radius: 16px;
    padding: 12px 12px;
    background: rgba(255,255,255,0.88);
    color: var(--auth-ink);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-quick-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(45, 156, 145, 0.32);
    box-shadow: 0 10px 22px rgba(23, 50, 74, 0.09);
}

.auth-quick-hint {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: var(--auth-ink-soft);
}

.auth-quick-hint code {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(18, 54, 49, 0.08);
    color: var(--auth-ink);
    font-size: 12px;
    font-weight: 700;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.auth-field {
    display: grid;
    gap: 8px;
}

.auth-field.span-2 {
    grid-column: 1 / -1;
}

.auth-field span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #62746f;
}

.auth-input-shell {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid rgba(18, 54, 49, 0.12);
    border-radius: 18px;
    padding: 0 14px;
    background: rgba(255,255,255,0.74);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input-icon {
    color: #7b8378;
    font-size: 14px;
}

.auth-input-shell input {
    border: none;
    background: transparent;
    padding: 14px 0;
}

.auth-input-shell input:focus {
    outline: none;
}

.auth-input-shell:focus-within {
    border-color: var(--auth-accent-strong);
    box-shadow: 0 0 0 4px var(--auth-accent-soft), 0 8px 22px rgba(73, 49, 13, 0.08);
    background: #ffffff;
}

.auth-input-shell:focus-within .auth-input-icon {
    color: var(--auth-accent-strong);
}

.auth-input-toggle {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(18, 54, 49, 0.08);
    color: #55655f;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.auth-input-toggle:hover {
    background: rgba(18, 54, 49, 0.14);
    color: var(--auth-ink);
    transform: translateY(-1px);
}

.auth-field input {
    width: 100%;
    min-width: 0;
    border: 1px solid rgba(18, 54, 49, 0.12);
    border-radius: 18px;
    padding: 14px 15px;
    font-size: 13px;
    background: rgba(255,255,255,0.74);
    color: var(--auth-ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-field input::placeholder {
    color: #97a198;
}

.auth-field > input:focus {
    outline: none;
    border-color: var(--auth-accent);
    box-shadow: 0 0 0 4px var(--auth-accent-soft);
    background: rgba(255,255,255,0.96);
}

.auth-details {
    border: 1px dashed rgba(18, 54, 49, 0.18);
    border-radius: 20px;
    padding: 0;
    background: rgba(18, 54, 49, 0.03);
    overflow: hidden;
}

.auth-details summary {
    cursor: pointer;
    font-weight: 800;
    font-size: 12px;
    padding: 14px 16px;
    list-style: none;
    color: var(--auth-ink);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-details summary::-webkit-details-marker {
    display: none;
}

.auth-details[open] summary {
    border-bottom: 1px dashed rgba(18, 54, 49, 0.14);
}

.auth-details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 16px;
}

.auth-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    border-radius: 18px;
    padding: 15px 18px;
    background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-strong) 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.auth-primary-btn > i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.auth-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(73, 49, 13, 0.24);
}

.auth-primary-btn:hover > i {
    transform: translateX(3px);
}

.auth-primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-feedback {
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.55;
    background: rgba(18, 54, 49, 0.08);
    color: var(--auth-ink);
}

.auth-feedback[data-tone="error"] {
    background: #fff0ef;
    color: #a33d2f;
}

.auth-feedback[data-tone="success"] {
    background: #edf8ef;
    color: #236340;
}

.auth-card-footnote {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    border-radius: 18px;
    background: rgba(18, 54, 49, 0.06);
    color: var(--auth-ink-soft);
    font-size: 12px;
    line-height: 1.65;
}

.auth-card-footnote i {
    color: var(--auth-accent-strong);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--top-bar-height);
    background: var(--top-bar-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 1000;
    box-shadow: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Status Banner (erros de API sem travar o mapa) */
.status-banner {
    position: fixed;
    top: calc(var(--top-bar-height) + 10px);
    left: 320px;
    right: 20px;
    z-index: 1100;
    display: none;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(220, 53, 69, 0.95);
    color: white;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.status-banner.show {
    display: block;
}

body[data-app-view="analises"] .status-banner {
    top: auto;
    bottom: 24px;
    left: 344px;
    right: 24px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0;
    color: white;
    min-width: 0;
}

.logo-mark {
    position: relative;
    width: 142px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255,255,255,0.12);
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(2, 19, 26, 0.14);
}

.logo-mark span {
    position: absolute;
    display: block;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(45, 156, 145,0.92) 100%);
}

.logo-mark span:nth-child(1) {
    width: 20px;
    height: 4px;
    left: 10px;
    top: 10px;
}

.logo-mark span:nth-child(2) {
    width: 24px;
    height: 4px;
    left: 8px;
    top: 19px;
}

.logo-mark span:nth-child(3) {
    width: 16px;
    height: 4px;
    left: 12px;
    top: 28px;
}

.logo-copy {
    display: none;
    gap: 2px;
    min-width: 0;
}

.logo-text {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
}

.top-nav-tabs {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.top-nav-tab {
    position: relative;
    border: none;
    background: transparent;
    color: rgba(255,255,255,0.64);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.top-nav-tab:hover {
    color: #ffffff;
    background: rgba(255,255,255,0.05);
}

.top-nav-tab.is-active {
    background: transparent;
    color: #ffffff;
    box-shadow: none;
}

.top-nav-tab.is-active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-gold, #2d9c91);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.search-container {
    display: flex;
    align-items: center;
    min-width: 0;
}

.search-group {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.96);
    border-radius: 12px;
    padding: 4px 10px 4px 12px;
    box-shadow: 0 4px 12px rgba(8, 22, 37, 0.08);
    gap: 6px;
    min-width: 0;
    border: 1px solid rgba(255,255,255,0.40);
}

.search-icon {
    color: #666;
    flex-shrink: 0;
}

.search-input {
    border: none;
    background: transparent;
    padding: 6px 8px;
    font-size: 13px;
    width: 180px;
    outline: none;
    min-width: 0;
}

.search-mode-select {
    border: none;
    border-right: 1px solid rgba(21, 56, 62, 0.14);
    background: transparent;
    color: #24433d;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 8px 6px 0;
    max-width: 120px;
    outline: none;
}

.search-input::placeholder {
    color: #999;
}

.top-nav-tab:focus-visible,
.auth-tab-button:focus-visible,
.auth-theme-card:focus-visible,
.auth-primary-btn:focus-visible,
.auth-quick-btn:focus-visible,
.auth-input-toggle:focus-visible,
.auth-hero-link:focus-visible,
.top-btn:focus-visible,
.section-action-btn:focus-visible,
.section-toggle:focus-visible,
.map-thumb:focus-visible,
.control-btn:focus-visible,
.analysis-primary-btn:focus-visible,
.analysis-secondary-btn:focus-visible,
.analysis-ghost-btn:focus-visible,
.analysis-inline-btn:focus-visible,
.filter-chip:focus-visible,
.filter-link-btn:focus-visible,
.active-filter-chip:focus-visible,
.selection-summary-toggle:focus-visible,
.close:focus-visible,
.btn:focus-visible,
.search-input:focus-visible,
.filter-select:focus-visible,
.filter-input:focus-visible,
.auth-field input:focus-visible,
.auth-client-select:focus-visible,
.style-range:focus-visible,
.style-color-input:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.top-bar-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.top-bar-action-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.auth-userbar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.auth-role-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    border-radius: 4px;
    padding: 0 6px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.72);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-role-pill[data-role="admin"],
.auth-role-pill[data-role="master"] {
    background: rgba(45, 156, 145, 0.18);
    color: #aae5dc;
}

.auth-client-select {
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(10, 23, 42, 0.18);
    color: #ffffff;
    border-radius: 8px;
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
    min-width: 156px;
    max-width: 220px;
}

.top-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.88);
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    gap: 7px;
    box-shadow: none;
}

.top-btn:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.18);
    color: #ffffff;
}

/* Sidebar colapsado no desktop: vira menu retratil sobre o mapa */
body.has-sidebar-collapsed .sidebar,
.sidebar.is-collapsed-desktop {
    display: none;
}

body.has-sidebar-collapsed #map {
    left: 8px;
}


.top-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.top-btn-report {
    position: relative;
    width: auto;
    min-width: 40px;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: none;
}
.top-btn-report:hover {
    background: rgba(45, 156, 145, 0.14);
    border-color: rgba(45, 156, 145, 0.42);
    color: #ffffff;
}

.top-btn-account {
    width: auto;
    min-width: 40px;
    height: 34px;
    padding: 0 12px;
    border-radius: 8px;
}

.top-btn-account .top-btn-label {
    display: inline;
}

.account-menu {
    position: relative;
}

.account-menu-caret {
    font-size: 11px;
    opacity: 0.72;
}

.account-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    padding: 6px;
    border-radius: 10px;
    background: #0b1c2f;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.32);
    z-index: 1200;
}

.account-menu-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    min-width: 0;
}

.account-menu-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(45, 156, 145, 0.85), rgba(31, 122, 114, 0.9));
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    flex-shrink: 0;
    text-transform: uppercase;
}

.account-menu-identity-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    overflow: hidden;
    flex: 1;
}

.account-menu-identity-line {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.account-menu-identity-text strong {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.account-menu-identity-text span {
    font-size: 11px;
    color: rgba(255,255,255,0.54);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-menu-workspace {
    font-size: 10px;
    color: rgba(255,255,255,0.42);
    letter-spacing: 0.02em;
    font-weight: 500;
}

.account-menu-workspace::before {
    content: "↳ ";
    opacity: 0.6;
}

.account-menu-section {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.account-menu-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #e7eef6;
    font-size: 13px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.account-menu-item:hover {
    background: rgba(255,255,255,0.06);
    color: #ffffff;
}

.account-menu-item:focus-visible {
    outline: none;
    background: rgba(255,255,255,0.08);
    box-shadow: inset 0 0 0 1px rgba(45, 156, 145, 0.5);
}

.account-menu-item i {
    width: 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.account-menu-item:hover i {
    color: rgba(255,255,255,0.9);
}

.account-menu-item-danger {
    color: #f0a5a5;
}

.account-menu-item-danger i {
    color: rgba(240, 165, 165, 0.7);
}

.account-menu-item-danger:hover {
    background: rgba(194, 65, 65, 0.14);
    color: #ffbcbc;
}

.account-menu-item-danger:hover i {
    color: #ffbcbc;
}

.account-menu-divider {
    height: 1px;
    margin: 4px 0;
    background: rgba(255,255,255,0.08);
}

.account-menu-theme {
    display: grid;
    padding: 6px 4px;
}

.account-menu-theme-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.account-menu-theme-opt {
    min-height: 28px;
    padding: 0 6px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    background: transparent;
    color: rgba(255,255,255,0.72);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.account-menu-theme-opt:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-color: rgba(255,255,255,0.2);
}

.account-menu-theme-opt.is-active,
.account-menu-theme-opt[aria-checked="true"] {
    background: rgba(45, 156, 145, 0.2);
    border-color: rgba(45, 156, 145, 0.5);
    color: #fff;
}

.top-btn-label {
    display: none;
    font-size: 12px;
    font-weight: 700;
}

.top-btn-report .top-btn-label {
    display: inline;
}

.report-selection-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ffb703;
    color: #17324a;
    font-size: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(255, 183, 3, 0.35);
}

/* Sidebar */
.sidebar {
    position: fixed;
    left: auto;
    right: 20px;
    top: calc(var(--top-bar-height) + 66px);
    width: min(340px, calc(100vw - 40px));
    max-height: calc(100vh - var(--top-bar-height) - 90px);
    height: auto;
    background:
        linear-gradient(180deg, rgba(2, 19, 26, 0.96) 0%, rgba(6, 24, 31, 0.96) 100%);
    border: 1px solid rgba(214, 198, 165, 0.16);
    box-shadow: 0 24px 54px rgba(2, 19, 26, 0.38);
    z-index: 999;
    overflow-y: auto;
    padding: 14px 12px 16px;
    border-radius: 12px;
    color: #f4f8ff;
    transition: transform 0.18s ease, opacity 0.18s ease;
    scrollbar-width: thin;
    scrollbar-color: rgba(45, 156, 145, 0.26) transparent;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(45, 156, 145, 0.22);
    border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(45, 156, 145, 0.4);
}

.sidebar-backdrop {
    position: fixed;
    inset: var(--top-bar-height) 0 0 0;
    background: rgba(4, 14, 24, 0.18);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.sidebar-backdrop[hidden] {
    display: none;
}

.sidebar-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
}


/* Custom Marker */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(8, 24, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.32s cubic-bezier(0.4,0,0.2,1), visibility 0s 0.32s;
}

.modal.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.32s cubic-bezier(0.4,0,0.2,1), visibility 0s 0s;
}

.modal-content {
    background-color: white;
    margin: 0;
    padding: 0;
    border-radius: 14px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    transform: translateY(16px) scale(0.97);
    transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .modal, .modal-content { transition: none !important; }
}

.modal-content.report-modal-content {
    width: min(720px, calc(100vw - 32px));
    max-width: none;
    max-height: min(88vh, 520px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 12px;
    box-shadow:
        0 0 0 1px rgba(10, 44, 74, 0.06),
        0 24px 64px rgba(8, 24, 42, 0.18),
        0 8px 20px rgba(8, 24, 42, 0.08);
}

.modal-header {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    padding: 20px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.report-modal-header {
    align-items: center;
    gap: 14px;
    padding: 18px 22px 14px;
    background: #ffffff;
    color: #17324a;
    border-radius: 0;
    border-bottom: 1px solid rgba(23, 59, 53, 0.08);
}

.report-modal-heading {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.report-modal-heading > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.report-modal-icon {
    font-size: 22px;
    color: #2d9c91;
    opacity: 0.8;
    flex-shrink: 0;
}

.report-modal-header h2 {
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #0a2c4a;
    margin: 0;
}

.report-modal-header p {
    margin: 0;
    max-width: 64ch;
    color: #4a6a82;
    font-size: 13px;
    line-height: 1.4;
}

.close {
    border: none;
    background: transparent;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
}

.report-modal-header .close {
    color: #6b7d8e;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 22px;
    flex-shrink: 0;
    transform: none;
}

.report-modal-header .close:hover {
    background: rgba(23, 59, 53, 0.06);
    color: #17324a;
    opacity: 1;
    transform: none;
}

.report-modal-body {
    padding: 18px 22px 20px;
    background: #ffffff;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-type-selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0;
    padding: 4px;
    border: 1px solid rgba(23, 59, 53, 0.12);
    border-radius: 10px;
    background: #f3f6f4;
}

.report-type-selector legend {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    padding: 0;
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #17324a;
}

.report-type-option {
    display: grid;
    align-items: stretch;
    min-width: 0;
    min-height: 88px;
    padding: 12px 13px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #17324a;
    cursor: pointer;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.report-type-option:has(input:checked) {
    border-color: rgba(45, 156, 145, 0.42);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(20, 60, 52, 0.08);
}

.report-type-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.report-type-option:focus-within {
    outline: 2px solid rgba(45, 156, 145, 0.34);
    outline-offset: 2px;
}

.report-type-option span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.report-type-option strong {
    font-size: 14px;
    line-height: 1.25;
}

.report-type-option small {
    color: #6b7d8e;
    font-size: 12px;
    line-height: 1.35;
}

.report-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid rgba(10, 44, 74, 0.08);
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(8, 24, 42, 0.045);
}

.report-block-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(23, 59, 53, 0.06);
}

.report-block-kicker {
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #17324a;
}

.report-block-meta {
    font-size: 11px;
    color: #8899a8;
    font-variant-numeric: tabular-nums;
}

.report-brief {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(160px, 1fr);
    gap: 6px 18px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f7fbf7;
    border: 1px solid rgba(45, 156, 145, 0.12);
}

.report-brief strong {
    color: #0a2c4a;
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: 0;
}

.report-brief span {
    color: #1f7a72;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    align-self: center;
}

.report-brief p {
    grid-column: 1 / -1;
    margin: 0;
    color: #4a6a82;
    font-size: 12.5px;
    line-height: 1.45;
}

.report-public-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.report-public-card {
    padding: 16px 18px;
    border-radius: 8px;
    background: #fbfdfb;
    border: 1px solid rgba(23, 59, 53, 0.07);
    display: grid;
    gap: 10px;
    box-shadow: 0 1px 3px rgba(8, 24, 42, 0.03);
    transition: transform 0.18s, box-shadow 0.18s;
}

.report-public-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(8, 24, 42, 0.06);
}

.report-public-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.report-public-head strong {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: #17324a;
}

.report-public-source {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(23, 50, 74, 0.5);
}

.report-public-count {
    font-size: 26px;
    font-weight: 700;
    color: #17324a;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.report-public-statuses {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    line-height: 1.4;
}

.report-public-note {
    margin: 0;
    font-size: 11px;
    color: #6b7d8e;
    line-height: 1.5;
    padding-top: 4px;
}

@media (max-width: 560px) {
    .report-public-grid {
        grid-template-columns: 1fr;
    }

    .report-brief {
        grid-template-columns: 1fr;
    }

    .report-brief span {
        align-self: start;
    }
}

.report-empty {
    text-align: center;
    padding: 64px 32px;
    color: #8899a8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.report-empty-illust {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(45,156,145,0.08), rgba(45,156,145,0.18));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.report-empty-illust i {
    font-size: 28px;
    color: #2d9c91;
}

.report-empty i:not(.report-empty-illust i) {
    font-size: 32px;
    color: #c1ccd6;
}

.report-empty h3 {
    margin: 0;
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0a2c4a;
    border: none;
    padding: 0;
}

.report-empty p {
    margin: 0;
    font-size: 13px;
    color: #6b7d8e;
    max-width: 40ch;
    line-height: 1.5;
}

.report-empty-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #1f7a72;
    background: rgba(45,156,145,0.06);
    padding: 7px 16px;
    border-radius: 999px;
    margin-top: 4px;
}

.report-empty-hint i {
    font-size: 11px;
    color: #2d9c91;
}

.report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.report-kpi {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 13px 14px;
    background: #ffffff;
    border: 1px solid rgba(23, 59, 53, 0.07);
    border-radius: 8px;
    min-width: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(8, 24, 42, 0.04);
    transition: box-shadow 0.2s;
}

.report-kpi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2d9c91, #5aab1e);
    border-radius: 12px 12px 0 0;
    opacity: 0.65;
}

.report-kpi:hover {
    box-shadow: 0 4px 12px rgba(8, 24, 42, 0.08);
}

.report-kpi-icon {
    font-size: 15px;
    color: #2d9c91;
    opacity: 0.55;
}

.report-kpi-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #8899a8;
    text-transform: uppercase;
}

.report-kpi-value {
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #0a2c4a;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Summary bar between KPIs and scope ── */
.report-summary-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(29,84,79,0.05) 0%, rgba(45,156,145,0.08) 100%);
    border-radius: 8px;
    border: 1px solid rgba(45,156,145,0.12);
}

.report-summary-bar-label {
    font-size: 12px;
    font-weight: 600;
    color: #1f7a72;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.report-summary-bar-value {
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1d544f;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.report-scope-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border: 1px solid rgba(23, 59, 53, 0.07);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(8, 24, 42, 0.03);
}

.report-scope-row {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: baseline;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid rgba(23, 59, 53, 0.05);
    border-left: 1px solid rgba(23, 59, 53, 0.05);
    min-width: 0;
}

.report-scope-row:nth-child(-n+2) {
    border-top: none;
}

.report-scope-row:nth-child(2n+1) {
    border-left: none;
}

.report-scope-row dt {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #8899a8;
    text-transform: uppercase;
    position: relative;
    padding-left: 10px;
}

.report-scope-row dt::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1px;
    bottom: 1px;
    width: 2px;
    background: #2d9c91;
    border-radius: 1px;
    opacity: 0.35;
}

.report-scope-row dd {
    margin: 0;
    font-size: 13px;
    color: #17324a;
    font-weight: 500;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.report-item-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid rgba(23, 59, 53, 0.07);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(8, 24, 42, 0.03);
}

.report-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-top: 1px solid rgba(23, 59, 53, 0.05);
    transition: background 0.18s ease;
}

.report-item:first-child {
    border-top: none;
}

.report-item:hover {
    background: rgba(45, 156, 145, 0.035);
}

.report-item.is-active {
    background: rgba(45, 156, 145, 0.07);
    border-left: 3px solid #2d9c91;
    padding-left: 15px;
}

.report-item-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(45,156,145,0.08), rgba(45,156,145,0.18));
    color: #1f7a72;
    font-size: 11.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.report-item.is-active .report-item-index {
    background: linear-gradient(135deg, #2d9c91, #1f7a72);
    color: #fff;
}

.report-item-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.report-item-title {
    font-size: 13.5px;
    font-weight: 600;
    color: #0a2c4a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-item-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(45, 156, 145, 0.14);
    color: #1f7a72;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
}

.report-item-meta {
    font-size: 11.5px;
    color: #6b7d8e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-item-meta code {
    font-family: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
    font-size: 10px;
    color: #4a6a82;
    background: rgba(23, 59, 53, 0.04);
    padding: 1px 5px;
    border-radius: 4px;
}

.report-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.5;
    transition: opacity 0.18s;
}

.report-item:hover .report-item-actions {
    opacity: 1;
}

.report-item-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #6b7d8e;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.report-item-btn:hover {
    background: rgba(23, 59, 53, 0.06);
    color: #17324a;
    transform: scale(1.1);
}

.report-item-btn:focus-visible {
    outline: none;
    border-color: rgba(45, 156, 145, 0.5);
    box-shadow: 0 0 0 2px rgba(45, 156, 145, 0.18);
}

.report-item-btn-danger:hover {
    background: rgba(194, 65, 65, 0.08);
    color: #b02a2a;
}

/* Item exit animation */
@keyframes report-item-exit {
    to {
        opacity: 0;
        transform: translateX(24px);
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
    }
}

.report-item.is-removing {
    animation: report-item-exit 0.32s cubic-bezier(0.4,0,0.2,1) forwards;
}

.modal-footer {
    padding: 20px 30px;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.report-modal-footer {
    padding: 14px 22px 18px;
    background: #ffffff;
    border-top: 1px solid rgba(23, 59, 53, 0.07);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-radius: 0 0 12px 12px;
}

.report-modal-footer-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    background: transparent;
    border: none;
    color: #6b7d8e;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s ease;
}

.btn-link:hover {
    color: #17324a;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(45, 156, 145, 0.24);
}

.btn-link-danger {
    color: #a05454;
}

.btn-link-danger:hover {
    color: #7a2828;
}

.leaflet-upload-launch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 204px;
    max-width: min(326px, calc(100vw - 36px));
    padding: 9px 12px 9px 9px;
    border: 1px solid rgba(23, 59, 53, 0.12);
    border-radius: 16px;
    background: rgba(255, 253, 250, 0.96);
    color: var(--brand-forest, #173b35);
    box-shadow: 0 14px 30px rgba(4, 21, 27, 0.14), 0 1px 0 rgba(255, 255, 255, 0.88) inset;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    backdrop-filter: blur(10px) saturate(1.08);
}

.leaflet-upload-launch__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--brand-forest, #173b35) 0%, var(--brand-forest-soft, #28584f) 100%);
    color: #f6fbf9;
    font-size: 15px;
    flex-shrink: 0;
}

.leaflet-upload-launch__label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    text-align: left;
    min-width: 0;
}

.leaflet-upload-launch__title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

.leaflet-upload-launch__hint {
    display: block;
    max-width: 240px;
    overflow: hidden;
    color: #5f756f;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

.leaflet-upload-launch__status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(23, 59, 53, 0.28);
    flex: 0 0 auto;
}

.leaflet-upload-launch:hover,
.leaflet-upload-launch:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(200, 156, 83, 0.42);
    box-shadow: 0 18px 36px rgba(4, 21, 27, 0.18), 0 0 0 3px rgba(200, 156, 83, 0.12);
}

.leaflet-upload-launch:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(4, 21, 27, 0.14);
}

.leaflet-upload-launch:focus-visible {
    outline: none;
}

.leaflet-upload-launch:disabled {
    cursor: progress;
}

.leaflet-upload-launch.is-processing .leaflet-upload-launch__status {
    background: var(--brand-gold, #c89c53);
    box-shadow: 0 0 0 4px rgba(200, 156, 83, 0.16);
}

.leaflet-upload-launch.has-upload {
    border-color: rgba(45, 156, 145, 0.32);
}

.leaflet-upload-launch.has-upload .leaflet-upload-launch__status {
    background: #2d9c91;
}

.leaflet-upload-launch.has-error {
    border-color: rgba(160, 84, 84, 0.34);
}

.leaflet-upload-launch.has-error .leaflet-upload-launch__icon {
    background: linear-gradient(135deg, #7a2828 0%, #a05454 100%);
}

.leaflet-upload-launch.has-error .leaflet-upload-launch__status {
    background: #a05454;
}

.leaflet-upload-control {
    background: transparent;
    box-shadow: none;
    border: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.leaflet-upload-control .leaflet-control {
    margin-left: 14px;
    margin-bottom: 16px;
    border: none;
    background: transparent;
    box-shadow: none;
}

@media (max-width: 640px) {
    .leaflet-upload-launch__label {
        display: none;
    }
    .leaflet-upload-launch {
        min-width: 0;
        padding: 8px;
        border-radius: 14px;
    }
    .leaflet-upload-launch__icon {
        width: 40px;
        height: 40px;
    }
    .leaflet-upload-launch__status {
        position: absolute;
        right: 7px;
        bottom: 7px;
    }
}

.upload-modal-content {
    max-width: 860px;
}

.upload-modal-header {
    background: linear-gradient(135deg, #17324a 0%, #0f5132 100%);
}

.upload-modal-body {
    display: grid;
    gap: 18px;
}

.upload-hero-card {
    border-radius: 20px;
    padding: 22px;
    background:
      radial-gradient(circle at top right, rgba(255,255,255,0.25), transparent 32%),
      linear-gradient(135deg, #f3fbf5 0%, #eef7ff 100%);
    border: 1px solid #d6e9dc;
    display: grid;
    gap: 16px;
}

.upload-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #0f5132;
    margin-bottom: 8px;
}

.upload-hero-card h3 {
    margin: 0 0 8px;
    color: #17324a;
    font-size: 24px;
}

.upload-hero-card p {
    margin: 0;
    color: #476073;
    line-height: 1.6;
}

.upload-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.upload-hero-badges span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(23, 50, 74, 0.08);
    color: #17324a;
    font-size: 12px;
    font-weight: 700;
}

.upload-dropzone {
    border: 1.5px dashed #9dbba8;
    border-radius: 22px;
    padding: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
    display: flex;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus-visible,
.upload-dropzone.is-dragover {
    border-color: #198754;
    box-shadow: 0 16px 30px rgba(25, 135, 84, 0.12);
    transform: translateY(-1px);
}

.upload-dropzone:focus-visible {
    outline: none;
}

.upload-dropzone-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f5132 0%, #198754 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex: 0 0 auto;
}

.upload-dropzone-copy strong {
    display: block;
    color: #17324a;
    font-size: 17px;
    margin-bottom: 6px;
}

.upload-dropzone-copy p {
    margin: 0;
    color: #607889;
    line-height: 1.5;
}

.upload-analysis-preview {
    min-height: 120px;
}

.upload-report-card {
    border: 1px solid #dbe7ee;
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
    padding: 22px;
    box-shadow: 0 20px 40px rgba(23, 50, 74, 0.08);
}

.upload-report-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.upload-report-kicker {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(25, 135, 84, 0.12);
    color: #0f5132;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.upload-report-header h3 {
    margin: 0 0 8px 0;
    color: #17324a;
    font-size: 24px;
}

.upload-report-header p {
    margin: 0;
    color: #607889;
    line-height: 1.55;
    max-width: 640px;
}

.upload-report-badge {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 14px;
    background: #17324a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.upload-report-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
}

.upload-report-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.upload-report-metric {
    border: 1px solid #dbe7ee;
    border-radius: 16px;
    background: #fff;
    padding: 14px;
}

.upload-report-metric strong {
    display: block;
    margin-bottom: 6px;
    color: #698093;
    font-size: 12px;
    font-weight: 700;
}

.upload-report-metric span {
    display: block;
    color: #17324a;
    font-weight: 800;
    font-size: 18px;
    line-height: 1.25;
}

.upload-report-meta {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding: 4px 2px 0;
    color: #607889;
    font-size: 13px;
}

.upload-report-meta strong {
    color: #17324a;
}

.upload-report-snapshot {
    margin: 0;
    border: 1px solid #dbe7ee;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.upload-report-snapshot img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

.upload-report-snapshot figcaption {
    padding: 10px 14px 12px;
    color: #607889;
    font-size: 12px;
}

.upload-report-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.upload-report-section {
    border: 1px solid #dbe7ee;
    border-radius: 18px;
    background: #fff;
    padding: 16px;
}

.upload-report-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.upload-report-section-head h4 {
    margin: 0;
    color: #17324a;
    font-size: 15px;
}

.upload-report-findings {
    margin: 0;
    padding-left: 18px;
    color: #4d6676;
}

.upload-report-findings li + li {
    margin-top: 8px;
}

.upload-overlap-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.upload-overlap-item {
    border-top: 1px solid #edf2f5;
    padding-top: 10px;
}

.upload-overlap-item:first-child {
    border-top: none;
    padding-top: 0;
}

.upload-overlap-copy {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.upload-overlap-copy strong {
    color: #17324a;
    font-size: 13px;
}

.upload-overlap-copy span,
.upload-overlap-empty {
    color: #607889;
    font-size: 12px;
}

.upload-overlap-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.upload-overlap-meta > span {
    min-width: 52px;
    color: #17324a;
    font-size: 12px;
    font-weight: 700;
}

.upload-overlap-bar {
    position: relative;
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: #edf5f1;
    overflow: hidden;
}

.upload-overlap-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #198754 0%, #56b27c 100%);
}

.upload-analysis-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.upload-analysis-btn {
    border: none;
    border-radius: 12px;
    padding: 11px 16px;
    font-weight: 700;
    cursor: pointer;
}

.upload-analysis-btn-primary {
    background: #17324a;
    color: white;
}

.upload-analysis-btn-secondary {
    background: #edf5f1;
    color: #0f5132;
}

@media (max-width: 1100px) {
    .upload-report-hero,
    .upload-report-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .upload-dropzone {
        flex-direction: column;
        align-items: flex-start;
    }

    .upload-report-header,
    .upload-report-hero {
        grid-template-columns: 1fr;
        display: grid;
    }

    .upload-report-badge {
        width: fit-content;
    }

    .upload-report-metrics,
    .upload-report-grid {
        grid-template-columns: 1fr;
    }
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-primary {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(42, 82, 152, 0.3);
}

/* Sections */
.section {
    margin-bottom: 20px;
    border: none;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    box-shadow: none;
}

.section + .section {
    padding-top: 20px;
    position: relative;
}

.section + .section::before {
    content: "";
    position: absolute;
    top: 0;
    left: -4px;
    right: -4px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(45, 156, 145, 0.14) 18%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(45, 156, 145, 0.14) 82%,
        transparent 100%
    );
}

.section-header {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 4px 12px;
}

.section-toggle {
    flex: 1;
    border: none;
    background: transparent;
    color: rgba(45, 156, 145, 0.82);
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transition: color 0.15s ease;
}

.section-toggle::before {
    content: "";
    width: 14px;
    height: 1px;
    background: linear-gradient(90deg, rgba(45, 156, 145, 0.7), rgba(45, 156, 145, 0.1));
    flex-shrink: 0;
}

.section-toggle span {
    flex: 1;
}

.section-toggle i,
.section-header i {
    color: rgba(45, 156, 145, 0.56);
    font-size: 10px;
    transition: color 0.15s ease, transform 0.2s ease;
}

.section-toggle:hover,
.section-toggle:hover i {
    color: rgba(90, 211, 199, 1);
}

.section-action-btn {
    border: none;
    background: transparent;
    color: rgba(219, 233, 255, 0.48);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
}

.section-action-btn:hover {
    color: #ffffff;
}

.section-content {
    padding: 0 2px;
    background: transparent;
}

/* Map Thumbnails */
.map-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 6px;
}

.map-thumb {
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 6px;
    min-height: 54px;
    background: rgba(255,255,255,0.04);
    appearance: none;
    -webkit-appearance: none;
    color: rgba(232, 242, 255, 0.82);
}

.map-thumb:hover {
    border-color: rgba(45, 156, 145, 0.42);
    background: rgba(45, 156, 145, 0.08);
    color: #ffffff;
}

.map-thumb.active {
    border-color: rgba(45, 156, 145, 0.6);
    background: rgba(45, 156, 145, 0.16);
    color: #eafaf6;
}

.map-thumb i {
    font-size: 14px;
    color: inherit;
    opacity: 0.8;
}

.map-thumb.active i {
    opacity: 1;
}

.map-thumb span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
    color: inherit;
}

/* Radio and Checkbox Groups */
.radio-group, .checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.radio-item, .checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 10px;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.radio-item:hover, .checkbox-item:hover {
    background: rgba(255,255,255,0.08);
}

.radio-item input, .checkbox-item input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.radio-custom, .checkbox-custom {
    width: 16px;
    height: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    margin-right: 10px;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}

.radio-custom {
    border-radius: 50%;
}

.checkbox-custom {
    border-radius: 4px;
}

.radio-item input:checked + .radio-custom {
    border-color: var(--brand-gold, #2d9c91);
    background: var(--brand-gold, #2d9c91);
}

.radio-item input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.checkbox-item input:checked + .checkbox-custom {
    border-color: var(--brand-gold, #2d9c91);
    background: var(--brand-gold, #2d9c91);
}

.checkbox-item input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
}

.radio-item input:focus-visible + .radio-custom,
.checkbox-item input:focus-visible + .checkbox-custom,
.disclaimer-checkbox input:focus-visible + .checkmark {
    box-shadow: var(--focus-ring);
}

/* Map Container */
.map-view-panel {
    position: relative;
    min-height: calc(100vh - var(--top-bar-height));
}

#map {
    position: fixed;
    top: calc(var(--top-bar-height) + 8px);
    left: 8px;
    right: 8px;
    bottom: 8px;
    z-index: 1;
    border: 2px solid var(--top-bar-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0, 171, 146, 0.14),
        0 16px 40px rgba(2, 19, 26, 0.18);
}


.analyses-view {
    position: fixed;
    top: var(--top-bar-height);
    left: 320px;
    right: 0;
    bottom: 0;
    z-index: 2;
    overflow: auto;
    padding: 28px 28px 34px;
    background:
        radial-gradient(circle at top left, rgba(45, 156, 145, 0.12), transparent 18%),
        radial-gradient(circle at top right, rgba(61, 132, 199, 0.16), transparent 24%),
        linear-gradient(180deg, #f7fafc 0%, #edf3f8 48%, #e8eef5 100%);
}

.analyses-shell {
    max-width: 1380px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.analyses-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(45, 156, 145, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(248, 250, 252, 0.86) 100%);
    border: 1px solid rgba(27, 61, 91, 0.08);
    box-shadow: 0 18px 40px rgba(21, 44, 70, 0.08);
}

.analyses-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    max-width: 760px;
}

.analyses-kicker {
    display: inline-flex;
    color: #24507e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.analyses-mode-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(33, 75, 117, 0.08);
    color: #214b75;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.analyses-hero h1 {
    margin: 0;
    color: #142638;
    font-size: clamp(32px, 3.1vw, 44px);
    line-height: 1.04;
    letter-spacing: 0;
}

.analyses-hero p {
    margin: 0;
    max-width: 720px;
    color: #4c6378;
    font-size: 15px;
    line-height: 1.55;
}

.analysis-ghost-btn {
    border: 1px solid rgba(33, 72, 109, 0.14);
    background: rgba(255,255,255,0.92);
    color: #17324a;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.analyses-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    align-self: center;
    min-width: min(420px, 100%);
}

.analyses-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.analysis-scope-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255,255,255,0.86);
    border: 1px solid rgba(35, 74, 111, 0.1);
    color: #24425d;
    font-size: 12px;
    font-weight: 600;
}

.analyses-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.executive-grid {
    align-items: stretch;
}

.analysis-summary-card,
.analysis-card {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(27, 61, 91, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 42px rgba(21, 44, 70, 0.08);
}

.executive-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.executive-card > * {
    position: relative;
    z-index: 1;
}

.executive-card::after {
    content: "";
    position: absolute;
    inset: auto -18% -28% auto;
    width: 124px;
    height: 124px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(45, 156, 145,0.14) 0%, transparent 72%);
    z-index: 0;
    pointer-events: none;
}

.analysis-summary-card {
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.analysis-summary-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -30% auto;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(45, 156, 145,0.18) 0%, transparent 68%);
    pointer-events: none;
}

.analysis-summary-card strong {
    display: block;
    color: #5a7187;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.analysis-summary-card span {
    display: block;
    margin-top: 8px;
    color: #17324a;
    font-size: clamp(24px, 2.2vw, 30px);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.analysis-summary-card small {
    display: block;
    margin-top: 8px;
    color: #6e8092;
    font-size: 12px;
    line-height: 1.45;
}

.analyses-grid {
    display: grid;
    grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.analysis-card {
    padding: 20px;
}

.analysis-card h3 {
    margin: 0 0 14px;
    color: #17324a;
    font-size: 17px;
}

.analysis-card-kicker {
    display: inline-flex;
    color: #24507e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.analysis-insight-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.analysis-insight-head h3 {
    margin: 4px 0 0;
}

.analysis-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(33, 75, 117, 0.08);
    color: #214b75;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.analysis-status-pill[data-status="ready"] {
    background: rgba(29, 120, 91, 0.1);
    color: #1d785b;
}

.analysis-status-pill[data-status="error"] {
    background: rgba(180, 35, 51, 0.1);
    color: #8b1e2d;
}

.analysis-signal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.analysis-signal-card,
.analysis-public-item {
    display: grid;
    gap: 6px;
    min-width: 0;
    border: 1px solid rgba(27, 61, 91, 0.08);
    border-radius: 14px;
    background: rgba(246, 249, 252, 0.86);
    padding: 14px;
}

.analysis-signal-card strong,
.analysis-public-item strong {
    color: #6a7d90;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.analysis-signal-card span,
.analysis-public-item span {
    color: #17324a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
}

.analysis-signal-card small,
.analysis-public-item small {
    color: #63798d;
    font-size: 12px;
    line-height: 1.45;
}

.analysis-insight-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 16px;
    margin-top: 16px;
}

.analysis-insight-grid h4 {
    margin: 0 0 10px;
    color: #17324a;
    font-size: 14px;
}

.analysis-breakdown-list {
    display: grid;
    gap: 10px;
}

.analysis-breakdown-item {
    display: grid;
    gap: 6px;
}

.analysis-breakdown-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #17324a;
    font-size: 13px;
}

.analysis-breakdown-row strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.analysis-breakdown-row span {
    color: #627a90;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.analysis-breakdown-bar {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(33, 75, 117, 0.08);
}

.analysis-breakdown-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1d785b 0%, #2d9c91 100%);
}

.analysis-lulc-panel {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.analysis-lulc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.analysis-lulc-head h4 {
    margin: 4px 0 0;
}

.analysis-lulc-head > span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(29, 120, 91, 0.1);
    color: #1d785b;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.analysis-lulc-main {
    display: grid;
    grid-template-columns: minmax(170px, 0.42fr) minmax(0, 0.58fr);
    gap: 14px;
    align-items: start;
}

.analysis-lulc-dominant {
    display: grid;
    gap: 6px;
    min-width: 0;
    border: 1px solid rgba(29, 120, 91, 0.14);
    border-radius: 16px;
    background: rgba(235, 248, 244, 0.82);
    padding: 14px;
}

.analysis-lulc-dominant strong {
    color: #17324a;
    font-size: 22px;
    line-height: 1.12;
}

.analysis-lulc-dominant span {
    color: #4c6378;
    font-size: 13px;
    line-height: 1.4;
}

.analysis-lulc-years {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.analysis-lulc-year {
    display: grid;
    gap: 4px;
    min-width: 0;
    border: 1px solid rgba(27, 61, 91, 0.08);
    border-radius: 12px;
    background: rgba(246, 249, 252, 0.9);
    padding: 10px;
}

.analysis-lulc-year.is-unavailable {
    opacity: 0.62;
}

.analysis-lulc-year strong {
    color: #1d785b;
    font-size: 12px;
    font-weight: 900;
}

.analysis-lulc-year span {
    color: #17324a;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.analysis-lulc-year small {
    color: #627a90;
    font-size: 11px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.analysis-lulc-detail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.analysis-lulc-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    border: 1px solid rgba(27, 61, 91, 0.08);
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    padding: 7px 10px;
}

.analysis-lulc-detail-item strong {
    min-width: 0;
    color: #24425d;
    font-size: 12px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.analysis-lulc-detail-item span {
    color: #1d785b;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.analysis-public-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.analysis-qa-card {
    padding: 24px;
}

.analysis-qa-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.analysis-qa-head p {
    margin: 8px 0 0;
    color: #5a7187;
    font-size: 13px;
    line-height: 1.55;
}

.analysis-qa-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(33, 75, 117, 0.08);
    color: #214b75;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.analysis-qa-form {
    display: grid;
    gap: 12px;
}

.analysis-qa-input {
    width: 100%;
    min-height: 92px;
    border: 1px solid rgba(27, 61, 91, 0.12);
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.96);
    color: #17324a;
    padding: 14px 16px;
    font: inherit;
    line-height: 1.5;
    resize: vertical;
}

.analysis-qa-input::placeholder {
    color: #7890a5;
}

.analysis-qa-input:focus-visible {
    outline: 3px solid rgba(33, 75, 117, 0.18);
    outline-offset: 2px;
    border-color: rgba(33, 75, 117, 0.24);
}

.analysis-qa-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.analysis-qa-hint {
    color: #5f7387;
    font-size: 12px;
    line-height: 1.5;
}

.analysis-qa-result {
    margin-top: 14px;
    border-radius: 18px;
    border: 1px solid rgba(27, 61, 91, 0.08);
    background: rgba(246, 249, 252, 0.92);
    padding: 16px;
}

.analysis-qa-result strong {
    display: block;
    color: #6a7d90;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.analysis-qa-result p {
    margin: 8px 0 0;
    color: #17324a;
    font-size: 15px;
    line-height: 1.6;
}

.analysis-qa-result small {
    display: block;
    margin-top: 10px;
    color: #627a90;
    font-size: 12px;
}

.analysis-qa-result.is-error {
    border-color: rgba(180, 35, 51, 0.16);
    background: rgba(255, 244, 246, 0.96);
}

.analysis-qa-result.is-error p,
.analysis-qa-result.is-error strong {
    color: #8b1e2d;
}

.analysis-empty {
    color: #5a7187;
    font-size: 14px;
    line-height: 1.6;
}

.analysis-detail-list {
    display: grid;
    gap: 12px;
}

.analysis-detail-item {
    display: grid;
    gap: 4px;
}

.analysis-detail-item strong {
    color: #6a7d90;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.analysis-detail-item span {
    color: #17324a;
    font-size: 14px;
    line-height: 1.5;
}

.analysis-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.analysis-primary-btn,
.analysis-secondary-btn {
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.analysis-primary-btn {
    background: #214b75;
    color: #ffffff;
}

.analysis-primary-btn:disabled,
.analysis-secondary-btn:disabled,
.analysis-ghost-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
}

.analysis-secondary-btn {
    background: rgba(33, 75, 117, 0.08);
    color: #214b75;
}

.analysis-list-stack {
    display: grid;
    gap: 10px;
}

.analysis-list-item {
    border: 1px solid rgba(27, 61, 91, 0.08);
    border-radius: 16px;
    padding: 14px;
    background: rgba(246, 249, 252, 0.92);
}

.analysis-list-item.is-selected {
    border-color: rgba(43, 120, 255, 0.28);
    box-shadow: inset 0 0 0 1px rgba(43, 120, 255, 0.12);
}

.analysis-list-item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.analysis-list-item-head strong {
    display: block;
    color: #17324a;
    font-size: 14px;
}

.analysis-list-item-head span {
    display: block;
    margin-top: 4px;
    color: #627a90;
    font-size: 12px;
}

.analysis-list-item-area {
    color: #214b75;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.analysis-list-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 10px;
}

.analysis-list-item-meta span {
    color: #445c72;
    font-size: 12px;
}

.analysis-list-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.analysis-inline-btn {
    border: none;
    border-radius: 999px;
    background: rgba(33, 75, 117, 0.08);
    color: #214b75;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.analysis-inline-btn-danger {
    background: rgba(220, 53, 69, 0.08);
    color: #b42333;
}

.analysis-inline-btn:hover {
    filter: brightness(0.96);
}

.analysis-card.executive-card,
.analysis-qa-card.executive-card {
    background:
        radial-gradient(circle at top right, rgba(45, 156, 145,0.08), transparent 22%),
        rgba(255,255,255,0.93);
}

/* Map Controls */
.map-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-basemap-control {
    position: fixed;
    top: calc(var(--top-bar-height) + 16px);
    right: 20px;
    z-index: 1001;
}

.map-filter-control {
    position: fixed;
    top: calc(var(--top-bar-height) + 16px);
    right: 84px;
    z-index: 1001;
}

.map-filter-toggle {
    width: 54px;
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(2, 19, 26, 0.82);
    color: #f5fbff;
    box-shadow: 0 14px 30px rgba(4, 14, 24, 0.24);
    backdrop-filter: blur(14px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.map-filter-toggle span {
    display: none;
}

.map-filter-toggle:hover,
.map-filter-toggle[aria-expanded="true"] {
    background: rgba(6, 51, 60, 0.9);
    border-color: rgba(90, 211, 199, 0.42);
    color: #ffffff;
}

.map-filter-toggle i {
    color: rgba(90, 211, 199, 0.9);
}

.basemap-picker {
    position: relative;
}

.basemap-picker summary {
    width: 54px;
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    background: rgba(2, 19, 26, 0.82);
    color: #f5fbff;
    box-shadow: 0 14px 30px rgba(4, 14, 24, 0.24);
    backdrop-filter: blur(14px);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    list-style: none;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.basemap-picker summary span {
    display: none;
}

.basemap-picker summary::-webkit-details-marker {
    display: none;
}

.basemap-picker summary:hover,
.basemap-picker[open] summary {
    background: rgba(6, 51, 60, 0.9);
    border-color: rgba(90, 211, 199, 0.42);
    color: #ffffff;
}

.basemap-picker summary i {
    color: rgba(90, 211, 199, 0.9);
}

.map-thumbnails-floating {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 172px;
    grid-template-columns: 1fr;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(2, 19, 26, 0.9);
    box-shadow: 0 20px 42px rgba(4, 14, 24, 0.32);
    backdrop-filter: blur(16px);
}

.map-thumbnails-floating .map-thumb {
    min-height: 34px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 10px;
    border-radius: 8px;
}

.map-thumbnails-floating .map-thumb i {
    width: 16px;
    text-align: center;
}

.basemap-picker[open] .map-thumbnails-floating {
    animation: basemap-menu-in 0.14s ease-out;
}

.sidebar:not(.is-collapsed-desktop) {
    animation: basemap-menu-in 0.14s ease-out;
}

@keyframes basemap-menu-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.control-btn {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.92);
    border: none;
    border-radius: 18px;
    box-shadow: 0 14px 24px rgba(15, 31, 47, 0.14);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #17324a;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.layer-stack {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.layer-flow-steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    margin: 0 10px 10px;
    color: rgba(218, 231, 248, 0.72);
    font-size: 10px;
    line-height: 1.2;
}

.layer-flow-steps span {
    min-width: 0;
    padding: 6px 6px;
    border: 1px solid rgba(90, 211, 199, 0.18);
    border-radius: 8px;
    background: rgba(45, 156, 145, 0.08);
    text-align: center;
    white-space: nowrap;
}

.layer-flow-steps strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    margin-right: 4px;
    border-radius: 999px;
    background: rgba(90, 211, 199, 0.16);
    color: #77e2d6;
    font-size: 9px;
}

.layer-flow-steps i {
    color: rgba(90, 211, 199, 0.42);
    font-size: 8px;
}

.layer-section-label {
    margin: 10px 12px 4px;
    color: rgba(214, 231, 248, 0.36);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
}

.layer-section-label:first-child {
    margin-top: 0;
}

.layer-card {
    position: relative;
    border: none;
    border-radius: 10px;
    background: transparent;
    overflow: hidden;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.layer-card + .layer-card {
    margin-top: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.layer-card.active {
    background: rgba(255, 255, 255, 0.018);
}

.layer-card.open {
    background:
        linear-gradient(180deg, rgba(45, 156, 145, 0.07) 0%, rgba(45, 156, 145, 0.02) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        inset 0 -1px 0 rgba(45, 156, 145, 0.06);
}

.layer-card.open::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 2px;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(180deg, rgba(90, 211, 199, 0.95), rgba(45, 156, 145, 0.25));
    box-shadow: 0 0 8px rgba(45, 156, 145, 0.35);
}

.layer-card.is-locked {
    background: rgba(45, 156, 145, 0.045);
}

.layer-card.is-locked::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 2px;
    border-radius: 0 2px 2px 0;
    background: linear-gradient(180deg, rgba(45, 156, 145, 0.5), rgba(45, 156, 145, 0.18));
}

.layer-card.is-locked .layer-toggle {
    opacity: 0.84;
}

.layer-card.is-locked .checkbox-item {
    cursor: not-allowed;
}

.layer-card.is-locked .checkbox-custom {
    border-color: rgba(207, 231, 255, 0.3);
    background: rgba(255,255,255,0.04);
}

.layer-card.is-locked .checkbox-item input:checked + .checkbox-custom {
    border-color: rgba(207, 231, 255, 0.3);
    background: rgba(255,255,255,0.08);
}

.layer-card.is-locked .checkbox-item input:checked + .checkbox-custom::after {
    color: rgba(255,255,255,0.72);
}

.layer-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
}

.layer-toggle {
    margin: 0;
    width: auto;
    flex: 1;
    min-height: 34px;
    padding: 5px 12px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.layer-card:not(.is-locked):not(.open) .layer-toggle:hover {
    background: rgba(255, 255, 255, 0.04);
}

.layer-card.open .layer-toggle {
    background: transparent;
}

.layer-title-text {
    color: #f5fbff;
    font-weight: 600;
    letter-spacing: -0.005em;
    font-size: 13px;
    transition: color 0.15s ease;
}

.layer-card.open .layer-title-text {
    color: #ffffff;
}

.layer-summary {
    width: 100%;
    border: none;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    padding: 0 12px 4px 40px;
    text-align: left;
    color: rgba(218, 231, 248, 0.5);
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0;
    transition: color 0.2s;
}

.layer-card.is-locked .layer-summary {
    color: rgba(218, 231, 248, 0.82);
    font-style: italic;
    font-size: 10px;
}

.layer-card.is-locked .layer-summary::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 6px;
    margin-bottom: 1px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.75);
    vertical-align: middle;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.layer-summary.has-active-filters {
    color: rgba(90, 211, 199, 0.92);
    font-weight: 500;
}

.layer-summary.has-active-filters::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 8px;
    margin-bottom: 1px;
    border-radius: 50%;
    background: rgba(90, 211, 199, 0.95);
    box-shadow: 0 0 6px rgba(90, 211, 199, 0.6);
    vertical-align: middle;
}

.layer-card:not(.active) .layer-summary {
    color: rgba(176, 191, 209, 0.38);
}

.layer-filter-panel {
    display: block;
    margin: 0 8px 7px 40px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
}

.public-layer-actions {
    display: flex;
    padding: 6px 10px 8px 40px;
}

.public-layer-show-all {
    width: 100%;
    min-height: 34px;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
}

.public-layer-show-all:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.layer-card:not(.active) .layer-filter-panel {
    display: none;
}

.layer-card.is-locked:not(.active) .layer-filter-panel {
    display: block;
}

.layer-card.is-locked .layer-filter-panel {
    background: transparent;
    border: none;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.filter-grid-2 {
    grid-template-columns: 1fr;
    gap: 6px;
}

.filter-note-card,
.filter-group-card,
.filter-hero-card {
    display: grid;
    gap: 5px;
    padding: 0;
    border-radius: 0;
    border: none;
    background: transparent;
}

.filter-note-card {
    margin-bottom: 6px;
    padding: 7px 10px;
    border-radius: 7px;
    background: rgba(45, 156, 145, 0.06);
    border: 1px solid rgba(45, 156, 145, 0.14);
}

.filter-note-card-compact {
    gap: 4px;
    padding: 8px 10px;
}

.layer-card.is-locked .filter-note-card {
    background: rgba(45, 156, 145, 0.1);
    border-color: rgba(45, 156, 145, 0.22);
}

.filter-note-card strong,
.filter-group-head strong,
.filter-hero-copy strong {
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.filter-note-card p,
.filter-group-head span,
.filter-hero-copy p {
    color: rgba(220, 233, 248, 0.7);
    font-size: 10px;
    line-height: 1.4;
}

.filter-inline-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 3px;
}

.filter-hero-card {
    margin-bottom: 6px;
    padding: 0;
    background: transparent;
    border: none;
}

.filter-hero-copy {
    display: grid;
    gap: 1px;
}

.filter-hero-copy:empty {
    display: none;
}

.filter-group-card {
    margin-bottom: 6px;
    background: transparent;
}

.filter-group-head {
    display: grid;
    gap: 3px;
}

.filter-group-card .filter-section {
    gap: 6px;
}

.filter-actions {
    padding-top: 2px;
}

.filter-scope-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.filter-scope-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    color: rgba(244, 248, 255, 0.78);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0;
}

.filter-scope-chip.is-highlight {
    background: rgba(45, 156, 145, 0.12);
    border-color: rgba(45, 156, 145, 0.3);
    color: #aae5dc;
}

.filter-scope-chip.is-muted {
    color: rgba(220, 233, 248, 0.5);
}

.filter-status-pending {
    color: #ffe0a8 !important;
}

.filter-status-applied {
    color: rgba(220, 233, 248, 0.78) !important;
}

.span-2 {
    grid-column: 1 / -1;
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;
}

.filter-field label {
    color: rgba(219, 233, 255, 0.56);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.filter-section {
    display: grid;
    gap: 5px;
    padding: 0;
}

.filter-section-nested {
    margin-top: 2px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    border: none;
    display: grid;
    gap: 6px;
}

.filter-section-title {
    color: rgba(219, 233, 255, 0.56);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.filter-select,
.filter-input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.035);
    color: #f4f8ff;
    min-height: 30px;
    padding: 5px 10px;
    font-size: 11px;
    line-height: 1.2;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.filter-input-compact {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 10px;
}

.filter-select:hover,
.filter-input:hover {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.055);
}

.filter-select:focus,
.filter-input:focus {
    border-color: rgba(90, 211, 199, 0.6);
    background: rgba(255, 255, 255, 0.06);
    box-shadow:
        0 0 0 3px rgba(45, 156, 145, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.filter-select:disabled,
.filter-input:disabled {
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.32);
    cursor: not-allowed;
}

.filter-select option {
    background: #0b1e33;
    color: #f4f8ff;
}

.filter-input::placeholder {
    color: rgba(219, 233, 255, 0.3);
}

.filter-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.filter-chip-group-scroll {
    max-height: 86px;
    overflow-y: auto;
    align-content: flex-start;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(45, 156, 145, 0.52) rgba(255,255,255,0.06);
}

.filter-chip-group-scroll::-webkit-scrollbar {
    width: 6px;
}

.filter-chip-group-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 999px;
}

.filter-chip-group-scroll::-webkit-scrollbar-thumb {
    background: rgba(45, 156, 145, 0.45);
    border-radius: 999px;
}

.filter-chip-group-compact .filter-chip {
    min-height: 26px;
    padding: 3px 8px;
}

#estadoFilterUf.filter-chip-group-scroll,
#estadoFilterUf.filter-chip-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
    gap: 3px;
    max-height: none;
    overflow: visible;
    padding: 0;
}

#estadoFilterUf .filter-chip {
    justify-content: center;
    min-height: 24px;
    padding: 2px 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    gap: 2px;
    border-radius: 5px;
}

#estadoFilterUf .filter-chip.is-selected::before {
    font-size: 6px;
}

#fazFilterAno.filter-chip-group-scroll {
    max-height: 58px;
}

.filter-chip {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(244, 248, 255, 0.78);
    padding: 3px 8px;
    min-height: 24px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.filter-chip:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(45, 156, 145, 0.34);
    color: #ffffff;
}

.filter-chip.is-selected {
    background: linear-gradient(180deg, rgba(45, 156, 145, 0.26) 0%, rgba(45, 156, 145, 0.16) 100%);
    border-color: rgba(90, 211, 199, 0.55);
    color: #eafaf6;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 1px 0 rgba(0, 0, 0, 0.18);
}

.filter-chip.is-selected:hover {
    border-color: rgba(90, 211, 199, 0.75);
    color: #ffffff;
}

.filter-chip.is-selected::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    font-size: 9px;
    color: rgba(90, 211, 199, 0.95);
}

.filter-chip-empty {
    color: rgba(219, 233, 255, 0.28);
    font-size: 10px;
    font-style: italic;
    padding: 2px 0;
}

.active-filter-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
    padding: 7px 10px;
    background:
        linear-gradient(180deg, rgba(45, 156, 145, 0.08) 0%, rgba(45, 156, 145, 0.04) 100%);
    border: 1px solid rgba(45, 156, 145, 0.2);
    border-radius: 7px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.active-filter-chip-list::before {
    content: "● Ativos";
    display: block;
    width: 100%;
    color: rgba(90, 211, 199, 0.92);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(121, 180, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #eaf4ff;
    min-height: 24px;
    padding: 0 5px 0 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.active-filter-chip::after {
    content: "\f00d";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    font-size: 10px;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.18s ease;
}

.active-filter-chip:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(121, 180, 255, 0.4);
    transform: translateY(-1px);
}

.active-filter-chip:hover::after {
    background: rgba(239, 83, 80, 0.85);
}

.active-filter-chip strong {
    display: none;
}

.filter-details {
    margin-top: 3px;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

.filter-details summary {
    list-style: none;
    cursor: pointer;
    color: rgba(45, 156, 145, 0.6);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0 4px;
    border-radius: 0;
    transition: color 0.15s ease;
}

.filter-details summary:hover {
    color: rgba(90, 211, 199, 1);
    background: transparent;
}

.filter-details[open] summary {
    color: rgba(90, 211, 199, 1);
}

.filter-details > *:not(summary) {
    padding-top: 2px;
    padding-bottom: 5px;
}

.filter-details summary::-webkit-details-marker {
    display: none;
}

.filter-details summary::after {
    content: "\f067";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    color: rgba(45, 156, 145, 0.5);
    font-size: 9px;
    line-height: 1;
    transition: transform 0.2s ease, color 0.15s ease;
}

.filter-details[open] summary::after {
    content: "\f068";
    color: rgba(45, 156, 145, 0.9);
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.filter-actions-compact {
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
}

.layer-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4px;
}

.filter-btn-block {
    width: auto;
    justify-content: center;
}

.sidebar,
.sidebar button,
.sidebar input,
.sidebar select,
.sidebar label,
.sidebar summary {
    font-family: "Avenir Next", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.selection-summary-panel {
    margin-top: 4px;
    padding: 0;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 0;
    background: transparent;
}

.selection-summary-panel.is-hidden {
    display: none;
}

.selection-summary-toggle {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
    padding: 7px 0 5px;
    color: rgba(45, 156, 145, 0.6);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.15s ease;
}

.selection-summary-toggle:hover,
.selection-summary-panel[open] .selection-summary-toggle {
    color: rgba(90, 211, 199, 1);
}

.selection-summary-toggle::-webkit-details-marker {
    display: none;
}

.selection-summary-toggle::after {
    content: "\f067";
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", sans-serif;
    font-weight: 900;
    color: rgba(45, 156, 145, 0.5);
    font-size: 9px;
    line-height: 1;
}

.selection-summary-panel[open] .selection-summary-toggle::after {
    content: "\f068";
    color: rgba(45, 156, 145, 0.9);
}

.selection-summary-toggle strong {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}

.selection-summary-body {
    display: grid;
    gap: 6px;
    padding: 2px 0 6px;
}

.selection-summary-empty {
    margin: 0;
    color: rgba(218, 231, 248, 0.5);
    font-size: 11px;
    line-height: 1.45;
}

.selection-summary-list {
    display: grid;
    gap: 5px;
}

.selection-summary-item {
    display: grid;
    gap: 4px;
}

.selection-summary-item strong {
    color: rgba(214, 231, 248, 0.78);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.selection-summary-item span {
    color: #f5fbff;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-word;
}

.selection-summary-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.selection-summary-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 5px;
    background: rgba(45, 156, 145, 0.1);
    border: 1px solid rgba(45, 156, 145, 0.22);
    color: #aae5dc;
    font-size: 11px;
    font-weight: 600;
}

.filter-btn {
    position: relative;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    min-height: 32px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
        box-shadow 0.15s ease, opacity 0.15s ease;
}

.filter-btn:disabled,
.filter-link-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.filter-btn:disabled {
    box-shadow: none;
}

.filter-btn-primary {
    flex: 0 1 96px;
    background: linear-gradient(180deg, rgba(216, 176, 106, 0.98) 0%, rgba(178, 132, 64, 0.98) 100%);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12),
        0 4px 12px rgba(45, 156, 145, 0.24);
}

.filter-btn-primary:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(228, 188, 118, 1) 0%, rgba(192, 144, 76, 1) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12),
        0 6px 16px rgba(45, 156, 145, 0.34);
}

.filter-btn-primary:active:not(:disabled) {
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.18),
        0 2px 6px rgba(45, 156, 145, 0.18);
}

.filter-btn-secondary {
    background: rgba(255,255,255,0.04);
    color: rgba(231, 241, 255, 0.86);
    border: 1px solid rgba(255,255,255,0.1);
}

.filter-btn-secondary:hover:not(:disabled) {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.18);
    color: #ffffff;
}

.filter-link-btn {
    position: relative;
    border: none;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    color: rgba(45, 156, 145, 0.72);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 2px 0;
    cursor: pointer;
    transition: color 0.15s ease;
}

.filter-link-btn::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(90, 211, 199, 0.7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
}

.filter-link-btn:hover {
    color: rgba(90, 211, 199, 1);
}

.filter-link-btn:hover::after {
    transform: scaleX(1);
}

.filter-link-btn:disabled::after {
    display: none;
}

.filter-link-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.filter-link-inline {
    margin-top: 2px;
    align-self: flex-start;
}

.style-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 7px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.style-range {
    width: 100%;
    accent-color: var(--brand-gold, #2d9c91);
}

.style-range-value {
    min-width: 38px;
    text-align: right;
    color: rgba(245, 251, 255, 0.86);
    font-size: 11px;
    font-weight: 600;
}

.style-color-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 3px 8px 3px 4px;
    border-radius: 7px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}

.style-color-input {
    width: 42px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    background: rgba(255,255,255,0.96);
    padding: 2px;
    cursor: pointer;
}

.style-color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.style-color-input::-webkit-color-swatch {
    border: none;
    border-radius: 7px;
}

.style-color-value {
    color: rgba(231, 242, 255, 0.92);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.loading-spinner i {
    font-size: 30px;
    color: #2a5298;
    margin-bottom: 15px;
}

.loading-spinner p {
    color: #333;
    font-size: 16px;
}

/* Report Loading Specific */
.report-loading {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    min-width: 300px;
}

.report-loading i {
    color: white;
    font-size: 56px;
    margin-bottom: 20px;
}

.report-loading p {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.loading-progress {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 2px;
    animation: progress-animation 2s ease-in-out infinite;
}

@keyframes progress-animation {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* Brand refresh */
body.is-authenticated {
    background: var(--page-bg-authenticated);
}

.auth-hero-panel {
    isolation: isolate;
    background: var(--auth-hero-panel-bg);
}

.auth-hero-ambient {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.auth-hero-ambient::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(4, 21, 27, 0.28) 0%, rgba(4, 21, 27, 0.08) 32%, rgba(4, 21, 27, 0.58) 100%),
        radial-gradient(circle at center, rgba(255, 247, 231, 0.07) 0%, transparent 34%);
}

.auth-hero-ambient-image,
.auth-hero-ambient-video {
    position: absolute;
    inset: -8%;
    width: 116%;
    height: 116%;
    object-fit: cover;
}

.auth-hero-ambient-image {
    filter: blur(28px) saturate(1.1);
    opacity: 0.32;
}

.auth-hero-ambient-video {
    opacity: 0.2;
    mix-blend-mode: screen;
    filter: blur(6px) saturate(1.05);
}

.auth-hero-visual-frame {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.04) 100%);
}

.auth-hero-visual-stage {
    position: relative;
    min-height: 300px;
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(255, 244, 222, 0.12), transparent 44%),
        linear-gradient(145deg, rgba(4, 21, 27, 0.82) 0%, rgba(23, 59, 53, 0.78) 100%);
}

.auth-hero-visual-illustration,
.auth-hero-visual-poster,
.auth-hero-visual-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-hero-visual-illustration {
    opacity: 0.28;
    filter: saturate(0.8);
}

.auth-hero-visual-poster {
    opacity: 0.38;
    transform: scale(1.08);
    filter: blur(12px) saturate(1.1);
}

.auth-hero-visual-video {
    object-fit: contain;
    padding: 30px;
    z-index: 1;
}

.auth-hero-visual-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(4, 21, 27, 0.48);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
}

.auth-hero-visual-caption span {
    color: rgba(255, 239, 209, 0.78);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.auth-hero-visual-caption strong {
    color: #f6fbf9;
    font-size: 13px;
    line-height: 1.45;
}

.auth-card {
    background: var(--surface-card-bg);
    border-color: rgba(23, 59, 53, 0.1);
}

.auth-brand,
.top-context-pill,
.upload-report-kicker,
.upload-kicker,
.analyses-kicker,
.analyses-mode-pill,
.analysis-qa-badge {
    background: rgba(45, 156, 145, 0.14);
    color: var(--brand-gold-strong);
}

.auth-primary-btn,
.btn-primary,
.analysis-primary-btn,
.filter-btn-primary,
.upload-analysis-btn-primary,
.upload-dropzone-icon,
.leaflet-upload-launch,
.modal-header,
.upload-modal-header {
    background: linear-gradient(135deg, var(--brand-forest) 0%, var(--brand-forest-soft) 58%, var(--brand-gold) 100%);
    color: #f6fbf9;
}

.auth-primary-btn:hover,
.btn-primary:hover,
.analysis-primary-btn:hover,
.filter-btn-primary:hover,
.upload-analysis-btn-primary:hover,
.leaflet-upload-launch:hover {
    filter: brightness(1.03) saturate(1.02);
}

.top-bar {
    background: var(--top-bar-bg);
}

.logo-mark {
    overflow: hidden;
}

.logo-mark-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px 11px;
}

.logo-text {
    color: #f6fbf9;
}

.top-bar-context {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.06);
}

.search-group:focus-within {
    border-color: rgba(45, 156, 145, 0.34);
    box-shadow: 0 0 0 4px rgba(45, 156, 145, 0.14), 0 18px 30px rgba(4, 21, 27, 0.18);
}

.search-group {
    background: rgba(249, 246, 238, 0.96);
    border-color: rgba(45, 156, 145, 0.2);
    box-shadow: 0 14px 30px rgba(4, 21, 27, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.search-icon,
.search-input,
.search-mode-select,
.search-input::placeholder {
    color: #587168;
}

.search-input {
    font-weight: 700;
}

.search-group:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(4, 21, 27, 0.2);
}

.layer-card,
.section {
    border-color: rgba(255,255,255,0.08);
}

.layer-card.active,
.layer-card.open {
    border-color: rgba(45, 156, 145, 0.24);
    box-shadow: 0 10px 20px rgba(4, 21, 27, 0.12);
}

.layer-summary.has-active-filters,
.filter-link-btn,
.selection-summary-chip,
.active-filter-chip-list::before,
.style-color-value,
.style-range-value {
    color: #f3dfb5;
}

.filter-chip:hover,
.active-filter-chip:hover {
    border-color: rgba(45, 156, 145, 0.4);
}

.filter-chip.is-selected,
.active-filter-chip-list {
    background: linear-gradient(135deg, rgba(23, 59, 53, 0.96) 0%, rgba(40, 88, 79, 0.96) 52%, rgba(45, 156, 145, 0.96) 100%);
    border-color: transparent;
    box-shadow: 0 8px 18px rgba(23, 59, 53, 0.22);
}

.filter-btn-secondary,
.analysis-secondary-btn,
.analysis-inline-btn,
.upload-analysis-btn-secondary {
    background: rgba(23, 59, 53, 0.08);
    color: var(--brand-forest);
}

.style-range {
    accent-color: var(--brand-gold);
}

.radio-item input:checked + .radio-custom,
.checkbox-item input:checked + .checkbox-custom {
    border-color: var(--brand-gold);
    background: var(--brand-gold);
}

.analyses-hero,
.analysis-summary-card,
.analysis-card,
.modal-content,
.upload-hero-card,
.upload-report-card,
.upload-report-metric,
.upload-report-section,
.upload-report-snapshot,
.analysis-list-item,
.analysis-qa-result {
    border-color: rgba(23, 59, 53, 0.1);
    box-shadow: 0 20px 42px rgba(4, 21, 27, 0.1);
}

.analyses-hero,
.analysis-summary-card,
.analysis-card,
.modal-content {
    background:
        radial-gradient(circle at top right, var(--surface-card-glow), transparent 24%),
        rgba(255,255,255,0.9);
}


.analyses-hero h1,
.upload-hero-card h3,
.upload-report-header h3,
.upload-report-section-head h4,
.analysis-card h3,
.analysis-list-item-head strong,
.upload-dropzone-copy strong {
    color: var(--brand-forest);
}

.upload-report-metric,
.upload-report-section,
.analysis-list-item,
.analysis-qa-result,
.analysis-qa-input {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,244,235,0.94) 100%);
}

.report-selection-badge,
.upload-report-badge {
    background: linear-gradient(135deg, var(--brand-forest) 0%, var(--brand-forest-soft) 52%, var(--brand-gold) 100%);
    color: #f6fbf9;
}

.analyses-view {
    background: var(--analyses-bg);
}

.analysis-list-item.is-selected {
    border-color: rgba(45, 156, 145, 0.34);
    box-shadow: inset 0 0 0 1px rgba(45, 156, 145, 0.16);
}

.control-btn {
    color: var(--brand-forest);
    border: 1px solid rgba(23, 59, 53, 0.08);
}

.control-btn:hover {
    box-shadow: 0 16px 28px rgba(4, 21, 27, 0.16);
}

.upload-hero-card,
.upload-report-card {
    background:
        radial-gradient(circle at top right, rgba(45, 156, 145, 0.12), transparent 28%),
        linear-gradient(135deg, #f6f1e5 0%, #eef5ee 100%);
}

.upload-hero-badges span {
    background: rgba(23, 59, 53, 0.08);
    color: var(--brand-forest);
}

.upload-dropzone {
    border-color: rgba(23, 59, 53, 0.22);
    background: linear-gradient(180deg, #fffdfa 0%, #f7f4ec 100%);
}

.upload-dropzone:hover,
.upload-dropzone:focus-visible,
.upload-dropzone.is-dragover {
    border-color: var(--brand-gold);
    box-shadow: 0 16px 30px rgba(23, 59, 53, 0.1);
}

.leaflet-upload-launch {
    background: rgba(255, 253, 250, 0.96);
    color: var(--brand-forest);
}

.leaflet-upload-launch:hover,
.leaflet-upload-launch:focus-visible {
    filter: none;
}

.leaflet-upload-launch__icon {
    background: linear-gradient(135deg, var(--brand-forest) 0%, var(--brand-forest-soft) 100%);
}

.loading-overlay {
    background: rgba(4, 21, 27, 0.78);
    backdrop-filter: blur(12px);
}

.loading-shell {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
    width: min(760px, calc(100vw - 32px));
}

.loading-shell-report {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
    align-items: center;
    align-content: center;
    gap: 14px;
    width: min(360px, calc(100vw - 32px));
    height: min(360px, calc(100vw - 32px));
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
    overflow: hidden;
    padding: 24px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 50% 24%, rgba(90, 211, 199, 0.18), transparent 44%),
        linear-gradient(160deg, rgba(4, 21, 27, 0.98) 0%, rgba(10, 34, 38, 0.96) 54%, rgba(17, 58, 53, 0.95) 100%);
    border: 1px solid rgba(90, 211, 199, 0.16);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 28px 54px rgba(4, 21, 27, 0.46);
}

.loading-shell-minimal {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 32px 28px;
    width: min(420px, calc(100vw - 32px));
    background: transparent;
    border: none;
    box-shadow: none;
}

.loading-brand-mark {
    width: 84px;
    height: 84px;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35));
    animation: loadingBrandPulse 2.4s ease-in-out infinite;
    margin-bottom: 18px;
}

.loading-shell-minimal p {
    margin: 0 0 6px;
    color: #f5efe2;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.loading-shell-minimal small {
    color: rgba(245, 239, 226, 0.7);
    font-size: 13px;
    line-height: 1.5;
}

@keyframes loadingBrandPulse {
    0%, 100% { opacity: 0.85; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.04); }
}

.loading-brand-media {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(4, 21, 27, 0.94) 0%, rgba(23, 59, 53, 0.86) 100%);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 24px 48px rgba(4, 21, 27, 0.24);
}

.loading-brand-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 244, 222, 0.12) 0%, transparent 54%);
}

.loading-brand-media-report {
    width: 144px;
    height: 144px;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    background: #031113;
    border: 1px solid rgba(90, 211, 199, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 18px 38px rgba(0, 0, 0, 0.28),
        0 0 34px rgba(45, 156, 145, 0.18);
}

.loading-brand-media-report::after {
    background: radial-gradient(circle at center, rgba(90, 211, 199, 0.08) 0%, transparent 68%);
    pointer-events: none;
}

.loading-brand-poster,
.loading-brand-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.loading-brand-poster {
    object-fit: cover;
    filter: none;
    opacity: 1;
    transform: none;
}

.loading-brand-media-report .loading-brand-poster {
    opacity: 1;
    filter: none;
}

.loading-brand-video {
    object-fit: contain;
    padding: 22px;
}

.loading-brand-media-report .loading-brand-video {
    object-fit: cover;
    object-position: center;
    padding: 0;
    transform: scale(1.01);
}

.loading-spinner {
    display: grid;
    align-content: center;
    gap: 12px;
    padding: 28px 30px;
    border-radius: 28px;
    text-align: left;
    border: 1px solid rgba(23, 59, 53, 0.12);
    background:
        radial-gradient(circle at top right, rgba(45, 156, 145, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,244,235,0.96) 100%);
    box-shadow: 0 24px 52px rgba(4, 21, 27, 0.24);
}

.loading-kicker {
    color: var(--brand-gold-strong);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.loading-spinner p {
    color: var(--brand-forest);
    font-size: 22px;
    font-weight: 800;
}

.loading-spinner small {
    color: #5f756d;
    font-size: 13px;
    line-height: 1.6;
}

.report-loading {
    width: 100%;
    max-width: 292px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    justify-items: center;
    gap: 5px;
}

.report-loading .loading-progress {
    width: min(280px, 100%);
    margin-top: 6px;
}

.report-loading .progress-bar {
    animation: none;
    transition: width 0.24s ease;
}

.report-loading .loading-kicker,
.report-loading p,
.report-loading small,
.report-loading .loading-progress-value {
    color: #f6fbf9;
}

.report-loading .loading-kicker {
    color: rgba(90, 211, 199, 0.92);
}

.report-loading p {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.005em;
    line-height: 1.18;
}

.report-loading small {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: rgba(255, 248, 235, 0.62);
}

.loading-progress-value {
    display: block;
    margin-top: 10px;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    background: linear-gradient(180deg, #c3eee6 0%, #2d9c91 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-variant-numeric: tabular-nums;
}

.auth-card-head h1,
.analyses-hero h1 {
    text-wrap: balance;
}

.auth-card-copy,
.analyses-hero p,
.user-settings-copy {
    text-wrap: pretty;
}

.auth-card-glance article,
.auth-quick-details,
.auth-details,
.auth-card-footnote,
.analysis-list-item,
.upload-report-section {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.auth-card-glance article:hover,
.analysis-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(4, 21, 27, 0.08);
}

.auth-theme-card {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.auth-theme-card:hover {
    box-shadow: 0 18px 34px rgba(4, 21, 27, 0.14);
}

.auth-theme-card-active,
.auth-theme-card.is-active {
    transform: translateY(-2px);
}

.auth-tab-button:hover {
    background: rgba(255,255,255,0.46);
    color: var(--auth-ink);
}

.auth-input-shell,
.auth-field input {
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.auth-input-shell:hover,
.auth-field input:hover {
    border-color: rgba(45, 156, 145, 0.2);
    background: rgba(255,255,255,0.9);
}

.auth-primary-btn,
.analysis-primary-btn,
.analysis-secondary-btn,
.analysis-inline-btn,
.filter-chip,
.top-btn,
.control-btn,
.close {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease, filter 0.2s ease;
}

.auth-primary-btn,
.analysis-primary-btn {
    box-shadow: 0 16px 30px rgba(23, 59, 53, 0.2);
}

.auth-primary-btn:hover,
.analysis-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(23, 59, 53, 0.24);
}

.analysis-secondary-btn:hover,
.analysis-inline-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(23, 59, 53, 0.12);
}

.filter-chip:hover {
    transform: translateY(-2px);
}

.control-btn:hover {
    box-shadow: 0 18px 32px rgba(15, 31, 47, 0.18);
}

.top-btn:hover {
    border-color: rgba(255,255,255,0.18);
}

.modal-header {
    box-shadow: inset 0 -1px 0 rgba(255,255,255,0.08);
}

.modal-header h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(28px, 3vw, 34px);
    letter-spacing: -0.01em;
}

.close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.12);
    transform: rotate(90deg);
}

.analyses-hero,
.analysis-summary-card,
.analysis-card,
.modal-content {
    backdrop-filter: blur(12px);
}


.analyses-hero h1 {
    font-size: clamp(40px, 4vw, 50px);
}

body[data-site-theme="aurora"] .auth-hero-visual-stage,
:root[data-site-theme="aurora"] .auth-hero-visual-stage {
    background:
        radial-gradient(circle at 22% 24%, rgba(216, 176, 106, 0.24), transparent 24%),
        linear-gradient(145deg, rgba(16, 40, 59, 0.92) 0%, rgba(23, 57, 72, 0.86) 40%, rgba(32, 87, 106, 0.82) 100%);
}

body[data-site-theme="aurora"] .auth-hero-visual-video,
:root[data-site-theme="aurora"] .auth-hero-visual-video {
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08);
}


body[data-site-theme="night"] .auth-hero-visual-stage,
:root[data-site-theme="night"] .auth-hero-visual-stage {
    background:
        radial-gradient(circle at 18% 20%, rgba(216, 194, 124, 0.16), transparent 22%),
        linear-gradient(145deg, rgba(5, 8, 20, 0.96) 0%, rgba(16, 26, 52, 0.9) 48%, rgba(29, 40, 80, 0.84) 100%);
}

body[data-site-theme="night"] .auth-hero-visual-caption,
:root[data-site-theme="night"] .auth-hero-visual-caption {
    background: rgba(7, 12, 28, 0.62);
}


@media (prefers-reduced-motion: reduce) {
    .auth-card-glance article,
    .auth-theme-card,
    .auth-tab-button,
    .auth-input-shell,
    .auth-field input,
    .auth-primary-btn,
    .analysis-primary-btn,
    .analysis-secondary-btn,
    .analysis-inline-btn,
    .filter-chip,
    .top-btn,
    .control-btn,
    .search-group,
    .close {
        transition: none;
    }
}

@media (max-width: 900px) {
    .loading-shell {
        grid-template-columns: 1fr;
    }

    .loading-brand-media {
        min-height: 160px;
    }

    .loading-brand-media-report {
        width: 150px;
        height: 150px;
        min-height: 0;
    }

    .report-loading .loading-progress-value {
        font-size: 32px;
    }


}

/* Responsive */
@media (max-width: 1100px) {
    .top-bar {
        padding: 0 14px;
    }

    .top-bar-right {
        gap: 12px;
    }

    .top-nav-tab {
        padding: 6px 10px;
    }

    .search-input {
        width: 150px;
    }

    .analyses-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analysis-signal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .analysis-insight-grid {
        grid-template-columns: 1fr;
    }

    .analysis-lulc-years {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .analyses-hero {
        flex-direction: column;
        padding: 22px;
    }

    .analyses-hero-actions {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
    }

    .analyses-hero-actions > button {
        flex: 1 1 220px;
    }

    .analyses-grid {
        grid-template-columns: 1fr;
    }

    .analysis-qa-head,
    .analysis-qa-form-footer {
        flex-direction: column;
        align-items: flex-start;
    }


    .modal-content.report-modal-content {
        width: min(860px, calc(100vw - 24px));
    }
}

@media (max-width: 960px) {
    .top-bar {
        padding: 0 14px;
    }

    .search-group {
        padding: 5px 10px;
    }

    .search-input {
        width: 126px;
    }

    .top-bar-right {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .search-container {
        flex: 1 1 260px;
    }

    .top-bar-buttons {
        flex: 1 1 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .top-bar-action-group {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .auth-userbar {
        flex: 1 1 auto;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .sidebar {
        width: min(88vw, 320px);
        right: 12px;
        top: calc(var(--top-bar-height) + 58px);
        max-height: calc(100vh - var(--top-bar-height) - 76px);
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        border-radius: 14px;
        box-shadow: 0 18px 40px rgba(4, 14, 24, 0.28);
    }

    .sidebar.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    #map {
        left: 8px;
    }

    .analyses-view {
        left: 0;
        padding: 18px 14px 20px;
    }


    .status-banner {
        left: 12px;
        right: 12px;
    }

    body[data-app-view="analises"] .status-banner {
        left: 14px;
        right: 14px;
        bottom: 14px;
    }

    .map-basemap-control {
        top: calc(var(--top-bar-height) + 36px);
        right: 12px;
    }

    .map-filter-control {
        top: calc(var(--top-bar-height) + 36px);
        right: 78px;
    }

    .map-filter-toggle {
        width: 54px;
        padding: 0;
    }

    .map-thumbnails-floating {
        width: 154px;
    }

    .sidebar.is-open ~ .map-basemap-control {
        display: none;
    }

    body.has-filter-sidebar-open .leaflet-upload-control {
        opacity: 0;
        pointer-events: none;
        transform: translateY(8px) scale(0.92);
    }
}

@media (max-width: 768px) {
    :root {
        --top-bar-height: 108px;
    }

    .top-bar {
        height: auto;
        min-height: var(--top-bar-height);
        padding: 8px 12px;
        align-items: stretch;
        gap: 8px;
    }

    .top-bar-left,
    .top-bar-right {
        width: 100%;
    }

    .top-bar-left {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .top-bar-right {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .logo {
        min-width: 0;
    }

    .logo-mark {
        width: 124px;
        height: 40px;
    }

    .logo-text {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .top-nav-tabs {
        gap: 2px;
    }

    .top-nav-tab {
        padding: 5px 7px;
        font-size: 10px;
    }

    .search-group {
        width: 100%;
        border-radius: 12px;
        padding: 4px 9px;
    }

    .search-input {
        width: 100%;
    }

    .top-bar-buttons {
        width: 100%;
        justify-content: stretch;
        gap: 6px;
    }

    .sidebar {
        width: min(92vw, 320px);
        padding: 12px;
    }

    .analyses-hero {
        flex-direction: column;
        padding: 18px;
    }

    .analyses-hero-actions {
        width: 100%;
    }

    .analyses-hero-actions > button {
        flex: 1 1 100%;
    }

    .analyses-hero h1 {
        font-size: 34px;
    }

    .analyses-summary-grid {
        grid-template-columns: 1fr;
    }

    .analysis-signal-grid,
    .analysis-public-grid {
        grid-template-columns: 1fr;
    }

    .analysis-lulc-main,
    .analysis-lulc-years {
        grid-template-columns: 1fr;
    }

    .analysis-lulc-head {
        flex-direction: column;
    }

    .analysis-insight-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-grid-2 {
        grid-template-columns: 1fr;
    }

    .radio-group, .checkbox-group {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .report-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-type-selector {
        grid-template-columns: 1fr;
    }

    .report-type-option {
        min-height: auto;
    }

    .report-kpi-value {
        font-size: 22px !important;
    }

    .report-summary-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .report-scope-list {
        grid-template-columns: 1fr;
    }

    .report-scope-list .report-scope-row {
        border-left: none;
    }

    .report-modal-footer {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .report-modal-footer-actions {
        width: 100%;
        display: flex;
    }

    .report-modal-footer-actions .btn {
        flex: 1;
    }

    .report-scope-list .report-scope-row:first-child {
        border-top: none;
    }

    .report-scope-list .report-scope-row:nth-child(2) {
        border-top: 1px solid rgba(23, 59, 53, 0.06);
    }

    .top-btn-label {
        display: inline;
    }

    .map-controls {
        right: 12px;
        bottom: 12px;
    }

    .control-btn {
        width: 58px;
        height: 58px;
        font-size: 16px;
    }


    .auth-theme-showcase-settings {
        grid-template-columns: 1fr;
    }

}

@media (max-width: 560px) {
    :root {
        --top-bar-height: 120px;
    }

    .top-bar {
        display: grid;
        grid-template-columns: 1fr;
        align-content: start;
        gap: 5px;
        padding: 6px 10px;
    }

    .top-bar-left {
        grid-template-columns: auto auto minmax(0, 1fr);
        gap: 6px;
    }

    .logo-mark {
        width: 102px;
        height: 32px;
    }

    .search-group {
        min-height: 36px;
        border-radius: 10px;
    }

    .search-mode-select {
        max-width: 104px;
        font-size: 11px;
        padding-right: 6px;
    }

    .search-input {
        font-size: 12px;
        padding: 5px 6px;
    }

    .top-nav-tabs {
        grid-column: auto;
        justify-self: start;
        gap: 1px;
    }

    .top-nav-tab {
        padding: 4px 5px;
        font-size: 9px;
    }

    .top-btn-report {
        padding: 0 10px;
    }

    .top-bar-right {
        grid-template-columns: 1fr;
    }

    .top-bar-buttons {
        width: 100%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 6px;
    }

    .top-bar-action-group {
        width: auto;
        display: inline-flex;
        justify-content: flex-end;
    }

    .auth-userbar {
        width: 100%;
    }

    .auth-userbar {
        justify-content: flex-start;
    }

    .top-btn-account .top-btn-label {
        display: none;
    }

    .top-btn-account,
    .top-btn-report {
        width: 32px;
        min-width: 32px;
        height: 32px;
        padding: 0;
    }

    .top-btn-report .top-btn-label {
        display: none;
    }

    .account-menu-panel {
        left: 0;
        right: 0;
        min-width: 0;
    }

    .auth-client-select {
        min-width: 0;
        width: 100%;
        height: 32px;
    }


    .report-modal-content {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        border-radius: 12px;
    }

    .report-modal-header,
    .report-modal-body,
    .report-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .report-modal-header {
        gap: 12px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .report-modal-header h2 {
        font-size: 17px;
    }

    .report-modal-header p {
        font-size: 12px;
    }

    .report-modal-footer {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 8px;
    }

    .report-modal-footer-actions {
        width: 100%;
        justify-content: stretch;
    }

    .report-modal-footer-actions .btn {
        flex: 1 1 0;
    }

    .btn-link {
        justify-content: center;
        padding: 8px 0;
    }

    .report-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-item {
        grid-template-columns: 22px minmax(0, 1fr);
        grid-template-areas:
            "index body"
            ".     actions";
        gap: 8px;
    }

    .report-item-index {
        grid-area: index;
    }

    .report-item-body {
        grid-area: body;
    }

    .report-item-actions {
        grid-area: actions;
        justify-self: end;
    }
}

@media (max-width: 380px) {
    .logo-mark {
        width: 114px;
        height: 38px;
    }

    .top-nav-tab {
        padding: 6px 6px;
    }
}

/* Leaflet Custom Styles */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.leaflet-popup-content {
    margin: 15px;
    line-height: 1.5;
}

.leaflet-popup-tip {
    background: white;
}

/* Tooltip Styles */
.tooltip-content {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tooltip-title {
    font-weight: bold;
    color: #2a5298;
    margin-bottom: 10px;
    font-size: 14px;
}

.tooltip-field {
    margin-bottom: 5px;
    font-size: 12px;
}

.tooltip-divider {
    height: 1px;
    margin: 10px 0 8px;
    background: rgba(42, 82, 152, 0.18);
}

.tooltip-label {
    font-weight: 500;
    color: #333;
}

.tooltip-value {
    color: #666;
    margin-left: 5px;
}

.tooltip-field--block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tooltip-field--block .tooltip-value {
    margin-left: 0;
}

.tooltip-field--warning {
    margin-top: 5px;
    padding: 5px 7px;
    border-left: 3px solid #b7791f;
    background: rgba(183, 121, 31, 0.1);
    color: #704b12;
}

.tooltip-field--warning .tooltip-value {
    margin-left: 0;
    font-size: 11px;
    line-height: 1.35;
}

.tooltip-breakdown {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 2px;
}

.tooltip-breakdown-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 0;
}

.tooltip-breakdown-group + .tooltip-breakdown-group {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.tooltip-breakdown-group > strong {
    color: #17324a;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.tooltip-subrow {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #444;
    padding: 1px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.tooltip-subrow:last-child {
    border-bottom: none;
}

/* CAR / SIGEF popups */
.tooltip-content-public .tooltip-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #17324a;
    font-size: 13px;
    margin-bottom: 8px;
}

.tooltip-content-public .tooltip-source {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(23, 50, 74, 0.55);
}

.tooltip-status-row {
    margin: 0 0 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tooltip-value-mono {
    font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
    font-size: 11px;
    color: #17324a;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.status-pill.car-status[data-status="ativo"] {
    background: rgba(58, 138, 85, 0.16);
    border-color: rgba(58, 138, 85, 0.35);
    color: #2c6940;
}
.status-pill.car-status[data-status="pendente"] {
    background: rgba(199, 144, 20, 0.18);
    border-color: rgba(199, 144, 20, 0.4);
    color: #8a6a16;
}
.status-pill.car-status[data-status="cancelado"] {
    background: rgba(168, 50, 50, 0.16);
    border-color: rgba(168, 50, 50, 0.4);
    color: #8a2a2a;
}
.status-pill.car-status[data-status="suspenso"] {
    background: rgba(122, 75, 161, 0.16);
    border-color: rgba(122, 75, 161, 0.36);
    color: #5d3a7c;
}
.status-pill.car-status[data-status="desconhecido"],
.status-pill.car-status:not([data-status]) {
    background: rgba(107, 125, 142, 0.14);
    border-color: rgba(107, 125, 142, 0.3);
    color: #4a5868;
}

.status-pill.sigef-status[data-status="certificada"] {
    background: rgba(31, 93, 142, 0.14);
    border-color: rgba(31, 93, 142, 0.36);
    color: #1a4d77;
}
.status-pill.sigef-status[data-status="em-analise"] {
    background: rgba(196, 122, 31, 0.16);
    border-color: rgba(196, 122, 31, 0.4);
    color: #8a571f;
}
.status-pill.sigef-status[data-status="cancelada"] {
    background: rgba(168, 50, 50, 0.16);
    border-color: rgba(168, 50, 50, 0.4);
    color: #8a2a2a;
}
.status-pill.sigef-status[data-status="desconhecida"],
.status-pill.sigef-status:not([data-status]) {
    background: rgba(107, 125, 142, 0.14);
    border-color: rgba(107, 125, 142, 0.3);
    color: #4a5868;
}

.status-pill.snci-status[data-status="certificada"] {
    background: rgba(191, 133, 28, 0.14);
    border-color: rgba(191, 133, 28, 0.36);
    color: #805513;
}
.status-pill.snci-status[data-status="cancelada"] {
    background: rgba(168, 50, 50, 0.16);
    border-color: rgba(168, 50, 50, 0.4);
    color: #8a2a2a;
}
.status-pill.snci-status[data-status="desconhecida"],
.status-pill.snci-status:not([data-status]) {
    background: rgba(107, 125, 142, 0.14);
    border-color: rgba(107, 125, 142, 0.3);
    color: #4a5868;
}

/* Sidebar — selo "Público" + legenda CAR/SIGEF/SNCI */
.layer-source-badge {
    display: inline-flex;
    align-items: center;
    height: 16px;
    padding: 0 6px;
    margin-left: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 3px;
    background: rgba(45, 156, 145, 0.14);
    color: rgba(90, 211, 199, 0.95);
    border: 1px solid rgba(45, 156, 145, 0.28);
    vertical-align: middle;
}

.layer-card-public.layer-card.open::before {
    background: linear-gradient(180deg, rgba(126, 182, 220, 0.7), rgba(126, 182, 220, 0.18));
}

/* Sidebar atribuição */
.sidebar-attribution {
    margin: 16px 12px 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 9px;
    line-height: 1.5;
    color: rgba(219, 233, 255, 0.32);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.sidebar-attribution strong {
    color: rgba(90, 211, 199, 0.85);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Disclaimer Modal Styles */
.disclaimer-modal {
    display: none;
    position: fixed;
    z-index: 4000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    animation: fadeIn 0.3s ease-out;
}

.disclaimer-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.disclaimer-modal-content {
    background: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.disclaimer-modal-header {
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 15px 15px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.disclaimer-modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.disclaimer-modal-header i {
    font-size: 24px;
}

.disclaimer-modal-body {
    padding: 25px;
}

.disclaimer-content h3 {
    color: #2a5298;
    margin: 20px 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 5px;
}

.disclaimer-content h3:first-child {
    margin-top: 0;
}

.disclaimer-content p {
    margin: 10px 0;
    line-height: 1.6;
    color: #333;
    font-size: 14px;
}

.disclaimer-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.disclaimer-content li {
    margin: 8px 0;
    line-height: 1.5;
    font-size: 14px;
    color: #333;
}

.disclaimer-content strong {
    color: #2a5298;
    font-weight: 600;
}

.disclaimer-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.disclaimer-warning i {
    color: #856404;
    font-size: 18px;
    margin-top: 2px;
}

.disclaimer-warning strong {
    color: #856404;
}

.disclaimer-modal-footer {
    background: #f8f9fa;
    padding: 20px 25px;
    border-radius: 0 0 15px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #e9ecef;
}

.disclaimer-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.disclaimer-checkbox input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.disclaimer-checkbox .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}

.disclaimer-checkbox input[type="checkbox"]:checked + .checkmark {
    background: #2a5298;
    border-color: #2a5298;
}

.disclaimer-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.disclaimer-checkbox:hover .checkmark {
    border-color: #2a5298;
}

@media (max-width: 768px) {
    .disclaimer-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .disclaimer-modal-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .disclaimer-checkbox {
        justify-content: center;
    }
}

.auth-admin-modal {
    max-width: 920px;
}

.auth-admin-code-card {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #17324a;
    color: #f7fbff;
    min-height: 0;
}

.auth-admin-code-card span,
.auth-admin-code-card small {
    color: rgba(247, 251, 255, 0.7);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-admin-code-card small {
    text-transform: none;
    letter-spacing: 0;
    font-size: 11px;
}

.auth-admin-code-card strong {
    font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 0.04em;
    word-break: break-word;
}

.auth-admin-client-list {
    display: grid;
    gap: 12px;
}

.auth-admin-client-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #e4ebf2;
    background: #ffffff;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.auth-admin-client-card:hover {
    border-color: #c6d2de;
    background: #fbfcfd;
}

.auth-admin-client-card.is-active {
    border-color: #17324a;
    background: #fbfcfd;
    box-shadow: inset 3px 0 0 #17324a;
}

.auth-admin-client-card strong {
    display: block;
    color: #17324a;
    font-size: 14px;
}

.auth-admin-client-card small {
    display: block;
    margin-top: 3px;
    color: #688097;
    font-size: 12px;
}

.auth-admin-client-card span {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 6px 10px;
    background: #eef3f8;
    color: #314b66;
    font-size: 11px;
    font-weight: 700;
}

.auth-admin-empty {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px dashed #d0dae3;
    background: #fbfcfd;
    color: #6b7d8e;
    font-size: 13px;
}

.auth-admin-empty strong {
    display: block;
    margin-bottom: 4px;
    color: #17324a;
    font-size: 13px;
    font-weight: 600;
}

.auth-admin-create-form {
    align-items: end;
}

.user-settings-modal,
.profile-modal {
    width: min(880px, calc(100vw - 32px));
    max-width: none;
    max-height: min(86vh, 820px);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.profile-modal-header {
    align-items: flex-start;
    gap: 16px;
    padding: 18px 22px;
    background: #ffffff;
    color: #17324a;
    border-bottom: 1px solid rgba(23, 59, 53, 0.08);
    border-radius: 0;
}

.profile-modal-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.profile-modal-header h2 {
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #17324a;
    margin: 0;
}

.profile-modal-header p {
    margin: 0;
    max-width: 64ch;
    color: #6b7d8e;
    font-size: 13px;
    line-height: 1.4;
}

.profile-modal-header .close {
    color: #6b7d8e;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 22px;
    flex-shrink: 0;
    transform: none;
}

.profile-modal-header .close:hover {
    background: rgba(23, 59, 53, 0.06);
    color: #17324a;
    opacity: 1;
    transform: none;
}

.profile-modal-body,
.user-settings-body {
    padding: 20px 22px;
    background: #fafbfc;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(23, 59, 53, 0.08);
}

.profile-block-kicker {
    font-family: "Manrope", "Inter", system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #17324a;
}

.profile-identity-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid rgba(23, 59, 53, 0.08);
    border-radius: 10px;
}

.profile-identity-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(45, 156, 145, 0.9), rgba(31, 122, 114, 0.95));
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
}

.profile-identity-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.profile-identity-text strong {
    font-size: 15px;
    font-weight: 600;
    color: #17324a;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-identity-text span {
    font-size: 12px;
    color: #6b7d8e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-identity-meta {
    font-size: 11px !important;
    color: #8899a8 !important;
    margin-top: 2px;
}

.profile-identity-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(23, 59, 53, 0.06);
    color: #46576b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.profile-identity-role[data-role="admin"],
.profile-identity-role[data-role="master"] {
    background: rgba(45, 156, 145, 0.16);
    color: #1f7a72;
}

.profile-access-summary {
    color: #6b7d8e;
    font-size: 12px;
    font-weight: 600;
}

.profile-access-list {
    display: grid;
    gap: 8px;
}

.profile-access-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(23, 59, 53, 0.08);
    border-radius: 10px;
    background: #fbfcfd;
}

.profile-access-card div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.profile-access-card strong {
    color: #17324a;
    font-size: 13px;
}

.profile-access-card small {
    color: #6b7d8e;
    font-size: 12px;
    line-height: 1.45;
}

.profile-access-card span {
    flex-shrink: 0;
    color: #1f7a72;
    font-size: 11px;
    font-weight: 700;
}

.user-settings-admin-section {
    gap: 14px;
}

.user-settings-form {
    align-items: end;
}

.user-settings-actions {
    justify-content: flex-end;
}

.user-settings-admin-top,
.user-settings-admin-shell {
    display: grid;
    gap: 16px;
}

.user-settings-admin-top {
    grid-template-columns: minmax(240px, 320px) 1fr;
    align-items: stretch;
}

.user-settings-admin-summary {
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(23, 59, 53, 0.08);
    background: #fbfcfd;
}

.user-settings-admin-summary strong {
    color: #17324a;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.005em;
}

.user-settings-admin-shell {
    grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
    align-items: start;
}

.user-settings-admin-column,
.user-settings-admin-create,
.user-settings-client-card-main,
.user-settings-client-card-side,
.user-settings-client-meta,
.user-settings-client-actions {
    display: grid;
    gap: 10px;
}

.user-settings-managed-clients {
    align-content: start;
}

.user-settings-client-card {
    align-items: stretch;
}

.user-settings-client-card.is-selected {
    border-color: #17324a;
    background: #fbfcfd;
    box-shadow: inset 3px 0 0 #17324a;
}

.user-settings-client-card-main {
    flex: 1 1 auto;
}

.user-settings-client-card-side {
    justify-items: end;
    align-content: space-between;
}

.user-settings-client-meta {
    gap: 4px;
}

.user-settings-client-meta span {
    color: #17324a;
    font-size: 13px;
    font-weight: 700;
}

.user-settings-client-meta small {
    margin-top: 0;
}

.user-settings-client-actions {
    justify-items: end;
}

.user-settings-client-actions .analysis-inline-btn {
    width: 100%;
    min-width: 124px;
}

.user-settings-managed-client-form {
    padding: 14px;
    border-radius: 10px;
    background: #fbfcfd;
    border: 1px solid rgba(23, 59, 53, 0.08);
}

.user-settings-admin-create {
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(23, 59, 53, 0.08);
    background: #fbfcfd;
}

.user-settings-admin-create h4 {
    color: #17324a;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.005em;
    margin: 0;
}

.user-settings-copy {
    color: #6b7d8e;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 1100px) {
    .auth-screen-shell {
        grid-template-columns: 1fr;
    }

    .auth-card {
        order: 1;
        max-height: none;
    }

    .auth-hero-panel {
        order: 2;
        min-height: 0;
    }

    .auth-hero-copy h2 {
        max-width: none;
    }
}

@media (max-width: 900px) {
    .auth-card-glance,
    .auth-theme-showcase,
    .auth-hero-metrics,
    .auth-details-grid {
        grid-template-columns: 1fr;
    }

    .auth-hero-topline,
    .auth-quick-head,
    .user-settings-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-hero-panel {
        gap: 18px;
    }

    .auth-hero-panel > .auth-theme-showcase,
    .auth-hero-metrics {
        display: none;
    }

    .user-settings-admin-top,
    .user-settings-admin-shell {
        grid-template-columns: 1fr;
    }

    .user-settings-client-card {
        flex-direction: column;
    }

    .user-settings-client-card-side,
    .user-settings-client-actions {
        justify-items: stretch;
        width: 100%;
    }

    .auth-client-select {
        min-width: 140px;
    }
}

@media (max-width: 780px) {
    .auth-screen {
        padding: 16px;
        overflow-y: auto;
    }

    .auth-screen-shell {
        gap: 16px;
    }

    .auth-card,
    .auth-hero-panel {
        padding: 20px;
        border-radius: 22px;
    }

    .auth-hero-copy h2 {
        font-size: 46px;
    }

    .auth-hero-copy p {
        font-size: 14px;
    }

    .auth-hero-visual-stage {
        min-height: 220px;
    }

    .auth-hero-visual-caption {
        right: 18px;
    }

    .auth-hero-pills {
        display: none;
    }

    .auth-hero-pills,
    .auth-quick-actions {
        grid-template-columns: 1fr;
    }

    .auth-quick-actions,
    .auth-form-grid,
    .auth-details-grid,
    .auth-card-glance {
        display: grid;
        grid-template-columns: 1fr;
    }

    .auth-field.span-2 {
        grid-column: auto;
    }

    .auth-userbar {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .top-bar-right {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 560px) {
    .auth-screen {
        padding: 10px;
    }

    .auth-hero-panel,
    .auth-card {
        border-radius: 20px;
        padding: 18px;
    }

    .auth-card-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding: 4px;
    }

    .auth-tab-button {
        padding: 10px 8px;
        font-size: 11px;
    }

    .auth-card {
        gap: 14px;
    }

    .auth-card-head {
        gap: 8px;
    }

    .auth-card-head h1 {
        font-size: 30px;
        line-height: 0.98;
    }

    .auth-card-copy {
        font-size: 13px;
        line-height: 1.55;
    }

    .auth-card-glance,
    .auth-card-footnote {
        display: none;
    }

    .auth-panel {
        gap: 14px;
    }

    .auth-panel-head {
        gap: 4px;
    }

    .auth-panel-head h2 {
        font-size: 18px;
    }

    .auth-panel-head p {
        font-size: 12px;
        line-height: 1.5;
    }

    .auth-form {
        gap: 12px;
    }

    .auth-field span {
        font-size: 10px;
    }

    .auth-input-shell input,
    .auth-field input {
        font-size: 12px;
    }

    .auth-primary-btn {
        padding: 13px 16px;
    }

    .auth-quick-details {
        padding: 10px 12px;
    }

    .auth-hero-copy h2 {
        font-size: 38px;
    }

    .auth-theme-showcase,
    .auth-hero-metrics {
        grid-template-columns: 1fr;
    }

    .auth-hero-visual-stage {
        min-height: 240px;
    }

    .auth-hero-visual-video {
        width: 96px;
        right: 16px;
        bottom: 16px;
        border-radius: 22px;
    }

    .auth-hero-visual-caption {
        left: 16px;
        right: 16px;
        bottom: 16px;
        padding: 14px;
    }

    .auth-hero-link {
        width: 100%;
        justify-content: center;
    }
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 0;
    z-index: 7000;
    padding: 12px 16px;
    border-radius: 0 0 14px 0;
    background: var(--brand-night);
    color: var(--brand-cream);
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(4, 21, 27, 0.2);
}

.skip-link:focus {
    top: 0;
}

.main-content {
    min-height: 100vh;
}

.auth-remember input[type="checkbox"]:focus-visible {
    outline: none;
    border-color: var(--auth-accent-strong);
    box-shadow: var(--focus-ring);
}

.status-banner {
    display: none;
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(23, 59, 53, 0.14);
    background: rgba(11, 36, 39, 0.94);
    color: #f6fbf9;
    box-shadow: 0 16px 34px rgba(4, 21, 27, 0.18);
}

.status-banner[data-tone="success"] {
    background: rgba(22, 92, 60, 0.96);
    border-color: rgba(98, 191, 139, 0.3);
}

.status-banner[data-tone="info"] {
    background: rgba(24, 68, 110, 0.96);
    border-color: rgba(91, 157, 222, 0.28);
}

.status-banner[data-tone="warn"] {
    background: rgba(141, 92, 20, 0.96);
    border-color: rgba(245, 190, 92, 0.34);
}

.status-banner[data-tone="error"] {
    background: rgba(154, 40, 48, 0.96);
    border-color: rgba(246, 180, 178, 0.24);
}

.modal,
.disclaimer-modal {
    backdrop-filter: blur(12px);
}

.modal-content,
.disclaimer-modal-content {
    border-radius: 24px;
    box-shadow: 0 24px 56px rgba(4, 21, 27, 0.2);
    background:
        radial-gradient(circle at top right, var(--surface-card-glow), transparent 24%),
        rgba(255,255,255,0.94);
}

.modal-header,
.disclaimer-modal-header {
    padding: 22px 24px;
    border-radius: 24px 24px 0 0;
}

.disclaimer-modal-body {
    padding: 24px;
}

.disclaimer-content h3 {
    color: var(--app-blue);
}

.report-loading {
    background: transparent;
}

.progress-bar {
    background: linear-gradient(90deg, var(--app-cyan-soft), var(--app-cyan));
}

#loadingOverlay:focus,
#reportLoadingOverlay:focus {
    outline: none;
}

@media (max-width: 1100px) {
    .auth-theme-showcase-floating {
        position: static;
        right: auto;
        bottom: auto;
        width: 100%;
        order: 3;
        justify-self: stretch;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
    }
}

@media (max-width: 560px) {
    .auth-theme-showcase-floating {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px;
        border-radius: 18px;
        background: rgba(6, 18, 22, 0.42);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
        backdrop-filter: blur(14px);
    }
}

.auth-panel[hidden] {
    display: none !important;
}
