/* =====================================================================
   DOMMUS · estilos base (mobile-first, sem dependências externas)
   ===================================================================== */
:root {
    --ink: #111214;
    --ink-2: #2a2c30;
    --paper: #f6f5f2;
    --card: #ffffff;
    --line: #e4e2dc;
    --muted: #6a6862;
    --focus: #2f6df6;

    --ok: #1c7a4b;
    --ok-bg: #e7f4ed;
    --warn: #8f5a00;
    --warn-bg: #fdf1d9;
    --fail: #b3261e;
    --fail-bg: #fcebe9;
    --info: #3b4a63;
    --info-bg: #eaeef5;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(17, 18, 20, .06), 0 8px 24px rgba(17, 18, 20, .06);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 5vw, 2.6rem); font-weight: 750; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: inherit; }

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: 6px;
}

.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: .75rem; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }
.hint { font-size: .85rem; color: var(--muted); margin: .35rem 0 0; }
.plain-list { margin: 0; padding-left: 1.1rem; }
.text-ok { color: var(--ok); } .text-warn { color: var(--warn); } .text-fail { color: var(--fail); }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 44px; padding: .65rem 1.25rem;
    font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
    border: 1.5px solid transparent; border-radius: 999px;
    transition: transform .06s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-sm { min-height: 36px; padding: .35rem .9rem; font-size: .9rem; }
.btn-lg { min-height: 52px; padding: .85rem 1.75rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Formulários ---------- */
.form { display: grid; gap: 1.1rem; margin-top: 1.25rem; }
.field label { display: block; font-weight: 650; margin-bottom: .35rem; font-size: .95rem; }
.input {
    width: 100%; min-height: 46px; padding: .6rem .9rem;
    font: inherit; color: var(--ink); background: #fff;
    border: 1.5px solid #c9c7c0; border-radius: var(--radius-sm);
}
.input:hover { border-color: #9c9a93; }
.input:focus { outline: 3px solid rgba(47, 109, 246, .35); border-color: var(--focus); }
.input-group { display: flex; gap: .5rem; align-items: stretch; }
.input-group .input { flex: 1; min-width: 0; }

/* ---------- Alertas ---------- */
.alert { padding: .85rem 1rem; border-radius: var(--radius-sm); margin: 0 0 1rem; border: 1px solid transparent; font-size: .95rem; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: #bfe0cd; }
.alert-error { background: var(--fail-bg); color: var(--fail); border-color: #f1c2be; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #cdd6e6; }
.alert-warning { background: var(--warn-bg); color: var(--warn); border-color: #efd9a6; }

/* ---------- Site público ---------- */
.site-header { padding: 1rem 1.25rem; display: flex; justify-content: center; }
.brand { display: inline-block; }
.brand-logo { height: 56px; width: auto; }
.brand-logo-lg { height: 84px; }
.brand-center { display: flex; justify-content: center; margin-bottom: 1rem; }
.site-main { max-width: 960px; margin: 0 auto; padding: 1rem 1.25rem 3rem; }
.site-footer { text-align: center; color: var(--muted); font-size: .85rem; padding: 2rem 1rem 2.5rem; }
.hero { padding: 2rem 0 2.5rem; text-align: center; }
.hero .lead { margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }
.narrow { max-width: 620px; margin: 2rem auto; }
.narrow.center .hero-actions, .narrow .hero-actions { justify-content: flex-start; }
.narrow.center { text-align: center; }
.narrow.center .lead { margin-left: auto; margin-right: auto; }

.section-title { text-align: center; margin: 1rem 0 1.5rem; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps-list li {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.25rem; box-shadow: var(--shadow);
}
.steps-list p { margin: 0; color: var(--muted); }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%; margin-bottom: .6rem;
    background: var(--ink); color: #fff; font-weight: 700;
}

/* ---------- Login / instalador ---------- */
.page-auth { background: linear-gradient(180deg, #ecebe6 0%, var(--paper) 60%); }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; }
.auth-card {
    width: 100%; max-width: 440px; background: var(--card);
    border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
    padding: 1.75rem 1.5rem 2rem;
}
.auth-title { font-size: 1.5rem; text-align: center; margin-bottom: .25rem; }

/* ---------- Painel ---------- */
.page-admin { background: var(--paper); }
.admin-bar { background: var(--ink); color: #fff; }
.admin-bar-inner {
    max-width: 1100px; margin: 0 auto; padding: .6rem 1.25rem;
    display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem;
}
.admin-brand img { height: 40px; width: auto; }
.admin-nav { display: flex; gap: .25rem; flex-wrap: wrap; flex: 1; }
.admin-nav a {
    color: #d8d7d2; text-decoration: none; padding: .45rem .8rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
}
.admin-nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.admin-nav a.is-active { color: var(--ink); background: #fff; }
.admin-main { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.page-head { margin-bottom: 1.25rem; }
.page-head h1 { font-size: clamp(1.5rem, 4vw, 2rem); margin-bottom: .2rem; }

.cards { display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); margin-bottom: 1.5rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.stat-label { margin: 0; font-weight: 650; font-size: .92rem; }
.stat-value { margin: .15rem 0; font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; }
.stat-hint { margin: 0; color: var(--muted); font-size: .82rem; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.panel-narrow { max-width: 560px; }

.table-wrap { overflow-x: auto; }
table.diag { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.diag th, table.diag td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.diag tr:last-child th, table.diag tr:last-child td { border-bottom: 0; }
table.diag th { font-weight: 600; width: 34%; }
.diag-detail { color: var(--ink-2); word-break: break-word; }
.diag-compact { margin: 1rem 0 0; font-size: .85rem; }

.badge { display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-fail { background: var(--fail-bg); color: var(--fail); }
.badge-info { background: var(--info-bg); color: var(--info); }

.debug { text-align: left; background: #1d1f23; color: #f0efe9; padding: 1rem; border-radius: var(--radius-sm); overflow-x: auto; font-size: .8rem; }

@media (min-width: 720px) {
    .cards { grid-template-columns: repeat(3, 1fr); }
    .steps-list { grid-template-columns: repeat(2, 1fr); }
    .auth-card { padding: 2rem 2rem 2.25rem; }
}
@media (min-width: 960px) {
    .steps-list { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* =====================================================================
   Formulário de pedido (Etapa 1)
   ===================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.order-head { text-align: center; padding: .5rem 0 1rem; }
.order-head .lead { margin-left: auto; margin-right: auto; }
.order-app { max-width: 720px; margin: 0 auto; padding-bottom: 6rem; }
.order-help { font-size: .9rem; }

.progress { margin: 0 0 1rem; }
.progress-list { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; justify-content: space-between; }
.progress-list li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .25rem; color: var(--muted); font-size: .72rem; text-align: center; }
.progress-dot { display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 700; background: #e4e2dc; color: var(--ink-2); }
.progress-list .is-current { color: var(--ink); font-weight: 700; }
.progress-list .is-current .progress-dot { background: var(--ink); color: #fff; }
.progress-list .is-done .progress-dot { background: var(--ok); color: #fff; }

.form-section { display: grid; gap: 1.1rem; }
.form-section > h2 { margin: 0; }
.form-section > p { margin: 0; }
.order-step { display: grid; gap: 1rem; }

textarea.input { min-height: 90px; resize: vertical; }
select.input { appearance: auto; }
.field.has-error .input { border-color: var(--fail); }
.field-error { color: var(--fail); font-size: .88rem; margin: .35rem 0 0; font-weight: 600; }
.field > label { margin-bottom: .45rem; }

.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; cursor: pointer; flex: 0 1 auto; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; pointer-events: none; }
.choice-body { display: flex; flex-direction: column; gap: .1rem; min-height: 44px; justify-content: center; padding: .55rem 1rem; border: 1.5px solid #c9c7c0; border-radius: 999px; background: #fff; font-weight: 600; }
.choice input:checked + .choice-body { border-color: var(--ink); background: var(--ink); color: #fff; }
.choice input:focus-visible + .choice-body { outline: 3px solid var(--focus); outline-offset: 2px; }
.choice-desc { font-size: .8rem; font-weight: 400; opacity: .8; }
.choices-cards { display: grid; grid-template-columns: 1fr; }
.choices-cards .choice-body { border-radius: var(--radius-sm); align-items: flex-start; }

.check { display: flex; align-items: flex-start; gap: .65rem; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: .1rem 0 0; flex: none; accent-color: var(--ink); }
.consents { display: grid; gap: .75rem; }

.stepper { display: inline-flex; align-items: center; gap: 1rem; }
.stepper .btn { min-width: 44px; font-size: 1.3rem; }
.stepper-value { min-width: 2ch; text-align: center; font-size: 1.6rem; font-weight: 800; }

.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.chip { font: inherit; font-size: .85rem; padding: .3rem .75rem; border-radius: 999px; border: 1px dashed #9c9a93; background: #fff; cursor: pointer; }
.chip:hover { background: var(--ink); color: #fff; border-style: solid; }

.photo-picker { margin-bottom: .75rem; }
.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.photo { margin: 0; display: grid; gap: .4rem; align-content: start; padding: .5rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #eee; }
.photo.is-primary { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok-bg); }
.photo-pending { min-height: 110px; align-content: center; text-align: center; }
.photo-pending.has-error { border-color: var(--fail); }
.photo-name { font-size: .8rem; word-break: break-all; }

.summary { margin: 0; display: grid; gap: .5rem; }
.sum-row { display: grid; gap: .1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.sum-row dt { font-weight: 700; font-size: .85rem; color: var(--muted); }
.sum-row dd { margin: 0; overflow-wrap: anywhere; }

.order-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    display: flex; justify-content: space-between; align-items: center; gap: .75rem;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom));
    background: rgba(246, 245, 242, .96); border-top: 1px solid var(--line); backdrop-filter: blur(6px);
}
.order-nav .btn-primary { flex: 1; max-width: 320px; margin-left: auto; }
.order-app.is-loading .order-nav, .order-app.is-loading .progress { visibility: hidden; }

.order-code { font-size: clamp(2rem, 8vw, 3rem); font-weight: 800; letter-spacing: .04em; margin: .25rem 0 1rem; }
.prose h2 { margin-top: 1.5rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }

@media (min-width: 720px) {
    .photos { grid-template-columns: repeat(3, 1fr); }
    .choices-cards { grid-template-columns: repeat(2, 1fr); }
    .progress-list li { font-size: .85rem; flex-direction: row; justify-content: center; gap: .5rem; }
}

.notice-strong { color: var(--fail); text-transform: uppercase; font-weight: 800; letter-spacing: .02em; font-size: 1.1rem; line-height: 1.5; max-width: 34rem; margin: 0 auto 1rem; }
.narrow.center .hero-actions { justify-content: center; }

/* Botão principal da página inicial */
.btn-cta {
    min-height: 68px; padding: 1rem 2.6rem; font-size: 1.25rem; font-weight: 800; letter-spacing: .01em;
    box-shadow: 0 10px 28px rgba(17, 18, 20, .35); position: relative;
    transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(17, 18, 20, .42); }
.btn-cta::after {
    content: ""; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid var(--ink);
    opacity: 0; animation: cta-pulse 2.4s ease-out infinite; pointer-events: none;
}
@keyframes cta-pulse { 0% { opacity: .5; transform: scale(.98); } 70%, 100% { opacity: 0; transform: scale(1.08); } }
.cta-note { margin: .9rem 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 480px) { .btn-cta { width: 100%; padding-left: 1rem; padding-right: 1rem; } }
@media (prefers-reduced-motion: reduce) { .btn-cta::after { animation: none; } }

.date-selects { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: .5rem; }
.date-selects select.input { appearance: auto; }

/* ---------- Painel: pedidos ---------- */
.filters { display: grid; gap: .9rem; }
.filters-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
.filters-actions { display: flex; gap: .5rem; }
.check-inline { display: flex; gap: .5rem; align-items: center; font-size: .92rem; }
.small { font-size: .82rem; }
.order-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.order-row { display: grid; gap: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.order-row:hover { border-color: var(--ink); }
.ord-code { font-weight: 800; letter-spacing: .02em; font-size: 1rem; }
.order-main { display: grid; gap: .1rem; }
.order-side { display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.order-money { font-weight: 700; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 1rem 0; }
.crumb { margin: 0 0 .5rem; }
.ord-head { display: flex; gap: 1rem; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
.ord-head h1 { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.kvs { margin: 0; display: grid; gap: .55rem; }
.kv { display: grid; gap: .1rem; }
.kv dt { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; margin-top: .75rem; }
.photo-grid a { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--line); aspect-ratio: 1; background: #eee; }
.photo-grid a.is-primary { border-color: var(--ink); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tag { position: absolute; left: 4px; bottom: 4px; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; }
.grid-2 { display: grid; gap: .9rem; grid-template-columns: 1fr; }
.quote-form h3, .quote-approve h3 { margin: 0; font-size: 1.05rem; }
.quote-total { margin: 0; font-size: 1.6rem; font-weight: 800; }
.inline-form { margin-top: 1rem; display: grid; gap: .5rem; }
.quote-approve { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.pl-list { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .55rem; font-size: .92rem; }
.timeline { list-style: none; margin: 1.25rem 0 0; padding: 0 0 0 1rem; border-left: 2px solid var(--line); display: grid; gap: .9rem; }
.timeline li { position: relative; display: grid; gap: .1rem; }
.timeline li::before { content: ""; position: absolute; left: -1.38rem; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.note { border-top: 1px solid var(--line); padding-top: .75rem; margin-top: .75rem; }
.note p.small { margin: 0 0 .2rem; }
.danger-zone { border-color: #f1c2be; }
.danger-zone summary { color: var(--fail); cursor: pointer; }
.btn-danger { background: var(--fail); color: #fff; }
.btn-danger:hover { background: #8f1d17; }
.recent { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.recent a { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; color: inherit; text-decoration: none; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.recent a:hover strong { text-decoration: underline; }
a.stat { color: inherit; text-decoration: none; display: block; }
a.stat:hover { border-color: var(--ink); }
@media (min-width: 640px) {
    .filters-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .order-row { grid-template-columns: 8.5rem 1fr auto; align-items: center; }
    .order-side { justify-content: flex-end; max-width: 22rem; }
    .kv { grid-template-columns: 12rem 1fr; gap: 1rem; }
}

/* ---------- Etapa 2 (cliente) ---------- */
.checkout { max-width: 680px; text-align: left; }
.checkout .lead { margin-left: 0; }
.co-char { display: flex; gap: .9rem; align-items: flex-start; border-top: 1px solid var(--line); padding-top: .9rem; margin-top: .9rem; }
.co-char img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); flex: none; }
.co-char .kvs { margin-top: .4rem; }
.co-values { width: 100%; border-collapse: collapse; }
.co-values th { text-align: left; font-weight: 600; padding: .4rem 0; }
.co-values td { text-align: right; padding: .4rem 0; }
.co-total th, .co-total td { border-top: 2px solid var(--ink); font-size: 1.25rem; font-weight: 800; padding-top: .7rem; }
.co-note { background: var(--info-bg); color: var(--info); border-radius: var(--radius-sm); padding: .75rem 1rem; margin: 1rem 0 0; }
.co-address { margin-top: 1rem; }
.co-address summary { display: inline-flex; cursor: pointer; list-style: none; }
.co-address summary::-webkit-details-marker { display: none; }
.co-address form { margin-top: 1rem; }
.checkout .check-inline { align-items: flex-start; font-size: 1rem; line-height: 1.4; }
.checkout .check-inline input { margin-top: .25rem; width: 1.15rem; height: 1.15rem; flex: none; }
.checkout .field label.check-inline { font-weight: 400; display: flex; }

/* ---------- Atualização automática ---------- */
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #c9c7c0; margin-left: .4rem; vertical-align: middle; }
.live-dot.is-on { background: var(--ok); }
.live-dot.is-off { background: var(--warn); }
.stat.flash { animation: stat-flash 1.6s ease-out; }
@keyframes stat-flash { 0% { box-shadow: 0 0 0 3px rgba(28, 122, 75, .55); } 100% { box-shadow: var(--shadow); } }
.new-orders { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.new-orders[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .stat.flash { animation: none; } }

/* protótipo (painel) */
.proto-thumb { display: grid; gap: .35rem; }
.proto-thumb a { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--line); aspect-ratio: 1; background: #eee; }
.proto-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-sm { margin: 1rem 0 .4rem; font-size: 1rem; }

/* Equipe */
table.team-table th { width: auto; }
.team-actions { white-space: nowrap; }
.team-actions .inline-form { display: inline-block; margin: 0 .25rem 0 0; }
.team-cred { border-color: var(--ok); background: var(--ok-bg); }
.team-cred .input { font-family: ui-monospace, Menlo, Consolas, monospace; }
@media (max-width: 720px) {
    table.team-table thead { display: none; }
    table.team-table, table.team-table tbody, table.team-table tr, table.team-table td { display: block; width: 100%; }
    table.team-table tr { padding: .75rem 0; border-bottom: 1px solid var(--line); }
    table.team-table tr:last-child { border-bottom: 0; }
    table.team-table td { border: 0; padding: .15rem 0; }
    table.team-table td:first-child { font-weight: 700; }
    table.team-table .team-actions { padding-top: .5rem; white-space: normal; }
}

/* Orçamento: opções de frete */
.ship-rows { display: grid; gap: .5rem; margin: .25rem 0 .75rem; }
.ship-row { display: grid; grid-template-columns: 1fr; gap: .5rem; padding: .6rem; border: 1px solid var(--line); border-radius: 12px; }
.ship-row[hidden] { display: none; }
.ship-opts-list { margin: .35rem 0 0; padding-left: 1.1rem; font-size: .85rem; color: var(--ink-2); }
@media (min-width: 720px) { .ship-row { grid-template-columns: 2fr 1fr 1fr; } }

/* Frete: embalagens e cotação */
.pkg-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; align-items: center; }
.pkg-row .input:first-child { grid-column: 1 / -1; }
.pkg-actions { display: flex; gap: .5rem; margin-top: .4rem; }
.pkg-actions .inline-form { margin: 0; }
@media (min-width: 900px) { .pkg-row { grid-template-columns: 2fr repeat(4, 1fr) auto auto; } .pkg-row .input:first-child { grid-column: auto; } }
.ship-quote { display: grid; gap: .5rem; grid-template-columns: 1fr 1fr; align-items: end; }
.ship-quote .field { margin: 0; }
.ship-quote-wide { grid-column: 1 / -1; }
.ship-msg { margin: .5rem 0 0; font-size: .9rem; }
.ship-msg.is-ok { color: var(--ok); }
.ship-msg.is-err { color: var(--fail); }
@media (min-width: 720px) { .ship-quote { grid-template-columns: 2fr repeat(5, 1fr); } .ship-quote-wide { grid-column: auto; } }

/* utilitários (a CSP bloqueia style="" inline) */
.u-m0 { margin: 0; } .u-mb0 { margin-bottom: 0; } .u-mt-sm { margin-top: .6rem; } .u-mt-md { margin-top: .75rem; }
.u-h3 { margin-top: 1rem; font-size: 1rem; } .u-th-auto { width: auto; }

table.quotes-table th { width: auto; }
table.quotes-table td { vertical-align: top; }
table.quotes-table td:nth-child(4) { min-width: 15rem; }
table.quotes-table .ship-opts-list { margin: 0; padding-left: 1.1rem; }

/* Prazo para enviar o orçamento */
.sla { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; flex-wrap: wrap; }
.sla-meter { display: inline-flex; gap: 3px; flex: none; }
.sla-meter i { display: block; width: 14px; height: 10px; border-radius: 3px; background: #d9d6cf; }
.sla-ok .sla-meter i.on { background: var(--ok); }
.sla-warn .sla-meter i.on { background: #d99a1a; }
.sla-urgent .sla-meter i.on, .sla-late .sla-meter i.on { background: var(--fail); }
.sla-ok .sla-text strong { color: var(--ok); } .sla-warn .sla-text strong { color: var(--warn); }
.sla-urgent .sla-text strong, .sla-late .sla-text strong { color: var(--fail); }
.sla-banner { display: flex; gap: .5rem 1rem; align-items: center; flex-wrap: wrap; padding: .75rem 1rem; border-radius: 12px; margin-bottom: 1rem; border: 1px solid transparent; }
.sla-banner .sla { font-size: .95rem; }
.sla-banner-title { margin: 0; font-weight: 700; }
.sla-banner.sla-ok { background: var(--ok-bg); border-color: #bfe0cd; }
.sla-banner.sla-warn { background: var(--warn-bg); border-color: #efd9a6; }
.sla-banner.sla-urgent, .sla-banner.sla-late { background: var(--fail-bg); border-color: #f1c2be; }
.sla-summary { list-style: none; margin: .75rem 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.sla-chip { padding: .6rem .8rem; border-radius: 10px; font-size: .9rem; }
.sla-chip strong { font-size: 1.4rem; margin-right: .25rem; }
.sla-chip.sla-ok { background: var(--ok-bg); color: var(--ok); } .sla-chip.sla-warn { background: var(--warn-bg); color: var(--warn); }
.sla-chip.sla-urgent, .sla-chip.sla-late { background: var(--fail-bg); color: var(--fail); }
.sla-queue { list-style: none; margin: 0; padding: 0; }
.sla-queue li + li { border-top: 1px solid var(--line, #e7e4dd); }
.sla-queue a { display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: center; padding: .6rem 0; color: inherit; text-decoration: none; }
.sla-name { flex: 1 1 8rem; min-width: 0; }
@media (min-width: 720px) { .sla-summary { grid-template-columns: repeat(4, 1fr); } }
.sla-prio { display: inline-block; padding: .1rem .5rem; border-radius: 999px; background: #1c1c1c; color: #fff; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.sla-prio-text, .sla-banner-prio { flex-basis: 100%; margin: 0; font-size: .85rem; color: var(--ink-2, #555); }
.sla-prio-note { margin: 0 0 .5rem; font-size: .9rem; }
.input-group select.input { flex: 0 0 5rem; }

.nav-badge { display: inline-block; min-width: 1.35rem; padding: 0 .4rem; margin-left: .4rem; border-radius: 999px; background: #c0392b; color: #fff; font-size: .75rem; font-weight: 700; line-height: 1.35rem; text-align: center; }
.nav-badge[hidden] { display: none; }
.attn-panel { border-left: 4px solid #c0392b; }
.attn-count { display: inline-block; min-width: 1.6rem; padding: 0 .5rem; border-radius: 999px; background: #c0392b; color: #fff; font-size: .85rem; text-align: center; vertical-align: middle; }
.attn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.attn-item a { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; padding: .65rem .85rem; border: 1px solid var(--line, #e3e3e3); border-radius: 12px; text-decoration: none; color: inherit; }
.attn-item a:hover, .attn-item a:focus-visible { border-color: #c0392b; }
.attn-chip { padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--info-bg, #e8f0fb); }
.attn-urgent .attn-chip { background: #fbe3e0; color: #8e2418; }
.attn-warn .attn-chip { background: var(--warn-bg, #fdf1d6); }
.attn-when { margin-left: auto; }
.attn-detail { flex-basis: 100%; font-size: .9rem; color: var(--muted, #555); }
.sla-banner[hidden] { display: none; }

.attn-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .85rem; padding: .6rem .9rem; margin-bottom: 1rem; border: 1px solid #efc9c4; border-left: 4px solid #c0392b; border-radius: 12px; background: #fff; color: inherit; text-decoration: none; }
.attn-strip:hover, .attn-strip:focus-visible { background: #fff6f5; }
.attn-strip-text { display: flex; flex-direction: column; flex: 1 1 14rem; line-height: 1.3; }
.attn-strip-go { font-weight: 700; font-size: .9rem; color: #8e2418; white-space: nowrap; }
.attn-ok { margin: 0 0 1rem; }
.attn-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.attn-filters a { padding: .35rem .8rem; border: 1px solid var(--line, #e3e3e3); border-radius: 999px; background: #fff; color: inherit; text-decoration: none; font-size: .9rem; }
.attn-filters a span { margin-left: .25rem; font-weight: 700; }
.attn-filters a.is-on { background: #1d1d1b; border-color: #1d1d1b; color: #fff; }

/* ---------- Menus do painel ---------- */
.admin-bar-inner { position: relative; }
.admin-nav { flex: 1 1 auto; }
.admin-menus { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.menu { position: relative; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; padding: .45rem .8rem; border-radius: 999px; color: #d8d7d2; font-weight: 600; font-size: .95rem; user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { color: #fff; background: rgba(255, 255, 255, .1); }
.menu > summary.is-active { color: var(--ink); background: #fff; }
.menu > summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.menu > summary .ico:last-child { opacity: .7; transition: transform .15s; }
.menu[open] > summary .ico:last-child { transform: rotate(180deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + .45rem); z-index: 60; min-width: 13.5rem; padding: .4rem; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(17, 18, 20, .18); }
.menu-title { margin: 0; padding: .45rem .65rem .3rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.menu-panel a, .menu-item { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .6rem .65rem; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; font-weight: 600; font-size: .95rem; text-align: left; text-decoration: none; cursor: pointer; }
.menu-panel a:hover, .menu-item:hover, .menu-panel a:focus-visible, .menu-item:focus-visible { background: var(--paper); }
.menu-panel a.is-active { background: var(--info-bg); }
.menu-panel .ico { color: var(--muted); flex: none; }
.menu-panel form { margin: .2rem 0 0; padding-top: .2rem; border-top: 1px solid var(--line); }
.menu-user-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 719px) {
    .menu { position: static; }
    .menu-panel { right: 1.25rem; left: 1.25rem; top: 100%; }
    .menu-user-name { display: none; }
    .admin-nav { order: 3; flex-basis: 100%; }
    .admin-brand { margin-right: auto; }
}

/* ---------- Painel: cartões ---------- */
.dash-group { margin-bottom: 1.4rem; }
.dash-group-title { margin: 0 0 .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.dash-group .cards { margin-bottom: 0; }
.stat { display: flex; align-items: flex-start; gap: .8rem; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.stat:hover { transform: translateY(-2px); border-color: var(--tc, var(--ink)); box-shadow: 0 2px 4px rgba(17, 18, 20, .06), 0 12px 28px rgba(17, 18, 20, .09); }
.stat-ico { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--tb, var(--info-bg)); color: var(--tc, var(--info)); }
.stat-body { display: flex; flex-direction: column; min-width: 0; }
.stat-label { font-weight: 650; font-size: .92rem; }
.stat-value { margin: .1rem 0; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat-hint { color: var(--muted); font-size: .82rem; }
.tone-blue   { --tc: #2f5fb3; --tb: #e8effa; }
.tone-violet { --tc: #6b4fb0; --tb: #f0ebfa; }
.tone-amber  { --tc: #a06a00; --tb: #fdf1d9; }
.tone-green  { --tc: #1c7a4b; --tb: #e7f4ed; }
.tone-teal   { --tc: #137a7a; --tb: #e2f4f3; }
.tone-orange { --tc: #b4531a; --tb: #fdece1; }
.tone-sky    { --tc: #1f78a8; --tb: #e4f2fa; }
.tone-rose   { --tc: #b0364a; --tb: #fbe9ec; }
.tone-gray   { --tc: #5f6368; --tb: #eeeeec; }
.dash .stat.flash { animation: stat-flash 1.6s ease-out; }
@media (prefers-reduced-motion: reduce) { a.stat:hover { transform: none; } }
@media (min-width: 720px) {
    .dash-group:nth-of-type(3) .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 719px) { .stat { padding: .85rem .9rem; } .stat-value { font-size: 1.7rem; } }

a.stat { display: flex; }
.attn-strip, .attn-ok { margin-bottom: 1.5rem; }
@media (min-width: 720px) { .cards[data-n="4"] { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards[data-n="4"] { grid-template-columns: repeat(4, 1fr); } }
.cards > .stat { min-width: 0; }
.stat-body { overflow-wrap: anywhere; }
@media (max-width: 719px) {
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    a.stat { flex-direction: column; gap: .5rem; }
}

.ship-panel .sla { display: inline-flex; }
.ship-how summary { cursor: pointer; font-weight: 600; font-size: .9rem; }
.ship-how ul { margin: .4rem 0 0; padding-left: 1.1rem; }

/* ---------- Quadros coloridos (página do pedido) ---------- */
.panel[class*="tint-"] { background: var(--pt); border-color: var(--pl); }
.panel[class*="tint-"] > h2 { display: flex; align-items: center; gap: .6rem; }
.panel[class*="tint-"] > h2::before { content: ""; flex: none; width: 5px; height: 1.15em; border-radius: 3px; background: var(--pc); }
.tint-blue   { --pt: #f5f8fd; --pl: #dde7f6; --pc: #2f5fb3; }
.tint-violet { --pt: #f8f5fd; --pl: #e6def5; --pc: #6b4fb0; }
.tint-amber  { --pt: #fffaf0; --pl: #f3e6c4; --pc: #a06a00; }
.tint-green  { --pt: #f4faf6; --pl: #d6eadd; --pc: #1c7a4b; }
.tint-teal   { --pt: #f2faf9; --pl: #d3ebe9; --pc: #137a7a; }
.tint-orange { --pt: #fff7f1; --pl: #f4dfd0; --pc: #b4531a; }
.tint-sky    { --pt: #f3f9fd; --pl: #d5e8f3; --pc: #1f78a8; }
.tint-rose   { --pt: #fdf5f6; --pl: #f3d9de; --pc: #b0364a; }
.tint-gray   { --pt: #f7f7f6; --pl: #e4e3df; --pc: #5f6368; }

/* ---------- Seletor de tema ---------- */
.theme-switch { padding-bottom: .35rem; margin-bottom: .2rem; border-bottom: 1px solid var(--line); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .9rem; margin-bottom: .15rem; }
.panel-head h2 { margin: 0; }
.period-seg { display: inline-flex; flex-wrap: wrap; gap: .25rem; }
.period-seg a { padding: .25rem .65rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .8rem; font-weight: 600; text-decoration: none; }
.period-seg a:hover { background: var(--paper); color: var(--ink); }
.period-seg a.is-on, .period-seg a.is-on:hover { background: var(--ink); border-color: var(--ink); color: var(--card); }
@media (max-width: 480px) { .period-seg { gap: .2rem; } .period-seg a { padding: .25rem .5rem; font-size: .76rem; } }
.theme-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; padding: .15rem .35rem 0; }
.theme-seg button { display: inline-flex; flex-direction: column; align-items: center; gap: .15rem; padding: .45rem .2rem; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.theme-seg button:hover { background: var(--paper); color: var(--ink); }
.theme-seg button.is-on { background: var(--ink); border-color: var(--ink); color: var(--card); }

/* ---------- Tema escuro (só painel e login: o site do cliente não define data-theme) ---------- */
html[data-theme="dark"] { color-scheme: dark;
    --ink: #ecebe7; --ink-2: #cfcdc6; --paper: #131417; --card: #1c1e22; --line: #32353b; --muted: #a3a19a; --focus: #7aa2ff;
    --ok: #6fcf9a; --ok-bg: #1a2e24; --warn: #e8b653; --warn-bg: #33291a; --fail: #f4948d; --fail-bg: #3a2124; --info: #b3c0da; --info-bg: #222a38;
    --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 24px rgba(0, 0, 0, .3);
}
html[data-theme="dark"] .tint-blue   { --pt: #1a2130; --pl: #2b3a55; --pc: #8fb0ee; }
html[data-theme="dark"] .tint-violet { --pt: #211d2f; --pl: #3a3156; --pc: #b9a2f0; }
html[data-theme="dark"] .tint-amber  { --pt: #272217; --pl: #473c22; --pc: #e8b653; }
html[data-theme="dark"] .tint-green  { --pt: #172620; --pl: #28463a; --pc: #6fcf9a; }
html[data-theme="dark"] .tint-teal   { --pt: #162626; --pl: #264544; --pc: #6fd0cc; }
html[data-theme="dark"] .tint-orange { --pt: #2a1f17; --pl: #4b3626; --pc: #f0a06a; }
html[data-theme="dark"] .tint-sky    { --pt: #172530; --pl: #28434f; --pc: #7cc3ea; }
html[data-theme="dark"] .tint-rose   { --pt: #2b1c20; --pl: #4e2f36; --pc: #f08fa0; }
html[data-theme="dark"] .tint-gray   { --pt: #1e2024; --pl: #34373d; --pc: #a3a8b0; }
html[data-theme="dark"] .tone-blue   { --tc: #8fb0ee; --tb: #1d2738; }
html[data-theme="dark"] .tone-violet { --tc: #b9a2f0; --tb: #261f38; }
html[data-theme="dark"] .tone-amber  { --tc: #e8b653; --tb: #33291a; }
html[data-theme="dark"] .tone-green  { --tc: #6fcf9a; --tb: #1a2e24; }
html[data-theme="dark"] .tone-teal   { --tc: #6fd0cc; --tb: #173030; }
html[data-theme="dark"] .tone-orange { --tc: #f0a06a; --tb: #35241a; }
html[data-theme="dark"] .tone-sky    { --tc: #7cc3ea; --tb: #172a36; }
html[data-theme="dark"] .tone-rose   { --tc: #f08fa0; --tb: #36202a; }
html[data-theme="dark"] .tone-gray   { --tc: #a3a8b0; --tb: #2a2c31; }
html[data-theme="dark"] .admin-bar { background: #0c0d0f; border-bottom: 1px solid #1f2125; }
html[data-theme="dark"] .btn-primary, html[data-theme="dark"] .btn-ghost:hover { background: #ecebe7; color: #111214; }
html[data-theme="dark"] .btn-primary:hover { background: #fff; }
html[data-theme="dark"] .btn-ghost { color: var(--ink); border-color: #6a6d74; }
html[data-theme="dark"] .btn-danger { background: #b3261e; color: #fff; }
html[data-theme="dark"] .input { background: #14151a; border-color: #4a4d54; color: var(--ink); }
html[data-theme="dark"] .input:hover { border-color: #6a6d74; }
html[data-theme="dark"] .input::placeholder { color: #7d7b75; }
html[data-theme="dark"] .alert-success { border-color: #2c5a43; }
html[data-theme="dark"] .alert-error { border-color: #6a3135; }
html[data-theme="dark"] .alert-info { border-color: #38435a; }
html[data-theme="dark"] .alert-warning { border-color: #594622; }
html[data-theme="dark"] .sla-banner.sla-ok { border-color: #2c5a43; }
html[data-theme="dark"] .sla-banner.sla-warn { border-color: #594622; }
html[data-theme="dark"] .sla-banner.sla-urgent, html[data-theme="dark"] .sla-banner.sla-late { border-color: #6a3135; }
html[data-theme="dark"] .danger-zone { border-color: #6a3135; }
html[data-theme="dark"] .sla-meter i { background: #3a3d43; }
html[data-theme="dark"] .sla-warn .sla-meter i.on { background: #e8b653; }
html[data-theme="dark"] .sla-prio { background: #3a3d43; color: var(--ink); }
html[data-theme="dark"] .photo, html[data-theme="dark"] .chip { background: var(--card); }
html[data-theme="dark"] .photo img, html[data-theme="dark"] .photo-grid a, html[data-theme="dark"] .proto-thumb a { background: #2a2c31; }
html[data-theme="dark"] .photo-tag { background: #ecebe7; color: #111214; }
html[data-theme="dark"] .progress-dot { background: #32353b; }
html[data-theme="dark"] .progress-list .is-current .progress-dot { background: #ecebe7; color: #111214; }
html[data-theme="dark"] .live-dot { background: #4a4d54; }
html[data-theme="dark"] .attn-urgent .attn-chip { background: #4a2326; color: #ffb4ac; }
html[data-theme="dark"] .attn-strip { background: var(--card); border-color: #5e3a37; }
html[data-theme="dark"] .attn-strip:hover, html[data-theme="dark"] .attn-strip:focus-visible { background: #2a1f20; }
html[data-theme="dark"] .attn-strip-go { color: #ff9d94; }
html[data-theme="dark"] .attn-filters a { background: var(--card); }
html[data-theme="dark"] .attn-filters a.is-on { background: #ecebe7; border-color: #ecebe7; color: #111214; }
html[data-theme="dark"] .menu-panel { background: var(--card); box-shadow: 0 12px 32px rgba(0, 0, 0, .55); }
html[data-theme="dark"] .menu-panel a:hover, html[data-theme="dark"] .menu-item:hover { background: #26282d; }
html[data-theme="dark"] .menu-panel a.is-active { background: var(--info-bg); }
html[data-theme="dark"] .theme-seg button:hover { background: #26282d; }
html[data-theme="dark"] .page-auth { background: linear-gradient(180deg, #0e0f11 0%, var(--paper) 60%); }
html[data-theme="dark"] a.stat:hover { box-shadow: 0 2px 4px rgba(0, 0, 0, .4), 0 12px 28px rgba(0, 0, 0, .4); }
html[data-theme="dark"] .stat-ico { color: var(--tc); }
html[data-theme="dark"] .admin-nav a.is-active, html[data-theme="dark"] .menu > summary.is-active { color: #111214; background: #ecebe7; }
.theme-seg button.is-on, .theme-seg button.is-on:hover, html[data-theme="dark"] .theme-seg button.is-on:hover { background: var(--ink); border-color: var(--ink); color: var(--card); }

/* =====================================================================
   Métricas (gráficos em HTML/CSS; cores da paleta de dataviz validada: azul único, tons ordenados no funil)
   ===================================================================== */
:root {
    --viz-1: #2a78d6; --viz-1-soft: #b7d3f6; --viz-track: #efeee9; --viz-hover: rgba(42, 120, 214, .08);
    --viz-o1: #86b6ef; --viz-o2: #5598e7; --viz-o3: #2a78d6; --viz-o4: #1c5cab;
    --viz-grid: #e1e0d9; --viz-axis: #c3c2b7; --viz-muted: #6a6862;
}
html[data-theme="dark"] {
    --viz-1: #3987e5; --viz-1-soft: #184f95; --viz-track: #26282d; --viz-hover: rgba(57, 135, 229, .14);
    --viz-o1: #184f95; --viz-o2: #256abf; --viz-o3: #3987e5; --viz-o4: #6da7ec;
    --viz-grid: #2c2c2a; --viz-axis: #383835; --viz-muted: #a5a39b;
}
.metrics-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: .75rem; }
.metrics-tabs { display: inline-flex; flex-wrap: wrap; gap: .35rem; }
.metrics-tabs a { padding: .4rem .95rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 650; text-decoration: none; background: var(--card); }
.metrics-tabs a:hover { color: var(--ink); border-color: var(--ink); }
.metrics-tabs a.is-on, .metrics-tabs a.is-on:hover { background: var(--ink); border-color: var(--ink); color: var(--card); }
.metrics-note { margin: 0 0 .9rem; }
.mtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1.25rem; }
.mtile { display: flex; flex-direction: column; gap: .15rem; min-width: 0; padding: .9rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; text-decoration: none; }
a.mtile:hover { border-color: var(--ink); }
.mtile-l { font-size: .82rem; font-weight: 650; color: var(--muted); }
.mtile-v { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.mtile-s { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.mtile.is-hero { grid-column: 1 / -1; }
.mtile.is-hero .mtile-v { font-size: 3rem; }
.metrics-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.25rem; }
.metrics-grid .panel { min-width: 0; }
.metrics-outcome { margin: .75rem 0 .25rem; }
.viz-empty { margin: .5rem 0; }
.viz-table { margin-top: .75rem; }
.viz-table summary { cursor: pointer; color: var(--muted); font-size: .82rem; }
.viz-table table { margin-top: .5rem; font-size: .85rem; }
.hbars, .funnel { list-style: none; margin: .5rem 0 0; padding: 0; }
.hbar, .funnel-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem .6rem; align-items: center; padding: .35rem 0; border-radius: 6px; }
.hbar:hover, .funnel-row:hover { background: var(--viz-hover); }
.hbar-l { grid-column: 1 / -1; font-size: .9rem; line-height: 1.3; }
.hbar-t { position: relative; display: block; height: 12px; background: var(--viz-track); border-radius: 0 4px 4px 0; overflow: hidden; }
.hbar-f { position: absolute; left: 0; top: 0; bottom: 0; display: block; background: var(--viz-1); border-radius: 0 4px 4px 0; }
.hbar-f.is-soft { background: var(--viz-1-soft); }
.hbar-f.is-main { background: var(--viz-1); }
.fx-1 { background: var(--viz-o1); } .fx-2 { background: var(--viz-o2); } .fx-3 { background: var(--viz-o3); } .fx-4 { background: var(--viz-o4); }
.hbar-v { font-size: .88rem; font-weight: 650; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 560px) {
    .hbar, .funnel-row { grid-template-columns: minmax(7rem, 36%) minmax(0, 1fr) minmax(4.5rem, auto); gap: .6rem; }
    .hbar-l { grid-column: auto; }
}
.vcol { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .3rem .5rem; margin-top: .6rem; }
.vcol-y { display: flex; flex-direction: column; justify-content: space-between; height: 150px; text-align: right; font-size: .72rem; color: var(--viz-muted); font-variant-numeric: tabular-nums; line-height: 1; }
.vcol-plot { position: relative; height: 150px; }
.vcol-grid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; }
.vcol-grid i { display: block; height: 1px; background: var(--viz-grid); }
.vcol-grid i:last-child { background: var(--viz-axis); }
.vcol-bars { position: relative; display: flex; align-items: flex-end; gap: 2px; height: 100%; padding: 0 2px; }
.vcol-b { flex: 1 1 0; min-width: 2px; height: 100%; display: flex; align-items: flex-end; justify-content: center; border-radius: 4px 4px 0 0; }
.vcol-b:hover { background: var(--viz-hover); }
.vcol-f { display: block; width: 100%; max-width: 24px; background: var(--viz-1); border-radius: 4px 4px 0 0; }
.vcol.is-few .vcol-bars { justify-content: space-around; }
.vcol.is-few .vcol-b { flex: 0 1 40px; }
.vcol-x { grid-column: 2; display: flex; justify-content: space-between; font-size: .72rem; color: var(--viz-muted); }
.meter { position: relative; display: block; height: 12px; background: var(--viz-track); border-radius: 0 4px 4px 0; overflow: hidden; }
.meter-f { position: absolute; left: 0; top: 0; bottom: 0; background: var(--viz-1); border-radius: 0 4px 4px 0; }
@media (min-width: 900px) {
    .mtiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .mtile { grid-column: span 1; }
    .mtile.is-hero { grid-column: span 2; }
    .mtile-v { font-size: 1.5rem; }
    .mtile.is-hero .mtile-v { font-size: 3rem; }
    .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metrics-wide { grid-column: 1 / -1; }
}
@media (min-width: 900px) and (max-width: 1100px) { .mtile-v { font-size: 1.3rem; } }
@media (prefers-reduced-motion: no-preference) { .hbar-f, .vcol-f { transition: filter .15s; } }
.hbar:hover .hbar-f, .vcol-b:hover .vcol-f { filter: brightness(1.1); }
/* larguras e alturas dos gráficos (a política de segurança do site não aceita estilo embutido) */
.w-0{width:0%}.w-1{width:1%}.w-2{width:2%}.w-3{width:3%}.w-4{width:4%}.w-5{width:5%}.w-6{width:6%}.w-7{width:7%}.w-8{width:8%}.w-9{width:9%}
.w-10{width:10%}.w-11{width:11%}.w-12{width:12%}.w-13{width:13%}.w-14{width:14%}.w-15{width:15%}.w-16{width:16%}.w-17{width:17%}.w-18{width:18%}.w-19{width:19%}
.w-20{width:20%}.w-21{width:21%}.w-22{width:22%}.w-23{width:23%}.w-24{width:24%}.w-25{width:25%}.w-26{width:26%}.w-27{width:27%}.w-28{width:28%}.w-29{width:29%}
.w-30{width:30%}.w-31{width:31%}.w-32{width:32%}.w-33{width:33%}.w-34{width:34%}.w-35{width:35%}.w-36{width:36%}.w-37{width:37%}.w-38{width:38%}.w-39{width:39%}
.w-40{width:40%}.w-41{width:41%}.w-42{width:42%}.w-43{width:43%}.w-44{width:44%}.w-45{width:45%}.w-46{width:46%}.w-47{width:47%}.w-48{width:48%}.w-49{width:49%}
.w-50{width:50%}.w-51{width:51%}.w-52{width:52%}.w-53{width:53%}.w-54{width:54%}.w-55{width:55%}.w-56{width:56%}.w-57{width:57%}.w-58{width:58%}.w-59{width:59%}
.w-60{width:60%}.w-61{width:61%}.w-62{width:62%}.w-63{width:63%}.w-64{width:64%}.w-65{width:65%}.w-66{width:66%}.w-67{width:67%}.w-68{width:68%}.w-69{width:69%}
.w-70{width:70%}.w-71{width:71%}.w-72{width:72%}.w-73{width:73%}.w-74{width:74%}.w-75{width:75%}.w-76{width:76%}.w-77{width:77%}.w-78{width:78%}.w-79{width:79%}
.w-80{width:80%}.w-81{width:81%}.w-82{width:82%}.w-83{width:83%}.w-84{width:84%}.w-85{width:85%}.w-86{width:86%}.w-87{width:87%}.w-88{width:88%}.w-89{width:89%}
.w-90{width:90%}.w-91{width:91%}.w-92{width:92%}.w-93{width:93%}.w-94{width:94%}.w-95{width:95%}.w-96{width:96%}.w-97{width:97%}.w-98{width:98%}.w-99{width:99%}
.w-100{width:100%}
.h-0{height:0%}.h-1{height:1%}.h-2{height:2%}.h-3{height:3%}.h-4{height:4%}.h-5{height:5%}.h-6{height:6%}.h-7{height:7%}.h-8{height:8%}.h-9{height:9%}
.h-10{height:10%}.h-11{height:11%}.h-12{height:12%}.h-13{height:13%}.h-14{height:14%}.h-15{height:15%}.h-16{height:16%}.h-17{height:17%}.h-18{height:18%}.h-19{height:19%}
.h-20{height:20%}.h-21{height:21%}.h-22{height:22%}.h-23{height:23%}.h-24{height:24%}.h-25{height:25%}.h-26{height:26%}.h-27{height:27%}.h-28{height:28%}.h-29{height:29%}
.h-30{height:30%}.h-31{height:31%}.h-32{height:32%}.h-33{height:33%}.h-34{height:34%}.h-35{height:35%}.h-36{height:36%}.h-37{height:37%}.h-38{height:38%}.h-39{height:39%}
.h-40{height:40%}.h-41{height:41%}.h-42{height:42%}.h-43{height:43%}.h-44{height:44%}.h-45{height:45%}.h-46{height:46%}.h-47{height:47%}.h-48{height:48%}.h-49{height:49%}
.h-50{height:50%}.h-51{height:51%}.h-52{height:52%}.h-53{height:53%}.h-54{height:54%}.h-55{height:55%}.h-56{height:56%}.h-57{height:57%}.h-58{height:58%}.h-59{height:59%}
.h-60{height:60%}.h-61{height:61%}.h-62{height:62%}.h-63{height:63%}.h-64{height:64%}.h-65{height:65%}.h-66{height:66%}.h-67{height:67%}.h-68{height:68%}.h-69{height:69%}
.h-70{height:70%}.h-71{height:71%}.h-72{height:72%}.h-73{height:73%}.h-74{height:74%}.h-75{height:75%}.h-76{height:76%}.h-77{height:77%}.h-78{height:78%}.h-79{height:79%}
.h-80{height:80%}.h-81{height:81%}.h-82{height:82%}.h-83{height:83%}.h-84{height:84%}.h-85{height:85%}.h-86{height:86%}.h-87{height:87%}.h-88{height:88%}.h-89{height:89%}
.h-90{height:90%}.h-91{height:91%}.h-92{height:92%}.h-93{height:93%}.h-94{height:94%}.h-95{height:95%}.h-96{height:96%}.h-97{height:97%}.h-98{height:98%}.h-99{height:99%}
.h-100{height:100%}

/* ---------- Métricas · Visão geral (resumo para acompanhar o negócio e mostrar a quem investe) ---------- */
.vhero { display: flex; flex-direction: column; gap: 1rem; margin-bottom: .9rem; padding: 1.4rem 1.3rem 1.2rem; border-radius: 20px; color: #fff; overflow: hidden;
    background: radial-gradient(120% 140% at 100% 0%, #3a8cf0 0%, rgba(58, 140, 240, 0) 55%), linear-gradient(135deg, #0d2342 0%, #17427a 100%);
    box-shadow: 0 12px 32px -14px rgba(13, 35, 66, .55); }
.vhero-main { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-width: 0; }
.vhero-eyebrow { font-size: .85rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.vhero-value { font-size: clamp(2.6rem, 11vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.vhero-sub { font-size: .85rem; color: rgba(255, 255, 255, .78); line-height: 1.4; }
.vhero-spark { min-width: 0; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 64px; }
.spark-b { display: block; flex: 1 1 0; min-width: 2px; max-width: 14px; background: rgba(255, 255, 255, .8); border-radius: 3px 3px 0 0; }
.vhero .delta { background: rgba(255, 255, 255, .16); color: #fff; }
.vhero .delta-vs { color: rgba(255, 255, 255, .78); }
.vkpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1.25rem; }
.vkpi { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; min-width: 0; padding: 1rem 1.05rem; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--viz-1); border-radius: var(--radius); box-shadow: var(--shadow); }
.vkpi .mtile-v { font-size: 1.9rem; }
.delta-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; }
.delta { display: inline-flex; align-items: baseline; gap: .3rem; white-space: nowrap; padding: .12rem .55rem; border-radius: 999px; font-size: .8rem; font-weight: 750; line-height: 1.4; font-variant-numeric: tabular-nums; background: var(--viz-track); color: var(--muted); }
.delta.is-up { color: #17714a; background: rgba(23, 113, 74, .12); }
.delta.is-down { color: #a8402a; background: rgba(168, 64, 42, .12); }
.delta-vs { font-size: .78rem; font-weight: 500; color: var(--muted); }
html[data-theme="dark"] .delta.is-up { color: #6fd6a0; background: rgba(111, 214, 160, .14); }
html[data-theme="dark"] .delta.is-down { color: #f29a82; background: rgba(242, 154, 130, .14); }
.vlife-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: .6rem; }
.vlife-grid strong { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.vlife-grid span { font-size: .85rem; color: var(--muted); }
.vfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin: .5rem 0 1.5rem; }
.vfoot p { margin: 0; flex: 1 1 18rem; }
@media (min-width: 720px) {
    .vhero { flex-direction: row; align-items: flex-end; justify-content: space-between; padding: 1.8rem 2rem 1.6rem; }
    .vhero-spark { flex: 0 1 46%; }
    .spark { height: 96px; }
    .vkpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .vlife-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media print {
    .admin-bar, .metrics-bar, .vfoot .btn, .admin-footer, .page-head p { display: none !important; }
    html, body { background: #fff !important; }
    .vhero, .vkpi, .panel { -webkit-print-color-adjust: exact; print-color-adjust: exact; break-inside: avoid; box-shadow: none; }
    .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metrics-wide { grid-column: 1 / -1; }
    .viz-table { display: none; }
}
.vhero .delta.is-up, .vhero .delta.is-down, html[data-theme="dark"] .vhero .delta.is-up, html[data-theme="dark"] .vhero .delta.is-down { color: #fff; background: rgba(255, 255, 255, .18); }
a.vkpi.is-link { color: inherit; text-decoration: none; }
a.vkpi.is-link:hover { border-color: var(--ink); border-top-color: var(--viz-1); }
.vkpi .mtile-s { margin-top: .1rem; }
.vkpi .mtile-v { white-space: nowrap; }
@media (max-width: 480px) { .vkpi .mtile-v { font-size: 1.6rem; } }
/* Lista de pedidos: situação do link do orçamento */
.link-badge { font-weight: 700; }
.link-badge.is-none { background: var(--viz-track); color: var(--muted); }
.link-badge.is-unread { background: #fdf0d5; color: #8a5a00; }
.link-badge.is-read { background: rgba(23, 113, 74, .12); color: #17714a; }
html[data-theme="dark"] .link-badge.is-unread { background: #3a2f14; color: #e8b653; }
html[data-theme="dark"] .link-badge.is-read { background: rgba(111, 214, 160, .14); color: #6fd6a0; }

/* ---------- Painel numa página só + páginas Comercial e Produção ---------- */
a.vhero.is-link { color: #fff; text-decoration: none; }
a.vhero.is-link:hover { box-shadow: 0 14px 34px -12px rgba(13, 35, 66, .7); }
.vhero-spark { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.vhero-spark .spark { align-self: stretch; }
.vhero-more { font-size: .85rem; font-weight: 700; color: rgba(255, 255, 255, .85); }
.dash-group-title { margin: 1.1rem 0 .55rem; }
.vkpis-need { margin-bottom: 1rem; }
.vkpi.need .mtile-v { font-size: 2.1rem; }
.vkpi.need.is-alert .mtile-v { color: #a8402a; }
.vkpi.need.is-alert { border-top-color: #c0392b; }
.vkpi.need.is-ok .mtile-v { color: #17714a; }
html[data-theme="dark"] .vkpi.need.is-alert .mtile-v { color: #f29a82; }
html[data-theme="dark"] .vkpi.need.is-ok .mtile-v { color: #6fd6a0; }
.dash-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.25rem; align-items: start; }
.dash-col { min-width: 0; }
.panel-flush { margin-top: 0; }
.cards.cards-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1.25rem; }
.stat.is-compact { padding: .75rem .85rem; }
.stat.is-compact .stat-body { display: flex; flex-direction: column; }
.stat.is-compact .stat-label { font-size: .85rem; }
.stat.is-compact .stat-value { margin: .1rem 0 0; font-size: 1.7rem; }
@media (min-width: 640px) { .cards.cards-pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) {
    .vkpis-need { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .dash-cols { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}
a.stat.is-compact { flex-direction: column; align-items: flex-start; gap: .45rem; }
.stat.is-compact .stat-body { overflow-wrap: normal; word-break: normal; }
.stat.is-compact .stat-label { line-height: 1.25; }
.dash-col .recent a { flex-wrap: wrap; gap: .15rem .6rem; padding: .5rem 0; }
.dash-col .recent a > strong { flex: none; }
.dash-col .recent a > span:nth-of-type(1) { flex: 1 1 calc(100% - 9rem); min-width: 0; }
.dash-col .recent .badge, .dash-col .recent .small { flex: none; }
.dash-col .recent { grid-template-columns: minmax(0, 1fr); }
.dash-col .recent li { min-width: 0; }
.dash-col .panel .u-mb0 { margin-top: .9rem; }

/* ---------- Painel: pedidos por etapa ---------- */
.dash-title-n { margin-left: .4rem; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.lane-title { display: flex; align-items: baseline; gap: .5rem; margin: 1rem 0 .5rem; font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lane-title span { padding: 0 .5rem; border-radius: 999px; background: var(--viz-track); color: var(--ink); font-size: .76rem; letter-spacing: 0; }
.stages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.stage { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; min-width: 0; padding: .75rem .95rem; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--tc, var(--line)); border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.stage:hover { border-color: var(--tc, var(--ink)); box-shadow: 0 2px 4px rgba(17, 18, 20, .06), 0 10px 24px rgba(17, 18, 20, .08); transform: translateY(-1px); }
.stage .stat-ico { width: 2.2rem; height: 2.2rem; border-radius: 10px; }
.stage-main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.stage-main .stat-label { font-size: .92rem; line-height: 1.2; }
.stage-n { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stage-meta { display: flex; flex-wrap: wrap; gap: 0 .8rem; font-size: .76rem; color: var(--muted); }
.stage-meta:empty { display: none; }
.stage.flash { animation: stat-flash 1.6s ease-out; }
@media (min-width: 980px) { .dash-cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } .stage-n { font-size: 2rem; } }
@media (prefers-reduced-motion: reduce) { .stage:hover { transform: none; } .stage.flash { animation: none; } }

/* ---------- Painel: quadro de pedidos por etapa (estilo kanban) ---------- */
.board-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem 1rem; margin: 1.4rem 0 .2rem; }
.board-head .dash-group-title { margin: 0; }
.board-sub { margin: 0; font-size: .85rem; color: var(--muted); }
.board-sub strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.board-all { margin-left: auto; font-size: .85rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.board-all:hover { text-decoration: underline; }
.board { display: flex; gap: .75rem; margin: 0 -16px; padding: 2px 16px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.col { flex: 0 0 82%; scroll-snap-align: start; display: flex; flex-direction: column; gap: .55rem; min-width: 0; padding: .6rem; border-radius: 16px; background: var(--tb); border: 1px solid color-mix(in srgb, var(--tc) 14%, transparent); }
.col-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .15rem .25rem .25rem; color: inherit; text-decoration: none; }
.col-head .stat-ico { width: 2.1rem; height: 2.1rem; border-radius: 11px; background: var(--card); box-shadow: 0 1px 2px rgba(17, 18, 20, .08); }
.col-title { display: flex; flex-direction: column; min-width: 0; font-weight: 750; font-size: .95rem; line-height: 1.2; }
.col-title small { font-weight: 500; font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.col-n { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--tc); font-variant-numeric: tabular-nums; }
.col-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.ocard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .55rem .65rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(17, 18, 20, .04); transition: transform .12s, box-shadow .12s, border-color .12s; }
.ocard:hover { transform: translateY(-1px); border-color: var(--tc); box-shadow: 0 6px 16px rgba(17, 18, 20, .10); }
.ocard-av { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--tb); color: var(--tc); font-size: .72rem; font-weight: 800; letter-spacing: .02em; }
.ocard-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.ocard-main strong { font-size: .82rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocard-main span { font-size: .72rem; color: var(--muted); }
.ocard-side { display: inline-flex; align-items: center; gap: .4rem; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ldot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--viz-axis); }
.ldot.is-read { background: #1c9a60; }
.ldot.is-unread { background: #e0a21a; }
.col-empty { margin: 0; padding: 1.1rem .5rem; text-align: center; font-size: .82rem; color: var(--muted); }
.col-more { margin-top: auto; padding: .35rem .25rem 0; font-size: .8rem; font-weight: 700; color: var(--tc); text-decoration: none; }
.col-more:hover { text-decoration: underline; }
.col.flash, .col-head.flash { animation: stat-flash 1.6s ease-out; }
.closed-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; margin: .9rem 0 1.5rem; font-size: .85rem; color: var(--muted); }
.closed-strip > span { font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.closed-strip a { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; }
.closed-strip a:hover { border-color: var(--tc); }
.closed-strip a strong { font-variant-numeric: tabular-nums; }
@media (min-width: 720px) {
    .board { margin: 0; padding: 0; overflow: visible; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .col { flex: none; }
}
@media (min-width: 1000px) { .board { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .ocard:hover { transform: none; } }
.col-empty { display: block; text-decoration: none; font-weight: 650; color: var(--tc); }
.closed-strip.is-quiet { margin-bottom: .2rem; }
.closed-strip.is-quiet a { background: transparent; border-style: dashed; color: var(--muted); font-weight: 550; }
/* pipeline + painel da etapa (v61b) */
.pipe { display: flex; flex-direction: column; gap: .8rem; margin-bottom: .9rem; }
.pipe-lane .lane-title { margin: 0 0 .4rem; }
.pipe-steps { display: flex; gap: .5rem; overflow-x: auto; padding: .15rem .1rem .4rem; scroll-snap-type: x proximity; }
.step { flex: 1 0 auto; min-width: 5.6rem; scroll-snap-align: start; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "ico n" "l l"; align-items: center; gap: .15rem .5rem; text-align: left; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; }
.step-ico { grid-area: ico; color: var(--tc); display: inline-flex; }
.step-n { grid-area: n; justify-self: end; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--tc); }
.step-l { grid-area: l; font-size: .78rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
.step:hover:not(:disabled) { border-color: var(--tc); }
.step.is-on { background: var(--tb); border-color: var(--tc); box-shadow: 0 0 0 1px var(--tc) inset; }
.step.is-on .step-l { color: var(--ink); }
.step.is-zero { opacity: .5; cursor: default; background: transparent; border-style: dashed; }
.step.is-zero .step-n { color: var(--muted); }
@media (min-width: 900px) { .pipe { flex-direction: row; gap: 1.2rem; } .pipe-lane { flex: 1 1 0; min-width: 0; } .pipe-lane:first-child { flex-grow: 1; } .pipe-steps { overflow: visible; } .step { flex: 1 1 0; min-width: 0; } }
.pane { background: var(--tb); border: 1px solid color-mix(in srgb, var(--tc) 28%, var(--line)); border-radius: 18px; padding: 1rem; }
.pane[hidden] { display: none; }
.pane-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .9rem; margin-bottom: .8rem; }
.pane-head h3 { margin: 0; font-size: 1.1rem; color: var(--tc); }
.pane-head p { margin: 0; font-size: .85rem; color: var(--muted); flex: 1 1 auto; }
.pane-head p strong { color: var(--ink); }
.pane-all, .pane .col-more { font-weight: 700; font-size: .85rem; color: var(--tc); text-decoration: none; }
.pane-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
@media (min-width: 760px) { .pane-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .pane-list { grid-template-columns: 1fr 1fr 1fr; } }
.pane .col-more { display: inline-block; margin-top: .8rem; }
.pane .col-empty { padding: .6rem 0; }
.step-l { white-space: normal; line-height: 1.2; }
.step { align-content: start; }
@media (min-width: 900px) { .step { min-width: 0; padding: .6rem .7rem; } .step-l { overflow-wrap: anywhere; } }
.board-head { margin-bottom: 1rem; }
/* v61c: acabamento do pipeline */
.pipe-steps { --on: #fff; }
html[data-theme="dark"] .pipe-steps { --on: #101114; }
.step { position: relative; gap: .35rem .5rem; padding: .75rem .85rem .7rem; border-radius: 16px; background: linear-gradient(165deg, var(--card) 40%, color-mix(in srgb, var(--tc) 9%, var(--card))); box-shadow: 0 1px 2px rgb(0 0 0 / .05); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.step-ico { width: 1.9rem; height: 1.9rem; align-items: center; justify-content: center; border-radius: 10px; background: var(--tb); }
.step-n { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.step:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--tc) 55%, transparent); }
.step.is-on { background: linear-gradient(160deg, color-mix(in srgb, var(--tc) 100%, #fff 12%), var(--tc)); box-shadow: 0 10px 22px -10px var(--tc); }
.step.is-on .step-n, .step.is-on .step-l, .step.is-on .step-ico { color: var(--on); }
.step.is-on .step-ico { background: color-mix(in srgb, var(--on) 22%, transparent); }
.step.is-zero { box-shadow: none; background: transparent; }
.step:focus-visible { outline: 3px solid color-mix(in srgb, var(--tc) 55%, transparent); outline-offset: 2px; }
@media (min-width: 900px) {
  .step.is-on::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: var(--tc); transform: translateX(-50%) rotate(45deg); border-radius: 3px; }
  .step + .step::before { content: "›"; position: absolute; left: -.62rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.1rem; opacity: .6; }
}
.pane { position: relative; background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 13%, var(--tb)), var(--tb) 150px); box-shadow: 0 14px 30px -22px var(--tc); border-radius: 20px; padding: 1.1rem 1.1rem 1rem; }
.pane-head h3 { font-size: 1.3rem; letter-spacing: -.01em; }
.ocard-av { background: var(--tc); color: var(--on, #fff); }
html[data-theme="dark"] .ocard-av { color: #101114; }
.pane .ocard { transition: transform .15s ease, box-shadow .15s ease; }
.pane .ocard:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--tc) 60%, transparent); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.pane:not([hidden]) .pane-list li { animation: rise .35s ease both; }
.pane:not([hidden]) .pane-list li:nth-child(2) { animation-delay: .04s; } .pane:not([hidden]) .pane-list li:nth-child(3) { animation-delay: .08s; }
.pane:not([hidden]) .pane-list li:nth-child(4) { animation-delay: .12s; } .pane:not([hidden]) .pane-list li:nth-child(5) { animation-delay: .16s; }
.pane:not([hidden]) .pane-list li:nth-child(6) { animation-delay: .2s; } .pane:not([hidden]) .pane-list li:nth-child(n+7) { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .pane li, .step, .pane .ocard { animation: none !important; transition: none !important; } }

/* =====================================================================
   v62 · RÉGUA ÚNICA DO SISTEMA — mesma linguagem visual em todas as telas
   ===================================================================== */
.admin-main { --lift: 0 10px 22px -12px rgb(17 18 20 / .35); }
.admin-main .page-head { position: relative; margin-bottom: 1.5rem; padding-bottom: 1rem; }
.admin-main .page-head::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ink), #2f6df6); }
.admin-main .page-head h1 { font-weight: 800; letter-spacing: -.02em; }
.admin-main .page-head p { margin-bottom: 0; }
.admin-main .panel, .admin-main .stat { border-radius: 18px; border-color: color-mix(in srgb, var(--line) 85%, transparent); box-shadow: 0 1px 2px rgb(17 18 20 / .05), 0 14px 30px -24px rgb(17 18 20 / .45); }
.admin-main .panel > h2:first-child, .admin-main .panel > .panel-head h2 { font-size: 1.1rem; font-weight: 750; letter-spacing: -.01em; }
.admin-main .order-row, .admin-main .attn-item a { border-radius: 16px; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.admin-main .order-row:hover, .admin-main .attn-item a:hover { transform: translateY(-2px); box-shadow: var(--lift); border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.admin-main .ord-code { font-variant-numeric: tabular-nums; }
.admin-main .attn-strip { border-radius: 16px; }
.admin-main .attn-filters a, .admin-main .seg a { transition: background .15s ease, border-color .15s ease, transform .15s ease; }
.admin-main .attn-filters a:hover { transform: translateY(-1px); border-color: var(--ink); }
.admin-main .attn-filters a.is-on { background: linear-gradient(165deg, #2a2c30, #111214); box-shadow: 0 8px 18px -10px rgb(17 18 20 / .6); }
.admin-main .btn-primary { background: linear-gradient(180deg, #2c2e33, #111214); box-shadow: 0 6px 14px -8px rgb(17 18 20 / .7); }
.admin-main .btn-primary:hover { background: linear-gradient(180deg, #111214, #000); }
.admin-main .btn:hover:not(:disabled) { transform: translateY(-1px); }
.admin-main .btn:active { transform: translateY(1px); }
.admin-main .input { border-radius: 12px; }
.admin-main .input:focus { outline-color: color-mix(in srgb, var(--focus) 40%, transparent); }
.admin-main .alert { border-radius: 14px; }
.admin-main .badge { letter-spacing: .01em; }
.admin-main table.diag th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.admin-main .filters .field label { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.admin-main .pager .btn { min-width: 7rem; }
html[data-theme="dark"] .admin-main .page-head::after { background: linear-gradient(90deg, #ecebe7, #8fb0ee); }
html[data-theme="dark"] .admin-main .btn-primary { background: #ecebe7; box-shadow: none; }
html[data-theme="dark"] .admin-main .attn-filters a.is-on { background: #ecebe7; color: #111214; box-shadow: none; }
html[data-theme="dark"] .admin-main { --lift: 0 10px 22px -12px rgb(0 0 0 / .8); }
/* selo "parado" nos cartões do Painel */
.ocard.is-stale { border-color: color-mix(in srgb, #d98a00 55%, var(--line)); }
.ocard.is-stale time { color: #8f5a00; font-weight: 750; }
html[data-theme="dark"] .ocard.is-stale time { color: #e8b653; }
@media (prefers-reduced-motion: reduce) { .admin-main .order-row, .admin-main .attn-item a, .admin-main .btn { transition: none !important; transform: none !important; } }
.admin-main .order-row { border-left: 4px solid var(--tc, var(--line)); }
.order-name { display: flex; align-items: center; gap: .6rem; }
.order-name .ocard-av { flex: 0 0 auto; }
.admin-main .order-row .ocard-av { width: 2rem; height: 2rem; font-size: .72rem; }

/* v62b: etapas como atalho + painéis com a mesma identidade do Painel */
a.step { text-decoration: none; }
.pipe-steps.is-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; overflow: visible; margin-bottom: 1.25rem; }
@media (min-width: 900px) { .pipe-steps.is-grid { grid-template-columns: repeat(4, 1fr); gap: .6rem; } }
.pipe-steps.is-grid .step { min-width: 0; }
.panel-title { display: flex; align-items: center; gap: .6rem; margin: 0 0 .5rem; }
.panel-title .step-ico { flex: 0 0 auto; }
.panel-head .panel-title { margin: 0; }
.admin-main .panel[class*="tone-"] { border-top: 3px solid var(--tc); background: linear-gradient(180deg, color-mix(in srgb, var(--tc) 7%, var(--card)), var(--card) 130px); }
.admin-main .panel[class*="tone-"] .panel-title { color: var(--ink); }
.admin-main .page-head + .pipe-steps, .admin-main .page-head + .dash { margin-top: 0; }
.close-noreply { margin-top: .8rem; border-top: 1px dashed var(--line); padding-top: .7rem; }
.close-noreply summary { cursor: pointer; }
.close-noreply form { margin-top: .6rem; }
.proto-reg { margin: .8rem 0; border-top: 1px dashed var(--line); padding-top: .7rem; }
.proto-reg summary { cursor: pointer; }
.proto-reg form { margin-top: .6rem; }

/* v66 · Frete: remetente e conexão com o Melhor Envio */
.hint code { overflow-wrap: anywhere; word-break: break-all; }
.sender-form .btn[type="submit"] { margin-top: .75rem; }
.panel .pkg-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }

/* v71 · Abertura de pedidos (admin) */
.intake-form { display: grid; gap: 16px; max-width: 520px; }
.intake-switch { align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.nav-closed { display: block; margin: 0 0 14px; }

/* v73 · botão com aparência de link (valor declarado) */
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* v76 · Fila de espera (admin) */
.seg-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.wl-table td.nowrap, .wl-table td:nth-child(3) { white-space: nowrap; }
.wl-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 260px; }
.wl-actions .inline-form { margin: 0; }

/* v78 · Fotos adicionadas pela equipe */
.photo-cell { display: grid; gap: 6px; align-content: start; }
.photo-grid .photo-cell a { aspect-ratio: 1; }
.photo-grid a.is-team { border-color: var(--info); }
.photo-tag-team { background: var(--info); }
.photo-remove { margin: 0; }
.photo-remove .btn { width: 100%; }
.photo-add { display: grid; gap: 8px; margin-top: 14px; max-width: 460px; }
.photo-add-l { font-weight: 600; font-size: .9rem; }
.photo-add .btn { justify-self: start; }
.photo-tag-team { bottom: auto; top: 4px; color: #fff; }
html[data-theme="dark"] .photo-tag-team { background: var(--info); color: #fff; }

/* v79 · Barra de avisos do Painel: chips compactos em vez de faixas grandes */
.alertbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.25rem; }
.achip { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; max-width: 100%; padding: 6px 12px 6px 7px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: inherit; text-decoration: none; font-size: .88rem; line-height: 1.2; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.achip:hover, a.achip:focus-visible { transform: translateY(-1px); box-shadow: var(--lift, 0 6px 16px rgba(0,0,0,.08)); }
.achip-b { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; font-weight: 700; font-size: .8rem; color: #fff; }
.achip-b svg { display: block; }
.achip-t { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.achip-t strong { font-weight: 700; white-space: nowrap; }
.achip-d { color: var(--muted, #555); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.achip-go { color: var(--muted, #555); font-size: 1.1rem; line-height: 1; flex: none; }
.achip-fail { border-color: #efc9c4; } .achip-fail .achip-b { background: #c0392b; }
.achip-warn { border-color: #efd9a6; background: var(--warn-bg); } .achip-warn .achip-b { background: #b7791f; }
.achip-info { border-color: #cdd6e6; background: var(--info-bg); } .achip-info .achip-b { background: var(--info); }
.achip-ok { border-color: #bfe0cd; background: var(--ok-bg); color: var(--ok); min-height: 34px; padding-right: 14px; } .achip-ok .achip-b { background: var(--ok); min-width: 22px; height: 22px; font-size: .75rem; }
.achip-ok .achip-t strong { font-weight: 600; }
.achip-d { max-width: 15rem; }
@media (max-width: 640px) {
    .alertbar { gap: 6px; }
    .achip { width: 100%; }
    .achip-t { flex: 1 1 auto; }
    .achip-d { max-width: none; flex: 1 1 0; }
    .achip-go { margin-left: auto; }
    .achip-ok { width: auto; }
}
html[data-theme="dark"] .achip-fail { border-color: #5e3a37; }
html[data-theme="dark"] .achip-warn { border-color: #5a4a22; background: #2a2416; }
html[data-theme="dark"] .achip-info { border-color: #34405a; background: #1d2330; }
html[data-theme="dark"] .achip-ok { border-color: #264a38; background: #17261f; color: #8fd3ad; }

/* v80 · Aviso de pagamento confirmado */
.notice-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; justify-content: space-between; padding: 12px 14px; margin: 0 0 14px; border: 1px solid #efd9a6; border-radius: 14px; background: var(--warn-bg); }
.notice-box.is-done { border-color: #bfe0cd; background: var(--ok-bg); }
.notice-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 16rem; }
.notice-box .inline-form { margin: 0; }
html[data-theme="dark"] .notice-box { background: #2a2416; border-color: #5a4a22; }
html[data-theme="dark"] .notice-box.is-done { background: #17261f; border-color: #264a38; }

/* v84: conteúdo dos avisos empilhado, com campo de tamanho confortável */
.sla-banner > .hint, .sla-banner > form.form, .sla-banner > details { flex-basis: 100%; margin: 0; }
#pos-pago form.form { max-width: 28rem; }
#pos-pago .hint { margin-bottom: .2rem; }

/* v85: projeção de faturamento nas Métricas */
.forecast { display: flex; gap: .75rem; align-items: flex-start; padding: .8rem 1rem; margin: 0 0 1rem; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface, transparent); }
.forecast-ico { color: var(--muted, #666); padding-top: .15rem; }
.forecast > div { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.forecast strong { font-size: 1rem; }
.forecast span { font-size: .88rem; }
.forecast small { color: var(--muted, #666); font-size: .8rem; line-height: 1.4; }

/* v90: busca e paginação da fila de espera */
.wl-search { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: 0 0 .9rem; }
.wl-search .input { flex: 1 1 14rem; max-width: 22rem; }

/* v95: aviso de pendências e erro junto do botão de enviar orçamento */
.send-quote .alert { margin-bottom: .75rem; }
.send-quote .send-missing { margin: .35rem 0 .5rem 1.1rem; padding: 0; }
.send-quote .send-missing a { color: inherit; text-decoration: underline; }
.send-quote button[disabled] { opacity: .5; cursor: not-allowed; }
#orcamento-enviar { scroll-margin-top: 5rem; }

/* Avisos da equipe (Telegram) */
.check-list{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.stack{display:grid;gap:.75rem}
pre.code{background:var(--surface-2,#f3f3f3);border-radius:8px;padding:.75rem;overflow-x:auto;font-size:.85rem;white-space:pre-wrap;word-break:break-all}

/* Comercial: os resumos de "Aguardando resposta" viram filtros */
.sla-summary .sla-chip a { color: inherit; text-decoration: none; display: block; }
.sla-summary .sla-chip a:hover { text-decoration: underline; }
.sla-summary .sla-chip.is-active { box-shadow: 0 0 0 2px currentColor; }

/* Encerramento em lote (Comercial) */
.batch-bar { display: grid; gap: .6rem; padding: .9rem 1rem; margin: .5rem 0 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--fail-bg); }
.sla-queue li.has-check { display: flex; align-items: flex-start; gap: .6rem; }
.sla-queue li.has-check > a { flex: 1; min-width: 0; }
.batch-check { width: 1.15rem; height: 1.15rem; margin-top: .9rem; flex: none; }

/* Painel: bloco de atenção (ação) + linha de situação (informativo). */
.attnbox { margin: 0 0 .9rem; padding: .85rem 1rem; border: 1px solid #efc9c4; border-left: 4px solid #c0392b; border-radius: 14px; background: var(--card); display: grid; gap: .6rem; }
.attnbox-row { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; }
.attnbox-main { display: inline-flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; font-size: 1.05rem; }
.attnbox-n { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 9px; border-radius: 999px; background: #c0392b; color: #fff; font-weight: 800; }
.attnbox-go { color: var(--muted, #555); font-size: 1.3rem; line-height: 1; }
.attnbox-types { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.attn-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: inherit; font-size: .85rem; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.attn-pill:hover, .attn-pill:focus-visible { border-color: var(--muted, #888); transform: translateY(-1px); }
.attn-pill b { font-weight: 800; }
.attn-pill-warn { background: var(--warn-bg); border-color: #efd9a6; }
.attn-pill-info { background: var(--info-bg); border-color: #cdd6e6; }
.attnbox-alert { display: block; padding: .5rem .7rem; border-radius: 10px; background: #fbe9e7; color: #8f2a1e; font-size: .88rem; text-decoration: none; }
.allclear { margin: 0 0 .9rem; color: var(--ok); font-size: .9rem; font-weight: 600; }
.sitrep { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: .88rem; }
.sitrep-i { display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; color: var(--muted, #555); text-decoration: none; }
.sitrep-i svg { flex: none; }
.sitrep-i strong { color: var(--ink); font-weight: 700; }
.sitrep-i:hover strong, .sitrep-i:focus-visible strong { text-decoration: underline; }
.sitrep-ok svg { color: var(--ok); }
.sitrep-warn svg { color: #b7791f; }
.sitrep-info svg { color: var(--info); }
@media (max-width: 640px) {
    .sitrep { flex-direction: column; gap: 0; }
    .attnbox-row { align-items: flex-start; }
}
html[data-theme="dark"] .attnbox { border-color: #5e3a37; }
html[data-theme="dark"] .attnbox-alert { background: #2d1a18; color: #f1a79d; }
html[data-theme="dark"] .attn-pill-warn { background: #2a2416; border-color: #5a4a22; }
html[data-theme="dark"] .attn-pill-info { background: #1d2330; border-color: #34405a; }

/* Painel: cartões "Precisa de você agora" com ícone; os em dia ficam discretos. */
.vkpi.need { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ico lab" "val val" "sub sub"; align-items: center; gap: .15rem .6rem; }
.vkpi.need .need-ico { grid-area: ico; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 12px; }
.vkpi.need .mtile-l { grid-area: lab; line-height: 1.25; }
.vkpi.need .mtile-v { grid-area: val; margin-top: .35rem; }
.vkpi.need .mtile-s { grid-area: sub; }
.vkpi.need.is-alert .need-ico { background: #fbe9e7; color: #b23a2b; }
.vkpi.need.is-ok { background: transparent; border-top-color: var(--line); }
.vkpi.need.is-ok .need-ico { background: var(--ok-bg); color: var(--ok); }
.vkpi.need.is-ok .mtile-v { font-size: 1rem; font-weight: 700; margin-top: .3rem; }
.vkpi.need.is-ok .mtile-l { color: var(--muted); }
@media (min-width: 1100px) { .vkpis-need { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
html[data-theme="dark"] .vkpi.need.is-alert .need-ico { background: #3a201c; color: #f29a82; }

/* ===== Painel v126: faixa de números, bloco único "Precisa de você" e funil neutro ===== */
.kpiband { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 0 0 1.4rem; }
@media (min-width: 980px) { .kpiband { grid-template-columns: 1.35fr 1fr 1fr 1fr; } }
.kpi { display: flex; flex-direction: column; gap: .2rem; min-width: 0; padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.kpi:hover, .kpi:focus-visible { border-color: var(--muted); box-shadow: 0 8px 20px -14px rgba(17, 18, 20, .35); }
.kpi-l { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kpi-v { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-s { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.kpi-x { display: flex; align-items: flex-end; justify-content: space-between; gap: .8rem; min-height: 38px; }
.kpi-x .spark { height: 38px; flex: 1 1 auto; max-width: 9rem; }
.kpi-x .spark-b { background: var(--viz-1, #2f5fb3); opacity: .85; max-width: 8px; }
.kpi-x .delta { flex: none; align-self: center; }
@media (max-width: 480px) { .kpi-v { font-size: 1.55rem; } .kpi { padding: .85rem .9rem; } }

.needbox { margin: 0 0 1.6rem; padding: 1rem 1.1rem 1.05rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; }
.needbox-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem 1rem; margin-bottom: .7rem; }
.needbox-head .dash-group-title { margin: 0; }
.needbox-all { font-size: .85rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.needbox-all:hover { text-decoration: underline; }
.needlist { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 820px) { .needlist { grid-template-columns: 1fr 1fr; } }
.needrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; min-height: 56px; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.needrow:hover, .needrow:focus-visible { border-color: var(--muted); transform: translateY(-1px); }
.needrow-ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.needrow-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.needrow-t strong { font-size: .92rem; font-weight: 700; }
.needrow-t span { font-size: .78rem; color: var(--muted); }
.needrow-n { min-width: 2rem; padding: .15rem .6rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .95rem; font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.needrow.is-urgent { border-color: #efc9c4; background: #fdf6f5; }
.needrow.is-urgent .needrow-ico { background: #fbe9e7; border-color: #f1cdc8; color: #b23a2b; }
.needrow.is-urgent .needrow-n { background: #c0392b; color: #fff; }
.needbox-ok { margin: .8rem 0 0; font-size: .82rem; color: var(--ok); }
html[data-theme="dark"] .needrow.is-urgent { border-color: #5e3a37; background: #261a19; }
html[data-theme="dark"] .needrow.is-urgent .needrow-ico { background: #3a201c; border-color: #5e3a37; color: #f29a82; }
.dash .attnbox-alert, .attnbox-alert { margin: 0 0 .8rem; }

/* Funil e painel de etapa em tons neutros: a cor forte fica só para o que é urgente. */
.dash [class*="tone-"] { --tc: #2c2e33; --tb: #f4f3ef; }
html[data-theme="dark"] .dash [class*="tone-"] { --tc: #d6d4cd; --tb: #22242a; }
.dash .step { background: var(--card); box-shadow: none; }
.dash .step-ico { background: var(--tb); color: var(--muted); }
.dash .step-n { color: var(--ink); }
.dash .step:hover:not(:disabled) { box-shadow: 0 8px 18px -12px rgba(17, 18, 20, .45); border-color: var(--muted); }
.dash .step.is-on { background: #1d1f23; border-color: #1d1f23; box-shadow: 0 10px 22px -12px rgba(17, 18, 20, .6); }
html[data-theme="dark"] .dash .step.is-on { background: #e9e7e1; border-color: #e9e7e1; --on: #17181b; }
.dash .step.is-on::after { background: #1d1f23; }
html[data-theme="dark"] .dash .step.is-on::after { background: #e9e7e1; }
.dash .step.is-zero { background: transparent; }
.dash .pane { background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.dash .pane-head h3 { color: var(--ink); }
.dash .pane-all, .dash .pane .col-more { color: var(--ink); }
.dash .ocard-av { background: #e9e7e1; color: var(--ink); }
html[data-theme="dark"] .dash .ocard-av { background: #32353b; color: #ecebe7; }
.dash .ocard:hover { border-color: var(--muted); }
.dash .closed-strip a:hover { border-color: var(--muted); }

/* ===== v127: um padrão visual só em todo o sistema =====
   Base: cartões brancos de cantos 16–18px, borda fina, sombra suave, títulos em tinta (quase preto) e UMA cor de destaque (azul da marca).
   Cor forte fica só para estado: vermelho = urgente/perigo, âmbar = atenção, verde = ok. As cores por "categoria" (roxo, laranja, verde-água, azul...) saíram. */
.tint-blue, .tint-violet, .tint-amber, .tint-green, .tint-teal, .tint-orange, .tint-sky, .tint-gray { --pt: var(--card); --pl: var(--line); --pc: var(--ink); }
html[data-theme="dark"] .tint-blue, html[data-theme="dark"] .tint-violet, html[data-theme="dark"] .tint-amber, html[data-theme="dark"] .tint-green,
html[data-theme="dark"] .tint-teal, html[data-theme="dark"] .tint-orange, html[data-theme="dark"] .tint-sky, html[data-theme="dark"] .tint-gray { --pt: var(--card); --pl: var(--line); --pc: var(--ink); }
.admin-main :is(.tone-blue, .tone-violet, .tone-amber, .tone-green, .tone-teal, .tone-orange, .tone-sky, .tone-gray) { --tc: #2c2e33; --tb: #f4f3ef; }
html[data-theme="dark"] .admin-main :is(.tone-blue, .tone-violet, .tone-amber, .tone-green, .tone-teal, .tone-orange, .tone-sky, .tone-gray) { --tc: #d6d4cd; --tb: #22242a; }
.admin-main .panel:is(.tone-blue, .tone-violet, .tone-amber, .tone-green, .tone-teal, .tone-orange, .tone-sky, .tone-gray) { border-top: 1px solid var(--line); background: var(--card); }
.admin-main .panel-title .step-ico, .admin-main .panel-title .stat-ico { background: var(--tb); color: var(--muted); }
.admin-main .stage, .admin-main .order-row { border-left: 1px solid var(--line); }
.admin-main .stage:hover { border-color: var(--muted); }
.admin-main .stat-ico { background: var(--tb, #f4f3ef); color: var(--muted); }

/* Métricas: a faixa de destaque segue o tom escuro do menu (antes era azul vivo) e os cartões seguem o mesmo cartão do Painel. */
.vhero { background: linear-gradient(135deg, #17181b 0%, #2a2d33 100%); box-shadow: 0 14px 30px -18px rgba(17, 18, 20, .6); }
.vkpi { border-top: 1px solid var(--line); border-radius: 16px; box-shadow: none; }
a.vkpi.is-link:hover { border-color: var(--muted); border-top-color: var(--muted); box-shadow: 0 8px 20px -14px rgba(17, 18, 20, .35); }
.admin-main .stat, .admin-main .mtile { border-radius: 16px; box-shadow: none; }
.admin-main .panel { box-shadow: none; }
.admin-main .panel, .admin-main .stat, .admin-main .mtile, .admin-main .vkpi { border-color: var(--line); }

/* ===== v128: Painel premium — saudação, gráfico de tendência, tipografia e profundidade ===== */
.greet { margin: .2rem 0 1.5rem; max-width: 46rem; }
.greet-date { margin: 0 0 .35rem; font-size: .86rem; font-weight: 500; color: var(--muted); }
.greet-date::first-letter { text-transform: uppercase; }
.greet-h { margin: 0; font-size: clamp(1.75rem, 5vw, 2.45rem); font-weight: 750; letter-spacing: -.028em; line-height: 1.1; }
.greet-s { margin: .55rem 0 0; font-size: 1.02rem; line-height: 1.5; color: var(--muted); }
.kpi-l { text-transform: none; letter-spacing: 0; font-size: .86rem; font-weight: 600; }
.kpi-v { font-weight: 750; letter-spacing: -.03em; font-feature-settings: "tnum" 1, "lnum" 1; }
.kpi-s { font-size: .8rem; }
.kpi-x { gap: 1rem; min-height: 54px; }
.kpi-x .trend { flex: 1 1 auto; width: 100%; height: 54px; min-width: 0; color: var(--muted); overflow: visible; }
.kpi-x .delta { align-self: flex-start; }
.kpi, .needbox, .dash .pipe { box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 1px 2px rgba(17, 18, 20, .04), 0 10px 24px -18px rgba(17, 18, 20, .22); }
.kpi:hover, .kpi:focus-visible { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 14px 28px -16px rgba(17, 18, 20, .32); }
.kpi { transition: border-color .15s ease, box-shadow .2s ease, transform .2s ease; }
.kpi:first-child { background: linear-gradient(180deg, var(--card) 55%, rgba(47, 109, 246, .05)); }
:root[data-theme="dark"] .kpi, :root[data-theme="dark"] .needbox, :root[data-theme="dark"] .dash .pipe { box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 12px 26px -18px rgba(0, 0, 0, .7); }
:root[data-theme="dark"] .kpi:first-child { background: linear-gradient(180deg, var(--card) 55%, rgba(47, 109, 246, .12)); }
@media (prefers-reduced-motion: reduce) { .kpi, .kpi:hover { transition: none; transform: none; } }
@media (max-width: 480px) { .kpi-x .trend { height: 44px; } }
.kpi-x { flex-direction: column; align-items: stretch; gap: .5rem; min-height: 0; margin: .15rem 0 .1rem; }
.kpi-x .trend { flex: none; height: 56px; }
.kpi-x .delta { align-self: flex-start; }
.needbox .dash-group-title, .dash .dash-group-title { text-transform: none; letter-spacing: -.01em; font-size: 1.05rem; font-weight: 700; color: var(--ink); }

/* ===== v128b: cada número do Painel com a sua arte ===== */
.kpi-x { justify-content: flex-end; min-height: 60px; }
.ratio { display: flex; flex-direction: column; gap: .45rem; }
.ratio-bar { display: block; position: relative; height: 10px; border-radius: 10px; background: rgba(17, 18, 20, .08); overflow: hidden; }
.ratio-f { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 10px; background: linear-gradient(90deg, #5b8cff, #2f6df6); }
.ratio-c { font-size: .78rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.bins { display: flex; flex-direction: column; gap: .35rem; }
.bins-b { display: flex; align-items: flex-end; gap: 6px; height: 40px; }
.bin { flex: 1 1 0; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #5b8cff, #2f6df6); min-height: 3px; }
.bin.is-old { background: linear-gradient(180deg, #f2b13c, #d98e0b); }
.bin.is-zero { background: rgba(17, 18, 20, .1); }
.bins-l { display: flex; gap: 6px; font-size: .68rem; color: var(--muted); }
.bins-l > span { flex: 1 1 0; text-align: center; white-space: nowrap; }
.bins-l b { color: var(--ink); font-weight: 700; }
:root[data-theme="dark"] .ratio-bar, html[data-theme="dark"] .ratio-bar { background: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .bin.is-zero { background: rgba(255, 255, 255, .1); }
.kpi:not(:first-child) { background: linear-gradient(180deg, var(--card) 60%, rgba(47, 109, 246, .035)); }
@media (max-width: 480px) { .bins-l { font-size: .62rem; } }
.bins-l > span { display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.bins-l b { font-size: .8rem; }
.ratio-c { font-size: .76rem; }

/* ===== v129: acabamento dos cartões de números ===== */
.kpiband { gap: .85rem; align-items: stretch; }
.kpi, .kpi:not(:first-child), .kpi:first-child { background: var(--card); }
.kpi { gap: .1rem; padding: 1.15rem 1.25rem 1.1rem; border-radius: 18px; }
.kpi-top { display: flex; align-items: center; flex-wrap: wrap; gap: .3rem .6rem; margin-top: .15rem; }
.kpi-v { font-size: 2rem; }
.kpi-c { font-size: .5em; font-weight: 600; letter-spacing: 0; margin-left: .06em; color: var(--muted); }
.kpi-s { margin-top: .1rem; }
.kpi-x { margin-top: auto; padding-top: .9rem; min-height: 0; }
.kpi-x .trend { height: 58px; }
.kpi .delta { align-self: center; }
.ratio-cs { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.ratio-c { font-size: .74rem; font-weight: 600; color: var(--muted); }
.ratio-cs .ratio-c:first-child { color: var(--ink); }
.ratio { width: 100%; }
.ratio-cs { flex-wrap: nowrap; }
.ratio-c { white-space: nowrap; }
@media (max-width: 480px) { .ratio-c { font-size: .68rem; } }
@media (max-width: 979px) {
  .kpiband .kpi:nth-child(3) { order: 5; grid-column: 1 / -1; }
  .kpiband .kpi:nth-child(4) { order: 4; }
}
@media (max-width: 480px) {
  .kpi-v { font-size: 1.55rem; }
  .kpi { padding: 1rem 1rem .95rem; }
  .ratio-cs { flex-wrap: wrap; gap: .1rem .5rem; }
}

/* ===== v131: Painel como central de comando (Full HD), vidro, esteira viva ===== */
.greet-wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.live { display: inline-flex; align-items: center; gap: .5rem; flex: none; margin-top: .3rem; padding: .35rem .8rem .35rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 650; color: var(--muted); background: rgba(255, 255, 255, .6); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.live i { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #9aa0a6; }
.live.is-on { color: #1c7a4b; }
.live.is-on i { background: #22a565; }
.live.is-on i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #22a565; opacity: 0; animation: livering 2.2s ease-out infinite; }
.live.is-off { color: #b0364a; } .live.is-off i { background: #d0485f; }
.live small { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.live small:empty { display: none; }
@keyframes livering { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

.cc { display: flex; flex-direction: column; gap: 1rem; }
.cc-side { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.cc-main { min-width: 0; }
.feed { padding: 1rem 1.1rem 1.05rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px rgba(17, 18, 20, .04), 0 10px 24px -18px rgba(17, 18, 20, .22); }
.feed .needbox-head { margin-bottom: .55rem; }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; }
.feed-i a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; padding: .5rem .3rem; border-radius: 12px; color: inherit; text-decoration: none; transition: background .15s ease; }
.feed-i a:hover { background: rgba(17, 18, 20, .045); }
.feed-i + .feed-i { border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.feed-ico { display: inline-flex; align-items: center; justify-content: center; width: 1.9rem; height: 1.9rem; border-radius: 10px; color: var(--fc, #2f6df6); background: color-mix(in srgb, var(--fc, #2f6df6) 13%, transparent); }
.feed-blue { --fc: #2f6df6; } .feed-green { --fc: #1c9a5e; } .feed-amber { --fc: #c98300; } .feed-red { --fc: #cf3a4d; }
.feed-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.feed-t strong { font-size: .88rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-t span { font-size: .75rem; color: var(--muted); }
.feed-i time { font-size: .74rem; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.feed-i.is-new { animation: feedin .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes feedin { 0% { opacity: 0; transform: translateY(-8px); background: color-mix(in srgb, var(--fc) 22%, transparent); } 40% { opacity: 1; transform: none; } 100% { background: transparent; } }
@media (max-width: 1279px) { .feed-i:nth-child(n+6) { display: none; } }

.kpiband .kpi.kpi-hero { background: linear-gradient(135deg, rgba(47, 109, 246, .13), rgba(255, 255, 255, .7) 62%); border-color: color-mix(in srgb, #2f6df6 22%, var(--line)); }
html[data-theme="dark"] .kpiband .kpi.kpi-hero { background: linear-gradient(135deg, rgba(47, 109, 246, .22), rgba(30, 32, 40, .6) 62%); }

/* esteira viva */
.step { --sc: #3f7cf6; }
.step[data-step="novos"] { --sc: #3b82f6; } .step[data-step="analise"] { --sc: #3a90e8; } .step[data-step="orcamento"] { --sc: #2aa1d6; }
.step[data-step="aprovados"] { --sc: #1bb0b8; } .step[data-step="prototipo"] { --sc: #17b394; } .step[data-step="producao"] { --sc: #1fae6e; }
.step[data-step="enviados"] { --sc: #35a84f; } .step[data-step="entregues"] { --sc: #4aa83a; }
.dash .step { box-shadow: inset 0 3px 0 var(--sc); }
.dash .step .step-ico { color: var(--sc); background: color-mix(in srgb, var(--sc) 14%, transparent); }
.dash .step.is-zero { box-shadow: none; }
.dash .step.is-zero .step-ico { color: var(--muted); background: transparent; }
.dash .step.is-on { background: color-mix(in srgb, var(--sc) 90%, #0c1b33); border-color: var(--sc); box-shadow: 0 12px 24px -12px var(--sc); }
.dash .step.is-on::after { background: color-mix(in srgb, var(--sc) 90%, #0c1b33); }
.dash .step.is-on .step-ico { color: #fff; background: rgba(255, 255, 255, .22); }
html[data-theme="dark"] .dash .step.is-on { background: color-mix(in srgb, var(--sc) 55%, #0c1b33); --on: #fff; border-color: var(--sc); }
html[data-theme="dark"] .dash .step.is-on::after { background: color-mix(in srgb, var(--sc) 55%, #0c1b33); }
.pipe-steps { position: relative; }
.pipe-steps::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; background: radial-gradient(circle, var(--sc, #3f7cf6) 0 1.6px, transparent 2.4px) 0 50% / 14px 6px repeat-x; opacity: .42; animation: march 1.4s linear infinite; pointer-events: none; }
@keyframes march { to { background-position-x: 14px; } }
.dash .step { position: relative; z-index: 1; }
.step.is-aging:not(.is-on) { border-color: #e0a526; animation: agepulse 2.6s ease-in-out infinite; }
.step.is-aging .step-ico::after { content: ""; position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: #e0a526; box-shadow: 0 0 0 2px var(--card); }
.step.is-aging { --agedot: 1; }
@keyframes agepulse { 0%, 100% { box-shadow: inset 0 3px 0 var(--sc), 0 0 0 0 rgba(224, 165, 38, 0); } 50% { box-shadow: inset 0 3px 0 var(--sc), 0 0 0 6px rgba(224, 165, 38, .2); } }
.step.flash { animation: stepflash 1.3s ease-out; }
@keyframes stepflash { 0% { box-shadow: inset 0 3px 0 var(--sc), 0 0 0 0 color-mix(in srgb, var(--sc) 55%, transparent); } 100% { box-shadow: inset 0 3px 0 var(--sc), 0 0 0 14px transparent; } }
.step-n { font-variant-numeric: tabular-nums; }

/* tela larga (Full HD) */
@media (min-width: 1280px) {
  .is-wide .admin-bar-inner, .is-wide .admin-main { max-width: 1720px; }
  .is-wide .admin-main { padding: 1.1rem 2rem 2.5rem; }
  .is-wide .greet { margin: 0 0 1rem; }
  .is-wide .greet-h { font-size: 2.1rem; }
  .is-wide .greet-s { margin-top: .3rem; font-size: .98rem; }
  .is-wide .sitrep { margin-bottom: .9rem; }
  .is-wide .kpiband { grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
  .is-wide .kpi { padding: .95rem 1.15rem .9rem; }
  .is-wide .kpi-v { font-size: 1.75rem; }
  .is-wide .kpi-x { padding-top: .6rem; }
  .is-wide .kpi-x .trend { height: 46px; }
  .is-wide .bins-b { height: 30px; }
  .cc { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 1rem 1.1rem; align-items: start; }
  .cc-main { grid-column: 1; grid-row: 1; }
  .cc-side { grid-column: 2; grid-row: 1; }
  .cc-side .needlist { grid-template-columns: 1fr; gap: .4rem; }
  .cc-side .needrow { padding: .55rem .7rem; }
  .feed-i:nth-child(n+9) { display: none; }
  .dash .pipe { flex-direction: row; gap: 1.2rem; padding: 1rem 1.1rem .7rem; }
  .dash .pipe-lane { flex: 1 1 0; min-width: 0; }
  .dash .pipe-lane:first-child { flex-grow: 1; }
  .dash .pipe-steps { gap: .4rem; }
  .dash .step { min-width: 0; padding: .55rem .6rem; }
  .dash .step-l { white-space: normal; line-height: 1.2; }
}

/* vidro e aurora (só no Painel) */
.is-wide::before { content: ""; position: fixed; inset: -15%; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 38% at 14% 12%, rgba(47, 109, 246, .17), transparent 70%), radial-gradient(34% 34% at 88% 18%, rgba(20, 184, 166, .13), transparent 70%), radial-gradient(40% 40% at 70% 92%, rgba(245, 158, 11, .10), transparent 70%);
  animation: aurora 38s ease-in-out infinite alternate; }
@keyframes aurora { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(3%, 2%, 0) scale(1.08); } }
html[data-theme="dark"] .is-wide::before { background: radial-gradient(38% 38% at 14% 12%, rgba(47, 109, 246, .26), transparent 70%), radial-gradient(34% 34% at 88% 18%, rgba(20, 184, 166, .18), transparent 70%), radial-gradient(40% 40% at 70% 92%, rgba(245, 158, 11, .12), transparent 70%); }
@supports (backdrop-filter: blur(2px)) {
  .is-wide .kpi, .is-wide .needbox, .is-wide .feed, .is-wide .dash .pipe { background-color: rgba(255, 255, 255, .62); backdrop-filter: blur(16px) saturate(1.35); -webkit-backdrop-filter: blur(16px) saturate(1.35); border-color: rgba(255, 255, 255, .75); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 12px 30px -20px rgba(17, 18, 20, .3); }
  .is-wide .kpiband .kpi.kpi-hero { background: linear-gradient(135deg, rgba(47, 109, 246, .16), rgba(255, 255, 255, .6) 64%); }
  html[data-theme="dark"] .is-wide .kpi, html[data-theme="dark"] .is-wide .needbox, html[data-theme="dark"] .is-wide .feed, html[data-theme="dark"] .is-wide .dash .pipe { background-color: rgba(28, 30, 37, .55); border-color: rgba(255, 255, 255, .09); box-shadow: 0 12px 30px -20px rgba(0, 0, 0, .8); }
  .is-wide .dash .pipe { border: 1px solid rgba(255, 255, 255, .75); border-radius: 18px; margin-bottom: 1rem; }
  html[data-theme="dark"] .is-wide .dash .pipe { border-color: rgba(255, 255, 255, .09); }
}
.is-wide .needrow:not(.is-urgent) { background: rgba(255, 255, 255, .55); }
html[data-theme="dark"] .is-wide .needrow:not(.is-urgent) { background: rgba(255, 255, 255, .05); }
@media (prefers-reduced-motion: reduce) {
  .is-wide::before, .pipe-steps::before, .live i::after, .step.is-aging, .step.flash, .feed-i.is-new { animation: none !important; }
}
.feed .dash-group-title { text-transform: none; letter-spacing: -.01em; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.dash .step, .dash .step.is-zero { background-color: rgba(255, 255, 255, .94); }
.dash .step.is-zero { border-style: dashed; }
html[data-theme="dark"] .dash .step, html[data-theme="dark"] .dash .step.is-zero { background-color: rgba(34, 36, 44, .96); }
html[data-theme="dark"] .dash .step.is-on { background-color: color-mix(in srgb, var(--sc) 55%, #0c1b33); }
.dash .step.is-on { background-color: color-mix(in srgb, var(--sc) 90%, #0c1b33); }
.cc-side .needbox { margin-bottom: 0; }
@media (min-width: 1280px) { .is-wide .greet { max-width: 64rem; } }
@media (min-width: 1280px) {
  .cc-side .needbox-head { flex-wrap: nowrap; align-items: baseline; justify-content: space-between; gap: .6rem; }
  .cc-side .needbox-all { white-space: nowrap; font-size: .82rem; }
  .cc-side .needrow-t > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .cc-side .needrow-t { min-width: 0; }
  .cc-side .needrow { padding: .45rem .65rem; }
  .cc-side .needbox { padding-bottom: .8rem; }
  .cc-side .needbox-ok { display: none; }
}
@media (min-width: 1280px) and (max-width: 1499px) {
  .dash .pipe { flex-direction: column; gap: .6rem; }
  .cc { grid-template-columns: minmax(0, 1fr) 360px; }
  .cc-side .needbox-head { flex-wrap: wrap; }
}
@media (max-width: 979px) {
  .kpiband .kpi.kpi-hero { grid-column: 1 / -1; }
  .kpiband .kpi:nth-child(3) { order: 5; grid-column: 1 / -1; }
  .kpiband .kpi:nth-child(4) { order: 4; }
}
@media (max-width: 480px) {
  .kpi-hero .kpi-v { font-size: 2rem; }
  .greet-wrap { flex-direction: column-reverse; gap: .4rem; }
  .live { align-self: flex-start; margin-top: 0; }
}

/* ===== v132: colunas equilibradas, 14 dias, movimento e interação ===== */
.cc-main { display: flex; flex-direction: column; gap: 1rem; }
.days { display: flex; flex-direction: column; flex: 1 1 auto; padding: 1rem 1.1rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px rgba(17, 18, 20, .04), 0 10px 24px -18px rgba(17, 18, 20, .22); }
.days .needbox-head { align-items: baseline; flex-wrap: wrap; gap: .2rem 1rem; margin-bottom: .7rem; }
.days .dash-group-title { text-transform: none; letter-spacing: -.01em; font-size: 1.05rem; font-weight: 700; color: var(--ink); }
.days-sum { margin: 0; font-size: .85rem; color: var(--muted); }
.days-sum strong { color: var(--ink); }
.days-plot { list-style: none; margin: 0; padding: 0; flex: 1 1 auto; min-height: 190px; display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 6px; }
.dcol { position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem; outline: none; cursor: default; }
.dcol-area { flex: 1 1 auto; width: 100%; display: flex; align-items: flex-end; border-radius: 10px; background: rgba(17, 18, 20, .045); overflow: hidden; }
.dcol-bar { display: block; width: 100%; min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #6f9cff, #2f6df6); transform-origin: bottom; animation: dgrow .85s cubic-bezier(.2, .8, .2, 1) both; transition: filter .2s ease, opacity .2s ease; }
.dcol.is-zero .dcol-bar { background: rgba(17, 18, 20, .12); }
.dcol.is-today .dcol-bar { background: linear-gradient(180deg, #4fd1a5, #14a37f); }
.dcol-x { font-size: .72rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.dcol.is-today .dcol-x { color: #14a37f; font-weight: 800; }
.dcol-n { min-width: 1.6rem; text-align: center; font-size: .7rem; color: var(--muted); border-radius: 999px; padding: 0 .35rem; line-height: 1.5; }
.dcol-n.has { background: rgba(47, 109, 246, .12); color: #2a5fd6; font-weight: 700; }
.days-plot:hover .dcol:not(:hover) .dcol-bar { opacity: .5; }
.dcol:hover .dcol-bar, .dcol:focus-visible .dcol-bar { filter: brightness(1.08) saturate(1.2); }
.dcol:focus-visible .dcol-area { box-shadow: 0 0 0 2px #2f6df6; }
.dcol-tip { position: absolute; z-index: 6; bottom: calc(100% - 1.1rem); left: 50%; transform: translate(-50%, 4px); display: flex; flex-direction: column; gap: .1rem; padding: .45rem .65rem; border-radius: 10px; background: #17181b; color: #fff; font-size: .78rem; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s ease, transform .15s ease; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55); }
.dcol-tip strong { font-size: .72rem; color: rgba(255, 255, 255, .65); font-weight: 600; text-transform: capitalize; }
.dcol:hover .dcol-tip, .dcol:focus-visible .dcol-tip { opacity: 1; transform: translate(-50%, 0); }
.dcol:nth-child(-n+2) .dcol-tip { left: 0; transform: translate(0, 4px); } .dcol:nth-child(-n+2):hover .dcol-tip, .dcol:nth-child(-n+2):focus-visible .dcol-tip { transform: none; }
.dcol:nth-last-child(-n+2) .dcol-tip { left: auto; right: 0; transform: translate(0, 4px); } .dcol:nth-last-child(-n+2):hover .dcol-tip, .dcol:nth-last-child(-n+2):focus-visible .dcol-tip { transform: none; }
.days-key { margin: .7rem 0 0; font-size: .75rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.days-k1 { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(180deg, #6f9cff, #2f6df6); }
.days-k2 { font-style: normal; font-weight: 700; font-size: .7rem; padding: 0 .35rem; border-radius: 999px; background: rgba(47, 109, 246, .12); color: #2a5fd6; }
@keyframes dgrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.dcol:nth-child(1) .dcol-bar { animation-delay: 40ms; } .dcol:nth-child(2) .dcol-bar { animation-delay: 80ms; } .dcol:nth-child(3) .dcol-bar { animation-delay: 120ms; } .dcol:nth-child(4) .dcol-bar { animation-delay: 160ms; } .dcol:nth-child(5) .dcol-bar { animation-delay: 200ms; } .dcol:nth-child(6) .dcol-bar { animation-delay: 240ms; } .dcol:nth-child(7) .dcol-bar { animation-delay: 280ms; } .dcol:nth-child(8) .dcol-bar { animation-delay: 320ms; } .dcol:nth-child(9) .dcol-bar { animation-delay: 360ms; } .dcol:nth-child(10) .dcol-bar { animation-delay: 400ms; } .dcol:nth-child(11) .dcol-bar { animation-delay: 440ms; } .dcol:nth-child(12) .dcol-bar { animation-delay: 480ms; } .dcol:nth-child(13) .dcol-bar { animation-delay: 520ms; } .dcol:nth-child(14) .dcol-bar { animation-delay: 560ms; } 
html[data-theme="dark"] .dcol-area { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .dcol-tip { background: #ecebe7; color: #17181b; } html[data-theme="dark"] .dcol-tip strong { color: rgba(23, 24, 27, .6); }
html[data-theme="dark"] .dcol-n.has, html[data-theme="dark"] .days-k2 { color: #9dbbff; background: rgba(47, 109, 246, .24); }
@supports (backdrop-filter: blur(2px)) {
  .is-wide .days { background-color: rgba(255, 255, 255, .62); backdrop-filter: blur(16px) saturate(1.35); -webkit-backdrop-filter: blur(16px) saturate(1.35); border-color: rgba(255, 255, 255, .75); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 12px 30px -20px rgba(17, 18, 20, .3); }
  html[data-theme="dark"] .is-wide .days { background-color: rgba(28, 30, 37, .55); border-color: rgba(255, 255, 255, .09); }
}

/* colunas com a mesma altura: o que sobra vai para o último cartão de cada lado */
@media (min-width: 1280px) {
  .cc { align-items: stretch; }
  .cc-side .feed { flex: 1 1 auto; }
  .feed-i:nth-child(n+9) { display: list-item; }
  .feed-i:nth-child(n+10) { display: none; }
}

/* brilho que acompanha o mouse */
.kpi, .needbox, .feed, .days, .dash .pipe { position: relative; }
.kpi::before, .needbox::before, .feed::before, .days::before, .dash .pipe::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0), rgba(47, 109, 246, .13), transparent 65%); }
.kpi:hover::before, .needbox:hover::before, .feed:hover::before, .days:hover::before, .dash .pipe:hover::before { opacity: 1; }

/* entradas e movimento */
.live { position: relative; overflow: hidden; }
.live.is-tick::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: #22a565; transform-origin: left; animation: livebar 30s linear forwards; }
@keyframes livebar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.trend-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s .25s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ratio-f { transform-origin: left; animation: gx 1s .2s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes gx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bin { transform-origin: bottom; animation: dgrow .8s cubic-bezier(.2, .8, .2, 1) both; }
.bins-b .bin:nth-child(2) { animation-delay: .08s; } .bins-b .bin:nth-child(3) { animation-delay: .16s; } .bins-b .bin:nth-child(4) { animation-delay: .24s; }
.feed-i { animation: feedrise .5s cubic-bezier(.2, .8, .2, 1) both; }
.feed-i:nth-child(2) { animation-delay: .05s; } .feed-i:nth-child(3) { animation-delay: .1s; } .feed-i:nth-child(4) { animation-delay: .15s; } .feed-i:nth-child(n+5) { animation-delay: .2s; }
@keyframes feedrise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.needrow { animation: feedrise .5s cubic-bezier(.2, .8, .2, 1) both; }
.needlist li:nth-child(2) .needrow { animation-delay: .06s; } .needlist li:nth-child(3) .needrow { animation-delay: .12s; } .needlist li:nth-child(n+4) .needrow { animation-delay: .18s; }
.dash .step { transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease; }
.dash .step:hover:not(:disabled):not(.is-on) { transform: translateY(-3px); }
.kpi { transition: transform .2s ease, box-shadow .2s ease, border-color .15s ease; }
.kpi:hover { transform: translateY(-2px); }
.needrow { transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease; }
.needrow:hover { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .dcol-bar, .trend-line, .ratio-f, .bin, .feed-i, .needrow, .live.is-tick::after { animation: none !important; }
  .trend-line { stroke-dashoffset: 0; }
  .kpi:hover, .needrow:hover, .dash .step:hover { transform: none !important; }
}
.cc-main .closed-strip { margin-bottom: 0; }
@media (max-width: 700px) { .days-plot { min-height: 150px; gap: 3px; } .dcol-n { min-width: 0; padding: 0 .2rem; font-size: .62rem; } .dcol-x { font-size: .64rem; } }

/* ===== v133: etapas com o mesmo tamanho ===== */
.dash .step { flex: 0 0 8.6rem; min-width: 0; min-height: 5.4rem; align-content: space-between; box-sizing: border-box; }
.dash .step-l { min-height: 2.4em; display: flex; align-items: flex-end; line-height: 1.2; white-space: normal; }
@media (min-width: 1280px) {
  .dash .pipe-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; overflow: visible; align-items: stretch; }
  .dash .step { flex: none; width: auto; min-width: 0; }
}

/* ===== v135: ocultar valores em dinheiro (olhinho) ===== */
.greet-tools { display: flex; align-items: center; gap: .55rem; flex: none; margin-top: .3rem; }
.greet-tools .live { margin-top: 0; }
.eye { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .6); color: var(--muted); cursor: pointer; backdrop-filter: blur(10px); transition: color .15s ease, border-color .15s ease, transform .15s ease, background .15s ease; }
.eye:hover { color: var(--ink); border-color: var(--muted); transform: translateY(-1px); }
.eye:focus-visible { outline: 2px solid #2f6df6; outline-offset: 2px; }
.eye .eye-off { display: none; }
.hide-money .eye { color: #2a5fd6; border-color: #2f6df6; background: rgba(47, 109, 246, .1); }
.hide-money .eye .eye-on { display: none; }
.hide-money .eye .eye-off { display: inline-flex; }
html[data-theme="dark"] .eye { background: rgba(255, 255, 255, .06); }
@media (max-width: 480px) { .greet-tools { margin-top: 0; } }

/* v135b: valores ocultos viram pontinhos (em vez de borrão); o espaço do número real é mantido, sem o layout pular */
.hide-money .m, .hide-money .kpi-v { position: relative; color: transparent !important; user-select: none; -webkit-user-select: none; }
.hide-money .m *, .hide-money .kpi-v *, .hide-money .ratio-cs.m .ratio-c { color: transparent !important; }
.hide-money .m::after, .hide-money .kpi-v::after { position: absolute; left: 0; top: 0; color: var(--mask, var(--muted)); font-weight: 700; letter-spacing: .14em; white-space: nowrap; pointer-events: none; }
.hide-money .kpi-v::after { content: "R$ ••••••"; color: var(--ink); letter-spacing: .1em; opacity: .85; animation: dotsin .35s ease both; }
.hide-money .m::after { content: "••••••"; animation: dotsin .35s ease both; }
.hide-money .ratio-cs.m { position: relative; }
.hide-money .ratio-cs.m .ratio-c { position: relative; }
.hide-money .ratio-cs.m .ratio-c::after { content: "••••"; position: absolute; left: 0; top: 0; color: var(--muted); letter-spacing: .14em; }
.dcol-tip { --mask: #fff; }
html[data-theme="dark"] .dcol-tip { --mask: #17181b; }
@keyframes dotsin { from { opacity: 0; transform: scale(.9); } to { opacity: .85; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hide-money .m::after, .hide-money .kpi-v::after { animation: none; } }
.hide-money .ratio-cs.m::after { content: none; display: none; }
.hide-money .kpi-v::after { content: "R$ ••••••"; font-weight: 600; letter-spacing: .06em; opacity: .55; color: var(--ink); }
.hide-money .m::after { font-weight: 600; letter-spacing: .1em; }
@keyframes dotsin { from { opacity: 0; transform: scale(.92); } to { opacity: .55; transform: none; } }
.hide-money .m::after { opacity: .75; }

/* v137: "A receber" em três situações */
.stack { display: flex; flex-direction: column; gap: .45rem; width: 100%; }
.stack-bar { display: flex; height: 10px; border-radius: 10px; overflow: hidden; background: rgba(17, 18, 20, .08); gap: 2px; }
.stack-s { display: block; height: 100%; transform-origin: left; animation: gx 1s .2s cubic-bezier(.2, .8, .2, 1) both; }
.seg-a { background: linear-gradient(90deg, #5b8cff, #2f6df6); }
.seg-b { background: linear-gradient(90deg, #35cdb5, #14a89a); }
.seg-c { background: linear-gradient(90deg, #a98bf5, #7c5ce0); }
.stack-l { display: flex; flex-wrap: wrap; gap: .1rem .8rem; font-size: .72rem; color: var(--muted); }
.stack-i { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.stack-i b { color: var(--ink); font-weight: 700; }
.stack-k { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }
.late-note { color: #b97e00; font-weight: 700; }
html[data-theme="dark"] .stack-bar { background: rgba(255, 255, 255, .1); }

/* ---------- v138: menu do painel no celular (barra compacta + gaveta) ---------- */
.admin-drawer { display: contents; }
.admin-burger, .admin-here { display: none; }
@media (max-width: 1199px) {
    .admin-bar { position: sticky; top: 0; z-index: 50; }
    .admin-bar-inner { flex-wrap: nowrap; gap: .75rem; padding: .5rem 1rem; }
    .admin-brand { margin-right: 0; }
    .admin-brand img { height: 34px; }
    .admin-here { display: block; flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 1rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .admin-burger { display: inline-flex; position: relative; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
    .admin-burger:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
    .admin-burger .burger-close { display: none; }
    .is-open .admin-burger .burger-open { display: none; }
    .is-open .admin-burger .burger-close { display: inline-flex; }
    .admin-burger .nav-badge { position: absolute; top: -6px; right: -6px; }
    .is-open .admin-burger .nav-badge { display: none; }
    .admin-drawer { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: .75rem; padding: .75rem 1rem 1rem; background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 18px 32px rgba(0, 0, 0, .35); max-height: calc(100vh - 60px); max-height: calc(100dvh - 60px); overflow-y: auto; }
    .is-open .admin-drawer { display: flex; }
    .admin-nav { order: 0; flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
    .admin-nav a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 48px; padding: .6rem .9rem; border-radius: 12px; background: rgba(255, 255, 255, .07); font-size: 1rem; }
    .admin-nav a.is-active { background: #fff; }
    .admin-menus { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; margin-left: 0; }
    .menu > summary { display: flex; justify-content: space-between; min-height: 48px; padding: .6rem .9rem; border-radius: 12px; background: rgba(255, 255, 255, .07); font-size: 1rem; }
    .menu > summary span { margin-right: auto; }
    .menu > summary .ico:first-child { order: 0; }
    .menu-user-name { display: inline; max-width: none; }
    .menu-panel { position: static; margin-top: .4rem; box-shadow: none; }
    .menu-panel a, .menu-item { min-height: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
    @media (max-width: 1199px) { .is-open .admin-drawer { animation: drawer-in .16s ease-out; } }
}
@keyframes drawer-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

html[data-theme="dark"] .admin-drawer { background: #0c0d0f; }
@media (min-width: 1200px) {
    .admin-bar-inner { gap: .5rem .75rem; }
    .admin-bar-inner { flex-wrap: nowrap; }
    .admin-nav { flex-wrap: nowrap; gap: .1rem; flex: 1 1 0; min-width: 0; }
    .admin-nav a { padding: .45rem .62rem; white-space: nowrap; }
    .admin-menus { flex: none; }
    .menu > summary { padding: .45rem .65rem; }
}
@media (min-width: 1200px) {
    .menu-user-name { display: none; }
}
@media (min-width: 1400px) {
    .is-wide .menu-user-name { display: inline; }
}

/* ---------- v139: comparar etiqueta (Melhor Envio × SuperFrete) ---------- */
.label-opts { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: .5rem; }
.label-opts legend { padding: 0 0 .35rem; font-weight: 600; }
.field .label-opt, .label-opt { display: grid; font-weight: 400; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: .75rem; row-gap: .1rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card, #fff); cursor: pointer; transition: border-color .15s, background-color .15s; }
.label-opt:hover { border-color: var(--muted); }
.label-opt input { grid-column: 1; grid-row: 1 / span 2; width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--ink); }
.label-opt:has(input:checked) { border-color: var(--ink); background: var(--info-bg); }
.label-opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.label-opt .lo-main { grid-column: 2; grid-row: 1; min-width: 0; display: block; }
.label-opt .lo-meta { grid-column: 2; grid-row: 2; display: block; }
.label-opt .lo-side { grid-column: 3; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.label-opt .lo-price { font-weight: 700; font-size: 1.05rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.label-opt .lo-tag { font-size: .72rem; font-weight: 700; padding: .05rem .5rem; border-radius: 999px; background: #1f8a4c; color: #fff; white-space: nowrap; }
html[data-theme="dark"] .label-opt { background: var(--card); }
html[data-theme="dark"] .label-opt .lo-tag { background: #2fae68; color: #0c0d0f; }

.label-opt .lo-days { font-weight: 700; }
.label-opt .lo-ok { color: #1f7a45; font-weight: 600; }
.label-opt .lo-flag { color: #a4351f; font-weight: 700; }
.label-opt.is-late { border-color: #e2b0a4; }
.label-opt.is-late:has(input:checked) { border-color: #a4351f; }
html[data-theme="dark"] .label-opt .lo-ok { color: #5fd391; }
html[data-theme="dark"] .label-opt .lo-flag { color: #ff9a85; }
html[data-theme="dark"] .label-opt.is-late { border-color: #6b3a31; }
html[data-theme="dark"] .label-opt.is-late:has(input:checked) { border-color: #ff9a85; }

/* Loja (backoffice, fase 1): classes novas, sem tocar nas existentes */
.pkg-row-store, .pkg-row-variant, .pkg-row-stock { grid-template-columns: 1fr 1fr; }
.pkg-row-store .input:first-child, .pkg-row-variant .input:first-child, .pkg-row-stock .input:first-child { grid-column: 1 / -1; }
.pkg-row-stock .input:nth-child(2) { grid-column: 1 / -1; }
@media (min-width: 900px) {
    .pkg-row-store { grid-template-columns: 2fr repeat(5, 1fr) auto auto; }
    .pkg-row-store .input:first-child { grid-column: auto; }
    .pkg-row-variant { grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto auto; }
    .pkg-row-variant .input:first-child { grid-column: auto; }
    .pkg-row-stock { grid-template-columns: 1fr 3fr auto; }
    .pkg-row-stock .input:first-child, .pkg-row-stock .input:nth-child(2) { grid-column: auto; }
}
.store-media { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 1rem 0; }
.store-media-item { margin: 0; display: grid; gap: .4rem; align-content: start; }
.store-media-item img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); display: block; }
.store-media-item figcaption { display: grid; gap: .3rem; justify-items: start; }

/* ---- Loja: cadastro em etapas (v148) ---- */
.sx-lead { margin: 0 0 1rem; color: var(--muted); max-width: 60ch; }
.sx-kinds { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.sx-kind { display: grid; gap: .5rem; align-content: start; padding: 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.sx-kind:hover, .sx-kind:focus-visible { border-color: var(--ink); }
.sx-kind-art { width: 100%; max-width: 220px; height: auto; }
.sx-art-a { stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sx-art-b { fill: var(--ink); }
.sx-art-c { fill: var(--muted); }
.sx-kind-title { font-size: 1.15rem; font-weight: 650; }
.sx-kind-sub { color: var(--muted); }
.sx-kind-list { margin: .25rem 0 .5rem; padding-left: 1.1rem; font-size: .92rem; display: grid; gap: .2rem; }
.sx-kind .btn { justify-self: start; }
.sx-new { max-width: 640px; }

.sx-bar { display: grid; gap: .75rem; margin-bottom: 1rem; }
.sx-tabs { display: flex; gap: .25rem; overflow-x: auto; padding-bottom: 2px; }
.sx-tab { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: .9rem; white-space: nowrap; }
.sx-tab[aria-current="page"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.sx-bar .pkg-actions { flex-wrap: wrap; margin: 0; gap: .5rem; align-items: center; }
@media (min-width: 700px) { .sx-bar:has(.pkg-actions > :only-child) { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
@media (min-width: 1500px) { .sx-bar { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } .sx-bar .pkg-actions { justify-content: flex-end; } }
.sx-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.sx-pcard { display: grid; grid-template-columns: 96px 1fr; gap: .9rem; padding: .8rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.sx-pcard:hover, .sx-pcard:focus-visible { border-color: var(--ink); }
.sx-pcard-img { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: var(--radius-sm); background: var(--paper); overflow: hidden; }
.sx-pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-pcard-body { display: grid; gap: .25rem; align-content: start; min-width: 0; }
.sx-pcard-top { display: flex; gap: .5rem; align-items: center; justify-content: space-between; }
.sx-pcard-name { font-size: 1.02rem; overflow-wrap: anywhere; }
.sx-pcard-price { font-size: .95rem; }
.sx-empty { display: grid; justify-items: start; gap: .4rem; }
.sx-noimg { width: 64px; height: auto; }
.sx-noimg-a { stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sx-noimg-b { fill: var(--muted); }

.sx-meter { display: grid; gap: .4rem; margin-bottom: .9rem; }
.sx-meter-top { display: flex; flex-wrap: wrap; gap: .25rem .9rem; align-items: baseline; }
.sx-meter-bar { width: 100%; height: 6px; display: block; }
.sx-meter-track { fill: var(--line); }
.sx-meter-fill { fill: var(--ok); }
.sx-steps { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: 4px; margin-bottom: 1rem; }
.sx-step { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; white-space: nowrap; font-size: .92rem; }
.sx-step-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); font-size: .78rem; }
.sx-step.is-done .sx-step-n { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.sx-step[aria-current="step"] { background: var(--ink); color: var(--card); border-color: var(--ink); }
.sx-step[aria-current="step"] .sx-step-n { background: var(--card); color: var(--ink); border-color: var(--card); }

.sx-layout { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.sx-main { display: grid; gap: 1rem; min-width: 0; }
.sx-save { margin-top: 1rem; }
.sx-adv { margin: .5rem 0; }
.sx-adv > summary { cursor: pointer; color: var(--muted); font-size: .92rem; padding: .25rem 0; }
.sx-link { background: none; border: 0; padding: 0; color: var(--focus); font: inherit; font-size: .85rem; cursor: pointer; text-decoration: underline; }
.sx-link-danger { color: var(--fail); }
.sx-none { color: var(--muted); font-size: .92rem; }
.sx-pick { margin: .75rem 0 0; }

.sx-vars { display: grid; gap: .9rem; margin: 1rem 0; grid-template-columns: minmax(0, 1fr); }
.sx-var { display: grid; align-content: start; align-items: start; gap: .7rem; padding: .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.sx-var.is-off { opacity: .7; }
.sx-var-h { display: flex; gap: .7rem; align-items: center; }
.sx-var-t { display: grid; flex: 1; min-width: 0; }
.sx-swatch { flex: none; display: block; }
.sx-swatch-ring { stroke: var(--line); stroke-width: 1.5; }
.sx-up { display: grid; align-content: start; gap: .5rem; grid-template-columns: 1fr; }
.sx-vf { display: grid; gap: .6rem; grid-template-columns: 1fr; margin-top: .5rem; }
.sx-vf .field label { display: grid; gap: .25rem; font-size: .88rem; }
.sx-hex { display: flex; gap: .4rem; align-items: center; }
.sx-hex .input { flex: 1; min-width: 0; }
.sx-picker { width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); cursor: pointer; flex: none; }
.sx-phs { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin: .5rem 0; }
.sx-ph { margin: 0; display: grid; gap: .35rem; align-content: start; }
.sx-ph-img img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; }
.sx-ph figcaption { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.sx-ph-act { display: flex; gap: .6rem; width: 100%; }
.sx-addph { margin-top: 1rem; }

.sx-check { list-style: none; margin: .5rem 0 1rem; padding: 0; display: grid; gap: .4rem; }
.sx-check li { display: grid; grid-template-columns: 26px 1fr auto; gap: .6rem; align-items: center; padding: .5rem .7rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); }
.sx-check-i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: .8rem; font-weight: 700; }
.sx-check .is-ok .sx-check-i { background: var(--ok-bg); color: var(--ok); }
.sx-check .is-miss .sx-check-i { background: var(--warn-bg); color: var(--warn); }

.sx-pv { display: grid; gap: .5rem; }
.sx-pv-tag { margin: 0; font-size: .85rem; color: var(--muted); font-weight: 600; }
.sx-pv-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; box-shadow: var(--shadow); }
.sx-pv-img { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; align-content: center; gap: .3rem; background: var(--paper); }
.sx-pv-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sx-pv-noimg { font-size: .85rem; color: var(--muted); }
.sx-pv-body { display: grid; gap: .35rem; padding: 1rem; }
.sx-pv-name { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.sx-pv-sum, .sx-pv-line, .sx-pv-fr { margin: 0; font-size: .88rem; color: var(--muted); }
.sx-pv-price { margin: .25rem 0 0; font-size: 1.5rem; font-weight: 700; }
.sx-pv-in { font-size: .85rem; font-weight: 400; color: var(--muted); }
.sx-pv-empty { font-size: 1rem; font-weight: 500; color: var(--muted); }
.sx-pv-pix { margin: 0; font-size: .95rem; }
.sx-pv-off { color: var(--ok); }
.sx-pv-opt { display: grid; gap: .4rem; margin-top: .4rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.sx-pv-lab { margin: 0; font-size: .85rem; font-weight: 600; }
.sx-pv-sw { list-style: none; margin: 0; padding: 0; display: flex; gap: .45rem; flex-wrap: wrap; }
.sx-pv-stock { margin: .3rem 0 0; font-size: .9rem; }
.sx-pv [hidden] { display: none; }

@media (min-width: 700px) {
    .sx-kinds { grid-template-columns: 1fr 1fr; }
    .sx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sx-tabs { flex-wrap: wrap; overflow-x: visible; gap: .4rem; }
    .sx-vars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sx-vf { grid-template-columns: 1fr 1fr; }
    .sx-vf .check-inline, .sx-vf .pkg-actions { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
    .sx-layout { grid-template-columns: minmax(0, 1fr) 340px; }
    .sx-layout { align-items: stretch; }
    .sx-main { display: flex; flex-direction: column; }
    .sx-main > :last-child { flex: 1 1 auto; }
    .sx-pv { position: sticky; top: 1rem; }
    .sx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.sx-main .hint + form, .sx-main .hint + .sx-vars { margin-top: .9rem; }

/* Cartões de combinação alinhados linha a linha (título, foto, envio e edição na mesma altura) */
.sx-var-h { min-height: 4.4rem; }
.sx-phs-var { grid-template-columns: repeat(auto-fill, minmax(120px, 140px)); align-content: start; }
.sx-ph-empty .sx-ph-img { display: grid; place-items: center; aspect-ratio: 1 / 1; border: 1px dashed var(--line); border-radius: var(--radius-sm); background: var(--card); }
.sx-ph-empty { justify-items: center; text-align: center; }
@supports (grid-template-rows: subgrid) {
    .sx-vars { row-gap: .9rem; }
    .sx-var { grid-row: span 4; grid-template-rows: subgrid; row-gap: .7rem; }
    .sx-var-h { min-height: 0; }
}
.sx-link { white-space: nowrap; }
.sx-ph-act { flex-wrap: wrap; gap: .2rem .8rem; }
.sx-ph-empty { justify-items: stretch; }

/* Loja · vídeos do produto */
.sx-vids { list-style: none; margin: .5rem 0 1rem; padding: 0; display: grid; gap: .5rem; }
.sx-vids li { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; padding: .65rem .85rem; border: 1px solid var(--line, #ddd); border-radius: 10px; }
.sx-vid-t { display: grid; flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.sx-vids form { margin: 0; }

/* v173 · pedidos da loja na fila de prazo de envio */
.tag-loja { display: inline-block; padding: .05rem .45rem; margin-right: .2rem; border-radius: 999px; background: var(--accent-soft, #efe9dc); color: var(--accent-ink, #5b4a1f); font-size: .72rem; font-weight: 600; letter-spacing: .01em; vertical-align: .05em; }

/* v174 · pedido da loja no painel: faixa de números, andamento, peças a produzir, ficha */
.kpiband-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 980px) { .kpiband-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpiband-4 .kpi-v { font-size: 1.55rem; }
.kpi-sla.sla-late, .kpi-sla.sla-urgent { border-color: var(--fail); background: var(--fail-bg); }
.kpi-sla.sla-late .kpi-v, .kpi-sla.sla-urgent .kpi-v { color: var(--fail); }
.kpi-sla.sla-warn { border-color: #efd9a6; background: var(--warn-bg); }
.kpi-sla.sla-ok .kpi-v { color: var(--ok); }

.fz-steps { list-style: none; margin: .4rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: fz; }
.fz-steps li { position: relative; display: flex; flex-direction: column; gap: .15rem; padding-top: 1.55rem; color: var(--muted); }
.fz-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: .5rem; height: 3px; background: var(--line); }
.fz-steps li:first-child::before { border-radius: 3px 0 0 3px; }
.fz-steps li:last-child::before { border-radius: 0 3px 3px 0; }
.fz-steps .fz-dot { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); box-sizing: border-box; }
.fz-steps strong { color: var(--ink); font-weight: 650; }
.fz-steps li:not(.is-done):not(.is-current) strong { color: var(--muted); font-weight: 500; }
.fz-steps li.is-done::before { background: var(--ok); }
.fz-steps li.is-done .fz-dot { background: var(--ok); border-color: var(--ok); }
.fz-steps li.is-current::before { background: linear-gradient(90deg, var(--ok) 0 18%, var(--line) 18%); }
.fz-steps li.is-current .fz-dot { border-color: var(--ok); background: var(--card); box-shadow: 0 0 0 4px var(--ok-bg); }
.fz-steps li.is-done:last-child::before { background: var(--ok); }

.fz-items { list-style: none; margin: .4rem 0 .9rem; padding: 0; }
.fz-items li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: start; padding: .85rem 0; border-top: 1px solid var(--line); }
.fz-items li:first-child { border-top: 0; padding-top: .2rem; }
.fz-qty { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .5rem; border-radius: 12px; background: var(--ink); color: var(--card); font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.fz-spec { margin: .25rem 0 .1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; }
.fz-surname { font-size: 1.35rem; font-weight: 750; letter-spacing: .01em; }
.fz-price { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; }
.fz-price .muted { font-weight: 400; }
.fz-two { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .fz-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .fz-two > .panel { margin-bottom: 1.25rem; } }
.fz-pays { margin: 0; padding-left: 1.1rem; display: grid; gap: .3rem; }
@media (max-width: 560px) { .fz-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .8rem; } .fz-items li { grid-template-columns: auto minmax(0, 1fr); } .fz-price { grid-column: 2; text-align: left; } }

/* Ficha de produção (impressão) */
.page-print { background: #fff; color: #111; }
.sheet { max-width: 780px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; font-size: 1rem; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; border-bottom: 3px solid #111; padding-bottom: .6rem; margin-bottom: 1rem; }
.sheet-head h1 { margin: 0; font-size: 1.6rem; letter-spacing: -.01em; }
.sheet-head p { margin: 0; text-align: right; color: #444; }
.sheet h2 { font-size: .95rem; text-transform: none; margin: 1.4rem 0 .5rem; letter-spacing: .02em; color: #444; }
.sheet-item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid #ccc; break-inside: avoid; }
.sheet-qty { font-size: 2rem; font-weight: 800; min-width: 3.2rem; text-align: center; border: 3px solid #111; border-radius: 12px; padding: .1rem .4rem; align-self: start; }
.sheet-name { font-size: 1.15rem; font-weight: 700; }
.sheet-surname { font-size: 2rem; font-weight: 800; margin: .15rem 0; line-height: 1.15; }
.sheet-meta { color: #333; }
.sheet-addr { font-size: 1.1rem; line-height: 1.5; }
.sheet-check { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; margin-top: .6rem; }
.sheet-check span::before { content: "☐ "; font-size: 1.2em; }
.sheet-actions { max-width: 780px; margin: 0 auto; padding: 1rem 1.25rem 0; display: flex; gap: .6rem; }
@media print { .sheet-actions { display: none; } .sheet { padding: 0; } }

/* v176: tratamento de cancelamento e arrependimento no pedido da loja */
.ord-acts { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.ord-inline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .5rem 0; }
.ord-inline .input { flex: 1 1 16rem; min-width: 12rem; }
.ord-refund { display: grid; gap: .75rem; max-width: 26rem; margin-top: .75rem; }
.ord-refund .check { display: flex; gap: .5rem; align-items: center; }
.ord-acts .ord-inline { flex: 1 1 26rem; margin: 0; flex-wrap: nowrap; }

/* v176: lista de conferência da abertura da loja */
.diag.launch { table-layout: fixed; width: 100%; }
.admin-main table.diag.launch th { width: 34%; text-transform: none; letter-spacing: 0; font-size: .92rem; font-weight: 600; color: var(--ink); }
.diag.launch td:nth-child(2) { width: 96px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* Loja (admin): menu das áreas, igual em todas as telas da loja. Abas com sublinhado = onde estou; pílulas (.sx-tab) = filtros da tela. */
.sn { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.25rem; margin: 0 0 1.25rem; border-bottom: 1px solid var(--line); }
.sn-list { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; overflow-x: auto; overflow-y: hidden; max-width: 100%; scrollbar-width: none; }
.sn-list::-webkit-scrollbar { display: none; }
.sn-a { display: block; padding: .65rem .9rem; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; }
.sn-a:hover { color: var(--ink); }
.sn-a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.sn-state { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem; margin-bottom: .45rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; }
.sn-state:hover { border-color: var(--ink); }
.sn-dot { width: .6rem; height: .6rem; border-radius: 50%; background: #1f9d55; }
.sn-state.is-closed .sn-dot { background: #d9822b; }

/* Clientes da loja (admin): indicadores e cartão por cliente. */
.cx-kpis { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 1.25rem; }
.cx-kpi { display: flex; gap: .75rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; box-shadow: var(--shadow); min-width: 0; }
.cx-kpi-ico { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--tb, #eeeeec); color: var(--tc, #5f6368); }
.cx-kpi-b { display: grid; min-width: 0; line-height: 1.2; }
.cx-kpi-n { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; }
.cx-kpi-l { font-size: .84rem; color: var(--muted); }
.cx-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .6rem; }
.cx-row { display: grid; gap: .8rem 1.25rem; grid-template-columns: auto minmax(0, 1fr); align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.cx-row:hover, .cx-row:focus-visible { border-color: var(--ink); box-shadow: 0 2px 4px rgba(17, 18, 20, .06), 0 10px 24px rgba(17, 18, 20, .08); }
.cx-av { position: relative; display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: #e8effa; color: #2f5fb3; font-weight: 800; letter-spacing: .02em; }
.cx-av.is-on::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: .8rem; height: .8rem; border-radius: 50%; background: #1f9d55; border: 2px solid var(--card); }
.cx-main { display: grid; gap: .1rem; min-width: 0; }
.cx-name { font-weight: 800; font-size: 1.02rem; overflow-wrap: anywhere; }
.cx-sub { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.cx-facts { grid-column: 1 / -1; display: grid; gap: .6rem 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: .75rem; border-top: 1px solid var(--line); }
.cx-f { display: grid; gap: .1rem; min-width: 0; }
.cx-f-l { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cx-f-v { font-weight: 650; }
.cx-f-s { font-size: .84rem; color: var(--muted); }
.cx-f-v.is-none { color: var(--muted); font-weight: 400; }
@media (min-width: 700px) { .cx-kpis { grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr)); } }
.cx-refund { color: #b0364a; font-weight: 600; }
@media (min-width: 1000px) {
    .cx-row { grid-template-columns: auto minmax(14rem, 1.3fr) minmax(0, 2.6fr); }
    .cx-facts { grid-column: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 0; border-top: 0; }
}
.cx-head { display: flex; gap: 1rem; align-items: center; margin: 0 0 1.25rem; }
.cx-head .cx-av { width: 3.4rem; height: 3.4rem; font-size: 1.15rem; flex: none; }
.cx-head h1 { margin: 0; }
.cxc + .cxc { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.cxc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem; margin: 0 0 .75rem; color: var(--muted); font-size: .9rem; }
.cxc-meta > span { display: inline-flex; align-items: center; gap: .35rem; }
.cxc-meta > span:first-child { color: var(--ink); font-weight: 700; }
.cxc-meta svg { flex: none; }
.cxc-cp { color: #b4531a; font-weight: 650; }
html[data-theme="dark"] .cxc-cp { color: #f0a46e; }
.cxc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.cxc-it { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .6rem .9rem .6rem .6rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.cxc-img { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--card); color: var(--muted); }
.cxc-img img { width: 100%; height: 100%; object-fit: cover; }
.cxc-b { display: grid; gap: .2rem; min-width: 0; justify-items: start; }
.cxc-n { font-weight: 750; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.cxc-n:hover, .cxc-n:focus-visible { text-decoration: underline; }
.cxc-s { display: flex; flex-wrap: wrap; gap: .2rem .8rem; color: var(--muted); font-size: .86rem; }
.cxc-opt { display: inline-flex; align-items: center; gap: .35rem; }
.cxc-opt svg { flex: none; }
.cxc-flag { margin-top: .15rem; }
.cxc-p { margin: 0; display: grid; justify-items: end; gap: .1rem; white-space: nowrap; }
.cxc-p strong { font-size: 1.02rem; }
.cxc-p span { color: var(--muted); font-size: .84rem; }
.cxc-tot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: .75rem 0 0; padding: 0 .9rem 0 .6rem; color: var(--muted); font-size: .9rem; }
.cxc-tot strong { color: var(--ink); font-size: 1.1rem; white-space: nowrap; }
@media (max-width: 560px) {
    .cxc-it { grid-template-columns: auto minmax(0, 1fr); }
    .cxc-p { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; align-items: baseline; gap: .5rem; }
    .cxc-img { width: 56px; height: 56px; }
}
@media (min-width: 1100px) { .cxc-list, .cxc-tot { max-width: 56rem; } }

.sx-found { margin: 0 0 .9rem; }

/* ---------- Loja › pedido: tela refeita (v193) ---------- */
.od { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.od-main, .od-side { display: grid; gap: 1.25rem; min-width: 0; align-content: start; }
.od .panel { margin-bottom: 0; }
.od h2 { font-size: 1.12rem; }
@media (min-width: 1080px) {
    .od { grid-template-columns: minmax(0, 1fr) 21rem; }
}
@media (min-width: 1360px) { .od { grid-template-columns: minmax(0, 1fr) 24rem; } }

.od-flow .fz-steps { margin: 1rem 0 1.1rem; }
.od-sla { display: grid; gap: .45rem; padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); margin-bottom: 1rem; }
.od-sla-top { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; }
.od-sla-l { font-size: .82rem; font-weight: 650; color: var(--muted); }
.od-sla-d { white-space: nowrap; font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.od-sla.sla-warn { background: var(--warn-bg); border-color: #efd9a6; }
.od-sla.sla-urgent, .od-sla.sla-late { background: var(--fail-bg); border-color: var(--fail); }
.od-sla.sla-urgent .od-sla-d, .od-sla.sla-late .od-sla-d { color: var(--fail); }
.od-sla.sla-ok { background: var(--ok-bg); border-color: #bfe0cd; }

.od-next { display: grid; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.od-next-main { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.od-next-main form { margin: 0; }
.od-track { display: grid; gap: .45rem; }
.od-track label { font-weight: 650; font-size: .92rem; }
.od-track-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0; }
.od-track-row .input { flex: 1 1 14rem; min-width: 0; max-width: 22rem; }
.od-code { font-family: var(--mono, ui-monospace, monospace); font-weight: 650; padding: .25rem .6rem; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); }
.od-more { font-size: .9rem; }
.od-more summary { cursor: pointer; color: var(--muted); width: max-content; padding: .2rem 0; }
.od-more summary:hover { color: var(--ink); }
.od-more[open] summary { margin-bottom: .5rem; }
.od-done { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.od-back { margin: 0; }
.od-link { border: 0; background: none; padding: 0; color: var(--muted); font: inherit; font-size: .88rem; text-decoration: underline; cursor: pointer; }
.od-link:hover { color: var(--ink); }

.od-chip { display: inline-block; padding: .1rem .6rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--ink); vertical-align: middle; }
.od .fz-items li { grid-template-columns: auto minmax(0, 1fr) auto; }
.od .fz-item-main code { margin-left: .35rem; color: var(--muted); font-size: .8rem; }

.od-total { margin: .1rem 0 1rem; display: grid; gap: .1rem; }
.od-total strong { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.od-sum { margin: 0 0 1.1rem; display: grid; gap: 0; }
.od-sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.od-sum dt { margin: 0; min-width: 0; }
.od-sum dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.od-sum .od-minus { color: var(--ok); }
.od-sum-t { font-size: 1rem !important; }
.od-sum-t dt, .od-sum-t dd { font-weight: 800; }
.od-sub { margin: 0 0 .5rem; font-size: .86rem; font-weight: 700; color: var(--muted); }
.od-pays { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.od-pays li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem; align-items: start; font-size: .9rem; }
.od-pays .badge { margin-top: .1rem; }
.od-pays code { overflow-wrap: anywhere; }
.od-note, .od-terms { margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); }
.od-note + .od-terms { margin-top: .5rem; padding-top: 0; border-top: 0; }

.od-name { margin: 0 0 .5rem; font-size: 1.15rem; font-weight: 800; letter-spacing: .01em; }
.od-contact { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .2rem; font-size: .92rem; overflow-wrap: anywhere; }
.od-addr { font-style: normal; margin: 0 0 1rem; padding: .85rem 1rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); line-height: 1.55; font-size: .92rem; }

/* ---------- Loja › Cupons: cartões e formulário (v194) ---------- */
.cp-head p { margin: .2rem 0 0; max-width: 60ch; }
.cp-grid { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .cp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .cp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cp-card { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .15s; }
.cp-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(17, 18, 20, .06), 0 16px 30px -14px rgba(17, 18, 20, .25); }
.cp-card.is-on { border-color: #bfe0cd; }
.cp-top { min-height: 6.4rem; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .6rem .8rem; padding: 1.15rem 1.25rem 1.1rem; background: linear-gradient(135deg, #f1f8f4, var(--card) 75%); }
.cp-card.is-off .cp-top { background: linear-gradient(135deg, #f4f3f0, var(--card) 75%); }
.cp-off { display: grid; gap: .3rem; min-width: 0; }
.cp-off strong { font-size: 2.3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ok); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cp-card.is-off .cp-off strong { color: var(--muted); }
.cp-off span { font-size: .84rem; line-height: 1.25; color: var(--muted); }
.cp-cut { position: relative; height: 0; border-top: 2px dashed var(--line); margin: 0 1.1rem; }
.cp-cut::before, .cp-cut::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); }
.cp-cut::before { left: -2.1rem; }
.cp-cut::after { right: -2.1rem; }
.cp-body { display: grid; gap: .65rem; align-content: start; padding: 1.1rem 1.25rem 1rem; }
.cp-code { justify-self: start; max-width: 100%; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 1.2rem; font-weight: 800; letter-spacing: .06em; padding: .3rem .75rem; border-radius: 10px; border: 1.5px dashed #b9b6ae; background: var(--paper); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.cp-code:hover, .cp-code:focus-visible { border-color: var(--ink); }
.cp-note { margin: 0; color: var(--muted); font-size: .9rem; }
.cp-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; font-size: .84rem; }
.cp-rules li { padding: .18rem .65rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
p.cp-rules { font-size: .88rem; }
.cp-use { display: grid; gap: .4rem; margin-top: .2rem; }
.cp-use-t { display: flex; justify-content: space-between; gap: .6rem; font-size: .9rem; }
.cp-bar { height: 8px; border-radius: 999px; background: #ebe9e4; overflow: hidden; }
.cp-bar-f { display: block; height: 100%; border-radius: 999px; background: var(--ok); width: 0; }
.cp-card.is-off .cp-bar-f { background: #a9a69e; }
.cp-bar-f.s0 { width: 0; } .cp-bar-f.s5 { width: 5%; } .cp-bar-f.s10 { width: 10%; } .cp-bar-f.s15 { width: 15%; } .cp-bar-f.s20 { width: 20%; } .cp-bar-f.s25 { width: 25%; } .cp-bar-f.s30 { width: 30%; } .cp-bar-f.s35 { width: 35%; } .cp-bar-f.s40 { width: 40%; } .cp-bar-f.s45 { width: 45%; } .cp-bar-f.s50 { width: 50%; } .cp-bar-f.s55 { width: 55%; } .cp-bar-f.s60 { width: 60%; } .cp-bar-f.s65 { width: 65%; } .cp-bar-f.s70 { width: 70%; } .cp-bar-f.s75 { width: 75%; } .cp-bar-f.s80 { width: 80%; } .cp-bar-f.s85 { width: 85%; } .cp-bar-f.s90 { width: 90%; } .cp-bar-f.s95 { width: 95%; } .cp-bar-f.s100 { width: 100%; background: #d99a1a; }
.cp-foot { display: flex; gap: .5rem; padding: .85rem 1.25rem 1.1rem; border-top: 1px solid var(--line); }
.cp-foot form { margin: 0; }

.cp-empty { display: grid; justify-items: center; text-align: center; gap: .4rem; padding: 2rem 1.25rem; }
.cp-empty h2 { margin: 0; }
.cp-empty p { margin: 0; max-width: 40ch; }
.cp-empty-ico { display: grid; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--paper); color: var(--muted); border: 1px dashed #b9b6ae; }

.cp-new { padding: 0; }
.cp-new > summary { display: flex; align-items: center; gap: .9rem; padding: 1rem 1.25rem; cursor: pointer; list-style: none; border-radius: var(--radius); }
.cp-new > summary::-webkit-details-marker { display: none; }
.cp-new > summary:hover { background: var(--paper); }
.cp-new > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.cp-new > summary span:last-child { display: grid; line-height: 1.25; }
.cp-new > summary small { color: var(--muted); font-size: .86rem; }
.cp-new-ico { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; flex: none; border-radius: 12px; background: var(--ink); color: var(--card); font-size: 1.6rem; font-weight: 400; line-height: 1; }
.cp-new[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.cp-new-ico::before { content: "+"; }
.cp-new[open] .cp-new-ico::before { content: "\00d7"; }
.cp-form { display: grid; gap: 1.5rem; padding: 1.25rem; }
.cp-set { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: .8rem; }
.cp-set legend { padding: 0; margin-bottom: .2rem; font-weight: 750; font-size: 1rem; float: left; width: 100%; }
.cp-set legend + * { clear: both; }
.cp-fields { display: grid; gap: 1rem 1.25rem; grid-template-columns: minmax(0, 1fr); }
.cp-fields .field { margin: 0; }
@media (min-width: 720px) { .cp-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cp-fields .cp-wide { grid-column: 1 / -1; } }
@media (min-width: 720px) { .cp-fields .cp-wide .input { max-width: 28rem; } }
.cp-actions { display: flex; }
.cp-actions .btn { min-width: 12rem; }
@media (max-width: 719px) { .cp-actions .btn { width: 100%; } }

/* Cupons (v238): resumo, busca e abas, arquivar/excluir pelo "⋯", páginas e tema escuro. */
.u-nowrap { white-space: nowrap; }
.cp-kpis { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 1.1rem; }
@media (min-width: 900px) { .cp-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cp-kpi { position: relative; display: flex; align-items: center; gap: .75rem; min-width: 0; padding: .9rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.cp-kpi::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--tc); opacity: .7; }
.cp-kpi-ico { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--tb); color: var(--tc); }
.cp-kpi-b { display: grid; min-width: 0; line-height: 1.2; }
.cp-kpi-b strong { font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cp-kpi-b span { font-size: .82rem; color: var(--muted); }
@media (max-width: 479px) { .cp-kpi { padding: .75rem .8rem; gap: .6rem; } .cp-kpi-ico { width: 2.1rem; height: 2.1rem; } .cp-kpi-b strong { font-size: 1.25rem; } }
.k-ok { --tc: #1c7a4b; --tb: #e7f4ed; } .k-blue { --tc: #2f5fb3; --tb: #e8effa; } .k-amber { --tc: #b4531a; --tb: #fdece1; }
.k-violet { --tc: #6b4fb0; --tb: #f0ebfa; } .k-gray { --tc: #6b6964; --tb: #efeee9; }
.cp-k .cx-kpi-ico { background: var(--tb); color: var(--tc); }
.cp-warn { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 1rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font-size: .9rem; }
.cp-new { margin-bottom: 1.1rem; }
.cp-tools { margin-bottom: .9rem; }
.cp-tip { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 1rem; padding: .7rem .9rem; border-radius: 12px; background: var(--card); border: 1px dashed var(--line); font-size: .88rem; color: var(--muted); }
.cp-tip strong { color: var(--ink); }
.cp-tip-ico { flex: none; display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 8px; background: var(--paper); color: var(--ink); }
.cp-meta { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: .1rem 0 0; font-size: .8rem; color: var(--muted); }
.cp-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.cp-meta .ico { flex: none; opacity: .8; }
.cp-never { color: var(--ink-2); font-weight: 600; }
.cp-foot { align-items: center; }
.cp-foot .cp-more { position: relative; top: auto; right: auto; margin-left: auto; }
/* o cartão corta o que passa da borda (recorte do cupom); o menu abre para cima, dentro dele */
.cp-foot .cp-more .av-menu { top: auto; bottom: calc(100% + 6px); width: 15rem; }
.cp-card.is-arch { border-style: dashed; box-shadow: none; }
.cp-card.is-arch .cp-top { background: var(--paper); }
.cp-card.is-arch .cp-off strong, .cp-card.is-arch .cp-code { opacity: .7; }
.cp-pages { justify-content: center; margin: 0 0 1.5rem; }
.cp-dhead { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .8rem 1rem; }
.cp-dhead h1 { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.cp-dact { display: flex; flex-wrap: wrap; gap: .5rem; }
.cp-dact form { margin: 0; }
.cp-dact .btn { display: inline-flex; align-items: center; gap: .35rem; }
.cp-del { color: var(--fail); }
.cp-del:hover { border-color: var(--fail); }
html[data-theme="dark"] .k-ok { --tc: #6fcf9a; --tb: #1a2e24; } html[data-theme="dark"] .k-blue { --tc: #8fb0ee; --tb: #1d2738; }
html[data-theme="dark"] .k-amber { --tc: #f0a06a; --tb: #35241a; } html[data-theme="dark"] .k-violet { --tc: #b9a2f0; --tb: #261f38; }
html[data-theme="dark"] .k-gray { --tc: #a3a8b0; --tb: #2a2c31; }
html[data-theme="dark"] .cp-top { background: linear-gradient(135deg, #1a2e24, var(--card) 75%); }
html[data-theme="dark"] .cp-card.is-off .cp-top { background: linear-gradient(135deg, #24262b, var(--card) 75%); }
html[data-theme="dark"] .cp-card.is-arch .cp-top { background: var(--paper); }
html[data-theme="dark"] .cp-card.is-on { border-color: #2c5a43; }
html[data-theme="dark"] .cp-bar { background: #2a2c31; }
html[data-theme="dark"] .cp-card.is-off .cp-bar-f { background: #5d6067; }
html[data-theme="dark"] .cp-code, html[data-theme="dark"] .cp-empty-ico { border-color: #4a4d54; }

/* v262 · Cupom por coleção ou produtos: escolha do alcance (cartões de rádio) e selo no cartão do cupom. */
.cp-sc { display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .cp-sc { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cp-sc-o { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.cp-sc-o:hover { border-color: #c9c5bc; }
.cp-sc-o input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cp-sc-i { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 11px; background: var(--paper); color: var(--muted); transition: background-color .15s, color .15s; }
.cp-sc-t { display: grid; gap: .1rem; min-width: 0; line-height: 1.25; }
.cp-sc-t small { color: var(--muted); font-size: .84rem; }
.cp-sc-o .kl-check { border-radius: 50%; }
.cp-sc-o:has(input:checked) { border-color: var(--ok); background: var(--ok-bg); box-shadow: 0 0 0 1px var(--ok); }
.cp-sc-o:has(input:checked) .cp-sc-i { background: var(--ok); color: var(--card); }
.cp-sc-o:has(input:checked) .kl-check { background: var(--ok); border-color: var(--ok); color: var(--card); }
.cp-sc-o:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.cp-sc-o.is-off { cursor: not-allowed; opacity: .55; }
.cp-sc-p { display: none; gap: .6rem; padding: 1rem; border: 1px dashed var(--line); border-radius: 14px; background: var(--paper); }
.cp-scope:has(#cp-sc-collection:checked) .cp-sc-col, .cp-scope:has(#cp-sc-products:checked) .cp-sc-prod { display: grid; }
.cp-sc-col .field { max-width: 32rem; }
.cp-pick { margin: 0; }
.cp-pick .kl-piece { background: var(--card); }
.cp-pick .kl-piece:has(input:checked) { border-color: var(--ok); background: var(--ok-bg); box-shadow: 0 0 0 1px var(--ok); }
.cp-pick .kl-piece:has(input:checked) .kl-check { background: var(--ok); border-color: var(--ok); color: var(--card); }
@media (min-width: 1100px) { .cp-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .cp-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cp-reach { display: flex; align-items: flex-start; gap: .45rem; margin: 0; font-size: .86rem; line-height: 1.35; color: var(--muted); }
.cp-reach strong { color: var(--ink); font-weight: 650; }
.cp-reach-i { display: grid; place-items: center; flex: none; width: 1.5rem; height: 1.5rem; border-radius: 8px; background: var(--paper); color: var(--muted); }
.cp-reach.is-collection .cp-reach-i { background: var(--kl-soft); color: var(--kl-acc); }
.cp-reach.is-products .cp-reach-i { background: #eaf1fb; color: #2f5f9e; }
.cp-dreach { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.cp-dreach li { padding: .18rem .65rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .88rem; }
html[data-theme="dark"] .cp-sc-o:hover { border-color: #4a4d54; }
html[data-theme="dark"] .cp-reach.is-products .cp-reach-i { background: #1d2a3b; color: #9cc0ee; }
@media (prefers-reduced-motion: reduce) { .cp-sc-o, .cp-sc-i { transition: none; } }
/* v302 · Tipo do cupom (% · R$ · frete grátis): opções empilhadas; o campo de baixo muda conforme o tipo. */
.cp-kind .cp-code-f { margin: 0; }
.cp-kind .cp-code-f .input { max-width: 28rem; }
.cp-sc.cp-kd { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
.cp-kd .cp-sc-o { padding: .7rem .85rem; }
.cp-kv { margin: 0; }
.cp-kv-val .input { max-width: 12rem; }
.cp-kv-ship { display: none; gap: .9rem; padding: 1rem; border: 1px dashed var(--line); border-radius: 14px; background: var(--paper); }
.cp-kind:has(#cp-kd-freeship:checked) .cp-kv-val { display: none; }
.cp-kind:has(#cp-kd-freeship:checked) .cp-kv-ship { display: grid; }
.cp-kv-ship .input { max-width: 12rem; }
.cp-ship-how { display: flex; gap: .75rem; align-items: flex-start; }
.cp-ship-how strong { display: block; font-weight: 700; font-size: .92rem; }
.cp-ship-how p { margin: .15rem 0 0; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.cp-ship-ico { display: grid; place-items: center; flex: none; width: 2.3rem; height: 2.3rem; border-radius: 11px; background: var(--ok-bg); color: var(--ok); }
.cp-off.is-ship strong { display: inline-flex; align-items: center; gap: .45rem; font-size: 1.7rem; letter-spacing: -.03em; }
.cp-off.is-ship strong .ico { flex: none; }

/* Loja › Pedidos: lista (v195) */
.ol-tools { display: grid; gap: .8rem; margin: 0 0 1.1rem; }
.ol-search { display: flex; align-items: center; gap: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .35rem .4rem .35rem .85rem; box-shadow: var(--shadow); max-width: 44rem; }
.ol-search:focus-within { border-color: var(--ink); outline: 2px solid var(--focus); outline-offset: 1px; }
.ol-search-ico { color: var(--muted); display: grid; }
.ol-input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1rem; color: var(--ink); padding: .45rem 0; outline: none; }
.ol-input::placeholder { color: var(--muted); }
.ol-clear { font-size: .85rem; color: var(--muted); padding: .3rem .5rem; }
.ol-tabs { display: flex; gap: .35rem; overflow-x: auto; padding: 2px 1px 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.ol-tab { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .72rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: .88rem; white-space: nowrap; flex: 0 0 auto; transition: border-color .15s ease; }
.ol-tab:hover { border-color: var(--ink); }
.ol-tab[aria-current="page"] { background: var(--ink); color: var(--card); border-color: var(--ink); font-weight: 600; }
.ol-n { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: var(--fail); color: #fff; font-size: .72rem; line-height: 1; }
.ol-tab[aria-current="page"] .ol-n { background: var(--card); color: var(--ink); }
@media (min-width: 1100px) { .ol-tabs { flex-wrap: wrap; overflow: visible; } }

.ol-head { display: none; }
.ol-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ol-row { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "who who" "code date" "st money"; gap: .45rem .8rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .9rem 2.4rem .9rem 1.1rem; box-shadow: var(--shadow); color: inherit; text-decoration: none; overflow: hidden; transition: transform .15s ease, border-color .15s ease; }
.ol-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--line); }
.ol-row.is-ok::before { background: var(--ok); }
.ol-row.is-warn::before { background: #d6a21c; }
.ol-row.is-fail::before { background: var(--fail); }
.ol-row:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); transform: translateY(-1px); }
.ol-row:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ol-code { grid-area: code; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; font-size: .85rem; color: var(--muted); }
.ol-who { grid-area: who; display: flex; align-items: center; gap: .75rem; min-width: 0; }
.ol-av { flex: 0 0 auto; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); font-weight: 800; font-size: .95rem; }
.ol-who-t { display: grid; min-width: 0; line-height: 1.3; }
.ol-who-t strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-who-t .muted { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-st { grid-area: st; display: flex; flex-wrap: wrap; gap: .3rem; }
.ol-money { grid-area: money; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.ol-date { grid-area: date; justify-self: end; font-size: .82rem; display: flex; gap: .4rem; font-variant-numeric: tabular-nums; }
.ol-go { position: absolute; right: .8rem; top: 50%; margin-top: -8px; transform: rotate(-90deg); color: var(--muted); display: grid; }
.ol-go svg { transition: transform .15s ease; }
.ol-row:hover .ol-go svg { transform: translateY(3px); color: var(--ink); }
@media (min-width: 900px) {
    .ol { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
    .ol-head, .ol-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr) 15rem 7.5rem 6.5rem; grid-template-areas: none; gap: 1rem; align-items: center; }
    .ol-head { padding: .7rem 2.6rem .7rem 1.35rem; background: var(--paper); border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--muted); }
    .ol-head .r { text-align: right; }
    .ol-list { gap: 0; }
    .ol-list li + li .ol-row { border-top: 1px solid var(--line); }
    .ol-row { border: 0; border-radius: 0; box-shadow: none; padding: .85rem 2.6rem .85rem 1.35rem; transform: none !important; }
    .ol-row:hover { background: var(--paper); }
    .ol-code, .ol-who, .ol-st, .ol-money, .ol-date { grid-area: auto; }
    .ol-code { font-size: .9rem; color: var(--ink); }
    .ol-date { display: grid; justify-self: end; text-align: right; gap: 0; }
}
@media (prefers-reduced-motion: reduce) { .ol-row, .ol-go svg, .ol-tab { transition: none !important; transform: none !important; } }

/* Loja › pedido: as duas colunas terminam na mesma linha, sem "dente" no fim (v196) */
@media (min-width: 1000px) {
    .od { align-items: stretch; }
    .od-main, .od-side { display: flex; flex-direction: column; }
    .od-main > :last-child, .od-side > :last-child { flex: 1 1 auto; }
}

.sx-pv-foot { margin: 0; padding: .8rem 1rem; border-top: 1px solid var(--line); background: var(--paper); font-size: .82rem; color: var(--muted); }
.sx-pv-foot a { color: inherit; }
.sx-pv-card > .sx-pv-tag { padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.sx-main > .panel { margin-bottom: 0; }

/* Loja › produto › estoque (v200) */
.st-head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.st-num { display: flex; align-items: baseline; gap: .6rem; }
.st-num strong { font-size: 2.4rem; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.st-num span { color: var(--muted); }
.st-hint { margin: .5rem 0 1rem; }
.st-form { display: grid; gap: .8rem; padding: 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; align-items: end; }
.st-f { display: grid; gap: .3rem; min-width: 0; }
.st-f label { font-size: .85rem; font-weight: 650; }
.st-form .btn { justify-self: stretch; }
@media (min-width: 720px) { .st-form { grid-template-columns: 9rem minmax(0, 1fr) auto; } .st-form .btn { justify-self: auto; } }
.st-sub { margin: 1.4rem 0 .4rem; font-size: 1rem; }
.st-list { list-style: none; margin: 0; padding: 0; }
.st-row { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: .9rem; align-items: center; padding: .75rem .1rem; border-top: 1px solid var(--line); }
.st-row:first-child { border-top: 0; }
.st-delta { display: grid; place-items: center; height: 2rem; border-radius: 999px; font-weight: 800; font-size: .9rem; font-variant-numeric: tabular-nums; }
.st-delta.is-up { background: var(--ok-bg); color: var(--ok); }
.st-delta.is-down { background: var(--fail-bg); color: var(--fail); }
.st-delta.is-flat { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.st-what { display: grid; gap: .1rem; min-width: 0; }
.st-what strong { font-weight: 600; overflow-wrap: anywhere; }
.st-after { display: grid; justify-items: end; line-height: 1.1; }
.st-after small { color: var(--muted); font-size: .72rem; }
.st-after b { font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.st-more { border-top: 1px solid var(--line); }
.st-more > summary { cursor: pointer; padding: .8rem .1rem; font-weight: 650; font-size: .92rem; list-style: none; display: flex; align-items: center; gap: .5rem; }
.st-more > summary::-webkit-details-marker { display: none; }
.st-more > summary::before { content: "+"; display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-weight: 800; }
.st-more[open] > summary::before { content: "−"; }
.st-more > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.st-more[open] > summary { color: var(--muted); }

/* Fila de espera (v203): lista no mesmo padrão dos pedidos */
.wq-n { display: inline-grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .74rem; font-weight: 700; line-height: 1; }
.ol-tab[aria-current="page"] .wq-n { background: var(--card); color: var(--ink); border-color: var(--card); }
.wq-hint { margin: 1rem 0 0; }
.wq-pager { display: flex; align-items: center; justify-content: center; gap: .8rem; flex-wrap: wrap; margin: 1rem 0 0; }
.wq .ol-list { gap: 0; }
.wq-row { position: relative; display: grid; gap: .6rem; padding: .9rem 1rem; border-top: 1px solid var(--line); background: var(--card); }
.wq-row:first-child { border-top: 0; }
.wq-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: #d6a21c; }
.wq-row.is-avisado::before { background: var(--ok); }
.wq-row.is-removido::before { background: var(--line); }
.wq-when { font-size: .88rem; color: var(--muted); display: flex; gap: .4rem; }
.wq-l { color: var(--muted); }
.wq-st { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.wq-act { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.wq-act .inline-form { margin: 0; }
.wq-more { position: relative; margin-left: auto; }
.wq-more > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 1.2rem; line-height: 1; font-weight: 800; }
.wq-more > summary::-webkit-details-marker { display: none; }
.wq-more > summary:hover, .wq-more[open] > summary { border-color: var(--ink); }
.wq-more > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.wq-menu { position: absolute; right: 0; top: calc(100% + .35rem); z-index: 20; min-width: 12.5rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.14); padding: .3rem; display: grid; }
.wq-menu form { margin: 0; }
.wq-menu button { width: 100%; text-align: left; background: none; border: 0; padding: .6rem .75rem; border-radius: 8px; font: inherit; font-size: .92rem; cursor: pointer; color: var(--ink); }
.wq-menu button:hover { background: var(--paper); }
.wq-menu button.is-danger { color: var(--fail); }
.wq-menu button.is-danger:hover { background: var(--fail-bg); }
@media (min-width: 900px) {
    .wq { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
    .wq-head, .wq-row { grid-template-columns: minmax(0, 1fr) 9.5rem 9.5rem auto; gap: 1rem; align-items: center; }
    .wq-head { padding: .7rem 1.35rem .7rem 1.35rem; border-radius: 16px 16px 0 0; }
    .wq-row { padding: .8rem 1.35rem; }
    .wq-row:last-child { border-radius: 0 0 16px 16px; }
    .wq-l { display: none; }
    .wq-act { justify-content: flex-end; flex-wrap: nowrap; }
    .wq-more { margin-left: 0; }
    .wq-row:hover { background: var(--paper); }
}

.wq-row .ol-who, .wq-row .wq-when, .wq-row .wq-st, .wq-row .wq-act { grid-area: auto; }
.wq .ol-who-t strong { white-space: normal; overflow: visible; }
.wq-slot { display: none; }
.wq-st { flex-direction: row; }
@media (max-width: 899px) {
    .wq-row { gap: .7rem; padding: .95rem 1rem .95rem 1.2rem; }
    .wq-meta { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
    .wq-act .btn-primary { flex: 1 1 100%; justify-content: center; text-align: center; padding-block: .65rem; }
    .wq-act .inline-form { flex: 1 1 auto; }
    .wq-act .inline-form .btn { width: 100%; }
    .wq-more { margin-left: 0; }
}
@media (min-width: 900px) {
    .wq-head, .wq-row { grid-template-columns: minmax(0, 1fr) 9.5rem 10.5rem 24.5rem; }
    .wq-act { display: grid; grid-template-columns: 13rem 8.8rem 2.2rem; gap: .5rem; align-items: center; justify-content: end; }
    .wq-act .btn { white-space: nowrap; justify-content: center; }
    .wq-slot { display: block; }
    .wq-st { flex-direction: column; align-items: flex-start; gap: .2rem; }
}
@media (min-width: 900px) { .wq-meta { display: contents; } }
.wq-msg { margin-top: 1.25rem; }
.wq-msg textarea.input { width: 100%; max-width: 46rem; }
@media (max-width: 899px) { .wq-slot { display: block; flex: 1 1 auto; } }
@media (min-width: 900px) {
    .wq-head, .wq-row { grid-template-columns: minmax(0, 1fr) 9.5rem 10.5rem 26rem; }
    .wq-act { grid-template-columns: 13rem 9.8rem 2.2rem; }
}

/* Pedidos (personalizados): busca, filtros e lista (v204) */
.pf { display: grid; gap: .8rem; margin: 0 0 1.1rem; }
.pf-bar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.pf-bar .ol-search { flex: 1 1 22rem; max-width: 44rem; }
.pf-toggle { display: inline-flex; align-items: center; gap: .5rem; padding: .62rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 650; font-size: .92rem; cursor: pointer; box-shadow: var(--shadow); }
.pf-toggle:hover, .pf-toggle[aria-expanded="true"] { border-color: var(--ink); }
.pf-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pf-n { background: var(--ink); color: var(--card); }
.pf-caret { width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
.pf-toggle[aria-expanded="true"] .pf-caret { transform: rotate(-135deg) translateY(-2px); }
.pf-panel { display: grid; gap: 1rem; padding: 1.1rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.pf-panel[hidden] { display: none; }
.pf-grid { display: grid; gap: .9rem 1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-f { display: grid; gap: .3rem; min-width: 0; }
.pf-f label { font-size: .85rem; font-weight: 650; }
.pf-f .input { width: 100%; }
.pf-check { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; cursor: pointer; }
.pf-chips { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.pf-chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .4rem .3rem .75rem; border-radius: 999px; background: var(--ink); color: var(--card); text-decoration: none; font-size: .85rem; }
.pf-chip-k { opacity: .7; }
.pf-x { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: rgba(255,255,255,.18); font-size: .95rem; line-height: 1; }
.pf-chip:hover .pf-x { background: rgba(255,255,255,.34); }
.pf-chip:focus-visible, .pf-clear:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pf-clear { font-size: .85rem; color: var(--muted); padding: .3rem .4rem; }

.po-row { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "who who" "code date" "st st" "money money"; gap: .5rem .8rem; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: .9rem 2.4rem .9rem 1.2rem; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.po-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--tc, var(--line)); border-radius: 16px 0 0 16px; }
.po-row:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); transform: translateY(-1px); }
.po-row:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.po-row .ol-who { grid-area: who; }
.po-row .ol-go { position: absolute; right: .8rem; top: 50%; margin-top: -8px; transform: rotate(-90deg); color: var(--muted); display: grid; }
.po-code { grid-area: code; font-weight: 800; font-size: .85rem; letter-spacing: .02em; color: var(--muted); font-variant-numeric: tabular-nums; }
.po-av { background: var(--tb, var(--paper)); color: var(--tc, var(--ink)); border-color: transparent; font-size: .78rem; letter-spacing: .02em; }
.po-st { grid-area: st; display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; }
.po-money { grid-area: money; display: flex; flex-wrap: wrap; gap: .4rem .6rem; align-items: center; }
.po-money strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.po-date { grid-area: date; justify-self: end; display: flex; gap: .4rem; flex-wrap: wrap; justify-content: flex-end; font-size: .82rem; font-variant-numeric: tabular-nums; }
.po-money:has(> .muted:only-child) { display: none; }
@media (min-width: 1000px) {
    .po { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
    .po-head, .po-row { display: grid; grid-template-columns: 7.2rem minmax(0, 1.15fr) minmax(0, 1.2fr) 9.5rem 8.5rem; grid-template-areas: none; gap: 1rem; align-items: center; }
    .po-head { padding: .7rem 2.6rem .7rem 1.35rem; background: var(--paper); border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--muted); }
    .po-head .r { text-align: right; }
    .po-row { border: 0; border-radius: 0; box-shadow: none; padding: .85rem 2.6rem .85rem 1.35rem; transform: none !important; }
    .po-row::before { border-radius: 0; }
    .po-row:hover { background: var(--paper); }
    .po-code, .po-row .ol-who, .po-st, .po-money, .po-date { grid-area: auto; }
    .po-code { font-size: .9rem; color: var(--ink); }
    .po-money { flex-direction: column; align-items: flex-end; gap: .25rem; }
    .po-money:has(> .muted:only-child) { display: flex; }
    .po-date { flex-direction: column; align-items: flex-end; gap: 0; text-align: right; }
    .po .ol-list li + li .po-row { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { .po-row, .pf-caret { transition: none !important; transform: none; } }
.po .ol-who-t strong, .po .ol-who-t .muted { white-space: normal; overflow: visible; }
@media (min-width: 1000px) { .po-head, .po-row { grid-template-columns: 7.2rem minmax(0, 1.2fr) minmax(0, 1.1fr) 8.5rem 8.5rem; } }
.po-code { white-space: nowrap; }

/* Pendências (v206): agrupadas por tipo, sem etiqueta repetida em cada linha */
.pn-tabs { margin-bottom: .4rem; }
.pn-dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); flex: none; }
.pn-dot.pn-urgent { background: var(--fail); }
.pn-dot.pn-warn { background: #d6a21c; }
.pn-dot.pn-info { background: #2f5fb3; }
.pn-clear { display: flex; align-items: center; gap: .4rem; margin: .2rem 0 1.1rem; font-size: .88rem; color: var(--muted); }
.pn-ok { display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--ok-bg); color: var(--ok); flex: none; }
.pn-empty-ico { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pn-groups { display: grid; gap: 1.1rem; margin-top: .8rem; }
.pn-group { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.pn-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem 1rem; padding: .9rem 1.2rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.pn-head h2 { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 1.02rem; }
.pn-head p { margin: 0; font-size: .85rem; }
.pn-count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .4rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .76rem; font-weight: 700; }
.pn-list { list-style: none; margin: 0; padding: 0; }
.pn-list li + li .pn-row { border-top: 1px solid var(--line); }
.pn-row { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "code when" "who who"; gap: .3rem .8rem; align-items: baseline; padding: .8rem 2.6rem .8rem 1.2rem; color: inherit; text-decoration: none; }
.pn-row:hover { background: var(--paper); }
.pn-row:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.pn-row .ol-go { position: absolute; right: .9rem; top: 50%; margin-top: -8px; transform: rotate(-90deg); color: var(--muted); display: grid; }
.pn-code { grid-area: code; font-weight: 800; font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pn-when { grid-area: when; justify-self: end; white-space: nowrap; }
.pn-who { grid-area: who; display: grid; gap: .1rem; min-width: 0; }
.pn-detail { font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
@media (min-width: 900px) {
    .pn-row { grid-template-columns: 7.2rem minmax(0, 1fr) 6rem; grid-template-areas: "code who when"; align-items: center; gap: 1rem; }
    .pn-when { justify-self: end; }
}

/* Loja › Clientes (v208) */
.cl-sum { margin: -.2rem 0 1rem; color: var(--muted); }
.cl-sum strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.cl-sep { margin: 0 .3rem; }
.cl-row { position: relative; display: grid; gap: .8rem; padding: .95rem 2.4rem .95rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.cl-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--line); border-radius: 16px 0 0 16px; }
.cl-row.is-on::before { background: var(--ok); }
.cl-row:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); transform: translateY(-1px); }
.cl-row:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.cl-row .ol-go { position: absolute; right: .8rem; top: 50%; margin-top: -8px; transform: rotate(-90deg); color: var(--muted); display: grid; }
.cl-row .ol-who-t strong { white-space: normal; overflow: visible; }
.cl-row .ol-who-t .muted { white-space: normal; overflow-wrap: anywhere; }
.cl-f { display: grid; gap: .05rem; min-width: 0; align-content: start; font-size: .92rem; }
.cl-l { font-size: .75rem; color: var(--muted); font-weight: 650; }
.cl-f strong { font-variant-numeric: tabular-nums; }
.cl-row { grid-template-columns: 1fr 1fr; }
.cl-row .ol-who { grid-column: 1 / -1; }
@media (min-width: 1000px) {
    .cl { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
    .cl-head, .cl-row { display: grid; grid-template-columns: minmax(0, 1.5fr) 10.5rem 5.5rem 8.5rem 9.5rem; gap: 1rem; align-items: center; }
    .cl-head { padding: .7rem 2.6rem .7rem 1.35rem; background: var(--paper); border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--muted); }
    .cl-row { border: 0; border-radius: 0; box-shadow: none; padding: .85rem 2.6rem .85rem 1.35rem; transform: none !important; }
    .cl-row::before { border-radius: 0; }
    .cl-row:hover { background: var(--paper); }
    .cl-row .ol-who { grid-column: auto; }
    .cl-l { display: none; }
    .cl .ol-list li + li .cl-row { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { .cl-row { transition: none !important; transform: none !important; } }
.cl-row .ol-who { grid-area: auto; grid-row: 1; grid-column: 1 / -1; }
.cl-f .cx-refund { white-space: nowrap; }
@media (min-width: 1000px) {
    .cl-head, .cl-row { grid-template-columns: minmax(0, 1.4fr) 12rem 5.5rem 8rem 9rem; }
    .cl-row .ol-who { grid-row: auto; grid-column: auto; }
}

/* Estoque › mostrar ao cliente (v209) */
.st-vis { margin: 1rem 0 0; }
.st-switch { display: flex; align-items: flex-start; gap: .9rem; cursor: pointer; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.st-switch:hover { border-color: var(--ink); }
.st-switch input { position: absolute; opacity: 0; pointer-events: none; }
.st-track { position: relative; flex: none; width: 2.6rem; height: 1.5rem; border-radius: 999px; background: #cfccc4; transition: background .15s ease; margin-top: .1rem; }
.st-track::after { content: ""; position: absolute; top: .2rem; left: .2rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s ease; }
.st-switch input:checked + .st-track { background: var(--ok); }
.st-switch input:checked + .st-track::after { transform: translateX(1.1rem); }
.st-switch input:focus-visible + .st-track { outline: 2px solid var(--focus); outline-offset: 2px; }
.st-switch-t { display: grid; gap: .15rem; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .st-track, .st-track::after { transition: none; } }

/* Loja › Produtos: lista em linhas, no mesmo padrão de Pedidos e Clientes (v220) */
.pl-tools { display: grid; gap: .8rem; }
.pl-new { justify-self: start; display: inline-flex; align-items: center; gap: .4rem; }
@media (min-width: 700px) { .pl-tools { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } .pl-new { justify-self: end; } }
.pl-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: .95rem 2.4rem .95rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.pl-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--line); border-radius: 16px 0 0 16px; }
.pl-row.is-ok::before { background: var(--ok); }
.pl-row.is-warn::before { background: #d6a21c; }
.pl-row:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); transform: translateY(-1px); }
.pl-row:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pl-row .ol-go { position: absolute; right: .8rem; top: 50%; margin-top: -8px; transform: rotate(-90deg); color: var(--muted); display: grid; }
.pl-who { grid-column: 1 / -1; display: flex; align-items: center; gap: .85rem; min-width: 0; }
.pl-img { flex: 0 0 auto; display: grid; place-items: center; width: 4rem; height: 4rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; color: var(--muted); }
.pl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pl-t { display: grid; gap: .1rem; min-width: 0; line-height: 1.3; }
.pl-t strong { font-size: 1.02rem; overflow-wrap: anywhere; }
.pl-t .muted { font-size: .85rem; }
.pl-f { display: grid; gap: .05rem; min-width: 0; align-content: start; font-size: .92rem; }
.pl-f strong { font-variant-numeric: tabular-nums; }
.pl-f strong small { font-weight: 500; color: var(--muted); font-size: .8rem; }
.pl-l { font-size: .75rem; color: var(--muted); font-weight: 650; }
.pl-s { display: none; }
.pl-bd { margin-top: .3rem; justify-self: start; }
.pl-warn, .pl-low { color: #9a5b00; font-weight: 700; }
.pl-out { color: var(--fail); }
@media (min-width: 1000px) {
    .pl { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
    .pl-head, .pl-row { display: grid; grid-template-columns: minmax(0, 1.6fr) 11rem 10rem 7.5rem; gap: 1rem; align-items: center; }
    .pl-head { padding: .7rem 2.6rem .7rem 1.35rem; background: var(--paper); border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--muted); }
    .pl-row { border: 0; border-radius: 0; box-shadow: none; padding: .85rem 2.6rem .85rem 1.35rem; transform: none !important; }
    .pl-row::before { border-radius: 0; }
    .pl-row:hover { background: var(--paper); }
    .pl-who { grid-column: auto; }
    .pl-l { display: none; }
    .pl-s { display: grid; justify-items: start; }
    .pl-bd { display: none; }
    .pl .ol-list li + li .pl-row { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { .pl-row { transition: none !important; transform: none !important; } }

/* ---------- Loja › Avaliações (v230) ---------- */
.sr-row { position: relative; display: grid; grid-template-columns: 1fr; gap: .8rem; padding: .95rem 1.2rem .95rem 1.35rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.sr-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--ok); border-radius: 16px 0 0 16px; }
.sr-row.is-low::before { background: #d6a21c; }
.sr-img { width: 2.75rem; height: 2.75rem; border-radius: 10px; object-fit: cover; flex: none; border: 1px solid var(--line); background: var(--paper); }
.sr-row .ol-who { grid-area: auto; }
.sr-row .ol-who-t strong { white-space: normal; overflow: visible; }
.sr-row .ol-who-t .muted { white-space: normal; }
.sr-f { display: grid; gap: .15rem; min-width: 0; align-content: start; font-size: .92rem; }
.sr-stars { color: #c08a2c; font-size: 1.05rem; letter-spacing: .06em; white-space: nowrap; }
.sr-stars.is-low { color: #b0631a; }
.sr-c { overflow-wrap: anywhere; line-height: 1.5; }
.sr-act { gap: .4rem; }
.sr-act form { margin: 0; }
.sr-hide summary { cursor: pointer; color: var(--muted); font-size: .85rem; width: max-content; }
.sr-hide summary:hover { color: var(--ink); }
.sr-form { display: flex; flex-wrap: wrap; gap: .4rem; margin: .4rem 0 .2rem !important; }
.sr-form .input { min-width: 0; flex: 1 1 12rem; padding: .35rem .5rem; font-size: .88rem; }
@media (min-width: 1000px) {
    .sr { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
    .sr-head, .sr-row { display: grid; grid-template-columns: minmax(0, 1.1fr) 8.5rem minmax(0, 1.6fr) 13.5rem; gap: 1.2rem; align-items: start; }
    .sr-head { padding: .7rem 1.35rem; background: var(--paper); border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--muted); }
    .sr-row { border: 0; border-radius: 0; box-shadow: none; padding: 1rem 1.35rem; }
    .sr-row::before { border-radius: 0; }
    .sr-row .cl-l { display: none; }
    .sr .ol-list li + li .sr-row { border-top: 1px solid var(--line); }
}
/* pedido da loja entregue: pedir avaliação */
.od-rv { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.od-rv p { margin: 0; }
.od-rv .btn svg { vertical-align: -3px; }
.od-rv-t { display: flex; gap: .5rem; align-items: flex-start; font-size: .92rem; }
.od-rv-st { color: #c08a2c; display: grid; padding-top: .15rem; }

/* ---------- Métricas (v231): cabeçalho, abas, destaque, indicadores e gráficos ---------- */
.mx { --mx-acc: var(--viz-1); --mx-wash: rgba(42, 120, 214, .1); --mx-soft: #f3f6fb; padding-bottom: 1rem; }
html[data-theme="dark"] .mx { --mx-wash: rgba(57, 135, 229, .16); --mx-soft: #1a2029; }
.mx-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .9rem 1.5rem; margin-bottom: 1.1rem; }
.mx-title h1 { margin: 0 0 .2rem; font-size: clamp(1.6rem, 4vw, 2.1rem); letter-spacing: -.025em; }
.mx-title p { margin: 0; max-width: 62ch; color: var(--muted); font-size: .92rem; }
.mx-tools { display: flex; align-items: center; gap: .5rem; }
.mx-period { display: inline-flex; padding: 3px; gap: 2px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(17, 18, 20, .04); }
.mx-period a { padding: .38rem .75rem; border-radius: 9px; color: var(--muted); font-size: .84rem; font-weight: 650; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mx-period a:hover { color: var(--ink); background: var(--paper); }
.mx-period a.is-on, .mx-period a.is-on:hover { background: var(--ink); color: var(--card); }
.mx-print { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--muted); cursor: pointer; }
.mx-print:hover { color: var(--ink); border-color: var(--ink); }

.mx-tabs { display: flex; gap: .25rem; margin: 0 0 1.25rem; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.mx-tabs::-webkit-scrollbar { display: none; }
.mx-tabs a { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .7rem .9rem .8rem; color: var(--muted); font-weight: 650; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.mx-tabs a::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: transparent; }
.mx-tabs a:hover { color: var(--ink); }
.mx-tabs a.is-on { color: var(--ink); }
.mx-tabs a.is-on::after { background: var(--ink); }
.mx-tabs a.is-on .ico { color: var(--mx-acc); }

.mx-scope { display: flex; gap: .5rem; align-items: flex-start; margin: -.35rem 0 1rem; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.mx-scope > span:first-child { flex: none; padding-top: .15rem; }
.mx-scope strong { color: var(--ink-2); }

/* Destaque */
.mx-hero { display: grid; gap: 1.1rem; margin-bottom: 1rem; padding: 1.35rem 1.35rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.mx-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--mx-acc), #7fb0ee); }
.mx-hero-main { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; min-width: 0; }
.mx-hero-e { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mx-hero-v { font-size: clamp(2.6rem, 10vw, 3.7rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin: .1rem 0 .2rem; }
.mx-hero-s { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.mx-hero-plot { position: relative; min-width: 0; padding: .55rem .55rem .2rem; background: var(--mx-soft); border-radius: 14px; }
.mx-hero-cap { display: block; margin: 0 0 .3rem .15rem; font-size: .74rem; font-weight: 650; color: var(--muted); }
.mx-delta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .2rem .45rem; }
.mx-delta-vs { font-size: .78rem; color: var(--muted); }

/* Indicadores */
.mx-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.mx-kpi { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-width: 0; padding: .95rem 1rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.mx-kpi:hover { border-color: var(--ink); }
.mx-kpi-h { display: flex; align-items: center; gap: .55rem; width: 100%; margin-bottom: .2rem; }
.mx-kpi-i { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--tb); color: var(--tc); }
.mx-kpi-l { flex: 1; min-width: 0; font-size: .82rem; font-weight: 650; color: var(--muted); line-height: 1.25; }
.mx-kpi-go { flex: none; color: var(--muted); transition: transform .15s; }
a.mx-kpi:hover .mx-kpi-go { color: var(--ink); transform: translateX(2px); }
.mx-kpi-v { font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; white-space: nowrap; }
.mx-kpi-s { font-size: .8rem; color: var(--muted); line-height: 1.35; }

/* Projeção */
.mx-fc { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1rem; padding: .95rem 1.1rem; background: var(--mx-soft); border: 1px solid var(--line); border-radius: 16px; }
.mx-fc-i { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--card); color: var(--mx-acc); border: 1px solid var(--line); }
.mx-fc-b { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.mx-fc-e { font-size: .8rem; font-weight: 650; color: var(--muted); }
.mx-fc-b > strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.mx-fc-s { font-size: .85rem; color: var(--ink-2); }
.mx-fc-d summary { cursor: pointer; margin-top: .25rem; font-size: .8rem; font-weight: 600; color: var(--muted); width: max-content; }
.mx-fc-d summary:hover { color: var(--ink); }
.mx-fc-d p { margin: .35rem 0 0; font-size: .8rem; color: var(--muted); line-height: 1.5; max-width: 80ch; }

/* Cartões de gráfico */
.mx-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; grid-auto-flow: row dense; }
.mx-card { display: flex; flex-direction: column; min-width: 0; padding: 1.15rem 1.2rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.mx-card-h { margin-bottom: .9rem; }
.mx-card-h h2 { margin: 0 0 .2rem; font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
.mx-card-h p { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.mx-sub { margin: .9rem 0 .2rem; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.mx-card .mx-sub:first-of-type { margin-top: 0; }
.mx-card .viz-table { margin-top: auto; padding-top: .8rem; }
.mx-card .viz-table summary { display: inline-flex; align-items: center; gap: .35rem; margin-top: .4rem; padding: .25rem .6rem; border-radius: 8px; font-size: .78rem; font-weight: 600; list-style: none; }
.mx-card .viz-table summary::-webkit-details-marker { display: none; }
.mx-card .viz-table summary::before { content: "▸"; font-size: .7rem; transition: transform .15s; }
.mx-card .viz-table[open] summary::before { transform: rotate(90deg); }
.mx-card .viz-table summary:hover { background: var(--paper); color: var(--ink); }
.mx-card .viz-table table { width: 100%; }
.mx .viz-empty { margin: .25rem 0; padding: 1.4rem 1rem; text-align: center; background: var(--paper); border-radius: 12px; }
.mx-good { display: flex; align-items: center; gap: .45rem; margin: 0; padding: .9rem 1rem; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-size: .9rem; font-weight: 600; }
.mx-alert { display: flex; gap: .55rem; align-items: flex-start; margin: 0 0 .9rem; padding: .7rem .85rem; border-radius: 12px; background: var(--warn-bg); color: var(--ink); font-size: .85rem; line-height: 1.45; }
.mx-alert > span:first-child { color: var(--warn); flex: none; padding-top: .1rem; }

/* Barras horizontais e legenda */
.mx .hbars { margin: 0; display: grid; gap: .15rem; }
.mx .hbar { padding: .4rem .45rem; margin: 0 -.45rem; border-radius: 9px; }
.mx .hbar-l { font-size: .88rem; color: var(--ink-2); }
.mx .hbar-t { height: 10px; border-radius: 999px; }
.mx .hbar-f { border-radius: 999px; }
.mx .hbar-f.is-main { box-shadow: 2px 0 0 var(--card); }
.mx .hbar-v { font-size: .85rem; }
.mx-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: -.3rem 0 .6rem; font-size: .78rem; color: var(--muted); }
.mx-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.mx-legend i { display: inline-block; width: 12px; height: 8px; border-radius: 999px; background: var(--viz-1); }
.mx-legend i.is-soft { background: var(--viz-1-soft); }

/* Funil em etapas */
.mx-steps { list-style: none; margin: 0; padding: 0; }
.mx-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .75rem; align-items: baseline; }
.mx-step-l { font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.mx-step-v { display: inline-flex; align-items: baseline; gap: .4rem; font-variant-numeric: tabular-nums; }
.mx-step-v b { font-size: 1.05rem; font-weight: 800; }
.mx-step-v small { font-size: .78rem; color: var(--muted); font-weight: 600; }
.mx-step-t { grid-column: 1 / -1; display: block; height: 12px; background: var(--viz-track); border-radius: 999px; overflow: hidden; }
.mx-step-t i { display: block; height: 100%; border-radius: 999px; }
.mx-step-go { display: flex; align-items: center; gap: .4rem; padding: .3rem 0 .35rem .1rem; font-size: .76rem; color: var(--muted); }
.mx-step-go::before { content: ""; width: 1px; height: 14px; margin: 0 .35rem 0 .3rem; background: var(--viz-axis); }
.mx-step-go.is-flag { color: var(--warn); font-weight: 600; }
.mx-step-go.is-flag::before { background: var(--warn); width: 2px; }
.mx-step-go b { font-weight: 800; }

/* Desfecho e divisões em números */
.mx-out { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); }
.mx-out-h { display: block; margin-bottom: .45rem; font-size: .78rem; font-weight: 700; color: var(--muted); }
.mx-out ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.mx-out li { display: inline-flex; align-items: baseline; gap: .35rem; padding: .28rem .6rem; border-radius: 999px; background: var(--tb); color: var(--ink-2); font-size: .8rem; }
.mx-out li b { color: var(--tc); font-size: .9rem; }
.mx-out-n { display: block; margin-top: .45rem; font-size: .75rem; color: var(--muted); }
.mx-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: .6rem; }
.mx-split > div { display: flex; flex-direction: column; gap: .05rem; padding: .85rem .95rem; border-radius: 12px; background: var(--tb); }
.mx-split strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; color: var(--tc); line-height: 1.1; }
.mx-split span { font-size: .86rem; font-weight: 650; color: var(--ink); }
.mx-split small { font-size: .76rem; color: var(--muted); }

/* Série no tempo (área ou colunas) */
.mx-plot { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .55rem; }
.mx-plot.is-bare { grid-template-columns: minmax(0, 1fr); }
.mx-y { display: flex; flex-direction: column; justify-content: space-between; height: 180px; margin: -.45em 0; text-align: right; font-size: .72rem; line-height: .9; color: var(--viz-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mx-canvas { position: relative; height: 180px; }
.mx-plot.is-bare .mx-canvas { height: 110px; }
.mx-grid-l { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.mx-grid-l i { display: block; height: 1px; background: var(--viz-grid); }
.mx-grid-l i:last-child { background: var(--viz-axis); }
.mx-plot.is-bare .mx-grid-l i { background: transparent; }
.mx-plot.is-bare .mx-grid-l i:last-child { background: var(--viz-axis); }
.mx-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mx-fill { fill: var(--mx-acc); fill-opacity: .1; }
.mx-line { stroke: var(--mx-acc); stroke-width: 2px; stroke-linejoin: round; stroke-linecap: round; }
.mx-cols { position: absolute; inset: 0; display: flex; align-items: stretch; }
.mx-c { position: relative; flex: 1 1 0; min-width: 0; display: flex; align-items: flex-end; justify-content: center; cursor: default; }
.mx-plot.is-bars .mx-cols { padding: 0 2px; gap: 2px; }
.mx-bar { display: block; width: 72%; max-width: 24px; background: var(--mx-acc); border-radius: 4px 4px 0 0; transition: filter .12s; }
.mx-plot.is-dense .mx-bar { width: 100%; border-radius: 2px 2px 0 0; }
.mx-c.is-on .mx-bar { filter: brightness(1.15); }
.mx-plot.is-bars .mx-c.is-on { background: var(--viz-hover); border-radius: 6px 6px 0 0; }
.mx-pt { position: absolute; left: 50%; bottom: 0; width: 0; }
.mx-pt::before { content: ""; position: absolute; top: -5px; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--mx-acc); box-shadow: 0 0 0 2px var(--card); opacity: 0; transition: opacity .1s; }
.mx-plot.is-area .mx-c::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: var(--viz-axis); opacity: 0; }
.mx-plot.is-area .mx-c.is-on::after, .mx-c.is-on .mx-pt::before { opacity: 1; }
.mx-hero-plot .mx-pt::before { box-shadow: 0 0 0 2px var(--mx-soft); }
.mx-x { grid-column: 2; display: flex; margin-top: .45rem; font-size: .72rem; color: var(--viz-muted); }
.mx-plot.is-bars .mx-x { padding: 0 2px; gap: 2px; }
.mx-x span { flex: 1 1 0; min-width: 0; display: flex; justify-content: center; }
.mx-x b { font-weight: 500; white-space: nowrap; }
.mx-x span:first-child { justify-content: flex-start; }
.mx-x span:last-child { justify-content: flex-end; }

.mx-tip { position: absolute; z-index: 60; display: flex; flex-direction: column; gap: .05rem; padding: .45rem .65rem; border-radius: 10px; background: var(--ink); color: var(--card); font-size: .8rem; line-height: 1.3; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); pointer-events: none; white-space: nowrap; }
.mx-tip[hidden] { display: none; }
.mx-tip b { font-size: .74rem; font-weight: 600; opacity: .75; }
.mx-tip span { font-weight: 750; font-variant-numeric: tabular-nums; }

/* Desde o início e rodapé */
.mx-life { margin-top: 1rem; padding: 1.3rem 1.35rem; border-radius: 18px; background: #16181c; color: #f3f2ee; }
.mx-life h2 { margin: 0 0 1rem; font-size: 1rem; font-weight: 700; color: #f3f2ee; }
.mx-life h2 small { margin-left: .35rem; font-size: .8rem; font-weight: 500; color: #a9a7a0; }
.mx-life-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.mx-life-g > div { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.mx-life-g strong { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.mx-life-g span { font-size: .8rem; color: #a9a7a0; }
html[data-theme="dark"] .mx-life { background: #24272d; }
.mx-foot { margin-top: 1.25rem; }
.mx-foot p { margin: 0; font-size: .76rem; color: var(--muted); line-height: 1.5; max-width: 110ch; }

@media (max-width: 599px) {
    .mx-head { align-items: stretch; }
    .mx-tools { width: 100%; }
    .mx-period { flex: 1; justify-content: space-between; }
    .mx-period a { flex: 1; text-align: center; padding: .4rem .3rem; font-size: .8rem; }
    .mx-tabs { margin-left: -1rem; margin-right: -1rem; padding: 0 .5rem; }
    .mx-kpi-v { font-size: 1.45rem; }
    .mx-kpi { padding: .85rem .85rem .9rem; }
    .mx-kpi-h { flex-direction: column; align-items: flex-start; gap: .45rem; }
    .mx-kpi-go { display: none; }
    .mx-y, .mx-canvas { height: 150px; }
}
@media (min-width: 900px) {
    .mx-hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; gap: 1.75rem; padding: 1.6rem 1.6rem 1.35rem 1.75rem; }
    .mx-hero-main { justify-content: center; }
    .mx-hero-plot { display: flex; flex-direction: column; justify-content: flex-end; }
    .mx-plot.is-bare .mx-canvas { height: 130px; }
    .mx-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mx-kpis.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .mx-kpis.is-5 .mx-kpi-v { font-size: 1.5rem; }
    .mx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
    .mx-card.is-wide { grid-column: 1 / -1; }
    .mx-card { padding: 1.3rem 1.4rem 1.1rem; }
    .mx-life-g { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .mx-life { padding: 1.4rem 1.75rem 1.5rem; }
}
@media (min-width: 900px) and (max-width: 1150px) { .mx-kpis.is-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media print {
    .mx-tools, .mx-tabs, .mx-tip, .mx-fc-d, .mx .viz-table { display: none !important; }
    .mx-hero, .mx-kpi, .mx-card, .mx-life, .mx-fc { box-shadow: none; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .mx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mx-card.is-wide { grid-column: 1 / -1; }
}
.mx-stack { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.mx-stack > .mx-card { flex: 1 1 auto; }
@media (min-width: 900px) { .mx-stack { gap: 1.1rem; } }

/* ===== Métricas › Mapa (v232): onde a Dommus chega ===== */
.mp { --mp-0: #ebe9e3; --mp-1: #d5e4f7; --mp-2: #a8c8f0; --mp-3: #6aa2e5; --mp-4: #2c78d6; --mp-5: #194d93;
      --mp-dot: #e2632a; --mp-arc: #e2632a; --mp-edge: #ffffff; --mp-sea: #f3f6fa; --mp-sea-2: #e8eef7; --mp-home: #111214;
      position: relative; margin-bottom: 1rem; padding: 1.25rem 1.25rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
html[data-theme="dark"] .mp { --mp-0: #2b2e34; --mp-1: #1c3253; --mp-2: #214b82; --mp-3: #2c69ba; --mp-4: #4b90e6; --mp-5: #95c2f4;
      --mp-dot: #ff8b4f; --mp-arc: #ff8b4f; --mp-edge: #1c1e22; --mp-sea: #171a1f; --mp-sea-2: #1b2029; --mp-home: #f4f3ef; }
.mp::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--mp-4), var(--mp-dot)); }
.mp-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 1.2rem; margin-bottom: 1rem; }
.mp-title h2 { margin: 0 0 .2rem; font-size: 1.3rem; font-weight: 750; letter-spacing: -.02em; }
.mp-title p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.45; }
.mp-layers { display: inline-flex; padding: 3px; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; }
.mp-layers button { appearance: none; border: 0; background: none; padding: .42rem .95rem; border-radius: 999px; font: inherit; font-size: .84rem; font-weight: 650; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.mp-layers button:hover { color: var(--ink); }
.mp-layers button.is-on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.06); }
html[data-theme="dark"] .mp-layers button.is-on { background: #2a2d33; }
.mp-layers button:focus-visible { outline: 2px solid var(--focus, #2a78d6); outline-offset: 1px; }

.mp-body { display: grid; gap: 1rem; }
.mp-stage { scroll-margin-top: 84px; position: relative; min-width: 0; padding: .6rem .4rem 0; border-radius: 16px; background: radial-gradient(120% 90% at 30% 20%, var(--mp-sea) 0%, var(--mp-sea-2) 100%); }
.mp-svg { display: block; width: 100%; height: auto; max-height: 640px; margin: 0 auto; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.mp-uf { stroke: var(--mp-edge); stroke-width: 1.4px; vector-effect: non-scaling-stroke; stroke-linejoin: round; cursor: pointer; transition: fill .35s ease, opacity .35s ease, filter .15s; outline: none; }
.mp-uf.lv-0, .mp-rk-uf.lv-0, .mp-scale i.lv-0 { fill: var(--mp-0); background: var(--mp-0); }
.mp-uf.lv-1, .mp-rk-uf.lv-1, .mp-scale i.lv-1 { fill: var(--mp-1); background: var(--mp-1); }
.mp-uf.lv-2, .mp-rk-uf.lv-2, .mp-scale i.lv-2 { fill: var(--mp-2); background: var(--mp-2); }
.mp-uf.lv-3, .mp-rk-uf.lv-3, .mp-scale i.lv-3 { fill: var(--mp-3); background: var(--mp-3); }
.mp-uf.lv-4, .mp-rk-uf.lv-4, .mp-scale i.lv-4 { fill: var(--mp-4); background: var(--mp-4); }
.mp-uf.lv-5, .mp-rk-uf.lv-5, .mp-scale i.lv-5 { fill: var(--mp-5); background: var(--mp-5); }
.mp-uf.is-hov, .mp-uf:focus-visible { filter: brightness(.94) saturate(1.15); stroke: var(--ink); stroke-width: 1.6px; }
html[data-theme="dark"] .mp-uf.is-hov, html[data-theme="dark"] .mp-uf:focus-visible { filter: brightness(1.18); }
.mp.is-zoom .mp-uf:not(.is-sel) { opacity: .38; }
.mp.is-zoom .mp-uf.is-sel { stroke: var(--ink); stroke-width: 1.8px; }

.mp-lbl { font-size: calc(17px * var(--mp-k, 1)); font-weight: 700; letter-spacing: .02em; text-anchor: middle; fill: #4a4a46; pointer-events: none; paint-order: stroke; stroke: rgba(255,255,255,.55); stroke-width: 2.5px; transition: opacity .3s; }
.mp-lbl.lv-4, .mp-lbl.lv-5 { fill: #ffffff; stroke: rgba(10,30,60,.25); }
.mp-lbl.is-out { text-anchor: start; fill: var(--muted); stroke: none; }
.mp-lead { stroke: var(--viz-axis); stroke-width: 1px; vector-effect: non-scaling-stroke; }
html[data-theme="dark"] .mp-lbl { fill: #d9d7d0; stroke: rgba(0,0,0,.35); }
html[data-theme="dark"] .mp-lbl.lv-4, html[data-theme="dark"] .mp-lbl.lv-5 { fill: #0e1a2b; stroke: rgba(255,255,255,.2); }
html[data-theme="dark"] .mp-lbl.is-out { fill: var(--muted); stroke: none; }
.mp.is-zoom .mp-lbl, .mp.is-zoom .mp-lead { opacity: 0; }

.mp-arc { fill: none; stroke: var(--mp-arc); stroke-width: 1.3px; vector-effect: non-scaling-stroke; stroke-linecap: round; opacity: .45; pointer-events: none;
          stroke-dasharray: 1; stroke-dashoffset: 1; animation: mp-draw 1.6s cubic-bezier(.3,.7,.2,1) .25s forwards; }
.mp-arc.is-off { display: none; }
.mp.is-zoom .mp-arc { opacity: .18; }
@keyframes mp-draw { to { stroke-dashoffset: 0; } }

.mp-dot { fill: var(--mp-dot); fill-opacity: .88; stroke: var(--mp-edge); stroke-width: 1.5px; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill-opacity .15s; transform-box: fill-box; transform-origin: center; animation: mp-pop .5s cubic-bezier(.3,1.5,.5,1) both; animation-delay: .9s; }
.mp-dot.is-off { display: none; }
.mp-dot.is-dim { fill-opacity: .25; }
.mp-dot.is-hov { fill-opacity: 1; stroke: var(--ink); stroke-width: 2px; }
@keyframes mp-pop { from { transform: scale(0); } to { transform: scale(1); } }
.mp-clbl { font-weight: 650; }
.mp-clbl { font-size: calc(15px * var(--mp-k, 1)); font-weight: 650; fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 3px; stroke-linejoin: round; pointer-events: none; }

.mp-home-d { fill: var(--mp-home); stroke: var(--mp-edge); stroke-width: 2px; vector-effect: non-scaling-stroke; }
.mp-home-p { fill: none; stroke: var(--mp-home); stroke-width: 1.5px; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; animation: mp-pulse 2.4s ease-out infinite; }
.mp-home-t { font-size: calc(15px * var(--mp-k, 1)); font-weight: 750; text-anchor: end; fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-width: 3.5px; stroke-linejoin: round; }
@keyframes mp-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mp-arc { animation: none; stroke-dashoffset: 0; } .mp-dot { animation: none; } .mp-home-p { animation: none; opacity: 0; } }

.mp-back { position: absolute; top: .7rem; left: .7rem; display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-size: .82rem; font-weight: 650; cursor: pointer; box-shadow: var(--shadow); }
.mp-back:hover { border-color: var(--ink); }
.mp-back[hidden] { display: none; }
.mp-empty { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); margin: 0; max-width: 80%; padding: .6rem .95rem; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: .86rem; color: var(--muted); text-align: center; }
.mp-empty[hidden] { display: none; }

.mp-legend { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; padding: .7rem .6rem .8rem; font-size: .76rem; color: var(--muted); }
.mp-scale { display: inline-flex; gap: 2px; }
.mp-scale i { display: block; width: 26px; height: 10px; }
.mp-scale i:first-child { border-radius: 999px 0 0 999px; } .mp-scale i:last-child { border-radius: 0 999px 999px 0; }
.mp-scale-t { display: inline-flex; gap: .45rem; font-variant-numeric: tabular-nums; }
.mp-scale-t span + span::before { content: "→ "; color: var(--viz-axis); }
.mp-key { display: inline-flex; align-items: center; gap: .4rem; }
.mp-key-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mp-dot); box-shadow: 0 0 0 1.5px var(--card); }
.mp-key-home { width: 10px; height: 10px; border-radius: 50%; background: var(--mp-home); box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--mp-home); }

.mp-side { display: flex; flex-direction: column; min-width: 0; padding: .2rem .2rem 0; }
.mp-side-e { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mp-side-v { margin-top: .2rem; font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.mp-side-name { margin-top: .15rem; font-size: 1.65rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.mp-side-s { margin-top: .35rem; font-size: .84rem; color: var(--muted); }
.mp-side-h { margin: 1.1rem 0 .45rem; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mp-side-none, .mp-side-more { margin: .3rem 0 0; font-size: .82rem; color: var(--muted); }
.mp-rank, .mp-clist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mp-rk { display: grid; grid-template-columns: 2.1rem 1fr auto; grid-template-rows: auto 6px; align-items: center; column-gap: .65rem; row-gap: .3rem; width: 100%; padding: .45rem .5rem; border: 0; border-radius: 10px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.mp-rk:hover, .mp-rk:focus-visible { background: var(--viz-hover); outline: none; }
.mp-rk-uf { grid-row: 1 / 3; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 9px; font-size: .74rem; font-weight: 800; letter-spacing: .02em; color: #1d2a3a; }
.mp-rk-uf.lv-4, .mp-rk-uf.lv-5 { color: #fff; }
html[data-theme="dark"] .mp-rk-uf { color: #e8eef7; }
html[data-theme="dark"] .mp-rk-uf.lv-4, html[data-theme="dark"] .mp-rk-uf.lv-5 { color: #0e1a2b; }
.mp-rk-n { font-size: .9rem; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-rk-v, .mp-cl-v { font-size: .9rem; font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; }
.mp-rk-t { grid-column: 2 / 4; }
.mp-rk-t, .mp-share-t { display: block; height: 6px; border-radius: 999px; background: var(--viz-track); overflow: hidden; }
.mp-rk-t i, .mp-share-t i { display: block; height: 100%; border-radius: 999px; background: var(--mp-4); }
.mp-clist li { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 6px; column-gap: .6rem; row-gap: .3rem; padding: .45rem .5rem; border-radius: 10px; }
.mp-clist .mp-rk-t { grid-column: 1 / 3; }
.mp-clist .mp-rk-t i { background: var(--mp-dot); }
.mp-cl-n { min-width: 0; font-size: .9rem; font-weight: 600; }
.mp-cl-n small { display: block; margin-top: .05rem; font-size: .74rem; font-weight: 500; color: var(--muted); }
.mp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: .9rem 0 0; }
.mp-stats div { padding: .6rem .7rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.mp-stats dt { font-size: .72rem; color: var(--muted); font-weight: 600; }
.mp-stats dd { margin: .1rem 0 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.mp-share { display: grid; gap: .35rem; margin: .8rem 0 0; font-size: .82rem; color: var(--muted); }
.mp-side-back { align-self: flex-start; margin-top: 1rem; padding: .4rem .2rem; border: 0; background: none; font: inherit; font-size: .84rem; font-weight: 650; color: var(--viz-1); cursor: pointer; }
.mp-side-back:hover { text-decoration: underline; }

.mp-tip { position: absolute; z-index: 5; min-width: 150px; max-width: 260px; padding: .55rem .75rem; border-radius: 10px; background: #16181c; color: #f3f2ee; box-shadow: 0 8px 24px rgba(0,0,0,.25); pointer-events: none; font-size: .8rem; line-height: 1.35; }
.mp-tip b { display: block; font-size: .86rem; }
.mp-tip span { display: block; font-weight: 650; font-variant-numeric: tabular-nums; }
.mp-tip em { display: block; font-style: normal; color: #b9b7b0; font-size: .74rem; margin-top: .1rem; }
.mp-tip[hidden], .mp-tip em[hidden] { display: none; }
html[data-theme="dark"] .mp-tip { background: #f3f2ee; color: #16181c; } html[data-theme="dark"] .mp-tip em { color: #5f5d57; }

.mp-new { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.mp-new li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .6rem; padding: .5rem .65rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.mp-new-i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(226, 99, 42, .12); color: #c4511c; }
html[data-theme="dark"] .mp-new-i { background: rgba(255, 139, 79, .16); color: #ff9c66; }
.mp-new-n { font-weight: 650; font-size: .9rem; } .mp-new-n small, .mp-ct-n small { color: var(--muted); font-weight: 600; font-size: .74rem; margin-left: .15rem; }
.mp-new-k, .mp-ct-k { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mp-more { margin: .5rem 0 0; font-size: .8rem; color: var(--muted); }
.mp-cities { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.mp-cities li { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 6px; align-items: center; column-gap: .8rem; row-gap: .3rem; }
.mp-ct-n { font-weight: 600; font-size: .9rem; min-width: 0; }
.mp-ct-v { font-weight: 750; font-variant-numeric: tabular-nums; }
.mp-ct-t { grid-column: 1 / 3; display: block; height: 6px; border-radius: 999px; background: var(--viz-track); overflow: hidden; }
.mp-ct-t i { display: block; height: 100%; border-radius: 999px; background: var(--mp-dot, #e2632a); }
.mx .mp-cities .mp-ct-t i { background: #e2632a; }
html[data-theme="dark"] .mx .mp-cities .mp-ct-t i { background: #ff8b4f; }
.mp-note { margin: .8rem 0 0; font-size: .8rem; color: var(--muted); }

@media (min-width: 900px) {
    .mp { padding: 1.4rem 1.5rem 1.2rem; }
    .mp-body { grid-template-columns: minmax(0, 7.2fr) minmax(280px, 3.8fr); gap: 1.4rem; align-items: start; }
    .mp-side { padding-top: .4rem; }
}
@media (max-width: 599px) {
    .mp { margin-left: -.25rem; margin-right: -.25rem; padding: 1rem .8rem .9rem; border-radius: 16px; }
    .mp-layers { width: 100%; } .mp-layers button { flex: 1; padding: .45rem .5rem; }
    .mp-stage { padding: .4rem 0 0; }
    .mp-side-v { font-size: 1.8rem; }
    .mp-lbl { font-size: calc(25px * var(--mp-k, 1)); }
    .mp-home-t { font-size: calc(24px * var(--mp-k, 1)); }
    .mp-clbl { font-size: calc(26px * var(--mp-k, 1)); }
}
@media print { .mp-layers, .mp-back, .mp-tip { display: none !important; } .mp-arc, .mp-dot { animation: none !important; stroke-dashoffset: 0; } }

/* ===== Loja: cabeçalho, resumo e telas (v232) ===== */
.lj-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .4rem 1rem; margin: 0 0 1.25rem; border-bottom: 1px solid var(--line); }
.lj-tabs { display: flex; gap: .15rem; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.lj-tabs::-webkit-scrollbar { display: none; }
.lj-tabs a { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .75rem .85rem .8rem; color: var(--muted); text-decoration: none; font-weight: 650; font-size: .93rem; white-space: nowrap; border-radius: 10px 10px 0 0; transition: color .15s, background .15s; }
.lj-tabs a .ico { opacity: .8; }
.lj-tabs a:hover { color: var(--ink); background: var(--viz-hover); }
.lj-tabs a.is-on { color: var(--ink); }
.lj-tabs a.is-on::after { content: ""; position: absolute; left: .7rem; right: .7rem; bottom: -1px; height: 2.5px; border-radius: 3px 3px 0 0; background: var(--ink); }
.lj-tabs a.is-on .ico { color: var(--viz-1); opacity: 1; }
.lj-badge { display: inline-grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .35rem; border-radius: 999px; background: #d9822b; color: #fff; font-size: .7rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.lj-state { display: flex; align-items: center; gap: .45rem; padding-bottom: .55rem; }
.lj-open, .lj-visit { display: inline-flex; align-items: center; gap: .45rem; padding: .38rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-size: .84rem; font-weight: 650; white-space: nowrap; transition: border-color .15s; }
.lj-open:hover, .lj-visit:hover, .lj-open[aria-current="page"] { border-color: var(--ink); }
.lj-visit { color: var(--muted); } .lj-visit:hover { color: var(--ink); }
.lj-dot { position: relative; width: .55rem; height: .55rem; border-radius: 50%; background: #1f9d55; }
.lj-open.is-open .lj-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1f9d55; animation: lj-ping 2.2s ease-out infinite; }
.lj-open.is-closed .lj-dot { background: #d9822b; }
@keyframes lj-ping { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .lj-open.is-open .lj-dot::after { animation: none; opacity: 0; } }

.lj-pulse { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: 0 0 1.5rem; }
.lj-p { display: flex; align-items: flex-start; gap: .7rem; min-width: 0; padding: .85rem .95rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.lj-p:hover { border-color: var(--tc); transform: translateY(-1px); }
.lj-p-i { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--tb); color: var(--tc); }
.lj-p-b { display: flex; flex-direction: column; min-width: 0; }
.lj-p-l { font-size: .76rem; font-weight: 650; color: var(--muted); }
.lj-p strong { margin-top: .1rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.lj-p strong small { font-size: .8rem; font-weight: 650; color: var(--muted); letter-spacing: 0; }
.lj-p-s { margin-top: .15rem; font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-main .lj-p:is(.tone-blue, .tone-amber, .tone-green, .tone-teal, .tone-orange, .tone-violet, .tone-rose) .lj-p-i { background: var(--tb); }
.admin-main .lj-p.tone-blue { --tc: #2f5fb3; --tb: #e8effa; } .admin-main .lj-p.tone-amber { --tc: #a86a0c; --tb: #fdf1dc; }
.admin-main .lj-p.tone-green { --tc: #1f7a46; --tb: #e3f4ea; } .admin-main .lj-p.tone-teal { --tc: #137a7a; --tb: #e2f4f3; }
.admin-main .lj-p.tone-orange { --tc: #b4531a; --tb: #fdece1; } .admin-main .lj-p.tone-violet { --tc: #6b4bc4; --tb: #efeafb; }
.admin-main .lj-p.tone-rose { --tc: #b0364a; --tb: #fbe9ec; }
html[data-theme="dark"] .admin-main .lj-p.tone-blue { --tc: #8fb0ee; --tb: #1d2738; } html[data-theme="dark"] .admin-main .lj-p.tone-amber { --tc: #f0c069; --tb: #33291a; }
html[data-theme="dark"] .admin-main .lj-p.tone-green { --tc: #72d39b; --tb: #183025; } html[data-theme="dark"] .admin-main .lj-p.tone-teal { --tc: #6fd0cc; --tb: #173030; }
html[data-theme="dark"] .admin-main .lj-p.tone-orange { --tc: #f0a06a; --tb: #35241a; } html[data-theme="dark"] .admin-main .lj-p.tone-violet { --tc: #b9a4f2; --tb: #262038; }
html[data-theme="dark"] .admin-main .lj-p.tone-rose { --tc: #f08fa0; --tb: #36202a; }
@media (min-width: 700px) { .lj-pulse { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lj-pulse { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 599px) {
    .lj-top { margin-left: -1rem; margin-right: -1rem; padding: 0 .5rem; }
    .lj-state { order: -1; width: 100%; padding: .2rem .5rem 0; }
    .lj-tabs a { padding: .7rem .7rem .75rem; }
    .lj-pulse { display: flex; gap: .55rem; margin-left: -1rem; margin-right: -1rem; padding: .1rem 1rem .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .lj-pulse::-webkit-scrollbar { display: none; }
    .lj-p { flex: 0 0 64%; scroll-snap-align: start; }
}
/* Título das telas da loja: mais leve, sem o traço (o cabeçalho de abas já marca a seção). */
.admin-main .lj-top ~ .page-head { margin-bottom: 1.25rem; padding-bottom: 0; }
.admin-main .lj-top ~ .page-head::after { display: none; }
.admin-main .lj-top ~ .page-head h1 { font-size: clamp(1.4rem, 3vw, 1.75rem); }
.admin-main .lj-top ~ .page-head p { color: var(--muted); font-size: .92rem; }
.admin-main .lj-pulse + .page-head h1 { font-size: 1.3rem; }
/* Busca e filtros não passam da largura da tela no celular. */
.ol-tools { min-width: 0; max-width: 100%; }
.ol-tools > * { min-width: 0; max-width: 100%; }
.ol-search input { min-width: 0; flex: 1 1 auto; width: 100%; }

/* Configurações da loja (v232): seções com título ao lado e campos em grade. */
.cf-jump { display: flex; gap: .4rem; margin: 0 0 1.1rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cf-jump::-webkit-scrollbar { display: none; }
.cf-jump a { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.cf-jump a:hover { border-color: var(--ink); }
.cf-jump a .ico { color: var(--muted); }
.cf-pill { padding: .05rem .45rem; border-radius: 999px; background: var(--viz-track); color: var(--muted); font-size: .72rem; font-weight: 700; }
.cf-pill.is-on { background: #e3f4ea; color: #1f7a46; } .cf-pill.is-off { background: #fdf1dc; color: #a86a0c; }
html[data-theme="dark"] .cf-pill.is-on { background: #183025; color: #72d39b; } html[data-theme="dark"] .cf-pill.is-off { background: #33291a; color: #f0c069; }
.cf-form { margin: 0; }
.cf-sec { display: grid; gap: 1rem 2rem; margin-bottom: 1rem; padding: 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); scroll-margin-top: 84px; }
.cf-side { display: flex; gap: .8rem; align-items: flex-start; }
.cf-ico { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--tb); color: var(--tc); }
.admin-main .cf-ico.tone-blue { --tc: #2f5fb3; --tb: #e8effa; } .admin-main .cf-ico.tone-violet { --tc: #6b4bc4; --tb: #efeafb; }
.admin-main .cf-ico.tone-green { --tc: #1f7a46; --tb: #e3f4ea; } .admin-main .cf-ico.tone-amber { --tc: #a86a0c; --tb: #fdf1dc; }
html[data-theme="dark"] .admin-main .cf-ico.tone-blue { --tc: #8fb0ee; --tb: #1d2738; } html[data-theme="dark"] .admin-main .cf-ico.tone-violet { --tc: #b9a4f2; --tb: #262038; }
html[data-theme="dark"] .admin-main .cf-ico.tone-green { --tc: #72d39b; --tb: #183025; } html[data-theme="dark"] .admin-main .cf-ico.tone-amber { --tc: #f0c069; --tb: #33291a; }
.cf-side h2 { margin: .1rem 0 .3rem; font-size: 1.05rem; font-weight: 750; letter-spacing: -.01em; }
.cf-side p { margin: 0; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.cf-side p strong { color: var(--ink); }
.cf-body { display: grid; gap: 1rem; min-width: 0; }
.cf-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .9rem 1rem; }
.cf-grid .field { grid-column: 1 / -1; margin: 0; min-width: 0; }
.cf-body > .field { margin: 0; }
.cf-grid .field label, .cf-body > .field label { font-weight: 650; font-size: .88rem; }
.cf-grid .hint, .cf-body .hint { margin: .3rem 0 0; font-size: .78rem; }
@media (min-width: 640px) { .cf-grid .field.is-half { grid-column: span 3; } .cf-grid .field.is-third { grid-column: span 2; } }
.cf-affix { display: flex; align-items: stretch; }
.cf-affix .input { min-width: 0; flex: 1; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.cf-affix > span { display: inline-grid; place-items: center; padding: 0 .8rem; border: 1px solid var(--line); border-left: 0; border-radius: 0 10px 10px 0; background: var(--paper); color: var(--muted); font-weight: 650; font-size: .85rem; }
.cf-affix.is-pre .input { border-radius: 0 10px 10px 0; }
.cf-affix.is-pre > span { border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; }
.cf-note { display: flex; gap: .55rem; align-items: flex-start; margin: 0; padding: .7rem .85rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: .82rem; color: var(--muted); line-height: 1.45; }
.cf-note .ico { flex: none; margin-top: .1rem; color: var(--viz-1); }
.cf-note strong { color: var(--ink); }
.cf-save { display: flex; justify-content: flex-end; padding-top: .9rem; border-top: 1px solid var(--line); }
.cf-switch { display: flex; align-items: center; gap: .75rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); cursor: pointer; }
.cf-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cf-switch-ui { position: relative; flex: none; width: 40px; height: 24px; border-radius: 999px; background: var(--viz-axis); transition: background .2s; }
.cf-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.cf-switch input:checked + .cf-switch-ui { background: #1f9d55; }
.cf-switch input:checked + .cf-switch-ui::after { transform: translateX(16px); }
.cf-switch input:focus-visible + .cf-switch-ui { outline: 2px solid var(--focus, #2a78d6); outline-offset: 2px; }
.cf-switch strong { display: block; font-size: .92rem; }
.cf-switch small { display: block; font-size: .78rem; color: var(--muted); }
.cf-quote { margin: 0; padding: .75rem .95rem; border-left: 3px solid #1f9d55; border-radius: 0 12px 12px 0; background: var(--paper); font-size: .88rem; line-height: 1.5; }
.cf-quote span { display: block; margin-bottom: .15rem; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cf-mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .88rem; line-height: 1.6; }

@media (min-width: 1000px) {
    .cf-sec { grid-template-columns: minmax(220px, 1fr) minmax(0, 2.4fr); padding: 1.5rem 1.6rem; }
    .cf-side { flex-direction: column; gap: .7rem; position: sticky; top: 84px; align-self: start; }
}

/* Loja › Configurações › Embalagens (v240): cartões com a caixa desenhada na proporção real, medidas legíveis e edição sob demanda. Prefixo pk-. */
.pk-fit { min-width: 0; display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; border: 1px solid; font-size: .86rem; line-height: 1.45; }
.pk-fit > div { display: grid; gap: .15rem; min-width: 0; }
.pk-fit strong { font-size: .92rem; }
.pk-fit > div > span { color: var(--muted); }
.pk-fit-ico { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; }
.pk-fit.is-ok { background: color-mix(in srgb, var(--ok-bg) 55%, var(--card)); border-color: color-mix(in srgb, var(--ok) 22%, transparent); }
.pk-fit.is-ok .pk-fit-ico { background: var(--ok-bg); color: var(--ok); }
.pk-fit.is-warn { background: color-mix(in srgb, var(--warn-bg) 60%, var(--card)); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.pk-fit.is-warn .pk-fit-ico { background: var(--warn-bg); color: var(--warn); }
.pk-fit ul { list-style: none; margin: .45rem 0 0; padding: 0; display: grid; gap: .3rem; }
.pk-fit li { display: flex; flex-wrap: wrap; gap: .1rem .5rem; align-items: baseline; padding: .45rem .65rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.pk-fit li a { font-weight: 650; color: var(--ink); }
.pk-fit li span { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.pk-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; min-width: 0; }
.pk { min-width: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.pk:hover { border-color: color-mix(in srgb, var(--ink) 22%, var(--line)); }
.pk[open] { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); box-shadow: var(--shadow); }
.pk-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "box main toggle" "specs specs specs"; gap: .7rem .9rem; align-items: center; padding: .85rem .95rem; cursor: pointer; list-style: none; border-radius: 16px; }
.pk-head::-webkit-details-marker { display: none; }
.pk-head:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pk-box { grid-area: box; width: 64px; height: 64px; border-radius: 14px; background: color-mix(in srgb, var(--tb, #fdf1d9) 70%, var(--card)); }
.pk-box .pk-t { fill: #e9c48a; } .pk-box .pk-r { fill: #c9944f; } .pk-box .pk-l { fill: #b07b3a; }
.pk-box polygon { stroke: #8a5b22; stroke-width: .8; stroke-linejoin: round; }
.pk-box .pk-tape { stroke: #f6e3c0; stroke-width: 2.2; stroke-linecap: round; opacity: .9; }
.pk-box .pk-sh { fill: rgba(17, 18, 20, .08); }
.pk-main { grid-area: main; display: grid; gap: .15rem; min-width: 0; }
.pk-name { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: 1rem; font-weight: 750; letter-spacing: -.01em; }
.pk-dims { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .86rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pk-specs { grid-area: specs; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.pk-specs > span { display: grid; gap: .05rem; padding: .45rem .6rem; border-radius: 10px; background: var(--paper); min-width: 0; }
.pk-specs small { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-specs b { font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-specs b.is-zero { color: var(--warn); }
.pk-toggle { grid-area: toggle; display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; font-weight: 650; color: var(--ink); background: var(--card); white-space: nowrap; }
.pk-toggle .ico { transition: transform .2s; color: var(--muted); }
.pk-head:hover .pk-toggle { border-color: var(--ink); }
.pk-t-close, .pk[open] .pk-t-open { display: none; }
.pk[open] .pk-t-close { display: inline; }
.pk[open] .pk-toggle .ico { transform: rotate(180deg); }
.pk-panel { padding: 0 .95rem .95rem; }
.pk-panel form { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: .9rem; padding-top: .95rem; border-top: 1px dashed var(--line); }
.pk-grid .cf-affix .input { text-align: right; font-variant-numeric: tabular-nums; }
.pk-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between; align-items: center; }
.pk-actions .btn { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.pk.is-off { background: var(--paper); }
.pk.is-off .pk-box { filter: grayscale(1); opacity: .55; }
.pk.is-off .pk-name, .pk.is-off .pk-specs b { color: var(--muted); }
.pk.is-off .pk-specs > span { background: var(--card); }
.pk.is-new { border-style: dashed; background: transparent; }
.pk.is-new .pk-head { grid-template-areas: "box main toggle"; }
.pk-plus { grid-area: box; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; border: 1px dashed color-mix(in srgb, var(--ink) 25%, var(--line)); color: var(--muted); }
.pk.is-new:hover .pk-plus { color: var(--ink); border-color: var(--ink); }
html[data-theme="dark"] .pk-box .pk-t { fill: #9c7a49; } html[data-theme="dark"] .pk-box .pk-r { fill: #7a5a31; } html[data-theme="dark"] .pk-box .pk-l { fill: #634824; }
html[data-theme="dark"] .pk-box polygon { stroke: #3d2b14; }
html[data-theme="dark"] .pk-box .pk-tape { stroke: #c9ab7c; opacity: .7; }
html[data-theme="dark"] .pk-box .pk-sh { fill: rgba(0, 0, 0, .35); }
html[data-theme="dark"] .pk-box { background: #2a2419; }
.pk-grid .field.is-third { grid-column: span 2; } .pk-grid .field.is-half { grid-column: span 3; }
@media (max-width: 759px) {
    .pk-head { grid-template-columns: 48px minmax(0, 1fr) auto; gap: .6rem .7rem; padding: .75rem; }
    .pk-box, .pk-plus { width: 48px; height: 48px; border-radius: 12px; }
    .pk-toggle { padding: .45rem; }
    .pk-toggle > span { display: none !important; }
    .pk-panel { padding: 0 .75rem .75rem; }
    .pk-grid { gap: .75rem .55rem; }
    .pk-grid .field label { font-size: .8rem; }
    .pk-grid .cf-affix > span { padding: 0 .5rem; font-size: .78rem; }
    .pk-grid .input { padding-left: .55rem; padding-right: .55rem; }
    .pk-actions { flex-wrap: nowrap; }
    .pk-long { display: none; }
}
@media (min-width: 360px) and (max-width: 759px) {
    .pk-specs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .3rem; }
    .pk-specs > span { padding: .4rem .45rem; }
    .pk-specs small { font-size: .6rem; letter-spacing: .02em; }
    .pk-specs b { font-size: .82rem; }
}
@media (min-width: 760px) {
    .pk-head { grid-template-columns: 64px minmax(8.5rem, 1fr) minmax(0, 2.2fr) auto; grid-template-areas: "box main specs toggle"; }
    .pk.is-new .pk-head { grid-template-columns: 64px minmax(0, 1fr) auto; }
    .pk-specs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Loja › Avise-me (v233): peças que voltaram, procura pelas esgotadas e a lista de pessoas. Prefixo av-. */
:root { --av-acc: #c2731f; --av-soft: #fdf3e6; --av-line: #f0d6b4; --av-wa: #1f8f5b; --av-wa-soft: #e5f5ec; }
html[data-theme="dark"] { --av-acc: #f0a95a; --av-soft: #2c2218; --av-line: #4d3a24; --av-wa: #5fd39a; --av-wa-soft: #17291f; }
@media (min-width: 1100px) { .lj-pulse.av-pulse { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lj-p.av-hot { border-color: var(--av-line); background: linear-gradient(160deg, var(--av-soft), var(--card) 70%); }
.lj-p.av-hot .lj-p-i { position: relative; }
.lj-p.av-hot .lj-p-i::after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--av-acc); box-shadow: 0 0 0 2px var(--card); }
.av-off { display: flex; align-items: center; gap: .5rem; margin: 0 0 1.1rem; padding: .7rem .95rem; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: .88rem; font-weight: 600; }
.av-off a { color: inherit; }

.av-sec { margin: 0 0 1.75rem; scroll-margin-top: 84px; }
.av-sec-h { margin: 0 0 .85rem; }
.av-sec-h h2 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .2rem; font-size: 1.15rem; font-weight: 750; letter-spacing: -.01em; }
.av-sec-h p { margin: 0; font-size: .86rem; }
.av-live { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--viz-axis, #c9c6be); }
.av-live.is-on { background: var(--av-acc); }
.av-live.is-on::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--av-acc); animation: lj-ping 2.2s ease-out infinite; }

.av-empty { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; background: var(--card); border: 1px dashed var(--line); border-radius: 16px; }
.av-empty-i { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); }
.av-empty strong { display: block; font-size: .95rem; }
.av-empty .muted { font-size: .85rem; }

.av-img { flex: none; display: block; width: 76px; height: 76px; border-radius: 14px; object-fit: cover; background: var(--paper); border: 1px solid var(--line); }
.av-img-none { display: grid; place-items: center; color: var(--muted); }
.av-ready { position: relative; margin-bottom: .9rem; padding: 1.1rem; background: var(--card); border: 1px solid var(--av-line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 90px; }
.av-ready::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--av-acc), #f2c37b, var(--av-wa)); }
.av-ready:target { box-shadow: 0 0 0 3px color-mix(in srgb, var(--av-acc) 35%, transparent), var(--shadow); }
.av-ready-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem; align-items: center; }
.av-ready-t { min-width: 0; }
.av-kick { display: inline-flex; align-items: center; gap: .4rem; margin: 0 0 .15rem; font-size: .74rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--av-acc); }
.av-kick-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.av-kick-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: lj-ping 2.2s ease-out infinite; }
.av-ready-t h3 { margin: 0 0 .45rem; font-size: 1.2rem; font-weight: 750; letter-spacing: -.015em; line-height: 1.25; }
.av-ready-t h3 a { color: inherit; text-decoration: none; }
.av-ready-t h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.av-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.av-chips li { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.av-chips li.is-strong { background: var(--av-soft); border-color: var(--av-line); color: var(--av-acc); }
.av-view { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .8rem; font-weight: 650; text-decoration: none; }
.av-view:hover { color: var(--ink); border-color: var(--ink); }

.av-steps { display: grid; gap: .6rem; margin-top: 1rem; }
.av-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem .8rem; align-items: center; padding: .85rem .95rem; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.av-step > form, .av-step > .av-left { grid-column: 1 / -1; }
.av-step-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--av-soft); color: var(--av-acc); }
.av-step-n.is-wa { background: var(--av-wa-soft); color: var(--av-wa); }
.av-step.is-done .av-step-n { background: var(--ok-bg); color: var(--ok); }
.av-step.is-none { opacity: .65; }
.av-step-b { display: grid; gap: .05rem; min-width: 0; }
.av-step-b strong { font-size: .95rem; }
.av-step-b .muted { font-size: .82rem; line-height: 1.4; }
.av-send { width: 100%; justify-content: center; gap: .45rem; }
.av-left { justify-self: start; padding: .2rem .6rem; border-radius: 999px; background: var(--av-wa-soft); color: var(--av-wa); font-size: .76rem; font-weight: 750; }
.av-left.is-done { background: var(--ok-bg); color: var(--ok); }
.av-queue { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.av-q { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .55rem .75rem; align-items: center; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: opacity .2s, background .2s; }
.av-q > form { grid-column: 1 / -1; }
.av-q-t { display: grid; min-width: 0; line-height: 1.3; }
.av-q-t strong { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-q-t .muted { font-size: .8rem; }
.av-wa { width: 100%; justify-content: center; gap: .4rem; background: var(--av-wa); border-color: var(--av-wa); color: #fff; }
.av-wa:hover { filter: brightness(1.06); }
html[data-theme="dark"] .av-wa { color: #0f1a14; }
.av-q.is-sent { background: var(--paper); opacity: .7; }
.av-q.is-sent .av-wa { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
@media (min-width: 700px) {
    .av-ready { padding: 1.25rem 1.35rem; }
    .av-ready-h { grid-template-columns: auto minmax(0, 1fr) auto; }
    .av-view { grid-column: auto; justify-self: end; align-self: start; }
    .av-step { grid-template-columns: auto minmax(0, 1fr) auto; }
    .av-step > form, .av-step > .av-left { grid-column: auto; }
    .av-send { width: auto; }
    .av-q { grid-template-columns: auto minmax(0, 1fr) auto; }
    .av-q > form { grid-column: auto; }
    .av-wa { width: auto; }
}
@media (min-width: 1000px) {
    .av-steps { grid-template-columns: 1fr 1fr; align-items: start; }
    .av-queue { grid-column: 2; }
}

.av-demand { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.av-demand li { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "rank img t n" "rank img bar bar" "go go go go"; gap: .35rem .75rem; align-items: center; padding: .85rem 1rem; scroll-margin-top: 90px; }
.av-demand li + li { border-top: 1px solid var(--line); }
.av-demand li:target { background: var(--av-soft); }
.av-demand .av-img { grid-area: img; width: 48px; height: 48px; border-radius: 11px; }
.av-rank { grid-area: rank; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--paper); color: var(--muted); font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.av-demand li:first-child .av-rank { background: var(--av-soft); color: var(--av-acc); }
.av-d-t { grid-area: t; display: grid; min-width: 0; line-height: 1.3; }
.av-d-t a { color: inherit; text-decoration: none; }
.av-d-t a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.av-d-t strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-bar { grid-area: bar; height: 8px; border-radius: 999px; background: var(--viz-track, #eceae5); overflow: hidden; }
.av-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f2c37b, var(--av-acc)); }
.av-d-n { grid-area: n; display: grid; justify-items: end; line-height: 1.15; }
.av-d-n strong { font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.av-d-go { grid-area: go; justify-self: start; }
@media (min-width: 800px) {
    .av-demand li { grid-template-columns: 26px 48px minmax(0, 1.2fr) minmax(8rem, 1fr) 5rem auto; grid-template-areas: "rank img t bar n go"; gap: .9rem; padding: .8rem 1.2rem; }
    .av-d-go { justify-self: end; }
}
.av-w-5 { width: 5%; } .av-w-10 { width: 10%; } .av-w-15 { width: 15%; } .av-w-20 { width: 20%; } .av-w-25 { width: 25%; }
.av-w-30 { width: 30%; } .av-w-35 { width: 35%; } .av-w-40 { width: 40%; } .av-w-45 { width: 45%; } .av-w-50 { width: 50%; }
.av-w-55 { width: 55%; } .av-w-60 { width: 60%; } .av-w-65 { width: 65%; } .av-w-70 { width: 70%; } .av-w-75 { width: 75%; }
.av-w-80 { width: 80%; } .av-w-85 { width: 85%; } .av-w-90 { width: 90%; } .av-w-95 { width: 95%; } .av-w-100 { width: 100%; }

/* lista de pessoas (cartões no celular, colunas a partir de 1000px) */
.av-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: .95rem 3rem .95rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.av-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--line); border-radius: 16px 0 0 16px; }
.av-row.is-aguardando::before { background: #e3b25d; }
.av-row.is-back::before { background: var(--av-acc); }
.av-row.is-avisado::before { background: var(--ok); }
.av-row .ol-who { grid-area: auto; grid-column: 1 / -1; }
.av-row .ol-who-t strong { white-space: normal; }
.av-row .ol-who-t .muted { white-space: normal; }
.av-back { color: var(--av-acc); font-weight: 700; }
.av-contact { grid-column: 1 / -1; gap: .2rem; }
.av-ch { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; font-size: .86rem; }
.av-ch .ico:first-child { flex: none; color: var(--muted); }
.av-ch.is-sent .ico:last-child { flex: none; color: var(--ok); }
.av-mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-more { position: absolute; top: .7rem; right: .6rem; }
.av-more summary { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--muted); font-size: 1.2rem; font-weight: 800; line-height: 1; cursor: pointer; list-style: none; }
.av-more summary::-webkit-details-marker { display: none; }
.av-more summary:hover, .av-more[open] summary { background: var(--paper); color: var(--ink); }
.av-menu { position: absolute; z-index: 20; right: 0; top: calc(100% + 4px); width: 15.5rem; padding: .35rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .3); }
.av-menu form { margin: 0; }
.av-mi { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .55rem .65rem; border: 0; border-radius: 9px; background: none; color: var(--ink); font: inherit; font-size: .88rem; font-weight: 600; text-align: left; cursor: pointer; }
.av-mi:hover { background: var(--paper); }
.av-mi .ico { color: var(--muted); }
.av-mi.is-danger { color: var(--fail); }
.av-mi.is-danger .ico { color: var(--fail); }
.av-menu-n { margin: .25rem .65rem .35rem; padding-top: .45rem; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted); }
@media (min-width: 1000px) {
    /* .ol corta o que passa da borda; aqui o menu "⋯" da última linha precisa sair para fora */
    .av { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: visible; }
    .av-head, .av-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.2fr) 7.5rem 8rem 2.2rem; gap: 1rem; align-items: center; }
    .av-head { padding: .7rem 1.1rem .7rem 1.35rem; background: var(--paper); border-bottom: 1px solid var(--line); border-radius: 16px 16px 0 0; font-size: .8rem; font-weight: 700; color: var(--muted); }
    .av-row { border: 0; border-radius: 0; box-shadow: none; padding: .8rem 1.1rem .8rem 1.35rem; }
    .av-row::before { border-radius: 0; }
    .av-row:hover { background: var(--paper); }
    .av .ol-list li + li .av-row { border-top: 1px solid var(--line); }
    .av .ol-list li:last-child .av-row { border-radius: 0 0 16px 16px; }
    .av-row .ol-who, .av-contact { grid-column: auto; }
    .av-row .cl-l { display: none; }
    .av-more { position: relative; top: auto; right: auto; justify-self: end; }
}
.av-pages { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .9rem; }
.av-pages a { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 .5rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 650; }
.av-pages a[aria-current] { background: var(--ink); color: var(--card); border-color: var(--ink); }

/* mensagem do WhatsApp */
.av-msg { margin-top: .5rem; }
.av-msg-f { display: grid; gap: .9rem; }
.av-msg-f .field { margin: 0; }
.av-msg-f label { display: flex; align-items: center; gap: .5rem; font-weight: 650; font-size: .88rem; }
.av-preview { padding: .9rem; border-radius: 14px; background: #e9e2d8; background-image: radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px); background-size: 14px 14px; }
html[data-theme="dark"] .av-preview { background-color: #0f1512; background-image: radial-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px); }
.av-preview-l { display: block; margin-bottom: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #6d6458; }
html[data-theme="dark"] .av-preview-l { color: #8a958e; }
.av-bubble { position: relative; max-width: 30rem; margin: 0; padding: .6rem .8rem .7rem; border-radius: 12px 12px 12px 3px; background: #fff; color: #111b21; font-size: .9rem; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); }
html[data-theme="dark"] .av-bubble { background: #202c33; color: #e9edef; }
.av-save { gap: .5rem; }

/* faixa no estoque do produto */
.av-strip { display: flex; align-items: center; gap: .75rem; margin: .2rem 0 1rem; padding: .75rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: inherit; text-decoration: none; font-size: .86rem; line-height: 1.45; transition: border-color .15s; }
.av-strip:hover { border-color: var(--ink); }
.av-strip-i { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--card); color: var(--muted); border: 1px solid var(--line); }
.av-strip-t { flex: 1; min-width: 0; color: var(--muted); }
.av-strip-t strong { color: var(--ink); }
.av-strip-go { flex: none; display: inline-flex; align-items: center; gap: .2rem; font-weight: 700; font-size: .84rem; }
.av-strip-go .ico { transform: rotate(-90deg); }
.av-strip.is-ready { border-color: var(--av-line); background: var(--av-soft); }
.av-strip.is-ready .av-strip-i { background: var(--av-acc); border-color: var(--av-acc); color: #fff; }
.av-strip.is-ready .av-strip-go { color: var(--av-acc); }
@media (prefers-reduced-motion: reduce) { .av-live.is-on::after, .av-kick-dot::after { animation: none; opacity: 0; } }
@media (min-width: 1000px) and (max-width: 1500px) { .lj-tabs a { padding-left: .55rem; padding-right: .55rem; } .lj-visit span { display: none; } .lj-visit { padding: .38rem .55rem; } }

/* v235 · Avise-me: registro mínimo (contato apagado) e prova da autorização no menu "⋯" */
.av-ch.av-gone { color: var(--muted); font-style: italic; }
.av-ch.av-gone .ico { color: var(--muted); }
.av-menu-n p { margin: 0; }
.av-menu-n strong { color: var(--ink); font-weight: 650; }
.av-menu-q { margin-top: .3rem !important; line-height: 1.45; font-style: italic; }
.av-menu { width: 18rem; }

/* ===== Métricas › Fretes (v237): cobrado x gasto, prazo de postagem x prazo de entrega ===== */
.mx .ft-green { --tc: #1c7a4b; --tb: #e7f4ed; } .mx .ft-teal { --tc: #137a7a; --tb: #e2f4f3; } .mx .ft-amber { --tc: #a06a00; --tb: #fdf1d9; }
.mx .ft-rose { --tc: #b0364a; --tb: #fbe9ec; } .mx .ft-sky { --tc: #1f78a8; --tb: #e4f2fa; } .mx .ft-gray { --tc: var(--muted); --tb: var(--viz-track); }
html[data-theme="dark"] .mx .ft-green { --tc: #6fcf9a; --tb: #1a2e24; } html[data-theme="dark"] .mx .ft-teal { --tc: #6fd0cc; --tb: #173030; } html[data-theme="dark"] .mx .ft-amber { --tc: #e8b653; --tb: #33291a; }
html[data-theme="dark"] .mx .ft-rose { --tc: #f08fa0; --tb: #36202a; } html[data-theme="dark"] .mx .ft-sky { --tc: #7cc3ea; --tb: #172a36; }
.fr-hero .mx-hero-main { gap: .45rem; }
.fr-bal.ft-green, .fr-bal.ft-rose { color: var(--tc); }
.fr-tag { display: inline-flex; align-items: center; gap: .35rem; padding: .22rem .65rem .22rem .5rem; border-radius: 999px; background: var(--tb); color: var(--tc); font-size: .8rem; font-weight: 700; }
.fr-vs-wrap { display: flex; flex-direction: column; justify-content: center; gap: .55rem; padding: 1rem 1.1rem .95rem; }
.fr-vs { display: grid; gap: .85rem; }
.fr-vs-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem .75rem; align-items: baseline; }
.fr-vs-l { font-size: .86rem; font-weight: 650; color: var(--ink-2); }
.fr-vs-v { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fr-vs-t { grid-column: 1 / -1; display: block; height: 16px; border-radius: 999px; background: var(--viz-track); overflow: hidden; }
.fr-vs-t i { display: block; height: 100%; border-radius: 999px; transform-origin: left center; animation: fr-grow .9s cubic-bezier(.25, .8, .25, 1) both; }
.fr-vs-c { background: var(--viz-1-soft); }
.fr-vs-g { background: var(--viz-1); animation-delay: .12s !important; }
html[data-theme="dark"] .fr-vs-c { background: #2f5d97; }
.fr-vs-n { margin: .1rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.fr-vs-n b { color: var(--ink); }
.fr-vs-w { display: block; margin-top: .2rem; color: var(--fail, #b3261e); font-weight: 600; }
@keyframes fr-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.fr-notes { display: grid; gap: .75rem; margin-bottom: 1rem; }
.fr-notes .mx-alert { margin: 0; background: var(--info-bg, #eef2f8); }
.fr-notes .mx-alert > span:first-child { color: var(--info, #3b5b8c); }
.fr-pend { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--mx-soft); color: inherit; text-decoration: none; transition: border-color .15s; }
.fr-pend:hover { border-color: var(--ink); }
.fr-pend-i { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--card); border: 1px solid var(--line); color: var(--mx-acc); }
.fr-pend-b { flex: 1; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 .65rem; min-width: 0; }
.fr-pend-b > span { grid-column: 1 / -1; font-size: .8rem; font-weight: 650; color: var(--muted); }
.fr-pend-b strong { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fr-pend-b small { font-size: .82rem; color: var(--muted); }
.fr-pend-go { flex: none; color: var(--muted); transition: transform .15s; }
.fr-pend:hover .fr-pend-go { color: var(--ink); transform: translateX(2px); }

.fr-aside { list-style: none; margin: .85rem 0 0; padding: .7rem .85rem; border-radius: 12px; background: var(--paper); display: grid; gap: .3rem; font-size: .82rem; color: var(--muted); }
.fr-aside b { color: var(--ink); font-weight: 700; margin-right: .2rem; }

.fr-split { margin-bottom: 1rem; }
.fr-dist { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; align-items: end; }
.fr-dist-c { display: flex; flex-direction: column; align-items: center; gap: .15rem; min-width: 0; text-align: center; }
.fr-dist-t { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 86px; border-bottom: 1px solid var(--viz-axis); }
.fr-dist-t i { display: block; width: min(46px, 70%); border-radius: 7px 7px 2px 2px; background: var(--tc); opacity: .85; transform-origin: bottom; animation: fr-rise .7s cubic-bezier(.25, .8, .25, 1) both; }
.fr-dist-c.is-zero .fr-dist-t i { opacity: .25; }
.fr-dist-c b { margin-top: .3rem; font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.fr-dist-c > span:last-child { font-size: .74rem; color: var(--muted); line-height: 1.25; }
@keyframes fr-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.fr-svc { list-style: none; margin: 1rem 0 0; padding: .85rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .55rem; }
.fr-svc li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: .6rem; align-items: center; font-size: .85rem; }
.fr-svc-n { font-weight: 750; }
.fr-svc-d { color: var(--muted); }
.fr-svc-d b { color: var(--ink); }
.fr-svc-r { padding: .15rem .55rem; border-radius: 999px; background: var(--tb); color: var(--tc); font-size: .76rem; font-weight: 700; white-space: nowrap; }

.fr-k-a, .fr-k-b { display: inline-block; width: 12px; height: 8px; border-radius: 999px; }
.mx-legend i.fr-k-a, .fr-jr-a { background: var(--viz-o2); }
.mx-legend i.fr-k-b, .fr-jr-b { background: #e2632a; }
html[data-theme="dark"] .mx-legend i.fr-k-b, html[data-theme="dark"] .fr-jr-b { background: #ff8b4f; }
.fr-jr { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.15rem; }
.fr-jr-h { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-bottom: .4rem; }
.fr-jr-l { font-size: .92rem; font-weight: 700; }
.fr-jr-l small { margin-left: .3rem; font-size: .76rem; font-weight: 500; color: var(--muted); }
.fr-jr-h strong { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fr-jr-t { display: flex; gap: 3px; height: 14px; border-radius: 999px; background: var(--viz-track); overflow: hidden; }
.fr-jr-t i { display: block; height: 100%; transform-origin: left center; animation: fr-grow .8s cubic-bezier(.25, .8, .25, 1) both; }
.fr-jr-a { border-radius: 999px 0 0 999px; }
.fr-jr-b { border-radius: 0 999px 999px 0; animation-delay: .15s !important; }
.fr-jr-c { display: flex; justify-content: space-between; gap: .75rem; margin-top: .35rem; font-size: .78rem; color: var(--muted); }

/* Envio a envio: cartões no celular, colunas a partir de 1000px. Filtro sem JavaScript (rádios). */
.fr-list-card { padding-bottom: 1.1rem; }
.fr-f { position: absolute; opacity: 0; pointer-events: none; }
.fr-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.2rem 0 .9rem; }
.fr-chips label { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font-size: .82rem; font-weight: 650; cursor: pointer; user-select: none; transition: background .15s, color .15s, border-color .15s; }
.fr-chips label:hover { color: var(--ink); border-color: var(--ink); }
.fr-chips label b { padding: 0 .4rem; border-radius: 999px; background: var(--viz-track); color: var(--ink); font-size: .74rem; }
#fr-f-all:checked ~ .fr-chips label[for="fr-f-all"], #fr-f-loss:checked ~ .fr-chips label[for="fr-f-loss"], #fr-f-late:checked ~ .fr-chips label[for="fr-f-late"] { background: var(--ink); border-color: var(--ink); color: var(--card); }
#fr-f-all:checked ~ .fr-chips label[for="fr-f-all"] b, #fr-f-loss:checked ~ .fr-chips label[for="fr-f-loss"] b, #fr-f-late:checked ~ .fr-chips label[for="fr-f-late"] b { background: rgba(255, 255, 255, .2); color: inherit; }
html[data-theme="dark"] #fr-f-all:checked ~ .fr-chips label[for="fr-f-all"] b, html[data-theme="dark"] #fr-f-loss:checked ~ .fr-chips label[for="fr-f-loss"] b, html[data-theme="dark"] #fr-f-late:checked ~ .fr-chips label[for="fr-f-late"] b { background: rgba(0, 0, 0, .15); }
.fr-f:focus-visible + .fr-f, .fr-f:focus-visible ~ .fr-chips { outline: none; }
#fr-f-all:focus-visible ~ .fr-chips label[for="fr-f-all"], #fr-f-loss:focus-visible ~ .fr-chips label[for="fr-f-loss"], #fr-f-late:focus-visible ~ .fr-chips label[for="fr-f-late"] { outline: 2px solid var(--mx-acc); outline-offset: 2px; }
#fr-f-loss:checked ~ .fr-tbl .fr-row:not(.is-loss), #fr-f-late:checked ~ .fr-tbl .fr-row:not(.is-late) { display: none; }
.fr-none { display: none; align-items: center; gap: .45rem; margin: 0; padding: .9rem 1rem; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-size: .9rem; font-weight: 600; }
#fr-f-loss:checked ~ .fr-tbl .fr-none-loss, #fr-f-late:checked ~ .fr-tbl .fr-none-late { display: flex; }

.fr-th { display: none; }
.fr-row.is-extra { display: none; }
#fr-more:checked ~ .fr-tbl .fr-row.is-extra, #fr-f-loss:checked ~ .fr-tbl .fr-row.is-extra.is-loss, #fr-f-late:checked ~ .fr-tbl .fr-row.is-extra.is-late { display: grid; }
.fr-more-b { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .6rem; padding: .6rem; border-radius: 12px; color: var(--ink-2); font-size: .86rem; font-weight: 650; cursor: pointer; }
.fr-more-b:hover { background: var(--viz-hover); color: var(--ink); }
#fr-more:checked ~ .fr-tbl .fr-more-b, #fr-f-loss:checked ~ .fr-tbl .fr-more-b, #fr-f-late:checked ~ .fr-tbl .fr-more-b { display: none; }
#fr-more:focus-visible ~ .fr-tbl .fr-more-b { outline: 2px solid var(--mx-acc); outline-offset: 2px; }
.fr-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.fr-row { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem .75rem; padding: .85rem .95rem .9rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.fr-row::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--viz-1-soft); }
.fr-row.is-late::before { background: #d98e0b; }
.fr-row.is-loss::before { background: #c0392b; }
.fr-c { display: flex; flex-direction: column; gap: .1rem; min-width: 0; font-size: .88rem; }
.fr-k { font-size: .72rem; font-weight: 650; color: var(--muted); }
.fr-who { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: .1rem .5rem; padding-bottom: .5rem; border-bottom: 1px dashed var(--line); }
.fr-who a { color: var(--ink); text-decoration: none; }
.fr-who a:hover strong { text-decoration: underline; }
.fr-o { justify-self: start; padding: .05rem .5rem; border-radius: 999px; background: var(--viz-track); color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
.fr-nm, .fr-pl { grid-column: 1 / -1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-nm { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.fr-pl { font-size: .76rem; color: var(--muted); }
.fr-num { font-variant-numeric: tabular-nums; }
.fr-d { font-weight: 800; color: var(--tc); }
.fr-free { color: var(--warn); font-weight: 700; }
.fr-mute { color: var(--muted); }
.fr-x { color: var(--muted); font-size: .76rem; }
.fr-svc-tag { font-weight: 650; }
.fr-st { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem .4rem; }
.fr-pill { padding: .08rem .5rem; border-radius: 999px; background: var(--tb); color: var(--tc); font-size: .72rem; font-weight: 700; font-style: normal; white-space: nowrap; }
.fr-foot { margin: .9rem 0 0; font-size: .76rem; color: var(--muted); line-height: 1.5; }

.fr-empty { align-items: center; text-align: center; padding: 2.2rem 1.4rem; }
.fr-empty-i { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--mx-soft); color: var(--mx-acc); margin-bottom: .8rem; }
.fr-empty h2 { margin: 0 0 .35rem; font-size: 1.15rem; }
.fr-empty p { margin: 0; max-width: 56ch; color: var(--muted); font-size: .9rem; line-height: 1.5; }

@media (min-width: 900px) {
    .fr-notes { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: stretch; }
    .fr-notes > :only-child { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
    .fr-tbl { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
    .fr-th, .fr-row { grid-template-columns: minmax(0, 2.2fr) minmax(0, .9fr) minmax(0, .85fr) minmax(0, .95fr) minmax(0, .85fr) minmax(0, 1.25fr) minmax(0, 1.35fr); gap: 1rem; align-items: center; }
    .fr-th { display: grid; padding: .6rem 1.1rem .6rem 1.25rem; background: var(--paper); border-bottom: 1px solid var(--line); font-size: .76rem; font-weight: 700; color: var(--muted); }
    .fr-rows { gap: 0; }
    .fr-row { border: 0; border-radius: 0; padding: .75rem 1.1rem .75rem 1.25rem; }
    .fr-row + .fr-row { border-top: 1px solid var(--line); }
    .fr-row:hover { background: var(--viz-hover); }
    .fr-row::before { top: 12px; bottom: 12px; }
    .fr-k { display: none; }
    .fr-who { grid-column: auto; border: 0; padding: 0; }
    .fr-tbl .fr-none { margin: .75rem; }
}
@media (max-width: 599px) {
    .fr-dist-t { height: 70px; }
    .fr-svc li { grid-template-columns: 3.8rem minmax(0, 1fr); }
    .fr-svc-r { grid-column: 2; justify-self: start; }
    .fr-vs-wrap { padding: .9rem .9rem .85rem; }
}
@media (prefers-reduced-motion: reduce) { .fr-vs-t i, .fr-dist-t i, .fr-jr-t i { animation: none; } }
@media print { .fr-chips, .fr-f { display: none !important; } .fr-row { break-inside: avoid; } }

/* v239 · Protótipo: recado enviado ao cliente fica visível depois do envio */
.proto-msg { --pm: #137a7a; margin: .9rem 0 .4rem; padding: .8rem 1rem .9rem; border: 1px solid color-mix(in srgb, var(--pm) 28%, var(--line)); border-left: 4px solid var(--pm); border-radius: 4px 14px 14px 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--pm) 9%, var(--card)), var(--card) 70%); box-shadow: 0 1px 2px rgba(17, 18, 20, .05); }
.proto-msg figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .8rem; letter-spacing: .02em; color: var(--pm); margin-bottom: .4rem; }
.proto-msg figcaption strong { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; }
.proto-msg figcaption .muted { margin-left: auto; font-size: .78rem; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.proto-msg blockquote { margin: 0; color: var(--ink); font-size: .95rem; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.proto-msg.is-compact { margin: .45rem 0 .2rem; padding: .55rem .75rem .6rem; }
.proto-msg.is-compact blockquote { font-size: .88rem; color: var(--ink-2); }
.proto-msg-empty { display: flex; align-items: center; gap: .4rem; margin: .7rem 0 .2rem; }
html[data-theme="dark"] .proto-msg { --pm: #6fd0cc; box-shadow: none; background: linear-gradient(135deg, color-mix(in srgb, var(--pm) 12%, var(--card)), var(--card) 70%); }
@media (max-width: 600px) { .proto-msg { padding: .7rem .8rem .8rem; } .proto-msg blockquote { font-size: .92rem; } }
/* Recados do orçamento (por versão enviada) — v319 */
.qm { --qm: #a06a00; --qi: #5b6170; margin: 1.1rem 0 .3rem; max-width: 860px; }
.qm-title { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .55rem; font-weight: 600; }
.qm-item { padding: .85rem 1rem .9rem; border: 1px solid color-mix(in srgb, var(--qm) 26%, var(--line)); border-left: 4px solid var(--qm); border-radius: 4px 14px 14px 14px; background: linear-gradient(135deg, color-mix(in srgb, var(--qm) 8%, var(--card)), var(--card) 70%); box-shadow: 0 1px 2px rgba(17, 18, 20, .05); }
.qm-item + .qm-item { margin-top: .6rem; }
.qm-head { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; margin-bottom: .55rem; }
.qm-ver { font-weight: 700; font-size: .8rem; letter-spacing: .04em; color: var(--qm); background: color-mix(in srgb, var(--qm) 13%, var(--card)); border-radius: 999px; padding: .1rem .55rem; font-variant-numeric: tabular-nums; }
.qm-when { margin-left: auto; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.qm-msg { margin: 0; }
.qm-msg figcaption, .qm-int-cap { display: flex; align-items: center; gap: .35rem; margin: 0 0 .3rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--qm); }
.qm-msg blockquote { margin: 0; color: var(--ink); font-size: .95rem; line-height: 1.55; overflow-wrap: anywhere; }
.qm-empty { display: flex; align-items: center; gap: .4rem; margin: 0; color: var(--muted); font-size: .86rem; }
.qm-int { margin-top: .75rem; padding: .6rem .75rem .65rem; border-radius: 10px; border: 1px dashed color-mix(in srgb, var(--qi) 40%, var(--line)); background: color-mix(in srgb, var(--qi) 6%, var(--card)); }
.qm-int-cap { color: var(--qi); flex-wrap: wrap; }
.qm-int-cap strong, .qm-int-cap span { white-space: nowrap; }
.qm-int-cap span { margin-left: auto; text-transform: none; letter-spacing: 0; font-size: .74rem; color: var(--muted); }
.qm-int-txt { margin: 0; font-size: .88rem; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.qm-old { margin-top: .6rem; }
.qm-old > summary { cursor: pointer; font-size: .84rem; color: var(--muted); padding: .3rem 0; width: max-content; }
.qm-old > summary:hover { color: var(--ink); }
.qm-old-list { margin-top: .45rem; }
.qm-old-list .qm-item { padding: .65rem .85rem .7rem; box-shadow: none; }
.qm-old-list .qm-msg blockquote { font-size: .88rem; color: var(--ink-2); }
html[data-theme="dark"] .qm { --qm: #e8b653; --qi: #a9b0bf; }
html[data-theme="dark"] .qm-item { box-shadow: none; background: linear-gradient(135deg, color-mix(in srgb, var(--qm) 11%, var(--card)), var(--card) 70%); }
@media (max-width: 600px) { .qm-item { padding: .7rem .8rem .8rem; } .qm-when { margin-left: 0; flex-basis: 100%; } .qm-msg blockquote { font-size: .92rem; } }

/* ===== Loja › Pedido: mensagens no WhatsApp por etapa (v243). Prefixo owa- ===== */
:root { --owa: #1f8f5b; --owa-soft: #e5f5ec; --owa-line: #bfe3cf; --owa-bar: #0b5c45; --owa-wall: #efe7dd; --owa-dot: rgba(0, 0, 0, .04); --owa-out: #d9fdd3; --owa-out-ink: #111b21; }
html[data-theme="dark"] { --owa: #5fd39a; --owa-soft: #17291f; --owa-line: #24533b; --owa-bar: #1f2c33; --owa-wall: #0b141a; --owa-dot: rgba(255, 255, 255, .03); --owa-out: #005c4b; --owa-out-ink: #e9edef; }
.owa-jump svg { vertical-align: -3px; color: var(--owa); }
.owa { position: relative; overflow: hidden; scroll-margin-top: 5rem; }
.owa::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--owa), #8fd9b3 60%, transparent); }
.owa-head { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: 1rem; }
.owa-head h2 { margin: 0 0 .15rem; }
.owa-ico { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 12px; background: var(--owa-soft); color: var(--owa); }

.owa-rail { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .9rem; }
.owa-tab { flex: 1 1 10.5rem; min-width: 0; display: flex; align-items: center; gap: .6rem; min-height: 3.5rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, transform .15s ease; }
.owa-tab:hover { border-color: var(--owa-line); transform: translateY(-1px); }
.owa-tab:focus-visible { outline: 2px solid var(--focus, #2f6df6); outline-offset: 2px; }
.owa-tab-i { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: var(--paper); color: var(--muted); }
.owa-tab-t { display: grid; gap: .05rem; min-width: 0; line-height: 1.25; }
.owa-tab-t b { font-size: .9rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owa-tab-t small { font-size: .76rem; color: var(--muted); white-space: nowrap; }
.owa-tab.is-sent .owa-tab-i { background: var(--owa-soft); color: var(--owa); }
.owa-tab.is-sent small { color: var(--owa); font-weight: 650; }
.owa-tab.is-on { border-color: var(--owa); background: var(--owa-soft); box-shadow: 0 0 0 1px var(--owa) inset; }
.owa-tab.is-on .owa-tab-i { background: var(--owa); color: #fff; }
html[data-theme="dark"] .owa-tab.is-on .owa-tab-i { color: #0f1a14; }
.owa-tab.is-next .owa-tab-i { position: relative; }
.owa-tab.is-next .owa-tab-i::after { content: ""; position: absolute; top: -3px; right: -3px; width: 9px; height: 9px; border-radius: 50%; background: #f0a028; border: 2px solid var(--card); }
.owa-tab.is-next small { color: #b8741a; font-weight: 650; }
html[data-theme="dark"] .owa-tab.is-next small { color: #f0b45a; }

.owa-pane { display: grid; gap: .8rem; margin: 0; }
.owa-pane[hidden] { display: none; }
.owa-chat { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.owa-bar { display: flex; align-items: center; gap: .65rem; padding: .6rem .85rem; background: var(--owa-bar); color: #fff; }
.owa-av { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: rgba(255, 255, 255, .18); font-weight: 750; font-size: .95rem; }
.owa-who { display: grid; min-width: 0; line-height: 1.25; }
.owa-who b { font-size: .9rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.owa-who small { font-size: .76rem; opacity: .8; font-variant-numeric: tabular-nums; }
.owa-bar-tag { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .72rem; font-weight: 650; letter-spacing: .02em; white-space: nowrap; }
.owa-body { display: grid; justify-items: end; gap: .45rem; padding: 1rem .9rem .8rem; background-color: var(--owa-wall); background-image: radial-gradient(var(--owa-dot) 1px, transparent 1px); background-size: 14px 14px; }
.owa-bubble { display: block; width: min(100%, 34rem); min-height: 4.5rem; margin: 0; padding: .65rem .85rem .75rem; border: 1px solid transparent; border-radius: 12px 3px 12px 12px; background: var(--owa-out); color: var(--owa-out-ink); font: inherit; font-size: .92rem; line-height: 1.5; resize: none; overflow: hidden; field-sizing: content; box-shadow: 0 1px 1px rgba(0, 0, 0, .1); transition: border-color .15s ease, box-shadow .15s ease; }
.owa-bubble:hover { border-color: rgba(31, 143, 91, .35); }
.owa-bubble:focus { outline: none; border-color: var(--owa); box-shadow: 0 0 0 3px rgba(31, 143, 91, .2); }
.owa-hint { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; color: #6d6458; }
html[data-theme="dark"] .owa-hint { color: #8a958e; }
.owa-hint svg { flex: none; }

.owa-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; }
.owa-send { gap: .45rem; background: var(--owa); border-color: var(--owa); color: #fff; font-weight: 700; }
.owa-send:hover { filter: brightness(1.06); }
html[data-theme="dark"] .owa-send { color: #0f1a14; }
.owa-state { color: var(--muted); }
.owa-state.is-sent { color: var(--owa); font-weight: 650; }
.owa-note { display: flex; gap: .45rem; align-items: flex-start; margin-top: .9rem; padding: .7rem .85rem; border-radius: 12px; background: var(--paper); border: 1px dashed var(--line); color: var(--muted); }
.owa-note svg { flex: none; margin-top: .15rem; }

@media (max-width: 640px) {
    .owa-tab { flex-basis: 8.25rem; gap: .45rem; padding: .5rem .55rem; min-height: 3.25rem; }
    .owa-tab-i { width: 1.65rem; height: 1.65rem; border-radius: 8px; }
    .owa-tab-i svg { width: 14px; height: 14px; }
    .owa-tab-t b { font-size: .84rem; }
    .owa-tab-t small { font-size: .72rem; }
    .owa-body { padding: .8rem .6rem .7rem; }
    .owa-bar-tag { display: none; }
    .owa-send { flex: 1 1 100%; justify-content: center; min-height: 2.9rem; }
    .owa-foot { gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) { .owa-tab { transition: none; } .owa-tab:hover { transform: none; } }
.od-ready { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.fz-steps.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fz-steps.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 560px) { .fz-steps.is-3, .fz-steps.is-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* v251: parte da loja no "Faturado" do Painel (já somada no valor; a linha só deixa à vista) */
.kpi-store { display: flex; align-items: center; gap: .4rem; margin-top: .3rem; position: relative; z-index: 1; }
.kpi-store .m { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.kpi-store-dot { width: 7px; height: 7px; border-radius: 50%; background: #e0892e; box-shadow: 0 0 0 3px rgba(224, 137, 46, .16); flex: none; }

/* v254: Loja › E-mails. Registro do que saiu (cópia fiel), prévia em moldura de computador/celular e liga/desliga. */
.em-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem 1.2rem; }
.em-head > div { min-width: 0; max-width: 46rem; }
.em-ico { flex: none; display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 12px; background: var(--tb, var(--paper)); color: var(--tc, var(--ink)); }
.em-ico-store_login { --tc: #6b6964; --tb: #efeee9; }
.em-ico-store_cart { --tc: #b4531a; --tb: #fdece1; }
.em-ico-store_paid { --tc: #1c7a4b; --tb: #e7f4ed; }
.em-ico-store_shipped { --tc: #2f5fb3; --tb: #e8effa; }
.em-ico-store_return { --tc: #b3261e; --tb: #fcebe9; }
.em-ico-store_restock { --tc: #6b4fb0; --tb: #f0ebfa; }
.em-ico-test { --tc: #8f5a00; --tb: #fdf1d9; }
html[data-theme="dark"] .em-ico-store_login { --tc: #a3a8b0; --tb: #2a2c31; }
html[data-theme="dark"] .em-ico-store_cart { --tc: #f0a06a; --tb: #35241a; }
html[data-theme="dark"] .em-ico-store_paid { --tc: #6fcf9a; --tb: #1a2e24; }
html[data-theme="dark"] .em-ico-store_shipped { --tc: #8fb0ee; --tb: #1d2738; }
html[data-theme="dark"] .em-ico-store_return { --tc: #f4948d; --tb: #3a2124; }
html[data-theme="dark"] .em-ico-store_restock { --tc: #b9a2f0; --tb: #261f38; }
html[data-theme="dark"] .em-ico-test { --tc: #e8b653; --tb: #33291a; }

/* modelos */
.em-models { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .9rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .em-models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .em-models { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.em-model { position: relative; display: flex; flex-direction: column; gap: .7rem; padding: 1.1rem 1.1rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 5rem; }
.em-model::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--ok); opacity: .75; }
.em-model.is-off::before { background: var(--warn); }
.em-model.is-off .em-model-top { opacity: .72; }
.em-model-top { display: flex; gap: .8rem; align-items: flex-start; }
.em-model-t { min-width: 0; }
.em-model-t h2 { font-size: 1.02rem; margin: .1rem 0 .2rem; }
.em-model-t p { margin: 0; font-size: .87rem; color: var(--muted); line-height: 1.45; }
.em-model-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; margin: 0; font-size: .85rem; }
.em-model-meta form { margin: 0; }
.em-always { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin: 0 0 .9rem; font-size: .85rem; }
.em-model-n { margin: 0; font-size: .82rem; }
.em-queue { display: grid; gap: .3rem; padding: .6rem .75rem; border-radius: 10px; background: var(--surface-2, rgba(127,127,127,.06)); font-size: .82rem; }
.em-queue p { margin: 0; line-height: 1.45; }
.em-queue .badge { margin-right: .3rem; }
.em-model-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--line); }
.em-model-foot .btn, .em-acts .btn { display: inline-flex; align-items: center; gap: .35rem; }
.em-foot-note { font-size: .85rem; margin: 0 0 1rem; }

/* chave liga/desliga */
.em-sw { display: inline-flex; align-items: center; gap: .5rem; padding: .32rem .75rem .32rem .35rem; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; }
.em-sw:hover { border-color: var(--ink); color: var(--ink); }
.em-sw:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.em-sw-k { position: relative; width: 2.2rem; height: 1.25rem; border-radius: 999px; background: #c9c6be; flex: none; transition: background-color .2s ease; }
.em-sw-k::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.25rem - 4px); height: calc(1.25rem - 4px); border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.em-sw.is-on { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: var(--ok-bg); }
.em-sw.is-on .em-sw-k { background: var(--ok); }
.em-sw.is-on .em-sw-k::after { transform: translateX(.95rem); }
html[data-theme="dark"] .em-sw-k { background: #4a4d55; }
html[data-theme="dark"] .em-sw.is-on .em-sw-k::after { background: #10261b; }

/* lista do que saiu */
.em-search { max-width: 52rem; }
.em-kind { border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: .9rem; padding: .4rem .5rem; max-width: 13rem; }
.em-kind:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-radius: 6px; }
html[data-theme="dark"] .em-kind option { background: var(--card); color: var(--ink); }
@media (max-width: 599px) { .em-search { flex-wrap: wrap; } .em-search .ol-input { flex-basis: calc(100% - 2.5rem); } .em-kind { border-left: 0; flex: 1; padding-left: 0; } }
.em-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.em-row { position: relative; display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem .85rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); color: inherit; text-decoration: none; overflow: hidden; transition: border-color .15s ease, transform .15s ease; }
.em-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--line); }
.em-row.is-ok::before { background: var(--ok); }
.em-row.is-fail::before { background: var(--fail); }
.em-row:hover { border-color: var(--ink); transform: translateY(-1px); }
.em-row:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.em-row .em-ico { width: 2.3rem; height: 2.3rem; }
.em-row-main { display: grid; gap: .1rem; min-width: 0; flex: 1; }
.em-row-kind { font-size: .76rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-row-subj { font-size: .98rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-row-to { font-size: .85rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.em-row-side { display: grid; justify-items: end; gap: .3rem; flex: none; }
.em-row-side time { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 559px) {
    .em-row { flex-wrap: wrap; align-items: flex-start; }
    .em-row-main { flex-basis: calc(100% - 3.2rem); }
    .em-row-side { display: flex; align-items: center; justify-content: space-between; width: 100%; padding-left: 3.15rem; }
}

/* detalhe e prévia */
.em-dhead h1 { overflow-wrap: anywhere; }
.em-kicker { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .45rem; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.em-kicker .em-ico { width: 1.75rem; height: 1.75rem; border-radius: 8px; }
.em-detail { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .em-detail { grid-template-columns: minmax(0, 1fr) 20rem; } .em-side { position: sticky; top: 1rem; } }
.em-viewer { min-width: 0; }
.em-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.em-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.em-seg button { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .8rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: .86rem; font-weight: 650; cursor: pointer; }
.em-seg button:hover:not(:disabled) { color: var(--ink); }
.em-seg button.is-on, .em-seg button.is-on:hover:not(:disabled) { background: var(--ink); color: var(--card); }
.em-seg button:disabled { opacity: .45; cursor: not-allowed; }
.em-seg button:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.em-stage { display: grid; justify-items: center; padding: clamp(.6rem, 2.5vw, 1.6rem); border-radius: 20px; border: 1px solid var(--line); background: radial-gradient(circle at 1px 1px, rgba(17, 18, 20, .07) 1px, transparent 0) 0 0 / 16px 16px, #ece9e2; }
html[data-theme="dark"] .em-stage { background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .06) 1px, transparent 0) 0 0 / 16px 16px, #0d0e10; }
.em-client { width: 100%; max-width: 760px; background: var(--card); border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(17, 18, 20, .14); overflow: hidden; transition: max-width .25s ease; }
.em-client-top { display: flex; align-items: center; gap: .35rem; padding: .55rem .8rem; border-bottom: 1px solid var(--line); background: var(--paper); font-size: .75rem; color: var(--muted); }
.em-client-top i { width: 9px; height: 9px; border-radius: 50%; background: #d9d6ce; }
.em-client-top i:nth-child(1) { background: #f0857a; } .em-client-top i:nth-child(2) { background: #f2c25a; } .em-client-top i:nth-child(3) { background: #7cc98f; }
.em-client-top span { margin-left: .45rem; }
.em-envelope { display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.em-avatar { flex: none; display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: 50%; background: #2e2e2e; color: #d8bfaf; font-weight: 700; font-family: Georgia, serif; }
.em-env-b { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.em-env-subj { font-size: .95rem; overflow-wrap: anywhere; }
.em-env-from { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.em-env-from b { color: var(--ink); font-weight: 650; }
.em-env-time { flex: none; align-self: flex-start; font-size: .78rem; color: var(--muted); }
.em-frame { display: block; width: 100%; height: min(78vh, 900px); border: 0; background: #efe6dd; }
.em-plain { display: none; margin: 0; padding: 1.1rem 1.2rem; max-height: min(78vh, 900px); overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: .9rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); background: var(--card); }
.em-stage.is-text .em-frame { display: none; }
.em-stage.is-text .em-plain { display: block; }
.em-stage.is-phone .em-client { max-width: 390px; border-radius: 34px; border: 9px solid #1d1e21; box-shadow: 0 0 0 1px #3a3c41, 0 22px 60px rgba(17, 18, 20, .25); }
.em-stage.is-phone .em-client-top { justify-content: center; padding: .6rem; }
.em-stage.is-phone .em-client-top i { display: none; }
.em-stage.is-phone .em-client-top span { margin: 0; width: 5.5rem; height: .45rem; border-radius: 999px; background: #1d1e21; font-size: 0; }
.em-stage.is-phone .em-frame, .em-stage.is-phone .em-plain { height: min(70vh, 720px); max-height: none; }
.em-stage.is-phone .em-plain { font-size: .82rem; }
.em-hint { margin: .6rem .2rem 0; font-size: .84rem; }
.em-side { display: grid; gap: 1rem; min-width: 0; }
.em-side .panel { margin: 0; }
.em-side h2 { font-size: 1rem; margin: 0 0 .7rem; }
.em-facts dl { margin: 0 0 .9rem; display: grid; gap: .55rem; }
.em-facts dl > div { display: grid; grid-template-columns: 6.2rem minmax(0, 1fr); gap: .5rem; font-size: .88rem; }
.em-facts dt { color: var(--muted); }
.em-facts dd { margin: 0; min-width: 0; }
.em-break { overflow-wrap: anywhere; }
.em-about { font-size: .88rem; margin: 0 0 .8rem; }
.em-note { display: flex; gap: .45rem; align-items: flex-start; margin: 0 0 .9rem; padding: .6rem .7rem; border-radius: 10px; background: var(--paper); font-size: .82rem; color: var(--muted); line-height: 1.45; }
.em-note svg { flex: none; margin-top: .1rem; }
.em-vlabel { margin: 0 0 .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.em-variants { flex-wrap: wrap; overflow: visible; margin-bottom: .8rem; }
.em-acts { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.em-test p { font-size: .88rem; margin: 0 0 .8rem; }
.em-test .btn { display: inline-flex; align-items: center; gap: .4rem; }
.em-rel ul { list-style: none; margin: 0; padding: 0; display: grid; }
.em-rel li + li { border-top: 1px solid var(--line); }
.em-rel a { display: flex; gap: .6rem; align-items: center; padding: .55rem .1rem; color: inherit; text-decoration: none; }
.em-rel a:hover strong { text-decoration: underline; }
.em-rel-dot { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); }
.em-rel-dot.is-enviado { background: var(--ok); } .em-rel-dot.is-falha { background: var(--fail); }
.em-rel-b { display: grid; min-width: 0; font-size: .86rem; line-height: 1.35; }
.em-rel-b span { color: var(--muted); font-size: .8rem; }
@media (prefers-reduced-motion: reduce) { .em-client, .em-sw-k, .em-sw-k::after, .em-row { transition: none; } }

/* ---------------------------------------------------------------------
   Produção › Fila de produção (v255): um pedido por linha, sem quebra.
   Prazo em bloco grande à esquerda, cliente e peças no meio, etapa à direita.
   Grupos por "quando" (atrasados, hoje, amanhã, 7 dias, depois). Prefixo pq-.
   --------------------------------------------------------------------- */
.pq { --pq-late: var(--fail); --pq-acc: #2f6df6; padding: 1.25rem 1.25rem 1rem; }
html[data-theme="dark"] .pq { --pq-acc: #7aa2ff; }
.pq-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1rem; }
.pq-title { display: flex; align-items: center; gap: .6rem; margin: 0 0 .15rem; font-size: 1.3rem; letter-spacing: -.015em; }
.pq-title .step-ico { --tc: #c2620f; --tb: #fdeee2; }
html[data-theme="dark"] .pq-title .step-ico { --tc: #f0a06a; --tb: #35241a; }
.pq-sub { margin: 0; color: var(--muted); font-size: .92rem; }
.pq-total { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.pq-total strong { color: var(--ink); font-size: 1.05rem; }

/* Resumo: os mesmos grupos da lista, clicáveis */
.pq-sum { display: flex; gap: .5rem; overflow-x: auto; margin: 0 -.1rem 1rem; padding: .1rem .1rem .3rem; scroll-snap-type: x proximity; }
.pq-sum-i { --c: var(--muted); --b: color-mix(in srgb, var(--c) 9%, var(--card)); flex: 1 0 8.2rem; scroll-snap-align: start; display: flex; flex-direction: column; gap: .05rem; padding: .7rem .9rem .65rem; border-radius: 14px; background: var(--b); border: 1px solid color-mix(in srgb, var(--c) 22%, var(--line)); color: var(--c); text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.pq-sum-i strong { font-size: 1.75rem; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pq-sum-i span { font-size: .84rem; font-weight: 650; color: var(--ink-2); }
.pq-sum-i:hover { transform: translateY(-1px); border-color: var(--c); }
.pq-sum-i.is-zero { --c: var(--muted); opacity: .62; }
.pq-t-late { --c: var(--fail); } .pq-t-today { --c: #c2410c; } .pq-t-tomorrow { --c: #b07800; } .pq-t-week { --c: var(--ok); } .pq-t-later { --c: #5b6b86; }
html[data-theme="dark"] .pq-t-today { --c: #f59a6b; } html[data-theme="dark"] .pq-t-tomorrow { --c: #e8b653; } html[data-theme="dark"] .pq-t-later { --c: #a3b2cc; }
.pq-sum-i.pq-t-late:not(.is-zero) { background: var(--fail); border-color: var(--fail); color: #fff; }
.pq-sum-i.pq-t-late:not(.is-zero) span { color: #fff; }
html[data-theme="dark"] .pq-sum-i.pq-t-late:not(.is-zero) { background: #8e2b25; border-color: #b4423a; }

/* Filtro por etapa */
.pq-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.1rem; }
.pq-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font: inherit; font-size: .86rem; font-weight: 650; cursor: pointer; }
.pq-chip span { min-width: 1.35rem; padding: 0 .35rem; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); font-size: .76rem; text-align: center; font-variant-numeric: tabular-nums; }
.pq-chip:hover { border-color: var(--ink); color: var(--ink); }
.pq-chip.is-on, .pq-chip.is-on:hover { background: var(--ink); border-color: var(--ink); color: var(--card); }
.pq-chip.is-on span { background: color-mix(in srgb, var(--card) 22%, transparent); }

/* Grupos */
.pq-group + .pq-group { margin-top: 1.15rem; }
.pq-group[hidden] { display: none; }
.pq-gh { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .5rem; margin: 0 0 .55rem; font-size: 1rem; font-weight: 750; scroll-margin-top: 5rem; }
.pq-gdot { width: .7rem; height: .7rem; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); }
.pq-gn { padding: .02rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, var(--card)); color: var(--c); font-size: .8rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.pq-gh small { color: var(--muted); font-size: .8rem; font-weight: 500; }
.pq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

/* Linha do pedido */
.pq-row[hidden] { display: none; }
.pq-link { display: grid; grid-template-columns: 5.9rem minmax(0, 1fr); grid-template-areas: "when main" "when stage"; gap: .55rem .85rem; align-items: center; padding: .55rem .7rem .55rem .55rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: inherit; text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.pq-link:hover { border-color: color-mix(in srgb, var(--ink) 45%, var(--line)); box-shadow: var(--shadow); transform: translateY(-1px); }
.pq-row.is-late .pq-link { border-color: color-mix(in srgb, var(--fail) 40%, var(--line)); background: linear-gradient(90deg, color-mix(in srgb, var(--fail) 5%, var(--card)), var(--card) 45%); }

/* Bloco do prazo: a primeira coisa que o olho encontra */
.pq-when { --c: var(--ok); --bg: var(--ok-bg); grid-area: when; align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .05rem; min-height: 4.9rem; padding: .45rem .3rem; border-radius: 12px; background: var(--bg); color: var(--c); text-align: center; line-height: 1.1; }
.pq-kick { font-size: .7rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.pq-big { font-size: 1.35rem; font-weight: 850; letter-spacing: -.02em; white-space: nowrap; }
.pq-foot { font-size: .75rem; font-weight: 600; opacity: .85; white-space: nowrap; }
.is-warn > .pq-link .pq-when { --c: var(--warn); --bg: var(--warn-bg); }
.is-urgent > .pq-link .pq-when { --c: var(--fail); --bg: var(--fail-bg); }
.is-late > .pq-link .pq-when { --c: #fff; --bg: var(--fail); }
html[data-theme="dark"] .is-late > .pq-link .pq-when { --c: #fff; --bg: #8e2b25; }

.pq-main { grid-area: main; display: grid; gap: .2rem; min-width: 0; }
.pq-who { font-size: 1.04rem; font-weight: 750; letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-meta { display: flex; align-items: center; gap: .5rem; min-width: 0; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; }
.pq-code { font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.pq-meta .tag-loja { margin: 0; }
.pq-total-post { color: var(--warn); font-weight: 650; }
.pq-post { display: inline-flex; align-items: center; flex: none; padding: .08rem .5rem; border-radius: 999px; background: var(--warn-bg); color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 28%, transparent); font-size: .72rem; font-weight: 650; letter-spacing: .01em; }
.pq-ch { display: inline-flex; align-items: center; gap: .25rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pq-ch svg { flex: none; opacity: .75; }
.pq-items { display: flex; align-items: center; gap: .3rem; min-width: 0; overflow: hidden; }
.pq-item, .pq-count, .pq-more { flex: 0 1 auto; min-width: 0; padding: .1rem .5rem; border-radius: 7px; background: color-mix(in srgb, var(--ink) 6%, var(--card)); color: var(--ink-2); font-size: .8rem; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-item b { font-weight: 800; color: var(--ink); }
.pq-count { flex: none; background: transparent; padding-left: 0; padding-right: .1rem; color: var(--muted); font-weight: 650; }
.pq-more { flex: none; font-weight: 750; }
.pq-flag { justify-self: start; display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; border-radius: 999px; background: var(--ink); color: var(--card); font-size: .74rem; font-weight: 700; white-space: nowrap; }

/* Etapa */
.pq-stage { grid-area: stage; display: flex; align-items: center; gap: .6rem; min-width: 0; }
.pq-st-l { display: flex; align-items: baseline; gap: .4rem; white-space: nowrap; }
.pq-st-k { font-size: .68rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pq-st-l strong { font-size: .95rem; font-weight: 750; }
.pq-st-s { min-width: 0; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-track { display: inline-flex; gap: 3px; flex: none; }
.pq-track i { display: block; width: 1.05rem; height: .4rem; border-radius: 3px; background: color-mix(in srgb, var(--ink) 11%, var(--card)); }
.pq-track i.done { background: color-mix(in srgb, var(--pq-acc) 45%, var(--card)); }
.pq-track i.now { background: var(--pq-acc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--pq-acc) 25%, transparent); }
.is-start .pq-st-l strong { color: var(--pq-acc); }
.is-wait .pq-st-l strong { color: var(--warn); }
.is-ready .pq-st-l strong { color: var(--ok); }
.is-packed .pq-st-l strong { color: var(--ok); }
.is-packed .pq-st-l strong::before { content: "\2713\00a0"; }
.pq-go { display: none; color: var(--muted); }
.pq-link:hover .pq-go { color: var(--ink); }

.pq-empty { margin: .5rem 0 0; color: var(--muted); }
.pq-how { margin-top: 1.1rem; font-size: .85rem; color: var(--muted); }
.pq-how summary { cursor: pointer; font-weight: 650; width: max-content; }
.pq-how p { margin: .4rem 0 0; max-width: 80ch; }

@media (min-width: 720px) {
    .pq-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
}
@media (min-width: 1000px) {
    .pq-link { grid-template-columns: 7rem minmax(0, 1fr) 15.5rem 1.2rem; grid-template-areas: "when main stage go"; gap: 1.1rem; padding: .5rem 1rem .5rem .5rem; }
    .pq-when { min-height: 4.6rem; }
    .pq-stage { flex-direction: column; align-items: flex-start; justify-content: center; gap: .35rem; padding-left: 1.1rem; border-left: 1px solid var(--line); align-self: stretch; }
    .pq-st-l { flex-direction: column; gap: 0; }
    .pq-st-l strong { font-size: 1.02rem; }
    .pq-st-s { max-width: 100%; }
    .pq-go { grid-area: go; display: inline-flex; }
}
@media (max-width: 420px) {
    .pq { padding: 1rem .8rem .8rem; }
    .pq-link { grid-template-columns: 5.2rem minmax(0, 1fr); gap: .45rem .7rem; }
    .pq-big { font-size: 1.2rem; }
    .pq-track i { width: .8rem; }
}
@media (prefers-reduced-motion: reduce) { .pq-link, .pq-sum-i { transition: none; } .pq-link:hover, .pq-sum-i:hover { transform: none; } }
.pq-item { max-width: 17rem; }
.pq-items .pq-item:first-of-type { flex-shrink: 0; max-width: 60%; }
@media (max-width: 999px) {
    .pq-filter { flex-wrap: nowrap; overflow-x: auto; margin-right: -1.25rem; padding-right: 1.25rem; padding-bottom: .2rem; scrollbar-width: none; }
    .pq-chip { flex: none; }
    .pq-who { white-space: normal; overflow: visible; line-height: 1.25; }
    .pq-items { flex-wrap: wrap; overflow: visible; }
    .pq-item, .pq-items .pq-item:first-of-type { max-width: 100%; flex-shrink: 1; white-space: normal; line-height: 1.3; padding-block: .18rem; }
    .pq-meta { flex-wrap: wrap; row-gap: .1rem; white-space: normal; }
    .pq-stage { flex-wrap: wrap; gap: .3rem .6rem; }
    .pq-st-s { display: none; }
    .pq-track { flex-shrink: 1; min-width: 0; }
}
/* Fila de produção: protótipo dentro da fila (v256). O mesmo time faz protótipo e produção. */
.pq-lane { display: inline-flex; align-items: center; gap: .35rem; padding-left: .7rem; margin-left: .3rem; border-left: 1px solid var(--line); }
.pq-lane-l { font-size: .68rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-right: .1rem; white-space: nowrap; }
.pq-lane-proto .pq-lane-l { color: #0f766e; }
html[data-theme="dark"] .pq-lane-proto .pq-lane-l { color: #6fd0cc; }
.pq-ask { display: flex; align-items: baseline; gap: .45rem; min-width: 0; padding: .28rem .6rem; border-radius: 8px; background: var(--warn-bg); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); font-size: .82rem; }
.pq-ask-k { flex: none; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); }
.pq-ask-t { min-width: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: italic; }
.pq-okv { justify-self: start; display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 650; color: #0f766e; }
html[data-theme="dark"] .pq-okv { color: #6fd0cc; }
.is-fix .pq-st-l strong { color: #c2410c; }
html[data-theme="dark"] .is-fix .pq-st-l strong { color: #f59a6b; }
.is-start .pq-st-l strong { color: #0f766e; }
html[data-theme="dark"] .is-start .pq-st-l strong { color: #6fd0cc; }
.pq-row.is-wait .pq-link { border-style: dashed; background: color-mix(in srgb, var(--paper) 60%, var(--card)); }
.pq-row.is-wait .pq-who, .pq-row.is-wait .pq-items { opacity: .78; }
.pq-st-p { font-weight: 600; color: var(--ink-2); }
.pq-st-p.is-slow { color: var(--warn); }
@media (max-width: 999px) {
    .pq-st-p { display: block; flex-basis: 100%; }
    .pq-ask { flex-wrap: wrap; row-gap: .1rem; }
    .pq-ask-t { white-space: normal; }
    .pq-lane { flex: none; }
}
.pq-st-p { white-space: normal; line-height: 1.3; }
@media (min-width: 1000px) {
    .pq-filter { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .45rem .9rem; }
    .pq-filter > .pq-chip { grid-row: 1 / span 3; align-self: start; }
    .pq-lane { grid-column: 2; display: flex; flex-wrap: wrap; margin: 0; padding: 0; border: 0; }
    .pq-lane-l { width: 5.6rem; flex: none; }
}

/* v258 · Fotos do produto: principal destacada e ações por foto */
:root { --sxp-gold: #a8730f; --sxp-gold-soft: #fbf1dc; --sxp-gold-line: #ecd29c; }
html[data-theme="dark"] { --sxp-gold: #f2c25c; --sxp-gold-soft: #2e2615; --sxp-gold-line: #5a4721; }
.sx-ph { position: relative; padding: .4rem; border: 1px solid transparent; border-radius: calc(var(--radius-sm) + 4px); transition: border-color .15s ease, background-color .15s ease; }
.sx-ph:hover { border-color: var(--line); background: var(--card); }
.sx-ph.is-cover { border-color: var(--sxp-gold-line); background: var(--sxp-gold-soft); }
.sx-ph-img { position: relative; display: block; }
.sx-ph.is-cover .sx-ph-img img { border-color: var(--sxp-gold); box-shadow: 0 0 0 1px var(--sxp-gold); }
.sx-ph-star { position: absolute; left: .35rem; top: .35rem; display: inline-flex; align-items: center; gap: .25rem; padding: .18rem .5rem .18rem .4rem; border-radius: 999px; background: var(--sxp-gold); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .01em; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
html[data-theme="dark"] .sx-ph-star { color: #1b1608; }
.sx-ph-star svg { width: 12px; height: 12px; }
.sx-ph figcaption { gap: .4rem; }
.sx-ph-act { display: grid; gap: .1rem; width: 100%; }
.sx-ph-act form { margin: 0; }
.sx-ph-btn { display: flex; align-items: center; gap: .35rem; width: 100%; min-height: 30px; padding: .25rem .4rem; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: inherit; font-size: .8rem; font-weight: 500; text-align: left; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.sx-ph-btn svg { flex: none; width: 14px; height: 14px; opacity: .75; }
.sx-ph-btn:hover { background: var(--paper); color: var(--ink); }
.sx-ph-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.sx-ph-btn.is-main { color: var(--sxp-gold); font-weight: 650; }
.sx-ph-btn.is-main:hover { background: var(--sxp-gold-soft); color: var(--sxp-gold); }
.sx-ph-btn.is-danger { color: var(--fail); }
.sx-ph-btn.is-danger:hover { background: var(--fail-bg); color: var(--fail); }
.sx-ph.is-cover .sx-ph-btn:hover { background: var(--card); }
.sx-phs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.sx-phs-var { grid-template-columns: repeat(auto-fill, minmax(150px, 170px)); }
@media (max-width: 520px) { .sx-phs, .sx-phs-var { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; } .sx-ph-btn { min-height: 36px; } }
@media (prefers-reduced-motion: reduce) { .sx-ph, .sx-ph-btn { transition: none; } }

/* v260 · Loja › Coleções (prefixo kl-). O nome da coleção usa a mesma serifa itálica da loja. */
@font-face { font-family: "Lora"; font-weight: 400 700; font-style: italic; font-display: swap; src: url("../fonts/Lora-Italic-Variable.woff") format("woff"); }
:root { --kl-acc: #8b604c; --kl-soft: #f6eee8; --kl-line: #e8d6ca; --kl-serif: "Lora", Georgia, "Times New Roman", serif; }
html[data-theme="dark"] { --kl-acc: #e2b8a0; --kl-soft: #2a211c; --kl-line: #4a3a30; }
.kl-state { display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .6rem .18rem .5rem; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.kl-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.kl-state.is-live { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.kl-state.is-soon { background: var(--info-bg); color: var(--info); border-color: transparent; }
.kl-state.is-ended { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
@media (prefers-reduced-motion: no-preference) {
    .kl-state.is-live i { animation: kl-beat 2.2s ease-out infinite; }
    @keyframes kl-beat { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 5px transparent; } }
}

/* Lista: cartões */
.kl-grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); margin-bottom: 1.25rem; }
.kl-card { position: relative; display: grid; grid-template-columns: 104px minmax(0, 1fr) auto; align-items: center; gap: 1.1rem; padding: 1rem 1.1rem 1rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.kl-card:hover { border-color: var(--kl-line); transform: translateY(-1px); box-shadow: var(--shadow), 0 0 0 1px var(--kl-line); }
a.kl-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.kl-card.is-draft .kl-name { color: var(--ink-2); }
.kl-art { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; width: 100%; border-radius: 14px; overflow: hidden; background: var(--kl-soft); color: var(--kl-acc); }
.kl-art img { width: 100%; height: 100%; object-fit: cover; }
.kl-art.is-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--kl-line); }
.kl-art.is-mosaic.n2 img { grid-row: 1 / -1; }
.kl-art.is-mosaic.n3 img:first-child { grid-row: 1 / -1; }
.kl-art-empty { display: grid; place-items: center; width: 100%; height: 100%; }
.kl-body { display: grid; gap: .3rem; min-width: 0; }
.kl-top { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; }
.kl-season { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--kl-acc); }
.kl-name { font-family: var(--kl-serif); font-style: italic; font-weight: 600; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.01em; overflow-wrap: anywhere; }
.kl-tag { color: var(--muted); font-size: .92rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kl-tag em { font-style: normal; opacity: .75; }
.kl-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin-top: .2rem; font-size: .84rem; color: var(--ink-2); }
.kl-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.kl-meta .ico { opacity: .6; }
.kl-go { display: grid; color: var(--muted); transform: rotate(-90deg); transition: color .15s; }
a.kl-card:hover .kl-go { color: var(--kl-acc); }
.kl-new { display: block; padding: 0; border-style: dashed; box-shadow: none; background: transparent; }
.kl-new > summary { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 1.1rem; padding: 1rem; cursor: pointer; list-style: none; border-radius: 18px; }
.kl-new > summary::-webkit-details-marker { display: none; }
.kl-new > summary:hover { background: var(--card); }
.kl-new > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.kl-new .kl-name { font-family: inherit; font-style: normal; font-size: 1.15rem; font-weight: 700; }
.kl-art-new { background: transparent; border: 1.5px dashed var(--line); color: var(--muted); }
.kl-new[open] { background: var(--card); border-style: solid; box-shadow: var(--shadow); }
.kl-new[open] .kl-art-new { background: var(--ink); border-color: var(--ink); color: var(--card); }
.kl-new-form { display: grid; gap: .2rem 1rem; padding: 0 1rem 1.1rem; border-top: 1px dashed var(--line); padding-top: 1rem; margin: 0 1rem; padding-inline: 0; }
.kl-new-form .btn { justify-self: start; margin-top: .4rem; }
.kl-tip { display: flex; gap: .55rem; align-items: flex-start; color: var(--muted); font-size: .9rem; }
.kl-tip .ico { flex: none; margin-top: .15rem; }

/* Editor */
.kl-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.kl-head-row h1 { margin: 0; font-family: var(--kl-serif); font-style: italic; font-weight: 600; letter-spacing: -.01em; }
.kl-head .muted { margin-bottom: .4rem; }
.kl-status { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .8rem 1rem; align-items: center; padding: 1rem 1.15rem; margin-bottom: 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.kl-status-ico { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 14px; background: var(--paper); color: var(--muted); }
.kl-status.is-live { border-color: color-mix(in srgb, var(--ok) 30%, var(--line)); }
.kl-status.is-live .kl-status-ico { background: var(--ok-bg); color: var(--ok); }
.kl-status.is-soon .kl-status-ico { background: var(--info-bg); color: var(--info); }
.kl-status.is-ended .kl-status-ico { background: var(--warn-bg); color: var(--warn); }
.kl-status-t p { margin: 0; }
.kl-status-h { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; }
.kl-status-p { display: inline-flex; align-items: center; gap: .35rem; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.kl-status-x { margin-top: .3rem !important; font-size: .9rem; color: var(--muted); line-height: 1.45; }
.kl-status-a { grid-column: 1 / -1; margin: 0; }
.kl-status-a .btn { width: 100%; }
.kl-need { display: flex; align-items: center; gap: .45rem; margin: -.6rem 0 1.25rem; font-size: .88rem; color: var(--warn); }
.kl-layout { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); }
.kl-main { min-width: 0; }
.kl-sec { scroll-margin-top: 90px; }
.kl-sec-h { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1rem; }
.kl-sec-h .h-sm { margin: .1rem 0 .1rem; font-size: 1.08rem; }
.kl-sec-h .hint { margin: 0; }
.kl-sec-i { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; flex: none; border-radius: 12px; background: var(--kl-soft); color: var(--kl-acc); }
.kl-sec .intake-form { max-width: none; }
.kl-story { min-height: 10rem; line-height: 1.6; resize: vertical; }
.kl-count { display: flex; justify-content: space-between; gap: 1rem; }
.kl-count span:last-child { flex: none; font-variant-numeric: tabular-nums; }
.kl-dates { margin: .4rem 0 .9rem; padding: .9rem 1rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.kl-dates legend { padding: 0 .4rem; font-weight: 700; font-size: .92rem; }
.kl-after { display: flex; gap: .55rem; align-items: flex-start; margin: .6rem 0 0; font-size: .86rem; color: var(--ink-2); line-height: 1.5; }
.kl-after .ico, .kl-need .ico { flex: none; margin-top: .15rem; color: var(--kl-acc); }
.kl-need .ico { color: inherit; margin-top: 0; }

/* Peças: lista para marcar */
.kl-pick-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .7rem; }
.kl-pick-all { display: inline-flex; gap: .4rem; }
.kl-pick { list-style: none; margin: 0 0 .4rem; padding: 0; display: grid; gap: .55rem; grid-template-columns: minmax(0, 1fr); }
.kl-piece { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: .8rem; padding: .55rem .8rem .55rem .55rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.kl-piece:hover { border-color: var(--kl-line); }
.kl-piece input, .kl-pp-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.kl-piece-img { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--paper); color: var(--muted); }
.kl-piece-img img { width: 100%; height: 100%; object-fit: cover; }
.kl-piece-t { display: grid; gap: .05rem; min-width: 0; line-height: 1.3; }
.kl-piece-t strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kl-piece.is-off .kl-piece-img { opacity: .6; }
.kl-check { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 8px; border: 1.5px solid var(--line); color: transparent; background: var(--card); transition: background-color .15s, border-color .15s, color .15s; }
.kl-piece:has(input:checked) { border-color: var(--kl-acc); background: var(--kl-soft); box-shadow: 0 0 0 1px var(--kl-acc); }
.kl-piece:has(input:checked) .kl-check, .kl-pp-chip:has(input:checked) .kl-check { background: var(--kl-acc); border-color: var(--kl-acc); color: var(--card); }
.kl-piece:has(input:focus-visible), .kl-pp-chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Capa */
.kl-cover { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
.kl-art-lg { max-width: 240px; border-radius: 16px; }
.kl-cover-a { display: grid; gap: .6rem; justify-items: start; }
.kl-cover-a form { margin: 0; }
.kl-cover-s { display: grid; gap: .1rem; margin: 0; }
.kl-up-btn { position: relative; cursor: pointer; gap: .4rem; }
.kl-up-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.kl-up-btn:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.kl-del { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.kl-del .h-sm { margin-top: 0; }
.kl-del form { margin: 0; }
.kl-del .btn { color: var(--fail); border-color: color-mix(in srgb, var(--fail) 45%, var(--line)); }
.kl-del .btn:hover { background: var(--fail-bg); color: var(--fail); }

/* Prévia da faixa da vitrine (cores da loja, fixas nos dois temas) */
.kl-aside { min-width: 0; }
.kl-aside-l { margin: 0 0 .5rem; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kl-prev { display: grid; overflow: hidden; border-radius: 18px; background: #fcfaf7; color: #2a2826; border: 1px solid rgba(46, 46, 46, .12); box-shadow: var(--shadow); }
.kl-prev-art { display: grid; aspect-ratio: 1 / 1; background: #efe6dd; overflow: hidden; }
.kl-prev-art img { width: 100%; height: 100%; object-fit: cover; }
.kl-prev-art.is-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; background: #e5d8cc; }
.kl-prev-art.is-mosaic.n2 img { grid-row: 1 / -1; }
.kl-prev-art.is-mosaic.n3 img:first-child { grid-row: 1 / -1; }
.kl-prev-art .kl-art-empty { color: #a89c94; }
.kl-prev-b { display: grid; gap: .35rem; padding: 1.1rem 1.2rem 1.25rem; }
.kl-prev-b p { margin: 0; }
.kl-prev-eye { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #8b604c; }
.kl-prev-name { font-family: var(--kl-serif); font-style: italic; font-size: 2rem; line-height: 1.05; color: #2a2826; overflow-wrap: anywhere; }
.kl-prev-tag { font-weight: 600; font-size: .95rem; line-height: 1.4; }
.kl-prev-story { font-size: .85rem; line-height: 1.55; color: #5f5a55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.kl-prev-cta { display: flex; align-items: center; gap: .7rem; margin-top: .45rem !important; }
.kl-prev-cta span { padding: .5rem 1rem; border-radius: 999px; background: #2e2e2e; color: #fff; font-size: .82rem; font-weight: 600; }
.kl-prev-cta small { color: #5f5a55; font-size: .8rem; }
.kl-aside-h { margin-top: .6rem; }

/* Cadastro do produto: chips das coleções */
.kl-pp .h-sm { margin-top: 0; }
.kl-pp-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0 .2rem; }
.kl-pp-chip { position: relative; display: inline-flex; align-items: center; gap: .6rem; padding: .5rem .85rem .5rem .55rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color .15s, background-color .15s; }
.kl-pp-chip:hover { border-color: var(--kl-line); }
.kl-pp-chip:has(input:checked) { border-color: var(--kl-acc); background: var(--kl-soft); }
.kl-pp-t { display: grid; gap: .2rem; justify-items: start; line-height: 1.2; }
.kl-pp-t strong { font-family: var(--kl-serif); font-style: italic; font-size: 1.05rem; }
.kl-pp-t .kl-state { font-size: .68rem; padding: .08rem .45rem .08rem .4rem; }

@media (min-width: 640px) {
    .kl-status { grid-template-columns: auto minmax(0, 1fr) auto; }
    .kl-status-a { grid-column: auto; }
    .kl-status-a .btn { width: auto; }
    .kl-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kl-cover { grid-template-columns: 200px minmax(0, 1fr); }
    .kl-new-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: start; }
    .kl-new-form .btn { margin-top: 1.95rem; }
}
@media (min-width: 900px) {
    .kl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kl-new[open] { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
    .kl-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
    .kl-aside { position: sticky; top: 84px; }
}
@media (max-width: 520px) {
    .kl-card { grid-template-columns: 76px minmax(0, 1fr); gap: .85rem; padding: .85rem; }
    .kl-go { display: none; }
    .kl-new > summary { grid-template-columns: 76px minmax(0, 1fr); gap: .85rem; padding: .85rem; }
    .kl-name { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { .kl-card, .kl-piece, .kl-check, .kl-pp-chip { transition: none; } }

/* ===== v261 · Telas largas no computador: todo o painel usa a mesma largura do Painel inicial ===== */
@media (min-width: 1280px) {
    .page-admin .admin-bar-inner, .page-admin .admin-main { max-width: 1720px; }
    .page-admin .admin-bar-inner { padding-left: 2rem; padding-right: 2rem; }
    .page-admin .admin-main { padding-left: 2rem; padding-right: 2rem; }
}

/* v261 · Abas da Loja: o que não cabe vai para "Mais" (app.js). Sem JS, as abas continuam rolando de lado. */
.lj-tabs.is-fit { flex: 1 1 0; overflow: visible; }
.lj-tabs a.is-folded { display: none; }
.lj-more { position: relative; flex: none; }
.lj-more[hidden], .lj-more .lj-badge[hidden] { display: none; }
.lj-more > summary { list-style: none; display: inline-flex; align-items: center; gap: .4rem; padding: .75rem .85rem .8rem; border-radius: 10px 10px 0 0; color: var(--muted); font-weight: 650; font-size: .93rem; white-space: nowrap; cursor: pointer; user-select: none; transition: color .15s, background .15s; }
.lj-more > summary::-webkit-details-marker { display: none; }
.lj-more > summary:hover, .lj-more[open] > summary { color: var(--ink); background: var(--viz-hover); }
.lj-more > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.lj-more > summary .ico { opacity: .7; transition: transform .15s; }
.lj-more[open] > summary .ico { transform: rotate(180deg); }
.lj-more > .lj-more-panel { position: absolute; left: auto; right: 0; top: calc(100% + .35rem); margin: 0; min-width: 14rem; box-shadow: 0 12px 32px rgba(17, 18, 20, .18); }
.lj-more-panel a { justify-content: flex-start; gap: .6rem; color: var(--ink); }
.lj-more-panel a span { flex: 1 1 auto; }
html[data-theme="dark"] .lj-more > .lj-more-panel { box-shadow: 0 12px 32px rgba(0, 0, 0, .55); }
@media (max-width: 599px) { .lj-more > summary { padding: .7rem .7rem .75rem; } }

/* v261 · Pedido personalizado no computador largo: trabalho à esquerda, pedido e entrega à direita */
@media (min-width: 1280px) {
    .ox-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 31%); gap: 0 1.25rem; align-items: start; }
    .ox-work { grid-column: 1; grid-row: 1; min-width: 0; }
    .ox-ref { grid-column: 2; grid-row: 1; min-width: 0; }
}

/* v261 · Formulários da Loja no computador largo: os campos se distribuem em colunas em vez de esticar */
@media (min-width: 1280px) {
    .sx-basic, .kl-pres { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1.75rem; align-items: start; }
    .sx-basic > *, .kl-pres > * { grid-column: 1; }
    .sx-basic > .sx-desc-f, .kl-pres > .kl-story-f { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; align-self: stretch; }
    .sx-desc-f textarea, .kl-story-f textarea { flex: 1 1 auto; min-height: 12rem; }
    .sx-basic > .sx-save, .kl-pres > .sx-save { grid-column: 1 / -1; }
    .sx-price, .sx-dims { max-width: 60rem; }
    .sx-price .grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
    .sx-dims .grid-2 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sx-dims > .field { max-width: 40rem; }
    .sx-addph { max-width: 44rem; }
    .kl-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1500px) {
    .kl-layout { grid-template-columns: minmax(0, 1fr) 360px; }
    .kl-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* v261 · Cupons e telas do Sistema no computador largo */
@media (min-width: 1280px) {
    .cp-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 1.5rem 2.5rem; }
    .cp-form > .cp-set { align-content: start; }
    .cp-form > .cp-set + .cp-set { padding-left: 2.5rem; border-left: 1px solid var(--line); }
    .cp-form > .cp-actions { grid-column: 1 / -1; }
    .pay-form { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2rem; align-items: start; }
    .pay-form > .pkg-actions { grid-column: 1 / -1; }
    .panel-form { max-width: 48rem; }
    .nt-events { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem 2rem; }
    .nt-events > .nt-master, .nt-events > div { grid-column: 1 / -1; }
    .nt-events > .nt-master { padding-bottom: .6rem; border-bottom: 1px solid var(--line); font-weight: 650; }
    .tm-cols { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 0 1.25rem; align-items: start; }
    .tm-cols > .panel-narrow { max-width: none; }
}
html[data-theme="dark"] pre.code { background: #22242a; color: #e6e4de; }
.od-lcp { font-size: .82rem; font-weight: 600; color: var(--ok); }
/* v262 · No computador largo: código e regras lado a lado; "Vale para" ocupa a linha de baixo inteira, para as peças caberem. */
@media (min-width: 1280px) {
    .cp-form > .cp-set.cp-scope { order: 1; grid-column: 1 / -1; padding: 1.5rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
    .cp-form > .cp-actions { order: 2; }
}

/* Métricas › Ao vivo (prefixo vv-): quem está na loja agora. Animações só com transform/opacity. */
.vv { --mp-0: #ebe9e3; --mp-1: #d5e4f7; --mp-2: #a8c8f0; --mp-3: #6aa2e5; --mp-4: #2c78d6; --mp-5: #194d93; --mp-edge: #ffffff; --vv-live: #e0483e; --vv-live-soft: rgba(224, 72, 62, .12); --vv-ok: #1f9d5c; --vv-pin: #e2632a; --vv-pin-ring: rgba(226, 99, 42, .35); }
html[data-theme="dark"] .vv { --mp-0: #2b2e34; --mp-1: #1c3253; --mp-2: #214b82; --mp-3: #2c69ba; --mp-4: #4b90e6; --mp-5: #95c2f4; --mp-edge: #1c1e22; --vv-live: #ff6b5f; --vv-live-soft: rgba(255, 107, 95, .16); --vv-ok: #4fd08e; --vv-pin: #ff8b4f; --vv-pin-ring: rgba(255, 139, 79, .4); }
.vv-warn { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 14px; border: 1px solid #f1d39a; background: #fdf6e7; color: #6b4a00; font-size: .88rem; line-height: 1.45; }
.vv-warn .ico { flex: none; margin-top: .05rem; }
html[data-theme="dark"] .vv-warn { background: #2c2416; border-color: #5a4720; color: #ecc977; }

.vv-hero { position: relative; display: grid; gap: 1.2rem; margin-bottom: 1rem; padding: 1.35rem 1.35rem 1.15rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.vv-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--vv-live), #f29a52 55%, var(--mx-acc)); }
.vv-now { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; min-width: 0; }
.vv-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .7rem .3rem .55rem; border-radius: 999px; background: var(--vv-live-soft); color: var(--vv-live); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.vv-badge time { font-weight: 650; letter-spacing: .02em; color: var(--muted); font-variant-numeric: tabular-nums; text-transform: none; }
.vv-rec { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--vv-live); }
.vv-rec::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--vv-live); animation: vv-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite; }
.vv-badge.is-off { background: var(--paper); color: var(--muted); }
.vv-badge.is-off .vv-rec, .vv-badge.is-off .vv-rec::after { background: var(--muted); animation: none; }
@keyframes vv-ping { 0% { transform: scale(1); opacity: .65; } 80%, 100% { transform: scale(2.8); opacity: 0; } }
.vv-count { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .8rem; }
.vv-big { display: inline-block; font-size: clamp(3.2rem, 13vw, 4.6rem); font-weight: 800; letter-spacing: -.045em; line-height: .95; font-variant-numeric: tabular-nums; }
.vv-big-l { font-size: 1.05rem; font-weight: 650; color: var(--ink-2); }
.vv-sub { font-size: .86rem; color: var(--muted); line-height: 1.4; min-height: 1.2em; }
.is-bump { animation: vv-bump .45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes vv-bump { 0% { transform: translateY(6px); opacity: .35; } 100% { transform: none; opacity: 1; } }

.vv-spark { position: relative; min-width: 0; padding: .65rem .7rem .45rem; background: var(--mx-soft); border-radius: 14px; }
html[data-theme="dark"] .vv-spark { background: rgba(255, 255, 255, .035); }
.vv-spark-c { display: flex; justify-content: space-between; gap: .5rem; margin: 0 .1rem .45rem; font-size: .74rem; font-weight: 650; color: var(--muted); }
.vv-spark-c span:last-child { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vv-spark-g { display: block; width: 100%; height: 86px; }
.vv-bar { fill: var(--mx-acc); opacity: .5; transition: opacity .2s; }
.vv-bar.is-zero { fill: var(--viz-axis, #c9c7c0); opacity: .45; }
.vv-bar.is-now { fill: var(--vv-live); opacity: 1; }
.vv-bar:hover { opacity: 1; }
.vv-spark-x { display: flex; justify-content: space-between; margin: .3rem .1rem 0; font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.vv-main { display: grid; gap: 1rem; margin-bottom: 1rem; }
.vv-map { margin-bottom: 0; }
.vv-map::before { background: linear-gradient(90deg, var(--mp-4), var(--vv-pin)); }
.vv-stage .mp-svg { max-height: 600px; }
.vv-map .mp-uf { cursor: default; }
.vv-map .mp-uf.is-live { stroke: var(--mp-edge); }
.vv-arc { fill: none; stroke: var(--vv-pin); stroke-width: 1.6px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .55;
          animation: mp-draw 1.2s cubic-bezier(.3, .7, .2, 1) forwards; transition: opacity .4s; }
.vv-arc.is-out { opacity: 0; }
.vv-pin { transition: opacity .4s; }
.vv-pin.is-out { opacity: 0; }
.vv-pin-c { fill: var(--vv-pin); stroke: var(--mp-edge); stroke-width: 2.5px; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: center; }
.vv-pin.is-in .vv-pin-c { animation: mp-pop .5s cubic-bezier(.3, 1.5, .5, 1) both; }
.vv-pin-w { fill: var(--vv-pin-ring); transform-box: fill-box; transform-origin: center; animation: vv-wave 2.2s ease-out infinite; }
@keyframes vv-wave { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.vv-pin-t { font-size: 17px; font-weight: 800; text-anchor: middle; fill: #fff; pointer-events: none; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .vv-pin-t { fill: #1a1308; }
.vv-key-pin { width: 12px; height: 12px; border-radius: 50%; background: var(--vv-pin); box-shadow: 0 0 0 3px var(--vv-pin-ring); }

.vv-side { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.vv-card { min-width: 0; padding: 1.1rem 1.15rem 1.15rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.vv-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.vv-card-h h2 { margin: 0; font-size: 1.02rem; font-weight: 750; letter-spacing: -.01em; }
.vv-card-n { font-size: .8rem; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
.vv-none { margin: 0; font-size: .84rem; color: var(--muted); }
.vv-none[hidden] { display: none; }
.vv-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.vv-rank li { display: grid; grid-template-columns: 2.1rem 1fr auto; align-items: center; gap: .65rem; padding: .35rem .3rem; border-radius: 10px; }
.vv-rank li strong { font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.vv-rank-n { min-width: 0; font-size: .9rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vv-rank li.is-unk .vv-rank-n { color: var(--muted); font-weight: 500; }
.vv-abroad { margin-top: .9rem; padding-top: .8rem; border-top: 1px dashed var(--line); }
.vv-abroad[hidden] { display: none; }
.vv-abroad h3 { margin: 0 0 .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vv-abroad ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.vv-abroad li { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .55rem .3rem .35rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .84rem; font-weight: 600; }
.vv-abroad li strong { font-variant-numeric: tabular-nums; }
.vv-cc { display: inline-grid; place-items: center; min-width: 1.7rem; height: 1.3rem; padding: 0 .25rem; border-radius: 6px; background: var(--card); border: 1px solid var(--line); font-size: .68rem; font-weight: 800; letter-spacing: .04em; color: var(--ink-2); }

.vv-src { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.vv-src li { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 6px; column-gap: .6rem; row-gap: .3rem; align-items: center; }
.vv-src-n { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; }
.vv-src li strong { font-variant-numeric: tabular-nums; }
.vv-src-t { grid-column: 1 / 3; height: 6px; border-radius: 999px; background: var(--viz-track); overflow: hidden; }
.vv-src-t i { display: block; height: 100%; border-radius: 999px; background: var(--mx-acc); transform-origin: left center; transition: transform .5s cubic-bezier(.3, .7, .2, 1); }
.vv-sdot { width: 9px; height: 9px; border-radius: 50%; background: #9aa0a8; }
.src-instagram.vv-sdot { background: #d6336c; } .src-google.vv-sdot { background: #2a78d6; } .src-whatsapp.vv-sdot { background: #1f9d5c; }
.src-facebook.vv-sdot { background: #3b5bdb; } .src-tiktok.vv-sdot { background: #222; } .src-site.vv-sdot { background: #c08a1e; } .src-direto.vv-sdot { background: #7a7f87; }
html[data-theme="dark"] .src-tiktok.vv-sdot { background: #e9e9e9; }

.vv-people { margin-bottom: 1rem; }
.vv-people-hint { margin: -.35rem 0 .8rem; font-size: .82rem; color: var(--muted); }
.vv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.vv-v { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .85rem; padding: .85rem .9rem; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); transition: opacity .35s, transform .35s, border-color .2s; }
.vv-v.is-new { animation: vv-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.vv-v.is-out { opacity: 0; transform: translateX(14px); }
.vv-v.is-rest { opacity: .62; }
.vv-v.is-buy { border-color: rgba(31, 157, 92, .45); background: linear-gradient(100deg, rgba(31, 157, 92, .08), var(--paper) 55%); }
@keyframes vv-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vv-av { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.vv-v-m { min-width: 0; display: grid; gap: .3rem; }
.vv-v-top { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .55rem; }
.vv-id { font-weight: 750; font-size: .92rem; letter-spacing: -.005em; }
.vv-chip { display: inline-flex; align-items: center; padding: .12rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); }
.vv-chip.src-instagram { color: #b02a5b; border-color: rgba(214, 51, 108, .35); background: rgba(214, 51, 108, .07); }
.vv-chip.src-google { color: #1f5fae; border-color: rgba(42, 120, 214, .35); background: rgba(42, 120, 214, .07); }
.vv-chip.src-whatsapp { color: #157a46; border-color: rgba(31, 157, 92, .35); background: rgba(31, 157, 92, .07); }
html[data-theme="dark"] .vv-chip.src-instagram { color: #f28bb2; } html[data-theme="dark"] .vv-chip.src-google { color: #8fb8f0; } html[data-theme="dark"] .vv-chip.src-whatsapp { color: #6fd6a0; }
.vv-place { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); }
.vv-place b { display: inline-grid; place-items: center; height: 1.25rem; padding: 0 .35rem; border-radius: 6px; background: var(--mp-2, #a8c8f0); color: #1d2a3a; font-size: .68rem; font-weight: 800; letter-spacing: .03em; }
html[data-theme="dark"] .vv-place b { background: #214b82; color: #e8eef7; }
.vv-place.is-unk { font-style: italic; }
.vv-v-do { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .45rem; font-size: .9rem; line-height: 1.35; }
.vv-pg { color: var(--ink-2); }
.vv-v-do a, .vv-v-do b { font-weight: 700; color: var(--ink); }
.vv-v-do a { display: inline-flex; align-items: center; gap: .25rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.vv-v-do a:hover { border-color: var(--ink); }
.vv-v-do a .ico { color: var(--muted); }
.vv-pg.pg-checkout, .vv-pg.pg-payment { color: #157a46; font-weight: 700; }
html[data-theme="dark"] .vv-pg.pg-checkout, html[data-theme="dark"] .vv-pg.pg-payment { color: #6fd6a0; }
.vv-v-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.vv-cart { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .5rem; border-radius: 999px; background: #fdf1d9; color: #8a5a00; font-weight: 700; }
html[data-theme="dark"] .vv-cart { background: #33291a; color: #e8b653; }
.vv-state { display: inline-flex; align-items: center; gap: .4rem; padding-top: .15rem; font-size: .74rem; font-weight: 700; color: var(--vv-ok); white-space: nowrap; }
.vv-state i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.vv-state i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: vv-ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
.vv-v.is-rest .vv-state { color: var(--muted); }
.vv-v.is-rest .vv-state i::after { animation: none; opacity: 0; }

.vv-empty { display: grid; justify-items: center; gap: .35rem; padding: 1.6rem 1rem 1.4rem; border: 1px dashed var(--line); border-radius: 14px; text-align: center; color: var(--muted); font-size: .86rem; }
.vv-empty[hidden] { display: none; }
.vv-empty strong { color: var(--ink); font-size: .98rem; }
.vv-empty-i { display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: .25rem; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); }
.vv .mx-scope a { color: inherit; }

@media (min-width: 760px) {
    .vv-hero { grid-template-columns: minmax(260px, 4fr) minmax(0, 6fr); align-items: center; padding: 1.5rem 1.6rem 1.3rem; }
}
@media (min-width: 1000px) {
    .vv-main { grid-template-columns: minmax(0, 7fr) minmax(300px, 3fr); align-items: start; }
}
@media (min-width: 1280px) {
    .vv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
    .vv-hero { padding: 1.1rem 1rem 1rem; }
    .vv-card { padding: 1rem .9rem; border-radius: 16px; }
    .vv-v { grid-template-columns: auto minmax(0, 1fr); padding: .75rem; gap: .7rem; }
    .vv-av { width: 34px; height: 34px; border-radius: 10px; }
    .vv-state { grid-column: 2; padding-top: 0; }
    .vv-pin-t { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    .vv-rec::after, .vv-state i::after, .vv-pin-w { animation: none; opacity: 0; }
    .vv-arc { animation: none; stroke-dashoffset: 0; }
    .vv-pin.is-in .vv-pin-c, .vv-v.is-new, .vv-rank li, .vv-src li, .is-bump { animation: none; }
}
@media print { .vv-badge, .vv-arc { display: none !important; } .vv-pin-w { animation: none; opacity: 0; } }
.pane-loja { color: inherit; font-weight: 650; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px; }

/* =====================================================================
   v270 · Loja › Novo pedido (feito pela equipe), Cobrança do pedido, selos Equipe/Pós-pago
   ===================================================================== */
.badge-team { display: inline-flex; align-items: center; gap: .3rem; background: var(--kl-soft); color: var(--kl-acc); vertical-align: middle; }
.badge-team svg { flex: none; }
.ol-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1.25rem; }
.ol-head-row > div { min-width: 0; flex: 1 1 22rem; }
.ol-head-row > .btn { display: inline-flex; align-items: center; gap: .4rem; }
.ol-st .badge-team { margin-left: .15rem; }

.np { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.np-main { display: grid; gap: 1.1rem; min-width: 0; }
.np-step { margin: 0; padding: 1.25rem 1.3rem 1.35rem; border-radius: 18px; }
.np-step-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: .85rem; margin-bottom: 1.05rem; }
.np-step-h h2 { margin: 0 0 .15rem; font-size: 1.12rem; }
.np-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--kl-soft); color: var(--kl-acc); font-weight: 800; font-size: .95rem; font-variant-numeric: tabular-nums; }
.np-ok { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); }
.np-ok[hidden] { display: none; }
.np-optional { font-weight: 500; font-size: .8rem; color: var(--muted); margin-left: .2rem; }
.np-err { margin: .35rem 0 0; font-size: .84rem; font-weight: 600; color: var(--fail); }
.np-alert { display: flex; align-items: flex-start; gap: .6rem; margin: 0 0 1rem; padding: .8rem 1rem; border-radius: 12px; background: var(--fail-bg); color: var(--fail); font-weight: 600; }
.np-alert svg { flex: none; margin-top: .1rem; }
.np .input[aria-invalid="true"] { border-color: var(--fail); }

/* 1 · cliente */
.np-find { position: relative; margin-bottom: .9rem; }
.np-find-i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; pointer-events: none; }
.np-find-in { width: 100%; height: 48px; padding: 0 1rem 0 2.6rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .15s, background-color .15s; }
.np-find-in:focus { outline: none; border-color: var(--kl-acc); background: var(--card); }
.np-find-in::placeholder { color: var(--muted); }
.np-found { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: .35rem; list-style: none; max-height: 360px; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(17, 18, 20, .14); }
.np-found[hidden] { display: none; }
.np-found-o { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; width: 100%; padding: .6rem .65rem; border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.np-found-o:hover, .np-found-o[aria-selected="true"] { background: var(--paper); }
.np-found-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--kl-soft); color: var(--kl-acc); font-weight: 800; }
.np-found-t { display: grid; min-width: 0; }
.np-found-t strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-found-t small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-found-l { color: var(--ink-2) !important; }
.np-found-tag { padding: .12rem .5rem; border-radius: 999px; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.np-found-tag.is-store { background: var(--kl-soft); color: var(--kl-acc); }
.np-found-tag.is-custom { background: var(--info-bg); color: var(--info); }
.np-found-none { padding: .75rem .8rem; color: var(--muted); font-size: .9rem; }
.np-picked { display: flex; align-items: center; gap: .45rem; margin: -.3rem 0 .9rem; padding: .5rem .75rem; border-radius: 10px; background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.np-picked[hidden] { display: none; }
.np-fields { display: grid; gap: .1rem 1rem; grid-template-columns: minmax(0, 1fr); }
.np-fields .field { margin-bottom: .75rem; min-width: 0; }
.np-fields .hint.is-bad { color: var(--fail); font-weight: 600; }

/* 2 · peças */
.np-cart { margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.np-cart-empty { display: flex; align-items: center; gap: .55rem; margin: 0; padding: 1rem 1.1rem; color: var(--muted); font-size: .92rem; }
.np-cart-empty[hidden] { display: none; }
.np-lines { list-style: none; margin: 0; padding: 0; }
.np-line { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: start; gap: .6rem .8rem; padding: .85rem .75rem .85rem 1rem; }
.np-line-end { grid-column: 2 / -1; }
.np-line-rm { grid-column: 3; grid-row: 1; }
.np-line + .np-line { border-top: 1px solid var(--line); }
.np-line-ph { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--kl-soft); color: var(--kl-acc); }
.np-line-ph img { width: 100%; height: 100%; object-fit: cover; }
.np-line-m { display: grid; gap: .5rem; min-width: 0; }
.np-line-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; }
.np-line-top strong { font-weight: 700; }
.np-line-spec { display: grid; gap: .5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.np-line-spec.np-line-spec-1 { grid-template-columns: minmax(0, 20rem); }
.np-mini { display: grid; gap: .2rem; font-size: .76rem; font-weight: 700; color: var(--muted); }
.np-mini .input { height: 38px; padding: .3rem .6rem; font-size: .92rem; font-weight: 500; color: var(--ink); }
.np-line-end { display: flex; align-items: center; gap: .65rem; }
.np-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.np-qty-b { display: grid; place-items: center; width: 34px; height: 34px; border: 0; background: transparent; color: var(--ink); font-size: 1.1rem; font-weight: 700; cursor: pointer; border-radius: 50%; }
.np-qty-b:hover:not(:disabled) { background: var(--paper); }
.np-qty-b:disabled { color: var(--line); cursor: default; }
.np-qty-n { min-width: 1.6rem; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.np-line-sub { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.np-line-rm { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.np-line-rm:hover { background: var(--fail-bg); color: var(--fail); }
.np-shelf-bar { display: flex; align-items: center; gap: .75rem; margin-bottom: .7rem; }
.np-pq { flex: 1; min-width: 0; height: 40px; }
.np-shelf { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; grid-template-columns: minmax(0, 1fr); max-height: 520px; overflow-y: auto; }
.np-pc { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; align-items: center; gap: .75rem; width: 100%; padding: .55rem .7rem .55rem .55rem; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; }
.np-pc:hover:not(.is-out) { border-color: var(--kl-acc); }
.np-pc.is-in { border-color: var(--kl-line); background: var(--kl-soft); }
.np-pc.is-out { opacity: .55; cursor: not-allowed; }
.np-pc-ph { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--kl-soft); color: var(--kl-acc); }
.np-pc-ph img { width: 100%; height: 100%; object-fit: cover; }
.np-pc-t { display: grid; min-width: 0; }
.np-pc-t strong { font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-pc-t small { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-pc-p { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.np-pc-p b { font-size: .95rem; }
.np-pc-s { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.np-pc-s.is-low { color: var(--warn); font-weight: 700; }
.np-pc-s.is-out { color: var(--fail); font-weight: 700; }
.np-pc-add { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--card); font-size: 1.15rem; font-weight: 700; }
.np-pc-add:empty { visibility: hidden; }

/* 3 · entrega */
.np-wait { display: flex; align-items: center; gap: .55rem; margin: 0; padding: .9rem 1rem; border: 1px dashed var(--line); border-radius: 14px; font-size: .92rem; }
.np-wait[hidden] { display: none; }
.np-wait.is-busy svg { opacity: .6; transform: translateX(3px); transition: transform .6s ease-in-out, opacity .6s; }
.np-opts { display: grid; gap: .6rem; }
.np-opts:empty { display: none; }
.np-opt { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .8rem; padding: .85rem 1rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; transition: border-color .15s, background-color .15s; }
.np-opt input { position: absolute; opacity: 0; pointer-events: none; }
.np-opt:hover { border-color: var(--kl-line); }
.np-opt:has(input:checked) { border-color: var(--kl-acc); background: var(--kl-soft); }
.np-opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.np-opt:has(input:checked) .kl-check { background: var(--kl-acc); border-color: var(--kl-acc); color: var(--card); }
.np-opt .kl-check { border-radius: 50%; }
.np-opt-i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--paper); color: var(--ink-2); }
.np-opt-t { display: grid; min-width: 0; }
.np-opt-t small { color: var(--muted); font-size: .82rem; }
.np-opt-p { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.np-manual { margin-top: .75rem; padding: .9rem 1rem 1rem; border-radius: 14px; background: var(--warn-bg); }
.np-manual[hidden] { display: none; }
.np-manual-t { margin: 0 0 .7rem; color: var(--ink); }
.np-manual-t .muted { display: block; margin-top: .1rem; }
.np-manual-f { display: grid; gap: .6rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.np-manual .field label { font-size: .82rem; }

/* 4 · cobrança */
.np-ok-on { background: var(--paper); color: var(--muted); }
.np-modes { display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr); }
.np-mode { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; align-content: start; gap: .8rem; padding: .95rem 1rem; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); cursor: pointer; transition: border-color .15s, background-color .15s; }
.np-mode input { position: absolute; opacity: 0; pointer-events: none; }
.np-mode:hover { border-color: var(--kl-line); }
.np-mode:has(input:checked) { border-color: var(--kl-acc); background: var(--kl-soft); }
.np-mode:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.np-mode:has(input:checked) .kl-check { background: var(--kl-acc); border-color: var(--kl-acc); color: var(--card); }
.np-mode .kl-check { border-radius: 50%; }
.np-mode-i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--paper); color: var(--ink-2); }
.np-mode:has(input:checked) .np-mode-i { background: var(--card); color: var(--kl-acc); }
.np-mode-t { display: grid; gap: .15rem; min-width: 0; }
.np-mode-t strong { font-size: .98rem; }
.np-mode-t em { margin-left: .3rem; padding: .08rem .45rem; border-radius: 999px; font-style: normal; font-size: .68rem; font-weight: 800; letter-spacing: .02em; vertical-align: 1px; background: var(--ok-bg); color: var(--ok); }
.np-mode-postpaid .np-mode-t em { background: var(--warn-bg); color: var(--warn); }
.np-mode-t small { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.np-mode-p { display: none; margin-top: .85rem; padding: 1rem; border-radius: 14px; background: var(--paper); }
.np:has(#np-m-received:checked) .np-mode-p-received, .np:has(#np-m-postpaid:checked) .np-mode-p-postpaid { display: grid; gap: .85rem; }
.np-mode-p-postpaid { background: var(--warn-bg); }
.np-confirm { display: flex; align-items: flex-start; gap: .65rem; font-size: .9rem; font-weight: 600; cursor: pointer; }
.np-confirm input { width: 20px; height: 20px; margin: .1rem 0 0; flex: none; accent-color: var(--ink); }
.np-disc { margin-top: .9rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.np-disc summary { display: inline-flex; align-items: center; gap: .45rem; font-weight: 650; color: var(--ink-2); cursor: pointer; list-style: none; }
.np-disc summary::-webkit-details-marker { display: none; }
.np-disc summary:hover { color: var(--ink); }
.np-disc-f { display: grid; gap: .75rem; grid-template-columns: minmax(0, 1fr); margin-top: .8rem; }

/* resumo */
.np-side { min-width: 0; }
.np-sum { margin: 0; padding: 1.25rem 1.3rem; border-radius: 18px; }
.np-sum h2 { margin-bottom: .35rem; font-size: 1.05rem; }
.np-sum-who { margin: 0 0 .85rem; color: var(--muted); font-size: .92rem; }
.np-sum-who.is-set { color: var(--ink); font-weight: 700; }
.np-sum-lines { list-style: none; margin: 0 0 .85rem; padding: 0 0 .85rem; border-bottom: 1px solid var(--line); display: grid; gap: .45rem; font-size: .9rem; }
.np-sum-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.np-sl-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-sl-t b { margin-right: .3rem; font-variant-numeric: tabular-nums; }
.np-sl-p { font-variant-numeric: tabular-nums; white-space: nowrap; }
.np-sum-t { margin: 0; display: grid; gap: .4rem; }
.np-sum-t > div { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.np-sum-t > div[hidden] { display: none; }
.np-sum-t dt { font-size: .9rem; }
.np-sum-t dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.np-minus { color: var(--ok); }
.np-sum-big { margin-top: .35rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.np-sum-big dt { font-weight: 700; font-size: 1rem; }
.np-sum-big dd { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; }
.np-sum-card dt, .np-sum-card dd { color: var(--muted); font-weight: 500; font-size: .88rem; }
.np-sum-eta { display: flex; gap: .45rem; margin: .9rem 0 0; padding: .6rem .75rem; border-radius: 10px; background: var(--paper); font-size: .86rem; color: var(--ink-2); }
.np-sum-eta[hidden] { display: none; }
.np-sum-miss { margin: .9rem 0 .6rem; color: var(--warn); font-weight: 600; }
.np-sum-miss:empty { display: none; }
.np-go { width: 100%; min-height: 50px; margin-top: .6rem; font-size: 1rem; }
.np-go:disabled { opacity: .45; cursor: not-allowed; }
.np-sum-after { margin: .6rem 0 0; text-align: center; }

@media (min-width: 640px) {
    .np-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .np-span2 { grid-column: span 2; }
    .np-fields .np-city { grid-column: span 1; }
    .np-disc-f { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
    .np-line { grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; }
    .np-line-end { grid-column: 3; grid-row: 1; gap: 1rem; }
    .np-line-sub { min-width: 6.5rem; text-align: right; }
    .np-line-rm { grid-column: 4; }
    .np-line-spec { max-width: 30rem; }
}
@media (min-width: 900px) {
    .np-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .np-fields .np-span2 { grid-column: span 2; }
    .np-shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .np-modes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .np-mode { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; }
    .np-mode-i { grid-row: 1; grid-column: 1; }
    .np-mode .kl-check { grid-row: 1; grid-column: 2; }
    .np-mode-t { grid-row: 2; grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
    .np { grid-template-columns: minmax(0, 1fr) 360px; gap: 1.5rem; }
    .np-side { position: sticky; top: 84px; }
}
@media (min-width: 1500px) {
    .np { grid-template-columns: minmax(0, 1fr) 400px; }
    .np-shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
    .np-side { position: sticky; bottom: 0; z-index: 20; }
    .np-sum { border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(17, 18, 20, .12); }
    .np-sum-lines, .np-sum-who, .np-sum-eta, .np-sum-after, .np-sum h2, .np-sum-t > div:not(.np-sum-big):not(.np-sum-card) { display: none; }
    .np-sum-big { margin-top: 0; padding-top: 0; border-top: 0; }
    .np-sum-miss { margin: .4rem 0 0; }
}
@media (max-width: 599px) {
    .np-step { padding: 1rem .95rem 1.1rem; border-radius: 16px; }
    .np-step-h { gap: .65rem; }
    .np-pc { grid-template-columns: 44px minmax(0, 1fr) auto; }
    .np-pc-ph { width: 44px; height: 44px; }
    .np-pc-add { display: none; }
    .np-opt { grid-template-columns: minmax(0, 1fr) auto auto; gap: .6rem; padding: .8rem .85rem; }
    .np-opt-i { display: none; }
    .np-line-spec { grid-template-columns: minmax(0, 1fr); }
    .np-manual-f { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .np-manual-f .field:first-child { grid-column: 1 / -1; }
    .np-sum { padding: .85rem .95rem; }
}
html[data-theme="dark"] .np-found { box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
html[data-theme="dark"] .np-pc-add { background: var(--ink); color: var(--paper); }
html[data-theme="dark"] .np-sum { box-shadow: var(--shadow); }
@media (max-width: 1099px) { html[data-theme="dark"] .np-sum { box-shadow: 0 -10px 30px rgba(0, 0, 0, .5); } }
@media (prefers-reduced-motion: reduce) { .np-pc, .np-opt, .np-mode, .np-find-in, .np-wait.is-busy svg { transition: none; } }

/* Cobrança do pedido da equipe (aguardando o link ou pós-pago a receber) */
.tc { padding: 1.2rem 1.3rem 1.25rem; border: 1.5px solid var(--kl-line); background: linear-gradient(180deg, var(--kl-soft), var(--card) 70%); }
.tc.tc-post { border-color: color-mix(in srgb, var(--warn) 35%, var(--line)); background: linear-gradient(180deg, var(--warn-bg), var(--card) 70%); }
.tc-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; align-items: start; }
.tc-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--card); color: var(--kl-acc); border: 1px solid var(--kl-line); }
.tc-post .tc-ico { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }
.tc-head h2 { margin: 0 0 .25rem; font-size: 1.12rem; }
.tc-amt { grid-column: 1 / -1; display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .6rem; padding: .7rem .85rem; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.tc-amt strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.tc-note { display: flex; gap: .45rem; align-items: flex-start; margin: .85rem 0 0; font-size: .9rem; color: var(--ink-2); }
.tc-note svg { flex: none; margin-top: .2rem; color: var(--muted); }
.tc-link { display: grid; gap: .4rem; margin-top: 1rem; }
.tc-link label { font-weight: 650; }
.tc-link .input-group { flex-wrap: wrap; }
.tc-link .input-group .input { flex: 1 1 16rem; font-size: .88rem; }
.tc-link .btn { display: inline-flex; align-items: center; gap: .35rem; }
.tc-acts { display: grid; gap: .6rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.tc-box { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.tc-box summary { display: flex; align-items: center; gap: .45rem; padding: .7rem .9rem; font-weight: 650; cursor: pointer; list-style: none; }
.tc-box summary::-webkit-details-marker { display: none; }
.tc-box[open] summary { border-bottom: 1px solid var(--line); }
.tc-danger summary { color: var(--fail); }
.tc-form { display: grid; gap: .7rem; padding: .9rem; }
.tc-form .field { margin: 0; }
.tc-row { display: grid; gap: .7rem; grid-template-columns: minmax(0, 1fr); }
.tc-form .btn { justify-self: start; }
.tc-inline .btn { display: inline-flex; align-items: center; gap: .4rem; }
.od-paid-by { display: flex; gap: .4rem; align-items: flex-start; margin: -.25rem 0 .8rem; color: var(--ok); }
.od-paid-by svg { flex: none; margin-top: .2rem; }
@media (min-width: 700px) {
    .tc-head { grid-template-columns: auto minmax(0, 1fr) auto; }
    .tc-amt { grid-column: auto; display: grid; justify-items: end; gap: 0; padding: .55rem .9rem; text-align: right; }
    .tc-row { grid-template-columns: 220px minmax(0, 1fr); }
    .tc-acts { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
    .tc-acts .tc-box:first-child { grid-column: 1 / -1; }
}

/* v271 · atalho "Novo pedido" no menu principal (pedido da loja feito pela equipe) */
.admin-new { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; color: #111214; background: #f2e6dc; text-decoration: none; font-weight: 700; border-radius: 999px; transition: background-color .15s, box-shadow .15s; }
.admin-new:hover { background: #fff; }
.admin-new.is-active { background: #fff; box-shadow: 0 0 0 2px #e2b8a0; }
.admin-new:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.admin-new-lg { padding: .45rem .9rem .45rem .7rem; font-size: .92rem; white-space: nowrap; }
.admin-new-sm { display: none; }
@media (max-width: 1199px) {
    .admin-new-sm { display: inline-flex; flex: none; width: 44px; height: 44px; border-radius: 12px; margin-left: auto; }
    .admin-new-sm + .admin-burger { margin-left: 0; }
    .admin-new-lg { min-height: 48px; border-radius: 12px; font-size: 1rem; order: -1; }
}
html[data-theme="dark"] .admin-new { background: #e9d7ca; color: #111214; }
html[data-theme="dark"] .admin-new:hover, html[data-theme="dark"] .admin-new.is-active { background: #fff; }
@media (min-width: 1200px) and (max-width: 1359px) {
    .admin-new-lg > span { display: none; }
    .admin-new-lg { width: 38px; height: 38px; padding: 0; }
    .admin-nav a { padding: .45rem .5rem; font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) { .admin-new { transition: none; } }

/* v272 · contador discreto no menu (Loja: pedidos esperando a equipe); o vermelho fica só em Pendências */
.nav-count { display: inline-block; min-width: 1.35rem; padding: 0 .4rem; margin-left: .35rem; border-radius: 999px; background: #e2b8a0; color: #111214; font-size: .75rem; font-weight: 800; line-height: 1.35rem; text-align: center; }
.admin-nav a.is-active .nav-count { background: #111214; color: #fff; }
html[data-theme="dark"] .admin-nav a.is-active .nav-count { background: #111214; color: #ecebe7; }

/* v273 · entrega adiada a pedido do cliente: etiqueta calma na fila e bloco no pedido */
.pq-flag.pq-flag-calm { background: #e6eefb; color: #1f4f9c; }
html[data-theme="dark"] .pq-flag.pq-flag-calm { background: #1d2c44; color: #a9c6f5; }
.postpone-panel .pp-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; margin: .25rem 0 .85rem; }
.postpone-panel .pp-cell { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.postpone-panel .pp-cell:nth-child(2) { border-color: #b9cdf0; background: #f3f7fe; }
html[data-theme="dark"] .postpone-panel .pp-cell:nth-child(2) { border-color: #34507d; background: #1a2436; }
.postpone-panel .pp-k { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.postpone-panel .pp-cell strong, .postpone-panel .pp-cell s { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.postpone-panel .pp-cell s { color: var(--muted); font-weight: 600; }
.postpone-panel .pp-honest { display: flex; gap: .45rem; align-items: flex-start; margin: .6rem 0 0; padding: .55rem .7rem; border-radius: 10px; background: var(--warn-bg); color: var(--warn); }
.postpone-panel .pp-honest svg { flex: none; margin-top: .1rem; }
.postpone-panel form.form { margin-top: 1rem; }
@media (max-width: 720px) { .postpone-panel .pp-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* v276: previsão que o cliente vê, dentro do Prazo de envio, com a resposta pronta do WhatsApp */
.sd-cust { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin: .7rem 0 .8rem; padding: .7rem .9rem; border: 1px dashed var(--line); border-radius: 12px; background: var(--card); }
.sd-cust.is-late { border-color: var(--warn, #c98a2b); }
.sd-cust-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; flex: 1 1 18rem; }
.sd-cust-k { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.sd-cust strong { font-size: .98rem; }
.sd-cust .btn { flex: none; }

/* v278 · pedido personalizado: datas lado a lado e campos no tamanho do conteúdo (nada de campo de data com 1.600 px) */
.ord-dates { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: stretch; margin-bottom: 1.25rem; }
.ord-dates:empty { display: none; }
.ord-dates > .panel { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.ord-dates > .panel > h2 { margin-top: 0; }
.ord-dates > .panel > .dform { margin-top: auto; padding-top: 1rem; }
.ord-dates > .panel > p { max-width: 62ch; }
.ord-dates .close-noreply { margin-top: auto; }
.ord-dates .inline-form { justify-items: start; }
.dform { gap: .9rem; }
.dform .field { margin: 0; }
.dform .input { min-height: 42px; }
.dform input[type="date"] { width: 11.5rem; max-width: 100%; }
.dform .input-num { width: 6.5rem; }
.dform-dates { display: flex; flex-wrap: wrap; gap: .9rem 1rem; }
.dform .hint { margin: 0; max-width: 62ch; }
.dform .team-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
/* v289: avisos com mais de um botão (Cobrar + Dar mais prazo) quebram linha no celular */
.sla-banner .team-actions { display: flex; flex-wrap: wrap; gap: .5rem; white-space: normal; }
.sla-banner .team-actions .inline-form { margin: 0; }
.postpone-panel .pp-sum { grid-template-columns: repeat(auto-fit, minmax(7.25rem, 1fr)); }
.postpone-panel .pp-cell strong, .postpone-panel .pp-cell s { font-size: 1rem; white-space: nowrap; }
.form-cap { max-width: 46rem; }

/* v280 · pedido personalizado: os cartões de data seguem a mesma grade das colunas de baixo (calhas alinhadas)
   e o mesmo padrão de cartão: título com barra, texto pequeno, campos logo abaixo do texto. */
.ord-dates > .panel { gap: 0; }
.ord-dates > .panel > h2 { margin: 0 0 .55rem; font-size: 1.15rem; }
.ord-dates > .panel > p { font-size: .82rem; line-height: 1.5; margin: 0 0 .35rem; max-width: 62ch; }
.ord-dates > .panel > p.muted { color: var(--muted); }
.ord-dates > .panel > .dform { margin-top: .6rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.ord-dates .dform label { font-size: .85rem; }
.ord-dates .ship-how { margin-top: .6rem; }
.ord-dates .close-noreply { margin-top: .9rem; }
.ord-dates .pp-sum { margin: .1rem 0 .6rem; }
@media (min-width: 1280px) {
    /* 1ª e 2ª colunas = coluna de trabalho; 3ª = coluna do Pedido (mesma largura e mesma calha) */
    .ord-dates { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(400px, 31%); gap: 1.25rem; }
    .ord-dates > .panel:only-child { grid-column: 1 / -1; }
}
.ord-dates .close-noreply summary, .ord-dates .ship-how summary { font-size: .9rem; }
/* v283: aviso no formulário de status quando o pedido em duas partes ainda tem saldo a receber */
.st-open { display: flex; align-items: flex-start; gap: .65rem; max-width: 46rem; margin: .1rem 0 .2rem; padding: .7rem .85rem; border-radius: 12px; background: var(--warn-bg); color: var(--ink-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 26%, transparent); font-size: .86rem; line-height: 1.45; }
.st-open p { margin: 0; }
.st-open strong { color: var(--warn); font-weight: 700; }
.st-open a { color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.st-open-ico { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 16%, var(--card)); color: var(--warn); }

/* v288 · Pedidos da loja na lista de uma etapa (Em produção, Enviados, Entregues): o número do cartão bate com a lista */
.ols { margin-top: 1.6rem; scroll-margin-top: 5.5rem; }
.ols-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; margin: 0 0 .7rem; }
.ols-h h2 { display: flex; align-items: center; gap: .5rem; margin: 0; font-size: 1.05rem; font-weight: 750; letter-spacing: -.01em; }
.ols-h h2 .tag-loja { margin: 0; }
.ols-n { display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .4rem; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .78rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.ols-h .pane-all { color: var(--ink); }
.ols-h .pane-all:hover { text-decoration: underline; }
.ols-more { display: inline-block; margin-top: .8rem; color: var(--ink); }
.ols-none { display: flex; align-items: center; gap: .5rem; margin: .4rem 0 0; padding: .85rem 1.1rem; border: 1px dashed var(--line); border-radius: 14px; background: var(--card); font-size: .9rem; color: var(--muted); }

/* Produção › Dias livres (v290): janela sobre a fila com o calendário de saídas e as folgas entre elas. */
.pq-hr { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; }
.pq-calbtn { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem .45rem .8rem; border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); border-radius: 999px; background: color-mix(in srgb, var(--ok) 9%, var(--card)); color: var(--ok); font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.pq-calbtn:hover { background: var(--ok); border-color: var(--ok); color: #fff; transform: translateY(-1px); }
html[data-theme="dark"] .pq-calbtn:hover { color: #0f1a14; }
.pq-calbtn[hidden] { display: none; }
html.pc-lock { overflow: hidden; }

.pc { --pc-post: #2f6df6; --pc-local: #0f766e; --pc-free: var(--ok); width: min(1560px, calc(100vw - 2.5rem)); max-width: none; max-height: calc(100dvh - 2.5rem); padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 0 2px 6px rgba(17, 18, 20, .08), 0 40px 90px rgba(17, 18, 20, .28); overflow: hidden; }
html[data-theme="dark"] .pc { --pc-post: #7aa2ff; --pc-local: #6fd0cc; box-shadow: 0 2px 6px rgba(0, 0, 0, .5), 0 40px 90px rgba(0, 0, 0, .6); }
.pc::backdrop { background: rgba(17, 18, 20, .5); backdrop-filter: blur(4px); }
.pc[open] { animation: pc-in .22s cubic-bezier(.2, .8, .2, 1); }
.pc[open]::backdrop { animation: pc-fade .22s ease; }
@keyframes pc-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes pc-fade { from { opacity: 0; } to { opacity: 1; } }
.pc-in { max-height: calc(100dvh - 2.5rem); overflow: auto; overscroll-behavior: contain; }
.pc.is-full { width: 100vw; max-height: none; height: 100vh; border: 0; border-radius: 0; }
.pc.is-full .pc-in { max-height: 100vh; height: 100%; }

.pc-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(8px); }
.pc-hl { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.pc-ico { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 25%, transparent); }
.pc-title { margin: 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.pc-sub { margin: .1rem 0 0; color: var(--muted); font-size: .9rem; }
.pc-act { display: flex; align-items: center; gap: .5rem; flex: none; }
.pc-btn { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink-2); font: inherit; font-size: .84rem; font-weight: 650; cursor: pointer; }
.pc-btn:hover { border-color: var(--ink); color: var(--ink); }
.pc-btn[hidden] { display: none; }
.pc-x { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); border-radius: 50%; background: var(--card); color: var(--ink); cursor: pointer; }
.pc-x:hover { background: var(--ink); border-color: var(--ink); color: var(--card); }

.pc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; padding: 1.15rem 1.5rem .25rem; }
.pc-kpi { display: flex; flex-direction: column; gap: .1rem; min-width: 0; padding: .8rem 1rem .75rem; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--paper) 55%, var(--card)); }
.pc-kpi.is-free { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); background: linear-gradient(135deg, var(--ok-bg), color-mix(in srgb, var(--ok-bg) 35%, var(--card))); }
.pc-k { font-size: .7rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pc-kpi strong { font-size: 1.85rem; font-weight: 850; line-height: 1.1; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.pc-kpi strong small { font-size: 1rem; font-weight: 650; color: var(--muted); letter-spacing: 0; }
.pc-kpi.is-free strong { color: var(--ok); }
.pc-f { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.pc-bad { color: var(--fail); font-weight: 750; }

.pc-body { display: grid; gap: 1.25rem; padding: 1rem 1.5rem 1.5rem; }
.pc-legend { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; margin: 0 0 .7rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.pc-lg { display: inline-flex; align-items: center; gap: .4rem; }
.pc-lg i { width: .8rem; height: .8rem; border-radius: 4px; background: var(--c, var(--muted)); }
.pc-lg.is-free i { background: color-mix(in srgb, var(--ok) 22%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 50%, transparent); }
.pc-lg.is-post { --c: var(--pc-post); } .pc-lg.is-local { --c: var(--pc-local); } .pc-lg.is-late { --c: var(--fail); }
.pc-lg.is-off i { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 16%, transparent) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--line); }

.pc-grid { display: grid; gap: 6px; }
.pc-wk { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) repeat(2, minmax(0, .62fr)); gap: 6px; }
.pc-wh span { padding: 0 .1rem .1rem; font-size: .72rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pc-wh .is-we { opacity: .7; }
.pc-day { position: relative; display: flex; flex-direction: column; gap: .3rem; min-width: 0; min-height: 6.4rem; padding: .45rem .5rem .5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.pc-dn { display: flex; align-items: baseline; gap: .3rem; font-size: .8rem; line-height: 1.1; color: var(--muted); }
.pc-dn b { font-size: 1rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.pc-dn small { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pc-dn em { margin-left: auto; padding: .08rem .45rem; border-radius: 999px; background: var(--ink); color: var(--card); font-size: .66rem; font-style: normal; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.pc-day.is-today { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pc-day.is-past { background: transparent; border-style: dashed; opacity: .5; }
.pc-day.is-past .pc-dn b { color: var(--muted); }
.pc-day.is-off, .pc-day.is-holiday { border-color: transparent; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--ink) 4%, transparent) 0 6px, transparent 6px 12px), color-mix(in srgb, var(--paper) 70%, var(--card)); }
.pc-day.is-off .pc-dn b { color: var(--muted); }
.pc-day.is-free { border-color: color-mix(in srgb, var(--ok) 32%, var(--line)); background: color-mix(in srgb, var(--ok) 10%, var(--card)); }
.pc-day.is-free.run-first { box-shadow: inset 3px 0 0 var(--ok); }
.pc-day.is-busy { box-shadow: 0 1px 2px rgba(17, 18, 20, .05); }
.pc-run { align-self: flex-start; margin-top: auto; padding: .14rem .55rem; border-radius: 999px; background: var(--ok); color: #fff; font-size: .74rem; font-weight: 750; white-space: nowrap; }
html[data-theme="dark"] .pc-run { color: #0f1a14; }
.pc-fr { margin-top: auto; font-size: .74rem; font-weight: 650; color: var(--ok); opacity: .8; }
.pc-day.is-holiday .pc-fr { color: var(--muted); }
.pc-its { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pc-it, .pc-ti { --c: var(--pc-post); display: flex; align-items: center; gap: .3rem; min-width: 0; padding: .16rem .45rem .16rem .4rem; border-radius: 7px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 11%, var(--card)); color: var(--ink); font-size: .78rem; font-weight: 650; line-height: 1.25; text-decoration: none; transition: background-color .15s ease; }
.pc-it:hover, .pc-ti:hover { background: color-mix(in srgb, var(--c) 22%, var(--card)); }
.pc-it.is-local, .pc-ti.is-local { --c: var(--pc-local); }
.pc-it.is-late, .pc-ti.is-late { --c: var(--fail); }
.pc-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-lj { flex: none; margin-left: auto; padding: 0 .3rem; border-radius: 4px; background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--muted); font-size: .62rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.pc-mr { align-self: flex-start; padding: 0 .4rem; font-size: .74rem; font-weight: 750; color: var(--muted); }
.pc-cnt { display: none; }
.pc-note { margin: .7rem 0 0; font-size: .82rem; color: var(--muted); }

.pc-line { align-self: start; padding: 1rem 1.1rem 1.05rem; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--paper) 55%, var(--card)); }
.pc-lh { margin: 0 0 .75rem; font-size: .76rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pc-tl { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.pc-tl::before { content: ""; position: absolute; left: .42rem; top: .5rem; bottom: .5rem; width: 2px; border-radius: 2px; background: var(--line); }
.pc-tn { position: relative; display: grid; grid-template-columns: .9rem minmax(0, 1fr); gap: .7rem; align-items: start; }
.pc-tdot { position: relative; z-index: 1; width: .9rem; height: .9rem; margin-top: .3rem; border-radius: 50%; background: var(--card); border: 3px solid var(--ink); }
.pc-tn.is-gap .pc-tdot { margin-top: .65rem; border-color: var(--ok); background: var(--ok); }
.pc-tn.is-tight .pc-tdot { width: .6rem; height: .6rem; margin: .25rem 0 0 .15rem; border-width: 2px; border-color: var(--muted); }
.pc-tc { min-width: 0; }
.pc-td { display: block; font-size: .84rem; color: var(--muted); }
.pc-td b { color: var(--ink); font-weight: 750; }
.pc-td b.pc-bad { color: var(--fail); }
.pc-tis { display: flex; flex-wrap: wrap; gap: 4px; margin-top: .3rem; }
.pc-ti { display: inline-flex; max-width: 100%; }
.pc-gap { display: flex; flex-direction: column; padding: .55rem .8rem; border: 1px solid color-mix(in srgb, var(--ok) 32%, var(--line)); border-radius: 12px; background: var(--ok-bg); }
.pc-gap strong { font-size: 1rem; font-weight: 800; color: var(--ok); letter-spacing: -.01em; }
.pc-gap span { font-size: .8rem; color: var(--ink-2); }
.pc-tn.is-open .pc-gap { border-style: dashed; background: color-mix(in srgb, var(--ok-bg) 45%, var(--card)); }
.pc-tight { display: block; font-size: .78rem; font-style: italic; color: var(--muted); }
.pc-how { margin: 1rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .78rem; line-height: 1.45; color: var(--muted); }

@media (min-width: 1100px) {
    .pc-body { grid-template-columns: minmax(0, 1fr) 22rem; }
    .pc-line { position: sticky; top: 5.6rem; max-height: calc(100dvh - 9rem); overflow: auto; }
    .pc.is-full .pc-line { max-height: calc(100vh - 7rem); }
}
@media (min-width: 1500px) {
    .pc-day { min-height: 7rem; }
    .pc-it { font-size: .8rem; }
}
@media (max-width: 899px) {
    .pc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 719px) {
    .pc { width: 100vw; max-height: 100dvh; height: 100dvh; border: 0; border-radius: 0; }
    .pc-in { max-height: 100dvh; height: 100%; }
    .pc-head { padding: .8rem 1rem; }
    .pc-ico { display: none; }
    .pc-title { font-size: 1.15rem; }
    .pc-sub { font-size: .8rem; }
    .pc-btn { display: none; }
    .pc-kpis { gap: .5rem; padding: .85rem 1rem 0; }
    .pc-kpi { padding: .6rem .7rem; border-radius: 13px; }
    .pc-kpi strong { font-size: 1.45rem; }
    .pc-f { font-size: .74rem; }
    .pc-body { padding: .85rem 1rem 1.25rem; gap: 1rem; }
    .pc-legend { gap: .3rem .8rem; font-size: .72rem; }
    .pc-grid, .pc-wk { gap: 4px; }
    .pc-wk { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .pc-wh span { font-size: .62rem; letter-spacing: .02em; text-align: center; }
    .pc-day { min-height: 3.3rem; padding: .3rem .25rem; align-items: center; border-radius: 9px; gap: .15rem; }
    .pc-dn { flex-direction: column; align-items: center; gap: 0; }
    .pc-dn b { font-size: .9rem; }
    .pc-dn small { font-size: .56rem; }
    .pc-dn em { display: none; }
    .pc-day.is-today { box-shadow: 0 0 0 1.5px var(--ink); }
    .pc-its, .pc-run, .pc-fr { display: none; }
    .pc-cnt { display: grid; place-items: center; min-width: 1.25rem; height: 1.25rem; padding: 0 .25rem; border-radius: 999px; background: var(--pc-post); color: #fff; font-size: .7rem; font-weight: 800; }
    html[data-theme="dark"] .pc-cnt { color: #0f1420; }
    .pc-cnt.is-local { background: var(--pc-local); }
    .pc-cnt.is-late { background: var(--fail); }
    .pc-day.is-busy { cursor: pointer; }
    .pc-day.is-free.run-first { box-shadow: inset 2px 0 0 var(--ok); }
    .pc-line { padding: .9rem .9rem 1rem; }
}
.pc-tn.is-hl .pc-tc { animation: pc-hl 1.6s ease; }
@keyframes pc-hl { 0%, 40% { opacity: .35; } 20%, 60%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pc-tn.is-hl .pc-tc { animation: none; } .pc[open], .pc[open]::backdrop { animation: none; } .pq-calbtn { transition: none; } .pq-calbtn:hover { transform: none; } }

/* v292 · Peça convencional com opções de cor: estoque por cor (Preço e estoque) e formulário da nova cor. */
.stc-list { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: .7rem; }
.stc-row { display: grid; gap: .8rem; padding: .9rem 1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.stc-row.is-paused { opacity: .72; }
.stc-who { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.stc-name { display: grid; flex: 1; min-width: 0; line-height: 1.3; }
.stc-name strong { font-weight: 700; overflow-wrap: anywhere; }
.stc-qty { display: grid; justify-items: end; line-height: 1.05; }
.stc-qty b { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stc-qty small { color: var(--muted); font-size: .72rem; }
.stc-qty.is-zero b { color: var(--fail); }
.stc-form { display: grid; gap: .6rem; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: end; }
.stc-form .btn { grid-column: 1 / -1; }
@media (min-width: 720px) {
    .stc-form { grid-template-columns: 6.5rem minmax(0, 18rem) auto; }
    .stc-form .btn { grid-column: auto; }
}
@media (min-width: 1100px) {
    .stc-row { grid-template-columns: minmax(14rem, 1fr) auto; align-items: center; }
}
.sx-vf .sx-vf-note { grid-column: 1 / -1; margin: 0; }
.sx-vf .sx-vf-qty .input { max-width: 8rem; }
.sx-vf.sx-vf-new { max-width: 46rem; }

/* Loja › Produtos (v293): menu "⋯" na lista e no editor (arquivar, tirar do arquivo, excluir de vez) e janela de exclusão. */
.pl-li { position: relative; }
.pl-li .pl-row { padding-right: 3.4rem; }
.pl-li .pd-more { position: absolute; top: .65rem; right: .55rem; z-index: 3; }
.pl-li .pd-more[open] { z-index: 30; }
.pd-more .av-menu { width: 17rem; }
.pd-more .av-mi[hidden] { display: none; }
.pd-head { padding-right: 3rem; }
.pd-head .pd-more { position: absolute; top: .1rem; right: 0; }
.pd-head .pd-more summary { border: 1px solid var(--line); background: var(--card); }
.pd-head .pd-more summary:hover, .pd-head .pd-more[open] summary { background: var(--paper); }
@media (min-width: 1000px) {
    .pl { overflow: visible; }
    .pl-head { border-radius: 16px 16px 0 0; }
    .pl .ol-list li:last-child .pl-row { border-radius: 0 0 16px 16px; }
    .pl .ol-list li:last-child .pl-row::before { border-radius: 0 0 0 16px; }
    .pl-li .pl-row { padding-right: 3.6rem; }
    .pl-li .pd-more { top: 50%; right: .7rem; margin-top: -17px; }
    .pl .ol-list li:nth-last-child(-n+2):nth-child(n+3) .pd-more .av-menu { top: auto; bottom: calc(100% + 4px); } /* últimas linhas abrem para cima */
}

.pdx { width: min(31rem, calc(100vw - 2rem)); max-width: none; max-height: calc(100dvh - 2rem); padding: 1.4rem 1.4rem 1.1rem; border: 1px solid var(--line); border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 0 2px 6px rgba(17, 18, 20, .08), 0 40px 90px rgba(17, 18, 20, .28); overflow: auto; overscroll-behavior: contain; }
html[data-theme="dark"] .pdx { box-shadow: 0 2px 6px rgba(0, 0, 0, .5), 0 40px 90px rgba(0, 0, 0, .6); }
.pdx::backdrop { background: rgba(17, 18, 20, .5); backdrop-filter: blur(4px); }
.pdx[open] { animation: pc-in .22s cubic-bezier(.2, .8, .2, 1); }
.pdx[open]::backdrop { animation: pc-fade .22s ease; }
.pdx-top { display: flex; align-items: flex-start; gap: .9rem; }
.pdx-ico { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 14px; background: var(--fail-bg); color: var(--fail); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fail) 22%, transparent); }
.pdx-t { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.pdx-name { margin: .2rem 0 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; font-size: .95rem; line-height: 1.35; }
.pdx-name strong { overflow-wrap: anywhere; }
.pdx-name span { color: var(--muted); font-size: .84rem; }
.pdx-ok { display: flex; gap: .5rem; align-items: flex-start; margin: 1.05rem 0 0; padding: .65rem .8rem; border-radius: 12px; background: var(--ok-bg); color: var(--ok); font-size: .86rem; font-weight: 600; line-height: 1.45; }
.pdx-ok > span { flex: none; display: grid; margin-top: .12rem; }
.pdx-box { margin-top: .8rem; padding: .25rem .95rem .85rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.pdx-h { margin: .7rem 0 .3rem; font-size: .72rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pdx-list { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.pdx-list li { padding: .22rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .82rem; font-weight: 600; }
.pdx-none { margin: 0; font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.pdx-act { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; margin-top: 1.15rem; }
.pdx-act form { margin: 0; }
.pdx-go { display: inline-flex; align-items: center; gap: .45rem; background: var(--fail); border-color: var(--fail); color: #fff; }
.pdx-go:hover { background: #8f1d17; border-color: #8f1d17; }
html[data-theme="dark"] .pdx-go { background: #c8423a; border-color: #c8423a; color: #fff; }
html[data-theme="dark"] .pdx-go:hover { background: #e0574e; border-color: #e0574e; }
.pdx-foot { margin: .75rem 0 0; text-align: right; font-size: .78rem; color: var(--muted); }
@media (max-width: 520px) {
    .pdx { padding: 1.15rem 1.05rem 1rem; border-radius: 18px; }
    .pdx-act { flex-direction: column-reverse; }
    .pdx-act .btn, .pdx-act form { width: 100%; justify-content: center; }
    .pdx-foot { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .pdx[open], .pdx[open]::backdrop { animation: none; } }

/* v295 · Loja › Configurações › No Google: prévia do resultado de busca (gs-) */
.gs-prev { display: grid; gap: .3rem; padding: 1rem 1.1rem 1.05rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); font-family: Arial, Helvetica, sans-serif; max-width: 640px; }
.gs-site { display: flex; align-items: center; gap: .6rem; }
.gs-site > span:last-child { display: grid; line-height: 1.25; }
.gs-site strong { font-size: .84rem; font-weight: 400; color: #202124; }
.gs-site small { font-size: .76rem; color: #4d5156; }
.gs-fav { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 1px solid #dadce0; color: #5f6368; }
.gs-title { font-size: 1.22rem; line-height: 1.3; color: #1a0dab; overflow-wrap: anywhere; }
.gs-desc { font-size: .86rem; line-height: 1.55; color: #4d5156; overflow-wrap: anywhere; }
.gs-field .input { max-width: 640px; } /* mesma largura da prévia: campo de texto não estica na tela larga (v278) */
.gs-ta { resize: vertical; }
.gs-count.is-long span { color: #b3261e; font-weight: 700; }
html[data-theme="dark"] .gs-site strong { color: #dadce0; }
html[data-theme="dark"] .gs-site small, html[data-theme="dark"] .gs-desc { color: #bdc1c6; }
html[data-theme="dark"] .gs-fav { background: #303134; border-color: #3c4043; color: #bdc1c6; }
html[data-theme="dark"] .gs-title { color: #8ab4f8; }
html[data-theme="dark"] .gs-count.is-long span { color: #f2b8b5; }

/* Loja › Configurações › No WhatsApp (v297): o que vai para o catálogo da Meta */
.wc-list { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); overflow: hidden; }
.wc-head { display: flex; flex-wrap: wrap; gap: .2rem .7rem; align-items: baseline; justify-content: space-between; padding: .75rem .95rem; border-bottom: 1px solid var(--line); }
.wc-head strong { font-size: .92rem; }
.wc-head span { font-size: .78rem; color: var(--muted); }
.wc-list ul { margin: 0; padding: 0; list-style: none; }
.wc-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: .75rem; align-items: center; padding: .6rem .95rem; }
.wc-item + .wc-item { border-top: 1px solid var(--line); }
.wc-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--card); border: 1px solid var(--line); }
.wc-name { display: grid; min-width: 0; }
.wc-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; font-weight: 650; }
.wc-name small, .wc-price small { font-size: .72rem; color: var(--muted); }
.wc-price { display: grid; text-align: right; font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.wc-empty, .wc-more { margin: 0; padding: .7rem .95rem; font-size: .8rem; color: var(--muted); }
.wc-more { border-top: 1px solid var(--line); }
.wc-steps { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.wc-steps li { display: flex; gap: .7rem; align-items: flex-start; }
.wc-steps li > span { flex: none; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #e3f4ea; color: #1f7a46; font-size: .78rem; font-weight: 800; }
.wc-steps strong { display: block; font-size: .88rem; }
.wc-steps small { display: block; font-size: .8rem; line-height: 1.45; color: var(--muted); }
html[data-theme="dark"] .wc-steps li > span { background: #183025; color: #72d39b; }
@media (max-width: 560px) {
    .wc-item { grid-template-columns: 40px minmax(0, 1fr) auto; }
    .wc-item img { width: 40px; height: 40px; }
    .wc-name strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; }
    .wc-item .cf-pill { grid-column: 2 / -1; justify-self: start; }
}

/* v299: faixa "e-mails da loja não estão saindo" (mh-), em todas as telas do painel enquanto o envio falhar */
.mh-bar { --mh: #b3261e; position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem 1.25rem; align-items: center; margin: 0 0 1.5rem; padding: 1.15rem 1.25rem 1.15rem 1.1rem; border: 1px solid color-mix(in srgb, var(--mh) 28%, var(--line)); border-radius: 18px; background: linear-gradient(115deg, color-mix(in srgb, var(--mh) 9%, var(--card)), var(--card) 60%); box-shadow: 0 1px 2px rgb(17 18 20 / .05), 0 16px 32px -26px color-mix(in srgb, var(--mh) 70%, transparent); overflow: hidden; }
.mh-bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--mh), color-mix(in srgb, var(--mh) 55%, #f08a3c)); }
.mh-ico { position: relative; display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px; color: var(--mh); background: color-mix(in srgb, var(--mh) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--mh) 22%, transparent); }
.mh-ico i { position: absolute; top: -4px; right: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--mh); border: 2px solid var(--card); }
.mh-body { min-width: 0; }
.mh-kicker { display: block; margin: 0 0 .15rem; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mh); }
.mh-dot { display: inline-block; vertical-align: .12em; margin-right: .45rem; width: 7px; height: 7px; border-radius: 50%; background: var(--mh); box-shadow: 0 0 0 0 color-mix(in srgb, var(--mh) 55%, transparent); animation: mh-pulse 2s ease-out infinite; }
@keyframes mh-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mh) 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
.mh-bar h2 { margin: 0 0 .3rem; font-size: 1.12rem; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
.mh-why, .mh-fix { margin: 0; font-size: .93rem; line-height: 1.5; color: var(--ink-2); max-width: 78ch; }
.mh-fix { margin-top: .4rem; padding-top: .45rem; border-top: 1px dashed color-mix(in srgb, var(--mh) 25%, var(--line)); color: var(--muted); }
.mh-fix strong { color: var(--ink); font-weight: 700; }
.mh-act { display: flex; flex-direction: column; align-items: stretch; gap: .5rem; margin: 0; }
.admin-main .mh-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; white-space: nowrap; background: var(--mh); color: #fff; border-color: transparent; box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--mh) 80%, transparent); }
.admin-main .mh-btn:hover { background: color-mix(in srgb, var(--mh) 85%, #000); }
.mh-link { text-align: center; font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.mh-link:hover { color: var(--ink); }
html[data-theme="dark"] .mh-bar { --mh: #f4948d; }
html[data-theme="dark"] .admin-main .mh-btn { color: #2a0f0d; }
@media (max-width: 720px) {
    .mh-bar { grid-template-columns: auto 1fr; padding: 1rem 1rem 1rem 1.05rem; gap: .9rem; align-items: start; }
    .mh-ico { width: 2.6rem; height: 2.6rem; border-radius: 12px; }
    .mh-act { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .mh-dot { animation: none; } }

/* v301: versão no ar no Diagnóstico (dg-) */
.dg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.dg-head h1 { margin: 0; }
.admin-main .page-head .dg-ver { display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding: .4rem .5rem .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--muted); font-size: .85rem; box-shadow: 0 1px 2px rgb(17 18 20 / .05); }
.dg-ver .ico { color: var(--muted); }
.dg-ver strong { padding: .12rem .6rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.dg-ver em { font-style: normal; padding-right: .35rem; }
@media (max-width: 520px) { .admin-main .page-head .dg-ver { font-size: .8rem; } }

/* v305 · Pedido da loja usado como crédito em outro pedido (cr-, crf-) */
.badge-credit { display: inline-flex; align-items: center; gap: .3rem; background: var(--kl-soft); color: var(--kl-acc); vertical-align: middle; }
.badge-credit svg { flex: none; }
.cr { padding: 1.2rem 1.3rem 1.25rem; border: 1.5px solid var(--kl-line); background: linear-gradient(180deg, var(--kl-soft), var(--card) 75%); }
.cr-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; align-items: start; }
.cr-head h2 { margin: 0 0 .25rem; font-size: 1.12rem; }
.cr-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--card); color: var(--kl-acc); border: 1px solid var(--kl-line); }
.cr-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: .6rem; margin-top: 1rem; }
.cr-box { display: grid; gap: .1rem; padding: .75rem .9rem; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; min-width: 0; }
.cr-box strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.cr-amt { font-size: .86rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
a.cr-to { border-color: var(--kl-line); transition: border-color .15s ease, box-shadow .15s ease; }
a.cr-to:hover { border-color: var(--kl-acc); box-shadow: 0 2px 10px rgb(17 18 20 / .06); }
a.cr-to .cr-amt { color: var(--kl-acc); font-weight: 650; }
.cr-arrow { display: grid; place-items: center; color: var(--kl-acc); }
.cr-undo { margin-top: 1rem; }
.cr-undo .tc-form p { max-width: 62ch; }
.cr-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; margin: 0 0 .9rem; padding: .65rem .8rem; border-radius: 12px; background: var(--kl-soft); border: 1px solid var(--kl-line); color: inherit; text-decoration: none; }
.cr-in > span:nth-child(2) { display: grid; gap: .05rem; }
.cr-in-i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--card); color: var(--kl-acc); }
.cr-in-go { color: var(--kl-acc); }
.cr-in:hover { border-color: var(--kl-acc); }
.od-credit { margin-top: .4rem; }
.crf { display: grid; gap: .8rem; max-width: 46rem; padding: .95rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.crf-how { margin: 0; padding-left: 1.2rem; display: grid; gap: .3rem; color: var(--ink-2); }
.crf-empty { display: flex; gap: .45rem; align-items: flex-start; margin: 0; color: var(--muted); }
.crf-empty svg { flex: none; margin-top: .2rem; }
.crf-form { display: grid; gap: .75rem; }
.crf-list { display: grid; gap: .45rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.crf-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.crf-opt:has(input:checked) { border-color: var(--kl-acc); background: var(--kl-soft); }
.crf-opt input { accent-color: var(--kl-acc); margin: 0; }
.crf-opt-t { display: grid; gap: .05rem; min-width: 0; }
.crf-opt-v { display: flex; align-items: center; gap: .55rem; font-variant-numeric: tabular-nums; }
.crf-go { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; }
.crf-go .btn { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 620px) {
    .cr-flow { grid-template-columns: minmax(0, 1fr); }
    .cr-arrow { transform: rotate(90deg); }
    .crf-opt { grid-template-columns: auto minmax(0, 1fr); }
    .crf-opt-v { grid-column: 2; }
}

/* v306 · Ficha de separação agrupada (sg-) e botão na lista de pedidos da loja */
.ol-head-acts { display: flex; flex-wrap: wrap; gap: .5rem; }
.ol-head-acts .btn { display: inline-flex; align-items: center; gap: .4rem; }
.ol-head-acts .btn b { font-variant-numeric: tabular-nums; padding: 0 .45rem; border-radius: 999px; background: var(--line); font-size: .78rem; line-height: 1.5; }
.sg .sheet-head h1 { font-size: 1.7rem; }
.sg-sub { margin: .2rem 0 0 !important; text-align: left !important; color: #444; font-weight: 600; }
.sg-empty { padding: 2rem 0; color: #444; }
.sg h2 { display: flex; align-items: baseline; gap: .4rem; font-size: 1.05rem; color: #111; }
.sg-h-n { font-weight: 500; color: #555; font-size: .9rem; }
.sg-pick { grid-template-columns: auto 1fr auto; align-items: start; }
.sg-surname { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.sg-for { margin-top: .2rem; font-size: .9rem; color: #444; }
.sg-tag { display: inline-block; padding: .05rem .45rem; border: 1.5px solid #111; border-radius: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.sg-box { width: 26px; height: 26px; border: 2.5px solid #111; border-radius: 6px; margin-top: .35rem; }
.sg-ord { padding: .85rem 1rem .8rem; margin: 0 0 .7rem; border: 1.5px solid #222; border-radius: 12px; break-inside: avoid; }
.sg-ord-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; padding-bottom: .45rem; border-bottom: 1px solid #ccc; }
.sg-code { font-size: 1.15rem; font-weight: 800; letter-spacing: .01em; }
.sg-name { font-weight: 700; flex: 1 1 auto; }
.sg-when { font-size: .9rem; color: #333; }
.sg-lines { list-style: none; margin: .55rem 0 .4rem; padding: 0; display: grid; gap: .25rem; }
.sg-lines li { display: grid; grid-template-columns: 2.4rem 1fr; gap: .4rem; font-size: 1.05rem; }
.sg-q { font-weight: 800; }
.sg-addr { margin: 0; font-size: .86rem; color: #444; }
.sg-check { margin-top: .5rem; font-size: .95rem; }
.sg-check .sg-pack::before { content: none; }
.sg-check .sg-pack { color: #444; }
@media print { .sg-break { break-before: auto; } .sg-ord { border-color: #000; } }
.sg-join { margin: .5rem 0 0; padding: .3rem .55rem; border: 1.5px dashed #111; border-radius: 8px; font-size: .9rem; font-weight: 700; }

/* ---------- SAC (v307): ocorrências de pós-venda e reposição sem custo (prefixo sac-) ---------- */
:root { --sac-acc: #b4532f; --sac-soft: #fbf0ea; --sac-line: #efd3c4; --sac-prod: #2f62b8; --sac-prod-bg: #e9f0fb; --sac-ship: #6a4fb3; --sac-ship-bg: #f0ecfa; }
html[data-theme="dark"] { --sac-acc: #f0a07c; --sac-soft: #2c1f19; --sac-line: #4f3528; --sac-prod: #8fb3f2; --sac-prod-bg: #1c2638; --sac-ship: #b8a4f0; --sac-ship-bg: #252036; }

.sac-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; background: var(--sac-soft); color: var(--sac-acc); border: 1px solid var(--sac-line); font-size: .74rem; font-weight: 700; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.sac-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--card); color: var(--sac-acc); border: 1px solid var(--sac-line); flex: none; }
.sac-kick { margin: 0 0 .1rem; font-size: .72rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--sac-acc); }

/* situação (lista, pedido, ocorrência) */
.sac-st { display: inline-flex; align-items: center; gap: .3rem; width: max-content; max-width: 100%; padding: .22rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: 0; vertical-align: middle; white-space: nowrap; }
.sac-st.is-open { background: var(--sac-soft); color: var(--sac-acc); }
.sac-st.is-prod { background: var(--sac-prod-bg); color: var(--sac-prod); }
.sac-st.is-ship { background: var(--sac-ship-bg); color: var(--sac-ship); }
.sac-st.is-done { background: var(--ok-bg); color: var(--ok); }
h1 .sac-st { font-size: .8rem; }

/* faixa no topo do pedido de reposição + bloco de resolução da ocorrência */
.sac-rep, .sac-res { position: relative; overflow: hidden; border-color: var(--sac-line); background: linear-gradient(170deg, var(--sac-soft), var(--card) 62%); }
.sac-rep::before, .sac-res::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--sac-acc), #e9b48f, var(--ok)); }
.sac-res-resolved, .sac-res-closed { border-color: var(--line); background: var(--card); }
.sac-res-resolved::before, .sac-res-closed::before { background: var(--ok); }
.sac-rep-h, .sac-res-h, .sac-panel-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .85rem; align-items: start; }
.sac-rep-h h2, .sac-res-h h2, .sac-panel-h h2 { margin: 0 0 .25rem; font-size: 1.12rem; }
.sac-rep-h p, .sac-res-h p, .sac-panel-h p { max-width: 78ch; }
.sac-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: .6rem; margin-top: 1rem; }
.sac-box { display: grid; gap: .1rem; padding: .75rem .9rem; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: inherit; text-decoration: none; min-width: 0; }
.sac-box strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.sac-box-s { font-size: .86rem; color: var(--ink-2); }
a.sac-box { transition: border-color .15s ease, box-shadow .15s ease; }
a.sac-box:hover { border-color: var(--ink); box-shadow: 0 2px 10px rgb(17 18 20 / .06); }
.sac-box.is-here { border-color: var(--sac-line); }
.sac-box.is-here .sac-box-s { color: var(--sac-acc); font-weight: 650; }
.sac-arrow { display: grid; place-items: center; color: var(--sac-acc); }
.sac-why { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .4rem .8rem; margin-top: .75rem; padding: .7rem .9rem; border-radius: 12px; background: var(--card); border: 1px dashed var(--sac-line); color: inherit; text-decoration: none; }
.sac-why:hover { border-style: solid; border-color: var(--sac-acc); }
.sac-proto { margin-top: .75rem; padding: .85rem .95rem .95rem; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.sac-proto-h { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; margin-bottom: .75rem; }
.sac-proto-h h3 { margin: 0 0 .15rem; font-size: .98rem; }
.sac-proto-i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--sac-soft); color: var(--sac-acc); }
.sac-gal.sac-proto-gal { grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); margin-bottom: 0; }
.sac-proto-none { margin: 0; }
.sac-proto-note { display: grid; gap: .2rem; margin: .8rem 0 0; padding: .6rem .8rem; border-left: 3px solid var(--sac-line); border-radius: 0 10px 10px 0; background: var(--paper); font-size: .9rem; max-width: 90ch; }
.sac-gal.sac-proto-mini { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin: .7rem 0 0; }
.sac-gal.sac-proto-mini a { border-radius: 9px; }
@media (max-width: 640px) { .sac-gal.sac-proto-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sac-proto { padding: .75rem; } }
.sac-why-k { padding: .18rem .55rem; border-radius: 999px; background: var(--sac-soft); color: var(--sac-acc); font-size: .76rem; font-weight: 750; white-space: nowrap; }
.sac-why-t { font-size: .9rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sac-why-go { display: inline-flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 650; color: var(--muted); white-space: nowrap; }
.sac-note { display: flex; align-items: center; gap: .45rem; margin: .8rem 0 0; padding: .6rem .8rem; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: .86rem; font-weight: 600; }

/* bloco SAC no pedido enviado/entregue */
.sac-panel .sac-ico { background: var(--sac-soft); }
.sac-mini { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .45rem; }
.sac-mini a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .7rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; text-decoration: none; }
.sac-mini a:hover { border-color: var(--ink); }
.sac-mini-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sac-mini-rep { font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.sac-mini-go { color: var(--muted); display: grid; }
.sac-off { display: flex; align-items: center; gap: .45rem; margin: 1rem 0 0; color: var(--warn); font-size: .9rem; }
.sac-new { margin-top: 1rem; }
.sac-form { display: grid; gap: 1rem; padding: 1rem; }
.sac-form .field { margin: 0; max-width: 46rem; }
.sac-form > .btn { justify-self: start; }
.sac-fs { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: .55rem; }
.sac-fs legend { padding: 0; margin-bottom: .5rem; font-weight: 650; font-size: .95rem; }
.sac-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.sac-chip { position: relative; display: inline-flex; cursor: pointer; }
.sac-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sac-chip span { display: inline-flex; align-items: center; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .88rem; font-weight: 600; transition: border-color .15s ease, background-color .15s ease; }
.sac-chip:hover span { border-color: var(--ink); }
.sac-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--card); }
.sac-chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.sac-acts { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); max-width: 46rem; }
.sac-act { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .65rem; align-items: start; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.sac-act input { margin: .2rem 0 0; accent-color: var(--sac-acc); }
.sac-act:has(input:checked) { border-color: var(--sac-acc); background: var(--sac-soft); }
.sac-act-b { display: grid; gap: .15rem; }
.sac-days { display: grid; gap: .3rem; max-width: 46rem; padding: .75rem .9rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.sac-days > label { font-weight: 650; font-size: .9rem; }
.sac-days-i { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.sac-days-i .input { width: 5.5rem; }
.sac-fs:has(input[value="register"]:checked) .sac-days { opacity: .5; }

/* tela SAC: resumo */
.sac-pulse { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; margin: 0 0 1.2rem; }
.sac-p { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: center; padding: .9rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); color: inherit; text-decoration: none; min-width: 0; transition: border-color .15s ease, transform .15s ease; }
.sac-p:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); transform: translateY(-1px); }
.sac-p.is-hot { border-color: var(--sac-line); background: linear-gradient(160deg, var(--sac-soft), var(--card) 70%); }
.sac-p-i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; }
.sac-p-i.is-open { background: var(--sac-soft); color: var(--sac-acc); }
.sac-p-i.is-prod { background: var(--sac-prod-bg); color: var(--sac-prod); }
.sac-p-i.is-ship { background: var(--sac-ship-bg); color: var(--sac-ship); }
.sac-p-i.is-done { background: var(--ok-bg); color: var(--ok); }
.sac-p-b { display: grid; min-width: 0; line-height: 1.25; }
.sac-p-b strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sac-p-b span { font-size: .82rem; color: var(--muted); }
@media (min-width: 1000px) { .sac-pulse { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.sac-filters { display: grid; gap: .55rem; min-width: 0; }
.sac-rf { display: flex; gap: .3rem 1rem; overflow-x: auto; padding: 0 1px 4px; scrollbar-width: thin; }
.sac-rf a { flex: 0 0 auto; font-size: .86rem; color: var(--muted); text-decoration: none; padding: .15rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.sac-rf a:hover { color: var(--ink); }
.sac-rf a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--sac-acc); }

/* tela SAC: lista */
.sac-row { position: relative; display: grid; grid-template-columns: 1fr; gap: .75rem; padding: .95rem 2.4rem .95rem 1.35rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); color: inherit; text-decoration: none; overflow: hidden; transition: border-color .15s ease; }
.sac-row::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--line); }
.sac-row.is-open::before { background: var(--sac-acc); }
.sac-row.is-prod::before { background: var(--sac-prod); }
.sac-row.is-ship::before { background: var(--sac-ship); }
.sac-row.is-done::before { background: var(--ok); }
.sac-row:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.sac-row:hover .ol-go svg { transform: translateY(3px); color: var(--ink); }
.sac-row .ol-who { grid-area: auto; }
.sac-thumb { flex: none; width: 3rem; height: 3rem; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); background: var(--paper); }
.sac-thumb-none { display: grid; place-items: center; color: var(--muted); }
.sac-f { display: grid; gap: .15rem; min-width: 0; align-content: start; font-size: .92rem; }
.sac-what strong { font-size: .92rem; }
.sac-desc { color: var(--ink-2); font-size: .88rem; line-height: 1.45; overflow-wrap: anywhere; }
.sac-code { font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.sac-stc { gap: .3rem; }
@media (min-width: 1000px) {
    .sac-list { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
    .sac-list .ol-list { gap: 0; }
    .sac-lh, .sac-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 12rem 14rem; gap: 1.2rem; align-items: center; }
    .sac-lh { padding: .7rem 2.4rem .7rem 1.35rem; background: var(--paper); border-bottom: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--muted); }
    .sac-row { border: 0; border-radius: 0; box-shadow: none; padding: 1rem 2.4rem 1rem 1.35rem; }
    .sac-row:hover { background: color-mix(in srgb, var(--paper) 60%, var(--card)); }
    .sac-row .cl-l { display: none; }
    .sac-list .ol-list li + li .sac-row { border-top: 1px solid var(--line); }
}

/* tela SAC: ocorrência */
.sac-do { display: grid; gap: .6rem; margin-top: 1rem; }
.sac-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .5rem .85rem; align-items: center; padding: .9rem 1rem; border-radius: 14px; background: var(--card); border: 1px solid var(--sac-line); margin: 0; }
.sac-opt-i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--sac-soft); color: var(--sac-acc); align-self: start; }
.sac-opt-b { display: grid; gap: .25rem; min-width: 0; }
.sac-opt-b label { font-weight: 650; font-size: .88rem; }
.sac-opt-b .sac-days-i { margin-top: .25rem; }
.sac-close summary { color: var(--ink-2); }
.sac-close .tc-form .field, .sac-edit .tc-form .field { max-width: 46rem; }
.sac-sec-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1rem; margin-bottom: .6rem; }
.sac-sec-h h2 { margin: 0; }
.sac-reason { padding: .22rem .65rem; border-radius: 999px; background: var(--sac-soft); color: var(--sac-acc); font-size: .8rem; font-weight: 750; }
.sac-quote { margin: 0 0 .9rem; padding: .8rem 1rem; border-left: 3px solid var(--sac-line); background: var(--paper); border-radius: 0 12px 12px 0; font-size: .95rem; line-height: 1.55; overflow-wrap: anywhere; }
.sac-res .sac-quote { margin-top: 1rem; background: var(--card); }
.sac-hint { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .9rem; padding: .65rem .85rem; border-radius: 12px; background: var(--info-bg); color: var(--info); font-size: .86rem; line-height: 1.45; }
.sac-hint svg { flex: none; margin-top: .1rem; }
.sac-gal { list-style: none; margin: 0 0 .9rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: .6rem; }
.sac-gal li { position: relative; }
.sac-gal a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); aspect-ratio: 1; }
.sac-gal img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.sac-gal a:hover img { transform: scale(1.04); }
.sac-gal form { position: absolute; top: .35rem; right: .35rem; margin: 0; }
.sac-gal-x { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgb(17 18 20 / .62); color: #fff; cursor: pointer; opacity: 0; transition: opacity .15s ease; }
.sac-gal li:hover .sac-gal-x, .sac-gal-x:focus-visible { opacity: 1; }
@media (hover: none) { .sac-gal-x { opacity: 1; } }
.sac-up { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; max-width: 46rem; }
.sac-up .input { flex: 1 1 14rem; min-width: 0; }
.sac-side h2 { margin: 0 0 .7rem; font-size: 1rem; }
.sac-orig { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: .6rem; align-items: center; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 12px; color: inherit; text-decoration: none; }
.sac-orig strong { font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.sac-orig svg { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); }
.sac-orig:hover { border-color: var(--ink); }
.sac-kv { margin: .8rem 0 0; display: grid; gap: .55rem; }
.sac-kv div { display: grid; gap: .05rem; }
.sac-kv dt { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sac-kv dd { margin: 0; font-size: .92rem; }
.sac-others { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; margin: .9rem 0 0; font-size: .86rem; color: var(--warn); }
.sac-rules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.sac-rules li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .5rem; font-size: .88rem; color: var(--ink-2); line-height: 1.45; }
.sac-rules li svg { color: var(--ok); margin-top: .2rem; }

/* fila de produção: reposição */
.pq-rep { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .5rem; border-radius: 999px; background: var(--sac-soft); color: var(--sac-acc); border: 1px solid var(--sac-line); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.pq-total-rep { color: var(--sac-acc); font-weight: 700; }

@media (max-width: 640px) {
    .sac-flow { grid-template-columns: minmax(0, 1fr); }
    .sac-arrow { transform: rotate(90deg); }
    .sac-why { grid-template-columns: minmax(0, 1fr); }
    .sac-why-t { white-space: normal; }
    .sac-opt { grid-template-columns: auto minmax(0, 1fr); }
    .sac-opt > .btn { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
    .sac-mini a { grid-template-columns: minmax(0, 1fr) auto; }
    .sac-mini-t { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
    .sac-mini-go { display: none; }
}
.sac-tell { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: .9rem; }
.sac-tell .btn svg { vertical-align: -3px; }
.ol-tools > .sac-search { max-width: 44rem; width: 100%; }
@media (max-width: 639px) { .sac-p { padding: .8rem .85rem; gap: .6rem; } .sac-p-i { width: 34px; height: 34px; border-radius: 10px; } }

/* v309 · e-mail do cliente incluído depois num pedido feito pela equipe (pem-) e na ficha do cliente (cem-) */
.pem-warn { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem .7rem; align-items: center; margin-top: .9rem; padding: .75rem .85rem; border: 1px solid #efd9a6; border-radius: 12px; background: var(--warn-bg); font-size: .9rem; }
.pem-warn .muted { color: var(--ink-2); }
.pem-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--card); color: var(--warn); }
.pem-warn .btn { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: .35rem; background: var(--card); }
@media (min-width: 700px) { .pem-warn { grid-template-columns: auto minmax(0, 1fr) auto; } .pem-warn .btn { grid-column: auto; } }
html[data-theme="dark"] .pem-warn { border-color: #5a4720; }
.od-contact .pem { margin-top: .35rem; }
.pem-box summary { display: inline-flex; align-items: center; gap: .35rem; font-size: .86rem; font-weight: 650; color: var(--ink); cursor: pointer; list-style: none; padding: .2rem 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.pem-box summary::-webkit-details-marker { display: none; }
.pem-box[open] summary { color: var(--muted); }
.pem-form, .cem-form { display: grid; gap: .45rem; margin-top: .5rem; padding: .75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.pem-row { display: flex; gap: .45rem; }
.pem-row .input { flex: 1 1 auto; min-width: 0; font-size: .9rem; }
.pem-row .btn { flex: none; }
.cem { display: grid; gap: .5rem; }
.cem-form { max-width: 30rem; margin-top: 0; }

/* v314: prazo de produção calculado pela data prevista de entrega (ppz-) */
.ppz-input { position: relative; }
.ppz-input .input { padding-right: 6.5rem; }
.ppz-badge { position: absolute; top: 50%; right: .6rem; transform: translateY(-50%); pointer-events: none;
    display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px;
    background: var(--ok-bg); color: var(--ok); font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.ppz-badge::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; }
.ppz-badge[hidden] { display: none; }
.ppz-field.is-auto .input { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.ppz-hint { line-height: 1.45; }
.ppz-hint[hidden] { display: none; }
.ppz-hint strong { color: var(--ink); font-weight: 650; }
.ppz-hint.is-warn { color: var(--warn); background: var(--warn-bg); border-radius: var(--radius-sm); padding: .45rem .65rem; }
.ppz-hint.is-warn strong { color: inherit; }
.ppz-hint .linklike { color: var(--ink); font-weight: 600; white-space: nowrap; }
.quote-form input[type="date"].is-warn { border-color: var(--warn); box-shadow: 0 0 0 3px var(--warn-bg); }

/* v317 · Loja › Configurações › Entrega Dommus: prazo, dias da semana e simulação (ld-) */
:root { --ld: #1f7a46; --ld-soft: #e3f4ea; --ld-line: #bfe3cf; }
html[data-theme="dark"] { --ld: #72d39b; --ld-soft: #183025; --ld-line: #24533b; }
.ld-card { display: grid; gap: .9rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.ld-card-h { display: flex; gap: .7rem; align-items: flex-start; }
.ld-card-h strong { display: block; font-size: .95rem; font-weight: 720; letter-spacing: -.005em; }
.ld-card-h small { display: block; margin-top: .15rem; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.ld-card-h code { font-size: .74rem; }
.ld-step { flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ld-soft); color: var(--ld); font-size: .76rem; font-weight: 800; }
.ld-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.ld-opt { position: relative; cursor: pointer; }
.ld-opt input, .ld-day input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ld-opt > span { display: flex; flex-direction: column; gap: .1rem; height: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); transition: border-color .15s, background .15s, box-shadow .15s; }
.ld-opt strong { font-size: .9rem; font-weight: 700; }
.ld-opt small { font-size: .75rem; color: var(--muted); line-height: 1.3; }
.ld-opt:hover > span { border-color: var(--muted); }
.ld-opt input:checked + span { border-color: var(--ld); background: var(--ld-soft); box-shadow: 0 0 0 1px var(--ld) inset; }
.ld-opt input:checked + span strong { color: var(--ld); }
.ld-opt input:focus-visible + span, .ld-day input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.ld-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.ld-day { cursor: pointer; }
.ld-day > span { display: grid; place-items: center; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--muted); font-size: .85rem; font-weight: 700; transition: border-color .15s, background .15s, color .15s; }
.ld-day:hover > span { border-color: var(--muted); }
.ld-day input:checked + span { border-color: var(--ld); background: var(--ld); color: #fff; }
html[data-theme="dark"] .ld-day input:checked + span { color: #0f1a14; }
.ld-card .cf-grid .field[hidden], .ld-card [hidden] { display: none; }
.ld-preview { display: grid; gap: .75rem; }
.ld-preview .cf-quote q { quotes: "“" "”"; }
.ld-sim { padding: .85rem .95rem; border: 1px dashed var(--ld-line); border-radius: 14px; background: var(--card); }
.ld-sim-t { display: block; margin-bottom: .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ld-sim-l { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.ld-sim-l li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem 1rem; align-items: baseline; padding: .45rem .6rem; border-radius: 10px; background: var(--paper); font-size: .85rem; }
.ld-sim-l li span { color: var(--muted); }
.ld-sim-l li b { font-weight: 700; color: var(--ink); text-align: right; white-space: nowrap; }
.ld-sim-l li b.is-off { color: var(--warn); }
.ld-sim-n { margin: .55rem 0 0; font-size: .75rem; color: var(--muted); }
@media (min-width: 640px) {
    .ld-seg { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
    .ld-card { padding: 1.1rem 1.2rem; }
}
@media (min-width: 1560px) {
    .ld-sim-l { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
    .ld-days { gap: .25rem; }
    .ld-day > span { height: 40px; font-size: .78rem; border-radius: 10px; }
    .ld-sim-l li { grid-template-columns: 1fr; }
    .ld-sim-l li b { text-align: left; }
}

/* ---------- v318 · Visualizador de fotos (lbx-): abre por cima da tela, sem sair do app ---------- */
html.lbx-lock, html.lbx-lock body { overflow: hidden; overscroll-behavior: none; }
a[data-lb] { cursor: zoom-in; }
.lbx { --lbx-bg: .94; position: fixed; inset: 0; z-index: 2147483000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; color: #f4f3ef;
    background: rgba(9, 10, 12, var(--lbx-bg)); -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
    opacity: 0; transition: opacity .2s ease; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.lbx[hidden] { display: none; }
.lbx.is-on { opacity: 1; }
.lbx-top { display: flex; align-items: center; gap: 16px; padding: 14px 18px 10px; position: relative; z-index: 3;
    background: linear-gradient(to bottom, rgba(9, 10, 12, .55), rgba(9, 10, 12, 0)); }
.lbx-info { min-width: 0; flex: 1; display: grid; gap: 1px; }
.lbx .lbx-cap { margin: 0; font-weight: 650; font-size: .98rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .005em; }
.lbx .lbx-count { margin: 0; font-size: .8rem; color: rgba(244, 243, 239, .62); font-variant-numeric: tabular-nums; min-height: 1.2em; }
.lbx-tools { display: flex; gap: 8px; flex: none; }
.lbx-btn { appearance: none; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 999px; cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .08); color: #f4f3ef; text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease; -webkit-tap-highlight-color: transparent; }
.lbx-btn:hover { background: rgba(255, 255, 255, .17); border-color: rgba(255, 255, 255, .26); color: #fff; }
.lbx-btn:active { transform: scale(.94); }
.lbx-btn:focus-visible, .lbx-th:focus-visible { outline: 2px solid #8fb0ee; outline-offset: 2px; }
.lbx-close { background: #f4f3ef; color: #111214; border-color: #f4f3ef; }
.lbx-close:hover { background: #fff; color: #111214; }

.lbx-stage { position: relative; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: default; }
.lbx-track { position: absolute; inset: 0; will-change: transform; }
.lbx-track.is-anim { transition: transform .22s cubic-bezier(.2, .7, .2, 1); }
.lbx-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 6px 76px 14px; }
.lbx-slide:nth-child(1) { transform: translate3d(-100%, 0, 0); }
.lbx-slide:nth-child(3) { transform: translate3d(100%, 0, 0); }
.lbx-slide.is-empty { visibility: hidden; }
.lbx-img { max-width: 100%; max-height: 100%; min-width: 0; min-height: 0; width: auto; height: auto; flex: none; object-fit: contain; display: block; border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .55); transform-origin: center center; will-change: transform; cursor: zoom-in;
    opacity: 1; transition: opacity .2s ease; -webkit-user-drag: none; }
.lbx-img.is-anim { transition: transform .22s cubic-bezier(.2, .7, .2, 1), opacity .2s ease; }
.lbx.is-zoomed .lbx-img { cursor: grab; border-radius: 0; }
.lbx.is-zoomed .lbx-img:active { cursor: grabbing; }
.lbx-slide.is-loading .lbx-img { opacity: 0; }
.lbx-slide.is-error .lbx-img { opacity: 0; }
.lbx-slide.is-error::after { content: "Não foi possível carregar esta foto."; position: absolute; font-size: .92rem; color: rgba(244, 243, 239, .75); }
.lbx-spin { position: absolute; width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .16); border-top-color: #f4f3ef;
    opacity: 0; transition: opacity .2s ease; animation: lbx-spin .8s linear infinite; }
.lbx-slide.is-loading .lbx-spin { opacity: 1; }
@keyframes lbx-spin { to { transform: rotate(360deg); } }
.lbx-in-r { animation: lbx-in-r .24s cubic-bezier(.2, .7, .2, 1); }
.lbx-in-l { animation: lbx-in-l .24s cubic-bezier(.2, .7, .2, 1); }
@keyframes lbx-in-r { from { opacity: .3; transform: translate3d(36px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes lbx-in-l { from { opacity: .3; transform: translate3d(-36px, 0, 0); } to { opacity: 1; transform: none; } }

.lbx-nav { position: absolute; top: 50%; margin-top: -26px; width: 52px; height: 52px; z-index: 2; background: rgba(20, 21, 24, .55); }
.lbx-prev { left: 14px; }
.lbx-next { right: 14px; }
.lbx.is-single .lbx-nav, .lbx.is-single .lbx-thumbs { display: none; }
.lbx.is-zoomed .lbx-nav { opacity: 0; pointer-events: none; }

.lbx-thumbs { display: flex; gap: 8px; justify-content: safe center; overflow-x: auto; padding: 10px 18px 16px; scrollbar-width: none;
    background: linear-gradient(to top, rgba(9, 10, 12, .55), rgba(9, 10, 12, 0)); position: relative; z-index: 3; }
.lbx-thumbs::-webkit-scrollbar { display: none; }
.lbx-th { appearance: none; flex: none; width: 58px; height: 58px; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent; background: rgba(255, 255, 255, .06); opacity: .5; transition: opacity .15s ease, border-color .15s ease, transform .15s ease; }
.lbx-th img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.lbx-th:hover { opacity: .85; }
.lbx-th.is-on { opacity: 1; border-color: #f4f3ef; transform: translateY(-2px); }

@media (max-width: 720px) {
    .lbx-top { padding: 10px 12px 8px; gap: 10px; }
    .lbx-tools { gap: 6px; }
    .lbx-btn { width: 42px; height: 42px; }
    .lbx-slide { padding: 4px 0 8px; }
    .lbx-img { border-radius: 0; box-shadow: none; }
    .lbx-nav { display: none; }
    .lbx-thumbs { justify-content: flex-start; padding: 8px 12px 12px; }
    .lbx-th { width: 50px; height: 50px; border-radius: 8px; }
}
@media (hover: none) { .lbx-zoom { display: none; } }
@media (prefers-reduced-motion: reduce) {
    .lbx, .lbx-track.is-anim, .lbx-img.is-anim { transition: none; }
    .lbx-in-r, .lbx-in-l { animation: none; }
}

/* v320: "Voltar uma etapa" no Status e histórico (sb-) */
.sb { margin: 1rem 0 .2rem; max-width: 46rem; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 10px 24px -22px rgba(0, 0, 0, .45); overflow: hidden; }
.sb-sum { display: flex; align-items: center; gap: .75rem; padding: .7rem .9rem; cursor: pointer; list-style: none; user-select: none; }
.sb-sum::-webkit-details-marker { display: none; }
.sb-sum:hover { background: color-mix(in srgb, var(--info) 5%, transparent); }
.sb-sum:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; border-radius: 14px; }
.sb-ico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--info-bg); color: var(--info); }
.sb-txt { display: flex; flex-wrap: wrap; column-gap: .45rem; row-gap: .05rem; font-size: .92rem; line-height: 1.35; min-width: 0; }
.sb-txt > span { color: var(--muted); }
.sb-txt b { color: var(--ink); font-weight: 600; }
.sb-chev { margin-left: auto; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .18s ease; }
.sb[open] .sb-chev { transform: rotate(-135deg) translate(-2px, -2px); }
.sb[open] .sb-sum { box-shadow: inset 0 -1px 0 var(--line); }
.sb-form { padding: .9rem .9rem 1rem; display: grid; gap: .8rem; }
.sb-path { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.sb-path li { padding: .3rem .7rem; border-radius: 999px; font-size: .84rem; font-weight: 600; line-height: 1.3; }
.sb-from { background: color-mix(in srgb, var(--muted) 12%, transparent); color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.sb-to { background: var(--info-bg); color: var(--info); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--info) 25%, transparent); }
.sb-path .sb-to::before { content: "\2190"; margin-right: .35rem; font-weight: 700; }
.sb-facts { margin: 0; padding: 0; list-style: none; display: grid; gap: .35rem; font-size: .86rem; line-height: 1.45; color: var(--ink-2); }
.sb-facts li { position: relative; padding-left: 1.1rem; }
.sb-facts li::before { content: ""; position: absolute; left: .2rem; top: .58em; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.sb-facts .sb-warn { padding: .6rem .8rem .6rem 1.9rem; border-radius: 10px; background: var(--warn-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 26%, transparent); }
.sb-facts .sb-warn::before { left: .85rem; top: 1.05em; background: var(--warn); }
.sb-warn strong { color: var(--warn); }
.sb-field { margin: 0; max-width: 34rem; }
.sb-form .btn { display: inline-flex; align-items: center; gap: .4rem; }
.tl-back-tag { display: inline-flex; align-items: center; gap: .25rem; margin-left: .4rem; padding: .08rem .5rem; border-radius: 999px; background: var(--info-bg); color: var(--info); font-size: .72rem; font-weight: 600; vertical-align: .12em; }
.timeline li.tl-back::before { background: var(--card); box-shadow: inset 0 0 0 2px var(--info); }
@media (max-width: 560px) {
    .sb-sum { padding: .65rem .75rem; }
    .sb-form { padding: .8rem .75rem .9rem; }
    .sb-form .btn { width: 100%; justify-content: center; }
}
/* v320: trava do protótipo no "Mudar para" */
.st-lock { display: flex; align-items: flex-start; gap: .65rem; max-width: 46rem; margin: 0 0 .9rem; padding: .7rem .85rem; border-radius: 12px; background: var(--info-bg); color: var(--ink-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--info) 22%, transparent); font-size: .86rem; line-height: 1.45; }
.st-lock p { margin: 0; }
.st-lock strong { color: var(--ink); font-weight: 700; }
.st-lock-ico { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: color-mix(in srgb, var(--info) 14%, var(--card)); color: var(--info); }

/* v322 · Sistema › Urgência (ug-) e linha "Taxa de urgência" no orçamento */
:root { --ug: #a86a0c; --ug-soft: #fdf1dc; --ug-line: #f1d7a8; --ug-block: #f6e1e1; --ug-block-t: #a2393f; }
html[data-theme="dark"] { --ug: #f0c069; --ug-soft: #33291a; --ug-line: #5a4522; --ug-block: #3a2224; --ug-block-t: #f0a3a8; }
.ug-status { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .35rem .85rem; align-items: center; margin-bottom: 1rem; padding: .95rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.ug-status > div { display: grid; gap: .1rem; min-width: 0; }
.ug-status strong { font-size: .95rem; font-weight: 720; }
.ug-status > div > span { font-size: .84rem; color: var(--muted); line-height: 1.45; }
.ug-status .btn { grid-column: 1 / -1; justify-self: start; }
.ug-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--viz-axis); box-shadow: 0 0 0 4px var(--viz-track); }
.ug-status.is-on .ug-dot { background: #1f9d55; box-shadow: 0 0 0 4px #e3f4ea; }
html[data-theme="dark"] .ug-status.is-on .ug-dot { box-shadow: 0 0 0 4px #183025; }
@media (min-width: 720px) { .ug-status { grid-template-columns: auto minmax(0, 1fr) auto; } .ug-status .btn { grid-column: auto; } }
.ug-step { background: var(--ug-soft); color: var(--ug); }
.ug-line { display: flex; height: 34px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.ug-seg { display: grid; place-items: center; min-width: 0; padding: 0 .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .02em; transition: flex-grow .25s ease; }
.ug-seg span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ug-seg.is-block { flex: 7 1 0; background: repeating-linear-gradient(135deg, var(--ug-block), var(--ug-block) 6px, transparent 6px, transparent 12px); color: var(--ug-block-t); }
.ug-seg.is-win { flex: 8 1 0; background: var(--ug); color: #fff; }
html[data-theme="dark"] .ug-seg.is-win { color: #241a08; }
.ug-seg.is-norm { flex: 6 1 0; color: var(--muted); }
.ug-seg.is-empty { flex-grow: 0 !important; padding: 0; }
.ug-seg.is-empty span { display: none; }
.ug-marks { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.ug-marks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: .45rem .6rem; border-radius: 10px; background: var(--paper); font-size: .85rem; }
.ug-marks li span { color: var(--muted); }
.ug-marks li b { font-weight: 700; white-space: nowrap; }
.ug-marks li:nth-child(2) b, .ug-marks li:nth-child(3) b { color: var(--ug); }
@media (min-width: 1200px) { .ug-marks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ug-warn { display: flex; gap: .5rem; align-items: flex-start; margin: 0; padding: .6rem .8rem; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: .84rem; }
.ug-warn[hidden] { display: none; }
.ug-quote { border-left-color: var(--ug); }
.ug-quote q { quotes: "“" "”"; color: var(--muted); }
.ug-chip { display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: 999px; background: var(--ug-soft); color: var(--ug); font-style: normal; font-weight: 700; font-size: .8rem; }
.ug-recent { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.ug-recent li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .15rem 1rem; align-items: center; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: .86rem; }
.ug-recent a { display: flex; gap: .55rem; min-width: 0; color: inherit; text-decoration: none; }
.ug-recent a span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ug-recent a:hover strong { text-decoration: underline; }
.ug-recent b { color: var(--ug); white-space: nowrap; }
@media (max-width: 560px) { .ug-recent li { grid-template-columns: minmax(0, 1fr) auto; } .ug-r-d { grid-column: 1; grid-row: 2; } .ug-recent b { grid-row: 1 / span 2; grid-column: 2; } }
.ug-r-d { color: var(--muted); font-size: .8rem; }
/* Pedido: selo de urgência e campo no orçamento */
.ug-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 999px; background: var(--ug-soft); color: var(--ug); font-size: .76rem; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.ug-badge .ico { width: 13px; height: 13px; }
.quote-form .ug-field label { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.ug-kv-note { display: block; margin-top: .3rem; }
.ug-recent a strong { white-space: nowrap; }

/* v323 · Urgência: agenda de datas (aberta / lotada / domingo) e urgências que ocupam a produção */
.ug-cal { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: .4rem; }
.ug-day { display: grid; justify-items: center; gap: .05rem; padding: .4rem .2rem; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); line-height: 1.15; }
.ug-day b { font-size: 1.05rem; font-weight: 750; }
.ug-day small { font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ug-day.is-open { border-color: var(--ug); background: var(--ug-soft); }
.ug-day.is-open b { color: var(--ug); }
.ug-day.is-full { background: repeating-linear-gradient(135deg, var(--ug-block), var(--ug-block) 5px, transparent 5px, transparent 10px); border-color: transparent; }
.ug-day.is-full b { color: var(--ug-block-t); text-decoration: line-through; }
.ug-day.is-sun { opacity: .45; }
.ug-legend { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; margin: 0; font-size: .78rem; color: var(--muted); }
.ug-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: .35rem; border-radius: 3px; vertical-align: -1px; border: 1px solid var(--line); background: var(--paper); }
.ug-legend span.is-open::before { background: var(--ug-soft); border-color: var(--ug); }
.ug-legend span.is-full::before { background: var(--ug-block); border-color: transparent; }
.ug-legend span.is-sun::before { opacity: .45; }
.ug-legend em { font-style: normal; }
.ug-res { display: grid; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.ug-res li { display: grid; gap: .15rem; padding: .55rem .75rem; border-radius: 12px; border-left: 3px solid var(--ug); background: var(--paper); font-size: .86rem; }
.ug-res a { display: flex; gap: .5rem; min-width: 0; color: inherit; text-decoration: none; }
.ug-res a strong { white-space: nowrap; }
.ug-res a span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ug-res a:hover strong { text-decoration: underline; }
.ug-res-d { font-size: .8rem; color: var(--muted); }

/* v324 · Urgência paga em destaque: grupo fixo no topo da Fila de produção, selo nas listas e no pedido */
.pq-t-urgent { --c: var(--ug); }
.pq-sum-i.pq-t-urgent:not(.is-zero) { background: var(--ug); border-color: var(--ug); color: #fff; }
.pq-sum-i.pq-t-urgent:not(.is-zero) span { color: #fff; }
html[data-theme="dark"] .pq-sum-i.pq-t-urgent:not(.is-zero), html[data-theme="dark"] .pq-sum-i.pq-t-urgent:not(.is-zero) span { color: #241a08; }
.pq-group.pq-t-urgent { padding: .75rem; border-radius: 16px; background: color-mix(in srgb, var(--ug-soft) 70%, transparent); border: 1px solid var(--ug-line); }
.pq-flag.pq-flag-urg { background: var(--ug); color: #fff; }
html[data-theme="dark"] .pq-flag.pq-flag-urg { color: #241a08; }
.ug-tag { display: inline-flex; align-items: center; gap: .25rem; margin-left: .35rem; padding: .05rem .5rem; border-radius: 999px; background: var(--ug); color: #fff; font-size: .72rem; font-weight: 750; white-space: nowrap; vertical-align: middle; }
html[data-theme="dark"] .ug-tag { color: #241a08; }
.ug-tag .ico { width: 12px; height: 12px; }
.ug-tag.ug-tag-soft { background: var(--ug-soft); color: var(--ug); box-shadow: inset 0 0 0 1px var(--ug-line); }
html[data-theme="dark"] .ug-tag.ug-tag-soft { color: var(--ug); }
.po-date .ug-tag { margin-left: 0; }
h1 .ug-tag { font-size: .78rem; padding: .15rem .6rem; }
@media (min-width: 720px) { .pq-sum { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); } }
.po-st .ug-tag { margin-left: 0; }
.pq-flag.pq-flag-urg { max-width: 100%; white-space: normal; line-height: 1.3; }

/* v325: projeto zerado no orçamento (não pode ser enviado) */
.quote-total { transition: color .2s ease; }
.quote-total.is-zero { color: var(--warn); }
.qz-warn { display: flex; align-items: flex-start; gap: .45rem; margin-top: .35rem; line-height: 1.45;
    color: var(--warn); background: var(--warn-bg); border-radius: var(--radius-sm); padding: .45rem .65rem; }
.qz-warn[hidden] { display: none; }
.qz-warn svg { flex: none; margin-top: .15rem; }
.qz-warn strong { color: inherit; font-weight: 650; }

/* ---------- Loja › Campanhas (v326, prefixo cg-) ---------- */
.cg-hero { position: relative; overflow: hidden; display: grid; gap: 1.4rem; grid-template-columns: minmax(0, 1fr); margin-bottom: 1.25rem; padding: 1.5rem 1.4rem; border-radius: 22px; color: #f4ece4; background: radial-gradient(120% 140% at 100% 0%, #3a2a22 0%, #1c1917 55%, #141110 100%); box-shadow: 0 2px 4px rgba(17, 18, 20, .08), 0 24px 44px -24px rgba(28, 20, 16, .7); isolation: isolate; }
.cg-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, #c9a392, #e8cfc6, #d8bfaf, #c9a392); }
.cg-hero::before { content: ""; position: absolute; z-index: -1; right: -6rem; top: -6rem; width: 18rem; height: 18rem; border-radius: 50%; background: radial-gradient(circle, rgba(232, 207, 198, .16), transparent 70%); }
.cg-hero-main { display: grid; gap: .55rem; align-content: start; min-width: 0; }
.cg-hero-name { margin: .1rem 0 0; font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: #fff; }
.cg-hero-off { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .55rem; }
.cg-hero-off strong { font-size: 2.6rem; font-weight: 800; letter-spacing: -.045em; line-height: 1; color: #e8cfc6; font-variant-numeric: tabular-nums; }
.cg-hero-off span { color: #cbbdb2; font-size: .95rem; }
.cg-when { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); max-width: 34rem; }
.cg-when li { display: grid; gap: .05rem; padding: .55rem .8rem; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.cg-when span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #a8988c; }
.cg-when strong { font-weight: 600; color: #fff; }
.cg-hero-note { margin: .35rem 0 0; display: flex; gap: .45rem; align-items: flex-start; font-size: .86rem; color: #cbbdb2; max-width: 62ch; }
.cg-hero-note svg { flex: none; margin-top: .2rem; }
.cg-hero-upto { margin: .1rem 0 0; display: inline-flex; gap: .5rem; align-items: flex-start; font-size: .86rem; color: #e9ddd3; background: rgba(216, 191, 175, .1); border: 1px solid rgba(216, 191, 175, .22); border-radius: 12px; padding: .5rem .75rem; max-width: 62ch; }
.cg-hero-upto svg { flex: none; margin-top: .2rem; color: #d8bfaf; }
.cg-hero-upto strong { color: #fff; font-weight: 600; }
.cg-hero-side { display: grid; gap: .6rem; align-content: center; justify-items: start; }
.cg-cd-l { margin: 0; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: #a8988c; }
.cg-cd { display: flex; gap: .45rem; }
.cg-cd span { display: grid; justify-items: center; min-width: 4.1rem; padding: .6rem .5rem .5rem; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.cg-cd b { font-size: 1.9rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.cg-cd small { margin-top: .25rem; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: #a8988c; }
.cg-hero-act { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .2rem; }
.cg-btn-lt { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .18); }
.cg-btn-lt:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.cg-kpis { grid-column: 1 / -1; list-style: none; margin: 0; padding: 1rem 0 0; display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .1); }
.cg-kpis li { display: grid; gap: .1rem; }
.cg-kpis span { font-size: .78rem; color: #a8988c; }
.cg-kpis strong { font-size: 1.3rem; font-weight: 750; color: #fff; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .cg-hero { grid-template-columns: minmax(0, 1fr) auto; padding: 1.8rem 2rem; } .cg-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 479px) { .cg-cd span { min-width: 0; flex: 1; } .cg-cd b { font-size: 1.5rem; } }

.cg-chip { margin: 0; justify-self: start; display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .65rem; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .02em; background: var(--paper); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.cg-chip-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.cg-chip.is-no_ar { background: #fbe7df; color: #a3361b; border-color: #f3c7b8; }
.cg-chip.is-no_ar .cg-chip-dot { animation: cg-blink 1.6s ease-in-out infinite; }
.cg-chip.is-contagem { background: #fdf1d9; color: #8f5a00; border-color: #f0dbab; }
.cg-chip.is-agendada { background: #eaeef5; color: #3b4a63; border-color: #d3dae6; }
.cg-hero .cg-chip { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; }
.cg-hero .cg-chip.is-no_ar { background: rgba(240, 138, 107, .18); border-color: rgba(240, 138, 107, .45); color: #ffc7b4; }
@keyframes cg-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.75); } }

.cg-dates { display: grid; gap: .8rem 1rem; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); max-width: 30rem; }
.cg-dates .field { margin: 0; }
@media (min-width: 1100px) { .cg-dates { max-width: 54rem; grid-template-columns: minmax(10.5rem, 1.4fr) minmax(7.5rem, 1fr) minmax(10.5rem, 1.4fr) minmax(7.5rem, 1fr); } }
.cg-cd-f { margin: 0; max-width: 26rem; }
.cg-pct-in { max-width: 9rem; }
.cg-tbl-w { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.cg-tbl { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 36rem; }
.cg-tbl th, .cg-tbl td { padding: .55rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cg-tbl thead th { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--paper); }
.cg-tbl tbody tr:last-child > * { border-bottom: 0; }
.cg-tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cg-tbl tbody th { font-weight: 400; }
.cg-tbl-p { display: flex; align-items: center; gap: .65rem; }
.cg-tbl-p .kl-piece-img { width: 40px; height: 40px; flex: none; }
.cg-tbl-p > span:last-child { display: grid; line-height: 1.25; }
.cg-tbl-p small { font-size: .78rem; }
.cg-x { width: 5.2rem; text-align: right; padding: .35rem .55rem; min-height: 0; }
.cg-x.is-bad { border-color: var(--fail); }
.cg-now { font-weight: 700; color: var(--ok); }
.cg-now.is-exc { color: #a3361b; }
.cg-now.is-muted { font-weight: 400; color: var(--muted); }
.cg-tbl tr.is-out td, .cg-tbl tr.is-out th { opacity: .62; }
.cg-sw { display: flex; align-items: flex-start; gap: .8rem; cursor: pointer; max-width: 46rem; }
.cg-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cg-sw-t { position: relative; flex: none; width: 2.6rem; height: 1.5rem; margin-top: .1rem; border-radius: 999px; background: #d6d3cc; transition: background-color .2s; }
.cg-sw-t::after { content: ""; position: absolute; top: 3px; left: 3px; width: calc(1.5rem - 6px); height: calc(1.5rem - 6px); border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.cg-sw input:checked + .cg-sw-t { background: var(--ok); }
.cg-sw input:checked + .cg-sw-t::after { transform: translateX(1.1rem); }
.cg-sw input:focus-visible + .cg-sw-t { outline: 3px solid var(--focus); outline-offset: 2px; }
.cg-sw > span:last-child { display: grid; gap: .15rem; line-height: 1.3; }
.cg-sw small { font-size: .86rem; }
.cg-actions { gap: .5rem; }

.cg-list-h { margin: 1.6rem 0 .75rem; font-size: 1.05rem; }
.cg-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .7rem; }
.cg-item { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .9rem 1rem; align-items: center; padding: .95rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.cg-item-off { display: grid; justify-items: center; align-content: center; width: 4.6rem; height: 4.6rem; border-radius: 14px; background: #1c1917; color: #fff; line-height: 1; }
.cg-item-off strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; color: #e8cfc6; }
.cg-item-off span { font-size: .64rem; letter-spacing: .14em; margin-top: .2rem; color: #a8988c; }
.cg-item.is-encerrada .cg-item-off, .cg-item.is-desligada .cg-item-off { background: var(--paper); border: 1px solid var(--line); }
.cg-item.is-encerrada .cg-item-off strong, .cg-item.is-desligada .cg-item-off strong { color: var(--muted); }
.cg-item-b { display: grid; gap: .2rem; min-width: 0; }
.cg-item-b p { margin: 0; }
.cg-item-t { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.cg-item-t strong { font-size: 1.02rem; }
.cg-item-m { font-size: .88rem; }
.cg-item-a { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; justify-content: flex-end; }
.cg-item-a form { margin: 0; }
.cg-del:hover { color: var(--fail); }
@media (min-width: 900px) { .cg-item { grid-template-columns: auto minmax(0, 1fr) auto; } .cg-item-a { grid-column: auto; } }

html[data-theme="dark"] .cg-hero { background: radial-gradient(120% 140% at 100% 0%, #33241d 0%, #18151a 55%, #111013 100%); border: 1px solid #2c2622; }
html[data-theme="dark"] .cg-chip.is-no_ar { background: #3a211b; color: #ffb39a; border-color: #5a3127; }
html[data-theme="dark"] .cg-chip.is-contagem { background: #33291a; color: #e8b653; border-color: #4a3b20; }
html[data-theme="dark"] .cg-chip.is-agendada { background: #222a38; color: #b3c0da; border-color: #33405a; }
html[data-theme="dark"] .cg-item-off { background: #0f0d0c; border: 1px solid #2c2622; }
html[data-theme="dark"] .cg-now.is-exc { color: #ffb39a; }
html[data-theme="dark"] .cg-sw-t { background: #3a3d44; }
@media (prefers-reduced-motion: reduce) { .cg-chip.is-no_ar .cg-chip-dot { animation: none; } }
/* Campanhas: formulário em uma coluna, seções separadas por linha (o .cp-form largo dos cupons não se aplica aqui) */
.cp-form.cg-form { grid-template-columns: minmax(0, 1fr); gap: 0; padding: .5rem 1.25rem 1.25rem; }
.cp-form.cg-form > .cp-set { order: 0; grid-column: auto; padding: 1.3rem 0; border-left: 0; border-top: 1px solid var(--line); }
.cp-form.cg-form > .cp-set:first-of-type, .cp-form.cg-form > .cp-warn + .cp-set { border-top: 0; }
.cp-form.cg-form > .cp-warn { margin: .8rem 0 .2rem; }
.cp-form.cg-form > .cp-actions { order: 0; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.cg-form .cp-fields { max-width: 60rem; }
.cg-form .cp-fields .cp-wide .input { max-width: 36rem; }
.cg-val { display: flex; align-items: stretch; gap: .5rem; }
.cg-seg { display: inline-flex; padding: 3px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.cg-seg label { position: relative; display: grid; }
.cg-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cg-seg span { display: grid; place-items: center; min-width: 2.8rem; padding: 0 .7rem; border-radius: 9px; font-weight: 700; color: var(--muted); cursor: pointer; transition: background-color .15s, color .15s; }
.cg-seg input:checked + span { background: var(--ink); color: var(--card); }
.cg-seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
.cg-xw { display: inline-flex; gap: .3rem; justify-content: flex-end; }
.cg-xk { width: 9.4rem; padding: .35rem .4rem; min-height: 0; }
.cg-x { width: 6.2rem; }
.cg-item-off.is-long strong { font-size: 1rem; }

/* ===== Loja › Pedidos › Vendas do dia (v336): ficha de tudo o que a loja vendeu num dia ===== */
.vd { --vd-acc: #2c78d6; --vd-pix: #17916a; --vd-card: #2c78d6; --vd-manual: #7a5bd6; --vd-post: #c98a12; --vd-track: #efede8; --vd-soft: #f7f6f2; }
html[data-theme="dark"] .vd { --vd-acc: #6aa2e5; --vd-pix: #5fd3a6; --vd-card: #78aaf0; --vd-manual: #b49cf2; --vd-post: #e8b653; --vd-track: #2a2d33; --vd-soft: #212328; }
.vd-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .9rem 1.4rem; margin: 0 0 1.1rem; }
.vd-title { min-width: 0; }
.vd-back { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .35rem; font-size: .82rem; font-weight: 650; color: var(--muted); text-decoration: none; }
.vd-back:hover { color: var(--ink); }
.vd-back svg { transform: rotate(90deg); }
.vd-title h1 { margin: 0; font-size: clamp(1.6rem, 4.4vw, 2.15rem); font-weight: 800; letter-spacing: -.025em; }
.vd-date { margin: .2rem 0 0; font-size: .98rem; color: var(--muted); }
.vd-date b { color: var(--ink); font-weight: 750; }
.vd-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.vd-daynav { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.vd-step { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--ink); text-decoration: none; transition: background .15s; }
.vd-step:hover { background: var(--vd-soft); }
.vd-step svg { transform: rotate(90deg); }
.vd-pick + .vd-step svg { transform: rotate(-90deg); }
.vd-step.is-off { color: var(--line); }
.vd-pick { display: inline-flex; align-items: center; gap: .25rem; margin: 0; }
.vd-pick input { height: 36px; padding: 0 .55rem; border: 0; border-radius: 10px; background: var(--vd-soft); color: var(--ink); font: inherit; font-size: .92rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.vd-go[hidden] { display: none; }
.vd-go { height: 36px; padding: 0 .7rem; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; }
.vd-go:hover { color: var(--ink); background: var(--vd-soft); }
.vd-today { display: inline-flex; align-items: center; height: 36px; padding: 0 .8rem; border-radius: 10px; background: var(--ink); color: var(--card); font-size: .85rem; font-weight: 750; text-decoration: none; }
.vd-print { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; border-radius: 12px; }

.vd-hero { position: relative; display: grid; gap: 1.2rem; margin-bottom: .9rem; padding: 1.35rem 1.35rem 1.15rem; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.vd-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--vd-acc), var(--vd-pix)); }
.vd-hero-main { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; min-width: 0; }
.vd-eyebrow { font-size: .8rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.vd-big { font-size: clamp(2.5rem, 10vw, 3.8rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin: .1rem 0 .15rem; font-variant-numeric: tabular-nums; }
.vd-hero-s { font-size: .95rem; font-weight: 650; color: var(--ink-2); }
.vd-hero-n { font-size: .8rem; color: var(--muted); }
.vd-week { min-width: 0; padding: .8rem .85rem .6rem; background: var(--vd-soft); border-radius: 16px; }
.vd-week-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; margin-bottom: .55rem; font-size: .78rem; color: var(--muted); font-weight: 650; }
.vd-week-h b { color: var(--ink); font-size: .95rem; font-variant-numeric: tabular-nums; }
.vd-week-n { margin-left: auto; }
.vd-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; }
.vd-bar { display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; padding: .3rem .1rem .35rem; border-radius: 12px; color: inherit; text-decoration: none; transition: background .15s; }
.vd-bar:hover { background: var(--card); }
.vd-bar.is-on { background: var(--card); box-shadow: 0 0 0 1.5px var(--vd-acc); }
.vd-bar-v { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.vd-bar.is-on .vd-bar-v { color: var(--ink); }
.vd-bar-t { position: relative; display: flex; align-items: flex-end; width: 100%; max-width: 30px; height: 64px; }
.vd-bar-t i { display: block; width: 100%; min-height: 3px; border-radius: 7px 7px 3px 3px; background: color-mix(in srgb, var(--vd-acc) 38%, transparent); }
.vd-bar.is-zero .vd-bar-t i { height: 3px; background: var(--line); }
.vd-bar.is-on .vd-bar-t i { background: linear-gradient(180deg, var(--vd-acc), color-mix(in srgb, var(--vd-acc) 70%, var(--vd-pix))); }
.vd-bar-d { display: flex; flex-direction: column; align-items: center; font-size: .72rem; font-weight: 700; color: var(--muted); line-height: 1.15; text-transform: capitalize; }
.vd-bar-d small { font-size: .78rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vd-bar.is-on .vd-bar-d { color: var(--vd-acc); }
.vd-h-0 { height: 0%; } .vd-h-10 { height: 10%; } .vd-h-20 { height: 20%; } .vd-h-30 { height: 30%; } .vd-h-40 { height: 40%; } .vd-h-50 { height: 50%; } .vd-h-60 { height: 60%; } .vd-h-70 { height: 70%; } .vd-h-80 { height: 80%; } .vd-h-90 { height: 90%; } .vd-h-100 { height: 100%; } 
.vd-w-0 { width: 0%; } .vd-w-10 { width: 10%; } .vd-w-20 { width: 20%; } .vd-w-30 { width: 30%; } .vd-w-40 { width: 40%; } .vd-w-50 { width: 50%; } .vd-w-60 { width: 60%; } .vd-w-70 { width: 70%; } .vd-w-80 { width: 80%; } .vd-w-90 { width: 90%; } .vd-w-100 { width: 100%; } 

.vd-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin-bottom: .9rem; }
.vd-kpi { --kc: var(--vd-acc); display: flex; align-items: flex-start; gap: .7rem; min-width: 0; padding: .9rem .95rem; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.vd-kpi.k-green { --kc: var(--vd-pix); } .vd-kpi.k-amber { --kc: var(--vd-post); } .vd-kpi.k-rose { --kc: #d0485f; }
html[data-theme="dark"] .vd-kpi.k-rose { --kc: #f08fa0; }
.vd-kpi-i { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--kc); background: color-mix(in srgb, var(--kc) 13%, transparent); }
.vd-kpi-b { display: flex; flex-direction: column; min-width: 0; }
.vd-kpi-l { font-size: .76rem; font-weight: 650; color: var(--muted); }
.vd-kpi strong { margin-top: .1rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vd-kpi-s { margin-top: .15rem; font-size: .76rem; color: var(--muted); line-height: 1.35; }

.vd-card { min-width: 0; margin-bottom: .9rem; padding: 1.1rem 1.15rem 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.vd-card-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .8rem; margin-bottom: .75rem; }
.vd-card-h h2 { margin: 0; font-size: 1.08rem; font-weight: 750; letter-spacing: -.015em; }
.vd-card-n { font-size: .8rem; font-weight: 650; color: var(--muted); }
.vd-none { margin: 0; color: var(--muted); font-size: .9rem; }
.vd-foot { margin: .7rem 0 0; font-size: .78rem; color: var(--muted); }
.vd-cols { display: grid; gap: 0 .9rem; }
.vd-side { min-width: 0; }

.vd-plist { list-style: none; margin: 0; padding: 0; }
.vd-p { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .25rem .8rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.vd-p:first-child { border-top: 0; padding-top: .1rem; }
.vd-p-q { grid-row: span 2; display: inline-grid; place-items: center; min-width: 2.9rem; height: 2.4rem; padding: 0 .4rem; border-radius: 11px; background: var(--vd-soft); font-size: 1.12rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.vd-p-b { display: flex; flex-direction: column; min-width: 0; }
.vd-p-n { font-weight: 700; line-height: 1.3; }
.vd-sku { margin-left: .2rem; font-size: .74rem; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }
.vd-p-s { font-size: .86rem; color: var(--ink-2); }
.vd-p-for { font-size: .76rem; color: var(--muted); }
.vd-p-bar { grid-column: 2; display: block; height: 4px; border-radius: 99px; background: var(--vd-track); overflow: hidden; }
.vd-p-bar i { display: block; height: 100%; border-radius: inherit; background: var(--vd-acc); }

.vd-meth { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.vd-m { --mc: var(--muted); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .6rem; align-items: baseline; }
.m-pix { --mc: var(--vd-pix); } .m-card { --mc: var(--vd-card); } .m-manual { --mc: var(--vd-manual); } .m-postpaid { --mc: var(--vd-post); }
.vd-dot { display: inline-block; width: 9px; height: 9px; margin-right: .45rem; border-radius: 50%; background: var(--mc); vertical-align: 1px; }
.vd-m-l { font-weight: 700; font-size: .92rem; min-width: 0; }
.vd-m-n { margin-left: .15rem; font-size: .76rem; font-weight: 600; color: var(--muted); }
.vd-m-v { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vd-m-v small { margin-left: .2rem; font-size: .74rem; font-weight: 650; color: var(--muted); }
.vd-m-t { grid-column: 1 / -1; display: block; height: 7px; border-radius: 99px; background: var(--vd-track); overflow: hidden; }
.vd-m-t i { display: block; height: 100%; border-radius: inherit; background: var(--mc); }
.vd-list { list-style: none; margin: 0; padding: 0; }
.vd-list li { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding: .55rem 0; border-top: 1px solid var(--line); font-size: .92rem; }
.vd-list li:first-child { border-top: 0; padding-top: 0; }
.vd-list li > span { min-width: 0; }
.vd-list b { flex: none; font-variant-numeric: tabular-nums; }
.vd-list code { font-size: .82rem; font-weight: 700; padding: .05rem .35rem; border-radius: 6px; background: var(--vd-soft); }

.vd-otable { display: grid; }
.vd-orow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .3rem .8rem; padding: .85rem 0; border-top: 1px solid var(--line); }
.vd-orow:first-child { border-top: 0; }
.vd-ohead { display: none; }
.vd-o-time { grid-row: span 3; padding-top: .1rem; font-size: .85rem; font-weight: 750; color: var(--muted); font-variant-numeric: tabular-nums; }
.vd-o-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; min-width: 0; }
.vd-o-code { font-weight: 800; color: var(--vd-acc); text-decoration: none; font-variant-numeric: tabular-nums; }
.vd-o-code:hover { text-decoration: underline; }
.vd-o-name { font-weight: 700; min-width: 0; }
.vd-o-city { font-size: .8rem; color: var(--muted); }
.vd-tags { display: flex; flex-wrap: wrap; gap: .25rem; width: 100%; margin-top: .15rem; }
.vd-tag { padding: .08rem .5rem; border-radius: 99px; font-size: .7rem; font-weight: 750; background: var(--vd-soft); color: var(--ink-2); }
.vd-tag.t-refund { background: var(--fail-bg); color: var(--fail); }
.vd-tag.t-attention { background: var(--warn-bg); color: var(--warn); }
.vd-tag.t-credit { background: var(--info-bg); color: var(--info); }
.vd-tag.t-coupon { background: color-mix(in srgb, #d0485f 12%, transparent); color: #b0344a; }
html[data-theme="dark"] .vd-tag.t-coupon { color: #f08fa0; }
.vd-o-val { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.vd-o-val b { font-size: 1.02rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vd-o-val small, .vd-o-ship small { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.vd-o-items { grid-column: 2 / -1; display: flex; flex-direction: column; gap: .1rem; font-size: .88rem; }
.vd-o-items small { color: var(--muted); font-size: .82rem; }
.vd-o-ship, .vd-o-pay { grid-column: 2 / -1; font-size: .82rem; color: var(--ink-2); }
.vd-o-ship { display: none; }
.vd-pay { display: inline-flex; align-items: center; font-weight: 700; font-size: .8rem; }
.vd-pay .vd-dot { margin-right: .35rem; }
.vd-orow.is-out .vd-o-items, .vd-orow.is-out .vd-o-val b, .vd-orow.is-out .vd-o-name { text-decoration: line-through; color: var(--muted); }
.vd-r { text-align: right; }
.vd-empty { display: flex; flex-direction: column; align-items: center; padding: 2.4rem 1.2rem; text-align: center; }
.vd-empty-i { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: .8rem; border-radius: 18px; background: var(--vd-soft); color: var(--muted); }
.vd-empty h2 { margin: 0 0 .3rem; font-size: 1.15rem; }
.vd-empty p { margin: 0; max-width: 40ch; color: var(--muted); font-size: .92rem; }
.vd-rule { margin: .4rem 0 0; font-size: .78rem; color: var(--muted); }
.vd-print svg, .vd-today { flex: none; }

@media (min-width: 720px) {
    .vd-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; padding: 1.6rem 1.75rem 1.5rem; }
    .vd-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .vd-card { padding: 1.25rem 1.4rem 1.15rem; }
}
@media (min-width: 900px) {
    .vd-orow { grid-template-columns: 3.4rem minmax(12rem, 1.15fr) minmax(0, 1.6fr) minmax(8rem, .8fr) minmax(8.5rem, .7fr) 8.5rem; align-items: start; gap: .8rem; padding: .8rem 0; }
    .vd-ohead { display: grid; padding: 0 0 .55rem; font-size: .72rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
    .vd-ohead + .vd-orow { border-top: 1px solid var(--line); }
    .vd-o-time, .vd-o-val, .vd-o-items, .vd-o-ship, .vd-o-pay { grid-row: auto; grid-column: auto; }
    .vd-o-ship { display: flex; flex-direction: column; }
    .vd-o-time { padding-top: 0; }
    .vd-o-who { flex-direction: column; flex-wrap: nowrap; gap: 0; }
}
@media (min-width: 1100px) {
    .vd-cols { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 420px) {
    .vd-daynav { flex: 1 1 auto; justify-content: space-between; }
    .vd-tools { width: 100%; }
    .vd-print { display: none; }
    .vd-kpi strong { font-size: 1.12rem; }
    .vd-bar-v { font-size: .6rem; }
}
@media (max-width: 560px) { .vd-bar:not(.is-on) .vd-bar-v { visibility: hidden; } .vd-bar.is-on .vd-bar-v { overflow: visible; } }
@media print {
    .vd-tools, .vd-back, .lj-top { display: none !important; }
    .vd-hero, .vd-kpi, .vd-card { box-shadow: none; break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .vd-orders { break-inside: auto; }
    .vd-orow { break-inside: avoid; }
}

/* v337: desconto médio da campanha, comparação com a semana anterior e horário das vendas */
.vd-cmp { font-size: .84rem; color: var(--muted); }
.vd-cmp b { font-weight: 800; font-variant-numeric: tabular-nums; }
.vd-cmp b.is-up { color: var(--ok); } .vd-cmp b.is-down { color: var(--fail); }
.vd-camp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .8rem; align-items: center; margin: 0 0 .8rem; padding: .8rem .9rem; border-radius: 14px; background: color-mix(in srgb, #d0485f 9%, var(--card)); border: 1px solid color-mix(in srgb, #d0485f 22%, transparent); }
.vd-camp-l { font-size: .82rem; font-weight: 750; color: var(--ink-2); }
.vd-camp strong { grid-row: span 2; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: #b0344a; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .vd-camp strong { color: #f08fa0; }
.vd-camp-s { font-size: .76rem; color: var(--muted); line-height: 1.35; }
.vd-main { min-width: 0; }
.vd-hbars { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; height: 84px; padding: 0 .1rem; }
.vd-hb { display: flex; align-items: flex-end; height: 100%; }
.vd-hb i { display: block; width: 100%; min-height: 3px; border-radius: 5px 5px 2px 2px; background: color-mix(in srgb, var(--vd-acc) 40%, transparent); }
.vd-hb.is-zero i { height: 3px; background: var(--vd-track); }
.vd-hb.is-peak i { background: var(--vd-acc); }
.vd-haxis { display: flex; justify-content: space-between; margin-top: .35rem; font-size: .7rem; font-weight: 650; color: var(--muted); font-variant-numeric: tabular-nums; }

/* v338: Loja › Pedidos › Rota de entrega (Entrega Dommus na melhor ordem) */
.rt { --rt-acc: #2c78d6; --rt-ok: #17916a; --rt-soft: #f7f6f2; --rt-track: #e4e2dc; }
html[data-theme="dark"] .rt { --rt-acc: #6aa2e5; --rt-ok: #5fd3a6; --rt-soft: #212328; --rt-track: #34373d; }
.rt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .8rem; margin: 0 0 1.1rem; }
.rt-back { display: inline-flex; align-items: center; gap: .3rem; margin-bottom: .35rem; font-size: .82rem; font-weight: 650; color: var(--muted); text-decoration: none; }
.rt-back:hover { color: var(--ink); }
.rt-back svg { transform: rotate(90deg); }
.rt-title h1 { margin: 0; font-size: clamp(1.6rem, 4.4vw, 2.15rem); font-weight: 800; letter-spacing: -.025em; }
.rt-sub { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .55rem; margin: .3rem 0 0; font-size: .95rem; color: var(--muted); }
.rt-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; background: color-mix(in srgb, var(--rt-ok) 12%, var(--card)); color: var(--rt-ok); font-size: .78rem; font-weight: 750; }
.rt-card { margin: 0 0 .9rem; padding: 1.15rem 1.15rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.rt-h2 { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 .9rem; font-size: 1.08rem; font-weight: 750; }
.rt-h2 span { font-size: .8rem; font-weight: 650; color: var(--muted); }

.rt-hero { position: relative; display: grid; gap: 1.1rem; margin: 0 0 .9rem; padding: 1.25rem; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.rt-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--rt-acc), var(--rt-ok)); }
.rt-hero-main { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; min-width: 0; }
.rt-state { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rt-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.rt-state.is-ok i { background: var(--rt-ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rt-ok) 18%, transparent); }
.rt-state.is-go i { background: var(--rt-acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rt-acc) 18%, transparent); animation: rt-pulse 1.8s ease-in-out infinite; }
.rt-state.is-warn i { background: var(--warn); }
@keyframes rt-pulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--rt-acc) 6%, transparent); } }
@media (prefers-reduced-motion: reduce) { .rt-state.is-go i { animation: none; } }
.rt-big { font-size: clamp(2.1rem, 8vw, 3rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.rt-big small { font-size: .42em; font-weight: 700; letter-spacing: 0; color: var(--muted); }
.rt-total { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: 1rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rt-total b { font-weight: 800; color: var(--ink); }
.rt-total svg { color: var(--rt-acc); }
.rt-note { font-size: .84rem; color: var(--muted); max-width: 52ch; }
.rt-cta { display: flex; flex-direction: column; gap: .55rem; width: 100%; margin-top: .55rem; }
.rt-go { display: flex; align-items: center; gap: .75rem; min-height: 60px; padding: .7rem 1rem; border-radius: 16px; background: var(--ink); color: var(--card); text-decoration: none; transition: transform .08s ease, background .15s; }
.rt-go:hover { background: #000; }
html[data-theme="dark"] .rt-go:hover { background: #fff; }
.rt-go:active { transform: translateY(1px); }
.rt-go.is-next { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.rt-go-i { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; background: color-mix(in srgb, var(--card) 14%, transparent); }
.rt-go.is-next .rt-go-i { background: var(--rt-soft); }
.rt-go-t { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.rt-go-t b { font-size: 1.02rem; font-weight: 750; }
.rt-go-t small { font-size: .8rem; opacity: .75; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-cta-row { display: flex; flex-wrap: wrap; gap: .45rem; }
.rt-mini { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: 0 .85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; font-size: .86rem; font-weight: 650; text-decoration: none; cursor: pointer; }
.rt-mini:hover { background: var(--rt-soft); }
.rt-mini[hidden] { display: none; }
.rt-tip { display: flex; gap: .4rem; align-items: flex-start; margin: .1rem 0 0; font-size: .78rem; line-height: 1.4; color: var(--muted); }
.rt-tip svg { flex: none; margin-top: .1rem; }

.rt-map { position: relative; min-width: 0; border-radius: 16px; overflow: hidden; background: var(--rt-soft); border: 1px solid var(--line); }
.rt-map img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.rt-map-leg { position: absolute; left: .6rem; bottom: .6rem; display: inline-flex; flex-wrap: wrap; align-items: center; gap: .3rem; padding: .3rem .55rem; border-radius: 10px; background: rgba(255, 255, 255, .92); color: #2a2c30; font-size: .72rem; font-weight: 650; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.rt-map-leg[hidden] { display: none; }
.rt-map-leg i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; font-style: normal; font-size: .65rem; font-weight: 800; color: #fff; background: #2c78d6; }
.rt-map-leg i.is-p { background: #111214; }
.rt-map.is-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; min-height: 200px; padding: 1.2rem; text-align: center; }
.rt-map.is-empty p { margin: 0; max-width: 30ch; font-size: .85rem; color: var(--muted); }
.rt-map-ph svg { width: 170px; height: auto; color: var(--rt-track); fill: var(--rt-track); }
.rt-map-off[hidden] { display: none; }

.rt-fs { margin: 0 0 1rem; padding: 0; border: 0; min-width: 0; }
.rt-fs legend { margin: 0 0 .5rem; padding: 0; font-size: .78rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rt-seg { display: grid; gap: .5rem; }
.rt-opt { position: relative; display: block; cursor: pointer; }
.rt-opt[hidden] { display: none; }
.rt-opt input { position: absolute; opacity: 0; pointer-events: none; }
.rt-opt > span { display: flex; flex-direction: column; gap: .1rem; height: 100%; padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .15s, background .15s; }
.rt-opt b { display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; font-weight: 700; }
.rt-opt small { font-size: .78rem; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.rt-opt:hover > span { background: var(--rt-soft); }
.rt-opt input:checked + span { border-color: var(--ink); background: var(--rt-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.rt-opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.rt-opt input:disabled + span { opacity: .5; cursor: not-allowed; }
.rt-seg-sm .rt-opt > span { padding: .6rem .85rem; }
.rt-addr { margin-top: .7rem; max-width: 34rem; }
.rt-addr[hidden] { display: none; }
.rt-addr label { display: block; margin-bottom: .3rem; font-size: .85rem; font-weight: 650; }
.rt-addr input { width: 100%; min-height: 44px; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; }
.rt-opts-act { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem; }
.rt-when { font-size: .8rem; color: var(--muted); }

.rt-line { list-style: none; margin: 0; padding: 0; }
.rt-node { position: relative; display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); gap: .8rem; padding: 0 0 1.1rem; }
.rt-node::before { content: ""; position: absolute; left: calc(1.1rem - 1px); top: 2.3rem; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, var(--rt-track) 0 6px, transparent 6px 11px); }
.rt-node:last-child { padding-bottom: 0; }
.rt-node:last-child::before { display: none; }
.rt-dot { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--rt-acc); color: #fff; font-weight: 800; font-size: .95rem; box-shadow: 0 0 0 4px var(--card); font-variant-numeric: tabular-nums; }
.rt-node.is-start .rt-dot, .rt-node.is-end .rt-dot { background: var(--ink); color: var(--card); }
.rt-node-b { min-width: 0; padding-top: .2rem; }
.rt-node.is-start .rt-node-b, .rt-node.is-end .rt-node-b { display: flex; flex-direction: column; }
.rt-node-b > small { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.rt-leg { grid-column: 2; display: inline-flex; align-items: center; gap: .3rem; justify-self: start; margin: -.35rem 0 .1rem; padding: .12rem .5rem; border-radius: 999px; background: var(--rt-soft); color: var(--muted); font-size: .74rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.rt-leg + .rt-dot { grid-row: 2; grid-column: 1; }
.rt-leg ~ .rt-node-b { grid-row: 2; grid-column: 2; }
.rt-node.is-stop .rt-node-b { padding: .75rem .9rem .8rem; margin-top: -.15rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.rt-node.is-stop:target .rt-node-b { border-color: var(--rt-acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rt-acc) 18%, transparent); }
.rt-stop-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .3rem .7rem; }
.rt-who { min-width: 0; font-size: 1rem; }
.rt-who b { font-weight: 750; }
.rt-code { font-size: .78rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.rt-code:hover { color: var(--ink); text-decoration: underline; }
.rt-inc { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 650; color: var(--muted); cursor: pointer; white-space: nowrap; }
.rt-inc input { width: 17px; height: 17px; accent-color: var(--rt-acc); }
.rt-addr-l { margin: .3rem 0 0; font-size: .98rem; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.rt-comp { font-weight: 500; color: var(--muted); }
.rt-addr-s { margin: .05rem 0 0; font-size: .84rem; color: var(--muted); }
.rt-warn { display: flex; gap: .4rem; align-items: flex-start; margin: .55rem 0 0; padding: .45rem .6rem; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: .8rem; font-weight: 600; line-height: 1.4; }
.rt-warn svg { flex: none; margin-top: .1rem; }
.rt-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .7rem; }
.rt-acts form { margin: 0; }
.rt-act { display: inline-flex; align-items: center; gap: .3rem; min-height: 38px; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink); font: inherit; font-size: .84rem; font-weight: 650; text-decoration: none; cursor: pointer; }
.rt-act:hover { background: var(--rt-soft); }
.rt-act.is-nav { border-color: color-mix(in srgb, var(--rt-acc) 45%, var(--line)); color: var(--rt-acc); }
.rt-act.is-done { border-color: color-mix(in srgb, var(--rt-ok) 50%, var(--line)); color: var(--rt-ok); }
.rt-act.is-done:hover { background: color-mix(in srgb, var(--rt-ok) 10%, var(--card)); }
.rt-move { display: inline-flex; align-items: center; gap: .3rem; }
.rt-move-l { margin-right: .15rem; font-size: .76rem; font-weight: 650; color: var(--muted); }
.rt-stop-f { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .7rem; padding-top: .6rem; border-top: 1px dashed var(--line); }
.rt-move button { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 11px; background: var(--card); color: var(--ink); cursor: pointer; }
.rt-move button.is-up svg { transform: rotate(180deg); }
.rt-move button:hover:not(:disabled) { background: var(--rt-soft); }
.rt-move button:disabled { color: var(--rt-track); cursor: default; }
.rt-hint { display: flex; gap: .4rem; align-items: center; margin: 1rem 0 0; padding: .55rem .75rem; border-radius: 12px; background: var(--info-bg); color: var(--info); font-size: .84rem; font-weight: 600; }
.rt-hint[hidden] { display: none; }
.rt-side-p { margin: -.4rem 0 .7rem; font-size: .84rem; color: var(--muted); }
.rt-mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.rt-mini-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .55rem; padding: .5rem .7rem; border-radius: 12px; background: var(--rt-soft); font-size: .9rem; }
.rt-mini-list .rt-inc { color: var(--ink); font-size: .9rem; }
.rt-mini-list .muted { font-size: .82rem; }
.rt-ok { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--rt-ok) 16%, var(--card)); color: var(--rt-ok); }
.rt-foot { display: grid; gap: .3rem; margin: .4rem 0 0; padding: 0 .2rem; }
.rt-foot p { display: flex; gap: .4rem; align-items: flex-start; margin: 0; font-size: .78rem; color: var(--muted); line-height: 1.45; }
.rt-foot svg { flex: none; margin-top: .12rem; }
.rt-empty { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2.4rem 1.2rem; text-align: center; }
.rt-empty-i { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--rt-soft); color: var(--muted); }
.rt-empty h2 { margin: .2rem 0 0; font-size: 1.15rem; }
.rt-empty p { margin: 0; max-width: 44ch; font-size: .92rem; color: var(--muted); }
.rt-empty-ok { display: inline-flex; align-items: center; gap: .35rem; color: var(--rt-ok) !important; font-weight: 650; }

@media (min-width: 640px) {
    .rt-seg { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 46rem; }
    .rt-seg-sm { grid-template-columns: repeat(auto-fit, minmax(12rem, max-content)); }
    .rt-cta { flex-direction: row; flex-wrap: wrap; align-items: stretch; }
    .rt-go { flex: 1 1 18rem; max-width: 26rem; }
    .rt-cta-row, .rt-tip { flex-basis: 100%; }
    .rt-card { padding: 1.3rem 1.4rem 1.25rem; }
}
@media (min-width: 1000px) {
    .rt-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: stretch; padding: 1.5rem 1.6rem; }
    .rt-map { align-self: center; }
    .rt-hero-main { justify-content: center; }
    .rt-cta { flex-direction: column; }
    .rt-go { flex: none; max-width: 30rem; }
    .rt-cta-row, .rt-tip { flex-basis: auto; }
    .rt-tip { max-width: 30rem; }
}
@media (min-width: 1400px) {
    .rt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 1rem; align-items: start; }
    .rt > .rt-head, .rt > .rt-hero, .rt > .rt-empty, .rt > .panel { grid-column: 1 / -1; }
    .rt > .rt-opts { grid-column: 1; }
    .rt > .rt-stops { grid-column: 2; grid-row: span 4; }
    .rt > .rt-side, .rt > .rt-foot { grid-column: 1; }
}
@media (max-width: 420px) {
    .rt-hero, .rt-card { padding-left: 1rem; padding-right: 1rem; border-radius: 18px; }
    .rt-node { grid-template-columns: 1.9rem minmax(0, 1fr); gap: .55rem; }
    .rt-dot { width: 1.9rem; height: 1.9rem; font-size: .85rem; }
    .rt-node::before { left: calc(.95rem - 1px); top: 2rem; }
    .rt-node.is-stop .rt-node-b { padding: .65rem .7rem .7rem; }
    .rt-acts { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
    .rt-acts form, .rt-acts .rt-act { width: 100%; justify-content: center; }
    .rt-act { min-height: 42px; padding: 0 .5rem; }
}

/* v339 Corrigir endereço do pedido da loja (sad-) e atalho na rota */
.rt-fix { color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); white-space: nowrap; }
.rt-fix:hover { color: var(--ink); text-decoration-color: currentColor; }
.sad { margin-top: .85rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.sad summary { display: inline-flex; align-items: center; gap: .35rem; font-size: .86rem; font-weight: 650; color: var(--ink); cursor: pointer; list-style: none; padding: .2rem 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.sad summary::-webkit-details-marker { display: none; }
.sad[open] summary { color: var(--muted); }
.sad-form { display: grid; gap: .7rem; margin-top: .55rem; padding: .85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.sad-grid { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem; gap: .55rem .6rem; }
.sad-grid .field { margin: 0; min-width: 0; }
.sad-grid label { font-size: .78rem; }
.sad-grid .input { width: 100%; font-size: .9rem; }
.sad-full { grid-column: 1 / -1; }
.sad-grid .hint { margin: -.2rem 0 0; font-size: .76rem; }
.sad-street, .sad-comp { grid-column: 1 / -1; }
.sad-num { grid-column: 1; }
@media (min-width: 420px) { .sad-grid { grid-template-columns: minmax(0, 1fr) 5.5rem; } .sad-street { grid-column: 1; } .sad-num { grid-column: 2; } }
.sad-grid .has-error .input { border-color: var(--fail); }
.sad-act { display: flex; justify-content: flex-end; }
.sad-act .btn { display: inline-flex; align-items: center; gap: .35rem; }

/* v344 Entregues hoje: aviso ao cliente pelo WhatsApp */
.rt-done-n { margin: -.4rem 0 .8rem; font-size: .84rem; line-height: 1.5; color: var(--muted); }
.rt-done-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.rt-done-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .5rem .6rem; padding: .6rem .7rem; border: 1px solid transparent; border-radius: 12px; background: var(--rt-soft); font-size: .9rem; scroll-margin-top: 90px; transition: border-color .4s, background-color .4s; }
.rt-done-list li:target { border-color: color-mix(in srgb, var(--rt-ok) 55%, var(--line)); background: color-mix(in srgb, var(--rt-ok) 9%, var(--card)); }
.rt-done-who { min-width: 0; }
.rt-done-who .muted { font-size: .82rem; }
.rt-done-acts { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; }
.rt-done-acts form { margin: 0; }
.rt-done-acts .rt-act { width: 100%; justify-content: center; }
.rt-act.is-wa { border-color: color-mix(in srgb, #1f9d55 50%, var(--line)); color: #18864a; }
.rt-act.is-wa:hover { background: color-mix(in srgb, #1f9d55 10%, var(--card)); }
.rt-act.is-sent { color: var(--muted); }
html[data-theme="dark"] .rt-act.is-wa { color: #5fd08f; }
@media (min-width: 560px) { .rt-done-list li { grid-template-columns: auto minmax(0, 1fr) auto; } .rt-done-acts { grid-column: auto; display: flex; } .rt-done-acts .rt-act { width: auto; } }
.rt-next-f .rt-act { white-space: nowrap; }
/* v346: trava do "Entregue" sem querer */
.rt-act.is-done.is-later { border-color: var(--line); color: var(--ink); }
.rt-act.is-done.is-later svg { color: var(--rt-ok); }
.rt-act.is-undo { color: var(--muted); }
.rt-act.is-undo:hover { color: var(--ink); }
.rt-mail { display: flex; align-items: center; gap: .25rem; margin-top: .15rem; font-size: .78rem; color: var(--muted); }
.rt-mail.is-wait { color: #a86a12; }
html[data-theme="dark"] .rt-mail.is-wait { color: #e5b25d; }

/* ---------- v350: desconto só no Pix no orçamento (prefixo pxo-) ---------- */
.pxo-box { margin-top: .6rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); transition: border-color .2s ease, background-color .2s ease; }
.pxo-box.is-on { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 8%, var(--card)); }
.pxo-check, .field .pxo-check { display: flex; align-items: flex-start; gap: .6rem; cursor: pointer; font-weight: 400; margin: 0; }
.pxo-check input { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--ok); }
.pxo-text { display: grid; gap: .1rem; line-height: 1.35; }
.pxo-text strong { font-weight: 650; }
.pxo-info { display: flex; flex-wrap: wrap; gap: .4rem; margin: .6rem 0 0 1.7rem; }
.pxo-info[hidden] { display: none; }
.pxo-pill { display: inline-flex; align-items: baseline; gap: .35rem; padding: .22rem .65rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: .82rem; white-space: nowrap; }
.pxo-pill b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.pxo-pill-pix { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); color: var(--ok); }
.pxo-pill-pix b { color: var(--ok); }
.pxo-warn { display: flex; align-items: flex-start; gap: .45rem; margin: .6rem 0 0; line-height: 1.45; color: var(--warn); background: var(--warn-bg); border-radius: var(--radius-sm); padding: .45rem .65rem; }
.pxo-warn[hidden] { display: none; }
.pxo-warn svg { flex: none; margin-top: .15rem; }
.pxo-tag { display: inline-block; margin-left: .35rem; padding: .05rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); font-size: .74rem; font-weight: 650; white-space: nowrap; vertical-align: middle; }
