/* ПроектГен — оформление. Палитра: indigo #4f46e5, violet #7c3aed, cyan #06b6d4, тёмный фон героя #0b1020. */
:root {
  --bg: #f6f7fb; --card: #fff; --ink: #0f172a; --muted: #64748b; --line: #e5e7f0; --soft: #eef0fb;
  --indigo: #4f46e5; --violet: #7c3aed; --cyan: #06b6d4; --night: #0b1020;
  --accent: #4f46e5; --accent-ink: #fff; --ok: #059669; --warn: #b45309; --err: #dc2626;
  --grad: linear-gradient(135deg, #4f46e5, #7c3aed);
  --grad3: linear-gradient(120deg, #4f46e5, #7c3aed 50%, #06b6d4);
  --radius: 16px; --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .14);
}
:root[data-theme="dark"] {
  --bg: #0b1020; --card: #121a2e; --ink: #e5e9f5; --muted: #94a0b8; --line: #232d45; --soft: #18213a;
  --accent: #818cf8; --shadow: none; --shadow-lg: 0 20px 50px rgba(0, 0, 0, .45);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020; --card: #121a2e; --ink: #e5e9f5; --muted: #94a0b8; --line: #232d45; --soft: #18213a;
    --accent: #818cf8; --shadow: none; --shadow-lg: 0 20px 50px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; }
h1, h2 { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: 26px; margin: 0 0 10px; } h2 { font-size: 20px; margin: 0 0 12px; } h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - 1160px) / 2)); background: color-mix(in srgb, var(--card) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.landing .top { position: fixed; left: 0; right: 0; background: rgba(11, 16, 32, .55); border-bottom-color: rgba(255, 255, 255, .08); }
.landing .top a:not(.btn), .landing .top .brand { color: #e5e9f5; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.brand > span:last-child, .brand span:not(.logo-mark) { background: var(--grad3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad3); color: #fff;
  box-shadow: 0 6px 18px rgba(79, 70, 229, .4); }
.top nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-weight: 500; }
.top nav a:not(.btn) { color: var(--ink); text-decoration: none; opacity: .85; }
.top nav a:not(.btn):hover { opacity: 1; color: var(--accent); }
.navbtn { padding: 7px 14px; border: 1px solid var(--line); border-radius: 10px; }

/* ---------- раскладка ---------- */
.wrap { max-width: 1160px; margin: 0 auto; padding: 20px 16px; }
main.wrap { min-height: 50vh; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin: 0 0 18px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row input { width: auto; flex: 1; min-width: 120px; margin: 0; }
.row.tight input { min-width: 80px; }
.big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- формы ---------- */
label { display: block; margin: 0 0 12px; color: var(--muted); font-size: 13px; font-weight: 500; }
input, select, textarea { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(79, 70, 229, .15); }
input[type=radio], input[type=checkbox] { display: inline; width: auto; margin: 0 8px 0 0; vertical-align: -2px; accent-color: var(--indigo); }
input[type=range] { padding: 0; border: 0; accent-color: var(--indigo); box-shadow: none; }
.opt { display: flex; gap: 2px; align-items: flex-start; margin: 0 0 10px; line-height: 1.45; color: var(--ink); font-size: 14px; }
.opt input { flex: none; margin-top: 3px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; margin: 0 0 14px; padding: 14px; }
legend { font-weight: 600; padding: 0 6px; }
details summary { cursor: pointer; font-weight: 600; }

/* ---------- кнопки ---------- */
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 0; border-radius: 12px;
  background: var(--grad); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 22px rgba(79, 70, 229, .32); transition: transform .15s, box-shadow .15s, filter .15s; }
button:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(79, 70, 229, .4); filter: brightness(1.05); }
button:active, .btn:active { transform: translateY(0); }
.btn-gradient { background: var(--grad); color: #fff; }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn.ghostbtn, .btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); box-shadow: none; }
.btn.ghostbtn:hover, .btn-outline:hover { background: var(--soft); box-shadow: none; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); box-shadow: none; }
button.ghost:hover { color: var(--err); border-color: var(--err); box-shadow: none; }
.btn-white { background: #fff; color: var(--night); box-shadow: 0 10px 30px rgba(255, 255, 255, .18); }
.btn-glass { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .22); box-shadow: none;
  backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .14); box-shadow: none; }
.wide { width: 100%; }

/* ---------- уведомления, таблицы, статусы ---------- */
.note { padding: 12px 16px; border-radius: 12px; background: #eef2ff; color: #3730a3; margin-bottom: 16px; border: 1px solid #e0e7ff; }
.note.err { background: #fef2f2; color: var(--err); border-color: #fee2e2; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover { background: var(--soft); }
.table-wrap { overflow-x: auto; }
.st { display: inline-block; padding: 3px 11px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--accent); }
.st-done { background: #d1fae5; color: var(--ok); } .st-failed, .st-cancelled { background: #fee2e2; color: var(--err); }
.st-waiting_answers, .st-estimated { background: #fef3c7; color: var(--warn); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--soft); color: var(--muted); }
.tag.critical { background: #fee2e2; color: var(--err); }

/* ---------- страница проекта ---------- */
.imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; margin: 12px 0; }
.imgs img { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 8px 0 14px; }
.sheets figure { margin: 0; transition: transform .2s; }
.sheets figure:hover { transform: translateY(-3px); }
.sheets img { width: 100%; aspect-ratio: 420 / 297; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.sheets figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.log { max-height: 320px; overflow: auto; background: var(--soft); padding: 12px; border-radius: 10px; font: 12px/1.6 ui-monospace, Consolas, monospace; white-space: pre-wrap; }
.spinner { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line); border-top-color: var(--indigo); border-radius: 50%; animation: r 1s linear infinite; vertical-align: middle; }
@keyframes r { to { transform: rotate(360deg); } }
.mockbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; text-align: center; background: #b45309; color: #fff; font-size: 12px; padding: 4px; }

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 40px; color: var(--muted); font-size: 13px; }
.foot .wrap { padding-top: 22px; padding-bottom: 40px; gap: 14px; }

/* ================= ГЛАВНАЯ ================= */
.hero-dark { position: relative; overflow: hidden; background: var(--night); color: #e5e9f5; padding: 130px 16px 90px; isolation: isolate; }
.hero-grid { position: absolute; inset: -48px; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 48px 48px; animation: gridDrift 18s linear infinite;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%); }
@keyframes gridDrift { to { transform: translate(48px, 48px); } }
.orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; }
.orb-a { width: 460px; height: 460px; background: #4f46e5; top: -120px; left: -80px; animation: orbA 16s ease-in-out infinite; }
.orb-b { width: 380px; height: 380px; background: #7c3aed; top: 80px; right: -100px; animation: orbB 19s ease-in-out infinite; }
.orb-c { width: 300px; height: 300px; background: #06b6d4; bottom: -140px; left: 40%; opacity: .35; animation: orbC 22s ease-in-out infinite; }
@keyframes orbA { 50% { transform: translate(-120px, 90px) scale(1.15); } }
@keyframes orbB { 50% { transform: translate(90px, -60px) scale(.9); } }
@keyframes orbC { 50% { transform: translate(-80px, -50px) scale(1.2); } }

.hero-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-text h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.06; margin: 18px 0; color: #fff; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 99px; font-size: 13px; color: #c7d2fe;
  text-decoration: none; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.pill b { padding: 3px 10px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 12px; }
.rot { display: inline-grid; vertical-align: bottom; height: 1.1em; overflow: hidden; }
.rot > span { grid-area: 1 / 1; background: var(--grad3); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(100%); animation: rotWord 9s infinite; white-space: nowrap; }
.rot > span:nth-child(2) { animation-delay: 3s; } .rot > span:nth-child(3) { animation-delay: 6s; }
@keyframes rotWord { 0% { opacity: 0; transform: translateY(100%); } 5%, 30% { opacity: 1; transform: none; } 36%, 100% { opacity: 0; transform: translateY(-100%); } }
.lead { font-size: 18px; color: #b6c0d8; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 34px; }
.hero-actions .btn { padding: 14px 24px; font-size: 16px; }
.stats { display: flex; gap: 34px; flex-wrap: wrap; margin: 0; }
.stats div { border-left: 2px solid rgba(129, 140, 248, .5); padding-left: 14px; }
.stats dt { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stats dt small { font-size: 14px; font-weight: 600; color: #a5b4fc; }
.stats dd { margin: 0; font-size: 13px; color: #94a0b8; }

.hero-in { opacity: 0; transform: translateY(18px); animation: heroIn .8s cubic-bezier(.2, .7, .2, 1) forwards; }
.hero-in.d1 { animation-delay: .1s; } .hero-in.d2 { animation-delay: .25s; } .hero-in.d3 { animation-delay: .4s; } .hero-in.d4 { animation-delay: .55s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

/* окно с планом */
.hero-visual { position: relative; }
.win { background: rgba(18, 26, 46, .82); border: 1px solid rgba(255, 255, 255, .1); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(129, 140, 248, .08); animation: cardFloat 7s ease-in-out infinite; backdrop-filter: blur(10px); }
@keyframes cardFloat { 50% { transform: translateY(-10px); } }
.win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: #94a0b8; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.win-bar i:nth-child(1) { background: #f87171; } .win-bar i:nth-child(2) { background: #fbbf24; } .win-bar i:nth-child(3) { background: #34d399; }
.win-bar span { margin-left: 8px; font-family: ui-monospace, Consolas, monospace; }
.live { margin-left: auto; font-style: normal; color: #67e8f9; display: inline-flex; align-items: center; gap: 6px; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; animation: livePulse 1.6s ease-out infinite; }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(34, 211, 238, .7); } 100% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); } }
.plan { display: block; width: 100%; height: auto; padding: 8px 10px 0; }
.plan .walls path { fill: none; stroke: #cbd5e1; stroke-width: 3; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s ease forwards; }
.plan .walls path:nth-child(2) { animation-delay: .3s; } .plan .walls path:nth-child(3) { animation-delay: .5s; } .plan .walls path:nth-child(4) { animation-delay: .7s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.plan .labels text { fill: #64748b; font: 600 11px Inter, sans-serif; text-anchor: middle; opacity: 0; animation: fadeIn .5s 1.4s forwards; }
.plan .cable path { fill: none; stroke: #22d3ee; stroke-width: 1.6; stroke-dasharray: 5 5; opacity: 0; animation: fadeIn .4s 2.2s forwards, flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -20; } }
@keyframes fadeIn { to { opacity: 1; } }
.plan .dev { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .45s cubic-bezier(.3, 1.6, .5, 1) var(--d, 2s) forwards; }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: none; } }
.plan .sock path { fill: #818cf8; }
.plan .det circle:first-child { fill: none; stroke: #f87171; stroke-width: 2; } .plan .det circle:last-child { fill: #f87171; }
.plan .cam rect { fill: #34d399; } .plan .cam .fov { fill: rgba(52, 211, 153, .14); stroke: rgba(52, 211, 153, .4); }
.plan .cab rect { fill: url(#cab); } .plan .cab text { fill: #fff; font: 700 9px Inter, sans-serif; text-anchor: middle; }
.bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px 16px; font-size: 12px; color: #94a0b8; }
.bar b { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad3); animation: barFill 4.5s 1s ease-in-out infinite; }
@keyframes barFill { 0% { width: 0; } 70%, 100% { width: 100%; } }
.chip { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-size: 13px; font-weight: 600;
  background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); white-space: nowrap; opacity: 0; animation: chipIn .6s forwards, cardFloat 6s ease-in-out infinite; }
.chip span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: 12px; color: #fff; }
.chip .ok { background: var(--ok); } .chip .q { background: var(--violet); }
.chip-1 { top: 18%; left: -36px; animation-delay: 1.6s, 2.2s; }
.chip-2 { top: 52%; right: -28px; animation-delay: 2.6s, 3.2s; }
.chip-3 { bottom: -18px; left: 22%; animation-delay: 4s, 4.6s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(12px) scale(.95); } to { opacity: 1; transform: none; } }

/* блоки главной */
.landing main.wrap { padding-top: 10px; }
.block { padding: 70px 0 10px; scroll-margin-top: 70px; }
.eyebrow { color: var(--indigo); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.eyebrow.light { color: #a5b4fc; }
.title { font-size: clamp(26px, 3.2vw, 38px); margin: 0 0 34px; max-width: 760px; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: f; }
.flow li { position: relative; counter-increment: f; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.flow li::after { content: "0" counter(f); position: absolute; top: 18px; right: 20px; font-size: 28px; font-weight: 800; color: var(--soft); }
.flow li span:last-child { color: var(--muted); font-size: 14px; }
.flow b { font-size: 17px; }
.ico, .sec-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--grad); color: #fff;
  box-shadow: 0 8px 20px rgba(79, 70, 229, .3); margin-bottom: 6px; }
.ico svg, .sec-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.sec { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s, border-color .25s; overflow: hidden; }
.sec.on:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(79, 70, 229, .35); }
.sec.on::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad3); }
.sec.off { opacity: .6; }
.sec p { color: var(--muted); font-size: 14px; min-height: 66px; }
.k-svn { background: linear-gradient(135deg, #059669, #06b6d4); } .k-aps { background: linear-gradient(135deg, #e11d48, #f97316); }
.k-eom { background: linear-gradient(135deg, #ca8a04, #f59e0b); } .k-ar { background: linear-gradient(135deg, #475569, #94a3b8); }
.badge { display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--muted); }
.badge.ok { background: #d1fae5; color: var(--ok); }

.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { padding: 22px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px;
  transition: border-color .2s; }
.feat:hover { border-color: rgba(79, 70, 229, .35); }
.feat b { font-size: 16px; display: flex; align-items: center; gap: 10px; }
.feat b::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--grad3); flex: none; }
.feat span { color: var(--muted); font-size: 14px; }

.price { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; padding: 44px; border-radius: 24px;
  background: var(--night); color: #e5e9f5; isolation: isolate; }
.price::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; border-radius: 50%; background: #4f46e5; filter: blur(90px);
  opacity: .45; top: -160px; right: -60px; animation: orbA 18s ease-in-out infinite; }
.price h2 { font-size: clamp(24px, 3vw, 34px); color: #fff; }
.price-big { font-size: 52px; font-weight: 800; letter-spacing: -.03em; margin: 18px 0; background: var(--grad3); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.price-big small { font-size: 16px; font-weight: 600; color: #94a0b8; -webkit-text-fill-color: #94a0b8; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: #c7d2fe; }
.ticks li { display: flex; gap: 10px; }
.ticks li::before { content: "✓"; display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 6px; font-size: 12px;
  background: rgba(129, 140, 248, .2); color: #a5b4fc; }
.calc { align-self: center; padding: 24px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(10px); }
.calc label { color: #b6c0d8; }
.calc input[type=number] { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); color: #fff; font-size: 18px; font-weight: 700; }
.calc-out { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 8px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); }
.calc-out b { font-size: 30px; font-weight: 800; color: #fff; }
.calc .muted { color: #94a0b8; }

.alfa { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 32px; border-radius: 22px;
  background: linear-gradient(135deg, rgba(79, 70, 229, .08), rgba(6, 182, 212, .08)); border: 1px solid rgba(79, 70, 229, .2); }
.alfa h2 { margin-bottom: 6px; } .alfa p { margin: 0; color: var(--muted); }
.auth { padding: 28px; }
.auth button { margin-top: 6px; padding: 13px; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }
.flow li.reveal:nth-child(2) { --i: 1; } .flow li.reveal:nth-child(3) { --i: 2; } .flow li.reveal:nth-child(4) { --i: 3; }
.feat.reveal:nth-child(3n+2) { --i: 1; } .feat.reveal:nth-child(3n) { --i: 2; }

/* ================= ЭКРАН ОЖИДАНИЯ ================= */
.wait { position: relative; overflow: hidden; display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; padding: 28px;
  border-radius: 22px; background: var(--night); color: #e5e9f5; isolation: isolate; margin: 0 0 18px; }
.wait::before { content: ""; position: absolute; inset: -48px; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 32px 32px; animation: gridDrift 14s linear infinite; }
.wait::after { content: ""; position: absolute; z-index: -1; width: 340px; height: 340px; border-radius: 50%; background: #7c3aed; filter: blur(90px);
  opacity: .4; bottom: -160px; right: -60px; animation: orbB 16s ease-in-out infinite; }
.wait h2 { color: #fff; margin: 0 0 4px; }
.wait .muted { color: #94a0b8; }
.engineer { width: 100%; height: auto; display: block; }
.engineer .desk { fill: #1e293b; } .engineer .desk-top { fill: #334155; }
.engineer .chair { fill: #3b4458; } .engineer .chair-leg { stroke: #3b4458; stroke-width: 4; stroke-linecap: round; fill: none; } .engineer .wheel { fill: #1f2937; }
.engineer .pants { fill: #273152; } .engineer .shoe { fill: #111827; }
.engineer .bezel { fill: #111827; stroke: #475569; stroke-width: 1.2; } .engineer .screen { fill: #0b1220; stroke: #6366f1; stroke-width: 1; }
.engineer .scr-bar { fill: #1e293b; } .engineer .scr-dot { fill: #475569; } .engineer .scr-dot:first-child { fill: #f97316; }
/* план на мониторе: стены прорисовываются, потом трасса и извещатели */
.engineer .pw path { fill: none; stroke: #e0e7ff; stroke-width: 1.6; stroke-linecap: square; stroke-dasharray: 100; stroke-dashoffset: 100;
  animation: engDraw 9s ease-in-out infinite; }
.engineer .pw path:nth-child(2) { stroke: #818cf8; stroke-width: 1.1; animation-delay: .6s; }
.engineer .pw path:nth-child(3) { stroke-width: 1.2; animation-delay: 1.2s; } .engineer .pw path:nth-child(4) { stroke-width: 1.2; animation-delay: 1.6s; }
@keyframes engDraw { 0% { stroke-dashoffset: 100; opacity: 1; } 30%, 88% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.engineer .cab { fill: none; stroke: #f97316; stroke-width: 1; stroke-dasharray: 3 2; opacity: 0; animation: engCab 9s linear infinite; }
@keyframes engCab { 0%, 42% { opacity: 0; stroke-dashoffset: 0; } 50%, 88% { opacity: 1; } 100% { opacity: 0; stroke-dashoffset: -60; } }
.engineer .dev { fill: #22d3ee; opacity: 0; animation: engDev 9s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.engineer .dev:nth-child(2) { animation-delay: .25s; } .engineer .dev:nth-child(3) { animation-delay: .5s; } .engineer .dev:nth-child(4) { animation-delay: .75s; }
.engineer .dev:nth-child(5) { animation-delay: 1s; } .engineer .dev:nth-child(6) { animation-delay: 1.25s; } .engineer .dev:nth-child(7) { animation-delay: 1.5s; }
@keyframes engDev { 0%, 30% { opacity: 0; transform: scale(.2); } 34% { opacity: 1; transform: scale(1.5); } 38%, 86% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.engineer .cursor { fill: #fff; stroke: #0b1220; stroke-width: .6; animation: engCursor 6s ease-in-out infinite; }
@keyframes engCursor { 0%, 100% { transform: translate(20px, 20px); } 25% { transform: translate(62px, 28px); }
  50% { transform: translate(48px, 52px); } 75% { transform: translate(82px, 50px); } }
.engineer .kbd { fill: #475569; } .engineer .keys { stroke: #94a3b8; stroke-width: 1.2; stroke-dasharray: 3 1.4; fill: none; }
.engineer .pad { fill: #312e81; } .engineer .mouse { fill: #cbd5e1; } .engineer .mouse-cable { stroke: #64748b; stroke-width: 1; fill: none; }
.engineer .mouse-hand { animation: engMouse 6s ease-in-out infinite; }
@keyframes engMouse { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(4px, .6px); }
  50% { transform: translate(2.6px, 2px); } 75% { transform: translate(6px, 1.8px); } }
.engineer .arm { fill: none; stroke: #4f46e5; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.engineer .arm.far { stroke: #3730a3; stroke-width: 10; }
.engineer .tap { animation: engTap .32s ease-in-out infinite alternate; }
@keyframes engTap { to { transform: translateY(-2px); } }
.engineer .skin { fill: #f2c9a0; } .engineer .ear { fill: #e0ac80; } .engineer .shirt { fill: #4f46e5; } .engineer .vest { fill: #f97316; } .engineer .stripe { fill: #fde68a; }
.engineer .helmet { fill: #facc15; } .engineer .helmet-rim { fill: #eab308; } .engineer .hair { fill: #3f2a1d; }
.engineer .brow { stroke: #8b5e3c; stroke-width: 1.6; fill: none; stroke-linecap: round; }
.engineer .eye { fill: #0f172a; animation: blink 4.5s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.engineer .head { animation: nod 4s ease-in-out infinite; transform-box: fill-box; transform-origin: 40% 95%; }
@keyframes nod { 50% { transform: rotate(2.5deg) translateX(1px); } }
.engineer .gear { fill: none; stroke: #818cf8; stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: r 6s linear infinite; }
.engineer .gear.g2 { stroke: #22d3ee; animation-direction: reverse; animation-duration: 4s; }
.engineer .cup { fill: #e2e8f0; } .engineer .cup-h { fill: none; stroke: #e2e8f0; stroke-width: 2; }
.engineer .steam { fill: none; stroke: rgba(226, 232, 240, .5); stroke-width: 2; stroke-linecap: round; animation: steam 2.4s ease-in-out infinite; }
.engineer .steam:nth-of-type(2) { animation-delay: 1.2s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }
.engineer .spark { fill: #fde68a; animation: spark 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.engineer .spark:nth-of-type(2) { animation-delay: .9s; } .engineer .spark:nth-of-type(3) { animation-delay: 1.7s; }
@keyframes spark { 0%, 100% { opacity: 0; transform: scale(.3); } 50% { opacity: 1; transform: scale(1); } }

.progress { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; margin: 16px 0 6px; }
.progress i { position: relative; display: block; height: 100%; width: var(--p, 5%); border-radius: inherit; background: var(--grad3);
  transition: width 1.2s cubic-bezier(.2, .7, .2, 1); overflow: hidden; }
.progress i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: translateX(-100%); animation: shine 1.8s infinite; }
@keyframes shine { to { transform: translateX(100%); } }
.progress-meta { display: flex; justify-content: space-between; font-size: 13px; color: #94a0b8; }
.timeline { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.timeline li { position: relative; padding-top: 30px; font-size: 12px; color: #64748b; text-align: center; line-height: 1.3; }
.timeline li::before { content: ""; position: absolute; top: 4px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  border: 2px solid #334155; background: var(--night); z-index: 1; }
.timeline li::after { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: #334155; }
.timeline li:first-child::after { display: none; }
.timeline li.done { color: #a5b4fc; }
.timeline li.done::before { background: var(--grad); border-color: transparent; }
.timeline li.done::after, .timeline li.cur::after { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.timeline li.cur { color: #fff; font-weight: 600; }
.timeline li.cur::before { border-color: #22d3ee; background: #0e7490; animation: livePulse 1.6s ease-out infinite; }
.tip { min-height: 44px; margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08);
  font-size: 14px; color: #c7d2fe; transition: opacity .4s; }
.tip b { color: #67e8f9; }
.wait > * { min-width: 0; }
.wait [hidden] { display: none; }
.queue { display: inline-block; margin-top: 8px; padding: 4px 12px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(250, 204, 21, .14); color: #fde68a; }

/* ================= ЧАТ-ПОМОЩНИК ================= */
.chat-fab { position: fixed; right: 20px; bottom: 22px; z-index: 60; width: 58px; height: 58px; padding: 0; border-radius: 18px; background: var(--grad3);
  box-shadow: 0 12px 30px rgba(79, 70, 229, .45); animation: fabIn .6s 1s both; }
.chat-fab svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chat-fab::after { content: ""; position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: #34d399; border: 2px solid #fff; }
@keyframes fabIn { from { opacity: 0; transform: scale(.5) translateY(20px); } }
.chat-panel { position: fixed; right: 20px; bottom: 92px; z-index: 61; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  overflow: hidden; transform-origin: bottom right; transition: opacity .2s, transform .2s; }
.chat-panel[hidden] { display: flex; opacity: 0; transform: scale(.9) translateY(10px); pointer-events: none; visibility: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--night); color: #fff; }
.chat-head .logo-mark { width: 34px; height: 34px; }
.chat-head b { display: block; font-size: 15px; } .chat-head small { color: #94a0b8; font-size: 12px; }
.chat-head button { margin-left: auto; padding: 4px 10px; background: transparent; box-shadow: none; color: #94a0b8; font-size: 20px; line-height: 1; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; animation: msgIn .25s ease-out; }
.msg.bot { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 4px; }
.msg.typing::after { content: "…"; display: inline-block; animation: livePulse 1s infinite; }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.chat-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 10px; background: var(--bg); }
.chat-quick button { padding: 6px 11px; font-size: 12px; font-weight: 500; border-radius: 99px; background: var(--card); color: var(--accent);
  border: 1px solid var(--line); box-shadow: none; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--card); }
.chat-form input { margin: 0; }
.chat-form button { padding: 0 16px; }

/* ================= АДМИНКА ================= */
.kpi { padding: 16px; border-radius: 14px; background: var(--soft); }
.kpi .big { font-size: 26px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 120px; padding-top: 10px; }
.bars div { flex: 1; min-width: 6px; border-radius: 6px 6px 2px 2px; background: var(--grad); position: relative; }
.bars div span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); white-space: nowrap; }
.bars div em { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; font-style: normal; color: var(--muted); }
.seo-box dt { font-weight: 600; margin-top: 8px; } .seo-box dd { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .price { grid-template-columns: 1fr; padding: 32px; }
  .wait { grid-template-columns: 1fr; }
  .wait .engineer { max-width: 280px; margin: 0 auto; }
}
@media (max-width: 700px) {
  .hide-sm { display: none; }
  .top nav { gap: 12px; font-size: 14px; }
  .hero-dark { padding: 110px 16px 70px; }
  .chip-1 { left: -6px; } .chip-2 { right: -6px; } .chip { font-size: 12px; }
  .flow, .feats { grid-template-columns: 1fr; }
  .stats { gap: 20px; }
  .price { padding: 24px; } .price-big { font-size: 40px; }
  .imgs { grid-template-columns: 1fr; }
  table { display: block; overflow-x: auto; font-size: 13px; }
  .big { font-size: 24px; }
  .card { padding: 18px; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .timeline li:nth-child(4)::after { display: none; }
  .chat-fab { right: 14px; bottom: 16px; }
  .chat-panel { right: 12px; bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .engineer .pw path, .engineer .dev, .engineer .cab, .engineer .cursor { animation: none; stroke-dashoffset: 0; opacity: 1; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .hero-in { opacity: 1; transform: none; }
  .rot > span { animation: none; opacity: 0; } .rot > span:first-child { opacity: 1; transform: none; }
  .plan .walls path { stroke-dashoffset: 0; } .plan .labels text, .plan .cable path, .plan .dev, .chip { opacity: 1; }
}

/* оценка деления плана звёздами (порядок 5..1 + row-reverse: подсветка «до выбранной») */
.split-fb { margin-top: 14px; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin: 4px 0 8px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.stars label { font-size: 28px; line-height: 1; color: #cbd5e1; cursor: pointer; transition: color .15s, transform .15s; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #f59e0b; }
.stars label:hover { transform: scale(1.15); }
.stars input:focus-visible + label { outline: 2px solid var(--indigo); border-radius: 4px; }
.small { font-size: 12.5px; }

/* FAQ на главной и график посетителей в админке */
.bars { margin-bottom: 26px; }
.faq details { padding: 0; margin: 0 auto 12px; max-width: 820px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--soft);
  color: var(--indigo); font-weight: 800; transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--indigo); outline-offset: -2px; border-radius: var(--radius); }
.faq details p { margin: 0; padding: 0 22px 18px; color: var(--muted); line-height: 1.6; }

/* редактор помещений (waiting_rooms) */
#roomsEd button:not(.ghost):not(.btn), #roomsEd .re-tab { padding: 6px 12px; font-size: 13.5px; border-radius: 8px; background: var(--card); color: var(--ink);
  border: 0.5px solid var(--line); font-weight: 500; }
#roomsEd button:hover, #roomsEd .btn:hover { transform: none; box-shadow: none; filter: none; }
#roomsEd button:not(.ghost):not(.btn):hover { background: var(--soft); }
#roomsEd button[aria-pressed=true] { background: var(--accent); color: #fff; border-color: var(--accent); }
#roomsEd button:disabled { opacity: .5; cursor: not-allowed; }
#roomsEd button.ghost { padding: 6px 12px; font-size: 13px; border-radius: 8px; border-width: 0.5px; }
#roomsEd .btn.sm { padding: 6px 12px; font-size: 13.5px; border-radius: 8px; border-width: 0.5px; }
.re-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.re-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 10px 0 4px; }
.re-seg { display: inline-flex; gap: 4px; }
.re-chk { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13.5px; margin: 6px 0; }
.re-chk input { margin: 0; width: auto; }
.re-floor-l { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.re-floor-l input { margin: 0; width: 160px; padding: 6px 10px; }
.re-hint { min-height: 1.4em; margin: 4px 0 8px; }
.re-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.re-canvas { height: 60vh; min-height: 360px; background: var(--soft); border: 0.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.re-canvas svg { width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; user-select: none; }
.re-bg { opacity: .55; pointer-events: none; }
.re-poly { fill: var(--accent); fill-opacity: .12; stroke: var(--accent); stroke-width: 1.2; vector-effect: non-scaling-stroke; cursor: pointer; }
.re-poly:hover { fill-opacity: .24; }
.re-poly.off { fill: var(--muted); fill-opacity: .04; stroke: var(--muted); stroke-dasharray: 4 3; }
.re-poly.off:hover { fill-opacity: .14; }
.re-poly.tiny { stroke-width: .8; }
.re-poly.msel { fill: var(--warn); fill-opacity: .3; stroke: var(--warn); stroke-width: 2; }
.re-poly.sel { fill-opacity: .32; stroke-width: 2.4; }
.re-lbl { fill: var(--ink); text-anchor: middle; dominant-baseline: middle; pointer-events: none; font-weight: 500; }
.re-lbl.sub { fill: var(--muted); font-weight: 400; }
.re-node rect { fill: var(--ok); stroke: none; }
.re-lbl.node { fill: #fff; }
.re-cut { stroke: var(--err); stroke-width: 2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; pointer-events: none; }
.re-cut-pt { fill: var(--err); pointer-events: none; }
.re-side { border: 0.5px solid var(--line); border-radius: var(--radius); padding: 12px 14px; background: var(--card); }
.re-side h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; }
.re-side label { margin-top: 8px; }
.re-side input, .re-side select { padding: 7px 10px; }
.re-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.re-nodes { margin-top: 14px; padding-top: 10px; border-top: 0.5px solid var(--line); }
.re-node-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; padding: 3px 0; }
#roomsEd .re-x { padding: 3px 8px; font-size: 12px; }
.re-status { margin: 6px 0; }
.re-list { margin-top: 10px; max-height: 340px; overflow: auto; }
.re-list table { width: 100%; font-size: 13.5px; }
.re-list th, .re-list td { border-bottom-width: 0.5px; }
.re-list tbody tr { cursor: pointer; }
.re-list tbody tr:hover, .re-list tr.sel { background: var(--soft); }
.re-list .num { text-align: right; white-space: nowrap; }
@media (max-width: 860px) {
  .re-wrap { grid-template-columns: 1fr; }
  .re-canvas { height: 55vh; }
  .re-floor-l { margin-left: 0; }
}

/* редактор приборов, трасс и спецификации (done) */
#devEd button:not(.ghost):not(.btn), #devEd .de-tab { padding: 6px 12px; font-size: 13.5px; border-radius: 8px; background: var(--card); color: var(--ink);
  border: 0.5px solid var(--line); font-weight: 500; }
#devEd button:hover, #devEd .btn:hover { transform: none; box-shadow: none; filter: none; }
#devEd button:not(.ghost):not(.btn):hover { background: var(--soft); }
#devEd button[aria-pressed=true] { background: var(--accent); color: #fff; border-color: var(--accent); }
#devEd button:disabled { opacity: .5; cursor: not-allowed; }
#devEd button.ghost { padding: 6px 12px; font-size: 13px; border-radius: 8px; border-width: 0.5px; }
#devEd .btn.sm { padding: 6px 12px; font-size: 13.5px; border-radius: 8px; border-width: 0.5px; }
#devEd .de-x { padding: 3px 8px; font-size: 12px; }
.de-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.de-block { width: auto; max-width: 260px; margin: 0; padding: 6px 10px; }
.de-bg { opacity: .55; pointer-events: none; }
.de-route { fill: none; stroke: var(--indigo); stroke-width: 1.4; vector-effect: non-scaling-stroke; pointer-events: none; }
.de-route.edited { stroke: var(--warn); }
.de-route.sel { stroke: var(--accent); stroke-width: 3; }
.de-route-hit { fill: none; stroke: transparent; stroke-width: 12px; vector-effect: non-scaling-stroke; pointer-events: stroke; cursor: pointer; }
.de-vtx { fill: #fff; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; cursor: move; }
.de-node { fill: var(--ok); pointer-events: none; }
.de-dot { fill: var(--accent); stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: all; cursor: move; }
.de-dev.moved .de-dot { fill: var(--warn); }
.de-dev.new .de-dot { fill: var(--ok); }
.de-dev.sel .de-dot { stroke: var(--ink); stroke-width: 2.5; }
.de-zone { fill: var(--accent); fill-opacity: .04; stroke: var(--accent); stroke-opacity: .5; stroke-width: 1; stroke-dasharray: 5 4;
  vector-effect: non-scaling-stroke; pointer-events: none; }
.de-dev.sel .de-zone { fill-opacity: .1; stroke-opacity: .9; }
.de-lbl { fill: var(--ink); pointer-events: none; font-weight: 500; }
.de-spec { margin-top: 14px; }
.de-spec-t { max-height: 420px; overflow: auto; border: 0.5px solid var(--line); border-radius: var(--radius); }
.de-spec-t table { width: 100%; font-size: 13px; }
.de-spec-t th, .de-spec-t td { border-bottom-width: 0.5px; padding: 5px 8px; vertical-align: middle; }
.de-spec-t th { position: sticky; top: 0; background: var(--card); z-index: 1; }
.de-spec-t tr.de-sec td { background: var(--soft); font-weight: 500; }
.de-spec-t tr.off td { opacity: .45; text-decoration: line-through; }
.de-spec-t tr.new td { background: color-mix(in srgb, var(--ok) 10%, transparent); }
.de-spec-t .num { text-align: right; white-space: nowrap; }
.de-qty { width: 84px; margin: 0; padding: 4px 6px; text-align: right; }
.de-unit { white-space: nowrap; }
.de-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.de-add input { width: auto; flex: 1 1 140px; margin: 0; padding: 6px 10px; }
.de-add input.de-qty { flex: 0 0 84px; }
#devEd .de-status { margin: 6px 0; }
.vendor-pick[hidden] { display: none; }
