:root {
    --bg: #070708;
    --bg-2: #101013;
    --card: #141418;
    --line: rgba(255, 255, 255, .12);
    --text: #f4f4f5;
    --muted: #c4c4c8;
    --red: #e10600;
    --red-2: #ff4d4d;
    --ok: #1f8a4c;
    --warn: #c9841a;
    --bad: #9b1c1c;
    --shadow: 0 20px 50px rgba(0, 0, 0, .35);
    --font: "Outfit", "Segoe UI", sans-serif;
    --display: "Bebas Neue", Impact, sans-serif;
    --radius: 18px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background:
        radial-gradient(900px 420px at 50% -10%, rgba(225, 6, 0, .28), transparent 60%),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: .04em; font-weight: 400; line-height: .95; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
p { margin: 0 0 .8rem; }
.skip {
    position: absolute; left: 12px; top: -40px; background: #fff; color: #000; padding: 8px 12px; z-index: 80;
}
.skip:focus { top: 12px; }

.wrap { width: calc(100% - 32px); max-width: 1180px; margin: 0 auto; }
.site-header {
    position: sticky; top: 0; z-index: 80;
    background: rgba(7, 7, 8, .88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner { width: calc(100% - 32px); max-width: 1180px; margin: 0 auto; min-height: 72px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: #000; }
.brand span { font-family: var(--display); font-size: 1.45rem; letter-spacing: .08em; white-space: nowrap; }
.nav-toggle {
    margin-left: auto; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer;
}
.nav {
    display: none; position: absolute; left: 16px; right: 16px; top: 72px;
    background: #121216; border: 1px solid var(--line); border-radius: 16px; padding: 10px;
    flex-direction: column; gap: 4px; box-shadow: var(--shadow);
}
.nav.open { display: flex; }
.nav a { text-decoration: none; padding: 12px 14px; border-radius: 12px; color: var(--muted); }
.nav a.is-active, .nav a:hover { color: #fff; background: rgba(225, 6, 0, .16); }
.nav-wa { color: #fff !important; }

.hero { position: relative; overflow: hidden; padding: 28px 0 64px; text-align: center; }
.hero-inner { width: calc(100% - 32px); max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.hero-logo { width: min(460px, 92%); margin: 0 auto 8px; filter: drop-shadow(0 18px 40px rgba(225, 6, 0, .28)); }
.lead { color: var(--muted); font-size: 1.15rem; }
.hero-actions, .form-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.hero-note { color: var(--muted); font-size: .92rem; }
.speed { position: absolute; top: 18%; width: 90px; height: 220px; opacity: .85; pointer-events: none; }
.speed-l { left: 0; background: repeating-linear-gradient(115deg, transparent 0 10px, #e10600 10px 16px, transparent 16px 28px); }
.speed-r { right: 0; background: repeating-linear-gradient(65deg, transparent 0 10px, #e10600 10px 16px, transparent 16px 28px); }

.section { padding: 28px 0 56px; }
.section-tight { padding-top: 8px; }
.section-head, .related-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 18px; }
.section-head a, .crumb a { color: var(--red-2); }
.eyebrow { color: var(--red-2); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; margin-bottom: 6px; }

.cat-grid, .product-grid { display: grid; gap: 14px; }
.cat-grid { grid-template-columns: 1fr; }
.product-grid { grid-template-columns: 1fr; }
.cat-card, .card, .panel, .feature, .location-teaser {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.cat-card { display: grid; gap: 6px; padding: 18px; text-decoration: none; min-height: 150px; }
.cat-card strong { font-family: var(--display); font-size: 1.7rem; letter-spacing: .04em; }
.cat-card span:last-child { color: var(--muted); }
.cat-icon { width: 36px; height: 36px; color: var(--red-2); }
.cat-icon svg { width: 36px; height: 36px; }
.cat-card:hover, .card:hover { border-color: rgba(225, 6, 0, .7); transform: translateY(-3px); }
.card { overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, border-color .18s ease; }
.card-media { position: relative; display: block; aspect-ratio: 1; background: #0c0c0e; overflow: hidden; }
.card-media img, .gallery img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { font-size: 1.55rem; }
.card-body h3 a { text-decoration: none; }
.card-cat { color: var(--muted); font-size: .85rem; margin: 0; text-transform: uppercase; letter-spacing: .08em; }
.price { color: #fff; font-weight: 700; margin: 0; }
.price-lg { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--red-2); }
.card .btn { margin-top: auto; align-self: flex-start; }
.ph-fallback {
    height: 100%; min-height: 180px; display: grid; place-items: center; align-content: center; text-align: center; padding: 16px;
    background:
        radial-gradient(circle at 50% 40%, rgba(225, 6, 0, .35), transparent 55%),
        repeating-linear-gradient(135deg, #120809 0 8px, #0c0c0e 8px 16px);
}
.ph-fallback span { color: var(--red-2); letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; }
.ph-fallback strong { font-family: var(--display); font-size: 1.8rem; letter-spacing: .04em; }
.ph-lg { min-height: 320px; border-radius: var(--radius); }
.pill {
    display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 9px; font-size: .75rem; font-weight: 700;
    background: #222; position: absolute; left: 10px; bottom: 10px;
}
.product-info .pill { position: static; }
.pill-ok { background: var(--ok); }
.pill-warn { background: var(--warn); color: #1a1206; }
.pill-bad { background: var(--bad); }
.pill-soft { background: #333; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 999px; padding: 12px 18px; text-decoration: none; border: 1px solid transparent;
    cursor: pointer; font-weight: 700; min-height: 46px;
}
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .92rem; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line); color: #fff; }
.btn-white { background: #fff; color: #111; }
.btn-danger { background: transparent; border-color: #9b1c1c; color: #ffb4b4; }

.split { display: grid; gap: 14px; }
.split.cat-admin { grid-template-columns: 1fr; align-items: start; }
.split.cat-admin .table-wrap { min-width: 0; }
.split.cat-admin table { min-width: 0; }
.split.cat-admin th:nth-child(n+2),
.split.cat-admin td:nth-child(n+2) { white-space: nowrap; width: 1%; }
.split.cat-admin td:last-child { text-align: right; }
.split.cat-admin td:last-child a { font-weight: 700; text-decoration: none; }
.feature { padding: 24px; }
.feature p:last-of-type { color: var(--muted); }
.feature-red { background: linear-gradient(160deg, #3a090c, #14080a 60%); }
.location-teaser { padding: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }

.page-hero { padding: 36px 0 10px; }
.page-hero p { color: var(--muted); max-width: 640px; }
.filters { display: grid; gap: 10px; margin-bottom: 14px; }
.filters-search { align-items: end; }
.filters label, .form label { display: grid; gap: 6px; font-size: .92rem; color: var(--muted); }
.filters input, .filters select, .form input, .form select, .form textarea, .line input, .line select {
    width: 100%; background: #0d0d10; border: 1px solid var(--line); border-radius: 12px; padding: 12px 12px; min-height: 46px;
}
.form textarea { min-height: 120px; resize: vertical; }
.combo { position: relative; min-width: 0; }
.combo-toggle {
    width: 100%; min-height: 46px; padding: 12px 40px 12px 12px; text-align: left;
    background: #0d0d10; border: 1px solid var(--line); border-radius: 12px; color: inherit; cursor: pointer;
}
.combo-toggle::after {
    content: ""; position: absolute; right: 16px; top: 18px; width: 8px; height: 8px;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
}
.combo.is-open .combo-toggle { border-color: rgba(225, 6, 0, .75); }
.combo select.search-select {
    position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; opacity: 0; pointer-events: none;
}
.combo-menu {
    position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px);
    background: #141418; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px;
}
.form .combo-menu input { min-height: 40px; margin: 0 0 8px; }
.combo-list { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; }
.combo-list button {
    width: 100%; text-align: left; background: transparent; border: 0; color: inherit;
    border-radius: 8px; padding: 8px 10px; cursor: pointer;
}
.combo-list button.is-active, .combo-list button:hover { background: rgba(225, 6, 0, .16); }
.combo-empty { margin: 0; padding: 8px 10px; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow: auto; padding-bottom: 8px; margin-bottom: 16px; }
.chips a { flex: 0 0 auto; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; color: var(--muted); }
.chips a.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.result-count { color: var(--muted); }
.empty { padding: 28px 8px; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.pager a { text-decoration: none; min-width: 40px; min-height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); }
.pager a.is-active { background: var(--red); border-color: var(--red); }

.product-layout, .contact-grid { display: grid; gap: 16px; }
.gallery img, .gallery .ph-lg { border-radius: var(--radius); border: 1px solid var(--line); }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow: auto; }
.thumb { padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #000; cursor: pointer; width: 74px; height: 74px; }
.thumb img { width: 74px; height: 74px; object-fit: cover; }
.prose { color: var(--muted); }
.subhead { font-size: 1.6rem; margin-top: 18px; }
.includes { margin: 0 0 12px; padding-left: 18px; }
.includes a { color: var(--red-2); }
.crumb { color: var(--muted); }
.map { width: 100%; min-height: 320px; border: 0; border-radius: 12px; background: #111; }
.contact-side { padding: 22px; display: grid; align-content: start; gap: 8px; }
.contact-side .btn { justify-self: start; }
.panel.form, .panel { padding: 18px; }
.alert { border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.alert-ok { background: rgba(31, 138, 76, .2); }
.alert-error { background: rgba(155, 28, 28, .35); }
.alert-info { background: rgba(255, 255, 255, .06); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.site-footer { border-top: 1px solid var(--line); padding: 32px 0 90px; background: #09090b; }
.footer-grid { display: grid; gap: 22px; }
.footer-grid h2 { font-size: 1.4rem; }
.footer-grid p, .footer-base { color: var(--muted); }
.footer-base { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 22px; font-size: .9rem; }
.footer-base a { text-decoration: underline; text-underline-offset: 2px; }
.brand-foot { margin-bottom: 8px; }

.chat-dock { position: fixed; right: 14px; bottom: 14px; z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.chat-launcher, .wa-float {
    border: 0; border-radius: 999px; min-height: 52px; padding: 0 18px; cursor: pointer; font-weight: 700; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow);
}
.chat-launcher { background: var(--red); color: #fff; position: relative; }
.wa-float { background: #128c7e; color: #fff; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }
.chat-panel {
    width: min(380px, calc(100vw - 24px));
    height: min(540px, calc(100vh - 120px));
    background: #121216; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
    display: flex; flex-direction: column; overflow: hidden;
}
.chat-panel header { display: flex; gap: 10px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.chat-panel header img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.chat-panel header strong { display: block; }
.chat-panel header span { color: var(--muted); font-size: .82rem; }
.chat-panel header button { margin-left: auto; background: transparent; border: 0; color: #fff; font-size: 28px; cursor: pointer; line-height: 1; }
.chat-log { flex: 1; overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 85%; padding: 10px 12px; border-radius: 14px; white-space: pre-wrap; word-break: break-word; }
.bubble small { display: block; opacity: .7; font-size: .72rem; margin-top: 4px; }
.bubble-bot, .bubble-admin { background: #22232a; align-self: flex-start; }
.bubble-cliente { background: var(--red); align-self: flex-end; }
.bubble-admin { border: 1px solid rgba(225, 6, 0, .45); }
.chat-error { color: #ffb4b4; margin: 0; padding: 0 12px 8px; font-size: .88rem; }
#chatForm { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
#chatForm input[type="text"] { flex: 1; background: #0d0d10; border: 1px solid var(--line); border-radius: 999px; padding: 12px 14px; min-width: 0; }
#chatForm button { border: 0; background: #fff; color: #111; border-radius: 999px; padding: 0 14px; font-weight: 700; cursor: pointer; }

.auth-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(440px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.auth-card img { width: 120px; margin: 0 auto 8px; }
.auth-card h1 { text-align: center; font-size: 2.4rem; }
.auth-card .lead, .auth-card p { text-align: center; color: var(--muted); }
.auth-links { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.auth-links a { color: var(--red-2); }

.admin-body { background: #09090b; }
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(280px, 86vw); background: #0e0e11; border-right: 1px solid var(--line);
    transform: translateX(-105%); z-index: 60; padding: 16px; overflow: auto;
}
.sidebar.open { transform: none; }
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 55; }
.side-brand { display: flex; gap: 10px; align-items: center; text-decoration: none; margin-bottom: 16px; }
.side-brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.side-nav { display: grid; gap: 4px; }
.side-nav a { text-decoration: none; padding: 11px 12px; border-radius: 12px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.side-nav a.is-active, .side-nav a:hover { background: rgba(225, 6, 0, .16); color: #fff; }
.badge { background: var(--red); color: #fff; border-radius: 999px; min-width: 22px; text-align: center; font-size: .75rem; padding: 2px 6px; }
.admin-main { min-height: 100vh; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(9,9,11,.92); z-index: 30; }
.topbar h1 { font-size: 1.8rem; margin: 0; }
.icon-btn { background: transparent; border: 1px solid var(--line); color: #fff; border-radius: 12px; min-width: 44px; min-height: 44px; cursor: pointer; }
.alert-btn {
    margin-left: auto; position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; min-width: 42px; min-height: 42px; padding: 0; border-radius: 50%;
    text-decoration: none; background: #16161a; color: #fff;
}
.alert-btn svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.alert-btn:hover { border-color: #e10600; color: #fff; }
.alert-count {
    position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 999px; background: #e10600; color: #fff; border: 2px solid #09090b;
    font-family: var(--font); font-size: 10px; font-weight: 700; line-height: 14px; text-align: center;
}
.alert-count[hidden] { display: none; }
.content { padding: 16px; }
.stats { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.stat b { display: block; font-family: var(--display); font-size: 2.2rem; letter-spacing: .04em; }
.stat span { color: var(--muted); }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.row-actions form { margin: 0; }
.fab-add {
    position: fixed; right: 20px; bottom: 20px; z-index: 40;
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; text-decoration: none;
    background: var(--red); color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}
.fab-add svg { width: 22px; height: 22px; display: block; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.fab-add:hover { filter: brightness(1.08); }
.fab-add:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.content:has(.fab-add) { padding-bottom: 84px; }
.thumb-admin { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; background: #000; }
.form-grid { display: grid; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); }
.check input { width: auto; min-height: 0; }
.help { color: var(--muted); font-size: .88rem; }
.images-edit { display: flex; flex-wrap: wrap; gap: 12px; }
.image-slot { width: 160px; display: grid; gap: 6px; font-size: .82rem; }
.image-slot .thumb-admin { width: 100%; height: 110px; }
.image-slot input[type="file"] { font-size: .75rem; max-width: 100%; }
.toast {
    position: fixed; left: 16px; right: 16px; bottom: 16px; background: #1b1b22; border: 1px solid var(--red); border-radius: 14px;
    padding: 12px 14px; z-index: 70; box-shadow: var(--shadow);
}
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr auto; gap: 8px; align-items: center; }
.bar { height: 10px; background: #222; border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--red); }
.inbox-page { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.inbox-filters { flex: 0 0 auto; margin: 0; }
.inbox {
    display: grid;
    grid-template-rows: minmax(120px, 34%) minmax(0, 1fr);
    min-height: 0;
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #101013;
}
.inbox.has-thread { grid-template-rows: minmax(0, 1fr); }
.inbox.has-thread .thread-list { display: none; }
.thread-list { display: flex; flex-direction: column; min-height: 0; overflow: auto; background: #0e0e12; }
.thread-list a {
    text-decoration: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    padding: 10px 12px; display: block; background: transparent;
}
.thread-list a strong { display: block; font-family: var(--font); font-size: .95rem; font-weight: 700; letter-spacing: 0; }
.thread-list a .help { display: block; margin: 0; }
.thread-list a.is-active { background: rgba(225, 6, 0, .16); }
.thread { min-height: 0; height: 100%; border: 0; border-radius: 0; padding: 0; display: flex; flex-direction: column; background: #121216; }
.thread-head {
    flex: 0 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    padding: 8px 12px; border-bottom: 1px solid var(--line);
}
.thread-head h2 { font-family: var(--font); font-size: 1rem; font-weight: 700; letter-spacing: 0; line-height: 1.2; margin: 0; }
.thread-head .help { margin: 0; }
.thread-head form { margin-left: auto; }
.thread-back { color: var(--red-2); text-decoration: none; font-weight: 700; font-size: .88rem; }
.thread-log {
    flex: 1; min-height: 0; overflow: auto; padding: 12px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.thread-log::before { content: ""; flex: 1 1 0; min-height: 0; }
.thread-log .bubble {
    flex: 0 0 auto; width: fit-content; max-width: min(78%, 420px);
    padding: 8px 10px; font-size: .92rem; line-height: 1.35; text-align: left;
}
.inbox-compose {
    flex: 0 0 auto; display: flex; gap: 8px; align-items: flex-end;
    padding: 10px; border-top: 1px solid var(--line); background: #101013;
}
.inbox-compose textarea { flex: 1; min-width: 0; width: auto; min-height: 46px; height: 46px; max-height: 96px; resize: vertical; }
.inbox-compose .btn { flex: 0 0 auto; }
.inbox-empty { margin: auto; padding: 24px; text-align: center; }
.sheet { background: #fff; color: #161616; max-width: 860px; margin: 24px auto; padding: 28px 22px; }
.sheet h1, .sheet h2 { font-family: var(--font); letter-spacing: 0; font-weight: 700; }
.sheet table { min-width: 0; }
.sheet th, .sheet td { border-bottom: 1px solid #ddd; }
.muted { color: #555; }
.watermark { color: #a00; font-weight: 800; letter-spacing: .14em; }

@media (min-width: 700px) {
    .cat-grid { grid-template-columns: 1fr 1fr; }
    .product-grid { grid-template-columns: 1fr 1fr; }
    .filters { grid-template-columns: 1.4fr .8fr .8fr auto; align-items: end; }
    .filters.filters-search { grid-template-columns: minmax(220px, 420px) auto; justify-content: start; }
    .filters.filters-invoices { grid-template-columns: minmax(180px, 280px) minmax(140px, 180px) auto; justify-content: start; }
    .stats { grid-template-columns: 1fr 1fr; }
    .form-grid.two { grid-template-columns: 1fr 1fr; }
    .contact-grid, .product-layout, .split { grid-template-columns: 1.2fr .8fr; }
    .split.cat-admin { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); }
    .product-layout { grid-template-columns: .9fr 1.1fr; align-items: start; }
}
@media (min-width: 980px) {
    .nav-toggle { display: none; }
    .nav { display: flex; position: static; flex-direction: row; background: transparent; border: 0; padding: 0; box-shadow: none; margin-left: auto; align-items: center; }
    .nav a { padding: 8px 12px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-grid { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
    .stats { grid-template-columns: repeat(4, 1fr); }
    .admin-shell { display: grid; grid-template-columns: 260px 1fr; }
    .sidebar { position: sticky; top: 0; height: 100vh; transform: none; width: auto; }
    .backdrop { display: none !important; }
    .menu-btn { display: none; }
    .inbox { grid-template-columns: 280px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
    .inbox.has-thread { grid-template-rows: minmax(0, 1fr); }
    .inbox.has-thread .thread-list { display: flex; }
    .thread-back { display: none; }
    .content { padding: 22px 26px 40px; }
}
@media (min-width: 1200px) {
    .product-grid { grid-template-columns: repeat(4, 1fr); }
    .stats-dash { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.informes-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
@media (min-width: 700px) {
    .informes-filters { grid-template-columns: 180px 180px minmax(0, 1fr); }
}
body.admin-messages { overflow: hidden; }
body.admin-messages .admin-main { height: 100vh; min-height: 0; display: flex; flex-direction: column; }
body.admin-messages .content { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 12px 16px; }
body.admin-messages .inbox-page { flex: 1; min-height: 0; }
body.admin-messages .alert { flex: 0 0 auto; margin-bottom: 8px; }

@media (max-width: 699px) {
    .speed { display: none; }
    .bar-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    * { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
    body.sheet-page { background: #fff; }
    .no-print { display: none !important; }
    .sheet { margin: 0; max-width: none; }
}
