/* TresCAD — общий стиль сайта (главная, кабинет, проект, комната, плагин). Токены — terminal.css, система — DESIGN.md */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 14px/1.6 var(--font); font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; touch-action: manipulation;
}
::selection { background: #ff7a1a55; color: var(--text); }
* { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; letter-spacing: -0.02em; }
kbd { font: inherit; font-size: 11px; color: var(--text-dim); }
svg.lucide { width: 15px; height: 15px; stroke-width: 1.5; flex: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--panel); padding: 6px 10px; border: 1px solid var(--accent); }

.accent { color: var(--accent); } .muted { color: var(--text-muted); } .dim { color: var(--text-dim); } .ok { color: var(--ok); }
.grow { flex: 1; }
.label { font-size: 11px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); }
.panel { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }

/* ─── Кнопки ─────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 34px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: var(--radius); white-space: nowrap; font-size: 13px; color: var(--text);
  transition: transform 160ms var(--ease-out), background-color 120ms ease, border-color 120ms ease;
}
.btn:active { transform: scale(0.97); }
/* Главное действие — команда: «> Текст», оранжевая рамка, без заливки-плашки */
.btn { border-radius: var(--radius-sm); border-color: var(--border-soft); color: var(--text-muted); }
.btn svg { color: var(--text-dim); }
/* Главное действие — одно на блок: мягкая оранжевая заливка, рамка приглушена */
.btn-primary { border-color: #ff7a1a8c; background: var(--accent-soft); color: var(--text); font-weight: 500; }
.btn-primary svg { color: var(--accent); }
/* Второстепенное с акцентом — нейтральная кнопка, оранжевая только иконка */
.btn-accent { color: var(--text); }
.btn-accent svg { color: var(--accent); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; gap: 8px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 14px; }
.icon-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius-sm); color: var(--text-dim); transition: background-color 120ms ease; }
@media (hover: hover) {
  .btn:hover { background: var(--hover); border-color: var(--border); color: var(--text); }
  .btn-primary:hover { background: #ff7a1a26; border-color: var(--accent); }
  .icon-btn:hover { background: var(--hover); color: var(--text); }
}

.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.tag.is-accent { border-color: #ff7a1a59; color: var(--accent); }
.tag.is-ok { border-color: #5bb98a4d; color: var(--ok); }
.tag.is-guide { border-color: #4cc3a055; color: var(--guide); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s var(--ease-out) infinite; flex: none; }
@keyframes pulse { 50% { opacity: .35; } }

/* Сегменты — вкладки с подчёркиванием */
.segmented { display: flex; border-bottom: 1px solid var(--border-soft); gap: 0; }
.segmented button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 30px; padding: 0 12px; font-size: 12px; color: var(--text-dim); white-space: nowrap; transition: color 120ms ease, box-shadow 120ms ease; }
.segmented button.is-active { color: var(--text); box-shadow: inset 0 -1px 0 var(--accent); }
@media (hover: hover) { .segmented button:not(.is-active):hover { color: var(--text); } }

/* ─── Материалы (текстуры из мира продукта) ─── */
.mat { border-radius: var(--radius); border: 1px solid #0007; aspect-ratio: 1; }
.mat-wood { background: repeating-linear-gradient(180deg, #8a4e27 0 11px, #6e3a1c 11px 13px), #7a4322; }
.mat-plaster { background: radial-gradient(circle at 30% 40%, #d9d6cc 0 20%, transparent 21%), radial-gradient(circle at 70% 70%, #cfcbc0 0 18%, transparent 19%), #e3e0d7; }
.mat-fiber { background: linear-gradient(180deg, #a3a6aa 0 49%, #7d8084 49% 51%, #acacaa 51%); }
.mat-metal { background: repeating-linear-gradient(90deg, #2d2f33 0 14px, #55585d 14px 16px), #34363a; }
.mat-stone { background: linear-gradient(#0000 47%, #6f6a60 47% 53%, #0000 53%), linear-gradient(90deg, #0000 47%, #6f6a60 47% 53%, #0000 53%), #b3ab9c; background-size: 50% 33%; }
.mat-graphite { background: repeating-linear-gradient(180deg, #3a3a3a 0 14px, #1b1c1e 14px 15px); }
.mat-brick { background: linear-gradient(#0000 45%, #4a2618 45% 55%, #0000 55%), #9a4f33; background-size: 100% 30%; }
.mat-sand { background: repeating-linear-gradient(180deg, #c7ae84 0 12px, #a58c62 12px 13px); }

/* ─── Шапка сайта ───────────────────────── */
.site-nav { position: sticky; top: 0; z-index: 20; background: #121212e6; backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-soft); }
.site-nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; white-space: nowrap; }
.brand-icon { display: block; width: 24px; height: 24px; border-radius: 6px; flex: none; }
.brand-word { display: block; height: 22px; width: auto; flex: none; }
.brand-sub { color: var(--text-dim); font-size: 12px; font-weight: 400; }
@media (max-width: 1280px) { .site-nav .brand-sub { display: none; } }
.brand-lockup { display: inline-flex; flex-direction: column; gap: 8px; }
.brand-lockup img { display: block; width: auto; }
.brand-lockup img { height: 24px; }
.brand-lockup span { color: var(--text-dim); font-size: 10px; text-transform: uppercase; letter-spacing: .42em; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 6px 10px; border-radius: var(--radius); color: var(--text-muted); font-size: 13px; transition: color 120ms ease, background-color 120ms ease; }
.nav-links a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--accent); border-radius: 0; }
@media (hover: hover) { .nav-links a:hover { color: var(--text); background: var(--panel-2); } }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* ─── Главная ─────────────────────────── */
.hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border-soft);
  background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center top; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -0.03em; }
.hero-kicker { display: flex; gap: 10px; align-items: center; margin-bottom: 22px; font-size: 12px; color: var(--text-dim); }
.hero-kicker b { font-weight: 500; color: var(--text); }
.revit-win .bar .brand-icon { width: 16px; height: 16px; border-radius: 3px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lead { margin-top: 20px; color: var(--text-muted); font-size: 15px; line-height: 1.7; max-width: 54ch; }
.hero-cta { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 12px; color: var(--text-dim); }
.hero-demo { position: relative; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; }
.hero-demo .demo-bar { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-muted); margin-bottom: 10px; }
.compare { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: #111111; border: 1px solid var(--border-soft); }
.compare svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare .after { clip-path: inset(0 0 0 var(--split, 50%)); }
.compare .handle { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 2px; background: var(--accent); translate: -1px 0; pointer-events: none; }
.compare .handle::after { content: "\27F7"; position: absolute; top: 50%; left: 50%; translate: -50% -50%; width: 26px; height: 26px; display: grid; place-items: center; background: var(--accent); border: 0; color: #140a04; border-radius: var(--radius); font-size: 13px; }
.compare input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare .cap { position: absolute; bottom: 10px; font-size: 11px; padding: 2px 8px; background: #121212cc; border: 1px solid var(--border); border-radius: var(--radius); }
.zone-tag { position: absolute; font-size: 11px; padding: 3px 7px; border: 1px solid var(--guide); color: var(--guide); background: #121212cc; border-radius: var(--radius); pointer-events: none; }
.demo-mats { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.demo-mats .mat { width: 36px; cursor: pointer; transition: transform 160ms var(--ease-out); }
.demo-mats .mat.is-active { outline: 2px solid var(--accent); outline-offset: 2px; }
.demo-mats .mat:active { transform: scale(0.95); }

.section { padding: 80px 0; border-bottom: 1px solid var(--border-soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; max-width: 22ch; }
.section-head .label { display: block; margin-bottom: 14px; }
.section-head > p { color: var(--text-muted); max-width: 46ch; font-size: 13px; }

.audiences { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.aud { background: var(--panel); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.aud h3 { font-size: 18px; }
.aud .who { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }
.aud p { color: var(--text-muted); }
.aud ul { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.aud li { display: flex; gap: 10px; }
.aud li svg { color: var(--text-dim); margin-top: 3px; width: 14px; height: 14px; }
.aud .btn { margin-top: auto; align-self: flex-start; }

.pipeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.stage { padding: 22px 22px 0 0; position: relative; }
.stage::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 1px; background: var(--text-dim); }
.stage .n { font-size: 28px; color: var(--text-dim); line-height: 1; }

.stage h3 { font-size: 16px; margin: 14px 0 8px; }
.stage p { font-size: 13px; color: var(--text-muted); }
.stage .tag { margin-top: 14px; }

.feature-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.feature-split h2 { font-size: clamp(26px, 3vw, 38px); line-height: 1.1; }
.feature-split p { color: var(--text-muted); margin-top: 16px; max-width: 52ch; }
.checks { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; font-size: 13px; }
.checks li { display: flex; gap: 10px; }
.checks svg { color: var(--text-dim); margin-top: 3px; width: 14px; height: 14px; }

.pricing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.plan.is-featured { border-color: var(--border); background: var(--panel-2); }
.plan h3 { font-size: 16px; }
.plan .price { font-size: 26px; letter-spacing: -0.02em; }
.plan .price small { font-size: 12px; color: var(--text-muted); }
.plan ul { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); }
.plan li::before { content: "— "; color: var(--text-dim); }
.plan .btn { margin-top: auto; }

.logos { display: flex; flex-wrap: wrap; gap: 12px 40px; color: var(--text-dim); font-size: 15px; font-weight: 500; letter-spacing: .04em; }

.site-footer { padding: 40px 0 56px; color: var(--text-muted); font-size: 13px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.site-footer h3 { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); margin-bottom: 10px; }
.site-footer li + li { margin-top: 6px; }
@media (hover: hover) { .site-footer a:hover { color: var(--text); } }

/* ─── App shell (кабинет / проект / комната) ─── */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.app-side { border-right: 1px solid var(--border-soft); padding: 12px 0; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; background: var(--panel); }
.app-side .brand { padding: 2px 16px 4px; }
.side-nav { display: flex; flex-direction: column; }
.side-nav .label { padding: 0 18px 6px !important; color: var(--text-dim); }
.side-nav a { display: flex; align-items: center; gap: 12px; height: 30px; padding: 0 10px; margin: 0 8px; border-radius: var(--radius-sm); color: var(--text-muted); font-size: 13px; transition: background-color 120ms ease, color 120ms ease; }
.side-nav a svg { color: var(--text-dim); }
.side-nav a .count { margin-left: auto; font-size: 11px; color: var(--text-dim); }
.side-nav a[aria-current="page"] { background: var(--hover); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.side-nav a[aria-current="page"] svg { color: var(--accent); }
@media (hover: hover) { .side-nav a:not([aria-current]):hover { background: var(--hover); color: var(--text); } }
.side-company { display: flex; align-items: center; gap: 10px; padding: 0 16px 14px; border-bottom: 1px solid var(--border-soft); font-size: 12px; }
.avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: var(--radius-sm); background: var(--hover); border: 0; color: var(--text-muted); font-size: 11px; flex: none; }
.avatar.is-accent { color: var(--text); }
.avatars { display: flex; }
.avatars { gap: 4px; }
.tokens-card { padding: 14px 16px 2px; border-top: 1px solid var(--border-soft); font-size: 12px; display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.meter { height: 3px; background: var(--border); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--text-muted); }

.app-main { min-width: 0; display: flex; flex-direction: column; }
.app-top { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 24px; border-bottom: 1px solid var(--border-soft); position: sticky; top: 0; z-index: 10; background: #121212e6; backdrop-filter: blur(8px); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); min-width: 0; }
.crumbs a { color: var(--text-muted); } .crumbs [aria-current] { color: var(--text); }
.search { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; border: 1px solid var(--border-soft); background: var(--well); border-radius: var(--radius); color: var(--text-dim); font-size: 12px; min-width: 220px; }
.search kbd { margin-left: auto; }
.app-body { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.page-head { display: flex; align-items: end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; letter-spacing: -0.01em; }
.page-head .label { display: block; margin-bottom: 6px; color: var(--text-dim); }
.page-head p:not(.label) { color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* Сводка — одна полоса блоков, а не KPI-карточки */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.kpis .kpi { border: 0; border-radius: 0; padding: 12px 16px; }
.kpi .v { font-size: 20px; font-weight: 400; margin-top: 8px; line-height: 1.2; }
.kpi .v small { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-left: 4px; }
.kpi .s { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; min-height: 28px; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-weight: 400; font-size: 11px; color: var(--text-dim); padding: 0 10px 6px; border-bottom: 1px solid var(--border); }
.table td { padding: 7px 10px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
.table td:first-child, .table th:first-child { padding-left: 0; }
.table .r-admin, .table .r-eng, .table .r-mgr { color: var(--text-muted); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; }
@media (hover: hover) { .table tbody tr:hover td { background: var(--panel-2); } }
.table-scroll { overflow-x: auto; }

.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.proj { display: flex; flex-direction: column; border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; background: var(--panel); transition: border-color 120ms ease; }
@media (hover: hover) { .proj:hover { border-color: var(--border); } .proj:hover h3 { color: var(--text); } }
.proj .thumb { aspect-ratio: 16 / 9; background: var(--well); border-bottom: 1px solid var(--border-soft); position: relative; }
.proj .thumb svg { width: 100%; height: 100%; display: block; }
.proj .thumb .tag { position: absolute; top: 8px; left: 8px; background: #121212cc; }
.proj .body { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.proj h3 { font-size: 13px; font-weight: 500; }
.proj .kv { font-size: 11px; gap: 2px 14px; }
.proj .meta { display: flex; gap: 10px; font-size: 11px; color: var(--text-muted); align-items: center; }
.proj.new { align-items: center; justify-content: center; gap: 10px; border-style: dashed; color: var(--text-muted); min-height: 220px; background: none; }

/* Конвейер этапов — одна полоса */
.steps-line { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--border-soft); }
.sl { padding: 10px 16px 11px 0; display: flex; gap: 12px; align-items: baseline; color: var(--text-muted); }
.sl .n { font-size: 12px; color: var(--text-disabled); line-height: 1; }
.sl b { display: block; font-weight: 500; font-size: 13px; }
.sl small { color: var(--text-dim); font-size: 11px; }
.sl.is-done .n { color: var(--text-muted); }
.sl.is-active { box-shadow: inset 0 -2px 0 var(--accent); }
.sl.is-active .n { color: var(--accent); }

.files { display: flex; flex-direction: column; }
.file { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.file:last-child { border-bottom: 0; }
.file .ico { display: grid; place-items: center; width: 24px; height: 28px; color: var(--text-dim); flex: none; }
.file .ico.is-accent { color: var(--text-muted); }
.file .name { display: flex; flex-direction: column; min-width: 0; }
.file .name span:last-child { font-size: 11px; color: var(--text-dim); }
.file .end { margin-left: auto; display: flex; gap: 6px; align-items: center; }

.room-card { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--panel); }
.link-box { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 4px 0 10px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--well); font-size: 12px; color: var(--text-muted); }

.link-box span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }

.feed { display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
.feed li { display: flex; gap: 10px; }
.feed .t { font-size: 11px; color: var(--text-dim); }

/* ─── Live-комната ─────────────────────── */
.room { display: grid; grid-template-columns: 280px minmax(0, 1fr) 320px; grid-template-rows: 48px minmax(0, 1fr) 60px; height: 100vh; height: 100dvh; gap: 0; }
.room-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--border-soft); }
.room .panel { border: 0; border-radius: 0; background: none; }
.rec { display: inline-flex; align-items: center; gap: 8px; height: 22px; padding: 0 8px; border: 1px solid #ff7a1a59; border-radius: var(--radius-sm); color: var(--accent); font-size: 11px; letter-spacing: .04em; }
.room-left, .room-right { display: flex; flex-direction: column; min-height: 0; overflow-y: auto; background: var(--panel); }
.room-left { border-right: 1px solid var(--border-soft); } .room-right { border-left: 1px solid var(--border-soft); }
.room-left > .panel + .panel, .room-right > .panel + .panel { border-top: 1px solid var(--border-soft); }
.viewport { position: relative; overflow: hidden; background: var(--well);
  background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg, var(--border-soft) 1px, transparent 1px); background-size: 32px 32px; }
.viewport .scene { position: absolute; inset: 6% 8% 10%; width: 84%; height: 84%; transition: transform 300ms var(--ease-out); }
.vp-tl, .vp-tr, .vp-bl, .vp-br { position: absolute; display: flex; gap: 6px; align-items: center; }
.vp-tl { top: 12px; left: 12px; } .vp-tr { top: 12px; right: 12px; } .vp-bl { bottom: 12px; left: 12px; } .vp-br { bottom: 12px; right: 12px; }
.vp-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; background: #121212e0; border: 1px solid var(--border-soft); border-radius: var(--radius); font-size: 11px; color: var(--text-muted); }

.cursor { position: absolute; display: flex; align-items: flex-start; gap: 4px; font-size: 11px; pointer-events: none; transition: left 900ms var(--ease-out), top 900ms var(--ease-out); }
.cursor svg { width: 16px; height: 16px; }
.cursor span { padding: 1px 6px; border-radius: var(--radius); color: #111; }
.people { display: flex; flex-direction: column; gap: 6px; }
.person { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.person .role { font-size: 11px; color: var(--text-muted); }
.person .end { margin-left: auto; display: flex; gap: 4px; color: var(--text-muted); }
/* Операторы сессии: ● имя  роль */
.ops { display: flex; flex-direction: column; font-size: 12px; }
.op { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 0 8px; padding: 4px 0; }
.op::before { content: "\25CF"; font-size: 9px; color: var(--ok); }
.op.is-idle::before { content: "\25CB"; color: var(--text-dim); }

.op .role { grid-column: 2; font-size: 11px; color: var(--text-dim); }
.op .end { grid-row: 1 / span 2; grid-column: 3; display: flex; gap: 6px; color: var(--text-dim); }
.op .end svg { width: 13px; height: 13px; }
.cam { aspect-ratio: 16 / 10; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--well); display: grid; place-items: center; position: relative; color: var(--text-dim); }
.cam .who { position: absolute; left: 8px; bottom: 6px; font-size: 11px; color: var(--text); }
.cam.is-speaking { border-color: var(--ok); }
.mat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mat-pick { display: flex; flex-direction: column; gap: 4px; font-size: 10px; color: var(--text-dim); text-align: center; }
.mat-pick .mat { width: 100%; transition: transform 160ms var(--ease-out); }
.mat-pick:active .mat { transform: scale(0.95); }
.mat-pick.is-active { color: var(--text); }
.mat-pick.is-active .mat { outline: 2px solid var(--accent); outline-offset: 2px; }
.colors { display: flex; gap: 8px; flex-wrap: wrap; }
.colors button { width: 26px; height: 26px; border-radius: var(--radius); border: 1px solid #0007; }
.colors button.is-active { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Чат — журнал комнаты: время · автор · текст */
.chat { display: flex; flex-direction: column; gap: 7px; font-size: 12px; flex: 1; min-height: 120px; overflow-y: auto; }
.msg { display: grid; grid-template-columns: 5ch minmax(0, 1fr); gap: 0 10px; }
.msg time { color: var(--text-dim); }
.msg b { font-weight: 500; margin-right: 6px; color: var(--text); }
.msg b::after { content: ":"; color: var(--text-dim); }
.msg.sys { color: var(--text-muted); }
.msg.sys span::before { content: "> "; color: var(--text-dim); }
.chat-input { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--border-soft); padding-top: 10px; }

.chat-input input { flex: 1; min-width: 0; height: 30px; padding: 0 4px; background: transparent; border: 0; font-size: 12px; }
.chat-input input:focus-visible { outline: 0; }
.chat-input input::placeholder { color: var(--text-dim); }
.room-bottom { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-top: 1px solid var(--border-soft); background: var(--panel); }
.ctrl { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: var(--radius); transition: transform 160ms var(--ease-out), background-color 120ms ease; }
.ctrl:active { transform: scale(0.95); }
.ctrl.is-off { color: var(--text-dim); }
.ctrl.is-on { border-color: var(--border); color: var(--text); background: var(--hover); }
.ctrl.danger { border-color: var(--danger); color: var(--danger); }
@media (hover: hover) { .ctrl:hover { background: var(--panel-2); } }
/* Варианты — конфигурации, а не карточки товара */
.variants { display: flex; flex-direction: column; }
.variant { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius-sm); font-size: 12px; text-align: left; width: 100%; color: var(--text-muted); }
.variant .mat { width: 18px; flex: none; }
.variant.is-active { background: var(--hover); color: var(--text); box-shadow: inset 2px 0 0 var(--accent); }
.variant .votes { margin-left: auto; font-size: 11px; color: var(--text-dim); text-transform: none; letter-spacing: 0; }
@media (hover: hover) { .variant:not(.is-active):hover { background: var(--hover); color: var(--text); } }

/* ─── Плагин ─────────────────────────── */
.plugin-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.revit-win { border: 1px solid var(--border); border-radius: var(--radius); background: var(--well); overflow: hidden; }
.revit-win .bar { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-bottom: 1px solid var(--border-soft); font-size: 11px; color: var(--text-muted); }
.revit-win .ribbon { display: flex; gap: 4px; padding: 8px 12px; border-bottom: 1px solid var(--border-soft); overflow-x: auto; }
.revit-win .rb { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; padding: 6px; font-size: 10px; color: var(--text-muted); border: 1px solid transparent; border-radius: var(--radius); }
.revit-win .rb svg { width: 18px; height: 18px; color: var(--text); }
.revit-win .rb.is-active { background: var(--hover); color: var(--text); }
.revit-win .rb.is-active svg { color: var(--accent); }
.revit-win .work { display: grid; grid-template-columns: minmax(0, 1fr) 180px; }
.revit-win .work svg { width: 100%; display: block; }
.revit-win .side { border-left: 1px solid var(--border-soft); padding: 10px; font-size: 11px; display: flex; flex-direction: column; gap: 6px; }
.revit-win .side div { display: flex; justify-content: space-between; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.feature-grid > div { background: var(--panel); padding: 22px; }
.feature-grid svg { color: var(--text-muted); width: 18px; height: 18px; }
.feature-grid h3 { font-size: 15px; margin: 14px 0 6px; }
.feature-grid p { font-size: 13px; color: var(--text-muted); }
.req { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; font-size: 13px; }
.req dt { color: var(--text-muted); }
.faq details { border-bottom: 1px solid var(--border-soft); padding: 14px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--text-dim); transition: transform 160ms var(--ease-out); }
.faq details[open] summary svg { transform: rotate(90deg); }
.faq p { color: var(--text-muted); margin: 10px 0 0 26px; font-size: 13px; max-width: 70ch; }

/* ─── Тост / модалка ─────────────────── */
.toast { position: fixed; left: 50%; bottom: 32px; translate: -50% 0; z-index: 60; padding: 9px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-2); font-size: 12px; box-shadow: 0 8px 24px -12px #0009; transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out); }
.toast[hidden] { display: block; opacity: 0; transform: translateY(8px); pointer-events: none; }
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: 0; width: min(520px, 100% - 32px); }
dialog::backdrop { background: #000a; }
dialog[open] { animation: pop 200ms var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: scale(0.96); } }
.dlg-head { display: flex; align-items: flex-start; gap: 14px; padding: 18px 18px 14px; border-bottom: 1px solid var(--border-soft); }
.dlg-head .frame { width: 30px; height: 30px; border: 1px dashed var(--border); border-radius: var(--radius); flex: none; }
.dlg-head h2 { font-size: 16px; } .dlg-head h2 span { color: var(--text); }
.dlg-head p { font-size: 12px; color: var(--text-muted); }
.dlg-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.dlg-foot { padding: 14px 18px; border-top: 1px solid var(--border-soft); display: flex; justify-content: flex-end; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.field > span { color: var(--text-muted); }
.field input, .field select { height: 34px; padding: 0 10px; background: var(--well); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; }
.field input:focus-visible, .field select:focus-visible { outline: 0; border-color: var(--accent); }
.field select { background-color: var(--well); }
.opt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius); font-size: 13px; text-align: left; }
.opt.is-active { border-color: #ff7a1a8c; background: var(--hover); color: var(--text); }
.opt.is-active svg { color: var(--accent); }

/* ─── Адаптив ─────────────────────────── */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .hero-grid, .feature-split, .plugin-hero { grid-template-columns: minmax(0, 1fr); }
  .audiences, .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing { grid-template-columns: minmax(0, 1fr); }
  .site-footer .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .app-side { display: none; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .steps-line { grid-template-columns: minmax(0, 1fr); }
  .search { display: none; }
  .room { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "top" "view" "right" "left" "bottom"; height: auto; }
  .room > * { min-width: 0; }
  .room-top { grid-area: top; gap: 8px; } .viewport { grid-area: view; height: 58vh; } .room-right { grid-area: right; overflow: visible; } .room-left { grid-area: left; overflow: visible; }
  .room-bottom { grid-area: bottom; position: sticky; bottom: 0; background: var(--bg); height: 60px; }
  .room-top .rec { flex: none; } .vp-br { display: none; }
  .page-head .actions { margin-left: 0; }
}
@media (max-width: 600px) {
  .room-top .brand-word { display: none; }
  .section { padding: 56px 0; }
  .section-head { flex-direction: column; align-items: start; }
  .pipeline, .pricing, .kpis { grid-template-columns: minmax(0, 1fr); }
  .steps-line { grid-template-columns: minmax(0, 1fr); }
  .app-body, .app-top { padding-inline: 16px; }
  .nav-actions .btn:not(.btn-primary) { display: none; }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .req { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .req dd { margin-bottom: 8px; }
  .hide-sm { display: none; }
  .vp-tl .vp-chip:first-child { display: none; }
  .panel-head { flex-wrap: wrap; }
  .room-bottom .btn { padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0ms !important; }
}

/* ─── Страницы «Для кого», «Компаниям», «Цены» ─── */
.page-hero { padding: 64px 0 40px; border-bottom: 1px solid var(--border-soft); }
.page-hero h1 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -0.03em; max-width: 20ch; }
.page-hero h1 em { font-style: normal; color: var(--accent); }
.page-hero .label { display: block; margin-bottom: 16px; }

/* Выбор роли */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
.choice { display: flex; flex-direction: column; gap: 14px; padding: 28px; background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); transition: border-color 120ms ease, background-color 120ms ease; }
.choice .n { font-size: 12px; color: var(--text-dim); }
.choice h2 { font-size: 22px; }
.choice p { color: var(--text-muted); font-size: 13px; }
.choice ul { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-muted); }
.choice li::before { content: "— "; color: var(--text-dim); }
.choice .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 13px; }
.choice .go svg { color: var(--accent); }
@media (hover: hover) { .choice:hover { border-color: var(--border); background: var(--panel-2); } }
.choice-note { margin-top: 16px; font-size: 12px; color: var(--text-dim); }
.choice-note a { color: var(--text-muted); border-bottom: 1px dotted var(--text-dim); }

/* Каталоги производителей */
.mfr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mfr-cat { background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.mfr-cat h3 { font-size: 13px; font-weight: 500; }
.mfr-cat .sub { font-size: 11px; color: var(--text-dim); margin-top: -8px; }
.mfr { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--border-soft); }
.mfr span { flex: 1; min-width: 0; }
.mfr.is-off span { color: var(--text-dim); }
.switch { position: relative; width: 30px; height: 16px; border-radius: 8px; background: var(--border); flex: none; transition: background-color 160ms var(--ease-out); }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: var(--text-dim); transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.switch[aria-checked="true"] { background: #ff7a1a59; }
.switch[aria-checked="true"]::after { transform: translateX(14px); background: var(--accent); }
.mfr-add { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); padding-top: 8px; border-top: 1px dashed var(--border); }
.mfr-add svg { color: var(--text-dim); }
.support { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--border-soft); border-radius: var(--radius); font-size: 13px; color: var(--text-muted); }
.support b { color: var(--text); font-weight: 500; }

/* Интеграции Bitrix24 / 1С */
.integr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.integr .panel { display: flex; flex-direction: column; gap: 8px; }
.integr .n { font-size: 12px; color: var(--text-dim); }
.integr h3 { font-size: 15px; }
.integr p { font-size: 13px; color: var(--text-muted); }
.integr-logos { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* Материалы по разделам */
.mat-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.mat-cats h3 { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); margin-bottom: 10px; }
.mat-cats ul { display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--text-muted); }

@media (max-width: 1100px) {
  .mfr-grid, .mat-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .integr { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .choice-grid, .mfr-grid, .mat-cats { grid-template-columns: minmax(0, 1fr); }
  .support { flex-direction: column; align-items: flex-start; }
}

/* ─── AR-страница ─── */
.ar-stage { display: grid; place-items: center; padding: 28px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius); background-color: var(--panel);
  background-image: linear-gradient(var(--border-soft) 1px, transparent 1px), linear-gradient(90deg, var(--border-soft) 1px, transparent 1px); background-size: 32px 32px; background-position: center; }
.phone { position: relative; width: min(280px, 100%); aspect-ratio: 300 / 620; padding: 9px; border-radius: 40px; background: #0a0a0a; border: 1px solid #3a3a3a; }
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; translate: -50% 0; width: 70px; height: 7px; border-radius: 4px; background: #0a0a0a; z-index: 1; opacity: .8; }
.phone svg { display: block; width: 100%; height: 100%; border-radius: 32px; }
.phone-sm { width: min(210px, 100%); padding: 7px; border-radius: 32px; }
.phone-sm svg { border-radius: 26px; }
a.ar-stage { transition: border-color 120ms ease; }
@media (hover: hover) { a.ar-stage:hover { border-color: var(--border); } }
.layers { margin-top: 20px; max-width: 360px; }
.layers .mfr:last-child { border-bottom: 1px solid var(--border-soft); }
.compare svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-kicker .tag { margin-right: 4px; }

/* ─── «Для кого»: подменю, окна ПЧП/сметы, схема коннекта ─── */
.subnav { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 28px; border-bottom: 1px solid var(--border-soft); }
.subnav a { padding: 8px 14px; color: var(--text-dim); font-size: 13px; transition: color 120ms ease; }
.subnav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -1px 0 var(--accent); }
@media (hover: hover) { .subnav a:not([aria-current]):hover { color: var(--text); } }
.choice-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.win { border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.win + .win { margin-top: 12px; }
.win-bar { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; border-bottom: 1px solid var(--border-soft); font-size: 12px; color: var(--text-muted); }
.win-bar svg { color: var(--text-dim); }
.win-body { padding: 12px 16px 14px; }
.est-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.est-row .sum { min-width: 112px; text-align: right; }
.est-row.is-off > span:first-child { color: var(--text-dim); }
.est-row.is-off .sum { color: var(--text-dim); text-decoration: line-through; }
.est-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; font-size: 14px; }
.est-total b { font-size: 18px; font-weight: 500; }

.flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; }
.flow .node { padding: 18px 16px; text-align: center; font-size: 14px; background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--radius); }
.flow .node small { display: block; margin-top: 4px; font-size: 11px; color: var(--text-dim); }
.flow .arr { color: var(--text-dim); display: grid; place-items: center; }

@media (max-width: 1100px) {
  .choice-grid.three { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow .arr { transform: rotate(90deg); }
}
@media (max-width: 600px) { .est-row { grid-template-columns: minmax(0, 1fr) auto auto; } .est-row > .muted { display: none; } }

/* ─── Каталоги (catalogs.html) ───────────────────────── */
.cat-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.cat-list { padding: 0; overflow: hidden; }
.cat-list h2 { padding: 12px 14px 6px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.cat-list .cat-empty { padding: 4px 14px 12px; font-size: 12px; color: var(--text-dim); }
.cat-row { display: flex; align-items: center; gap: 10px; padding-right: 14px; border-top: 1px solid var(--border-soft); }
.cat-row.is-off .cat-pick { color: var(--text-dim); }
.cat-pick { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 0 8px 14px; font-size: 13px; text-align: left; color: var(--text); }
.cat-pick small { font-size: 11px; color: var(--text-dim); }
.cat-row.is-active { background: var(--hover); box-shadow: inset 2px 0 0 var(--accent); }
@media (hover: hover) { .cat-row:not(.is-active):hover { background: var(--hover); } }
.cat-detail { display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.cat-detail header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cat-detail header h2 { font-size: 16px; font-weight: 500; }
.cat-note { font-size: 12px; color: var(--text-muted); }
.cat-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cat-tools .field { flex: 1; min-width: 180px; max-width: 280px; }
.swatch { width: 28px; height: 28px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--well) center / cover; display: block; }
.table .cat-sku { color: var(--text-muted); white-space: nowrap; }
.table .cat-dim { color: var(--text-muted); font-size: 12px; }
.table .cat-rule { display: block; font-size: 11px; color: var(--text-dim); }
.table .cat-mute { color: var(--text-dim); }
.tex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tex { display: flex; gap: 12px; padding: 10px; border: 1px solid var(--border-soft); border-radius: var(--radius); }
.tex .swatch { width: 56px; height: 56px; flex: none; }
.tex dl.kv { margin-top: 4px; }
.rules { display: flex; flex-direction: column; }
.rules .rule { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--border-soft); font-size: 13px; }
.rules .rule .num { margin-left: auto; color: var(--text); }
.rules .rule .muted { font-size: 12px; }
.up-steps { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.up-steps li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 8px; }
.up-steps li > b { color: var(--text-dim); font-weight: 400; }
.up-steps code { font-size: 12px; color: var(--text-muted); }
@media (max-width: 1100px) { .cat-layout { grid-template-columns: minmax(0, 1fr); } }
.cat-detail > .segmented { align-self: flex-start; }
.cat-detail .table td.num { white-space: nowrap; }
.cat-detail .table td.num .cat-rule { white-space: normal; }
.cat-tools { min-width: 0; }
.cat-tools .segmented { max-width: 100%; overflow-x: auto; }
.cat-tools .segmented button { flex: none; white-space: nowrap; }
#imp-report:not([hidden]) { display: flex; flex-direction: column; gap: 8px; }
.field select { color: var(--text); }
.rules .rule .rule-act { margin-left: auto; display: flex; gap: 2px; }
.rules .rule .rule-act .icon-btn:disabled { opacity: .3; cursor: default; }
.rules .rule .muted { margin-left: 4px; }
.rule-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
.rule-form select, .rule-form input { height: 30px; padding: 0 8px; background: var(--well); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12px; color: var(--text); }
.rule-form select:focus-visible, .rule-form input:focus-visible { outline: 0; border-color: var(--accent); }
.rule-form select { max-width: 100%; }

/* Импорт .rvt (cabinet.html, rvt-import.js, D-051): широкое рабочее окно — план, развёртка, таблица фасадов */
dialog.dlg-wide { width: min(1080px, 100% - 32px); }
.rvt-result { display: flex; flex-direction: column; gap: 14px; }
.rvt-views { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; }
.rvt-view { margin: 0; display: flex; flex-direction: column; background: var(--well); min-width: 0; }
.rvt-view figcaption { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border-soft); background: var(--panel); font-size: 12px; color: var(--text-muted); min-height: 33px; }
.rvt-cap .num { font-variant-numeric: tabular-nums; color: var(--text-primary); }
.rvt-svg { display: block; width: 100%; height: 260px; }
.rvt-wall { stroke: var(--text-muted); stroke-linecap: square; cursor: pointer; }
@media (hover: hover) { .rvt-wall:hover { stroke: var(--text); } }
.rvt-wall.is-selected { stroke: var(--accent); }
.rvt-face { fill: var(--panel-2); stroke: var(--text-muted); stroke-linejoin: round; }
.rvt-view-3d { grid-column: 1 / -1; }
.rvt-svg-3d { height: 340px; cursor: grab; touch-action: none; user-select: none; }
.rvt-svg-3d.is-dragging { cursor: grabbing; }
.rvt-3d-face { fill: var(--panel-2); stroke: var(--text-muted); stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-width: 1px; cursor: pointer; }
.rvt-3d-face.is-back { fill: var(--panel); }
.rvt-3d-face.is-selected { stroke: var(--accent); fill: color-mix(in srgb, var(--accent) 14%, var(--panel-2)); }
.rvt-opening { fill: none; stroke: var(--guide); stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; stroke-width: 1px; }
.rvt-table { max-height: 240px; overflow-y: auto; }
.rvt-table thead th { position: sticky; top: 0; background: var(--panel); }
.rvt-table td.num { font-variant-numeric: tabular-nums; }
.rvt-table tbody tr { cursor: pointer; }
.rvt-table tbody tr.is-selected td { background: var(--hover); }
.rvt-table tbody tr.is-selected td:first-child { box-shadow: inset 2px 0 0 var(--accent); padding-left: 10px; }
.rvt-table tbody tr:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
.rvt-warn summary { cursor: pointer; font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.rvt-warn summary:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.rvt-warn .log { margin-top: 10px; }
.rvt-warn .log li { display: block; }
.dlg-foot .btn:disabled { opacity: .45; cursor: default; }
@media (max-width: 760px) {
  .rvt-views { grid-template-columns: 1fr; }
  .rvt-svg { height: 200px; } .rvt-svg-3d { height: 280px; }
}

/* Вход и приглашение (login.html, join.html, D-052) */
.auth-wrap { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 32px 16px; }
.auth-card { width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 22px; }
.auth-card h1 { font-size: 20px; font-weight: 500; margin-top: 4px; }
.auth-card .btn-lg { justify-content: center; }
.auth-card .btn:disabled { opacity: .5; cursor: progress; }
.auth-note { font-size: 12px; color: var(--text-dim); line-height: 1.55; }
.auth-err { font-size: 12px; color: var(--danger); line-height: 1.5; }

/* Кабинет на данных (cabinet.html, project.html, D-052) */
.search input { background: none; border: 0; outline: 0; font: inherit; color: var(--text); width: 100%; min-width: 0; }
.search:focus-within { border-color: var(--accent); }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.proj .thumb img { width: 100%; height: 100%; display: block; object-fit: contain; }
.thumb-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-dim); font-size: 11px; }
.thumb-empty svg { width: 22px; height: 22px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-muted); text-align: center; cursor: pointer; font-size: 12px; transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop svg { width: 22px; height: 22px; color: var(--text-dim); }
.drop b { font-weight: 500; color: var(--text); font-size: 13px; overflow-wrap: anywhere; }
.drop.is-over, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.drop.has-file { border-style: solid; }
.drop[hidden] { display: none; }
.opt:disabled { opacity: .5; cursor: default; }
.secret { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--text-muted); }
.set-row { display: flex; align-items: flex-start; gap: 16px; justify-content: space-between; }
.set-row b { font-weight: 500; font-size: 13px; }
.table tr.is-off td { color: var(--text-dim); }
.rvt-hint { font-size: 11px; color: var(--text-dim); }
.rvt-views.is-client .rvt-svg-3d { height: min(62vh, 560px); }
.proj-head-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; color: var(--text-muted); }
.proj-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 16px; text-align: center; color: var(--text-muted); font-size: 12px; }
.proj-empty svg { width: 28px; height: 28px; color: var(--text-dim); }
@media (max-width: 760px) { .field-2 { grid-template-columns: 1fr; } .rvt-hint { display: none; } }
.dlg-body[hidden], .log[hidden] { display: none; }
#filter { max-width: 100%; overflow-x: auto; scrollbar-width: none; } #filter button { flex: none; }
.auth-card[hidden], .drop[hidden], .proj-empty[hidden] { display: none; }
.btn[hidden], .secret[hidden], .tag[hidden] { display: none; }
