@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@600;700&display=swap');

:root {
  --bg: #F4F5F7; --card: #FFFFFF; --line: #E5E7EB; --line2: #F1F2F4;
  --text: #111827; --muted: #4B5563; --nav: #0F172A; --nav2: #1E293B;
  --blue: #1D4ED8; --ok: #DCFCE7; --ok-fg: #166534; --no: #B91C1C; --no-bg: #FEE2E2;
  --warn: #F59E0B; --warn-bg: #FEF3C7; --warn-fg: #92400E; --na: #EEF0F3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font: 14px/1.4 Inter, system-ui, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--blue); text-decoration: none; }
h1 { margin: 4px 0 0; font: 700 28px/1.15 'Space Grotesk', sans-serif; }
.muted { color: var(--muted); font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid #D1D5DB; background: #fff; color: var(--text); font: 600 14px Inter, sans-serif; cursor: pointer; }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- вход: как у скоркарда ---------- */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; background: #fff; }
.auth-hero {
  flex: 1 1 560px; min-height: 100vh; padding: 40px 56px; color: #E5E7EB; display: flex; flex-direction: column; justify-content: center; gap: 18px;
  background:
    radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(120% 90% at 0% 0%, #1F5B47 0%, #123A2E 45%, #0B1F19 100%);
}
.auth-eyebrow { display: flex; align-items: center; gap: 8px; font: 700 12px Inter, sans-serif; letter-spacing: .12em; color: #D9CBA3; }
.auth-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 4px rgba(74,222,128,.15); }
.auth-hero h1 { margin: 0; font: 800 clamp(32px, 4vw, 50px)/1.05 Inter, sans-serif; letter-spacing: -.02em; color: #F5F1E6; }
.auth-hero h1 span { color: #D9CBA3; }
.auth-sub { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.5; color: #C9D3CE; }
.auth-points { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: #C9D3CE; }
.auth-points li b { flex: none; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; background: rgba(255,255,255,.1); color: #E5E7EB; }
.auth-points strong { color: #fff; }
.auth-preview { margin-top: 10px; max-width: 450px; background: rgba(8, 20, 16, .55); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px 18px; font-size: 13px; }
.pv-head { display: flex; justify-content: space-between; gap: 12px; color: #9FB0A8; font-size: 12px; margin-bottom: 10px; }
.pv-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(5, 18px) minmax(74px, auto); gap: 6px; align-items: center; padding: 5px 0; color: #E5E7EB; }
.pv-row i { width: 18px; height: 12px; border-radius: 4px; background: #2F6B53; }
.pv-row i.w { background: #C9A65A; }
.pv-row i.n { background: #C2453B; }
.pv-row i.x { background: rgba(255,255,255,.12); }
.pv-row i.e { background: transparent; }
.pv-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-row em { font-style: normal; text-align: right; font-weight: 700; color: #D9CBA3; }
.pv-row em.bad { color: #F4A39B; }
.pv-row em.warn { color: #E9C46A; }
.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid rgba(255,255,255,.1); margin-top: 10px; padding-top: 12px; }
.pv-stats b { display: block; font-size: 19px; color: #fff; }
.pv-stats small { color: #9FB0A8; font-size: 11px; }
.auth-panel { flex: 1 1 420px; min-height: 100vh; display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 330px; }
.auth-logo { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 36px; }
.auth-logo span { font: 700 9px Inter, sans-serif; letter-spacing: .28em; color: #111827; padding-left: 2px; }
.auth-box h2 { margin: 0 0 8px; font: 800 26px Inter, sans-serif; }
.auth-box p { margin: 0 0 22px; color: var(--muted); line-height: 1.5; font-size: 14px; }
.auth-box .btn.google { width: 100%; }
.auth-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.auth-foot { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; color: #6B7280; }
@media (max-width: 760px) {
  .auth-hero, .auth-panel { min-height: auto; }
  .auth-hero { padding: 32px 16px; }
  .auth-panel { padding: 32px 16px 48px; }
}
.btn.google { gap: 10px; min-height: 48px; border-color: #D1D5DB; font-size: 15px; }
.btn.google:hover { background: #F9FAFB; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 17px 'Space Grotesk', sans-serif; }
.logo { width: 32px; height: 32px; border-radius: 8px; background: #2563EB; color: #fff; display: grid; place-items: center; font-size: 16px; }

.layout { display: flex; min-height: 100vh; }
.side { width: 240px; flex: none; background: var(--nav); color: #E2E8F0; padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.side .brand { color: #fff; padding: 0 8px 24px; }
.side > a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: #CBD5E1; }
.side > a.active { background: var(--nav2); color: #fff; font-weight: 600; }
.side > a.soon { opacity: .55; cursor: default; }
.side small { font-size: 11px; }
.badge { background: var(--no); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.side-foot { margin-top: auto; padding: 16px 12px 0; font-size: 12px; color: #94A3B8; display: flex; flex-direction: column; gap: 6px; }
.side-foot a { color: #CBD5E1; }

.main { flex: 1; min-width: 0; padding: 28px 32px 48px; display: flex; flex-direction: column; gap: 18px; }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.seg { display: flex; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; color: #374151; font: 600 13px Inter, sans-serif; padding: 0 12px; min-height: 36px; border-radius: 8px; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.seg button[aria-pressed="true"] { background: var(--nav); color: #fff; }
.seg .n { background: var(--no); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 8px; }
.toggle, .search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; font-weight: 600; }
.toggle input { width: 18px; height: 18px; accent-color: var(--blue); }
.search input { border: 0; outline: none; font: 14px Inter, sans-serif; width: 180px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px 5px 6px; font-size: 13px; cursor: pointer; font-family: inherit; color: inherit; }
.chip b { min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; font-size: 12px; background: var(--ok); color: var(--ok-fg); }
.chip.bad { border-color: #FCA5A5; }
.chip.bad b { background: var(--no); color: #fff; }
.chip.off { color: var(--muted); border-style: dashed; }
.chip.off b { background: var(--na); color: var(--muted); }
.chip[aria-pressed="true"] { outline: 2px solid var(--blue); }

.content { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.matrix-card { flex: 999 1 640px; min-width: 0; overflow: hidden; }
.scroll { overflow: auto; max-height: calc(100vh - 260px); }
.matrix { border-collapse: collapse; width: 100%; font-size: 13px; }
.matrix thead th { position: sticky; top: 0; background: #F9FAFB; z-index: 1; padding: 10px 4px; font-weight: 600; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.matrix thead th:first-child { text-align: left; padding-left: 16px; }
.matrix th.group { text-align: left; padding: 14px 16px 6px; border-top: 1px solid var(--line); background: #fff; }
.matrix th.group .name { font-size: 14px; font-weight: 700; }
.matrix th.group .meta { margin-left: 10px; font-size: 12px; font-weight: 600; }
.matrix th.group .note { display: block; font-size: 12px; font-weight: 500; color: var(--warn-fg); margin-top: 2px; }
.matrix th.row { text-align: left; padding: 5px 16px 5px 28px; font-weight: 500; color: #374151; white-space: nowrap; }
.matrix tr.bad { background: #FEF2F2; }
.matrix td { padding: 3px 4px; text-align: center; }
.cell { display: inline-flex; width: 30px; height: 22px; border-radius: 6px; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; border: 0; cursor: pointer; font-family: inherit; }
.cell.ok { background: var(--ok); color: var(--ok-fg); }
.cell.no { background: var(--no); color: #fff; }
.cell.warn { background: var(--warn-bg); color: var(--warn-fg); }
.cell.na, .cell.empty { background: var(--na); color: var(--muted); }
.cell.sel { outline: 2px solid var(--blue); outline-offset: 1px; }
i.cell { width: 18px; height: 14px; cursor: default; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.legend span { display: flex; align-items: center; gap: 6px; }
.empty-state { padding: 40px 20px; text-align: center; color: var(--muted); }

.detail { flex: 1 1 320px; min-width: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 16px; }
.detail h2 { margin: 0; font: 700 18px 'Space Grotesk', sans-serif; }
.tag { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.tag.no { background: var(--no-bg); color: #991B1B; }
.tag.ok { background: var(--ok); color: var(--ok-fg); }
.tag.warn { background: var(--warn-bg); color: var(--warn-fg); }
.tag.na { background: var(--na); color: var(--muted); }
.kv { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.detail textarea { font: 14px Inter, sans-serif; padding: 10px 12px; border: 1px solid #D1D5DB; border-radius: 10px; resize: vertical; width: 100%; }
.detail label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions .btn { flex: 1; }

@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .side { width: auto; flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .side .brand { padding: 0 8px; width: 100%; margin-bottom: 8px; }
  .side-foot { margin: 0 0 0 auto; padding: 0; flex-direction: row; align-items: center; }
  .main { padding: 16px; }
  .detail { position: static; }
}

/* ---------- ASIN и группы ---------- */
.seg small { font-size: 11px; opacity: .7; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; padding: 16px 20px 8px; }
.card-head h2 { margin: 0; font-size: 16px; }
.list { border-collapse: collapse; width: 100%; font-size: 13px; }
.list th { text-align: left; padding: 10px 12px; background: #F9FAFB; color: var(--muted); font-weight: 600; font-size: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.list td { padding: 9px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.list tr.off td { color: #9CA3AF; }
.list tr.off b { color: #6B7280; }
.list tr.editing td { background: #EFF6FF; }
.list input:not([type=checkbox]) { width: 100%; min-width: 110px; font: 13px Inter, sans-serif; padding: 7px 9px; border: 1px solid #D1D5DB; border-radius: 8px; }
.list .acts { white-space: nowrap; }
.list .acts .btn + .btn { margin-left: 6px; }
.list .note-c { max-width: 260px; color: var(--warn-fg); font-size: 12px; }
.list code { font-size: 12px; }
.btn.sm { min-height: 32px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.pill.ok { background: var(--ok); color: var(--ok-fg); }
.pill.na { background: var(--na); color: var(--muted); }
.warn-t { color: #B45309; font-weight: 600; }
.sw { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.sw input { width: 16px; height: 16px; accent-color: var(--blue); }
.form-card { padding: 18px 20px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.grid-form label, .inline-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.grid-form input, .grid-form select, .inline-form input, .inline-form select { font: 14px Inter, sans-serif; padding: 9px 11px; border: 1px solid #D1D5DB; border-radius: 10px; background: #fff; color: var(--text); min-height: 40px; }
.grid-form .wide { grid-column: span 2; }
.form-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form-msg { font-size: 13px; color: var(--muted); }
.inline-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
#view-asins .card { overflow: hidden; }
#view-asins .scroll { max-height: none; }
.seg button[aria-pressed="true"] small { opacity: .8; }
@media (max-width: 760px) { .grid-form .wide { grid-column: auto; } }

/* ---------- живое превью на входе ---------- */
.auth-preview { position: relative; overflow: hidden; }
.pv-head b { color: #fff; font-weight: 700; }
.pv-right { display: inline-flex; gap: 10px; align-items: center; }
.pv-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 10px; color: #86EFAC; }
.pv-live i { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; animation: pv-pulse 1.8s ease-out infinite; }
@keyframes pv-pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); } 80%, 100% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } }
.pv-tabs { display: flex; gap: 4px; margin: 0 0 8px; flex-wrap: wrap; }
.pv-tabs:empty { display: none; }
.pv-tabs button { border: 0; background: rgba(255,255,255,.06); color: #9FB0A8; font: 600 11px Inter, sans-serif; padding: 3px 8px; border-radius: 6px; cursor: pointer; transition: background .2s, color .2s; }
.pv-tabs button.on { background: #D9CBA3; color: #0B1F19; }
.pv-rows { min-height: 112px; }
.pv-rows.in .pv-row { animation: pv-row .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: var(--r, 0ms); }
.pv-rows.in .pv-row i:not(.e) { animation: pv-cell .35s cubic-bezier(.3,1.4,.5,1) both; animation-delay: calc(var(--d, 0ms) + 120ms); }
@keyframes pv-row { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pv-cell { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.pv-row i.e { background: transparent; border: 1px dashed rgba(255,255,255,.14); }
.pv-row i.n { box-shadow: 0 0 10px rgba(194,69,59,.45); }
.pv-meter { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); margin-top: 12px; overflow: hidden; }
.pv-meter span { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, #2F6B53, #4ADE80); transition: width .9s cubic-bezier(.2,.7,.2,1); }
.pv-meter-l { display: flex; justify-content: space-between; font-size: 11px; color: #9FB0A8; margin-top: 6px; }
.pv-meter-l span:last-child { color: #E5E7EB; font-weight: 600; }
.pv-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: transparent; }
.pv-progress span { display: block; height: 100%; width: 0; background: rgba(217,203,163,.6); }
@media (prefers-reduced-motion: reduce) {
  .pv-live i, .pv-rows.in .pv-row, .pv-rows.in .pv-row i { animation: none !important; }
}

/* ---------- ручная проверка ---------- */
.review-info { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; }
.review-info:empty { display: none; }
.rv-bar { width: 160px; height: 8px; border-radius: 4px; background: #E5E7EB; overflow: hidden; }
.rv-bar span { display: block; height: 100%; background: #16A34A; border-radius: 4px; transition: width .5s; }
.cell.unrev { background: transparent !important; outline: 1.5px dashed currentColor; outline-offset: -2px; opacity: .85; }
.cell.ok.unrev { color: #16A34A; }
.cell.no.unrev { color: #B91C1C; }
.cell.warn.unrev { color: #B45309; }
.cell.man { position: relative; }
.cell.man::after { content: ''; position: absolute; top: 2px; right: 2px; width: 6px; height: 6px; border-radius: 50%; background: #1D4ED8; box-shadow: 0 0 0 1.5px #fff; }
i.cell.unrev { outline-width: 1.5px; }
.rv-btn { margin-left: 10px; vertical-align: middle; }
.rv-done { margin-left: 10px; font-size: 12px; font-weight: 600; color: #166534; }
.rv-box { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #F9FAFB; }
.rv-who { font-size: 13px; color: var(--muted); }
.rv-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-pick .pick-ok[aria-pressed="true"] { background: var(--ok); border-color: #86EFAC; color: var(--ok-fg); }
.rv-pick .pick-no[aria-pressed="true"] { background: var(--no); border-color: var(--no); color: #fff; }
.rv-pick .pick-warn[aria-pressed="true"] { background: var(--warn-bg); border-color: #FCD34D; color: var(--warn-fg); }

/* ---------- здоровье продуктов ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; border-top: 3px solid #CBD5E1; }
.kpi.bad { border-top-color: var(--no); }
.kpi.warn { border-top-color: var(--warn); }
.kpi.good { border-top-color: #16A34A; }
.kpi-l { font-size: 12px; color: var(--muted); font-weight: 600; }
.kpi-v { font: 700 28px/1.2 'Space Grotesk', sans-serif; margin: 4px 0 2px; }
.kpi.bad .kpi-v { color: #B91C1C; }
.kpi-s { font-size: 12px; color: var(--muted); }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 20px; }
.two > .card { min-width: 0; }
.two .scroll { overflow-x: auto; }
.age { display: inline-block; white-space: nowrap; min-width: 56px; text-align: center; font-weight: 700; font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.age.age-1 { background: var(--warn-bg); color: var(--warn-fg); }
.age.age-2 { background: #FED7AA; color: #9A3412; }
.age.age-3 { background: var(--no); color: #fff; }
.pill.no { background: var(--no-bg); color: #991B1B; }
.pill.wip { background: #DBEAFE; color: #1E40AF; }
.pill.rep { background: #EDE9FE; color: #5B21B6; white-space: nowrap; }
#h-open td:nth-child(2) .muted { white-space: nowrap; }
.list tr.clickable { cursor: pointer; }
.list tr.clickable:hover td, .list tr.sel-row td { background: #F8FAFC; }
.list tr.sel-row td:first-child { box-shadow: inset 3px 0 0 var(--blue); }
#h-owner { border: 0; outline: none; font: 600 13px Inter, sans-serif; background: transparent; max-width: 280px; }
#h-mine[aria-pressed="true"] { background: var(--nav); color: #fff; border-color: var(--nav); }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.bulk { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 14px 20px; background: #EFF6FF; border-color: #BFDBFE; }
.bulk label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bulk input { font: 14px Inter, sans-serif; padding: 9px 11px; border: 1px solid #D1D5DB; border-radius: 10px; min-width: 320px; min-height: 40px; }
/* массовое добавление */
.mass-h { margin: 0 0 6px; font-size: 16px; }
.mass-p { margin: 0 0 12px; line-height: 1.5; }
#a-mass-text { width: 100%; font: 13px/1.5 ui-monospace, Menlo, monospace; padding: 10px 12px; border: 1px solid #D1D5DB; border-radius: 10px; resize: vertical; }
#a-mass .form-actions { margin: 12px 0; }
#a-mass-preview:empty { display: none; }
.grid-form .form-actions { grid-column: 1 / -1; }

/* ---------- рейтинги ---------- */
.r-dist { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: #E5E7EB; }
.r-dist span { display: block; height: 100%; transition: width .5s; }
.r-dist .r-ok { background: #16A34A; } .r-dist .r-warn { background: #F59E0B; } .r-dist .r-risk { background: #B91C1C; } .r-dist .r-na { background: #CBD5E1; }
.rpill { display: inline-block; min-width: 40px; text-align: center; font: 700 13px 'Space Grotesk', Inter, sans-serif; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.rpill.r-ok { background: var(--ok); color: var(--ok-fg); }
.rpill.r-warn { background: var(--warn-bg); color: var(--warn-fg); }
.rpill.r-risk { background: var(--no); color: #fff; }
.rpill.r-na { background: var(--na); color: var(--muted); }
#r-table td.neg { color: #B91C1C; font-weight: 600; }
#r-table td.pos { color: #166534; font-weight: 600; }
#r-table td.warnc { color: #B45309; font-weight: 600; }
#r-table td { white-space: nowrap; }
#r-table td.r-title { white-space: normal; min-width: 180px; max-width: 320px; }
.fc { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: #F1F5F9; color: #334155; white-space: nowrap; }
.fc.bad { background: var(--no-bg); color: #991B1B; } .fc.warn { background: var(--warn-bg); color: var(--warn-fg); }
.fc.good { background: var(--ok); color: var(--ok-fg); } .fc.mute { color: var(--muted); font-weight: 500; }
.r-chart { width: 100%; height: auto; }
.r-chart .b-ok { fill: #DCFCE7; opacity: .55; } .r-chart .b-warn { fill: #FEF3C7; opacity: .7; } .r-chart .b-risk { fill: #FEE2E2; opacity: .7; }
.r-chart .g { stroke: #CBD5E1; stroke-dasharray: 3 3; }
.r-chart .ln { fill: none; stroke: #1D4ED8; stroke-width: 2.2; stroke-linejoin: round; }
.r-chart .dot { fill: #1D4ED8; stroke: #fff; stroke-width: 1.5; }
.r-chart .t { font: 10px Inter, sans-serif; fill: #6B7280; }
.small { font-size: 12px; }
#r-markets .n { margin-left: 4px; }

/* ---------- Фото товара ---------- */
.thumb { width: 40px; height: 40px; flex: none; display: inline-block; vertical-align: middle; object-fit: contain;
  background: #fff; border: 1px solid #E5E7EB; border-radius: 8px; padding: 2px; transition: transform .15s ease, box-shadow .15s ease; }
.thumb.sm { width: 32px; height: 32px; border-radius: 6px; margin-right: 8px; }
.thumb.md { width: 48px; height: 48px; }
.thumb.ph { background: repeating-linear-gradient(45deg, #F3F4F6 0 6px, #F9FAFB 6px 12px); }
img.thumb:hover { transform: scale(2.6); box-shadow: 0 10px 30px rgba(17,24,39,.18); position: relative; z-index: 5; }
.with-thumb { display: flex; align-items: center; gap: 0; }
.d-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; }
.photo-wrap { margin: 12px 0; background: #fff; border: 1px solid #E5E7EB; border-radius: 12px; padding: 10px; text-align: center; }
.photo { max-width: 100%; max-height: 220px; object-fit: contain; }
th.group .thumb.sm { margin-right: 10px; }

/* ---------- Версия, «Что нового», активность ---------- */
.ver { margin-top: 8px; font-size: 11px; color: #64748B; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 6px; }
.ver a { color: inherit; } .ver a:hover { color: #E2E8F0; text-decoration: underline; }
.ver-dot { width: 7px; height: 7px; border-radius: 50%; background: #60A5FA; box-shadow: 0 0 0 3px rgba(96,165,250,.25); animation: pv-pulse 2s ease-out infinite; }
.theme-btn { display: flex; align-items: center; gap: 8px; border: 1px solid #334155; background: transparent; color: #CBD5E1; font: 600 12px Inter, sans-serif;
  padding: 7px 10px; border-radius: 8px; cursor: pointer; margin-bottom: 8px; width: fit-content; }
.theme-btn:hover { background: #1E293B; }
.theme-ico { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset -4px -2px 0 0 #CBD5E1; }
[data-theme="dark"] .theme-ico { box-shadow: none; background: #FBBF24; }
.newver { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 30; background: #111827; color: #fff;
  padding: 10px 12px 10px 18px; border-radius: 12px; display: flex; gap: 12px; align-items: center; font-size: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.cl-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.cl { padding: 16px 20px; animation: pv-row .4s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 40ms); }
.cl.cur { border-color: #93C5FD; box-shadow: 0 0 0 3px rgba(59,130,246,.08); }
.cl-head { display: flex; align-items: center; gap: 10px; }
.cl-v { font: 700 18px 'Space Grotesk', sans-serif; }
.cl ul { margin: 10px 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; line-height: 1.5; }
#act-body { display: flex; flex-direction: column; gap: 18px; }
.sc-card { padding-bottom: 16px; }
.sc-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; padding: 4px 20px 8px; }
.sc-big { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sc-v { font: 700 56px/1 'Space Grotesk', sans-serif; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sc-v small { font-size: 26px; color: var(--muted); margin-left: 2px; }
.sc-kpi { border-left: 1px solid var(--line); padding-left: 16px; }
.sc-n { font: 700 34px/1.1 'Space Grotesk', sans-serif; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.dchip { font: 700 12px Inter, sans-serif; padding: 3px 8px; border-radius: 6px; }
.dchip.up { background: var(--ok); color: var(--ok-fg); } .dchip.dn { background: var(--no-bg); color: #991B1B; } .dchip.nu { background: var(--na); color: var(--muted); }
.act-bars { display: grid; grid-template-columns: repeat(28, 1fr); gap: 4px; align-items: end; height: 90px; margin: 10px 20px 0; }
.act-bars .ab { height: 100%; display: flex; align-items: flex-end; background: var(--line2); border-radius: 4px; overflow: hidden; }
.act-bars .ab span { display: block; width: 100%; min-height: 2px; background: linear-gradient(180deg, #3B82F6, #1D4ED8); border-radius: 4px; transition: height .6s cubic-bezier(.2,.7,.2,1); }
.act-bars .ab.we span { background: #94A3B8; }
.act-axis { display: flex; justify-content: space-between; margin: 6px 20px 0; font-size: 11px; color: var(--muted); }
.list tr.act-work td { font-weight: 600; }
@media (max-width: 760px) { .sc-grid { grid-template-columns: 1fr; } .sc-kpi { border-left: 0; padding-left: 0; } .act-bars { gap: 2px; } }

/* общие цифры — табличные, как в аналитических платформах */
.kpi-v, .rpill, .list td, .cell { font-variant-numeric: tabular-nums; }

/* ---------- Тёмная тема (в духе аналитических терминалов: графит, яркие акценты) ---------- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0D0F13; --card: #161920; --line: #262B35; --line2: #1D2129;
  --text: #E7EAF0; --muted: #8C94A3; --nav: #090B0E; --nav2: #1A1F29;
  --blue: #5B7CFF; --ok: rgba(34,197,94,.16); --ok-fg: #4ADE80; --no: #F04452; --no-bg: rgba(240,68,82,.16);
  --warn: #F5A524; --warn-bg: rgba(245,165,36,.16); --warn-fg: #FBBF24; --na: #20242D;
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .side { border-right: 1px solid #161A21; }
[data-theme="dark"] .seg, [data-theme="dark"] .search, [data-theme="dark"] .toggle, [data-theme="dark"] .chip,
[data-theme="dark"] .kpi, [data-theme="dark"] .btn, [data-theme="dark"] .matrix th.group, [data-theme="dark"] .photo-wrap,
[data-theme="dark"] .grid-form input, [data-theme="dark"] .grid-form select, [data-theme="dark"] .inline-form input, [data-theme="dark"] .inline-form select,
[data-theme="dark"] .list input:not([type=checkbox]), [data-theme="dark"] .detail textarea, [data-theme="dark"] #a-mass-text, [data-theme="dark"] .bulk input {
  background: var(--card); border-color: var(--line); color: var(--text); }
[data-theme="dark"] .search input, [data-theme="dark"] #h-owner { background: transparent; color: var(--text); }
[data-theme="dark"] .btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
[data-theme="dark"] .seg button { color: #AEB5C2; }
[data-theme="dark"] .seg button[aria-pressed="true"], [data-theme="dark"] #h-mine[aria-pressed="true"] { background: #E7EAF0; color: #0D0F13; }
[data-theme="dark"] .matrix thead th, [data-theme="dark"] .list th { background: #12151B; color: var(--muted); border-color: var(--line); }
[data-theme="dark"] .matrix thead th[style] { color: #fff !important; }
[data-theme="dark"] .matrix th.row { color: #C3C9D4; }
[data-theme="dark"] .matrix tr.bad { background: rgba(240,68,82,.07); }
[data-theme="dark"] .list tr.clickable:hover td, [data-theme="dark"] .list tr.sel-row td { background: #1B1F28; }
[data-theme="dark"] .list tr.editing td { background: #172036; }
[data-theme="dark"] .list tr.off td { color: #5D6575; }
[data-theme="dark"] .cell.no, [data-theme="dark"] .rpill.r-risk, [data-theme="dark"] .age.age-3, [data-theme="dark"] .badge, [data-theme="dark"] .seg .n { background: var(--no); color: #fff; }
[data-theme="dark"] .age.age-2 { background: rgba(249,115,22,.2); color: #FB923C; }
[data-theme="dark"] .tag.no, [data-theme="dark"] .pill.no, [data-theme="dark"] .fc.bad, [data-theme="dark"] .dchip.dn { color: #FF8A94; }
[data-theme="dark"] .pill.wip { background: rgba(91,124,255,.18); color: #A5B8FF; }
[data-theme="dark"] .pill.rep { background: rgba(167,139,250,.18); color: #C4B5FD; }
[data-theme="dark"] .fc { background: #20242D; color: #C3C9D4; }
[data-theme="dark"] .kpi { border-top-color: #3A4150; }
[data-theme="dark"] .kpi.bad .kpi-v, [data-theme="dark"] #r-table td.neg, [data-theme="dark"] .warn-t { color: #FF6B78; }
[data-theme="dark"] .warn-t { color: #FBBF24; }
[data-theme="dark"] #r-table td.pos, [data-theme="dark"] .rv-done { color: #4ADE80; }
[data-theme="dark"] #r-table td.warnc { color: #FBBF24; }
[data-theme="dark"] .rv-box { background: #12151B; }
[data-theme="dark"] .rv-bar, [data-theme="dark"] .r-dist { background: #262B35; }
[data-theme="dark"] .r-dist .r-ok, [data-theme="dark"] .rv-bar span { background: #22C55E; }
[data-theme="dark"] .r-dist .r-warn { background: #F5A524; } [data-theme="dark"] .r-dist .r-risk { background: #F04452; }
[data-theme="dark"] .r-chart .b-ok { fill: #22C55E; opacity: .1; } [data-theme="dark"] .r-chart .b-warn { fill: #F5A524; opacity: .12; } [data-theme="dark"] .r-chart .b-risk { fill: #F04452; opacity: .12; }
[data-theme="dark"] .r-chart .g { stroke: #3A4150; } [data-theme="dark"] .r-chart .t { fill: #8C94A3; }
[data-theme="dark"] .r-chart .ln { stroke: #1EC8FF; filter: drop-shadow(0 0 6px rgba(30,200,255,.45)); } [data-theme="dark"] .r-chart .dot { fill: #1EC8FF; stroke: #161920; }
[data-theme="dark"] .bulk { background: #121A2E; border-color: #24365F; }
[data-theme="dark"] .thumb { background: #fff; border-color: #2D3340; }
[data-theme="dark"] .thumb.ph { background: repeating-linear-gradient(45deg, #1D2129 0 6px, #22262F 6px 12px); }
[data-theme="dark"] .chip.bad { border-color: rgba(240,68,82,.5); }
[data-theme="dark"] .cl.cur { border-color: #34508F; box-shadow: 0 0 0 3px rgba(91,124,255,.12); }
[data-theme="dark"] .act-bars .ab span { background: linear-gradient(180deg, #1EC8FF, #5B7CFF); box-shadow: 0 0 10px rgba(30,200,255,.25); }
[data-theme="dark"] .act-bars .ab.we span { background: #3A4150; box-shadow: none; }
[data-theme="dark"] .newver { background: #E7EAF0; color: #0D0F13; }
[data-theme="dark"] .card { box-shadow: 0 1px 0 rgba(255,255,255,.02) inset; }
@media (max-width: 760px) {
  .side-foot { width: 100%; flex-wrap: wrap; gap: 10px 14px; margin: 8px 0 0; }
  .theme-btn { margin: 0; }
  .ver { margin: 0; }
}

/* ---------- Кликабельность и карточка парента ---------- */
.plink { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; text-align: left;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.plink:hover, .plink:focus-visible { color: var(--blue); text-decoration-color: currentColor; }
.plink.sub { font-weight: 600; }
a.asin { font-variant-numeric: tabular-nums; white-space: nowrap; }
a.asin:hover { text-decoration: underline; text-underline-offset: 3px; }
a.asin.sm { font-size: 12px; }
.matrix th.group .name .plink { font-size: 14px; }
.plink-r { border: 0; cursor: pointer; font-family: inherit; }
.plink-r:hover { filter: brightness(.95); outline: 2px solid var(--blue); outline-offset: 1px; }
.list tr.clickable[data-prow]:hover td { background: #F8FAFC; }
body.noscroll { overflow: hidden; }
.drawer-wrap { position: fixed; inset: 0; z-index: 40; }
.drawer-bg { position: absolute; inset: 0; background: rgba(15,23,42,.35); animation: fade .2s ease both; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--card); box-shadow: -20px 0 50px rgba(15,23,42,.18);
  overflow-y: auto; outline: none; animation: slide .25s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fade { from { opacity: 0; } } @keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.pd-top { position: sticky; top: 0; background: var(--card); z-index: 2; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.pd-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: 20px; cursor: pointer; }
.pd-head { display: flex; gap: 16px; align-items: flex-start; padding-right: 40px; }
.pd-head h2 { margin: 2px 0 10px; font: 700 22px/1.2 'Space Grotesk', sans-serif; }
.pd-links { display: flex; flex-wrap: wrap; gap: 6px; }
.thumb.lg { width: 96px; height: 96px; border-radius: 12px; padding: 4px; }
img.thumb.lg:hover { transform: scale(1.6); }
.pd-sec { padding: 16px 22px; border-bottom: 1px solid var(--line2); }
.pd-sec h3 { margin: 0 0 10px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.pd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-chips .chip b.warn { background: var(--warn-bg); color: var(--warn-fg); }
.pd-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pd-row { width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; text-align: left; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font: 13px Inter, sans-serif; cursor: pointer; }
.pd-row:hover { border-color: var(--blue); }
.pd-arr { color: var(--muted); }
.pd-kids { max-height: 340px; }
.pd-kids .list td { padding: 6px 10px; }
/* как листинг выглядит на Amazon */
.lv { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.lv-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; }
.lv-part { border-top: 1px solid var(--line2); padding-top: 8px; }
.lv-part summary { cursor: pointer; font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.lv-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.lv-gal a { position: relative; display: block; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lv-gal img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.lv-gal a:hover img { transform: scale(1.08); }
.lv-gal span { position: absolute; left: 4px; top: 4px; font-size: 10px; font-weight: 700; background: rgba(17,24,39,.7); color: #fff; border-radius: 4px; padding: 0 4px; }
.lv-gal a:first-child { border-color: var(--blue); }
.lv-title { font-weight: 600; line-height: 1.45; margin-bottom: 6px; }
.lv-sub { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 8px 0 4px; }
.lv-ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; line-height: 1.45; }
.lv-colors { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-sw { display: flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--text); }
.lv-sw img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.lv-sw.on { border-color: var(--blue); }
.lv-sw.none { border-color: var(--no); color: var(--no); padding-left: 8px; }
.lv-aplus { display: flex; flex-direction: column; gap: 6px; }
.lv-aplus img { width: 100%; border-radius: 8px; border: 1px solid var(--line); }
[data-theme="dark"] .drawer { box-shadow: -20px 0 50px rgba(0,0,0,.5); }
[data-theme="dark"] .drawer-bg { background: rgba(0,0,0,.55); }
[data-theme="dark"] .list tr.clickable[data-prow]:hover td { background: #1B1F28; }
@media (max-width: 760px) { .pd-head { flex-direction: column; } .thumb.lg { width: 72px; height: 72px; } }

/* ---------- режим «одна проверка» ---------- */
.f-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #FEF2F2; font-size: 14px; }
.f-head b { font-size: 15px; }
.matrix.f-mode thead th { text-align: left; padding: 10px 8px; }
.matrix.f-mode td { padding: 6px 8px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line2); }
.matrix.f-mode tr.f-row { cursor: pointer; }
.matrix.f-mode tr.f-row:hover td { background: #F8FAFC; }
.matrix.f-mode .f-what { max-width: 340px; font-size: 12px; line-height: 1.4; color: var(--text); }
#factor-sum .chip:hover { border-color: var(--blue); }
[data-theme="dark"] .f-head { background: rgba(240,68,82,.08); }
[data-theme="dark"] .matrix.f-mode tr.f-row:hover td { background: #1B1F28; }

/* ---------- Конкуренты ---------- */
.c-take ul.take { list-style: none; margin: 0; padding: 0 20px 16px; display: flex; flex-direction: column; gap: 8px; }
.take li { position: relative; padding-left: 18px; line-height: 1.45; }
.take li::before { content: ''; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #94A3B8; }
.take li.bad::before { background: var(--no); } .take li.warn::before { background: var(--warn); } .take li.good::before { background: #16A34A; }
.vs { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vs b { padding: 1px 7px; border-radius: 6px; }
.vs.win b { background: var(--ok); color: var(--ok-fg); } .vs.lose b { background: var(--no-bg); color: #991B1B; }
.vs i { font-style: normal; color: var(--muted); font-size: 12px; }
.c-grp { display: flex; align-items: center; gap: 0; }
#c-table td { vertical-align: middle; }
.c-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.c-list { max-height: 420px; }
.c-list .list td { padding: 6px 8px; white-space: nowrap; }
.list tr.own td { background: rgba(22,163,74,.05); }
.list tr.own td:first-child { box-shadow: inset 3px 0 0 #16A34A; }
.rank { display: inline-block; width: 20px; font-size: 11px; font-weight: 700; color: var(--muted); }
.d { font-size: 11px; font-weight: 700; white-space: nowrap; } .d.pos { color: #15803D; } .d.neg { color: #B91C1C; }
.c-ch-title { border-top: 1px solid var(--line); padding-top: 12px; }
.c-ch { margin-top: 8px; } .c-ch-h { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
[data-theme="dark"] .vs.lose b { color: #FF8A94; }
[data-theme="dark"] .list tr.own td { background: rgba(34,197,94,.07); }
[data-theme="dark"] .d.pos { color: #4ADE80; } [data-theme="dark"] .d.neg { color: #FF6B78; }
#view-competitors .detail { flex: 1 1 400px; }
.c-grp b { white-space: nowrap; }
#c-table td:first-child { min-width: 170px; }
.c-who { display: flex; align-items: center; } .c-who b { white-space: nowrap; }
.c-list .list td:nth-child(2) { white-space: normal; }

/* ---------- фильтры: несколько проверок, список ASIN ---------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; padding: 8px 12px; border: 1px dashed #93C5FD; border-radius: 10px; background: #EFF6FF; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.hit { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: #FEF9C3; color: #854D0E; }
.tagx { border: 1px solid #FCA5A5; background: #fff; color: #991B1B; font: 600 12px Inter, sans-serif; padding: 3px 8px; border-radius: 999px; cursor: pointer; margin: 2px 0; }
.tagx:hover { background: #FEE2E2; }
.f-head.ok { background: #F0FDF4; }
.f-head.ok .tagx { border-color: #86EFAC; color: #166534; }
.matrix.f-mode th.f-col { max-width: 90px; white-space: normal; font-size: 11px; line-height: 1.2; }
.elsewhere { padding: 14px 16px; }
#nf, .elsewhere { text-align: left; }
.nf-h { font-weight: 700; margin: 4px 0 8px; }
.nf-list { margin: 0 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.nf-list li .btn { margin-left: 8px; }
[data-theme="dark"] .filter-bar { background: #121A2E; border-color: #24365F; }
[data-theme="dark"] .hit { background: rgba(250,204,21,.15); color: #FDE047; }
[data-theme="dark"] .tagx { background: transparent; color: #FF8A94; border-color: rgba(240,68,82,.5); }
[data-theme="dark"] .f-head.ok { background: rgba(34,197,94,.08); }
#view-competitors .content { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
#view-competitors .detail { position: sticky; top: 16px; }
@media (max-width: 1500px) {
  #view-competitors .content { grid-template-columns: 1fr; }
  #view-competitors .detail { position: static; }
  #view-competitors .c-list { max-height: none; }
}
.c-gh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.c-gh h2 { margin-right: 4px; }
.c-ren { display: flex; gap: 6px; flex: 1; } .c-ren input { flex: 1; font: 600 16px Inter, sans-serif; padding: 6px 10px; border: 1px solid var(--blue); border-radius: 8px; background: var(--card); color: var(--text); }
.c-rm { border: 1px solid transparent; background: none; color: var(--muted); font: 600 14px Inter, sans-serif; border-radius: 6px; padding: 2px 8px; cursor: pointer; white-space: nowrap; }
.c-rm:hover { border-color: var(--line); color: var(--no); }
.c-rm.arm { background: var(--no); color: #fff; font-size: 11px; }
#c-add .grid-form { margin-bottom: 10px; }
#c-add-text { width: 100%; font: 13px/1.5 ui-monospace, Menlo, monospace; padding: 10px 12px; border: 1px solid #D1D5DB; border-radius: 10px; resize: vertical; background: var(--card); color: var(--text); }
#c-add .form-actions { margin: 12px 0; }
#c-add-preview:empty { display: none; }
