/* Каркас сервисного портала: боковое меню, командный центр, инструменты. Поверх app.css. */
:root {
  --navy: #0B1620;
  --navy-2: #13222E;
  --cyan: #19B5C9;
  --violet: #7C5CFF;
  --mint: #34D399;
  --radius-lg: 20px;
  --shadow-lift: 0 18px 40px rgba(16, 40, 56, .12);
}
body { background: #F1F4F6; }
.i { width: 16px; height: 16px; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; }
.btn.big { width: 100%; padding: 12px 16px; font-size: 15px; font-weight: 600; margin-top: 18px; }
.btn.big .i { width: 18px; height: 18px; }
.link-btn { color: var(--signal-strong); font-size: 13px; text-decoration: underline; text-underline-offset: 2px; }
.field {
  font: inherit; font-size: 14px; width: 100%; border: 1.5px solid var(--hair); border-radius: 10px; padding: 9px 11px; background: #fff;
}
.field:focus { border-color: var(--signal); outline: none; box-shadow: 0 0 0 4px rgba(14, 110, 134, .12); }
.logo {
  width: 36px; height: 36px; border-radius: 11px; display: inline-grid; place-items: center; flex-shrink: 0;
  font-weight: 750; font-size: 17px; color: #fff; background: linear-gradient(135deg, var(--cyan), #0E6E86 55%, var(--violet));
  box-shadow: 0 6px 16px rgba(25, 181, 201, .3);
}
.logo.small { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }

/* Прокручиваемые полосы — контейнеры для абсолютных .sr-only внутри: иначе скрытые подписи растягивают страницу вбок */
.carousel, .brand-strip, .cc-intents, .cmp-wrap, .table-wrap, .role-tabs, .post-thumbs, .field-chips, .tabs { position: relative; }

/* ---------- каркас ---------- */
.shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.anon .shell { grid-template-columns: 1fr; }
.main-col { min-width: 0; }
.wrap { max-width: 1320px; }
.top { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.top-row { max-width: 1320px; }
.top .brand { display: none; align-items: center; gap: 8px; }
.burger { display: none; }
.mag svg { width: 18px; height: 18px; display: block; }
.mag { left: 12px; }
.search { border-radius: 12px; background: #F6F8FA; border-color: #E1E7EC; }
.search:focus { background: #fff; box-shadow: 0 0 0 4px rgba(14, 110, 134, .1); }
.assist-toggle { border-radius: 10px; background: linear-gradient(135deg, #0E6E86, #1597AE); border-color: transparent; }

.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  padding: 18px 12px 12px; background: var(--navy); color: #C9D6DF;
  background-image: radial-gradient(120% 50% at 0% 0%, rgba(25, 181, 201, .12), transparent 60%);
}
/* Официальный логотип из пресс-кита elittech.ru: белый — на тёмном фоне, серый — на светлом; пропорции не менять */
.brand-logo { display: block; height: auto; }
.side-brand { display: grid; gap: 6px; padding: 8px 10px 12px; color: #fff; text-decoration: none; }
.side-brand .brand-logo { width: 132px; }
.side-brand small { display: block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #7F95A4; }
.top .brand .brand-logo { width: 96px; }
.cc-brand { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.cc-logo { width: clamp(132px, 16vw, 176px); height: auto; }
.cc-brand-label {
  padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .22); font-size: 12.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: #9FC3D0;
}
.side-nav { display: grid; gap: 2px; }
.side-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #5F7686; margin: 16px 10px 5px; }
.side-label[hidden] { display: none; }
.side-link {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 10px;
  color: #C9D6DF; text-decoration: none; font-size: 14px; transition: background .15s, color .15s;
}
.side-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .8; }
.side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-link[aria-current] {
  background: linear-gradient(90deg, rgba(25, 181, 201, .22), rgba(25, 181, 201, .04)); color: #fff; box-shadow: inset 2px 0 0 var(--cyan);
}
.side-link[aria-current] svg { opacity: 1; color: #6FE3F1; }
.side-link[hidden] { display: none; }
.side-link:focus-visible { outline-color: var(--cyan); }
.side-count {
  margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 10px; text-align: center;
  background: var(--cyan); color: #04212A; font-size: 11.5px; font-weight: 700; line-height: 18px;
}
.side-count[hidden] { display: none; }
.side-link.soon { opacity: .5; cursor: default; }
.side-link.soon:hover { background: none; color: #C9D6DF; }
.side-link em {
  margin-left: auto; font-style: normal; font-size: 10.5px; padding: 0 6px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .2);
}
.side-ai {
  margin-top: auto; display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 12px; border-radius: 12px; color: #fff;
  font-weight: 600; font-size: 14px; background: linear-gradient(135deg, rgba(25, 181, 201, .28), rgba(124, 92, 255, .28));
  border: 1px solid rgba(255, 255, 255, .12);
}
.side-ai svg { width: 19px; height: 19px; color: #7FE8F4; }
.side-ai:hover { background: linear-gradient(135deg, rgba(25, 181, 201, .4), rgba(124, 92, 255, .4)); }
.side-ai kbd { margin-left: auto; font: 11px var(--mono); color: #A9C3CF; border: 1px solid rgba(255, 255, 255, .18); border-radius: 5px; padding: 1px 5px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 6px 2px; margin-top: 12px; border-top: 1px solid rgba(255, 255, 255, .08); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(135deg, #1D3342, #2C4B5E); color: #9FE6F0; font-weight: 650; font-size: 13px;
}
.side-user-text { flex: 1; min-width: 0; }
.side-user-text b { display: block; color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-text small { display: block; color: #7F95A4; font-size: 12px; }
.side-user .icon-btn { color: #9FB3C1; }
.side-user .icon-btn:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-backdrop { position: fixed; inset: 0; z-index: 45; background: rgba(4, 12, 18, .5); }

/* ---------- командный центр ---------- */
.cc-hero {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; padding: 46px 44px 26px;
  background: var(--navy); color: #E8F1F5; box-shadow: 0 24px 60px rgba(11, 22, 32, .22);
}
.cc-hero::before {
  content: ""; position: absolute; inset: -40%; z-index: -2; filter: blur(24px);
  background:
    radial-gradient(38% 34% at 18% 32%, rgba(25, 181, 201, .55), transparent 70%),
    radial-gradient(34% 40% at 82% 18%, rgba(124, 92, 255, .45), transparent 70%),
    radial-gradient(40% 36% at 62% 92%, rgba(52, 211, 153, .26), transparent 70%);
  animation: aurora 20s ease-in-out infinite alternate;
}
.cc-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(75% 80% at 50% 30%, #000, transparent);
  mask-image: radial-gradient(75% 80% at 50% 30%, #000, transparent);
}
@keyframes aurora { to { transform: translate3d(5%, -4%, 0) rotate(10deg); } }
.cc-kicker { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13.5px; color: #8FB4C3; }
.cc-kicker .i { color: #6FE3F1; }
.cc-kicker span:last-child::first-letter { text-transform: uppercase; }
.cc-kicker .sep { opacity: .5; }
.cc-hero h1 {
  margin-top: 10px; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.08; font-weight: 750; letter-spacing: -.035em;
  background: linear-gradient(92deg, #FFFFFF 10%, #BDEFF6 55%, #D4C9FF); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cc-sub { margin-top: 10px; max-width: 64ch; font-size: 16px; color: #A9C3CF; }
.cc-command {
  display: flex; align-items: center; gap: 4px; max-width: 860px; margin-top: 26px; padding: 7px 7px 7px 16px;
  border-radius: 18px; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .08); transition: border-color .2s, box-shadow .2s;
}
.cc-command:focus-within { border-color: rgba(95, 217, 232, .85); box-shadow: 0 0 0 5px rgba(25, 181, 201, .18), 0 20px 50px rgba(0, 0, 0, .28); }
.cc-lead { color: #6FE3F1; display: grid; }
.cc-lead .i { width: 20px; height: 20px; }
.cc-command input {
  flex: 1; min-width: 0; padding: 11px 6px; border: none; outline: none; background: transparent;
  color: #fff; font: inherit; font-size: 17px;
}
.cc-command input::placeholder { color: #86A3B1; }
.cc-command .icon-btn { color: #A9C3CF; width: 40px; height: 40px; border-radius: 11px; }
.cc-command .icon-btn .i { width: 19px; height: 19px; }
.cc-command .icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.cc-command .icon-btn:focus-visible, .cc-go:focus-visible, .intent:focus-visible { outline-color: #6FE3F1; }
.cc-go {
  height: 44px; padding: 0 20px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--cyan), #0E7F99); color: #fff; font-weight: 650; font-size: 15px;
  box-shadow: 0 8px 20px rgba(25, 181, 201, .35); transition: transform .15s, box-shadow .15s;
}
.cc-go:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(25, 181, 201, .45); }
.cc-intents { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.intent {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 13.5px;
  color: #DCEBF1; text-decoration: none; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
  transition: background .15s, transform .15s, border-color .15s;
}
.intent .i { color: #6FE3F1; }
.intent:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .25); transform: translateY(-1px); }
.cc-status {
  display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .09); font-size: 13px; color: #8FB4C3;
}
.cc-status b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.cc-ai { display: inline-flex; align-items: center; gap: 8px; color: #CFE9EF; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: pulse 2.2s infinite; }
.pulse-dot.off { background: #F5B94A; animation: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } }
.cc-hero.compact { padding: 36px 40px 30px; }
.cc-hero.compact h1 { font-size: clamp(26px, 3.4vw, 38px); }
.cc-msg { margin-top: 12px; font-size: 14px; color: #FFD9A8; }
.cc-msg:empty { display: none; }
.cc-msg a { color: #9FE6F0; }

/* ---------- секции главной ---------- */
.section { margin-top: 34px; }
.section-head { align-items: flex-end; margin-bottom: 14px; }
.section-head h2 { font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.section-head p { margin-top: 2px; }
.role-tabs { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: #E2E8EC; }
.role-tab { padding: 6px 13px; border-radius: 9px; font-size: 13px; color: var(--ink-soft); }
.role-tab[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(16, 40, 56, .12); }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.tool {
  grid-column: span 2; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 210px;
  padding: 20px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid #E1E7EC; color: inherit;
  text-decoration: none; text-align: left; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tool::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow, rgba(25, 181, 201, .12)), transparent 70%); pointer-events: none;
}
.tool:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: #B6D6DE; }
.tool.wide { grid-column: span 3; }
.tool[hidden] { display: none; }
.tool-ic {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 8px 18px rgba(16, 40, 56, .18);
}
.tool-ic .i, .tool-ic svg { width: 22px; height: 22px; }
.tool-tags { display: flex; flex-wrap: wrap; gap: 5px; position: absolute; top: 20px; right: 20px; }
.tool-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #F2F5F7; color: var(--ink-soft); }
.tool h3 { margin-top: 8px; font-size: 17.5px; font-weight: 650; letter-spacing: -.015em; }
.tool p { font-size: 13.5px; color: var(--ink-soft); max-width: 46ch; }
.tool-go { margin-top: auto; padding-top: 6px; display: inline-flex; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--signal-strong); }
.tool-go::after { content: "→"; transition: transform .2s; }
.tool:hover .tool-go::after { transform: translateX(4px); }
.mini-photos { display: flex; gap: 8px; margin: 4px 0; }
.mini-photos img { width: 58px; height: 58px; object-fit: contain; background: #fff; border: 1px solid #E6ECF0; border-radius: 12px; padding: 3px; }
.mini-table { display: grid; gap: 6px; width: min(260px, 100%); margin: 6px 0; }
.mini-table i { height: 9px; border-radius: 5px; background: linear-gradient(90deg, #DCE5EA, #EFF3F5); }
.mini-table i:first-child { width: 72%; background: linear-gradient(90deg, #0E6E86, var(--cyan)); }
.mini-table i:nth-child(3) { width: 86%; }

.bento-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.panel-card { background: var(--surface); border: 1px solid #E1E7EC; border-radius: var(--radius-lg); padding: 20px; }
.card-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.card-title h2 { font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.meter { margin-top: 16px; }
.meter-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.meter-top b { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter-top small { font-weight: 400; color: var(--ink-faint); }
.meter-bar { height: 8px; margin-top: 7px; border-radius: 5px; background: #EDF1F4; overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #0E6E86, var(--cyan)); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.kpi { padding: 12px 14px; border-radius: 14px; background: #F5F8FA; }
.kpi b { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 12.5px; color: var(--ink-soft); }
.timeline { margin-top: 8px; }
.timeline .feed-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.timeline .feed-meta a { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.timeline .feed-item:last-child { border-bottom: none; }

.carousel {
  display: flex; gap: 14px; max-width: 100%; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px 2px 10px; scrollbar-width: thin;
}
.carousel > * { flex: 0 0 calc((100% - 42px) / 4); min-width: 210px; scroll-snap-align: start; }
.car-nav { display: flex; gap: 6px; }
.car-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid #E1E7EC; color: var(--ink-soft); }
.car-btn:hover { border-color: var(--signal); color: var(--signal); }
.car-btn .i { width: 18px; height: 18px; }
.model-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid #E1E7EC; border-radius: 18px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.model-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.model-card-link { display: grid; gap: 4px; padding: 12px 12px 8px; color: inherit; text-decoration: none; flex: 1; }
.model-card .tile-img { aspect-ratio: 1 / 1; border-radius: 12px; margin-bottom: 6px; }
.model-card-actions { display: flex; border-top: 1px solid #EEF2F4; }
.model-card-actions > * {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 9px 6px;
  font-size: 12.5px; color: var(--ink-soft); text-decoration: none;
}
.model-card-actions > a { flex: 0 0 44px; }
.model-card-actions > * + * { border-left: 1px solid #EEF2F4; }
.model-card-actions > *:hover { background: var(--signal-weak); color: var(--signal-strong); }
.brand-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; }
.brand-pill {
  flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 14px;
  background: #fff; border: 1px solid #E1E7EC; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.brand-pill:hover { border-color: var(--signal); box-shadow: 0 6px 16px rgba(14, 110, 134, .1); }
.brand-pill img, .brand-mono { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; background: #fff; }
.brand-mono { display: grid; place-items: center; background: var(--signal-weak); color: var(--signal-strong); font-weight: 700; }
.brand-pill b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; }
.brand-pill small { display: block; font-size: 12px; color: var(--ink-soft); }
.cat-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cat-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px;
  background: #fff; border: 1px solid #E1E7EC; color: var(--ink); text-decoration: none;
}
.cat-pill span { font: 11.5px var(--mono); color: var(--ink-faint); }
.cat-pill:hover { border-color: var(--signal); color: var(--signal-strong); }
.roadmap { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.road { position: relative; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #E1E7EC; }
.road.next { background: linear-gradient(180deg, #FBFAFF, #fff); border-style: dashed; }
.road b { display: block; font-size: 14.5px; font-weight: 650; margin-top: 8px; }
.road p { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.road-state { display: inline-block; font-size: 11px; font-weight: 650; padding: 2px 9px; border-radius: 999px; }
.road-state.live { background: #E3F5EA; color: #1F6B43; }
.road-state.api { background: var(--signal-weak); color: var(--signal-strong); }
.road-state.next { background: #EFEAFE; color: #5B3FC4; }

/* ---------- страницы инструментов ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-kicker { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--signal); }
.page-head h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 750; letter-spacing: -.03em; margin-top: 4px; }
.page-lead { margin-top: 6px; max-width: 72ch; color: var(--ink-soft); font-size: 14.5px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; margin-right: 6px; }
.switch input {
  appearance: none; -webkit-appearance: none; position: relative; width: 38px; height: 22px; border-radius: 999px;
  background: #CBD5DC; cursor: pointer; transition: background .2s;
}
.switch input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s;
}
.switch input:checked { background: var(--signal); }
.switch input:checked::after { transform: translateX(16px); }
.picker-card { display: grid; gap: 8px; }
.picker { position: relative; max-width: 620px; }
.picker-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); display: grid; }
.picker-ic .i { width: 18px; height: 18px; }
.picker input {
  width: 100%; font: inherit; font-size: 15px; padding: 12px 14px 12px 40px; border-radius: 14px;
  border: 1.5px solid var(--hair); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.picker input:focus { border-color: var(--signal); outline: none; box-shadow: 0 0 0 4px rgba(14, 110, 134, .12); }
.picker input:disabled { background: #F4F6F8; }
.picker-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 25; list-style: none; padding: 6px;
  max-height: 380px; overflow-y: auto; background: #fff; border: 1px solid var(--hair); border-radius: 14px;
  box-shadow: 0 20px 44px rgba(16, 40, 56, .18);
}
.picker-list[hidden] { display: none; }
.picker-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border-radius: 10px; text-align: left; }
[aria-selected="true"] > .picker-opt, .picker-opt:hover { background: #EEF5F7; }
.picker-opt:disabled { opacity: .5; cursor: default; }
.picker-opt img, .picker-opt .ph, .sel-chip img, .sel-chip .ph {
  width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; border-radius: 9px; border: 1px solid #E6ECF0; background: #fff;
}
.ph { display: inline-block; background: linear-gradient(135deg, #EEF3F5, #F7F9FA) !important; }
.picker-opt b { display: block; font-size: 13.5px; font-weight: 550; }
.picker-opt small { font-size: 12px; color: var(--ink-soft); }
.picker-empty { padding: 12px; font-size: 13px; color: var(--ink-soft); }
.selected { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.selected:empty { display: none; }
.sel-chip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 4px 4px 4px; border-radius: 12px;
  background: #F6F8FA; border: 1px solid #E1E7EC; font-size: 13px;
}
.sel-chip img, .sel-chip .ph { width: 30px; height: 30px; border-radius: 8px; }
.sel-chip a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-chip a:hover { color: var(--signal-strong); text-decoration: underline; }
.sel-chip button { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-faint); flex-shrink: 0; }
.sel-chip button:hover { background: #FCE8E6; color: var(--stop); }
.sel-chip.big { width: 100%; padding: 8px; background: #fff; }
.sel-chip.big img, .sel-chip.big .ph { width: 52px; height: 52px; }
.sel-chip.big > span { flex: 1; min-width: 0; display: grid; }
.sel-chip.big small { color: var(--ink-soft); font-size: 12px; }

.cmp-wrap { margin-top: 16px; overflow-x: auto; background: #fff; border: 1px solid #E1E7EC; border-radius: var(--radius-lg); }
.cmp { width: 100%; min-width: calc(190px + var(--n) * 210px); border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.cmp th, .cmp td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid #EEF2F4; overflow-wrap: anywhere; }
.cmp thead th { vertical-align: bottom; border-bottom: 1px solid #E1E7EC; }
.cmp .key { position: sticky; left: 0; z-index: 1; width: 190px; min-width: 150px; background: #FAFBFC; color: var(--ink-soft); font-weight: 500; }
.cmp thead .key { background: #fff; }
.cmp-model { position: relative; display: grid; gap: 4px; }
.cmp-model a { color: var(--ink); text-decoration: none; }
.cmp-model a:hover b { color: var(--signal-strong); }
.cmp-model b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.cmp-model small { color: var(--ink-soft); }
.cmp-photo img, .cmp-photo .ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 12px; border: 1px solid #EEF2F4; background: #fff; margin-bottom: 6px; }
.cmp-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.cmp-remove {
  position: absolute; top: 6px; right: 6px; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .92); border: 1px solid #E1E7EC; color: var(--ink-faint);
}
.cmp-remove:hover { color: var(--stop); border-color: #E8BDB9; }
.cmp tr.group td { padding: 14px 14px 8px; background: #F2F6F8; border-bottom: 1px solid #E1E7EC; }
.cmp tr.group span { position: sticky; left: 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.cmp tr.diff td { background: #FFFBEB; }
.cmp tr.diff .key { background: #FFF6D8; box-shadow: inset 3px 0 0 #F5B94A; color: var(--ink); }
.cmp td.none { color: #A0AEB8; }
.cmp.only-diff tr.same { display: none; }

.steps { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.step { position: relative; }
.step h2 { font-size: 16px; font-weight: 650; margin: 2px 0 12px 38px; min-height: 26px; display: flex; align-items: center; gap: 6px; }
.step-num {
  position: absolute; left: 20px; top: 20px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #0E6E86, var(--cyan)); color: #fff; font-size: 13px; font-weight: 700;
}
.step .link-btn { margin-top: 10px; }
.step-links { display: flex; gap: 14px; margin-top: 4px; }
.step-actions { display: grid; gap: 8px; margin-bottom: 10px; }
.field-chips { display: flex; flex-wrap: wrap; gap: 6px; max-height: 260px; overflow-y: auto; padding: 2px; }
.field-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; font-size: 13px; cursor: pointer;
  background: #fff; border: 1px solid #E1E7EC; transition: background .15s, border-color .15s;
}
.field-chip input { accent-color: var(--signal); }
.field-chip small { font: 11px var(--mono); color: var(--ink-faint); }
.field-chip:has(input:checked) { background: var(--signal-weak); border-color: #9FCFDB; color: var(--signal-strong); }
.table-card { margin-top: 14px; padding: 0; overflow: hidden; }
.table-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 16px 20px; border-bottom: 1px solid #EEF2F4; }
.table-card-head h2 { font-size: 16px; font-weight: 650; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th { position: sticky; top: 0; padding: 10px 12px; background: #F6F8FA; text-align: left; font-weight: 600; white-space: nowrap; border-bottom: 1px solid #E1E7EC; }
.data-table td { padding: 10px 12px; vertical-align: top; border-bottom: 1px solid #EEF2F4; min-width: 90px; }
.data-table td:nth-child(6) { min-width: 260px; }
.data-table td.none { color: #A0AEB8; font-style: italic; }
.data-table tbody tr:hover td { background: #FAFCFD; }

.studio { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 18px; align-items: start; }
.studio-form .muted.small { margin-top: 14px; }
.form-block { display: grid; gap: 7px; margin-top: 18px; }
.form-block:first-child { margin-top: 0; }
.form-label { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.seg { display: flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-radius: 12px; background: #EAEFF2; }
.seg button { flex: 1 1 auto; padding: 7px 11px; border-radius: 9px; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(16, 40, 56, .12); }
.studio-preview { position: sticky; top: 90px; }
.post-preview { max-width: 620px; background: #fff; border: 1px solid #E1E7EC; border-radius: 22px; overflow: hidden; box-shadow: 0 22px 50px rgba(16, 40, 56, .1); }
.post-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid #EEF2F4; }
.post-head > span:nth-child(2) { flex: 1; min-width: 0; }
.post-head b { display: block; font-size: 14px; }
.post-head small { display: block; font-size: 12px; color: var(--ink-soft); }
.post-photo { display: grid; place-items: center; aspect-ratio: 16 / 10; background: #F6F8FA; }
.post-photo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.post-photo.empty { color: var(--ink-faint); font-size: 13px; }
.post-photo.empty .i { width: 44px; height: 44px; opacity: .4; }
.post-thumbs { display: flex; gap: 6px; padding: 10px 16px 0; overflow-x: auto; }
.post-thumbs button { width: 54px; height: 54px; flex-shrink: 0; padding: 2px; border-radius: 10px; border: 2px solid #E6ECF0; background: #fff; }
.post-thumbs button[aria-pressed="true"] { border-color: var(--signal); }
.post-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.post-text {
  display: block; width: 100%; min-height: 280px; resize: vertical; padding: 16px; border: none;
  font: inherit; font-size: 14.5px; line-height: 1.65; color: var(--ink); background: #fff;
}
.post-text:focus { outline: none; background: #FCFEFE; box-shadow: inset 0 0 0 2px var(--signal-weak); }
.post-warn { margin: 0 16px 12px; padding: 10px 12px; border-radius: 10px; background: #FBF6EC; color: var(--caution); font-size: 12.5px; }
.post-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid #EEF2F4; }
.post-count { margin-left: auto; }
.post-preview.placeholder { opacity: .75; }
.skeleton { display: grid; gap: 10px; padding: 18px 16px 24px; }
.skeleton i { height: 11px; border-radius: 6px; background: linear-gradient(90deg, #EDF1F4, #F6F8FA, #EDF1F4); background-size: 200% 100%; animation: shimmer 1.6s infinite; }
.skeleton i:nth-child(2) { width: 92%; }
.skeleton i:nth-child(4) { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }

.empty-state {
  display: grid; justify-items: center; gap: 6px; margin-top: 16px; padding: 48px 20px; text-align: center;
  background: #fff; border: 1px dashed #CBD6DD; border-radius: var(--radius-lg);
}
.empty-state .tool-ic { margin-bottom: 8px; }
.empty-state b { font-size: 17px; }
.empty-state p { max-width: 56ch; color: var(--ink-soft); font-size: 14px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.info-grid h2 { font-size: 16px; font-weight: 650; margin: 12px 0 4px; }
.info-grid p { font-size: 13.5px; }
.model-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- вложения, обращения, Telegram, автопроверка, документы ---------- */
.as-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 18px 0; }
.as-files[hidden] { display: none; }
.file-chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 4px 4px 9px; border-radius: 10px;
  background: var(--signal-weak); border: 1px solid #B6D6DE; font-size: 12.5px; color: var(--signal-strong);
}
.file-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.file-chip small { color: var(--ink-faint); }
.file-chip button { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-faint); }
.file-chip button:hover { background: #FCE8E6; color: var(--stop); }
.assistant.drag-over { box-shadow: inset 0 0 0 3px var(--cyan), -12px 0 32px rgba(27, 36, 48, .12); }
.insight { margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; background: #F6F8FA; border: 1px solid #E6ECF0; font-size: 13px; }
.insight p + p, .insight pre { margin-top: 5px; }
.insight-head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.insight-head b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip-code { display: inline-block; padding: 0 6px; border-radius: 5px; background: #FCF2F1; color: var(--stop); font: 12px var(--mono); }
.log-lines { max-height: 180px; overflow: auto; padding: 8px 10px; border-radius: 8px; background: var(--navy); color: #FFD9A8; font: 11.5px/1.5 var(--mono); white-space: pre-wrap; }
.drop {
  display: grid; justify-items: center; gap: 6px; padding: 26px 16px; text-align: center; cursor: pointer;
  border: 2px dashed #C3D2DA; border-radius: 16px; background: #FAFCFD; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--signal); background: var(--signal-weak); }
.drop small { color: var(--ink-soft); }
.case-form { max-width: 760px; }
.case-list { display: grid; gap: 8px; }
.case-row {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px; background: #fff;
  border: 1px solid #E1E7EC; color: inherit; text-decoration: none;
}
.case-row:hover { border-color: var(--signal); }
.case-no { color: var(--ink-faint); font-size: 13px; }
.case-main { flex: 1; min-width: 0; display: grid; }
.case-main b { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.case-main small { color: var(--ink-soft); }
.case-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.case-attachments { display: grid; gap: 12px; }
.case-media { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 12px; background: #0B1620; margin-bottom: 10px; }
.case-answer .as-msg { max-width: 100%; margin-top: 10px; }
.big-badge { font-size: 13px; padding: 4px 10px; }
.tg-card { display: grid; gap: 10px; justify-items: start; }
.tg-card .btn.big { margin-top: 4px; }
.tg-code { padding: 10px 14px; border-radius: 10px; background: var(--navy); color: #9FE6F0; font-size: 15px; user-select: all; }
.check-list { list-style: none; display: grid; gap: 8px; margin: 12px 0; }
.check-list li { position: relative; padding-left: 26px; font-size: 14px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.qi-auto { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #FBF6EC; border: 1px solid #E4CFA3; font-size: 13px; }
.qi-auto.ok { background: #F1F8F4; border-color: #B5D8C4; }
.qi-auto summary { cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 550; }
.qi-auto ul { margin: 6px 0 0 20px; color: var(--ink-soft); }
.doc-hits { margin-top: 18px; }
.doc-hit-list { list-style: none; display: grid; gap: 8px; }
.doc-hit { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #E1E7EC; color: inherit; text-decoration: none; }
.doc-hit:hover { border-color: var(--signal); }
.doc-hit-body { display: grid; gap: 2px; min-width: 0; }
.doc-hit-body b { font-weight: 550; }
.doc-hit-body small { color: var(--ink-soft); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.doc-snippet { font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }

/* ---------- адаптивность ---------- */
@media (max-width: 1200px) {
  .tool, .tool.wide { grid-column: span 3; }
  .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps .step:last-child { grid-column: 1 / -1; }
  .carousel > * { flex-basis: calc((100% - 28px) / 3); }
}
@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 50; width: 284px; height: 100vh; height: 100dvh;
    transform: translateX(-102%); transition: transform .22s ease, visibility .22s; visibility: hidden;
  }
  .sidebar.open { transform: none; visibility: visible; box-shadow: 20px 0 50px rgba(0, 0, 0, .3); }
  .burger { display: inline-grid; }
  .top .brand { display: inline-flex; }
  .bento-2, .studio, .case-grid { grid-template-columns: 1fr; }
  .studio-preview { position: static; }
  .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .cc-hero { padding: 28px 18px 18px; border-radius: 20px; }
  .cc-hero.compact { padding: 26px 18px 22px; }
  .cc-sub { font-size: 14.5px; }
  .cc-command { flex-wrap: wrap; padding: 6px 6px 6px 12px; }
  .cc-command input { flex-basis: calc(100% - 40px); font-size: 16px; }
  .cc-go { flex: 1; justify-content: center; }
  .cc-intents { flex-wrap: nowrap; overflow-x: auto; margin-right: -18px; padding-right: 18px; scrollbar-width: none; }
  .intent { flex-shrink: 0; }
  .cc-status { gap: 6px 14px; margin-top: 20px; }
  .tool, .tool.wide { grid-column: 1 / -1; min-height: 0; }
  .tool-tags { position: static; order: -1; }
  .section-head { align-items: flex-start; }
  .role-tabs { width: 100%; overflow-x: auto; }
  .role-tab { flex: 1; }
  .kpis { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .kpi { padding: 10px; }
  .kpi b { font-size: 19px; }
  .carousel > * { flex-basis: 72%; min-width: 0; }
  .roadmap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .toolbar { width: 100%; }
  .cc-brand { margin-bottom: 16px; gap: 10px; }
  .cc-brand-label { padding-left: 10px; font-size: 11px; }
}
@media (max-width: 600px) {
  .brand b { font-size: 15px; }
}
