.app { background: #f7f7f8; }
.app .pulse-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.app .sale-card { position: relative; }
.app .demo-strip { background: #fff5f5; color: #b4232a; font-weight: 600; letter-spacing: 0.2px; }
.app .header { background: #fff; border-bottom: 1px solid #f0f0f0; position: sticky; top: 0; z-index: 40; }
.app .header-inner { height: auto; min-height: 0; padding: 4px 0; gap: 16px; }
.app .logo { gap: 0; }
.app .logo img { height: 19px; width: auto; max-width: 100%; display: block; }
.app .desktop-nav a { padding: 4px 0; font-size: 13px; line-height: 1.2; }
.app .header-actions { gap: 10px; }
.app .logout-btn { border-color: #e10600; color: #e10600; background: #fff; min-height: 30px; padding: 4px 12px; }
.app .logout-btn:hover { background: #fff1f0; }
.app .session-bar { background: #111; color: #fff; font-size: 13px; }
.app .session-bar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.app .session-bar a { color: #fff; font-weight: 700; text-decoration: underline; }
.app .page-main { padding-bottom: 76px; }
.otp-choices { display: grid; gap: 8px; margin-bottom: 14px; }
.app-search { display: flex; gap: 8px; background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 8px; margin: 14px 0; }
.app-search input { border: 0; box-shadow: none; flex: 1; padding: 8px 10px; }
.app-search button { background: #e10600; color: #fff; border-radius: 8px; min-width: 46px; font-weight: 700; }
.deal-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.deal-tabs a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 10px; background: #fff; border: 1px solid #f0d0d0; color: #e10600; font-weight: 700; }
.deal-tabs a.active { background: #e10600; color: #fff; border-color: #e10600; }
.type-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 16px; }
.type-btn { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #e7e7e7; color: #555; font-weight: 700; text-align: center; }
.type-btn:hover, .type-btn:focus { border-color: #e10600; color: #e10600; background: #fff5f5; }
.seo-lead { margin: 16px 0 2px; }
.seo-lead h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.03em; line-height: 1.3; }
.seo-lead p { margin: 0; color: #444; font-size: 14px; line-height: 1.55; }
.seo-lead a, .crumbs a { font-weight: 700; }
.crumbs { margin: 12px 0 8px; color: #667; font-size: 13px; line-height: 1.5; }
.type-tile { background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eee; text-align: center; }
.type-tile img { height: 168px; width: 100%; object-fit: cover; object-position: center center; }
.type-tile span { display: block; font-size: 13px; font-weight: 700; padding: 8px 4px 10px; }
.chip-row { display: flex; gap: 8px; overflow: auto; padding-bottom: 8px; margin: 4px 0 14px; }
.chip-row a { flex: 0 0 auto; background: #fff; border: 1px solid #e6e6e6; border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 650; color: #333; }
.chip-row a.on { background: #fff1f0; border-color: #e10600; color: #e10600; }
.range-wrap { margin: 10px auto 4px; }
.range-filter { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 8px 16px; align-items: end; background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 12px 14px 10px; }
.range-field { display: grid; gap: 2px; min-width: 0; }
.range-field > span { font-size: 12px; font-weight: 700; color: #777; }
.range-field output { font-size: 14px; font-weight: 700; color: #e10600; font-variant-numeric: tabular-nums; }
.dual-range { position: relative; height: 28px; }
.dual-range::before, .dual-range::after { content: ""; position: absolute; top: 12px; height: 4px; border-radius: 99px; pointer-events: none; }
.dual-range::before { left: 0; right: 0; background: #f3d4d2; }
.dual-range::after { left: var(--a, 0%); width: calc(var(--b, 100%) - var(--a, 0%)); background: #e10600; }
.range-filter input[type="range"] { width: 100%; height: 28px; margin: 0; accent-color: #e10600; background: transparent; }
.dual-range input[type="range"] { position: absolute; left: 0; top: 0; pointer-events: none; -webkit-appearance: none; appearance: none; background: none; }
.dual-range input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.dual-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #e10600; border: 2px solid #fff; box-shadow: 0 0 0 1px #e10600; cursor: pointer; }
.dual-range input[type="range"]::-moz-range-track { height: 4px; background: transparent; border: 0; }
.dual-range input[type="range"]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #e10600; border: 2px solid #fff; box-shadow: 0 0 0 1px #e10600; cursor: pointer; }
.range-filter button { background: #e10600; color: #fff; border: 0; border-radius: 10px; min-height: 40px; padding: 0 16px; font-weight: 700; }
.feed-list { display: flex; flex-direction: column; gap: 16px; }
.pager-note { margin: 4px 0 12px; }
.pager { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 8px 0 20px; }
.pager-actions, .pager-nums { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pager-nums a, .pager-gap { min-width: 36px; height: 36px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid #eee; background: #fff; font-weight: 700; }
.pager-nums a.on { background: #e10600; color: #fff; border-color: #e10600; }
.pager .btn { min-height: 36px; }
.feed-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #eee; display: block; }
.feed-link { display: block; color: inherit; }
.feed-media { display: grid; grid-template-columns: 1.35fr .72fr; gap: 4px; background: #111; position: relative; min-height: 210px; }
.feed-media img { width: 100%; height: 210px; object-fit: cover; }
.feed-side { display: grid; grid-template-rows: 1fr 1fr; gap: 4px; }
.feed-side img { height: 103px; }
.vip-badge { position: absolute; left: 10px; top: 10px; background: #f5b400; color: #3a2a00; font-size: 11px; font-weight: 800; border-radius: 6px; padding: 3px 8px; }
.vip-badge.silver { background: #d9dde3; color: #243040; }
.illus-badge { position: absolute; right: 10px; bottom: 10px; background: rgba(17,17,17,.72); color: #fff; font-size: 11px; border-radius: 6px; padding: 3px 8px; }
.feed-body { padding: 12px 14px 14px; }
.feed-body h3 { font-size: 16px; line-height: 1.45; margin: 0 0 6px; min-height: 0; }
.feed-meta { color: #666; font-size: 13px; }
.feed-meta b { color: #111; }
.feed-loc { margin-top: 6px; color: #666; font-size: 13px; }
.feed-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 12px; }
.feed-tags.inline { padding: 0; margin: 8px 0 12px; }
.seo-tag { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid #f0b4b0; background: #fff; color: #e10600; font-size: 12px; font-weight: 700; line-height: 1; }
.seo-tag.is-on { background: #fff1f0; }
.campaign-link { margin: 0 0 14px; color: #555; font-size: 13px; word-break: break-all; }
.campaign-link span { display: block; color: #888; font-size: 12px; font-weight: 700; }
.campaign-link a { color: #e10600; font-weight: 700; }
.feed-agent { display: flex; align-items: center; gap: 8px; margin-top: 0; padding: 10px 14px 12px; border-top: 1px solid #f2f2f2; font-size: 13px; }
.feed-agent img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.feed-agent span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.card-actions { margin-left: auto; display: flex; flex: 0 0 auto; gap: 6px; }
.card-call, .card-zalo { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 30px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 700; line-height: 1; }
.card-call { background: #fff; color: #e10600; border: 1px solid #f0b4b0; }
.card-zalo { background: #e10600; color: #fff; border: 1px solid #e10600; }
.card-call svg, .card-zalo svg { width: 14px; height: 14px; flex: 0 0 auto; }
.feed-card:has(.feed-agent) .feed-body { padding-bottom: 10px; }
.trait-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #eee; margin: 18px 0; }
.trait { display: flex; justify-content: space-between; gap: 12px; padding: 12px 8px; border-bottom: 1px solid #eee; font-size: 14px; }
.trait span { color: #666; }
.sale-card { background: #0f6e67; color: #fff; border-radius: 18px; padding: 16px; }
.sale-card h2, .sale-card p { color: #fff; }
.sale-top { display: flex; gap: 12px; align-items: center; }
.sale-top img { width: 64px; height: 64px; border-radius: 50%; background: #fff; object-fit: cover; }
.sale-kicker { font-size: 13px; opacity: .9; }
.sale-top b { display: block; font-size: 20px; line-height: 1.25; }
.sale-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; text-align: center; }
.sale-stats small { display: block; opacity: .85; font-size: 11px; }
.sale-stats strong { font-size: 18px; }
.sale-zalo, .sale-phone { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 10px; font-weight: 700; margin-top: 8px; }
.sale-zalo { background: #fff; color: #0b6b63; }
.sale-phone { background: #14988c; color: #fff; }
.sale-card.side-card { background: #fff; color: #111; border: 1px solid #eee; box-shadow: 0 8px 24px rgba(17,17,17,.05); }
.sale-card.side-card .sale-kicker { color: #888; opacity: 1; }
.sale-card.side-card .sale-top b { color: #111; }
.sale-card.side-card .sale-stats small { color: #777; opacity: 1; }
.sale-card.side-card .sale-stats strong { color: #e10600; }
.sale-card.side-card p { color: #444; }
.sale-card.side-card .fine { color: #666; }
.sale-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sale-actions a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin: 0; border-radius: 10px; font-weight: 700; }
.sale-actions a:only-child { grid-column: 1 / -1; }
.sale-actions svg { width: 18px; height: 18px; flex: 0 0 auto; }
.sale-call { background: #fff; color: #e10600; border: 1px solid #f0b4b0; }
.sale-card.side-card .sale-zalo { background: #e10600; color: #fff; border: 1px solid #e10600; }
.sale-number { margin: 8px 0 0; text-align: center; font-weight: 700; }
.sale-number a { color: #e10600; }
.app .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 28px 40px; padding: 8px 0 20px; }
.app .footer-grid b { display: block; margin: 0 0 10px; font-size: 15px; }
.app .footer-contact p { margin: 0 0 10px; color: #333; font-size: 14px; line-height: 1.45; }
.app .footer-contact span { display: block; color: #888; font-size: 12px; font-weight: 700; }
.app .footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.app .footer-col a { color: #333; font-size: 14px; font-weight: 650; }
.app .footer-col a:hover { color: #e10600; }
.info-page { max-width: 820px; }
.info-page h1 { margin-bottom: 12px; }
.info-page h2 { font-size: 18px; margin: 22px 0 8px; }
.info-page p, .info-page li { color: #333; font-size: 15px; line-height: 1.7; }
.info-page ul { margin: 8px 0 16px; padding-left: 18px; }
.phone-box { display: none; }
.phone-toggle { position: absolute; opacity: 0; }
.phone-toggle:checked ~ .phone-box { display: block; }
.phone-toggle:checked ~ .sale-phone { display: none; }
.chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.chart { background: #fff; border: 1px solid #eee; border-radius: 14px; padding: 14px; }
.chart h3 { margin-bottom: 8px; }
.chart-scroll { overflow-x: auto; }
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: #666; margin-top: 6px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.user-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.user-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid #f0d0d0; color: #e10600; font-weight: 700; }
.user-nav a.active { background: #e10600; color: #fff; border-color: #e10600; }
.profile-grid { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
.profile-grid img.avatar-lg { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; background: #eee; }
.profile-form label, .product-form label { display: block; margin-bottom: 12px; font-weight: 650; }
.profile-form input, .profile-form textarea, .product-form input, .product-form textarea, .product-form select { width: 100%; margin-top: 4px; }
.own-table td { vertical-align: middle; }
.narrow-form { max-width: 880px; }
.product-form.compact { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; align-items: end; }
.product-form.compact .full, .product-form.compact details, .product-form.compact > button { grid-column: 1 / -1; }
.product-form details { margin-bottom: 12px; }
.product-form summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }
.price-row, .mini-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.keep-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 12px; }
.keep-photo { width: 96px; margin: 0; font-weight: 600; }
.keep-photo img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; display: block; margin-top: 4px; }
.photo-slider { background: #111; }
.slide-mosaic { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, .9fr); gap: 4px; height: 420px; }
.photo-single .slide-mosaic { grid-template-columns: 1fr; }
.slide-hero, .slide-side button { position: relative; display: block; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; background: #111; cursor: zoom-in; overflow: hidden; }
.slide-hero img, .slide-side button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-side { display: grid; gap: 4px; min-width: 0; min-height: 0; grid-template-rows: repeat(var(--n, 1), minmax(0, 1fr)); }
.slide-side.cols-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.slide-count, .lb-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.62); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.slide-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.45); color: #fff; font-size: 22px; font-weight: 700; }
.lb-arrow, .lb-close { border: 0; background: rgba(255,255,255,.94); color: #111; width: 40px; height: 40px; border-radius: 50%; font-size: 26px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.photo-single .lb-arrow { display: none; }
.photo-lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 54px 72px 22px; }
.photo-lightbox[hidden] { display: none; }
.lb-stage { width: min(1100px, 84vw); height: min(68vh, 620px); overflow: hidden; }
.lb-track { display: flex; height: 100%; will-change: transform; }
.lb-slide { flex: 0 0 auto; height: 100%; display: flex; align-items: center; justify-content: center; }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-thumbs { display: flex; gap: 8px; overflow-x: auto; max-width: min(1100px, 84vw); margin-top: 12px; }
.lb-thumbs button { flex: 0 0 92px; width: 92px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #222; cursor: pointer; }
.lb-thumbs button.is-on { border-color: #fff; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.lb-arrow { position: absolute; top: 42%; z-index: 2; }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-count { right: 18px; bottom: 18px; }
.portrait-video { width: min(220px, 70vw); aspect-ratio: 9 / 16; background: #000; margin: 8px; border-radius: 10px; display: block; }
.place-line { margin: 4px 0 8px; color: #333; }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 6px 0 18px; }
.kpi-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi-card { background: #fff; border: 1px solid #ececec; border-radius: 14px; padding: 16px 16px 14px; min-height: 118px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 1px 0 rgba(17,17,17,.03); }
.kpi-card .kpi-label { font-size: 13px; font-weight: 700; color: #333; line-height: 1.35; }
.kpi-card strong { display: block; margin-top: 10px; font-size: 34px; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.kpi-card .fine { display: block; margin-top: 8px; }
.dash-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.dash-table th, .dash-table td { padding: 12px 10px; border-bottom: 1px solid #eee; vertical-align: middle; font-size: 14px; }
.dash-table th { color: #667; font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.dash-table th.num, .dash-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dash-table td.num { font-size: 18px; font-weight: 700; color: #111; }
.dash-table tbody tr:hover td { background: #fafafa; }
.dash-table a { font-weight: 650; }
.panel h3 { margin: 18px 0 8px; font-size: 16px; }
.meter { display: block; height: 6px; margin-top: 6px; background: #f1f1f1; border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: #e10600; border-radius: 99px; }
.gate-body { margin: 0; background: #f3f1ee; color: #1c1917; }
.gate { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 460px) 1fr; }
.gate-brand { background: #14181c; color: #f6f3ee; padding: 48px 44px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.gate-logo img { height: auto; max-height: 29px; width: auto; max-width: 100%; background: #fff; border-radius: 8px; padding: 6px 8px; }
.gate-brand h1 { margin: 18px 0 0; font-size: 34px; line-height: 1.25; font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.gate-kicker { margin: 0 0 8px; color: #e10600; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.gate-brand .gate-kicker { color: #f0b4b0; }
.gate-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; }
.gate-points li { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.gate-points b { font-size: 14px; }
.gate-points span { color: #c9c4bc; font-size: 13px; }
.gate-home { color: #fff; font-size: 13px; font-weight: 650; }
.gate-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.gate-card { width: min(440px, 100%); background: #fff; border: 1px solid #ece7e2; border-radius: 18px; padding: 32px 28px 24px; box-shadow: 0 18px 50px rgba(20,24,28,.06); }
.gate-card h2 { font-size: 28px; letter-spacing: -0.03em; }
.gate-lead { color: #666; font-size: 14px; margin: 8px 0 22px; }
.gate-form, .gate-card form { display: grid; gap: 12px; }
.gate-card label { display: grid; gap: 6px; font-size: 13px; font-weight: 650; }
.gate-card input, .gate-card select { width: 100%; min-height: 46px; border: 1px solid #e4e0db; border-radius: 10px; padding: 10px 12px; background: #fff; }
.gate-card input:focus, .gate-card select:focus { outline: 2px solid #f0b4b0; border-color: #e10600; }
.gate-card .btn-primary { min-height: 48px; border-radius: 10px; background: #e10600; font-weight: 700; }
.gate-card .error, .gate-card .banner { margin: 0; }
.gate-demo { margin-top: 18px; color: #777; font-size: 12px; }
.gate-demo summary { cursor: pointer; font-weight: 650; }
.gate-demo p { margin-top: 8px; line-height: 1.6; }
.partner-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.partner-head h2 { margin: 0 0 6px; }
.partner-head .btn, .partner-form-actions .btn, .partner-actions .btn { min-height: 36px; padding: 7px 12px; }
.partner-form { margin: 8px 0 18px; padding: 16px; border: 1px solid #eee; border-radius: 12px; background: #fbfbfb; }
.partner-form h3 { margin: 0 0 12px; }
.partner-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.partner-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.partner-form input, .partner-form select { width: 100%; min-height: 40px; border: 1px solid #e6e6e6; border-radius: 8px; padding: 8px 10px; background: #fff; }
.partner-form-actions { display: flex; gap: 8px; margin-top: 14px; }
.partner-table { min-width: 1080px; }
.sale-table { min-width: 980px; }
.partner-form .assign-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 8px 0 14px; }
.partner-form .assign-list label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.partner-form .assign-list input { width: auto; min-height: 0; }
.own-table .partner-actions .btn { min-height: 34px; padding: 6px 10px; }
.partner-table td { font-weight: 500; font-size: 13px; }
.partner-table tr.is-editing td { background: #fff6f5; }
.partner-actions { display: flex; gap: 6px; align-items: center; }
.partner-actions form { margin: 0; }
.partner-delete { color: #e10600; border-color: #f0b4b0; }
.partner-panel { margin-bottom: 18px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: none; background: #fff; border-top: 1px solid #eee; grid-template-columns: repeat(4, 1fr); }
.tabbar a { text-align: center; font-size: 11px; font-weight: 650; padding: 8px 4px 10px; color: #667; }
.tabbar a.active { color: #e10600; }
@media (max-width: 860px) {
  .app .desktop-nav { display: none; }
  .app .header-inner { height: auto; padding: 4px 0; display: flex; align-items: center; flex-wrap: nowrap; gap: 8px; }
  .app .logo { flex: 1 1 auto; min-width: 0; }
  .app .logo img { height: 16px; }
  .app .header-actions { margin-left: auto; flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
  .app .login-link { font-size: 13px; font-weight: 700; }
  .app .menu-button { display: inline-flex; width: auto; height: 28px; padding: 0 10px; border: 1px solid #e10600; border-radius: 8px; color: #e10600; background: #fff; font-size: 13px; font-weight: 700; }
  .nav-toggle:checked ~ .header .desktop-nav { top: 100%; }
  .app footer.site-footer { padding-bottom: 72px; }
  .tabbar { display: grid; }
  .chart-grid, .trait-grid, .listing-layout, .profile-grid, .product-form.compact { grid-template-columns: 1fr; }
  .range-filter { grid-template-columns: 1fr; }
  .range-filter button { width: 100%; }
  .feed-list { margin-left: -16px; margin-right: -16px; gap: 8px; }
  .feed-list .feed-card { border-radius: 0; border-left: 0; border-right: 0; }
  .feed-media { grid-template-columns: 1fr; min-height: 0; height: auto; overflow: hidden; }
  .feed-media > img { width: 100%; height: 230px; min-height: 0; object-fit: cover; display: block; }
  .feed-side { display: none; }
  .slide-mosaic { grid-template-columns: 1fr; height: 240px; }
  .slide-side { display: none; }
  .photo-lightbox { padding: 52px 12px 18px; }
  .lb-stage { width: 94vw; height: 58vh; }
  .lb-arrow { top: 38%; }
  .lb-thumbs { gap: 6px; max-width: 94vw; }
  .lb-thumbs button { flex-basis: 58px; width: 58px; height: 42px; }
  .type-row { grid-template-columns: repeat(3, 1fr); }
  .chip-row { flex-wrap: wrap; overflow: visible; }
  .seo-lead h1 { font-size: 20px; }
  .app .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .gate { grid-template-columns: 1fr; }
  .gate-brand { padding: 28px 20px 8px; }
  .gate-brand h1 { font-size: 26px; }
  .gate-points { display: none; }
  .gate-main { padding: 20px 16px 32px; }
  .partner-head { flex-direction: column; }
  .partner-grid, .partner-form .assign-list { grid-template-columns: 1fr; }
  .partner-form-actions, .partner-form-actions .btn, .partner-head .btn { width: 100%; }
  .partner-actions { flex-wrap: wrap; }
  .kpi-grid, .kpi-grid.cols-4 { grid-template-columns: 1fr 1fr; }
  .kpi-card strong { font-size: 28px; }
}
@media (min-width: 980px) {
  .feed-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
