:root {
    --ink: #171a1f;
    --muted: #5c6168;
    --stone: #f3f1ec;
    --paper: #faf9f6;
    --line: #d9d4cb;
    --copper: #b4532a;
    --copper-dark: #8c3e1e;
    --steel: #234e70;
    --green: #1b6b45;
    --red: #8e2f2f;
    --grafite: #1c2128;
    --white: #fffcf8;
    --radius: 4px;
    --font: "Segoe UI", "Helvetica Neue", sans-serif;
    --mono: "Cascadia Mono", "IBM Plex Mono", ui-monospace, monospace;
    --header: 56px;
    --nav: 248px;
    --client-navy: #0b1f45;
    --client-navy-deep: #081833;
    --client-blue: #2563eb;
    --client-blue-soft: #dbeafe;
    --client-surface: #f4f7fb;
    --client-card: #ffffff;
    --client-shadow: 0 10px 30px rgba(15, 35, 75, 0.08);
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--stone);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
}
img, svg { display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: #ead4c8; }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.mono { font-family: var(--mono); font-size: 0.86em; }
.kicker {
    margin: 0 0 10px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--copper);
}
.hint { margin-top: 8px; color: var(--muted); font-size: 14px; }
.hint[data-tone="ok"] { color: var(--green); }
.hint[data-tone="error"] { color: var(--red); }
.hint[data-tone="busy"] { color: var(--steel); }
.hint[hidden] { display: none; }
.banner {
    margin: 0 0 16px;
    padding: 10px 12px;
    background: #e7f2ec;
    color: var(--green);
    border: 1px solid #c9e2d4;
}
.banner-error {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fecaca;
}
.form-error { margin: 4px 0 0; color: #8e2f2f; font-size: 14px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 14px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.btn-primary { background: var(--copper); color: white; }
.btn-primary:hover { background: var(--copper-dark); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-login {
    height: 38px;
    min-width: 96px;
    padding: 0 18px;
    background: white;
    border: 1.5px solid #c5c0b6;
    color: var(--ink);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: 0.01em;
    border-radius: 6px;
}
.btn-login:hover {
    border-color: #1a5f9e;
    color: #1a5f9e;
    background: #f3f7fb;
}
.btn-cta {
    height: 38px;
    min-width: 148px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--copper);
    border: 1.5px solid var(--copper);
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 0 var(--copper-dark);
}
.btn-cta:hover {
    background: var(--copper-dark);
    border-color: var(--copper-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 0 #6f3016, 0 8px 16px rgba(180, 83, 42, 0.22);
}
.btn-cta:active {
    transform: translateY(1px);
    box-shadow: 0 1px 0 #6f3016;
}
.text-link { color: var(--steel); text-underline-offset: 3px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    text-decoration: none;
    color: var(--ink);
    font-weight: 650;
    letter-spacing: -0.02em;
    white-space: nowrap;
}
.brand em { font-style: normal; font-weight: 450; color: var(--muted); }
.brand-inverse { color: #f3f1ec; }
.brand-inverse em { color: #c8c2b8; }
.mark { width: 22px; height: 22px; }
.mark circle { fill: var(--copper); }
.mark path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: square; }

.site-topbar {
    background: #1a5f9e;
    color: #e8eef4;
    font-size: 13px;
    line-height: 1.35;
}
.site-topbar-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 28px;
    min-height: 34px;
    padding-block: 6px;
    text-align: center;
}
.site-topbar-copy {
    margin: 0;
    color: #e4eef8;
}
.site-topbar-phone {
    flex: 0 0 auto;
    color: #fff;
    text-decoration: none;
    font-weight: 650;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.site-topbar-phone span {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.02em;
}
.site-topbar-phone:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(250, 249, 246, 0.94);
    border-bottom: 1px solid var(--line);
}
.site-home .site-header {
    position: sticky;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(250, 249, 246, 0.96);
}
.home-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 0;
    background: #081526;
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 1;
}
.home-banner-frame {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: #081526;
}
.home-banner-video {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border: 0;
    background: #081526;
    object-fit: contain;
    object-position: top center;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    filter: contrast(1.06) saturate(1.1) brightness(1.03);
}
.header-bar { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.site-home .header-bar {
    min-height: 54px;
    gap: 16px;
    padding-block: 0;
}
.site-home .header-bar .brand {
    font-size: 17px;
    gap: 8px;
}
.site-home .header-bar .mark {
    width: 20px;
    height: 20px;
}
.site-home .header-actions {
    gap: 12px;
}
.site-home .header-actions .btn-login,
.site-home .header-actions .btn-cta {
    height: 38px;
    font-size: 14px;
}
.site-home .header-actions .btn-login {
    padding: 0 18px;
}
.site-home .header-actions .btn-cta {
    padding: 0 20px;
}
.site-home .site-nav {
    gap: 18px;
}
.site-home .site-nav a {
    font-size: 15px;
    font-weight: 550;
}
.site-home .nav-toggle {
    height: 32px;
    padding: 0 10px;
    font-size: 13px;
}
.site-nav { display: flex; gap: 18px; margin-right: auto; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle {
    display: none;
    height: 34px;
    padding: 0 10px;
    border: 1px solid var(--line);
    background: var(--paper);
    border-radius: var(--radius);
}

.home-bridge {
    padding: 36px 0 28px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #f7f5f0 0%, var(--stone) 100%);
}
.home-bridge-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: end;
}
.home-bridge-title {
    margin-top: 8px;
    max-width: 16ch;
    font-size: clamp(26px, 3.2vw, 36px);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 650;
}
.home-bridge-copy {
    max-width: 46ch;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
}
.home-ops {
    padding: 40px 0 48px;
}
.home-ops-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 36px;
    align-items: start;
}
.home-ops-copy h2 {
    margin-top: 8px;
    max-width: 16ch;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.home-ops-copy > p {
    margin-top: 12px;
    max-width: 42ch;
    color: var(--muted);
}
.home-ops-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}
.home-ops-list li {
    padding-left: 14px;
    border-left: 2px solid var(--copper);
    color: var(--ink);
    font-size: 14px;
}
.home-section-head {
    margin-bottom: 8px;
}
.home-section-head h2 {
    margin-top: 8px;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -0.03em;
}

.hero { padding: 8px 0 36px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: end; }
.hero h1 {
    max-width: 11ch;
    font-size: clamp(42px, 6vw, 68px);
    line-height: 0.96;
    letter-spacing: -0.035em;
    font-weight: 650;
}
.lede { max-width: 38ch; margin-top: 18px; font-size: 18px; color: var(--muted); }
.lede-small { font-size: 16px; margin-top: 12px; }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; }
.audience { max-width: 46ch; margin-top: 28px; color: var(--muted); font-size: 14px; }

.specimen { background: var(--paper); border: 1px solid var(--line); padding: 16px; }
.specimen-top, .pipeline, .specimen-counts { display: flex; }
.specimen-top { justify-content: space-between; align-items: center; margin-bottom: 14px; }
.state { color: var(--steel); font-size: 13px; font-weight: 650; }
.pipeline { gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; }
.pipeline li {
    flex: 1;
    padding-top: 8px;
    border-top: 2px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}
.pipeline li.is-done { border-color: var(--copper); color: var(--ink); }
.pipeline li.is-current { border-color: var(--steel); color: var(--steel); }
.specimen-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 12px; }
.specimen-counts dt { color: var(--muted); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.specimen-counts dd { margin: 2px 0 0; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.progress { height: 6px; background: var(--stone); }
.progress span { display: block; height: 100%; background: var(--copper); }
.specimen-note { margin-top: 10px; color: var(--muted); font-size: 12px; }
.pipeline-legend { margin: 8px 0 18px; }

.band { padding: 28px 0 48px; }
.capabilities { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.capabilities li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.capabilities span { font-family: var(--mono); color: var(--copper); }
.capabilities h2 { font-size: 18px; font-weight: 650; }
.capabilities h3 { font-size: 17px; font-weight: 650; margin: 0; }
.capabilities p { margin-top: 4px; color: var(--muted); max-width: 62ch; }
.band-plain { padding-top: 10px; }
.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 32px; align-items: start; }
.split h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.05; letter-spacing: -0.03em; max-width: 16ch; }
.code {
    margin: 0;
    padding: 16px;
    overflow: auto;
    background: var(--grafite);
    color: #f3f1ec;
    border-radius: var(--radius);
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.55;
}
.closing { padding: 10px 0 64px; }
.closing-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.closing h2 { font-size: 28px; letter-spacing: -0.03em; }
.closing p { margin-top: 6px; color: var(--muted); }
.site-footer { border-top: 1px solid var(--line); padding: 22px 0 32px; }
.footer-bar { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.footer-bar p { margin-top: 4px; }

.auth-body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, #f7f5f0 0%, var(--stone) 48%, #ebe7df 100%);
}
.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(300px, 38vw) 1fr;
}
.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 36px 32px 28px;
    background:
        radial-gradient(ellipse 80% 50% at 0% 0%, rgba(180, 83, 42, 0.18), transparent 55%),
        linear-gradient(165deg, #14181e 0%, var(--grafite) 55%, #12161c 100%);
    color: #f3f1ec;
    overflow: hidden;
}
.auth-aside::before {
    content: "";
    position: absolute;
    inset: auto -20% -30% 20%;
    height: 55%;
    background:
        repeating-linear-gradient(
            -18deg,
            transparent 0 14px,
            rgba(243, 241, 236, 0.035) 14px 15px
        );
    pointer-events: none;
}
.auth-aside-top,
.auth-points,
.auth-aside-foot { position: relative; }
.auth-aside-kicker {
    margin-top: 36px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c4b8a8;
}
.auth-aside-title {
    margin-top: 12px;
    max-width: 11ch;
    font-size: clamp(32px, 3.4vw, 44px);
    line-height: 1.02;
    letter-spacing: -0.035em;
    font-weight: 650;
}
.auth-aside-copy {
    margin-top: 14px;
    max-width: 32ch;
    color: #cfc8bd;
    font-size: 15px;
}
.auth-points {
    list-style: none;
    margin: auto 0 0;
    padding: 0;
    display: grid;
    gap: 16px;
}
.auth-points li {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: start;
    padding-top: 14px;
    border-top: 1px solid rgba(217, 212, 203, 0.16);
}
.auth-points span {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--copper);
    padding-top: 2px;
}
.auth-points strong { display: block; font-size: 14px; font-weight: 650; }
.auth-points p { margin-top: 3px; color: #b9b2a7; font-size: 13px; max-width: 28ch; }
.auth-aside-foot {
    margin-top: 8px;
    color: #9a9388;
    font-size: 12px;
    max-width: 34ch;
}
.auth-main {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 5vw 56px;
}
.auth-panel {
    width: min(640px, 100%);
    animation: auth-enter 0.45s ease both;
}
.auth-register .auth-panel { width: min(720px, 100%); }
@keyframes auth-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
}
.auth-main h1 {
    font-size: clamp(30px, 4vw, 40px);
    letter-spacing: -0.03em;
    font-weight: 650;
}
.auth-lead {
    margin: 10px 0 0;
    max-width: 48ch;
    color: var(--muted);
    font-size: 15px;
}
.auth-form { margin-top: 28px; gap: 0; }
.auth-section {
    display: grid;
    gap: 14px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}
.auth-section:first-of-type { border-top: 0; padding-top: 0; }
.auth-section[hidden] { display: none; }
.auth-section-head {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: start;
    margin-bottom: 2px;
}
.auth-step {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--copper);
    padding-top: 4px;
}
.auth-section-head h2 {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.02em;
}
.auth-section-head p {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    max-width: 52ch;
}
.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;
}
.stack { display: grid; gap: 12px; }
.stack label, .auth-main label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.stack label span { color: var(--muted); font-weight: 400; }
.stack input, .stack select, .auth-main input, .auth-main select {
    height: 42px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    padding: 0 12px;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.stack input:hover, .stack select:hover { border-color: #c7c0b4; }
.stack input:focus, .stack select:focus {
    outline: none;
    border-color: var(--steel);
    background: white;
    box-shadow: 0 0 0 3px rgba(35, 78, 112, 0.12);
}
.choice, .address-block, .person-block { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice legend, .address-block legend {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
}
.stack .choice label {
    display: grid;
    gap: 2px;
    align-content: center;
    min-height: 72px;
    padding: 12px 14px 12px 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    position: relative;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.stack .choice input {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    margin: 0;
}
.choice-title { font-size: 14px; font-weight: 650; color: var(--ink); }
.choice-note { font-size: 12px; font-weight: 400; color: var(--muted); }
.stack .choice label:hover { border-color: #b9b2a6; }
.stack .choice label:has(input:checked) {
    border-color: var(--ink);
    background: white;
    box-shadow: inset 3px 0 0 var(--copper);
}
.person-block { display: grid; gap: 12px; }
.person-block[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.address-grid { display: grid; grid-template-columns: 1fr 140px; gap: 12px; }
.address-grid .wide { grid-column: 1 / -1; }
.auth-submit {
    display: grid;
    gap: 10px;
    margin-top: 8px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}
.auth-submit .btn {
    width: 100%;
    height: 44px;
    font-size: 15px;
}
.auth-legal { margin: 0; color: var(--muted); font-size: 12px; max-width: 48ch; }
.stack .btn { margin-top: 0; }
.auth-switch {
    margin-top: 22px;
    color: var(--muted);
    font-size: 14px;
}
.auth-switch a { color: var(--steel); font-weight: 600; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.app-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    z-index: 30;
}
.company-chip {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.balance-chip, .user-chip { margin: 0; font-size: 14px; white-space: nowrap; }
.balance-chip { margin-left: auto; }
.balance-chip span { font-variant-numeric: tabular-nums; font-weight: 650; }
.balance-chip em { margin-left: 8px; font-style: normal; color: var(--muted); }
.user-chip { color: var(--muted); }
.app-nav {
    position: fixed;
    top: var(--header);
    bottom: 0;
    left: 0;
    width: var(--nav);
    padding: 12px;
    background: var(--stone);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 2px;
    z-index: 25;
}
.app-nav a {
    text-decoration: none;
    padding: 7px 8px;
    border-radius: var(--radius);
    color: var(--ink);
}
.app-nav a[aria-current="page"] { background: var(--paper); box-shadow: inset 2px 0 0 var(--copper); }
.logout-form { margin-top: auto; }
.logout-form button {
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 7px 8px;
    cursor: pointer;
    color: var(--muted);
}
.app-main { margin: var(--header) 0 0 var(--nav); padding: 22px 24px 40px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.page-head h1, .auth-main h1, .http-error h1 { font-weight: 650; letter-spacing: -0.03em; }
.page-head h1 { font-size: 32px; }
.page-lead { margin: 8px 0 16px; color: var(--muted); max-width: 68ch; }

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--line);
    background: var(--paper);
}
.metrics div { padding: 12px 14px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metrics span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.metrics strong { display: block; margin-top: 4px; font-size: 24px; font-weight: 650; font-variant-numeric: tabular-nums; }
.metrics-3 { grid-template-columns: repeat(3, 1fr); margin-bottom: 16px; }

.dash-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; margin-top: 16px; }
.panel { background: var(--paper); border: 1px solid var(--line); padding: 14px 16px; }
.panel-gap { margin-top: 16px; }
.panel h2 { font-size: 14px; margin-bottom: 12px; }
.chart { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; min-height: 96px; }
.chart div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 88px; }
.chart span { display: block; width: 100%; max-width: 16px; background: var(--steel); min-height: 1px; }
.chart small { margin-top: 4px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.service-list, .activity { list-style: none; margin: 0; padding: 0; }
.service-list li, .activity li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
}
.service-list em, .activity time { font-style: normal; color: var(--muted); }

.sheet { width: 100%; border-collapse: collapse; font-size: 14px; }
.sheet th { text-align: left; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); font-weight: 650; }
.sheet th, .sheet td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.docs h2 { font-size: 22px; letter-spacing: -0.02em; }
.docs h3 { margin: 18px 0 8px; font-size: 14px; }
.docs p { margin-top: 8px; color: var(--muted); }
.docs .code { margin-top: 8px; }
.form-grid label { display: grid; gap: 6px; margin-bottom: 12px; font-size: 14px; }
.form-grid input, .form-grid select, .form-grid textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: white;
    padding: 8px 12px;
    font: inherit;
}
.form-grid textarea { min-height: 140px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: 2px solid var(--steel); border-color: var(--steel); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.actions a { color: var(--steel); }
.sheet a { color: var(--steel); }

.http-error { width: min(680px, calc(100% - 40px)); margin: 64px auto; }
.http-error h1 { font-size: 40px; margin-bottom: 8px; }
.http-error .btn { margin-top: 18px; }

@media (max-width: 980px) {
    .hero-grid, .split, .dash-grid, .auth-shell, .home-bridge-grid, .home-ops-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 6px; }
    .home-bridge { padding: 28px 0 22px; }
    .home-ops { padding: 28px 0 36px; }
    .home-bridge-title, .home-ops-copy h2 { max-width: none; }
    .auth-aside {
        gap: 20px;
        padding: 24px 20px 20px;
    }
    .auth-aside-kicker { margin-top: 18px; }
    .auth-aside-title { max-width: none; }
    .auth-aside-copy { max-width: none; }
    .auth-points { margin-top: 8px; }
    .auth-points li:nth-child(n+2) { display: none; }
    .auth-main { padding: 28px 20px 48px; }
    .field-row { grid-template-columns: 1fr; }
    .app-nav {
        transform: translateX(-105%);
        transition: transform 0.16s ease;
        width: min(280px, 86vw);
        box-shadow: 8px 0 24px rgba(23, 26, 31, 0.08);
    }
    body.nav-open .app-nav, body.nav-open .site-nav { transform: none; }
    .app-main { margin-left: 0; padding: 18px 16px 36px; }
    .nav-toggle { display: inline-flex; align-items: center; }
    .site-nav {
        display: none;
        position: absolute;
        top: 54px;
        left: 0;
        right: 0;
        padding: 12px 20px 16px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
    }
    body.nav-open .site-nav { display: flex; }
    .header-actions .btn-cta { display: none; }
    .user-chip { display: none; }
    .app-nav { visibility: hidden; }
    body.nav-open .app-nav { visibility: visible; }
    .metrics, .metrics-3 { grid-template-columns: 1fr 1fr; }
    .closing-bar, .footer-bar, .page-head { flex-direction: column; align-items: flex-start; }
    .pipeline { flex-wrap: wrap; }
    .pipeline li { flex: 1 1 30%; }
    .chart small { display: none; }
}

.client-shell {
    --client-sidebar: var(--nav);
    background: var(--client-surface);
    min-height: 100vh;
    overflow-x: clip;
}
.client-icon { width: 18px; height: 18px; flex: 0 0 auto; }
.client-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--client-sidebar);
    background: linear-gradient(180deg, var(--client-navy) 0%, var(--client-navy-deep) 100%);
    color: #dbe7ff;
    display: flex;
    flex-direction: column;
    padding: 18px 14px 16px;
    z-index: 40;
}
.client-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    padding: 4px 8px 18px;
}
.client-brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    color: #93c5fd;
}
.client-brand-mark .client-icon { width: 20px; height: 20px; }
.client-brand-text { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.client-brand-text em { font-style: normal; color: #93c5fd; font-weight: 500; }
.client-nav { display: grid; gap: 4px; flex: 1; overflow: auto; padding-right: 2px; }
.client-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #c7d7f5;
    font-size: 14px;
    font-weight: 500;
}
.client-nav-link .client-icon { opacity: 0.9; }
.client-nav-link:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.client-nav-link.is-active {
    background: var(--client-blue);
    color: #fff;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.35);
}
.client-referral {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: #b8ccef;
}
.client-referral-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    color: #fff;
    font-weight: 650;
}
.client-referral p:last-child { margin: 0; }
.client-logout { margin-top: 10px; }
.client-logout button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #fca5a5;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}
.client-logout button:hover { background: rgba(248, 113, 113, 0.12); }
.client-frame {
    min-height: 100vh;
    margin-left: var(--client-sidebar);
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}
.client-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 72px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5ebf5;
}
.client-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
}
.client-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
}
.client-search input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    font: inherit;
    color: var(--ink);
}
.client-search kbd {
    font: 500 11px/1 var(--mono);
    color: #94a3b8;
    border: 1px solid #dbe3f0;
    border-radius: 8px;
    padding: 4px 6px;
    background: #fff;
}
.client-topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}
.client-credits {
    display: grid;
    grid-template-columns: auto auto;
    gap: 2px 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    text-decoration: none;
    min-width: 220px;
    box-shadow: var(--client-shadow);
}
.client-credits-value { font-size: 18px; font-weight: 700; grid-column: 1; }
.client-credits-label { font-size: 12px; opacity: 0.88; grid-column: 1; }
.client-credits-btn {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    padding: 8px 10px;
    border-radius: 999px;
    background: #22c55e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}
.client-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.client-user-menu { position: relative; }
.client-user-trigger {
    border: 1px solid #dbe3f0;
    background: #fff;
    cursor: pointer;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.client-user-trigger:hover,
.client-user-menu.is-open .client-user-trigger {
    background: #f8fafc;
    border-color: #93c5fd;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}
.client-user-trigger:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
.client-user-caret {
    width: 18px;
    height: 18px;
    margin-left: 2px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    display: grid;
    place-items: center;
    transition: transform 0.15s ease, background 0.15s ease;
}
.client-user-caret::before {
    content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-1px) rotate(45deg);
}
.client-user-menu.is-open .client-user-caret {
    background: #dbeafe;
    transform: rotate(180deg);
}
.client-user-trigger:hover .client-user-caret {
    background: #dbeafe;
}
.client-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    padding: 8px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14);
    z-index: 50;
    display: grid;
    gap: 2px;
}
.client-user-dropdown[hidden] { display: none; }
.client-user-dropdown a,
.client-user-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}
.client-user-dropdown a:hover,
.client-user-dropdown button:hover {
    background: #f8fafc;
}
.client-user-logout { margin-top: 4px; border-top: 1px solid #eef2f7; padding-top: 4px; }
.client-user-logout button { color: #dc2626; font-weight: 600; }
.client-account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.client-account-wide { grid-column: 1 / -1; }
.client-account-list {
    display: grid;
    gap: 12px;
    margin: 0;
}
.client-account-list div {
    display: grid;
    gap: 4px;
}
.client-account-list dt {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}
.client-account-list dd { margin: 0; font-size: 15px; }
.client-account-form { max-width: 520px; }
.client-account-form .stack label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.client-account-form .stack input {
    height: 42px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    padding: 0 12px;
    font: inherit;
}
.client-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: #dbeafe;
    color: #1d4ed8;
    font-weight: 700;
}
.client-user-meta {
    display: grid;
    min-width: 0;
}
.client-user-meta strong {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}
.client-user-meta em {
    font-style: normal;
    color: #64748b;
    font-size: 12px;
}
.client-main {
    flex: 1;
    padding: 22px 22px 28px;
}
.client-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 22px 22px;
    color: #64748b;
    font-size: 13px;
}
.client-footer nav { display: flex; gap: 16px; }
.client-footer a { color: inherit; text-decoration: none; }
.client-footer a:hover { color: var(--ink); }
.client-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    margin-bottom: 18px;
    align-items: center;
}
.client-welcome { margin: 0 0 6px; color: #64748b; font-size: 14px; }
.client-hero h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 36px);
    letter-spacing: -0.03em;
    font-weight: 700;
}
.client-lead { margin: 8px 0 0; color: #64748b; max-width: 52ch; }
.client-promo {
    margin: 0;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    align-self: center;
    width: 100%;
    max-width: 560px;
    justify-self: end;
    background: #020b1c;
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow:
        0 12px 28px rgba(8, 24, 51, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    line-height: 0;
}
.client-promo-banner {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 514 / 114;
    object-fit: contain;
    object-position: center;
}
.client-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.client-stat-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    border-radius: 16px;
    background: var(--client-card);
    border: 1px solid #e8eef7;
    box-shadow: var(--client-shadow);
}
.client-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
}
.client-stat-card strong {
    display: block;
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.client-stat-card p { margin: 6px 0 0; color: #64748b; font-size: 13px; }
.client-stat-card a {
    display: inline-block;
    margin-top: 10px;
    color: var(--client-blue);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}
.client-stat-card.tone-blue .client-stat-icon { background: #2563eb; }
.client-stat-card.tone-green .client-stat-icon { background: #16a34a; }
.client-stat-card.tone-violet .client-stat-icon { background: #7c3aed; }
.client-stat-card.tone-amber .client-stat-icon { background: #f59e0b; }
.monitoring-how {
    margin-top: 8px;
}
.monitoring-how-lead {
    margin: 8px 0 12px;
    color: #334155;
    line-height: 1.5;
}
.monitoring-how-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 14px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}
.monitoring-how-list li {
    position: relative;
    padding: 10px 12px 10px 34px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.monitoring-how-list li::before {
    content: "";
    position: absolute;
    left: 12px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2563eb;
    transform: translateY(-50%);
}
.monitoring-how-note {
    margin: 0 0 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.45;
}
.monitoring-active-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.monitoring-active-item {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}
.monitoring-active-plate {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}
.monitoring-active-plate .mono {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0f172a;
}
.monitoring-active-period {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}
.monitoring-status-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.monitoring-status-card {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    display: grid;
    gap: 4px;
}
.monitoring-status-card span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}
.monitoring-status-card strong {
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    word-break: break-word;
}
.monitoring-status-card.is-danger {
    border-color: #fecaca;
    background: #fef2f2;
}
.monitoring-status-card.is-danger strong { color: #b91c1c; }
.monitoring-status-card.is-ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
}
.monitoring-status-card.is-ok strong { color: #166534; }
.monitoring-status-card.is-pending {
    border-color: #fde68a;
    background: #fffbeb;
}
.monitoring-status-card.is-pending strong { color: #b45309; }
@media (max-width: 640px) {
    .monitoring-status-grid { grid-template-columns: 1fr; }
}
.monitoring-alert-feed {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}
.monitoring-alert-feed h3 {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #334155;
}
.monitoring-alert-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.monitoring-alert-item {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
}
.monitoring-alert-item strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
}
.monitoring-alert-item p {
    margin: 4px 0 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #334155;
    font-weight: 600;
}
.monitoring-alert-change {
    white-space: pre-wrap;
}
.monitoring-alert-item time {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.monitoring-alert-item.is-danger {
    border-color: #fecaca;
    background: #fef2f2;
}
.monitoring-alert-item.is-danger strong { color: #b91c1c; }
.monitoring-alert-item.is-ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
}
.monitoring-alert-item.is-ok strong { color: #166534; }
.monitoring-alert-item.is-radar {
    border-color: #bfdbfe;
    background: #eff6ff;
}
.monitoring-alert-item.is-radar strong { color: #1d4ed8; }
.monitoring-alert-item.is-license {
    border-color: #fde68a;
    background: #fffbeb;
}
.monitoring-alert-item.is-license strong { color: #b45309; }
.monitoring-detail-btn {
    margin-left: auto;
    height: 34px;
    font-size: 13px;
}
.monitoring-detail-dialog {
    max-width: 560px;
}
.monitoring-detail-body {
    display: grid;
    gap: 14px;
}
.monitoring-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.monitoring-detail-grid div {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.monitoring-detail-grid span {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 4px;
}
.monitoring-detail-grid strong {
    font-size: 14px;
    color: #0f172a;
}
.monitoring-detail-watch {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.monitoring-detail-watch li {
    padding: 6px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}
.monitoring-detail-alerts {
    display: grid;
    gap: 8px;
}
@media (max-width: 640px) {
    .monitoring-detail-grid { grid-template-columns: 1fr; }
    .monitoring-detail-btn { margin-left: 0; width: 100%; }
}
.monitoring-panel .monitoring-form {
    max-width: 420px;
    margin-top: 12px;
}
.monitoring-form label {
    display: grid;
    gap: 6px;
    font-weight: 700;
}
.monitoring-pay-options {
    max-width: 520px;
}
.monitoring-pix {
    max-width: 520px;
    display: grid;
    gap: 12px;
}
.monitoring-pix-qr {
    width: 220px;
    height: 220px;
    border-radius: 8px;
    background: #fff;
}
.monitoring-pix textarea {
    width: 100%;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    resize: vertical;
}
.form-success {
    color: #166534;
    font-weight: 700;
}
.client-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}
.client-section-head h2 {
    margin: 0;
    font-size: 22px;
    letter-spacing: -0.02em;
}
.client-services-tools {
    display: flex;
    gap: 10px;
    align-items: center;
}
.client-inline-search,
.client-select-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
}
.client-inline-search input,
.client-select-wrap select {
    border: 0;
    background: transparent;
    outline: none;
    font: inherit;
    color: var(--ink);
}
.client-inline-search { min-width: 240px; }
.client-service-categories {
    display: grid;
    gap: 72px;
}
.client-services-monitoramento {
    margin-top: 56px;
}
.client-services-monitoramento .client-service-category {
    margin: 0;
}
.client-service-category {
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
    min-width: 0;
}
.client-service-category[hidden] { display: none; }
.client-service-category-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 8px 2px 28px;
    background: transparent;
    border-bottom: 0;
}
.client-service-category-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    flex: 0 0 auto;
    pointer-events: none;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
}
.client-service-category.accent-blue .client-service-category-badge { background: #2563eb; }
.client-service-category.accent-green .client-service-category-badge { background: #16a34a; }
.client-service-category.accent-violet .client-service-category-badge { background: #7c3aed; }
.client-service-category.accent-amber .client-service-category-badge { background: #d97706; }
.client-service-category.accent-rose .client-service-category-badge { background: #e11d48; }
.client-service-category.accent-gold .client-service-category-badge { background: #ca8a04; }
.client-service-category.accent-slate .client-service-category-badge { background: #475569; }
.client-service-category-copy {
    flex: 1;
    min-width: 0;
}
.client-service-category-label {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.3;
    cursor: default;
    pointer-events: none;
    user-select: text;
    color: #0f172a;
}
.client-service-category-copy p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.45;
    max-width: 62ch;
}
.client-service-category-more {
    flex: 0 0 auto;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: #2563eb;
    border-radius: 0;
    padding: 6px 0;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.client-service-category-more:hover {
    color: #1d4ed8;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.client-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 260px);
    gap: 14px;
    padding: 0;
    align-items: start;
    justify-content: start;
}
.client-service-category:not(.is-expanded) [data-service-extra] {
    display: none;
}
.client-service-card {
    display: block;
    position: relative;
    width: 260px;
    height: 260px;
    min-height: 260px;
    max-height: 260px;
    max-width: 260px;
    padding: 0;
    border: 1px solid #e6edf7;
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-align: left;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.client-service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(15, 35, 75, 0.12);
    border-color: #d4deee;
}
.client-service-card.is-maintenance {
    cursor: default;
    pointer-events: none;
    filter: grayscale(0.35);
}
.client-service-card.is-maintenance:hover {
    transform: none;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
    border-color: #e6edf7;
}
.client-service-card-maintenance {
    position: absolute;
    z-index: 3;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 6px;
    padding: 20px;
    text-align: center;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
}
.client-service-card-maintenance strong {
    display: block;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.client-service-card-maintenance span {
    display: block;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
    color: rgba(248, 250, 252, 0.92);
}
.client-service-card.is-maintenance .client-service-card-visual {
    opacity: 0.55;
}

/* Camada visual integrada (nÃ£o Ã© coluna) */
.client-service-card-visual {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}
.client-service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.client-service-card[data-service-slug="mon_placa"] .client-service-card-img {
    object-position: 72% center;
}
.client-service-card.has-icon .client-service-card-visual {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 28px;
    background: transparent;
}
.client-service-card-glyph {
    position: relative;
    z-index: 1;
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    opacity: 0.92;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.14);
}
.client-service-card-glyph .client-icon {
    width: 28px;
    height: 28px;
}
.client-service-card.tone-blue {
    background: linear-gradient(135deg, #ffffff 42%, #f5f9ff 100%);
}
.client-service-card.tone-green {
    background: linear-gradient(135deg, #ffffff 42%, #f4fdf7 100%);
}
.client-service-card.tone-violet {
    background: linear-gradient(135deg, #ffffff 42%, #f8f5ff 100%);
}
.client-service-card.tone-amber {
    background: linear-gradient(135deg, #ffffff 42%, #fff8f2 100%);
}
.client-service-card.tone-rose {
    background: linear-gradient(135deg, #ffffff 42%, #fff5f6 100%);
}
.client-service-card.tone-gold {
    background: linear-gradient(135deg, #ffffff 42%, #fffcef 100%);
}
.client-service-card.tone-slate {
    background: linear-gradient(135deg, #ffffff 42%, #f8fafc 100%);
}
.client-service-card.tone-blue .client-service-card-glyph { background: #2563eb; }
.client-service-card.tone-green .client-service-card-glyph { background: #16a34a; }
.client-service-card.tone-violet .client-service-card-glyph { background: #7c3aed; }
.client-service-card.tone-amber .client-service-card-glyph { background: #ea580c; }
.client-service-card.tone-rose .client-service-card-glyph { background: #e11d48; }
.client-service-card.tone-gold .client-service-card-glyph { background: #ca8a04; }
.client-service-card.tone-slate .client-service-card-glyph { background: #475569; }
.client-service-card-copy {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    gap: 6px;
    padding: 56px 12px 12px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.72) 38%, rgba(15, 23, 42, 0.92) 100%);
    color: #fff;
    text-align: left;
    pointer-events: none;
}
.client-service-card.has-icon .client-service-card-copy {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.55) 34%, rgba(15, 23, 42, 0.9) 100%);
}
.client-service-card-title {
    display: block;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.client-service-card-desc {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(248, 250, 252, 0.92);
}
.client-service-card-price {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 28px;
    margin-top: 2px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-align: center;
}
.client-service-card.has-icon .client-service-card-price {
    background: rgba(255, 255, 255, 0.16);
}
.client-bottom-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
    margin-top: 14px;
}
.client-panel-card {
    padding: 18px;
    border-radius: 18px;
    background: var(--client-card);
    border: 1px solid #e8eef7;
    box-shadow: var(--client-shadow);
}
.client-panel-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.client-panel-card header h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 18px;
}
.client-panel-card header a {
    color: var(--client-blue);
    text-decoration: none;
    font-size: 13px;
    font-weight: 650;
}
.client-empty-state {
    min-height: 160px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #64748b;
    gap: 8px;
}
.client-empty-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: #94a3b8;
}
.client-empty-icon .client-icon { width: 24px; height: 24px; }
.client-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.client-activity-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
}
.client-activity-list time { color: #64748b; white-space: nowrap; }
.client-help-actions { display: grid; gap: 10px; }
.client-help-btn {
    display: grid;
    gap: 2px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
}
.client-help-btn span { font-size: 12px; font-weight: 500; opacity: 0.92; }
.client-help-btn.whatsapp { background: #16a34a; }
.client-help-btn.mail { background: #2563eb; }
.client-empty { margin: 12px 0 0; color: #64748b; font-size: 14px; }
.client-shell .app-main { margin: 0; padding: 0; }
.client-shell .page-head h1 { font-size: 28px; }
.client-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.client-modal[hidden] { display: none; }
body.consult-open { overflow: hidden; }
.client-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.55);
    cursor: pointer;
}
.client-modal-dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: min(92vh, 860px);
    overflow: auto;
    padding: 18px 18px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}
.client-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.client-modal-api { margin: 4px 0 0; font-size: 12px; }
.client-modal-kicker {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--client-blue);
}
.client-modal-head h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: -0.03em;
}
.client-modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.client-modal-uf-desc {
    margin: 6px 0 0;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}
.client-modal-uf-desc[hidden] { display: none !important; }
.client-modal-form { display: grid; gap: 14px; }
.client-modal-form[hidden],
.client-crlve-picker[hidden],
.client-crlve-choice[hidden] {
    display: none !important;
}
.client-id-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}
.client-id-types[hidden] { display: none !important; }
.client-id-types label[hidden] { display: none !important; }
.client-id-types label {
    display: grid;
    gap: 0;
    min-height: 42px;
    place-items: center;
    padding: 10px 8px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.client-id-types input { position: absolute; opacity: 0; pointer-events: none; }
.client-id-types label:has(input:checked) {
    border-color: var(--client-blue);
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.15);
}
.client-crlve-picker {
    display: grid;
    gap: 10px;
    margin-bottom: 2px;
}
.client-crlve-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 4px;
    border-radius: 12px;
    background: #eef2f7;
}
.client-crlve-mode {
    display: grid;
    gap: 2px;
    place-items: center;
    min-height: 44px;
    padding: 8px 6px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #64748b;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.client-crlve-mode strong {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
}
.client-crlve-mode span {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.92;
}
.client-crlve-step-modes {
    display: grid;
    gap: 8px;
}
.client-crlve-step-modes[hidden] { display: none !important; }
.client-crlve-mode-eta {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}
.client-crlve-mode-eta.is-turbo {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.client-crlve-mode-eta.is-agendado {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}
.client-crlve-mode-eta[hidden] { display: none !important; }
.client-crlve-mode[data-crlve-mode="turbo"].is-active {
    background: #16a34a;
    color: #fff;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.28);
}
.client-crlve-mode[data-crlve-mode="agendado"].is-active {
    background: #ea580c;
    color: #fff;
    box-shadow: 0 2px 8px rgba(234, 88, 12, 0.28);
}
.client-crlve-mode[data-crlve-mode="turbo"]:not(.is-active):hover {
    color: #15803d;
    background: #dcfce7;
}
.client-crlve-mode[data-crlve-mode="agendado"]:not(.is-active):hover {
    color: #c2410c;
    background: #ffedd5;
}
.client-crlve-mode.is-unavailable,
.client-crlve-mode.is-unavailable:hover,
.client-crlve-mode:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    background: transparent !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
}
.client-crlve-mode.is-unavailable span {
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0;
    text-align: center;
    line-height: 1.2;
    max-width: 11em;
}
.client-crlve-picker > .hint {
    margin: 0;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
}
.client-crlve-uf-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    max-height: none;
    overflow: visible;
    padding: 0;
}
.client-crlve-uf {
    display: grid;
    gap: 2px;
    place-items: center;
    min-height: 52px;
    padding: 6px 4px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.client-crlve-uf strong {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #0f172a;
    line-height: 1.15;
}
.client-crlve-uf-price {
    display: block;
    font-style: normal;
    font-size: 9px;
    font-weight: 800;
    color: #1d4ed8;
    line-height: 1.15;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.client-crlve-uf:hover,
.client-crlve-uf:focus-visible {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.14);
    outline: none;
    transform: none;
}
.client-crlve-uf:hover strong,
.client-crlve-uf:focus-visible strong {
    color: #1d4ed8;
}
.client-crlve-uf:hover .client-crlve-uf-price,
.client-crlve-uf:focus-visible .client-crlve-uf-price {
    color: #1e40af;
}
.client-crlve-choice {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
    font-size: 13px;
    font-weight: 800;
}
@media (max-width: 560px) {
    .client-crlve-uf-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }
    .client-crlve-uf {
        min-height: 48px;
        padding: 5px 3px;
    }
    .client-crlve-uf strong { font-size: 11px; }
    .client-crlve-uf-price { font-size: 8px; }
}
@media (max-width: 420px) {
    .client-crlve-uf-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
.client-modal-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.client-crlve-extras {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}
.client-crlve-extras[hidden] { display: none !important; }
.crlve-emit {
    display: grid;
    gap: 14px;
}
.crlve-emit[hidden] { display: none !important; }
.client-standard-fields[hidden] { display: none !important; }
.client-modal-dialog:has([data-crlve-emit]:not([hidden])) {
    max-width: 560px;
}
.crlve-emit-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
.crlve-emit-fields-label {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
}
.crlve-emit-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.crlve-chip {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
}
.crlve-chip.is-placa { background: #dcfce7; color: #15803d; }
.crlve-chip.is-renavam { background: #fef3c7; color: #b45309; }
.crlve-chip.is-doc { background: #e0e7ff; color: #3730a3; }
.crlve-emit-top-side {
    display: grid;
    justify-items: end;
    gap: 6px;
}
.crlve-mode-pill {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fdba74;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.crlve-mode-pill.is-agendado {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #93c5fd;
}
.crlve-emit-price {
    font-size: 28px;
    line-height: 1;
    color: #16a34a;
    font-weight: 800;
}
.crlve-eta-banner {
    padding: 10px 14px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 13px;
    font-weight: 700;
}
.crlve-eta-banner.is-agendado {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e40af;
}
.crlve-eta-banner[hidden] { display: none !important; }
.crlve-emit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.crlve-field {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #334155;
}
.crlve-field em {
    color: #dc2626;
    font-style: normal;
}
.crlve-field.is-wide { grid-column: 1 / -1; }
.crlve-field > input {
    height: 48px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    padding: 0 14px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: normal;
    text-transform: none;
    background: #fff;
    color: #0f172a;
}
.crlve-field > input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.crlve-plate {
    display: grid;
    width: 100%;
    max-width: 220px;
    border: 1.5px solid #334155;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.crlve-plate-band {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 24px;
    background: #003399;
    color: #fff;
}
.crlve-plate-flag {
    position: relative;
    width: 18px;
    height: 12px;
    border-radius: 1px;
    background: #009c3b;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
    flex: 0 0 auto;
}
.crlve-plate-flag::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 10px;
    height: 10px;
    background: #ffdf00;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.crlve-plate-flag::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #002776;
}
.crlve-plate-br {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    line-height: 1;
}
.crlve-plate input {
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 0;
    text-align: center;
    font-family: "Segoe UI", Consolas, "Courier New", monospace;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: #fff;
    color: #1e293b;
    padding: 0 8px 2px;
    font-variant-numeric: slashed-zero;
}
.crlve-plate input::placeholder {
    color: #94a3b8;
    letter-spacing: 0.22em;
}
.crlve-plate input:focus {
    outline: none;
    background: #fff;
    box-shadow: inset 0 0 0 2px rgba(0, 51, 153, 0.25);
}
html[data-client-theme="dark"] .crlve-plate {
    background: #fff;
    border-color: #64748b;
}
html[data-client-theme="dark"] .crlve-plate input {
    background: #fff;
    color: #1e293b;
}
.crlve-debit-note {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}
.crlve-balance-lock {
    display: grid;
    gap: 8px;
    justify-items: start;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
}
.crlve-balance-lock[hidden] { display: none !important; }
.crlve-balance-lock strong {
    font-size: 14px;
    color: #78350f;
}
.crlve-balance-lock p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}
.crlve-emit.is-balance-locked .crlve-emit-grid,
.crlve-emit.is-balance-locked .crlve-batch-fields,
.crlve-emit.is-balance-locked .crlve-terms,
.crlve-emit.is-balance-locked .placa-page-mode {
    opacity: 0.55;
    pointer-events: none;
    filter: grayscale(0.15);
}
.client-crlve-uf.is-unaffordable {
    opacity: 0.72;
    border-style: dashed;
}
.client-crlve-uf.is-unaffordable::after {
    content: 'Sem saldo';
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 600;
    color: #b45309;
    letter-spacing: 0.02em;
}
.crlve-terms {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    background: #f8fbff;
}
.crlve-terms-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
    color: #0f172a;
    cursor: pointer;
}
.crlve-terms-check input {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
}
.crlve-terms-link {
    border: 0;
    background: none;
    color: #2563eb;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}
.crlve-emit-actions {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    align-items: center;
}
.crlve-confirm-btn {
    justify-content: center;
    min-height: 48px;
    font-weight: 800;
}
.crlve-confirm-btn span {
    margin-left: 4px;
}
.crlve-terms-modal .client-modal-dialog {
    max-width: 480px;
}
.crlve-terms-body {
    display: grid;
    gap: 12px;
    padding: 4px 2px 8px;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
}
.crlve-terms-body p { margin: 0; }
.consult-progress-modal {
    --consult-progress-bg: #000000;
    padding: 0;
    background: var(--consult-progress-bg);
}
.consult-progress-backdrop {
    background: var(--consult-progress-bg);
    cursor: default;
}
.consult-progress-backdrop:not([hidden]) {
    cursor: pointer;
}
.consult-progress-backdrop[hidden] {
    display: block !important;
    pointer-events: none;
    opacity: 1;
}
.consult-progress-dialog {
    max-width: min(960px, calc(100vw - 32px));
    width: min(960px, calc(100vw - 32px));
    max-height: min(92vh, 900px);
    padding: 14px 14px 16px;
    border-radius: 18px;
    background: var(--consult-progress-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
    color: #e2e8f0;
}
.consult-progress-head {
    margin-bottom: 10px;
}
.consult-progress-head .client-modal-kicker {
    color: #60a5fa;
}
.consult-progress-head h2 {
    color: #f8fafc;
}
.consult-progress-head .hint {
    color: #94a3b8;
}
.consult-progress-dialog .client-modal-close {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(148, 163, 184, 0.28);
    color: #cbd5e1;
}
.consult-progress-body {
    display: grid;
    gap: 12px;
    justify-items: center;
    text-align: center;
    padding: 4px 2px 8px;
}
.consult-progress-body[hidden] { display: none !important; }
.consult-progress-body.is-loading-media {
    gap: 0;
    padding: 0;
}
.consult-progress-modal.is-loading .consult-progress-head,
.consult-progress-modal.is-loading .consult-progress-lead,
.consult-progress-modal.is-loading .consult-progress-hint {
    display: none !important;
}
.consult-progress-modal.is-loading .consult-progress-dialog {
    padding: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    max-width: min(1100px, calc(100vw - 48px));
    width: min(1100px, calc(100vw - 48px));
    max-height: none;
    background: #000;
    box-shadow: none;
}
.consult-progress-modal.is-loading .consult-progress-body {
    padding: 0;
    width: 100%;
}
.consult-progress-modal.is-loading .consult-progress-video-wrap {
    border-radius: 0;
    max-height: min(78vh, 720px);
    aspect-ratio: 16 / 9;
    box-shadow: none;
    background: #000;
}
.consult-progress-video-wrap {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16 / 9;
    max-height: min(52vh, 405px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.consult-progress-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    vertical-align: top;
}
.consult-progress-lead {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #f1f5f9;
}
.consult-progress-hint {
    margin: 0;
    color: #94a3b8;
}
.consult-progress-error {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(127, 29, 29, 0.35);
    border: 1px solid #7f1d1d;
    color: #fecaca;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    text-align: left;
    width: 100%;
}
.consult-progress-icon {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    position: relative;
}
.consult-progress-icon.is-ok {
    background: rgba(22, 163, 74, 0.22);
}
.consult-progress-icon.is-ok::before {
    content: "";
    position: absolute;
    left: 20px;
    top: 16px;
    width: 14px;
    height: 24px;
    border: solid #4ade80;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
}
.consult-progress-icon.is-err {
    background: rgba(220, 38, 38, 0.22);
}
.consult-progress-icon.is-err::before,
.consult-progress-icon.is-err::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 16px;
    width: 4px;
    height: 26px;
    border-radius: 2px;
    background: #f87171;
}
.consult-progress-icon.is-err::before { transform: rotate(45deg); }
.consult-progress-icon.is-err::after { transform: rotate(-45deg); }
.consult-progress-body .result-share-actions {
    width: 100%;
    text-align: left;
}
.consult-progress-body .client-modal-actions {
    width: 100%;
}
.consult-progress-dialog .result-share-btn {
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.28);
    color: #f8fafc;
}
.consult-progress-dialog .result-share-btn span {
    color: #94a3b8;
}
.consult-progress-dialog .result-share-btn.is-download {
    background: rgba(30, 58, 138, 0.45);
    border-color: #2563eb;
}
.consult-progress-dialog .result-share-btn.is-view {
    background: rgba(20, 83, 45, 0.45);
    border-color: #16a34a;
}
.consult-progress-dialog .result-share-btn.is-whatsapp {
    background: rgba(20, 83, 45, 0.45);
    border-color: #16a34a;
}
.consult-progress-dialog .result-share-btn.is-email {
    background: rgba(66, 32, 6, 0.45);
    border-color: #ca8a04;
}
.consult-progress-dialog .btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(148, 163, 184, 0.3);
    color: #e2e8f0;
}
html[data-client-theme="dark"] .consult-progress-dialog {
    background: var(--consult-progress-bg);
    border-color: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
}
@media (max-width: 640px) {
    .consult-progress-dialog {
        width: 100%;
        max-width: 100%;
        border-radius: 18px 18px 0 0;
        margin-top: auto;
    }
    .consult-progress-modal {
        align-items: flex-end;
    }
}
@media (max-width: 640px) {
    .crlve-emit-grid { grid-template-columns: 1fr; }
    .crlve-emit-top { flex-direction: column; }
    .crlve-emit-top-side { justify-items: start; }
    .crlve-emit-actions {
        grid-template-columns: 1fr;
    }
}
html[data-client-theme="dark"] .crlve-field { color: #cbd5e1; }
html[data-client-theme="dark"] .crlve-field > input {
    background: #0f172a;
    color: #e2e8f0;
    border-color: #334155;
}
html[data-client-theme="dark"] .crlve-debit-note {
    background: #172554;
    border-color: #1d4ed8;
    color: #bfdbfe;
}
html[data-client-theme="dark"] .crlve-terms {
    background: #0f172a;
    border-color: #1e3a8a;
}
html[data-client-theme="dark"] .crlve-terms-check { color: #e2e8f0; }
html[data-client-theme="dark"] .crlve-eta-banner {
    background: #431407;
    border-color: #c2410c;
    color: #fdba74;
}

.client-modal-field input {
    height: 44px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    padding: 0 12px;
    font: inherit;
    background: #fff;
}
.client-modal-field input:focus {
    outline: none;
    border-color: var(--client-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.client-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}
.result-share-dialog {
    max-width: 440px;
}
.result-share-actions {
    display: grid;
    gap: 10px;
    padding: 0 4px 8px;
}
.result-share-actions[hidden],
.result-share-email[hidden],
.result-share-wa[hidden] {
    display: none !important;
}
.result-share-btn {
    display: grid;
    gap: 2px;
    text-align: left;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.result-share-btn:hover,
.result-share-btn:focus-visible {
    border-color: #93c5fd;
    background: #f8fbff;
    transform: translateY(-1px);
    outline: none;
}
.result-share-btn strong {
    font-size: 15px;
}
.result-share-btn span {
    font-size: 12px;
    color: #64748b;
}
.result-share-btn.is-download {
    border-color: #bfdbfe;
    background: #eff6ff;
}
.result-share-btn.is-view {
    border-color: #86efac;
    background: #f0fdf4;
}
.result-share-btn.is-whatsapp {
    border-color: #bbf7d0;
    background: #f0fdf4;
}
.result-share-btn.is-email {
    border-color: #fde68a;
    background: #fffbeb;
}
.result-share-email,
.result-share-wa {
    display: grid;
    gap: 12px;
    padding: 4px 4px 8px;
}
html[data-client-theme="dark"] .result-share-btn {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-client-theme="dark"] .result-share-btn span { color: #94a3b8; }
html[data-client-theme="dark"] .result-share-btn.is-download { background: #172554; border-color: #1d4ed8; }
html[data-client-theme="dark"] .result-share-btn.is-view { background: #14532d; border-color: #16a34a; }
html[data-client-theme="dark"] .result-share-btn.is-whatsapp { background: #14532d; border-color: #16a34a; }
html[data-client-theme="dark"] .result-share-btn.is-email { background: #422006; border-color: #ca8a04; }

.client-modal-actions [data-consult-back-ufs][hidden] {
    display: none !important;
}

html[data-client-theme="dark"] .client-shell {
    --client-surface: #0b1220;
    --client-card: #111827;
    --ink: #e5e7eb;
    --muted: #94a3b8;
    color: #e5e7eb;
    background: var(--client-surface);
}
html[data-client-theme="dark"] .client-topbar {
    background: rgba(17, 24, 39, 0.94);
    border-bottom-color: #1f2937;
}
html[data-client-theme="dark"] .client-search {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}
html[data-client-theme="dark"] .client-search input { color: #e5e7eb; }
html[data-client-theme="dark"] .client-user-trigger {
    background: #0f172a;
    border-color: #334155;
    box-shadow: none;
}
html[data-client-theme="dark"] .client-user-trigger:hover,
html[data-client-theme="dark"] .client-user-menu.is-open .client-user-trigger {
    background: #1f2937;
    border-color: #60a5fa;
    box-shadow: 0 4px 14px rgba(2, 6, 23, 0.35);
}
html[data-client-theme="dark"] .client-user-caret {
    background: #1e3a8a;
    color: #93c5fd;
}
html[data-client-theme="dark"] .client-user-trigger:hover .client-user-caret,
html[data-client-theme="dark"] .client-user-menu.is-open .client-user-caret {
    background: #1d4ed8;
    color: #eff6ff;
}
html[data-client-theme="dark"] .client-user-dropdown {
    background: #111827;
    border-color: #334155;
}
html[data-client-theme="dark"] .client-user-dropdown a,
html[data-client-theme="dark"] .client-user-dropdown button { color: #e5e7eb; }
html[data-client-theme="dark"] .client-user-dropdown a:hover,
html[data-client-theme="dark"] .client-user-dropdown button:hover { background: #1f2937; }
html[data-client-theme="dark"] .client-services,
html[data-client-theme="dark"] .client-panel-card,
html[data-client-theme="dark"] .client-stat-card,
html[data-client-theme="dark"] .client-service-card,
html[data-client-theme="dark"] .client-modal-dialog {
    background: var(--client-card);
    border-color: #334155;
    color: #e5e7eb;
}
html[data-client-theme="dark"] .client-service-category,
html[data-client-theme="dark"] .client-service-category-head {
    background: transparent;
    border-color: transparent;
}
html[data-client-theme="dark"] .client-service-card {
    background: linear-gradient(135deg, #0f172a 40%, #111827 100%);
}
html[data-client-theme="dark"] .client-service-card-price {
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
}
html[data-client-theme="dark"] .client-service-category-copy p,
html[data-client-theme="dark"] .page-lead,
html[data-client-theme="dark"] .client-account-list dt { color: #94a3b8; }
html[data-client-theme="dark"] .client-service-category-label { color: #e2e8f0; }
html[data-client-theme="dark"] .client-service-category-more {
    background: transparent;
    border: 0;
    color: #93c5fd;
}
html[data-client-theme="dark"] .client-footer { color: #94a3b8; }
html[data-client-theme="dark"] .client-welcome,
html[data-client-theme="dark"] .client-lead,
html[data-client-theme="dark"] .client-stat-card p { color: #94a3b8; }
html[data-client-theme="dark"] .client-inline-search,
html[data-client-theme="dark"] .client-select-wrap,
html[data-client-theme="dark"] .client-account-form .stack input,
html[data-client-theme="dark"] .client-modal-field input {
    background: #0f172a;
    border-color: #334155;
    color: #e5e7eb;
}
html[data-client-theme="dark"] .client-crlve-modes {
    background: #0f172a;
}
html[data-client-theme="dark"] .client-crlve-mode {
    color: #94a3b8;
}
html[data-client-theme="dark"] .client-crlve-mode[data-crlve-mode="turbo"].is-active {
    background: #16a34a;
    color: #fff;
}
html[data-client-theme="dark"] .client-crlve-mode[data-crlve-mode="agendado"].is-active {
    background: #ea580c;
    color: #fff;
}
html[data-client-theme="dark"] .client-crlve-mode[data-crlve-mode="turbo"]:not(.is-active):hover {
    background: #14532d;
    color: #86efac;
}
html[data-client-theme="dark"] .client-crlve-mode[data-crlve-mode="agendado"]:not(.is-active):hover {
    background: #7c2d12;
    color: #fdba74;
}
html[data-client-theme="dark"] .client-crlve-mode.is-unavailable,
html[data-client-theme="dark"] .client-crlve-mode.is-unavailable:hover,
html[data-client-theme="dark"] .client-crlve-mode:disabled {
    color: #64748b !important;
    background: transparent !important;
}
html[data-client-theme="dark"] .client-crlve-mode.is-unavailable span {
    color: #94a3b8;
}
html[data-client-theme="dark"] .client-crlve-mode-eta.is-turbo {
    background: #14532d;
    color: #bbf7d0;
    border-color: #166534;
}
html[data-client-theme="dark"] .client-crlve-mode-eta.is-agendado {
    background: #7c2d12;
    color: #fed7aa;
    border-color: #c2410c;
}
html[data-client-theme="dark"] .client-crlve-picker > .hint {
    color: #e2e8f0;
}
html[data-client-theme="dark"] .client-crlve-uf {
    background: #0f172a;
    border-color: #475569;
}
html[data-client-theme="dark"] .client-crlve-uf strong {
    color: #f8fafc;
}
html[data-client-theme="dark"] .client-crlve-uf:hover,
html[data-client-theme="dark"] .client-crlve-uf:focus-visible {
    background: #1e3a8a;
    border-color: #60a5fa;
}
html[data-client-theme="dark"] .client-crlve-uf:hover strong,
html[data-client-theme="dark"] .client-crlve-uf:focus-visible strong {
    color: #eff6ff;
}
html[data-client-theme="dark"] .client-crlve-choice {
    background: #1e3a8a;
    border-color: #3b82f6;
    color: #dbeafe;
}
html[data-client-theme="dark"] .client-id-types label {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-client-theme="dark"] .client-id-types label:has(input:checked) {
    background: #1e3a8a;
    border-color: #60a5fa;
    color: #dbeafe;
}

@media (max-width: 1280px) {
    .client-service-grid {
        grid-template-columns: repeat(auto-fill, 260px);
    }
}

@media (max-width: 1180px) {
    .client-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .client-account-grid { grid-template-columns: 1fr; }
    .client-service-grid { grid-template-columns: repeat(auto-fill, 240px); }
    .client-service-card {
        width: 240px;
        height: 240px;
        min-height: 240px;
        max-height: 240px;
        max-width: 240px;
    }
    .client-hero { grid-template-columns: 1fr; }
    .client-promo {
        max-width: none;
        justify-self: stretch;
    }
    .client-user-meta strong { max-width: 140px; }
}

@media (max-width: 980px) {
    .client-menu-toggle { display: inline-grid; place-items: center; }
    .client-sidebar {
        transform: translateX(-105%);
        transition: transform 0.18s ease;
        box-shadow: 12px 0 30px rgba(8, 24, 51, 0.28);
        width: min(288px, 86vw);
    }
    body.nav-open .client-sidebar { transform: none; }
    body.nav-open { overflow: hidden; }
    body.nav-open::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.48);
        z-index: 35;
    }
    .client-frame { margin-left: 0; width: 100%; }
    .client-topbar {
        padding-inline: 12px;
        gap: 10px;
        min-height: 64px;
        flex-wrap: wrap;
    }
    .client-menu-toggle { order: 1; flex: 0 0 auto; }
    .client-topbar-actions {
        order: 2;
        margin-left: auto;
        gap: 8px;
        min-width: 0;
        max-width: calc(100% - 52px);
    }
    .client-search {
        order: 3;
        flex: 1 1 100%;
        min-width: 0;
    }
    .client-main {
        padding-inline: 12px;
        padding-top: 16px;
        min-width: 0;
    }
    .client-search kbd { display: none; }
    .client-credits {
        min-width: 0;
        max-width: 100%;
        padding: 8px 10px;
        gap: 2px 8px;
    }
    .client-credits-value { font-size: 15px; }
    .client-credits-btn {
        padding: 7px 8px;
        font-size: 11px;
        white-space: nowrap;
    }
    .client-user-trigger {
        max-width: 100%;
        min-width: 0;
    }
    .client-user-dropdown {
        right: 0;
        left: auto;
        min-width: min(240px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
    }
    .client-bottom-grid { grid-template-columns: 1fr; }
    .client-section-head { flex-direction: column; align-items: stretch; }
    .client-services-tools { flex-direction: column; align-items: stretch; }
    .client-inline-search { min-width: 0; width: 100%; }
    .client-footer {
        flex-direction: column;
        align-items: flex-start;
        padding-inline: 12px;
    }
    .client-footer nav { flex-wrap: wrap; }
    .client-activity-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .client-activity-list time { white-space: normal; }
    .client-modal { padding: 12px; align-items: flex-end; }
    .client-modal-dialog {
        width: 100%;
        max-height: min(90vh, 640px);
        overflow: auto;
        border-radius: 18px 18px 12px 12px;
    }
}

@media (max-width: 640px) {
    .brand em, .balance-chip, .company-chip { display: none; }
    .site-topbar-bar {
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding-block: 8px;
    }
    .site-topbar-copy {
        font-size: 12px;
    }
    .specimen-counts { grid-template-columns: 1fr 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .metrics, .metrics-3 { grid-template-columns: 1fr; }
    .sheet { display: block; overflow-x: auto; }
    .address-grid { grid-template-columns: 1fr; }
    .address-grid .wide { grid-column: auto; }
    .choice { grid-template-columns: 1fr; }

    .client-topbar {
        padding-inline: 10px;
        gap: 8px;
    }
    .client-topbar-actions {
        gap: 6px;
        max-width: calc(100% - 48px);
    }
    .client-credits {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 8px 6px 10px;
        border-radius: 999px;
    }
    .client-credits-label { display: none; }
    .client-credits-value {
        font-size: 13px;
        line-height: 1.2;
        white-space: nowrap;
    }
    .client-credits-btn {
        padding: 6px 8px;
        font-size: 11px;
    }
    .client-user-meta { display: none; }
    .client-user-trigger {
        padding: 4px 6px 4px 4px;
        gap: 6px;
    }
    .client-user-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    .client-main { padding-inline: 10px; padding-bottom: 24px; }
    .client-hero { gap: 12px; margin-bottom: 14px; }
    .client-hero h1 { font-size: clamp(24px, 7vw, 30px); }
    .client-lead { font-size: 14px; max-width: none; }
    .client-promo {
        border-radius: 14px;
        max-width: none;
    }
    .client-promo-banner {
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        object-fit: contain;
    }
    .client-stats {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 14px;
    }
    .client-stat-card {
        padding: 14px;
        min-width: 0;
    }
    .client-stat-card strong {
        font-size: 24px;
        overflow-wrap: anywhere;
    }
    .client-services { padding: 14px; border-radius: 16px; }
    .client-section-head h2 { font-size: 18px; }
    .client-service-categories {
        gap: 56px;
    }
    .client-services-monitoramento {
        margin-top: 40px;
    }
    .client-service-category-head {
        flex-wrap: wrap;
        gap: 8px;
        padding: 4px 0 22px;
    }
    .client-service-category-more { width: auto; text-align: left; margin-left: 0; }
    .client-service-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 0;
        justify-content: stretch;
    }
    .client-service-card {
        width: 100%;
        max-width: none;
        height: 260px;
        min-height: 260px;
        max-height: 260px;
    }
    .client-panel-card { min-width: 0; }
    .client-panel-card header {
        flex-wrap: wrap;
        gap: 8px;
    }
    .client-help-btn { padding: 12px 14px; }
    .admin-filter { flex-direction: column; align-items: stretch; }
    .admin-filter label { flex: 1 1 auto; }
}

/* âââ Admin (alinhado ao painel cliente) âââ */
.client-main:has(.admin-subnav) .page-head {
    align-items: center;
    gap: 16px;
    margin-bottom: 4px;
}
.client-main:has(.admin-subnav) .page-head h1 {
    font-size: 28px;
    letter-spacing: -0.03em;
    color: var(--client-navy);
}
.client-main:has(.admin-subnav) .kicker {
    color: var(--client-blue);
    font-family: inherit;
    font-weight: 800;
    letter-spacing: 0.06em;
}
.client-main:has(.admin-subnav) .page-lead {
    margin: 6px 0 20px;
    color: #64748b;
}
.client-main:has(.admin-subnav) .page-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}
.client-main:has(.admin-subnav) .btn {
    height: 40px;
    border-radius: 12px;
    border: 1px solid #dbe3f0;
    background: #fff;
    color: #1e293b;
    font-weight: 700;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.client-main:has(.admin-subnav) .btn:hover {
    border-color: #93c5fd;
    background: #f8fbff;
}
.client-main:has(.admin-subnav) .btn-primary {
    background: var(--client-blue);
    border-color: var(--client-blue);
    color: #fff;
}
.client-main:has(.admin-subnav) .btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}
.client-main:has(.admin-subnav) .panel {
    background: var(--client-card);
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: var(--client-shadow);
    overflow-x: auto;
}
.client-main:has(.admin-subnav) .panel h2 {
    font-size: 16px;
    font-weight: 800;
    color: var(--client-navy);
}
.client-main:has(.admin-subnav) .sheet {
    font-size: 14px;
}
.client-main:has(.admin-subnav) .sheet th {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    letter-spacing: 0.04em;
}
.client-main:has(.admin-subnav) .sheet th:first-child {
    border-radius: 10px 0 0 10px;
}
.client-main:has(.admin-subnav) .sheet th:last-child {
    border-radius: 0 10px 10px 0;
}
.client-main:has(.admin-subnav) .sheet td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}
.client-main:has(.admin-subnav) .sheet tbody tr:hover td {
    background: #f8fbff;
}
.client-main:has(.admin-subnav) .sheet a {
    color: var(--client-blue);
    font-weight: 700;
    text-decoration: none;
}
.client-main:has(.admin-subnav) .sheet a:hover {
    text-decoration: underline;
}
.client-main:has(.admin-subnav) .banner {
    border-radius: 12px;
    border-color: #bbf7d0;
    background: #ecfdf5;
}

.admin-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 35, 75, 0.05);
}
.admin-subnav-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 14px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #475569;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.15s ease, color 0.15s ease;
}
.admin-subnav-link:hover {
    background: #f1f5f9;
    color: #0f172a;
}
.admin-subnav-link.is-active {
    background: var(--client-blue);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.admin-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
    align-items: end;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 35, 75, 0.04);
}
.admin-filter label { flex: 1 1 240px; margin: 0; }
.admin-filter input,
.admin-filter select {
    width: 100%;
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--ink);
    font: inherit;
}
.admin-filter input:focus,
.admin-filter select:focus {
    outline: none;
    border-color: var(--client-blue);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.metrics-admin {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
    border: 0;
    background: transparent;
}
.metrics-admin div {
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(15, 35, 75, 0.04);
}
.metrics-admin span {
    display: block;
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 800;
}
.metrics-admin strong {
    display: block;
    margin-top: 6px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--client-navy);
    font-variant-numeric: tabular-nums;
}
.metrics-admin em {
    display: block;
    margin-top: 4px;
    font-style: normal;
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}
.metrics-admin .metrics-text { font-size: 16px; line-height: 1.3; }

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.admin-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.admin-panel-head h2 { margin: 0; }
.admin-panel-head a {
    color: var(--client-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}
.admin-panel-head a:hover { text-decoration: underline; }

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.admin-service-image-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
}
.admin-service-image-preview img {
    width: 120px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
}
.admin-form-grid label {
    display: grid;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}
.admin-form-grid label.wide { grid-column: 1 / -1; }
.admin-form-grid label.check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-weight: 700;
}
.admin-form-grid input[type="text"],
.admin-form-grid input[type="number"],
.admin-form-grid input[type="file"],
.admin-form-grid select {
    height: 42px;
    border: 1px solid #dbe3f0;
    border-radius: 12px;
    padding: 0 12px;
    font: inherit;
    font-weight: 500;
    background: #fff;
}
.admin-form-grid input:focus,
.admin-form-grid select:focus {
    outline: none;
    border-color: var(--client-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.admin-form-grid input:disabled {
    background: #f1f5f9;
    color: #64748b;
}
.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.admin-input-flags {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}
.admin-input-flags-title {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
}
.admin-input-flags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}
.admin-input-flags .hint {
    margin: 0;
}

.admin-badge {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.admin-badge.is-on {
    background: #ecfdf5;
    color: #047857;
}
.admin-badge.is-off {
    background: #fef2f2;
    color: #b91c1c;
}
.admin-badge.is-no-api {
    background: #dc2626;
    color: #fff;
    border: 1px solid #b91c1c;
}
.admin-badge.is-soft {
    background: #eff6ff;
    color: #1d4ed8;
}
.admin-uf-lead-danger {
    color: #b91c1c;
}
.admin-uf-row.is-no-api > td {
    background: #fef2f2;
}
.admin-uf-row.is-no-api td:first-child {
    box-shadow: inset 4px 0 0 #dc2626;
    font-weight: 800;
    color: #991b1b;
}
.admin-uf-row.is-api-live > td {
    background: #f0fdf4;
}
.admin-uf-no-api-hint {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #b91c1c;
}
.admin-provider-box {
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    display: grid;
    gap: 4px;
}
.admin-provider-box.is-no-api {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}
.admin-provider-box.is-no-api strong {
    color: #b91c1c;
}
.admin-provider-box.is-api-live {
    border-color: #86efac;
    background: #f0fdf4;
}
.admin-provider-box.is-api-warn {
    border-color: #fcd34d;
    background: #fffbeb;
}
.admin-provider-box[hidden] { display: none !important; }
.admin-provider-box .kicker {
    margin: 0 0 2px;
}
.admin-provider-box strong {
    font-size: 16px;
}
.admin-provider-box .mono {
    word-break: break-all;
    font-size: 12px;
}
.admin-table-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.admin-table-actions a,
.admin-table-actions-btn {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    border: 0;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.admin-table-actions a:hover,
.admin-table-actions-btn:hover {
    background: #dbeafe;
    text-decoration: none;
}
.admin-table-actions-btn.is-danger {
    background: #dc2626;
    color: #fff;
}
.admin-table-actions-btn.is-danger:hover {
    background: #b91c1c;
}
.admin-table-actions-btn.is-success {
    background: #059669;
    color: #fff;
}
.admin-table-actions-btn.is-success:hover {
    background: #047857;
}

.admin-modal[hidden] { display: none !important; }
.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px 16px;
}
.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(15, 23, 42, 0.48);
    cursor: pointer;
}
.admin-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(88vh, 900px);
    overflow: auto;
    padding: 20px 22px 22px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}
.admin-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}
.admin-modal-head .kicker { margin-bottom: 4px; }
.admin-modal-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--client-navy);
}
.admin-modal-close {
    width: 36px;
    height: 36px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: #64748b;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
body.admin-modal-open { overflow: hidden; }
html[data-client-theme="dark"] .admin-modal-dialog {
    background: #111827;
    border-color: #334155;
}
html[data-client-theme="dark"] .admin-modal-head h2 { color: #e2e8f0; }
html[data-client-theme="dark"] .admin-modal-close {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

.admin-user-dialog {
    width: min(720px, 100%);
}
.admin-users-actions-col {
    width: 1%;
    white-space: nowrap;
}
.admin-users-actions-btn {
    min-width: 88px;
}
.admin-user-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.admin-user-summary span {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 650;
}
.admin-user-sections {
    display: grid;
    gap: 14px;
}
.admin-user-section {
    padding: 14px 14px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    display: grid;
    gap: 10px;
}
.admin-user-section[hidden] { display: none !important; }
.admin-user-section h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--client-navy, #0b2a5b);
}
.admin-user-form {
    display: grid;
    gap: 10px;
}
.admin-user-form.admin-user-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.admin-user-form label {
    display: grid;
    gap: 4px;
    font-size: 12px;
    font-weight: 650;
}
.admin-user-form input,
.admin-user-form select {
    height: 38px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font: inherit;
}
.admin-user-form .wide { grid-column: 1 / -1; }
html[data-client-theme="dark"] .admin-user-section {
    background: #0f172a;
    border-color: #334155;
}
html[data-client-theme="dark"] .admin-user-section h3 { color: #e2e8f0; }
html[data-client-theme="dark"] .admin-user-summary span {
    background: #1e293b;
    color: #cbd5e1;
}
html[data-client-theme="dark"] .admin-user-form input,
html[data-client-theme="dark"] .admin-user-form select {
    background: #020617;
    border-color: #334155;
    color: #e2e8f0;
}

html[data-client-theme="dark"] .admin-table-actions-btn {
    background: #1e3a8a;
    color: #dbeafe;
}
html[data-client-theme="dark"] .admin-table-actions-btn.is-danger {
    background: #dc2626;
    color: #fff;
}
html[data-client-theme="dark"] .admin-table-actions-btn.is-success {
    background: #059669;
    color: #fff;
}

.admin-dl { display: grid; gap: 10px; margin: 0 0 14px; }
.admin-dl div { display: grid; gap: 2px; }
.admin-dl dt {
    font-size: 11px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 800;
}
.admin-dl dd { margin: 0; font-size: 14px; font-weight: 600; }
.admin-inline-form { margin: 0; }
.muted { color: var(--muted); font-size: 12px; }
.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;
}

html[data-client-theme="dark"] .client-main:has(.admin-subnav) .page-head h1,
html[data-client-theme="dark"] .metrics-admin strong,
html[data-client-theme="dark"] .client-main:has(.admin-subnav) .panel h2 {
    color: #e2e8f0;
}
html[data-client-theme="dark"] .admin-subnav,
html[data-client-theme="dark"] .admin-filter,
html[data-client-theme="dark"] .metrics-admin div,
html[data-client-theme="dark"] .client-main:has(.admin-subnav) .panel {
    background: #111827;
    border-color: #334155;
    box-shadow: none;
}
html[data-client-theme="dark"] .admin-subnav-link { color: #94a3b8; }
html[data-client-theme="dark"] .admin-subnav-link:hover {
    background: #1f2937;
    color: #e2e8f0;
}
html[data-client-theme="dark"] .admin-subnav-link.is-active {
    background: #2563eb;
    color: #fff;
}
html[data-client-theme="dark"] .client-main:has(.admin-subnav) .sheet th {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}
html[data-client-theme="dark"] .client-main:has(.admin-subnav) .sheet td {
    border-color: #1f2937;
}
html[data-client-theme="dark"] .client-main:has(.admin-subnav) .sheet tbody tr:hover td {
    background: #0f172a;
}
html[data-client-theme="dark"] .admin-filter input,
html[data-client-theme="dark"] .admin-filter select,
html[data-client-theme="dark"] .admin-form-grid input[type="text"],
html[data-client-theme="dark"] .admin-form-grid input[type="number"],
html[data-client-theme="dark"] .admin-form-grid select,
html[data-client-theme="dark"] .admin-form-grid label.check {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-client-theme="dark"] .client-main:has(.admin-subnav) .btn {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-client-theme="dark"] .client-crlve-uf-price {
    color: #93c5fd;
}
html[data-client-theme="dark"] .admin-input-flags {
    background: #0f172a;
    border-color: #334155;
}
html[data-client-theme="dark"] .admin-input-flags-title {
    color: #e2e8f0;
}

@media (max-width: 960px) {
    .admin-grid { grid-template-columns: 1fr; }
    .metrics-admin { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .admin-form-grid { grid-template-columns: 1fr; }
    .metrics-admin { grid-template-columns: 1fr; }
    .admin-filter { flex-direction: column; align-items: stretch; }
    .admin-filter label { flex: 1 1 auto; }
    .client-main:has(.admin-subnav) .page-head {
        flex-direction: column;
        align-items: stretch;
    }
    .client-main:has(.admin-subnav) .page-head-actions {
        margin-left: 0;
    }
}

/* Historico de pedidos */
.history-head .page-lead { margin-bottom: 0; }
.history-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 12px 0 10px;
}
.history-stat {
    display: grid;
    gap: 2px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--client-card, var(--paper));
    text-decoration: none;
    box-shadow: var(--client-shadow, none);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.history-stat:hover {
    transform: translateY(-1px);
    border-color: #b8c4d8;
}
.history-stat span {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}
.history-stat strong {
    font-size: 20px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.history-stat.is-ok strong { color: #15803d; }
.history-stat.is-run strong { color: #1d4ed8; }
.history-stat.is-err strong { color: #b91c1c; }
.history-stat.is-all strong { color: var(--client-navy, var(--ink)); }
.history-stat.is-active {
    box-shadow: 0 0 0 2px currentColor inset;
}
.history-stat.is-ok.is-active { color: #15803d; background: #f0fdf4; border-color: #86efac; }
.history-stat.is-run.is-active { color: #1d4ed8; background: #eff6ff; border-color: #93c5fd; }
.history-stat.is-err.is-active { color: #b91c1c; background: #fef2f2; border-color: #fca5a5; }
.history-stat.is-all.is-active { color: var(--client-navy); background: #eff6ff; border-color: #93c5fd; }

.history-toolbar.panel {
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    background: var(--client-card, var(--paper));
    box-shadow: var(--client-shadow, none);
}
.history-search {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
}
.history-search-field {
    display: grid;
    gap: 4px;
    flex: 1 1 200px;
    font-size: 12px;
    font-weight: 600;
}
.history-search-field input {
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-family: var(--mono);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.history-search-field input:focus {
    outline: none;
    border-color: var(--client-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.history-list {
    display: grid;
    gap: 6px;
}
.history-table-wrap {
    padding: 0;
    overflow-x: auto;
}
.history-table {
    margin: 0;
    min-width: 960px;
}
.history-table th,
.history-table td {
    padding: 10px 12px;
    vertical-align: middle;
}
.history-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
}
.history-cell-when {
    display: grid;
    gap: 6px;
    min-width: 120px;
}
.history-cell-when time {
    font-size: 12px;
    color: var(--muted);
}
.history-cell-num {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.history-cell-num.is-ok { color: #15803d; }
.history-cell-error {
    max-width: 220px;
    font-size: 12px;
    color: var(--muted);
}
.history-cell-error.is-err { color: #b91c1c; font-weight: 650; }
.history-cell-money {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.history-cell-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    white-space: nowrap;
}
.history-cell-actions .btn {
    min-height: 32px;
    padding: 0 10px;
    font-size: 12px;
}
.history-row.is-ok td:first-child { box-shadow: inset 3px 0 0 #22c55e; }
.history-row.is-run td:first-child { box-shadow: inset 3px 0 0 #3b82f6; }
.history-row.is-err td:first-child { box-shadow: inset 3px 0 0 #ef4444; }
.history-empty {
    display: grid;
    gap: 12px;
    justify-items: start;
    padding: 28px 20px;
    border-radius: 10px;
}
.history-badge {
    display: inline-flex;
    align-items: center;
    height: 20px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    width: fit-content;
}
.history-badge.is-ok {
    background: #dcfce7;
    color: #166534;
}
.history-badge.is-run {
    background: #dbeafe;
    color: #1e40af;
}
.history-badge.is-err {
    background: #fee2e2;
    color: #991b1b;
}
.history-badge.is-muted {
    background: #e2e8f0;
    color: #475569;
}
html[data-client-theme="dark"] .history-table thead th {
    background: #0f172a;
}
html[data-client-theme="dark"] .history-cell-error.is-err { color: #fca5a5; }
html[data-client-theme="dark"] .history-cell-num.is-ok { color: #86efac; }

@media (max-width: 900px) {
    .history-summary {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .history-table-wrap {
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
    }
    .history-table {
        min-width: 0;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 10px;
    }
    .history-table thead {
        display: none;
    }
    .history-table tbody {
        display: grid;
        gap: 10px;
    }
    .history-table tr.history-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px 12px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--client-card, var(--paper));
        box-shadow: var(--client-shadow, none);
    }
    .history-table td {
        display: grid;
        gap: 4px;
        padding: 0;
        border: 0 !important;
        box-shadow: none !important;
        max-width: none;
        min-width: 0;
    }
    .history-table td::before {
        content: attr(data-label);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--muted);
    }
    .history-cell-when {
        grid-column: 1 / -1;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .history-cell-when::before { display: none; }
    .history-cell-when time {
        font-size: 13px;
        color: var(--ink);
        font-weight: 650;
    }
    .history-cell-actions {
        grid-column: 1 / -1;
        order: -1;
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        justify-content: stretch;
        padding-bottom: 10px;
        margin-bottom: 2px;
        border-bottom: 1px solid var(--line);
        white-space: normal;
    }
    .history-cell-actions::before { display: none; }
    .history-cell-actions .btn {
        flex: 1 1 0;
        min-height: 40px;
        justify-content: center;
    }
    .history-row.is-ok { border-left: 3px solid #22c55e; }
    .history-row.is-run { border-left: 3px solid #3b82f6; }
    .history-row.is-err { border-left: 3px solid #ef4444; }
    .history-cell-error {
        grid-column: 1 / -1;
    }
    html[data-client-theme="dark"] .history-table tr.history-row {
        background: #0f172a;
        border-color: #334155;
    }
    html[data-client-theme="dark"] .history-cell-actions {
        border-bottom-color: #334155;
    }
    html[data-client-theme="dark"] .history-cell-when time {
        color: #e2e8f0;
    }
}

html[data-client-theme="dark"] .history-stat,
html[data-client-theme="dark"] .history-toolbar.panel,
html[data-client-theme="dark"] .history-card,
html[data-client-theme="dark"] .history-empty {
    background: #0f172a;
    border-color: #334155;
    box-shadow: none;
}
html[data-client-theme="dark"] .history-search-field input {
    background: #020617;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-client-theme="dark"] .history-stat.is-ok.is-active { background: #052e16; border-color: #166534; }
html[data-client-theme="dark"] .history-stat.is-run.is-active { background: #172554; border-color: #1d4ed8; }
html[data-client-theme="dark"] .history-stat.is-err.is-active { background: #450a0a; border-color: #991b1b; }
html[data-client-theme="dark"] .history-stat.is-all.is-active { background: #172554; border-color: #1d4ed8; }
html[data-client-theme="dark"] .history-badge.is-ok { background: #14532d; color: #86efac; }
html[data-client-theme="dark"] .history-badge.is-run { background: #1e3a8a; color: #93c5fd; }
html[data-client-theme="dark"] .history-badge.is-err { background: #7f1d1d; color: #fca5a5; }
html[data-client-theme="dark"] .history-card-error { color: #fca5a5; }
html[data-client-theme="dark"] .history-card-meta strong,
html[data-client-theme="dark"] .history-card-money { color: #e2e8f0; }
html[data-client-theme="dark"] .history-card-money em { color: #94a3b8; }

.pdf-viewer-modal { z-index: 80; }
.pdf-viewer-dialog {
    width: min(980px, calc(100vw - 24px));
    max-height: min(92vh, 920px);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}
.pdf-viewer-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
}
.pdf-viewer-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.pdf-viewer-frame-wrap {
    flex: 1;
    min-height: 0;
    background: #0f172a;
    position: relative;
}
.pdf-viewer-status {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    color: #e2e8f0;
    background: #111827;
}
.pdf-viewer-status[hidden] { display: none; }
.pdf-viewer-status.is-error { color: #fecaca; }
.pdf-viewer-frame {
    display: block;
    width: 100%;
    height: min(78vh, 760px);
    border: 0;
    background: #111827;
}
.pdf-viewer-frame[hidden] { display: none; }
html[data-client-theme="dark"] .pdf-viewer-dialog {
    background: #0f172a;
    border-color: #334155;
}
html[data-client-theme="dark"] .pdf-viewer-head {
    border-color: #334155;
}

@media (max-width: 860px) {
    .history-summary { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .history-card {
        flex-direction: column;
        align-items: stretch;
    }
    .history-card-actions { justify-content: flex-start; }
    .history-search { flex-direction: column; align-items: stretch; }
    .pdf-viewer-dialog {
        width: 100%;
        max-height: 96vh;
        border-radius: 12px 12px 0 0;
    }
    .pdf-viewer-frame { height: 70vh; }
}

/* Placa completa + relatório empresarial */
.placa-completa { display: grid; gap: 14px; }
.placa-completa[hidden] { display: none !important; }
.placa-completa-banner {
    margin: 0 -4px 2px;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    line-height: 0;
    width: 100%;
}
.placa-completa-banner img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}
.placa-completa-hero {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 14px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(37, 99, 235, 0.18), transparent 55%),
        linear-gradient(135deg, #0b1f45 0%, #12315f 48%, #1e3a5f 100%);
    color: #f8fafc;
}
.placa-completa-kicker {
    margin: 0 0 6px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #93c5fd;
    font-weight: 700;
}
.placa-completa-hero h3 {
    margin: 0 0 6px;
    font-size: 22px;
    letter-spacing: -0.02em;
}
.placa-completa-hero p { margin: 0; color: #cbd5e1; font-size: 13px; max-width: 42ch; }
.placa-completa-hero-badge {
    display: grid;
    align-content: center;
    justify-items: end;
    gap: 2px;
    flex-shrink: 0;
}
.placa-completa-hero-badge span {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #93c5fd;
}
.placa-completa-hero-badge strong { font-size: 14px; }
.placa-completa-plate { margin-top: 4px; }
.placa-completa-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.report-sheet {
    width: min(980px, 100%);
    margin: 18px auto 32px;
    display: grid;
    gap: 16px;
}
.report-hero {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px 28px 24px;
    border-radius: 18px;
    background:
        radial-gradient(90% 120% at 0% 0%, rgba(37, 99, 235, 0.22), transparent 50%),
        linear-gradient(135deg, #081833, #0b1f45 55%, #163a66);
    color: #f8fafc;
    box-shadow: 0 18px 40px rgba(8, 24, 51, 0.22);
}
.report-kicker {
    margin: 0 0 8px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #93c5fd;
    font-weight: 700;
}
.report-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 34px);
    letter-spacing: -0.03em;
}
.report-hero-lead { margin: 0; color: #cbd5e1; max-width: 48ch; }
.report-hero-side { text-align: right; }
.report-plate-block {
    display: grid;
    gap: 4px;
    justify-items: end;
}
.report-plate-block span {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #93c5fd;
}
.report-plate-block strong {
    font-size: 28px;
    letter-spacing: 0.08em;
}
.report-when { margin: 10px 0 0; color: #94a3b8; font-size: 13px; }

.report-qr-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--client-card, #fff);
    box-shadow: var(--client-shadow, none);
}
.report-qr-copy { display: grid; gap: 8px; max-width: 52ch; }
.report-qr-copy h2 { font-size: 18px; }
.report-qr-copy p { margin: 0; color: var(--muted); font-size: 14px; }
.report-qr-figure {
    margin: 0;
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
}
.report-qr-figure img { display: block; width: 160px; height: 160px; }

/* Relatório placa completa — tiras azuis + grade */
.veic-report {
    --veic-navy: #0b2a5b;
    --veic-ink: #0b2a5b;
    --veic-label: #94a3b8;
    --veic-line: #dbe3ef;
    --veic-soft: #f4f7fb;
    display: grid;
    gap: 0;
    width: min(100%, 210mm);
    max-width: 210mm;
    margin: 0 auto;
    padding: 8px 10px 20px;
    background: #fff;
    box-sizing: border-box;
}
.veic-report.is-embedded {
    width: 100%;
    max-width: 210mm;
    padding: 0 0 12px;
}
.veic-report-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.veic-report-banner {
    margin: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    line-height: 0;
    width: 100%;
}
.veic-report-banner img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}
.veic-report-meta-bar {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin-top: 0;
    margin-bottom: 14px;
    padding: 0;
}
.veic-report-qr {
    margin: 0;
    flex: 0 0 auto;
    padding: 4px;
    border: 1px solid var(--veic-line);
    border-radius: 8px;
    background: transparent;
    line-height: 0;
}
.veic-report-qr img { display: block; width: 72px; height: 72px; }
.veic-report-meta-list {
    margin: 0;
    flex: 1 1 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 6px 12px;
    align-content: center;
}
.veic-report-meta-list > div { display: grid; gap: 1px; }
.veic-report-meta-list dt {
    margin: 0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--veic-label);
}
.veic-report-meta-list dd {
    margin: 0;
    font-size: 12px;
    font-weight: 650;
    color: var(--veic-ink);
    word-break: break-word;
}
.veic-report-body { display: grid; gap: 10px; }
.veic-block {
    border: 1px solid var(--veic-line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.veic-strip {
    margin: 0;
    padding: 7px 12px;
    background: var(--veic-navy);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
}
.veic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: #fff;
}
.veic-grid-flags {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.veic-cell {
    padding: 7px 10px 8px;
    border-right: 1px solid #eef2f7;
    border-bottom: 1px solid #eef2f7;
    min-height: 0;
    display: grid;
    align-content: start;
    gap: 2px;
}
.veic-cell:nth-child(4n) { border-right: 0; }
.veic-grid-flags .veic-cell:nth-child(4n) { border-right: 1px solid #eef2f7; }
.veic-grid-flags .veic-cell:nth-child(5n) { border-right: 0; }
.veic-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--veic-label);
    line-height: 1.2;
}
.veic-value {
    font-size: 12px;
    font-weight: 650;
    color: var(--veic-ink);
    word-break: break-word;
    line-height: 1.25;
}
.veic-cell.is-highlight .veic-value {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    background: #dbeafe;
    color: #1e3a8a;
    font-size: 12px;
}
.veic-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 2px 8px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    word-break: break-word;
}
.veic-ind {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.01em;
}
.veic-ind.is-ok {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}
.veic-ind.is-alert {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}
.veic-block.is-flags .veic-cell {
    padding: 6px 8px 7px;
}
.veic-reveal {
    display: inline-grid;
    grid-template-columns: minmax(0, auto) auto;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 2px 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    max-width: 100%;
}
.veic-reveal .veic-value {
    color: var(--veic-ink);
    text-decoration: none;
}
.veic-reveal:hover .veic-value,
.veic-reveal:focus-visible .veic-value {
    color: #1e3a8a;
}
.veic-reveal:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
    border-radius: 4px;
}
.veic-reveal[aria-pressed="true"] .veic-value {
    color: var(--veic-ink);
    text-decoration: none;
}
.veic-reveal-hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #93c5fd;
    background: #eff6ff;
    font-size: 10px;
    font-weight: 700;
    color: #1d4ed8;
    letter-spacing: 0.02em;
    line-height: 1.2;
    text-transform: uppercase;
}
.veic-reveal:hover .veic-reveal-hint,
.veic-reveal:focus-visible .veic-reveal-hint {
    background: #dbeafe;
    border-color: #60a5fa;
}
.veic-reveal[aria-pressed="true"] .veic-reveal-hint {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #475569;
}

html[data-client-theme="dark"] .veic-block {
    background: #0f172a;
    border-color: #334155;
}
html[data-client-theme="dark"] .veic-grid { background: #0f172a; }
html[data-client-theme="dark"] .veic-cell { border-color: #1f2937; }
html[data-client-theme="dark"] .veic-value { color: #e2e8f0; }
html[data-client-theme="dark"] .veic-report-meta-list dd { color: #e2e8f0; }
html[data-client-theme="dark"] .veic-ind.is-ok {
    background: #064e3b;
    color: #a7f3d0;
    border-color: #047857;
}
html[data-client-theme="dark"] .veic-ind.is-alert {
    background: #7f1d1d;
    color: #fecaca;
    border-color: #b91c1c;
}

@media (max-width: 900px) {
    .veic-grid,
    .veic-grid-flags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .veic-cell:nth-child(4n),
    .veic-grid-flags .veic-cell:nth-child(5n) { border-right: 1px solid #eef2f7; }
    .veic-cell:nth-child(2n),
    .veic-grid-flags .veic-cell:nth-child(2n) { border-right: 0; }
}
@media (max-width: 720px) {
    .placa-completa-hero,
    .report-hero,
    .report-qr-panel,
    .veic-report-actions,
    .veic-report-meta-bar { flex-direction: column; align-items: stretch; }
    .veic-report-actions { justify-content: stretch; }
    .veic-report-qr { align-self: flex-start; }
    .report-hero-side,
    .placa-completa-hero-badge,
    .report-plate-block { text-align: left; justify-items: start; }
    .veic-grid,
    .veic-grid-flags { grid-template-columns: 1fr; }
    .veic-cell,
    .veic-cell:nth-child(2n),
    .veic-cell:nth-child(4n),
    .veic-grid-flags .veic-cell:nth-child(2n),
    .veic-grid-flags .veic-cell:nth-child(5n) { border-right: 0; }
}
@media print {
    .client-sidebar, .client-topbar, .client-footer,
    .veic-report-actions { display: none !important; }
    .veic-report {
        width: 210mm;
        max-width: 210mm;
        min-height: 297mm;
        padding: 8mm;
        margin: 0 auto;
    }
    .veic-block { break-inside: avoid; box-shadow: none; }
}

.report-highlight {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: 14px;
    border: 1px solid #86efac;
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}
.report-highlight span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #166534;
}
.report-highlight strong {
    font-size: 22px;
    letter-spacing: -0.02em;
    color: #14532d;
}
.report-highlight.is-warn {
    border-color: #fcd34d;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
}
.report-highlight.is-warn span { color: #92400e; }
.report-highlight.is-warn strong { color: #78350f; }
html[data-client-theme="dark"] .report-highlight {
    background: #14532d;
    border-color: #166534;
}
html[data-client-theme="dark"] .report-highlight span,
html[data-client-theme="dark"] .report-highlight strong { color: #bbf7d0; }
html[data-client-theme="dark"] .report-highlight.is-warn {
    background: #78350f;
    border-color: #b45309;
}
html[data-client-theme="dark"] .report-highlight.is-warn span,
html[data-client-theme="dark"] .report-highlight.is-warn strong { color: #fde68a; }

.report-hero-download {
    margin-top: 12px;
    background: #fff !important;
    color: #0b1f45 !important;
    border-color: #fff !important;
}
.report-hero-download:hover {
    background: #eff6ff !important;
}

a.history-card {
    text-decoration: none;
    color: inherit;
}
.history-card-actions .btn,
.history-card-actions a.btn {
    pointer-events: auto;
}

.order-status-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
}
.order-status-banner time { color: var(--muted); font-size: 13px; }
.order-error { margin-bottom: 14px; }
.order-pdf-panel { border-radius: 14px; padding: 16px; }
.order-pdf-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.order-pdf-head h2 { font-size: 18px; margin: 0 0 4px; }
.order-pdf-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.order-pdf-frame-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #0f172a;
    min-height: 70vh;
}
.order-pdf-frame {
    display: block;
    width: 100%;
    height: min(78vh, 820px);
    border: 0;
}
.order-waiting { display: grid; gap: 12px; justify-items: start; }
.client-activity-link {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    text-decoration: none;
    color: inherit;
}
.client-activity-link:hover span { color: var(--client-blue, #2563eb); }
@media (max-width: 720px) {
    .order-pdf-head { flex-direction: column; }
}

/* Página Consulta placa completa */
.placa-page {
    max-width: 980px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
    padding-bottom: 28px;
}
.placa-page-head { display: grid; gap: 6px; }
.placa-page-kicker {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #0b2a5b;
}
.placa-page-head h1 {
    margin: 0;
    font-size: 26px;
    letter-spacing: -0.02em;
    color: #0b2a5b;
}
.placa-page-lead {
    margin: 0;
    max-width: 62ch;
    color: #64748b;
    font-size: 14px;
    line-height: 1.45;
}
.placa-page-price {
    margin: 4px 0 0;
    font-size: 13px;
    color: #334155;
}
.placa-page-billing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #dbeafe;
    background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
}
.placa-page-billing-item {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.placa-page-billing-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
}
.placa-page-billing-value {
    font-size: 15px;
    font-weight: 750;
    color: #0b2a5b;
    letter-spacing: -0.01em;
    word-break: break-word;
}
.placa-page-billing-note {
    margin: -4px 0 0;
    font-size: 12px;
    color: #64748b;
    line-height: 1.35;
}
html[data-client-theme="dark"] .placa-page-billing {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    border-color: #334155;
}
html[data-client-theme="dark"] .placa-page-billing-value { color: #e2e8f0; }
html[data-client-theme="dark"] .placa-page-billing-note { color: #94a3b8; }
.placa-page-banner {
    margin: 0;
    line-height: 0;
    background: transparent;
}
.placa-page-banner img {
    display: block;
    width: 100%;
    height: auto;
}
.placa-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 18px;
    align-items: start;
}
.placa-page-form-card,
.placa-page-info {
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
    padding: 18px;
}
.placa-page-form { display: grid; gap: 12px; }
.placa-page-error { margin: 0 0 4px; }
.placa-terms {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #bfdbfe;
    background: #f8fbff;
}
.placa-terms.is-accepted {
    border-color: #86efac;
    background: #f0fdf4;
}
.placa-terms-btn {
    appearance: none;
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.placa-terms-btn:hover:not(:disabled) {
    background: #1d4ed8;
    border-color: #1d4ed8;
}
.placa-terms-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.placa-terms.is-accepted .placa-terms-btn {
    border-color: #16a34a;
    background: #16a34a;
}
.placa-terms.is-accepted .placa-terms-btn:hover:not(:disabled) {
    background: #15803d;
    border-color: #15803d;
}
.placa-terms-status {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #1e3a8a;
    line-height: 1.4;
}
.placa-terms.is-accepted .placa-terms-status {
    color: #166534;
}
html[data-client-theme="dark"] .placa-terms {
    border-color: #334155;
    background: #0f172a;
}
html[data-client-theme="dark"] .placa-terms.is-accepted {
    border-color: #166534;
    background: #052e16;
}
html[data-client-theme="dark"] .placa-terms-status { color: #93c5fd; }
html[data-client-theme="dark"] .placa-terms.is-accepted .placa-terms-status { color: #86efac; }
.placa-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.placa-page-info h2 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #0b2a5b;
}
.placa-page-includes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.placa-page-includes li {
    display: grid;
    gap: 2px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f7;
}
.placa-page-includes li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}
.placa-page-includes strong {
    font-size: 13px;
    color: #0b2a5b;
}
.placa-page-includes span {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}
.placa-page-note {
    margin: 14px 0 0;
    font-size: 12px;
    color: #475569;
    line-height: 1.4;
}
.placa-page-form-card {
    position: relative;
}
.placa-page-form-card.is-locked .placa-page-form {
    opacity: 0.45;
    pointer-events: none;
    filter: grayscale(0.2);
}
.placa-page-lock {
    display: grid;
    gap: 8px;
    justify-items: start;
    margin-bottom: 14px;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
}
.placa-page-lock strong {
    font-size: 14px;
    color: #78350f;
}
.placa-page-lock p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}
.placa-page-result {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}
.placa-page-result[hidden] { display: none !important; }
.placa-page-result .veic-report {
    width: min(100%, 210mm);
    max-width: 210mm;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}
.crlve-ac-hint {
    margin: 0;
    color: #0b2a5b;
    font-weight: 600;
}
.crlve-ac-status {
    margin: 0;
    color: #166534;
    font-size: 13px;
}
.crlve-ac-status.is-error { color: #b91c1c; }
.crlve-field.is-autofill input[readonly] {
    background: #f8fafc;
    color: #334155;
}
.crlve-chip[hidden],
.crlve-field[hidden] {
    display: none !important;
}
html[data-client-theme="dark"] .crlve-ac-hint { color: #93c5fd; }
html[data-client-theme="dark"] .crlve-ac-status { color: #86efac; }
html[data-client-theme="dark"] .crlve-ac-status.is-error { color: #fca5a5; }
html[data-client-theme="dark"] .crlve-field.is-autofill input[readonly] {
    background: #0f172a;
    color: #cbd5e1;
}
.crlve-query-mode {
    margin: 4px 0 2px;
}
.crlve-batch-fields {
    display: grid;
    gap: 8px;
}
.crlve-batch-fields[hidden] { display: none !important; }
.crlve-confirm-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.placa-page-mode {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 12px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    width: fit-content;
}
.placa-page-mode-btn {
    border: 0;
    background: transparent;
    color: #475569;
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    padding: 8px 14px;
    border-radius: 9px;
    cursor: pointer;
}
.placa-page-mode-btn.is-active {
    background: #fff;
    color: #0b2a5b;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.placa-page-batch-field {
    display: grid;
    gap: 8px;
}
.placa-page-batch-field[hidden] { display: none !important; }
.placa-page-batch-field > span {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #334155;
}
.placa-page-batch-field > span em { color: #dc2626; font-style: normal; }
.placa-page-batch-field textarea {
    width: 100%;
    min-height: 140px;
    resize: vertical;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #fff;
    color: #0f172a;
}
.placa-page-batch-estimate {
    margin: 0;
    font-size: 13px;
    font-weight: 650;
    color: #0b2a5b;
}
.placa-page-result-item {
    display: grid;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e2e8f0;
}
.placa-page-result-item-title {
    margin: 0;
    font-size: 15px;
    color: #0b2a5b;
}
.placa-page-result-item.is-error {
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #fecaca;
    background: #fef2f2;
}
.placa-page-batch-done {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
}
.placa-page-batch-done strong { color: #0b2a5b; }
.placa-page-batch-done p { margin: 0; color: #475569; font-size: 14px; }
.placa-page-batch-done-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px !important;
}
.history-card.is-batch {
    background: linear-gradient(180deg, #f8fbff, #fff);
}
.history-badge.is-batch {
    background: #e0f2fe;
    color: #075985;
}
.history-card-total {
    margin: 4px 0 0;
    font-size: 12px;
    color: #334155;
}
.history-card-total strong {
    color: #0b2a5b;
}
.batch-report {
    display: grid;
    gap: 18px;
}
.batch-report-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}
.batch-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.batch-report-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.batch-report-summary > div {
    display: grid;
    gap: 4px;
}
.batch-report-summary span {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}
.batch-report-summary strong {
    font-size: 20px;
    color: #0b2a5b;
}
.batch-report-total strong { color: #166534; }
.batch-report-toc h2 {
    margin: 0 0 10px;
    font-size: 16px;
}
.batch-report-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.batch-report-toc a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f8fafc;
}
.batch-report-items {
    display: grid;
    gap: 28px;
}
.batch-report-item {
    display: grid;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
    break-inside: avoid;
}
.batch-report-item-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}
.batch-report-item-head h2 {
    margin: 2px 0 0;
    font-size: 22px;
}
.batch-report-item-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.batch-report-pdf {
    display: grid;
    gap: 10px;
}
.batch-report-pdf-frame {
    width: 100%;
    min-height: 70vh;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}
.batch-report-pdf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}
@media print {
    .batch-report-pdf-frame {
        min-height: 240mm;
        border: 0;
    }
}
html[data-client-theme="dark"] .placa-page-form-card,
html[data-client-theme="dark"] .placa-page-info {
    background: #0f172a;
    border-color: #334155;
}
html[data-client-theme="dark"] .placa-page-lock {
    background: #78350f;
    border-color: #b45309;
    color: #fde68a;
}
html[data-client-theme="dark"] .placa-page-lock strong { color: #fef3c7; }
html[data-client-theme="dark"] .placa-page-head h1,
html[data-client-theme="dark"] .placa-page-info h2,
html[data-client-theme="dark"] .placa-page-includes strong { color: #e2e8f0; }
html[data-client-theme="dark"] .placa-page-mode {
    background: #0f172a;
    border-color: #334155;
}
html[data-client-theme="dark"] .placa-page-mode-btn { color: #94a3b8; }
html[data-client-theme="dark"] .placa-page-mode-btn.is-active {
    background: #1e293b;
    color: #e2e8f0;
}
html[data-client-theme="dark"] .placa-page-batch-field textarea {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}
html[data-client-theme="dark"] .history-card.is-batch {
    background: linear-gradient(180deg, #0b1220, #0f172a);
}
html[data-client-theme="dark"] .history-badge.is-batch {
    background: #0c4a6e;
    color: #7dd3fc;
}
html[data-client-theme="dark"] .batch-report-summary strong,
html[data-client-theme="dark"] .batch-report-item-head h2,
html[data-client-theme="dark"] .history-card-total strong { color: #e2e8f0; }
@media (max-width: 820px) {
    .placa-page-layout { grid-template-columns: 1fr; }
    .placa-page-head h1 { font-size: 22px; }
    .batch-report-summary { grid-template-columns: 1fr 1fr; }
}
@media print {
    .no-print,
    .batch-report-actions,
    .batch-report-toc { display: none !important; }
    .batch-report-item {
        page-break-after: always;
        border: 0;
        padding-top: 0;
    }
    .batch-report-item:last-child { page-break-after: auto; }
}

