/* Вайб Коворк — единая система стилей на токенах платформы (--vm-*).
   Без внешних шрифтов и CDN (#351), без цветного glow и градиентов-слопа.
   Отступы у панелей — поимённо (#608), контейнерам z-index без нужды не даём (#633). */

:root {
  --vm-bg: #F4F3F7; --vm-surface: #FFFFFF; --vm-surface-2: #FBFAFD; --vm-elev: #EFEDF5;
  --vm-line: #E6E3EE; --vm-line-2: #D9D5E3;
  --vm-ink: #14101F; --vm-ink-soft: #443E56; --vm-muted: #5E5A6B; --vm-faint: #8B8797;
  --vm-action: #7C3AED; --vm-action-hover: #6D28D9; --vm-action-soft: #F1EBFE; --vm-action-ring: rgba(124,58,237,.28);
  --vm-lime: #C9FF5C; --vm-lime-ink: #3F5B00; --vm-lime-soft: #F1FFD0;
  --vm-err: #D92D20; --vm-err-soft: #FEE8E5; --vm-ok: #067647; --vm-ok-soft: #DDF5E8; --vm-warn: #B54708; --vm-warn-soft: #FEF0D9; --vm-info: #3538CD; --vm-info-soft: #E6E7FB;
  --r-1: 8px; --r-2: 12px; --r-3: 16px; --r-4: 22px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-h: 'Golos Text', 'Inter', system-ui, sans-serif;
  --side-w: 272px; --aside-w: 340px; --top-h: 60px;
  --shadow-1: 0 1px 2px rgba(20,16,31,.05), 0 0 0 1px var(--vm-line);
  --shadow-2: 0 8px 28px rgba(20,16,31,.10), 0 0 0 1px var(--vm-line);
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --vm-bg: #131019; --vm-surface: #1B1724; --vm-surface-2: #201B2B; --vm-elev: #262031;
    --vm-line: #2E2839; --vm-line-2: #3A3347;
    --vm-ink: #F3F0FA; --vm-ink-soft: #CFC8DC; --vm-muted: #A59EB4; --vm-faint: #7C7590;
    --vm-action: #9A6BFF; --vm-action-hover: #B08CFF; --vm-action-soft: #2A2140; --vm-action-ring: rgba(154,107,255,.35);
    --vm-lime-soft: #26301A; --vm-lime-ink: #C9FF5C;
    --vm-err-soft: #3A1E1C; --vm-ok-soft: #173126; --vm-warn-soft: #3A2A14; --vm-info-soft: #1F2140;
    --shadow-1: 0 1px 2px rgba(0,0,0,.3), 0 0 0 1px var(--vm-line);
    --shadow-2: 0 8px 28px rgba(0,0,0,.45), 0 0 0 1px var(--vm-line);
  }
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cw { margin:0; background:var(--vm-bg); color:var(--vm-ink); font:15px/1.5 var(--font); -webkit-font-smoothing:antialiased; }
[x-cloak] { display:none !important; }
a { color: var(--vm-action); text-decoration: none; }
a:hover { color: var(--vm-action-hover); }
h1,h2,h3,h4 { font-family: var(--font-h); font-weight: 600; letter-spacing: -.01em; margin: 0; color: var(--vm-ink); }
h1 { font-size: 24px; line-height: 1.2; } h2 { font-size: 19px; line-height: 1.25; } h3 { font-size: 16px; }
p { margin: 0 0 var(--s-3); }
small, .cw-muted { color: var(--vm-muted); }
.cw-faint { color: var(--vm-faint); }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--vm-action-soft); }

/* ---------- каркас ---------- */
.cw-shell { min-height: 100vh; min-height: 100dvh; }
.cw-side { position: fixed; top: 0; left: 0; bottom: 0; width: var(--side-w); background: var(--vm-surface); border-right: 1px solid var(--vm-line); display: flex; flex-direction: column; padding-top: var(--s-4); padding-bottom: var(--s-4); z-index: 40; transform: translateX(0); transition: transform .25s var(--ease); }
.cw-side__top { display: flex; align-items: center; justify-content: space-between; padding-left: var(--s-5); padding-right: var(--s-4); margin-bottom: var(--s-4); }
.cw-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-h); font-weight: 700; font-size: 17px; color: var(--vm-ink); }
.cw-logo img { border-radius: 8px; }
.cw-side__close { display: none; }
.cw-nav { flex: 1; overflow-y: auto; padding-left: var(--s-3); padding-right: var(--s-3); }
.cw-nav__a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-2); color: var(--vm-ink-soft); font-weight: 500; transition: background .15s, color .15s; }
.cw-nav__a:hover { background: var(--vm-elev); color: var(--vm-ink); }
.cw-nav__a.is-active { background: var(--vm-action-soft); color: var(--vm-action); }
.cw-nav__a .cw-ic { flex: none; opacity: .85; }
.cw-nav__sep { height: 1px; background: var(--vm-line); margin-top: var(--s-2); margin-bottom: var(--s-2); margin-left: 12px; margin-right: 12px; }
.cw-side__bottom { padding-left: var(--s-4); padding-right: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--vm-line); }
.cw-user { display: flex; align-items: center; gap: 10px; }
.cw-user__ava { width: 36px; height: 36px; border-radius: 50%; background: var(--vm-action-soft); color: var(--vm-action); display: grid; place-items: center; font-weight: 700; }
.cw-user__meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cw-user__meta b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-user__meta small { font-size: 12px; }
.cw-side__lk { display: inline-block; margin-top: var(--s-3); font-size: 13px; color: var(--vm-muted); }
.cw-side__backdrop { display: none; }

.cw-wsswitch { position: relative; margin-left: var(--s-3); margin-right: var(--s-3); margin-bottom: var(--s-3); }
.cw-wsswitch__btn { width: 100%; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--vm-line); border-radius: var(--r-2); background: var(--vm-surface-2); cursor: pointer; text-align: left; }
.cw-wsswitch__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vm-lime); box-shadow: 0 0 0 3px var(--vm-lime-soft); flex: none; }
.cw-wsswitch__name { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-wsswitch__menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--vm-surface); border-radius: var(--r-2); box-shadow: var(--shadow-2); padding: 6px; z-index: 5; max-height: 60vh; overflow: auto; }
.cw-wsswitch__item { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: var(--r-1); cursor: pointer; text-align: left; color: var(--vm-ink); }
.cw-wsswitch__item:hover { background: var(--vm-elev); }
.cw-wsswitch__item.is-current { background: var(--vm-action-soft); color: var(--vm-action); }
.cw-wsswitch__item small { color: var(--vm-muted); font-size: 12px; }
.cw-wsswitch__new { color: var(--vm-action); font-weight: 600; }

.cw-main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.cw-top { height: var(--top-h); display: flex; align-items: center; gap: var(--s-3); padding-left: var(--s-8); padding-right: var(--s-8); background: var(--vm-bg); position: sticky; top: 0; z-index: 20; }
.cw-top__title { font-size: 22px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-top__right { display: flex; align-items: center; gap: var(--s-2); }
.cw-top__burger { display: none; }
.cw-body { flex: 1; display: grid; grid-template-columns: minmax(0,1fr); padding-left: var(--s-8); padding-right: var(--s-8); padding-bottom: var(--s-10); gap: var(--s-6); }
.cw-body.has-aside { grid-template-columns: minmax(0,1fr) var(--aside-w); }
.cw-content { min-width: 0; }
.cw-aside { min-width: 0; }

.cw-bottomnav { display: none; }

/* ---------- атомы ---------- */
.cw-iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--vm-line); border-radius: var(--r-2); background: var(--vm-surface); cursor: pointer; color: var(--vm-ink-soft); }
.cw-iconbtn:hover { background: var(--vm-elev); }
.cw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-2); border: 1px solid transparent; font-weight: 600; cursor: pointer; transition: background .15s, transform .1s; white-space: nowrap; }
.cw-btn:active { transform: translateY(1px); }
.cw-btn--primary { background: var(--vm-action); color: #fff; }
.cw-btn--primary:hover { background: var(--vm-action-hover); color: #fff; }
.cw-btn--lime { background: var(--vm-lime); color: var(--vm-lime-ink); }
.cw-btn--ghost { background: var(--vm-surface); border-color: var(--vm-line); color: var(--vm-ink); }
.cw-btn--ghost:hover { background: var(--vm-elev); }
.cw-btn--soft { background: var(--vm-action-soft); color: var(--vm-action); }
.cw-btn--danger { background: var(--vm-err-soft); color: var(--vm-err); }
.cw-btn--sm { padding: 6px 10px; font-size: 13px; border-radius: var(--r-1); }
.cw-btn[disabled] { opacity: .5; cursor: not-allowed; }
.cw-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--vm-surface); border: 1px solid var(--vm-line); color: var(--vm-ink-soft); }
.cw-pill--wallet { color: var(--vm-ink); }
.cw-pill--seats.is-trial { background: var(--vm-info-soft); color: var(--vm-info); border-color: transparent; }
.cw-pill--seats.is-active { background: var(--vm-ok-soft); color: var(--vm-ok); border-color: transparent; }
.cw-pill--seats.is-grace { background: var(--vm-warn-soft); color: var(--vm-warn); border-color: transparent; }
.cw-pill--seats.is-paused { background: var(--vm-err-soft); color: var(--vm-err); border-color: transparent; }
.cw-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--vm-elev); color: var(--vm-ink-soft); }
.cw-tag--ok { background: var(--vm-ok-soft); color: var(--vm-ok); }
.cw-tag--warn { background: var(--vm-warn-soft); color: var(--vm-warn); }
.cw-tag--err { background: var(--vm-err-soft); color: var(--vm-err); }
.cw-tag--info { background: var(--vm-info-soft); color: var(--vm-info); }
.cw-tag--action { background: var(--vm-action-soft); color: var(--vm-action); }
.cw-tag--lime { background: var(--vm-lime-soft); color: var(--vm-lime-ink); }

.cw-card { background: var(--vm-surface); border-radius: var(--r-3); box-shadow: var(--shadow-1); padding: var(--s-5); min-width: 0; }
/* Дети grid/flex по умолчанию min-width:auto — длинный nowrap внутри растягивал
   карточку за экран телефона (замер: карточка 879px при экране 393). */
.cw-grid > *, .cw-stack > *, .cw-row > *, .cw-list__i > *, .cw-body > * { min-width: 0; }
.cw-input, .cw-select, .cw-textarea { min-width: 0; max-width: 100%; }
.cw-card--tight { padding: var(--s-4); }
.cw-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.cw-card__head h2 { font-size: 17px; }
.cw-grid { display: grid; gap: var(--s-4); }
.cw-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.cw-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cw-grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.cw-stack { display: flex; flex-direction: column; gap: var(--s-4); }
.cw-row { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.cw-row--between { justify-content: space-between; }
.cw-section { margin-bottom: var(--s-6); }
.cw-section__title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--s-3); }
.cw-section__title h2 { font-size: 18px; }

.cw-input, .cw-select, .cw-textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--vm-line-2); border-radius: var(--r-2); background: var(--vm-surface); color: var(--vm-ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.cw-input:focus, .cw-select:focus, .cw-textarea:focus { border-color: var(--vm-action); box-shadow: 0 0 0 3px var(--vm-action-ring); }
.cw-textarea { resize: vertical; min-height: 96px; }
.cw-label { display: block; font-size: 13px; font-weight: 600; color: var(--vm-ink-soft); margin-bottom: 6px; }
.cw-field { margin-bottom: var(--s-4); }
.cw-help { font-size: 12.5px; color: var(--vm-muted); margin-top: 6px; }
.cw-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.cw-switch input { width: 18px; height: 18px; accent-color: var(--vm-action); }

.cw-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cw-table th { text-align: left; font-weight: 600; color: var(--vm-muted); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--vm-line); }
.cw-table td { padding: 10px; border-bottom: 1px solid var(--vm-line); vertical-align: middle; }
.cw-table tr:last-child td { border-bottom: 0; }
.cw-table--wrap { overflow-x: auto; }

.cw-empty { text-align: center; padding: var(--s-10) var(--s-4); color: var(--vm-muted); }
.cw-empty h3 { margin-bottom: var(--s-2); color: var(--vm-ink); }
.cw-empty img { width: 120px; height: 120px; object-fit: contain; margin-bottom: var(--s-3); }

.cw-banner { padding: 12px var(--s-8); font-size: 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cw-banner--warn { background: var(--vm-warn-soft); color: var(--vm-warn); }
.cw-banner--ok { background: var(--vm-ok-soft); color: var(--vm-ok); }
.cw-banner--err { background: var(--vm-err-soft); color: var(--vm-err); }
.cw-banner a { font-weight: 600; text-decoration: underline; color: inherit; }

.cw-toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 90; }
.cw-toast { background: var(--vm-ink); color: #fff; padding: 10px 14px; border-radius: var(--r-2); font-size: 14px; box-shadow: var(--shadow-2); max-width: 360px; animation: cwIn .2s var(--ease); }
.cw-toast--err { background: var(--vm-err); }
.cw-toast--ok { background: var(--vm-ok); }
@keyframes cwIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.cw-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--s-4); background: rgba(20,16,31,.45); }
.cw-modal__box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--vm-surface); border-radius: var(--r-4); padding: var(--s-6); box-shadow: var(--shadow-2); }
.cw-modal__box--wide { width: min(760px, 100%); }
.cw-modal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s-4); }

.cw-skeleton { background: linear-gradient(90deg, var(--vm-elev), var(--vm-surface-2), var(--vm-elev)); background-size: 200% 100%; animation: cwSk 1.2s infinite; border-radius: var(--r-1); min-height: 14px; }
@keyframes cwSk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- маскоты и карточки профессий ---------- */
.cw-mascot { width: 56px; height: 56px; border-radius: var(--r-2); object-fit: cover; background: var(--vm-elev); }
.cw-prof { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-3); background: var(--vm-surface); box-shadow: var(--shadow-1); cursor: pointer; transition: box-shadow .15s, transform .15s; }
.cw-prof:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.cw-prof.is-on { outline: 2px solid var(--vm-action); }
.cw-prof__body { min-width: 0; }
.cw-prof__body b { display: block; font-family: var(--font-h); font-size: 15px; }
.cw-prof__body small { display: block; color: var(--vm-muted); font-size: 13px; line-height: 1.35; margin-top: 2px; }
.cw-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--vm-line); background: var(--vm-surface); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.cw-chip img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.cw-chip.is-on { background: var(--vm-action-soft); border-color: var(--vm-action); color: var(--vm-action); }
.cw-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.cw-chips--scroll { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }

/* ---------- дашборд ---------- */
.cw-stat { padding: var(--s-4); border-radius: var(--r-3); background: var(--vm-surface); box-shadow: var(--shadow-1); }
.cw-stat__n { font-family: var(--font-h); font-size: 28px; font-weight: 700; line-height: 1; }
.cw-stat__l { font-size: 13px; color: var(--vm-muted); margin-top: 6px; }
.cw-bars { display: flex; align-items: flex-end; gap: 3px; height: 96px; }
.cw-bars__b { flex: 1; min-width: 4px; background: var(--vm-action-soft); border-radius: 3px 3px 0 0; position: relative; transition: height .3s var(--ease); }
.cw-bars__b.is-hi { background: var(--vm-action); }
.cw-bars__b[title]:hover { background: var(--vm-lime); }
.cw-door { display: flex; gap: var(--s-3); align-items: center; padding: var(--s-4); border-radius: var(--r-3); background: var(--vm-surface); box-shadow: var(--shadow-1); color: var(--vm-ink); transition: box-shadow .15s; }
.cw-door:hover { box-shadow: var(--shadow-2); color: var(--vm-ink); }
.cw-door__ic { width: 44px; height: 44px; border-radius: var(--r-2); background: var(--vm-action-soft); color: var(--vm-action); display: grid; place-items: center; flex: none; }
.cw-door b { display: block; font-family: var(--font-h); }
.cw-door small { color: var(--vm-muted); }
.cw-list { display: flex; flex-direction: column; }
.cw-list__i { display: flex; align-items: center; gap: var(--s-3); padding: 10px 0; border-bottom: 1px solid var(--vm-line); color: var(--vm-ink); }
.cw-list__i:last-child { border-bottom: 0; }
.cw-list__i .cw-ic { color: var(--vm-muted); flex: none; }
.cw-list__t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-list__m { font-size: 12.5px; color: var(--vm-muted); white-space: nowrap; }

/* ---------- экран задачи ---------- */
.cw-task { display: flex; flex-direction: column; min-height: calc(100vh - var(--top-h) - var(--s-10)); }
.cw-feed { flex: 1; display: flex; flex-direction: column; gap: var(--s-3); padding-bottom: var(--s-4); }
.cw-msg { max-width: 820px; }
.cw-msg--user { align-self: flex-end; background: var(--vm-action-soft); color: var(--vm-ink); padding: 12px 16px; border-radius: var(--r-3) var(--r-3) 4px var(--r-3); white-space: pre-wrap; word-break: break-word; }
.cw-msg--user .cw-att { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cw-msg--ai { background: var(--vm-surface); box-shadow: var(--shadow-1); padding: 14px 18px; border-radius: var(--r-3); }
.cw-msg--ai .cw-md h1, .cw-msg--ai .cw-md h2, .cw-msg--ai .cw-md h3 { margin: 12px 0 6px; }
.cw-msg--ai .cw-md h1 { font-size: 19px; } .cw-msg--ai .cw-md h2 { font-size: 17px; } .cw-msg--ai .cw-md h3 { font-size: 15px; }
.cw-md p { margin: 0 0 8px; } .cw-md ul, .cw-md ol { margin: 4px 0 8px 20px; padding: 0; } .cw-md li { margin: 2px 0; }
.cw-md code { background: var(--vm-elev); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.cw-md pre { background: var(--vm-elev); padding: 10px 12px; border-radius: var(--r-2); overflow-x: auto; font-size: 13px; }
.cw-md table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 6px 0 10px; }
.cw-md td, .cw-md th { border: 1px solid var(--vm-line); padding: 6px 8px; }
.cw-md a { text-decoration: underline; }
.cw-think { color: var(--vm-muted); font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.cw-think::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--vm-action); animation: cwPulse 1s infinite; }
@keyframes cwPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
.cw-steps { display: flex; flex-direction: column; gap: 6px; padding-left: 4px; }
.cw-step { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--vm-ink-soft); }
.cw-step__dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--vm-elev); color: var(--vm-muted); flex: none; margin-top: 1px; }
.cw-step.is-done .cw-step__dot { background: var(--vm-lime-soft); color: var(--vm-lime-ink); }
.cw-step.is-run .cw-step__dot { background: var(--vm-action-soft); color: var(--vm-action); }
.cw-step__body { min-width: 0; }
.cw-step__body b { font-weight: 600; }
.cw-step__body small { display: block; color: var(--vm-muted); }
.cw-step__cost { margin-left: auto; font-size: 12.5px; color: var(--vm-muted); white-space: nowrap; }
.cw-sources { display: flex; gap: 6px; flex-wrap: wrap; }
.cw-sources a { font-size: 12.5px; padding: 4px 8px; border-radius: 6px; background: var(--vm-elev); color: var(--vm-ink-soft); max-width: 240px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-notice { padding: 12px 14px; border-radius: var(--r-2); background: var(--vm-info-soft); color: var(--vm-info); font-size: 14px; }
.cw-notice--warn { background: var(--vm-warn-soft); color: var(--vm-warn); }
.cw-notice--err { background: var(--vm-err-soft); color: var(--vm-err); }
.cw-notice .cw-btn { margin-top: 8px; }
.cw-summary { font-size: 12.5px; color: var(--vm-muted); display: flex; gap: 12px; flex-wrap: wrap; }

.cw-composer { position: sticky; bottom: 0; background: var(--vm-bg); padding-top: var(--s-3); padding-bottom: var(--s-3); z-index: 10; }
.cw-composer__box { background: var(--vm-surface); border: 1px solid var(--vm-line-2); border-radius: var(--r-4); padding: 12px 14px; box-shadow: var(--shadow-1); transition: border-color .15s, box-shadow .15s; }
.cw-composer__box:focus-within { border-color: var(--vm-action); box-shadow: 0 0 0 3px var(--vm-action-ring); }
.cw-composer textarea { width: 100%; border: 0; outline: 0; background: transparent; resize: none; min-height: 48px; max-height: 40vh; line-height: 1.5; font-size: 15.5px; }
.cw-composer__bar { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cw-composer__bar .cw-iconbtn { border-color: transparent; background: transparent; }
.cw-composer__send { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; background: var(--vm-action); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; }
.cw-composer__send[disabled] { opacity: .45; cursor: default; }
.cw-composer__files { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cw-att { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px; background: var(--vm-elev); font-size: 12.5px; }
.cw-att button { border: 0; background: none; cursor: pointer; color: var(--vm-muted); padding: 0; line-height: 1; }
.cw-cmdmenu { position: absolute; left: 0; right: 0; bottom: calc(100% + 6px); background: var(--vm-surface); border-radius: var(--r-2); box-shadow: var(--shadow-2); padding: 6px; max-height: 260px; overflow: auto; z-index: 5; }
.cw-cmdmenu button { display: block; width: 100%; text-align: left; padding: 8px 10px; border: 0; background: none; border-radius: var(--r-1); cursor: pointer; }
.cw-cmdmenu button:hover, .cw-cmdmenu button.is-hi { background: var(--vm-elev); }
.cw-cmdmenu b { color: var(--vm-action); }
.cw-cmdmenu small { display: block; color: var(--vm-muted); }
.cw-task__meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: var(--s-3); }
.cw-task__title { border: 0; background: transparent; font: 600 22px/1.2 var(--font-h); color: var(--vm-ink); width: 100%; outline: none; padding: 0; }
.cw-doors { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-3); margin-bottom: var(--s-5); }
.cw-hero { text-align: center; padding-top: var(--s-10); padding-bottom: var(--s-6); }
.cw-hero h2 { font-size: 26px; margin-bottom: var(--s-2); }
.cw-hero p { color: var(--vm-muted); max-width: 560px; margin-left: auto; margin-right: auto; }
.cw-art { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: var(--r-2); background: var(--vm-surface-2); border: 1px solid var(--vm-line); }
.cw-art__ic { width: 36px; height: 36px; border-radius: 8px; background: var(--vm-action-soft); color: var(--vm-action); display: grid; place-items: center; flex: none; }
.cw-art__t { flex: 1; min-width: 0; font-size: 13.5px; }
.cw-art__t b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-art__t small { color: var(--vm-muted); }
.cw-art img { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; }
.cw-aside__box { position: sticky; top: calc(var(--top-h) + 8px); display: flex; flex-direction: column; gap: var(--s-3); }

/* ---------- лендинг ---------- */
.cw-land { max-width: 1100px; margin: 0 auto; padding-left: var(--s-5); padding-right: var(--s-5); }
.cw-land__top { display: flex; align-items: center; justify-content: space-between; padding-top: var(--s-5); padding-bottom: var(--s-5); }
.cw-land__hero { padding-top: var(--s-12); padding-bottom: var(--s-10); display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--s-10); align-items: center; }
.cw-land__hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.02em; }
.cw-land__hero .lead { font-size: 18px; color: var(--vm-ink-soft); margin-top: var(--s-4); max-width: 560px; }
.cw-land__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: var(--s-6); }
.cw-land__facts { display: flex; gap: var(--s-6); flex-wrap: wrap; margin-top: var(--s-6); }
.cw-land__facts b { font-family: var(--font-h); font-size: 24px; display: block; }
.cw-land__facts small { color: var(--vm-muted); }
.cw-land h2.sec { font-size: clamp(24px, 3vw, 34px); margin-bottom: var(--s-5); letter-spacing: -.015em; }
.cw-land section { padding-top: var(--s-10); padding-bottom: var(--s-10); border-top: 1px solid var(--vm-line); }
.cw-cmp { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.cw-cmp__col { padding: var(--s-5); border-radius: var(--r-3); background: var(--vm-surface); box-shadow: var(--shadow-1); }
.cw-cmp__col.is-us { outline: 2px solid var(--vm-lime); }
.cw-cmp__col h3 { margin-bottom: var(--s-3); }
.cw-cmp__col li { margin: 6px 0; padding-left: 22px; position: relative; }
.cw-cmp__col li::before { content: ''; position: absolute; left: 0; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--vm-elev); }
.cw-cmp__col.is-us li::before { background: var(--vm-lime); }
.cw-cmp__price { font-family: var(--font-h); font-size: 28px; font-weight: 700; margin: 8px 0 2px; }
.cw-calc { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); align-items: center; }
.cw-calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.cw-calc__out div { padding: var(--s-4); border-radius: var(--r-2); background: var(--vm-surface); box-shadow: var(--shadow-1); }
.cw-calc__out b { display: block; font-family: var(--font-h); font-size: 22px; }
.cw-calc input[type=range] { width: 100%; accent-color: var(--vm-action); }
.cw-land__foot { padding-top: var(--s-6); padding-bottom: var(--s-8); font-size: 13px; color: var(--vm-muted); display: flex; gap: var(--s-4); flex-wrap: wrap; justify-content: space-between; }
.cw-devices { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.cw-devices div { padding: var(--s-4); border-radius: var(--r-3); background: var(--vm-surface); box-shadow: var(--shadow-1); }
.cw-devices b { display: block; font-family: var(--font-h); margin-top: 8px; }
.cw-devices .cw-ic { color: var(--vm-action); }

/* ---------- адаптив ---------- */
@media (max-width: 1200px) { .cw-body.has-aside { grid-template-columns: minmax(0,1fr); } .cw-aside { order: -1; } .cw-aside__box { position: static; } .cw-grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 1000px) { .cw-land__hero { grid-template-columns: 1fr; } .cw-cmp, .cw-calc { grid-template-columns: 1fr; } .cw-devices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) {
  :root { --side-w: 0px; }
  .cw-side { width: 288px; transform: translateX(-100%); z-index: 60; }
  .cw-side.is-open { transform: translateX(0); }
  .cw-side__close { display: inline-grid; }
  .cw-side__backdrop { display: block; position: fixed; inset: 0; background: rgba(20,16,31,.45); z-index: 55; }
  .cw-main { margin-left: 0; }
  .cw-top { padding-left: var(--s-4); padding-right: var(--s-4); }
  .cw-top__burger { display: inline-grid; }
  .cw-top__title { font-size: 18px; }
  .cw-body { padding-left: var(--s-4); padding-right: var(--s-4); padding-bottom: calc(var(--s-12) + 56px); }
  .cw-grid--2, .cw-grid--3, .cw-grid--4 { grid-template-columns: 1fr; }
  .cw-doors { grid-template-columns: 1fr; }
  .cw-bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 56px; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--vm-surface); border-top: 1px solid var(--vm-line); z-index: 50; }
  .cw-bottomnav a, .cw-bottomnav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; color: var(--vm-muted); border: 0; background: none; }
  .cw-bottomnav .is-active { color: var(--vm-action); }
  .cw-bottomnav__new .cw-ic { background: var(--vm-action); color: #fff; border-radius: 50%; padding: 4px; width: 26px; height: 26px; }
  .cw-composer { bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .cw-pill--seats { display: none; }
  .cw-banner { padding-left: var(--s-4); padding-right: var(--s-4); }
  .cw-hero { padding-top: var(--s-6); }
  .cw-hero h2 { font-size: 22px; }
  .cw-land__hero h1 { font-size: 30px; }
  .cw-land section { padding-top: var(--s-8); padding-bottom: var(--s-8); }
  .cw-calc__out { grid-template-columns: 1fr; }
}
