/* ==========================================================================
   Wall Desktop, окно настроек
   Полная копия окна настроек claude.ai (вкладка General).

   Все числа сняты живьём с claude.ai: getComputedStyle по каждому узлу в
   обеих темах, реальные наведения курсором, getAnimations() для движения
   бегунка, CSSOM для правил состояний, открытые меню и состояние "поле
   изменено". Ничего не подобрано на глаз.

   НАВЕДЕНИЕ: каждое правило с :hover лежит внутри @media (hover: hover) -
   как у claude.ai (Tailwind v4: все 655 его правил hover: так обёрнуты,
   ЗАМЕРЕНО 26.09). На телефоне наведения нет вовсе, и подсветка после
   касания не залипает (хозяин 26.09: Copy Code на magic-link оставался
   цвета нажатия). Списки селекторов, где :hover смешан с другим
   состоянием, разделены: часть без :hover стоит снаружи. Новые правила
   наведения писать так же.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }
/* подсветка касания браузера выключена, как у claude.ai: у образца
   -webkit-tap-highlight-color прозрачный на всём документе (html, body,
   кнопки, ссылки - ЗАМЕРЕНО 25.09). У нас стоял браузерный rgba(0,0,0,.18),
   и на телефоне Copy Code на странице по ссылке из письма при нажатии
   заливался синеватым пятном - хозяин заметил */
html { -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }

body {
  /* латиница из антроповской, кириллица из нашей, дальше системные */
  font-family: 'Anthropic Sans', 'WallSoft Cyr', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400; --w-w: 400;
  color: var(--w-text-primary);
  background: var(--w-surface-2);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; color: inherit; }

/* Общее правило (хозяин 02.11): подписи кнопок, пунктов меню, строк и шапок
   настроек не выделяются при зажатии и протяжке мышью. Раньше тянули с
   «Log out of all devices» и текст строки копировался. Текст сообщений,
   полей ввода и редакторов правило не трогает - им возвращаем выделение. */
:is(button, [role="button"], [role="menuitem"], [role="menuitemcheckbox"],
    [role="menuitemradio"], [role="tab"], [role="option"], [role="switch"],
    [role="checkbox"], [role="radio"], .w-btn, .w-row, .w-section-head, .w-set-head, .w-nav) {
  -webkit-user-select: none;
  user-select: none;
  /* кнопка-ссылка (Btn as="a", например подтверждение «Log out of all
     devices») при протяжке тянулась как ссылка: призрак с адресом
     http://wall2.local/index.html#. В Chromium это гасит user-drag */
  -webkit-user-drag: none;
}
:is(input, textarea, select, [contenteditable]:not([contenteditable="false"])) {
  -webkit-user-select: text;
  user-select: text;
}

/* ─────────────────────────────────────────────────────────────────────────
   Токены оформления. Значения сняты напрямую с claude.ai: имена и числа
   те же, что у Claude Design System (--cds-*). Файл сгенерирован, править
   вручную не нужно: перегенерируется снятием со страницы.
   ───────────────────────────────────────────────────────────────────── */
:root {
  /* Поверхности */
  --cds-surface-0: #f9f9f7;
  --cds-surface-1: #fcfcfb;
  --cds-surface-2: #fff;
  --cds-surface-3: #fff;
  --cds-surface-panel: #fff;
  --cds-surface-popover: #fff;
  --cds-page-bg: #fcfcfb;

  /* Текст */
  --cds-text-primary: #0b0b0b;
  --cds-text-secondary: #52514e;
  --cds-text-muted: #898781;
  --cds-text-accent: #184f95;
  --cds-text-danger: #8e2626;
  --cds-text-disabled: hsl(from #0b0b0b h s l / 35%);
  --cds-text-success: #006300;
  --cds-text-warning: #734500;
  --cds-text-pro: #4a3aa7;

  /* Подложки */
  --cds-bg-neutral: hsl(from #0b0b0b h s l / 5%);
  --cds-bg-neutral-hover: hsl(from #0b0b0b h s l / 10%);
  --cds-bg-neutral-chip: hsl(from #0b0b0b h s l / 5%);
  --cds-bg-neutral-chip-hover: hsl(from #0b0b0b h s l / 10%);
  --cds-bg-accent: #cde2fb;
  --cds-bg-danger: #fad6d6;
  --cds-bg-success: #caeac7;
  --cds-bg-warning: #f9dca4;
  --cds-bg-pro: #dfdbfd;
  --cds-bg-highlight: color-mix(in srgb, #fab219 33%, transparent);

  /* Заливки */
  --cds-fill-primary: #0b0b0b;
  --cds-fill-primary-hover: #2c2c2a;
  --cds-fill-secondary: #ffffff1a;
  --cds-fill-secondary-hover: hsl(from #0b0b0b h s l / 5%);
  --cds-fill-secondary-ring: hsl(from #0b0b0b h s l / 10%);
  --cds-fill-secondary-pressed-ring: hsl(from #0b0b0b h s l / 10%);
  --cds-fill-accent: #2a78d6;
  --cds-fill-accent-hover: #3987e5;
  --cds-fill-danger: #d03b3b;
  --cds-fill-danger-hover: #e34948;
  --cds-fill-control: hsl(from #0b0b0b h s l / 10%);
  --cds-fill-control-hover: hsl(from #0b0b0b h s l / 20%);
  --cds-fill-field: #ffffff80;
  --cds-fill-field-ring: hsl(from #0b0b0b h s l / 10%);
  --cds-fill-ghost-hover: hsl(from #0b0b0b h s l / 5%);
  --cds-fill-ghost-selected: hsl(from #0b0b0b h s l / 10%);
  --cds-fill-disabled: hsl(from #0b0b0b h s l / 5%);
  --cds-fill-brand: #c6613f;
  --cds-fill-brand-hover: #d97757;
  --cds-fill-pro: #7161e0;
  --cds-fill-pro-hover: #8173e3;
  --cds-fill-success: #009300;
  --cds-fill-warning: #fab219;

  /* Текст на заливке */
  --cds-on-primary: #fff;
  --cds-on-accent: #fff;
  --cds-on-danger: #fff;
  --cds-on-success: #0b0b0b;
  --cds-on-warning: #0b0b0b;
  --cds-on-brand: #fff;
  --cds-on-pro: #fff;
  --cds-button-on-content: #fff9;
  --cds-button-on-content-hover: #ffffffb3;
  --cds-button-on-content-ring: #ffffff59;

  /* Границы */
  --cds-border: hsl(from #0b0b0b h s l / 10%);
  --cds-border-strong: hsl(from #0b0b0b h s l / 20%);
  --cds-border-stronger: hsl(from #0b0b0b h s l / 40%);
  --cds-border-accent: #86b6ef;
  --cds-border-danger: #f09595;
  --cds-border-success: #73cb6d;
  --cds-border-warning: #eda100;
  --cds-border-pro: #b0a7f2;

  /* Полупрозрачные слои */
  --cds-alpha-0: hsl(from #0b0b0b h s l / 0%);
  --cds-alpha-1: hsl(from #0b0b0b h s l / 5%);
  --cds-alpha-2: hsl(from #0b0b0b h s l / 10%);
  --cds-bg-num: #f0efec;
  --cds-surface-num: #f6f6f4;
  --cds-alpha-3: hsl(from #0b0b0b h s l / 20%);
  --cds-alpha-4: hsl(from #0b0b0b h s l / 35%);

  /* Тени и кольца */
  --cds-ring-color: hsl(from #0b0b0b h s l / 10%);
  --cds-ring-hairline: 1px;
  --cds-ring-inner: 0px;
  --cds-ring-outer: 1px;
  --cds-shadow-sm: 0 1px 2px 0 hsl(from #0b0b0b h s l / 6%), 0 2px 8px 0 hsl(from #0b0b0b h s l / 8%);
  --cds-shadow-md: 0 2px 4px 0 hsl(from #0b0b0b h s l / 7%), 0 6px 16px 0 hsl(from #0b0b0b h s l / 8%);
  --cds-shadow-lg: 0 4px 8px 0 hsl(from #0b0b0b h s l / 8%), 0 12px 28px -2px hsl(from #0b0b0b h s l / 8%);
  --cds-shadow-popover: 0 8px 24px #0000001f, 0 2px 6px #00000014;
  --cds-focus-shadow: inset 0 0 0 1px var(--cds-page-bg), 0 0 0 1px #2a78d6, 0 0 6px 1px #cde2fb;
  --cds-focus-shadow-danger: inset 0 0 0 1px var(--cds-page-bg), 0 0 0 1px #d03b3b, 0 0 6px 1px #fad6d6;
  --shadow-card-ring: inset 0 0 0 0px hsl(from #0b0b0b h s l / 10%), 0 0 0 1px hsl(from #0b0b0b h s l / 10%);
  --shadow-panel: inset 0 0 0 0px hsl(from #0b0b0b h s l / 10%), 0 0 0 1px hsl(from #0b0b0b h s l / 10%), 0 8px 24px #0000001f, 0 2px 6px #00000014;
  --shadow-popover: 0 8px 24px #0000001f, 0 2px 6px #00000014;
  --shadow-field-drop: 0 1px 2px 0 #0000000d;

  /* Скругления */
  --cds-radius: calc(.5rem * 1);
  --cds-radius--xs: calc(.375rem * 1);
  --cds-radius--sm: calc(.4375rem * 1);
  --cds-radius--lg: calc(.625rem * 1);
  --cds-radius-composer: calc(.875rem * 1);

  /* Отступы */
  --cds-pad-xs: calc(.375rem * 1);
  --cds-pad-sm: calc(.5rem * 1);
  --cds-pad-md: calc(.75rem * 1);
  --cds-pad-lg: calc(1rem * 1);
  --cds-pad-xl: calc(1.5rem * 1);
  --cds-gap-xs: calc(.5rem * 1);
  --cds-gap-sm: calc(.75rem * 1);
  --cds-gap-md: calc(1rem * 1);
  --cds-gap-lg: calc(1.75rem * 1);
  --cds-gap-xl: calc(2.5rem * 1);

  /* Высоты элементов */
  --cds-h-control: calc(2rem * 1);
  --cds-h-control--xs: calc(1.5rem * 1);
  --cds-h-control--sm: calc(1.75rem * 1);
  --cds-h-control--lg: calc(2.5rem * 1);
  --cds-h-control-nested: calc(1.375rem * 1);
  --cds-h-control-nested--sm: calc(1.25rem * 1);
  --cds-h-control-nested--lg: calc(1.75rem * 1);
  --cds-icon: calc(1.25rem * 1);
  --cds-icon--lg: calc(1.5rem * 1);
  --cds-switch-h: calc(1.25rem * 1);
  --cds-switch-h--sm: calc(1.125rem * 1);
  --cds-switch-h--lg: calc(1.5rem * 1);

  /* Переключатель */
  --cds-switch-knob: #fff;
  --cds-switch-track: hsl(from #0b0b0b h s l / 20%);
  --cds-switch-track-hover: hsl(from #0b0b0b h s l / 35%);

  /* Типографика */
  --cds-font-sans: "anthropic-sans", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --cds-font-mono: "anthropic-mono", ui-monospace, monospace, "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --cds-font-voice: "anthropic-serif", "Anthropic Serif Fallback Georgia", "Anthropic Serif Fallback Times", "Anthropic Serif Fallback DejaVu", "Anthropic Serif Fallback Noto", Georgia, "Arial Hebrew", "Noto Sans Hebrew", "Times New Roman", Times, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Hiragino Sans", "Yu Gothic", Meiryo, "Noto Sans CJK JP", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", serif, ui-serif, Georgia, "Times New Roman", serif;
  --cds-font-size-caption: calc(.75rem * 1);
  --cds-font-size-footnote: calc(.8125rem * 1);
  --cds-font-size-body: calc(.875rem * 1);
  --cds-font-size-heading: calc(.9375rem * 1);
  --cds-font-size-title: calc(1.375rem * 1);
  --cds-font-size-code: calc(.8125rem * 1);
  --cds-leading-caption: calc(1.0625rem * 1);
  --cds-leading-footnote: calc(1.0625rem * 1);
  --cds-leading-body: calc(1.25rem * 1);
  --cds-leading-heading: calc(1.25rem * 1);
  --cds-leading-title: calc(1.75rem * 1);
  --cds-leading-code: calc(1.1875rem * 1);
  --cds-font-weight-regular: 400;
  --cds-font-weight-medium: 500;
  --cds-font-weight-semibold: 580;
  --cds-font-weight-bold: 600;
  --cds-font-wght-regular: normal;
  --cds-font-wght-medium: normal;
  --cds-font-wght-semibold: normal;
  --cds-font-wght-bold: normal;

  /* Время и прочее */
  --cds-dur-fast: 60ms;
  --cds-dur-snap: .12s;
  --cds-dur-base: .2s;
  --cds-dur-sheet: .3s;
  --cds-dur-slow: .45s;
  --cds-opacity-disabled: .4;
  --cds-cursor-interactive: pointer;
  --cds-scroll-fade-size: 28px;
  --cds-card-press-d: 2px;
  --cds-card-press-sx: .99;
  --cds-card-press-sy: .99;
  --cds-z-modal: 40;
  --cds-z-popover: 50;
  --cds-z-tooltip: 50;

}

/* Тёмная тема: перечислены только те токены, что отличаются. */
[data-mode='dark'] {
  /* Поверхности */
  --cds-surface-0: #0b0b0b;
  --cds-surface-1: #151515;
  --cds-surface-2: #1a1a19;
  --cds-surface-3: #20201f;
  --cds-surface-panel: #1a1a19;
  --cds-surface-popover: #20201f;
  --cds-page-bg: #151515;

  /* Текст */
  --cds-text-primary: #f0efec;
  --cds-text-secondary: #c3c2b7;
  --cds-text-accent: #6da7ec;
  --cds-text-danger: #ec7e7e;
  --cds-text-disabled: hsl(from #fff h s l / 35%);
  --cds-text-success: #0ca30c;
  --cds-text-warning: #db9300;
  --cds-text-pro: #a096eb;

  /* Подложки */
  --cds-bg-neutral: hsl(from #fff h s l / 5%);
  --cds-bg-neutral-hover: hsl(from #fff h s l / 10%);
  --cds-bg-neutral-chip: hsl(from #fff h s l / 5%);
  --cds-bg-neutral-chip-hover: hsl(from #fff h s l / 10%);
  --cds-bg-accent: #032042;
  --cds-bg-danger: #3c0e0e;
  --cds-bg-success: #11260f;
  --cds-bg-warning: #311a00;
  --cds-bg-pro: #1d1649;

  /* Заливки */
  --cds-fill-primary: #fff;
  --cds-fill-primary-hover: #e1e0d9;
  --cds-fill-secondary: hsl(from #fff h s l / 10%);
  --cds-fill-secondary-hover: hsl(from #fff h s l / 14%);
  --cds-fill-secondary-ring: transparent;
  --cds-fill-secondary-pressed-ring: hsl(from #fff h s l / 10%);
  --cds-fill-control: hsl(from #fff h s l / 10%);
  --cds-fill-control-hover: hsl(from #fff h s l / 20%);
  --cds-fill-field: hsl(from #fff h s l / 5%);
  --cds-fill-field-ring: hsl(from #fff h s l / 10%);
  --cds-fill-ghost-hover: hsl(from #fff h s l / 7.5%);
  --cds-fill-ghost-selected: hsl(from #fff h s l / 15%);
  --cds-fill-disabled: hsl(from #fff h s l / 5%);

  /* Текст на заливке */
  --cds-on-primary: #0b0b0b;
  --cds-button-on-content: #0000008c;
  --cds-button-on-content-hover: #000000a6;
  --cds-button-on-content-ring: transparent;

  /* Границы */
  --cds-border: hsl(from #fff h s l / 10%);
  --cds-border-strong: hsl(from #fff h s l / 20%);
  --cds-border-stronger: hsl(from #fff h s l / 40%);
  --cds-border-accent: #0d366b;
  --cds-border-danger: #641919;
  --cds-border-success: #074506;
  --cds-border-warning: #512e00;
  --cds-border-pro: #322777;

  /* Полупрозрачные слои */
  --cds-alpha-0: hsl(from #fff h s l / 0%);
  --cds-alpha-1: hsl(from #fff h s l / 5%);
  --cds-alpha-2: hsl(from #fff h s l / 10%);
  --cds-bg-num: #151515;
  --cds-surface-num: #111;
  --cds-alpha-3: hsl(from #fff h s l / 20%);
  --cds-alpha-4: hsl(from #fff h s l / 35%);

  /* Тени и кольца */
  --cds-ring-color: hsl(from #fff h s l / 10%);
  --cds-ring-inner: 1px;
  --cds-ring-outer: 0px;
  --cds-shadow-sm: 0 1px 2px 0 hsl(from #0b0b0b h s l / 6%), 0 2px 8px 0 #0000003d;
  --cds-shadow-md: 0 2px 4px 0 hsl(from #0b0b0b h s l / 7%), 0 6px 16px 0 #0000003d;
  --cds-shadow-lg: 0 4px 8px 0 hsl(from #0b0b0b h s l / 8%), 0 12px 28px -2px #0000003d;
  --cds-shadow-popover: 0 8px 24px #00000052, 0 2px 6px #0003;
  --cds-focus-shadow: inset 0 0 0 1px var(--cds-page-bg), 0 0 0 1px #2a78d6, 0 0 6px 1px hsl(from #184f95 h s l / 60%);
  --cds-focus-shadow-danger: inset 0 0 0 1px var(--cds-page-bg), 0 0 0 1px #d03b3b, 0 0 6px 1px hsl(from #8e2626 h s l / 60%);
  --shadow-card-ring: inset 0 0 0 1px hsl(from #fff h s l / 10%), 0 0 0 0px hsl(from #fff h s l / 10%);
  --shadow-panel: inset 0 0 0 1px hsl(from #fff h s l / 10%), 0 0 0 0px hsl(from #fff h s l / 10%), 0 8px 24px #00000052, 0 2px 6px #0003;
  --shadow-popover: 0 8px 24px #00000052, 0 2px 6px #0003;

  /* Переключатель */
  --cds-switch-track: hsl(from #fff h s l / 10%);
  --cds-switch-track-hover: hsl(from #fff h s l / 20%);

  /* Типографика */
  --cds-font-wght-regular: "wght" 360;
  --cds-font-wght-medium: "wght" 460;
  --cds-font-wght-semibold: "wght" 540;
  --cds-font-wght-bold: "wght" 560;

}

/* ── Токены, светлая тема ─────────────────────────────────────────────────
   Соответствуют --cds-* из claude.ai один в один.                        */
:root, [data-mode='light'] {
  --w-shadow-sm: 0 1px 2px 0 rgba(11, 11, 11, .06), 0 2px 8px 0 rgba(11, 11, 11, .08);
  --w-fw-xl: 580;
  --w-surface-1: var(--cds-surface-1);                 /* фон левой колонки */
  --w-surface-2: var(--cds-surface-2);                 /* фон диалога и правой колонки */
  --w-surface-3: var(--cds-surface-3);                 /* фон всплывающего меню */
  --w-page-bg: var(--cds-page-bg);                   /* --cds-page-bg */

  --w-text-primary: var(--cds-text-primary);
  --w-text-secondary: var(--cds-text-secondary);
  --w-text-muted: var(--cds-text-muted);                /* одинаков в обеих темах */
  --w-text-accent: var(--cds-text-accent);               /* галочка выбранного пункта меню */

  --w-border: var(--cds-border);
  --w-alpha-1: var(--cds-alpha-1);     /* разделители строк */
  --w-alpha-2: var(--cds-alpha-2);
  --w-alpha-3: var(--cds-alpha-3);
  --w-bg-num: var(--cds-bg-num);
  --w-surface-num: var(--cds-surface-num);

  --w-ghost-hover: var(--cds-fill-ghost-hover);
  --w-ghost-selected: var(--cds-fill-ghost-selected);
  --w-fill-field: var(--cds-fill-field);
  /* ЗАМЕРЕНО: фон карточки входа. В светлой это #fcfcfb (тот же, что
     surface-1), в тёмной #111111 - он темнее всех surface тёмной темы */
  --w-login-card-bg: #fcfcfb;
  /* ЗАМЕРЕНО: дорожка пилюли Monthly/Yearly в карточке тарифа -
     непрозрачная, ни на один наш surface не ложится */
  --w-pill-track: #f6f6f4;
  --w-fill-control: var(--cds-fill-control);
  --w-fill-primary: var(--cds-fill-primary);              /* кнопка "Save changes" */
  --w-fill-primary-hover: var(--cds-fill-primary-hover);
  --w-on-primary: var(--cds-on-primary);
  /* вторичная кнопка (Log out): заливка --cds-fill-secondary плюс кольцо
     shadow-field, при наведении заливка --cds-fill-secondary-hover */
  --w-fill-secondary: var(--cds-fill-secondary);
  --w-fill-secondary-hover: var(--cds-fill-secondary-hover);
  --w-shadow-field: inset 0 0 0 1px rgba(11, 11, 11, .1), 0 1px 2px 0 rgba(0, 0, 0, .05);
  /* подложка чипа: --cds-bg-neutral = alpha-1, при наведении alpha-2 */
  --w-bg-neutral: var(--cds-bg-neutral);
  --w-bg-neutral-hover: var(--cds-bg-neutral-hover);
  /* опасное действие: --cds-fill-danger, --cds-text-danger, --cds-text-on-danger */
  --w-fill-danger: var(--cds-fill-danger);
  --w-fill-danger-hover: var(--cds-fill-danger-hover);
  --w-text-danger: var(--cds-text-danger);
  --w-tint-danger: var(--cds-bg-danger);
  --w-border-danger: var(--cds-border-danger);
  --w-text-warning: var(--cds-text-warning);
  --w-tint-warning: var(--cds-bg-warning);
  --w-border-warning: var(--cds-border-warning);
  --w-radio-border: hsl(from #0b0b0b h s l / 40%);
  --w-on-danger: var(--cds-on-danger);
  --w-focus-shadow-danger: var(--cds-focus-shadow-danger);
  /* подсветка пиктограммы тарифа, fill-pictogram-highlight-default */
  --w-picto-highlight: #e7e6e1;
  /* подложка под картинкой аватара: у claude.ai сплошной цвет самого
     аватара, от темы не зависит */
  --w-avatar-bg: rgb(188, 209, 202);
  --w-surface-0: var(--cds-surface-0);
  --w-accent: var(--cds-fill-accent);
  --w-accent-hover: var(--cds-fill-accent-hover);

  --w-switch-track: var(--cds-switch-track);
  --w-switch-track-hover: var(--cds-switch-track-hover);
  --w-switch-knob: var(--cds-switch-knob);

  --w-seg-track: rgba(11, 11, 11, .05);
  --w-seg-thumb: #ffffff;
  --w-seg-thumb-shadow: inset 0 0 0 1px rgba(11, 11, 11, .1), 0 1px 2px 0 rgba(0, 0, 0, .05);

  /* --cds-tooltip-bg = --cds-role-tooltip-bg = --cds-gray-900,
     --cds-tooltip-fg = --cds-gray-0. В тёмной теме они переопределены
     на --cds-surface-3 и --cds-text-primary. */
  /* --accent-100: светлая blue-500, тёмная blue-350 */
  --w-focus-outline: rgb(37, 106, 191);

  --w-tooltip-bg: #0b0b0b;
  --w-tooltip-fg: #ffffff;
  /* shadow-sm: 0 1px 2px 6%, 0 2px 8px --cds-shadow-color (8% в светлой) */
  --w-shadow-tooltip: 0 1px 2px 0 rgba(11, 11, 11, .06), 0 2px 8px 0 rgba(11, 11, 11, .08);
  /* --cds-fill-warning = --cds-yellow-200, один и тот же в обеих темах */
  --w-warning: var(--cds-fill-warning);
  /* bg-tint-blue: в светлой выводится из blue-100, в тёмной из blue-800 */
  --w-tint-blue: rgba(118, 178, 251, .35);

  --w-skeleton: rgba(11, 11, 11, .05);
  --w-alpha-05: var(--cds-alpha-1);
  --w-fill-active: #f0efec;
  --w-field-ring: inset 0 0 0 1px rgba(11, 11, 11, .1);
  --w-field-ring-hover: inset 0 0 0 1px rgba(11, 11, 11, .2);
  --w-focus-shadow: var(--cds-focus-shadow);
  --w-focus-inset: var(--cds-page-bg);
  --w-focus-ring: 0 0 0 1px #2a78d6, 0 0 6px 1px #cde2fb;
  --w-focus-ring-danger: 0 0 0 1px #d03b3b, 0 0 6px 1px #fad6d6;

  --w-shadow-dialog: 0 0 0 1px rgba(11, 11, 11, .1), 0 1px 2px 0 rgba(11, 11, 11, .06), 0 2px 8px 0 rgba(11, 11, 11, .08);
  /* светлая тема: кольцо ВНЕШНЕЕ (inset с нулевым spread, внешнее 1px) */
  --w-shadow-panel: 0 0 0 1px rgba(11, 11, 11, .1), 0 8px 24px 0 rgba(0, 0, 0, .12), 0 2px 6px 0 rgba(0, 0, 0, .08);
  /* shadow-panel-lg, окно подтверждения */
  --w-shadow-panel-lg: 0 0 0 1px rgba(11, 11, 11, .1), 0 4px 8px 0 rgba(11, 11, 11, .08), 0 12px 28px -2px rgba(11, 11, 11, .08);
  /* shadow-card-ring: только кольцо снаружи */
  --w-card-ring: 0 0 0 1px rgba(11, 11, 11, .1);
  /* рамка окна Wall3: symbolColor titleBarOverlay образца и основа заливки
     наведения (чёрный на светлой рамке, GetCaptionForegroundColor) */
  --w-frame-sym: #3d3d3a;
  --w-frame-hov: #000;
  /* строка ввода в Memory: shadow-sm и усиленная рамка при наведении */
  --w-shadow-composer: 0 1px 2px 0 hsl(from #0b0b0b h s l / 6%), 0 2px 8px 0 hsl(from #0b0b0b h s l / 8%);
  --w-shadow-composer-focus: 0 2px 4px 0 hsl(from #0b0b0b h s l / 7%), 0 6px 16px 0 hsl(from #0b0b0b h s l / 8%);
  --w-border-strong: var(--cds-border-strong);
  --w-fill-brand: #c6613f;
  --w-fill-brand-hover: #d97757;
  --w-on-brand: #ffffff;
  --w-shadow-knob: 0 1px 2px 0 rgba(11, 11, 11, .06), 0 2px 8px 0 rgba(11, 11, 11, .08);

  --w-dialog-border: 0;
  --w-scrollbar: rgba(30, 30, 29, .35);
  --w-backdrop: rgba(0, 0, 0, .4);

  /* --cds-font-mono, им набран идентификатор организации */
  --w-font-mono: 'Anthropic Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* радиусы, размеры */
  --w-radius: 8px;            /* --cds-radius */
  --w-radius-card: 12px;      /* --cds-radius-card, диалог и меню */
  --w-h-control: 32px;        /* --cds-h-control */
  --w-h-control-sm: 28px;     /* --cds-h-control--sm, кнопки под полем */
  --w-popup-max-h: 320px;     /* --cds-popup-max-h */
  --w-fade-size: 28px;        /* --cds-scroll-fade-size */

  /* тайминги */
  --w-dur-fast: .06s;         /* --cds-dur-fast */
  --w-dur-snap: .12s;         /* --cds-dur-snap */
  --w-dur-base: .2s;          /* --cds-dur-base */
  --w-dur-slow: .45s;         /* --cds-dur-slow */
  --w-ease: cubic-bezier(.4, 0, .2, 1);
  --w-ease-out: cubic-bezier(.165, .84, .44, 1);
  --w-ease-snap: cubic-bezier(.32, .72, 0, 1);
  --w-ease-overshoot: cubic-bezier(.34, 1.3, .64, 1);
  /* пружина отпускания кнопки, снята с .cds-btn-squish */
  --w-spring: linear(0 0%, .2459 7.14286%, .6526 14.2857%, .9468 21.4286%,
              1.0764 28.5714%, 1.0915 35.7143%, 1.0585 42.8571%, 1.0219 50%,
              .9993 57.1429%, .9914 64.2857%, .9921 71.4286%, .9957 78.5714%,
              .9988 85.7143%, 1.0004 92.8571%, 1 100%);

  color-scheme: light;
}

/* ── Токены, тёмная тема ──────────────────────────────────────────────────
   Проценты прозрачности НЕ зеркальные: ghost-hover 5%→7.5%,
   ghost-selected 10%→15%, switch-track 20%→10%, seg-thumb #fff→белый 10%. */
[data-mode='dark'] {
  --w-shadow-sm: 0 1px 2px 0 rgba(11, 11, 11, .06), 0 2px 8px 0 rgba(0, 0, 0, .24);
  --w-fw-xl: 600;
  --w-surface-1: var(--cds-surface-1);
  --w-surface-2: var(--cds-surface-2);
  --w-surface-3: var(--cds-surface-3);
  --w-page-bg: var(--cds-page-bg);

  --w-text-primary: var(--cds-text-primary);
  --w-text-secondary: var(--cds-text-secondary);
  --w-text-muted: var(--cds-text-muted);
  --w-text-accent: var(--cds-text-accent);

  --w-border: var(--cds-border);
  --w-alpha-1: var(--cds-alpha-1);
  --w-alpha-2: var(--cds-alpha-2);
  --w-alpha-3: var(--cds-alpha-3);
  --w-bg-num: var(--cds-bg-num);
  --w-surface-num: var(--cds-surface-num);

  /* в тёмной теме подсказка перекрашивается в surface-3 и text-primary,
     а тень становится shadow-panel-sm: кольцо внутрь плюс 24% тени */
  --w-focus-outline: rgb(85, 152, 231);

  --w-tint-blue: rgba(0, 36, 81, .75);

  --w-tooltip-bg: #20201f;
  --w-tooltip-fg: #f0efec;
  /* у claude.ai в тёмной теме к кольцу добавлен ещё один слой нулевого
     размера, а мягкая тень считается от #0b0b0b */
  --w-shadow-tooltip: inset 0 0 0 1px rgba(255, 255, 255, .1),
                      0 0 0 0 rgba(255, 255, 255, .1),
                      0 1px 2px 0 rgba(11, 11, 11, .06), 0 2px 8px 0 rgba(0, 0, 0, .24);

  --w-ghost-hover: var(--cds-fill-ghost-hover);
  --w-ghost-selected: var(--cds-fill-ghost-selected);
  --w-fill-field: var(--cds-fill-field);
  --w-login-card-bg: #111111;
  --w-pill-track: #111111;
  --w-fill-control: var(--cds-fill-control);
  --w-fill-primary: var(--cds-fill-primary);
  --w-fill-primary-hover: var(--cds-fill-primary-hover);
  --w-on-primary: var(--cds-on-primary);
  /* в тёмной теме у вторичной кнопки кольцо прозрачное, остаётся
     только мягкая тень снизу, а заливка 10% и 14% при наведении */
  --w-fill-secondary: var(--cds-fill-secondary);
  --w-fill-secondary-hover: var(--cds-fill-secondary-hover);
  --w-shadow-field: 0 1px 2px 0 rgba(0, 0, 0, .05);
  --w-bg-neutral: var(--cds-bg-neutral);
  --w-bg-neutral-hover: var(--cds-bg-neutral-hover);
  --w-text-danger: var(--cds-text-danger);
  --w-tint-danger: var(--cds-bg-danger);
  --w-border-danger: var(--cds-border-danger);
  --w-text-warning: var(--cds-text-warning);
  --w-tint-warning: var(--cds-bg-warning);
  --w-border-warning: var(--cds-border-warning);
  --w-radio-border: hsl(from #fff h s l / 40%);
  --w-focus-shadow-danger: var(--cds-focus-shadow-danger);
  --w-picto-highlight: #454442;
  --w-surface-0: var(--cds-surface-0);

  --w-switch-track: var(--cds-switch-track);
  --w-switch-track-hover: var(--cds-switch-track-hover);

  --w-seg-track: rgba(255, 255, 255, .05);
  --w-seg-thumb: rgba(255, 255, 255, .10);
  --w-seg-thumb-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 1px 2px 0 rgba(0, 0, 0, .05);

  --w-skeleton: rgba(255, 255, 255, .075);
  --w-alpha-05: var(--cds-alpha-1);
  --w-fill-active: #151515;
  --w-field-ring: inset 0 0 0 1px rgba(255, 255, 255, .1);
  --w-field-ring-hover: inset 0 0 0 1px rgba(255, 255, 255, .2);
  --w-focus-shadow: var(--cds-focus-shadow);
  --w-focus-inset: var(--cds-page-bg);
  --w-focus-ring: 0 0 0 1px #2a78d6, 0 0 6px 1px hsl(from #184f95 h s l / 60%);
  --w-focus-ring-danger: 0 0 0 1px #d03b3b, 0 0 6px 1px hsl(from #8e2626 h s l / 60%);

  --w-shadow-dialog: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 1px 2px 0 rgba(11, 11, 11, .06), 0 2px 8px 0 rgba(0, 0, 0, .24);
  /* тёмная тема: кольцо ВНУТРЕННЕЕ, внешнего нет */
  --w-shadow-panel: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 8px 24px 0 rgba(0, 0, 0, .32), 0 2px 6px 0 rgba(0, 0, 0, .2);
  --w-shadow-panel-lg: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 4px 8px 0 rgba(11, 11, 11, .08), 0 12px 28px -2px rgba(0, 0, 0, .24);
  --w-card-ring: inset 0 0 0 1px rgba(255, 255, 255, .1);
  --w-frame-sym: #c2c0b6;
  --w-frame-hov: #fff;
  --w-shadow-composer: 0 1px 2px 0 hsl(from #0b0b0b h s l / 6%), 0 2px 8px 0 rgba(0, 0, 0, .24);
  --w-shadow-composer-focus: 0 2px 4px 0 hsl(from #0b0b0b h s l / 7%), 0 6px 16px 0 rgba(0, 0, 0, .24);
  --w-border-strong: var(--cds-border-strong);
  --w-backdrop: rgba(0, 0, 0, .5);
  --w-shadow-knob: 0 1px 2px 0 rgba(11, 11, 11, .06), 0 2px 8px 0 rgba(0, 0, 0, .24);

  --w-dialog-border: 1px;
  --w-scrollbar: rgba(225, 224, 217, .35);

  color-scheme: dark;
}

/* ── Полосы прокрутки ───────────────────────────────────────────────────── */
.w-scroll { scrollbar-width: thin; scrollbar-color: var(--w-scrollbar) transparent; }

/* ── Затухание у краёв прокрутки ──────────────────────────────────────────
   Это те самые "тени" сверху и снизу у меню и у левой колонки.

   ВАЖНО: доля затухания на claude.ai считается НЕ скриптом, а анимацией
   по ленте прокрутки. Снято с живого элемента списка меню:

     animation-name: cds-scroll-fade-top, cds-scroll-fade-bottom,
                     cds-scroll-fade-y-active;
     animation-duration: auto;
     animation-timeline: scroll(self);
     animation-range: 0px 28px, calc(100% - 28px), 0px 101%;
     animation-fill-mode: both, both, none;
     animation-timing-function: linear;

   и кейфреймы из их же css:

     @keyframes cds-scroll-fade-top {
       0%{--cds-scroll-fade-top-raw:0px}
       100%{--cds-scroll-fade-top-raw:var(--cds-scroll-fade-size)} }
     @keyframes cds-scroll-fade-bottom {
       0%{--cds-scroll-fade-bottom-raw:var(--cds-scroll-fade-size)}
       100%{--cds-scroll-fade-bottom-raw:0px} }
     @keyframes cds-scroll-fade-y-active { 0%,100%{--cds-scroll-fade-y-active:1} }

   Третья анимация с диапазоном 101% включает затухание только если блок
   действительно прокручивается: у непрокручиваемого лента неактивна,
   множитель остаётся 0 и маски нет.

   Раньше долю писал скрипт на каждый кадр прокрутки. Из-за этого маска
   пересчитывалась в главном потоке, слой перерисовывался, и текст на
   мгновение менял начертание, тот самый "жирный шрифт при листании".
   Теперь всё считает композитор, главный поток не участвует.

   Размеры: левая колонка 24px (у неё класс scroll-fade-size-6),
   списки меню 28px.                                                  */
@property --w-fade-top-raw    { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --w-fade-bottom-raw { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --w-fade-active     { syntax: '<number>'; inherits: false; initial-value: 0; }
/* доли тоже объявлены длиной: иначе вычисленное значение остаётся
   строкой calc(0px * 1), а у claude.ai это ровно 0px */
@property --w-fade-top        { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --w-fade-bottom     { syntax: '<length>'; inherits: false; initial-value: 0px; }

@keyframes w-fade-top    { 0%   { --w-fade-top-raw: 0px; }
                           100% { --w-fade-top-raw: var(--w-fade-size); } }
@keyframes w-fade-bottom { 0%   { --w-fade-bottom-raw: var(--w-fade-size); }
                           100% { --w-fade-bottom-raw: 0px; } }
@keyframes w-fade-active { 0%, 100% { --w-fade-active: 1; } }

.w-fade-y {
  --w-fade-top: calc(var(--w-fade-top-raw) * var(--w-fade-active));
  --w-fade-bottom: calc(var(--w-fade-bottom-raw) * var(--w-fade-active));
  scroll-padding-block: var(--w-fade-size) var(--w-fade-size);
  mask-image: linear-gradient(to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, .05) calc(var(--w-fade-top) * .15),
    rgba(0, 0, 0, .15) calc(var(--w-fade-top) * .3),
    rgba(0, 0, 0, .3)  calc(var(--w-fade-top) * .45),
    rgba(0, 0, 0, .5)  calc(var(--w-fade-top) * .6),
    rgba(0, 0, 0, .7)  calc(var(--w-fade-top) * .75),
    rgba(0, 0, 0, .85) calc(var(--w-fade-top) * .87),
    rgb(0, 0, 0) var(--w-fade-top),
    rgb(0, 0, 0) calc(100% - var(--w-fade-bottom)),
    rgba(0, 0, 0, .85) calc(100% - var(--w-fade-bottom) * .87),
    rgba(0, 0, 0, .7)  calc(100% - var(--w-fade-bottom) * .75),
    rgba(0, 0, 0, .5)  calc(100% - var(--w-fade-bottom) * .6),
    rgba(0, 0, 0, .3)  calc(100% - var(--w-fade-bottom) * .45),
    rgba(0, 0, 0, .15) calc(100% - var(--w-fade-bottom) * .3),
    rgba(0, 0, 0, .05) calc(100% - var(--w-fade-bottom) * .15),
    rgba(0, 0, 0, 0));
}
@supports (animation-timeline: scroll()) {
  .w-fade-y {
    animation-name: w-fade-top, w-fade-bottom, w-fade-active;
    animation-duration: auto;
    animation-timing-function: linear;
    animation-fill-mode: both, both, none;
    animation-timeline: scroll(self);
    animation-range: 0px var(--w-fade-size), calc(100% - var(--w-fade-size)), 0px 101%;
  }
}
.w-fade-24 { --w-fade-size: 24px; }
.w-fade-28 { --w-fade-size: 28px; }

/* ── Подложка и диалог ──────────────────────────────────────────────────── */
.w-backdrop {
  position: fixed;
  inset: 0;
  background: var(--w-backdrop);
  opacity: 1;
  transition: opacity var(--w-dur-base) var(--w-ease-out);
  z-index: 40;
}
.w-backdrop[data-state='closed'] { opacity: 0; }
/* backdrop-blur-[2px] у claude.ai */
.w-backdrop { backdrop-filter: blur(2px); }

.w-dialog {
  /* кольцо фокуса внутри окна ложится на его подложку, а не на страницу */
  position: fixed;
  inset: 0;
  margin: auto;
  display: flex;
  width: calc(100vw - 2rem);
  max-width: 1024px;
  height: calc(100dvh - 2rem);
  /* запасной расчёт той же высоты: окно закреплено по всем сторонам, так
     что 100% это высота видимой области. Нужен на случай, если движок
     в оболочке приложения не пересчитывает dvh при изменении размера
     окна: тогда низ страницы отрывался от края. */
  height: calc(100% - 2rem);
  max-height: 800px;
  overflow: hidden;
  border-radius: var(--w-radius-card);
  border: var(--w-dialog-border) solid var(--w-alpha-1);
  background: var(--w-surface-2);
  box-shadow: var(--w-shadow-dialog);
  color: var(--w-text-primary);
  z-index: 50;
  opacity: 1;
  /* scale здесь НЕ задаём: любое значение, даже 1, делает окно блоком
     содержания для position:fixed внутри и сдвигает скрытые поля */
  transition: opacity var(--w-dur-base) var(--w-ease-out), scale var(--w-dur-base) var(--w-ease-out);
}
/* открытие и закрытие: opacity 0 + scale .98, снято с data-starting-style */
.w-dialog[data-state='closed'] { opacity: 0; scale: .98; }

/* пока открыто вложенное окно, окно настроек закрывается затемняющим
   слоем ::after (data-[nested-dialog-open]). Размытия у него НЕТ:
   в разметке claude.ai класс blur-[2px] на этом состоянии есть, но
   вычисленный filter у окна остаётся none, проверено в обеих темах. */
.w-dialog::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 50;
  border-radius: inherit;
  background: var(--w-backdrop);
  opacity: 0;
  transition: opacity var(--w-dur-base) var(--w-ease-out);
}
.w-dialog[data-nested-open]::after { opacity: 1; }

/* ── Окно подтверждения ───────────────────────────────────────────────────
   Снято с живого окна claude.ai (Log out of all devices): ширина
   calc(100vw - 2rem) с потолком 520, высота по содержимому с потолком
   calc(100dvh - 2rem), радиус 12, фон surface-3, тень shadow-panel-lg,
   появление opacity 0 и scale .98 за 200мс.

   Внутри: отступ 24, шапка с нижним отступом 12 (заголовок 22/28 вес 580,
   поднят на 4px вверх), затем строка текста 14/20 обычным цветом, затем
   подвал с верхним отступом 16, кнопки справа с зазором 8.             */
.w-confirm {
  /* внутри вложенного окна кольцо фокуса ложится на его подложку:
     у claude.ai окно переопределяет --cds-page-bg на свой surface-3.
     Окно настроек так НЕ делает, там остаётся цвет страницы. */
  --w-focus-inset: var(--cds-surface-3);
  position: fixed;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: flex;
  flex-direction: column;
  width: calc(100vw - 2rem);
  max-width: 520px;
  max-height: calc(100dvh - 2rem);
  border-radius: var(--w-radius-card);
  background: var(--w-surface-3);
  box-shadow: var(--w-shadow-panel-lg);
  color: var(--w-text-primary);
  z-index: 81;
  opacity: 1;
  scale: 1;
  outline: none;
  transition: opacity var(--w-dur-base) var(--w-ease-out), scale var(--w-dur-base) var(--w-ease-out);
}
.w-confirm[data-state='closed'] { opacity: 0; scale: .98; }
/* Своя подложка вложенного окна ничего не затемняет и не размывает:
   у claude.ai она гаснет правилом has-[~[data-nested]]:bg-transparent,
   потому что затемнение уже даёт подложка окна настроек плюс слой
   ::after на нём самом. Остаётся только ловить нажатия мимо окна. */
.w-backdrop-nested {
  z-index: 80;
  background: transparent;
  backdrop-filter: none;
}
.w-confirm-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  isolation: isolate;
  overflow-y: auto;
  border-radius: inherit;
  padding: 24px;
}
.w-confirm-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.w-confirm-head-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  margin-top: -4px;
}
.w-confirm-title {
  margin: 0;
  font-size: 22px;
  line-height: 28px;
  font-weight: 580; --w-w: 580;
  color: var(--w-text-primary);
  overflow-wrap: break-word;
}
.w-confirm-foot { display: flex; margin-top: 16px; gap: 8px; justify-content: flex-end; }
/* окно предупреждения: то же окно, но уже и с другим набором внутри */
.w-alert { max-width: 400px; }
.w-alert-title {
  margin: -2px 0 0;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500; --w-w: 500;
  color: var(--w-text-primary);
}
.w-alert-text { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--w-text-secondary); }
/* «Delete selected?» в Recents (ЗАМЕРЕНО 29.09 у Max, обе темы): текст
   сразу под заголовком (21 от верха заголовка, у нас было 25) и цветом
   primary; окно 154 */
.w-alert-text.w-alert-text-tight { margin-top: 0; color: var(--w-text-primary); }
.w-alert-foot { display: flex; margin-top: 16px; gap: 8px; justify-content: flex-end; }


/* ── Окно «Import memory to Claude» ───────────────────────────────────────
   Шапка та же, что у окна подтверждения, плюс крестик со сдвигом -8/-8.
   Шаги: колонка с зазором 16, у первого ещё нижний отступ 8. Номер это
   кружок 20x20 с подложкой #f0efec и цифрой 12/16 веса 580. Слева от
   второй строки шага идёт нитка шириной 1px цветом alpha-2.
   Окошко запроса: отступ слева 28, подложка #f6f6f4, рамка 1px 5%,
   радиус 9.6, высота с потолком 104 и прокруткой; текст с отступом
   12 и нижним 48, цвет secondary. Поверх снизу затухание высотой 64 и
   кнопка Copy в правом нижнем углу. Поле вставки: 136 в высоту,
   отступы 8/12, радиус 8, заливка fill-field и кольцо внутрь 1px.    */
.w-confirm-close { margin-top: -8px; margin-right: -8px; }
.w-imp-steps { display: flex; flex-direction: column; gap: 16px; }
.w-imp-step { position: relative; display: flex; flex-direction: column; gap: 8px; }
.w-imp-step1 { margin-bottom: 8px; }
.w-imp-step2 { flex-grow: 1; }
.w-imp-rail {
  position: absolute;
  top: 28px;
  bottom: -16px;
  left: 10px;
  width: 1px;
  translate: -50% 0;
  background: var(--w-alpha-2);
}
.w-imp-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500; --w-w: 500;
  color: var(--w-text-secondary);
}
.w-imp-num {
  position: relative;
  display: flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 3.35544e7px;
  background: var(--w-bg-num);
  font-size: 12px;
  line-height: 16px;
  font-weight: 580; --w-w: 580;
}
.w-imp-prompt {
  position: relative;
  margin-left: 28px;
  border: 1px solid var(--w-alpha-1);
  border-radius: 9.6px;
  background: var(--w-surface-num);
}
.w-imp-copy { position: absolute; right: 8px; bottom: 8px; z-index: 10; }
.w-imp-fade {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  right: 0;
  bottom: 0;
  left: 0;
  height: 64px;
  border-radius: 0 0 9.6px 9.6px;
  background: linear-gradient(to top, var(--w-surface-num), transparent);
}
.w-imp-text {
  max-height: 104px;
  padding: 12px 12px 48px;
  overflow: auto;
  color: var(--w-text-secondary);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  cursor: var(--cds-cursor-interactive);
}
.w-imp-pastewrap { margin-left: 28px; }
.w-imp-paste {
  display: inline-block;
  width: 100%;
  height: 136px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--w-fill-field);
  box-shadow: inset 0 0 0 1px var(--w-alpha-2);
  color: var(--w-text-primary);
  font: inherit;
  outline: none;
  resize: none;
  white-space: pre-wrap;
}
.w-imp-paste:focus-visible { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
.w-imp-paste::placeholder { color: var(--w-text-muted); }
/* значок копирования, который перетекает в галочку */
.w-copymorph { display: flex; width: 16px; height: 16px; margin-left: -4px; }
.w-copymorph-in { position: relative; width: 16px; height: 16px; }
.w-copymorph-a { display: flex; width: 16px; height: 16px; align-items: center; justify-content: center; }
.w-copymorph-b { position: absolute; inset: 0; display: flex; width: 16px; height: 16px; align-items: center; justify-content: center; }

.w-copymorph-c {
  display: flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  scale: .5;
}
.w-copymorph svg { flex-shrink: 0; }
/* значок копирования и галочка меняются местами: видимый в масштабе 1,
   спрятанный в масштабе .5 и с прозрачностью 0, переход 150мс */
.w-copymorph-a, .w-copymorph-a svg, .w-copymorph-c, .w-copymorph-c svg {
  transition: scale 150ms var(--w-ease), opacity 150ms var(--w-ease);
}
.w-copymorph-a, .w-copymorph-a svg { scale: 1; opacity: 1; }
.w-copymorph-a[data-copied], .w-copymorph-a[data-copied] svg { scale: .5; opacity: 0; }
.w-copymorph-c, .w-copymorph-c svg { scale: .5; opacity: 0; }
.w-copymorph-c[data-copied], .w-copymorph-c[data-copied] svg { scale: 1; opacity: 1; }


/* ── Страница одного файла памяти ─────────────────────────────────────────
   Снято с claude.ai узел в узел. Полоса прокрутки на всей области под
   шапкой, внутри колонка с зазором 12 и отступом 0/24/24. Заголовок
   15/20 веса 580 без переносов, справа вторичная кнопка Delete;
   у полосы заголовка правый отступ 22 и отрицательный внешний -24,
   чтобы кнопка вставала под полосу прокрутки. Подписи Summary и
   Details 14/20 веса 500, между блоками 24.                          */
.w-memdet-scroll { position: relative; min-height: 0; flex: 1; overflow-y: auto; }
.w-memdet-inner { display: flex; min-width: 0; min-height: 100%; flex-direction: column; gap: 12px; padding: 0 24px 24px; }
.w-memdet-top {
  display: flex;
  margin-right: -24px;
  padding: 4px 22px 12px 0;
  align-items: flex-start;
  justify-content: space-between;
}
.w-memdet-top-main { display: flex; min-width: 0; flex-grow: 1; flex-direction: column; }
.w-memdet-top-row { display: flex; min-width: 0; align-items: center; gap: 8px; }
.w-memdet-h {
  margin: 0;
  overflow: hidden;
  font-size: 15px;
  line-height: 20px;
  font-weight: var(--w-fw-xl); --w-w: var(--w-fw-xl);
  color: var(--w-text-primary);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.w-memdet-body { display: flex; min-width: 0; flex-grow: 1; flex-direction: column; gap: 12px; margin-top: 8px; }
.w-memdet-secs { display: flex; min-width: 0; flex-direction: column; gap: 16px; margin-top: -8px; padding-bottom: 16px; }
.w-memdet-secs-in { display: flex; min-width: 0; flex-direction: column; gap: 24px; }
.w-memdet-sec { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.w-memdet-label { font-size: 14px; line-height: 20px; font-weight: 500; --w-w: 500; color: var(--w-text-primary); }
.w-memdet-p { margin: 0; }
.w-memdet-md { min-width: 0; }
/* разметка внутри Details */
.w-md { display: grid; grid-template-columns: 1fr; gap: 12px; }
.w-md > * { min-width: 0; }

.w-md .w-md-ul, .w-md .w-md-ol {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 12px;
  padding-left: 32px;
  list-style: disc;
}
.w-md-ol { list-style: decimal; }
.w-md-li { display: list-item; padding-left: 8px; overflow-wrap: break-word; white-space: normal; }
.w-md-p { margin: 0 0 12px; }
.w-md > :last-child { margin-bottom: 0; }
.w-md-h2 { margin: 0; font-size: 18px; line-height: 26px; font-weight: 580; --w-w: 580; }
.w-md-a {
  color: inherit;
  cursor: var(--cds-cursor-interactive);
  text-decoration-line: underline;
  text-decoration-color: hsl(from currentColor h s l / 40%);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--w-dur-fast) var(--w-ease-out);
}
@media (hover: hover) { .w-md-a:hover { text-decoration-color: currentColor; } }
.w-md-code { font-family: var(--w-font-mono, monospace); font-size: 13px; }

/* ── Левая колонка ──────────────────────────────────────────────────────── */
.w-nav {
  display: flex;
  width: 192px;
  flex-shrink: 0;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--w-border);
  background: var(--w-surface-1);
}

.w-nav-search-wrap { flex-shrink: 0; padding: 12px 12px 0; }
.w-search-rel { position: relative; cursor: var(--cds-cursor-interactive); }
/* заголовок окна только для читалки экрана (sr-only у claude.ai) */
.w-dialog-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  font-size: 22px;
  line-height: 28px;
  font-weight: 580; --w-w: 580;
  color: var(--w-text-primary);
}

.w-search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--w-h-control);
  padding: 0 8px;
  border-radius: var(--w-radius);
  background: var(--w-fill-field);
  box-shadow: var(--w-field-ring);
  cursor: text;
  transition: box-shadow var(--w-dur-fast) var(--w-ease);
}
/* классы поля на claude.ai: shadow-field-ring, сверху
   [&:hover:not(:focus-within)]:shadow-field-hover и
   has-[:focus-visible]:shadow-focus. То есть в покое 10%, под курсором
   20%, и пока поле в фокусе наведение не учитывается, как у всех полей. */
@media (hover: hover) { .w-search:hover:not(:focus-within) { box-shadow: var(--w-field-ring-hover); } }
/* кольцо фокуса только у настоящего фокуса с клавиатуры: при открытии
   окна поле уже в фокусе программно (data-initial-focus), кольца нет */
.w-search:has(:focus-visible):not(:has([data-initial-focus])) { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
.w-search .w-icon { flex-shrink: 0; color: var(--w-text-muted); }
.w-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0;
  outline: none;
  color: var(--w-text-primary);
  line-height: 20px;
}
.w-search input::placeholder { color: var(--w-text-muted); }

.w-nav-scroll {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 0 12px 12px;
}

.w-nav-group-title {
  padding: 12px 8px 0;
  font-size: 12px;
  line-height: 17px;
  color: var(--w-text-muted);
}

.w-nav-list { display: flex; flex-direction: column; gap: 1px; margin: 0; padding: 0; list-style: none; }

.w-nav-item {
  display: flex;
  width: 100%;
  height: var(--w-h-control);
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--w-radius);
  background: transparent;
  text-align: left;
  cursor: var(--cds-cursor-interactive);
  color: var(--w-text-secondary);
  /* переходов нет: на claude.ai transition-duration у пункта 0s */
}
@media (hover: hover) { .w-nav-item:hover { background: var(--w-ghost-hover); color: var(--w-text-primary); } }
.w-nav-item[data-selected] {
  background: var(--w-ghost-selected);
  color: var(--w-text-primary);
  font-weight: 500; --w-w: 500;
}
.w-nav-item .w-icon { flex-shrink: 0; color: var(--w-text-secondary); }
.w-nav-item-label { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ── Узкое окно настроек (ширина окна <= 767) ─────────────────────────────
   ЗАМЕРЕНО 26.09 у образца (классы из разметки, числа - Free и Max):
   шапка flex shrink-0 flex-col gap-sm border-b border-alpha-2
   bg-surface-1 px-md pt-md pb-sm = поля 12 12 8, зазор 12, высота 97;
   строка «Settings» flex items-center justify-between gap-md (32 высотой,
   текст text-heading-medium 15/20 вес 500 на 12 от края и 18 от верха
   окна), крестик 32 на 44 от правого края. Полоса вкладок flex
   items-center -mx-px px-px overflow-x-auto без полосы прокрутки, на 56
   от верха окна. Вкладка inline-flex shrink-0 h-control px-md, 14/20 вес
   500, text-muted; подложка ::before inset-y-0 inset-x-px (у первой
   слева 0, у последней справа 0), радиус 8, переход тени duration-fast.
   Наведение (не у выбранной) - text-secondary и подложка
   fill-ghost-hover, выбранная - text-primary и та же подложка, фокус с
   клавиатуры - shadow-focus на подложке, обводки outline нет
   (cds-reset). Страница начинается на 24 от края и 8 под шапкой
   (Appearance: y = верх окна + 105). */
.w-dialog[data-narrow] { flex-direction: column; }
.w-set-head {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 12px;
  padding: 12px 12px 8px;
  border-bottom: 1px solid var(--w-alpha-2);
  background: var(--w-surface-1);
}
.w-set-head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.w-set-head-title {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500; --w-w: 500;
  color: var(--w-text-primary);
}
.w-set-tabs {
  display: flex;
  align-items: center;
  margin: 0 -1px;
  padding: 0 1px;
  overflow-x: auto;
  scrollbar-width: none;
}
.w-set-tabs::-webkit-scrollbar { display: none; }
.w-set-tab {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: var(--w-h-control);
  margin: 0;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500; --w-w: 500;
  white-space: nowrap;
  user-select: none;
  color: var(--w-text-muted);
  cursor: var(--cds-cursor-interactive);
  outline: none;
}
.w-set-tab::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1px;
  right: 1px;
  z-index: -1;
  border-radius: var(--w-radius);
  transition: box-shadow var(--w-dur-fast) cubic-bezier(.4, 0, .2, 1);
}
.w-set-tab:first-child::before { left: 0; }
.w-set-tab:last-child::before { right: 0; }
@media (hover: hover) {
  .w-set-tab:not([data-active]):hover { color: var(--w-text-secondary); }
  .w-set-tab:not([data-active]):hover::before { background: var(--w-ghost-hover); }
}
.w-set-tab[data-active] { color: var(--w-text-primary); }
.w-set-tab[data-active]::before { background: var(--w-ghost-hover); }
.w-set-tab:focus-visible { outline: none; }
.w-set-tab:focus-visible::before { box-shadow: var(--cds-focus-shadow); }

/* ── Правая колонка ─────────────────────────────────────────────────────── */
.w-content {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  background: var(--w-surface-2);
}

.w-content-head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 12px 12px 8px 24px;
}

.w-content-gap { height: 0; flex-shrink: 0; padding: 0 24px; }
.w-content-gap-off { display: none; }
.w-content-close { position: absolute; top: 0; right: 0; z-index: 2; display: flex; height: 56px; align-items: center; padding: 0 12px 0 0; }
.w-content-body { position: relative; display: block; min-height: 0; flex: 1; overflow: hidden; }
.w-pane { position: relative; display: flex; min-height: 0; flex: 1; flex-direction: column; }

.w-scroll-area {
  position: relative;
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 8px 24px 16px;
  scrollbar-gutter: stable;
}

/* полоска затухания сверху: sticky-градиент высотой 8px */
.w-scroll-fade-top {
  pointer-events: none;
  position: sticky;
  top: -8px;
  z-index: 1;
  height: 8px;
  min-width: 0;
  margin: -8px -40px 0;
  background: linear-gradient(to bottom, var(--w-surface-2) 0%, transparent 100%);
}

.w-sections { display: flex; flex-direction: column; }
.w-sections-block, .w-sections-block .w-sections-in { display: block; flex-direction: row; }

.w-sec-wrap { display: flow-root; margin-bottom: 40px; }
.w-none { display: none; margin-bottom: 40px; }
.w-rowwrap { display: flow-root; }
.w-sec-spacer { display: block; }
.w-sec-wrap:last-child { margin-bottom: 0; }
.w-section { margin-bottom: 40px; }
.w-section:last-child { margin-bottom: 0; }

.w-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 16px;
}
.w-section-head-main { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
/* у разделов Billing к этому добавлен overflow-hidden */
.w-section-clip { overflow: hidden; }
/* у клода к заголовку раздела добавлен self-start: он ужимается по тексту,
   а не растягивается на всю колонку (у заголовка страницы h2 этого нет) */
h3.w-section-title { align-self: flex-start; }

.w-section-title {
  margin: 0;
  font-size: 15px;
  line-height: 20px;
  font-weight: 580; --w-w: 580;
  color: var(--w-text-primary);
}

/* разделители: border-top у всех строк группы кроме первой */
.w-group > * + * { border-top: 1px solid var(--w-alpha-1); }
.w-group > .w-rowoff:first-child + * { border-top: 0; }
/* в окне Sharing settings разделитель у claude.ai висит СНИЗУ строки,
   а не сверху следующей */
.w-group-bb { display: flex; flex-direction: column; }
.w-group-bb > * + * { border-top: 0; }
.w-group-bb > * { border-bottom: 1px solid var(--w-alpha-1); }
.w-group-bb > :last-child { border-bottom: 0; }

.w-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* gap-lg у claude.ai это 28, а не 24 */
  gap: 28px;
  padding: 12px 0;
}
.w-row-stacked { flex-direction: column; align-items: normal; justify-content: normal; gap: 12px; }
/* шапка строки с полем на всю ширину: та же раскладка, что у обычной
   строки, но без внешних отступов (они уже на самой строке) */
.w-stack-head { display: flex; align-items: center; justify-content: space-between; gap: 28px; }

.w-row-main {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.w-row-title { color: var(--w-text-primary); }
/* сам текст подписи inline-block, как settings-row-title у claude.ai:
   от этого зависит ширина жёлтой подсветки при переходе из поиска */
.w-row-title-text { display: inline-block; vertical-align: top; }
.w-row-desc { color: var(--w-text-muted); }
.w-row-control { display: flex; flex-shrink: 0; align-items: center; }

/* ── Ссылка в тексте ────────────────────────────────────────────────────── */
svg { vertical-align: middle; }

.w-link {
  color: inherit;
  cursor: var(--cds-cursor-interactive);
  border-radius: 2px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: color var(--w-dur-fast) var(--w-ease-out), text-decoration-color var(--w-dur-fast) var(--w-ease-out);
}
/* при наведении и фокусе подчёркивание становится сплошным цветом текста:
   .cds-text-link:is(:hover, :focus-visible) { --_text-link-line: currentColor } */
.w-link:focus-visible { text-decoration-color: currentColor; }
@media (hover: hover) { .w-link:hover { text-decoration-color: currentColor; } }
/* у ссылки в фокусе с клавиатуры кольцо тенью, а свой контур прозрачный:
   проверено табом на живой странице claude.ai */
.w-link:focus-visible, .w-md-a:focus-visible {
  box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring);
  outline-color: transparent;
}

/* ── Кнопки ───────────────────────────────────────────────────────────────
   Устройство кнопки на claude.ai: сама кнопка прозрачная, заливка и
   "придавливание" живут отдельными слоями под текстом. Слой squish
   оборачивает слой заливки, поэтому при нажатии сжимается и фон.        */
a.w-btn { text-decoration: none; }
.w-btn {
  position: relative;
  isolation: isolate;
  font-size: 14px;
  line-height: 20px;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  user-select: none;
  border: 0;
  background: transparent;
  cursor: var(--cds-cursor-interactive);
  outline: none;
  /* размер по умолчанию: h-control 32, отступы 0 12 (--cds-pad-md),
     радиус 8. Маленький вариант ниже перекрывает на 28 / 0 10 / 7. */
  height: var(--w-h-control);
  padding: 0 12px;
  border-radius: var(--w-radius);
  transition: box-shadow var(--w-dur-fast) var(--w-ease);
}
.w-btn-squish {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform-origin: 50% center;
  transition: transform var(--w-dur-slow) var(--w-spring);
}
/* data-held - кнопку меню держат, а меню уже открыто: :active браузер
   снимает, как только фокус уходит в меню, и придавливание пропадало на
   первом же кадре. У образца (ЗАМЕРЕНО 29.09) .975 держится, пока держат
   (аудит 29.09) */
.w-btn:active .w-btn-squish, .w-btn[data-held] .w-btn-squish {
  transition: transform var(--w-dur-fast) ease-out;
  transform: scale(.975);
}
.w-btn-fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: transparent;
  transition: background-color var(--w-dur-fast) var(--w-ease-out),
              box-shadow var(--w-dur-fast) var(--w-ease-out),
              color var(--w-dur-fast) var(--w-ease-out);
}
.w-btn:focus-visible { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
.w-btn:focus-visible .w-btn-fill { box-shadow: inset 0 0 0 1px var(--w-focus-inset); }
/* [&:disabled:not([aria-busy])]:opacity-disabled, --cds-opacity-disabled = .4 */
/* курсор у отключённой кнопки остаётся pointer: у claude.ai default только
   при aria-disabled/data-disabled, а не при атрибуте disabled */
.w-btn:disabled { pointer-events: none; }
.w-btn:disabled:not([aria-busy]) { opacity: .4; }
/* ожидание: подпись прячется, по центру вертушка (см. Btn busy) */
.w-btn[aria-busy='true'] .w-btn-label { opacity: 0; }
/* ожидание без disabled (Save changes): нажатия гасятся так, как у
   claude.ai - pointer-events none при aria-busy */
.w-btn[aria-busy='true'] { pointer-events: none; }
.w-btn-busy { position: absolute; inset: 0; display: grid; place-items: center; line-height: 0; }
.w-btn[aria-disabled='true'], .w-btn[data-disabled] { cursor: default; }
/* «пока нельзя»: только приглушение, курсор остаётся обычным */
.w-btn-dim { opacity: .4; }

/* подпись кнопки отдельным слоем: внутри неё зазор 4 между текстом и
   значком (gap-1 у claude.ai), а не 6 как у самой кнопки */
.w-btn-label {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 4px;
}

/* призрачная кнопка-иконка (крестик), 32x32 */
.w-btn-icon {
  width: var(--w-h-control);
  height: var(--w-h-control);
  padding: 0;
  border-radius: var(--w-radius);
  color: var(--w-text-primary);
}
/* маленькая кнопка-иконка 28x28 с радиусом 7 (data-size="sm") */
.w-btn-icon-sm { width: var(--w-h-control-sm); height: var(--w-h-control-sm); border-radius: 7px; }

/* как у образца: group-[[aria-haspopup][aria-expanded=true]] - подложка только у
   кнопки меню; Expand просмотра файла (aria-expanded без haspopup) после нажатия
   НЕ подсвечен (хозяин 30.09) */
.w-btn-ghost[aria-haspopup][aria-expanded='true'] .w-btn-fill { background: var(--w-ghost-hover); }
@media (hover: hover) { .w-btn-ghost:hover .w-btn-fill { background: var(--w-ghost-hover); } }

/* маленькие кнопки под изменённым полем: 28px, радиус 7, padding 0 10 */
.w-btn-sm {
  height: var(--w-h-control-sm);
  padding: 0 10px;
  border-radius: 7px;
}
/* самые маленькие (xs, Cancel / Save под правкой сообщения): 24, поля 0 8,
   радиус 6, 13/19 (ЗАМЕРЕНО 27.09 у образца) */
.w-btn-xs {
  height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 19px;
}
.w-btn-primary { color: var(--w-on-primary); font-weight: 500; --w-w: 500; }
/* squish у основной кнопки вровень с кнопкой (inset 0): поджатие на .5px
   как в оригинале давало однократный сдвиг на 0.5-1px при первом наведении -
   браузер заводил composited-слой под transform и перепривязывал субпиксельный
   край, особенно заметно на чёрно-белых кнопках в окнах подтверждения */
.w-btn-primary .w-btn-squish { inset: 0; }
.w-btn-primary .w-btn-fill { background: var(--w-fill-primary); }
@media (hover: hover) { .w-btn-primary:hover .w-btn-fill { background: var(--w-fill-primary-hover); } }
/* опасная кнопка (Cancel в Billing): заливка fill-danger, при наведении
   fill-danger-hover, белый текст весом 500, кольцо фокуса красное */
/* заливная оранжевая (отправка на новом экране, cds variant brand):
   text-on-brand белый, заливка на .5 внутри (inset-[0.5px] у образца),
   fill-brand -> fill-brand-hover под курсором; цвета одни в обеих темах */
.w-btn-brand { color: #fff; font-weight: 500; --w-w: 500; }
.w-btn-brand .w-btn-squish { inset: 0; }
.w-btn-brand .w-btn-fill { inset: .5px; background: var(--w-fill-brand); }
@media (hover: hover) { .w-btn-brand:hover .w-btn-fill { background: var(--w-fill-brand-hover); } }
.w-btn-danger { color: var(--w-on-danger); font-weight: 500; --w-w: 500; }
.w-btn-danger .w-btn-squish { inset: 0; }
/* ЗАМЕРЕНО 24.09: у кнопок тарифов (Get Pro/Max/Team/Enterprise plan) и у
   Upgrade plan в Billing заливка у claude.ai на 0.5 внутри кнопки со всех
   сторон (кнопка 315.33x40 - заливка 314.33x39; 112.41x32 - 111.41x31).
   С inset 0 кнопка выходила на 1px крупнее - хозяин заметил глазом.
   Поджатие делаем на заливке, а не на слое squish, как у образца: squish
   остаётся на целых координатах (он получает transform и становится
   отдельным слоем - как раз его дробный край и давал прыжок при первом
   наведении), а заливка рисуется внутри уже готового слоя. */
.w-plancard-btn.w-btn-primary .w-btn-fill,
.w-teamcard-btn.w-btn-primary .w-btn-fill,
.w-plan-action .w-btn-primary .w-btn-fill { inset: .5px; }
.w-btn-danger .w-btn-fill { background: var(--w-fill-danger); }
@media (hover: hover) { .w-btn-danger:hover .w-btn-fill { background: var(--w-fill-danger-hover); } }
.w-btn-danger:focus-visible,
.w-btn-danger[data-initial-focus]:focus { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring-danger); }
/* ЗАМЕРЕНО: кольцо на hover есть только у окна удаления артефакта
   (S/pv_art_del_confirm_hv*.json) - это "плоское" окно (flat, без обёртки
   .w-confirm-head). У окна удаления аккаунта (тот же danger, тот же
   .w-confirm-foot, но head в обычной обёртке) и у отдельно стоящей
   danger-кнопки (Cancel plan в Billing, ЗАМЕРЕНО S/bd_cancel_hv.json) на
   hover кольца нет. Раньше правило было завязано просто на
   .w-confirm-foot и заодно подсветило Delete account - хотя у образца там
   тишина. Отличаем по разметке: .w-confirm-head есть только у обычных
   окон, у flat его нет вовсе. */
@media (hover: hover) { .w-confirm-body:not(:has(> .w-confirm-head)) .w-confirm-foot .w-btn-danger:hover { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring-danger); } }
@media (hover: hover) { .w-confirm-body:not(:has(> .w-confirm-head)) .w-confirm-foot .w-btn-danger:hover .w-btn-fill { box-shadow: inset 0 0 0 1px var(--w-focus-inset); } }

.w-btn-quiet { color: var(--w-text-primary); }
@media (hover: hover) { .w-btn-quiet:hover .w-btn-fill { background: var(--w-ghost-hover); } }

/* вторичная кнопка (Log out). Снято с живой кнопки claude.ai: слой
   заливки НЕ прозрачный, у него bg-fill-secondary и кольцо shadow-field
   (внутреннее 1px плюс мягкая тень снизу), при наведении заливка
   меняется на fill-secondary-hover. Раньше у нас она была насквозь
   прозрачной, отсюда и разница. */
.w-btn-secondary { color: var(--w-text-primary); font-weight: 400; --w-w: 400; }
.w-btn-secondary .w-btn-fill {
  background: var(--w-fill-secondary);
  box-shadow: var(--w-shadow-field);
}
.w-btn-secondary[aria-haspopup][aria-expanded='true'] .w-btn-fill { background: var(--w-fill-secondary-hover); }
@media (hover: hover) { .w-btn-secondary:hover .w-btn-fill { background: var(--w-fill-secondary-hover); } }

/* выключенный переключатель: прозрачность .4, нажать нельзя */
.w-switch[data-disabled] { opacity: .4; cursor: default; }
@media (hover: hover) { .w-switch[data-disabled]:hover { background: var(--cds-switch-track); } }
@media (hover: hover) { .w-switch[data-checked][data-disabled]:hover { background: var(--cds-fill-accent); } }

/* ── Поле ввода ─────────────────────────────────────────────────────────── */
.w-input {
  height: var(--w-h-control);
  padding: 0 12px;
  border: 0;
  border-radius: var(--w-radius);
  background: var(--w-fill-field);
  box-shadow: var(--w-field-ring);
  color: var(--w-text-primary);
  outline: none;
  transition: box-shadow var(--w-dur-fast) var(--w-ease), background-color var(--w-dur-fast) var(--w-ease);
}
.w-input::placeholder { color: var(--w-text-muted); }
@media (hover: hover) { .w-input:hover:not(:focus) { box-shadow: var(--w-field-ring-hover); } }
.w-input:focus-visible { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }

/* ── Многострочное поле ───────────────────────────────────────────────────
   Обёртка намеренно блочная, а поле inline-block: на claude.ai высота
   обёртки 93px при поле 88px, лишние 5px это подстрочный зазор строки.  */
.w-textarea-outer { display: flex; flex-direction: column; gap: 12px; }
.w-textarea-wrap { position: relative; display: block; line-height: 20px; }
.w-textarea {
  width: 100%;
  display: inline-block;
  vertical-align: baseline;
  min-height: 88px;
  max-height: 160px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--w-radius);
  background: var(--w-fill-field);
  box-shadow: var(--w-field-ring);
  color: var(--w-text-primary);
  resize: none;
  outline: none;
  overflow-y: auto;
  transition: box-shadow var(--w-dur-fast) var(--w-ease);
}
@media (hover: hover) { .w-textarea:hover:not(:focus) { box-shadow: var(--w-field-ring-hover); } }
.w-textarea:focus-visible { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
.w-textarea-phbox {
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 8px 12px;
  color: var(--w-text-muted);
}
.w-textarea-ph {
  position: absolute;
  margin: 0;
  overflow-wrap: break-word;
}
/* Смена подсказки снята покадрово с живого поля claude.ai: обе половины
   пружинные с небольшим перелётом, старая уезжает вверх на 4px и
   гаснет за 465 мс, новая через 300 мс после начала приходит снизу с
   +4px и проявляется за 450 мс. Кадры ниже это сами замеры. */
@keyframes w-ph-out {
  0% { opacity: 1; transform: translateY(0px); }
  5% { opacity: 0.92; transform: translateY(-0.47px); }
  10% { opacity: 0.818; transform: translateY(-1.29px); }
  15% { opacity: 0.66; transform: translateY(-2.42px); }
  20% { opacity: 0.501; transform: translateY(-3.39px); }
  25% { opacity: 0.389; transform: translateY(-3.94px); }
  30% { opacity: 0.272; transform: translateY(-4.34px); }
  35% { opacity: 0.181; transform: translateY(-4.48px); }
  40% { opacity: 0.124; transform: translateY(-4.46px); }
  45% { opacity: 0.07; transform: translateY(-4.35px); }
  50% { opacity: 0.04; transform: translateY(-4.24px); }
  55% { opacity: 0.015; transform: translateY(-4.11px); }
  60% { opacity: 0.002; transform: translateY(-4.02px); }
  65% { opacity: 0; transform: translateY(-3.97px); }
  70% { opacity: 0; transform: translateY(-3.95px); }
  75% { opacity: 0; transform: translateY(-3.94px); }
  80% { opacity: 0; transform: translateY(-3.95px); }
  85% { opacity: 0; transform: translateY(-3.97px); }
  90% { opacity: 0; transform: translateY(-3.98px); }
  95% { opacity: 0; transform: translateY(-3.99px); }
  100% { opacity: 0; transform: translateY(-4px); }
}
@keyframes w-ph-in {
  0% { opacity: 0.005; transform: translateY(4px); }
  5% { opacity: 0.059; transform: translateY(3.69px); }
  10% { opacity: 0.181; transform: translateY(2.71px); }
  15% { opacity: 0.339; transform: translateY(1.62px); }
  20% { opacity: 0.467; transform: translateY(0.82px); }
  25% { opacity: 0.583; transform: translateY(0.2px); }
  30% { opacity: 0.705; transform: translateY(-0.27px); }
  35% { opacity: 0.785; transform: translateY(-0.45px); }
  40% { opacity: 0.863; transform: translateY(-0.47px); }
  45% { opacity: 0.91; transform: translateY(-0.4px); }
  50% { opacity: 0.953; transform: translateY(-0.27px); }
  55% { opacity: 0.977; transform: translateY(-0.16px); }
  60% { opacity: 0.994; transform: translateY(-0.05px); }
  65% { opacity: 1; transform: translateY(0px); }
  70% { opacity: 1; transform: translateY(0.05px); }
  75% { opacity: 1; transform: translateY(0.06px); }
  80% { opacity: 1; transform: translateY(0.05px); }
  85% { opacity: 1; transform: translateY(0.04px); }
  90% { opacity: 1; transform: translateY(0.03px); }
  95% { opacity: 1; transform: translateY(0.01px); }
  100% { opacity: 1; transform: translateY(0px); }
}
.w-ph-out { animation: w-ph-out 465ms linear both; }
.w-ph-in  { animation: w-ph-in 450ms linear 300ms both; }

/* строка кнопок, появляется когда поле изменено */
.w-dirty-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--w-h-control-sm);
}

/* ── Комбобокс (значение и стрелка, подложка только при наведении) ────────
   Стрелка лежит ВНУТРИ кнопки: кнопка 71.4px из 79.4px обёртки, отступ
   между значением и стрелкой 6px, у стрелки свой margin-right 2px,
   у обёртки padding-right 8px.                                          */
.w-row-ctl { display: flex; align-items: center; gap: 8px; }

.w-combo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  height: var(--w-h-control);
  padding-right: 8px;
  border-radius: var(--w-radius);
  background: transparent;
  transition: background-color var(--w-dur-fast) var(--w-ease);
}
.w-combo[data-open] { background: var(--w-ghost-hover); }
@media (hover: hover) { .w-combo:hover { background: var(--w-ghost-hover); } }
.w-combo-btn {
  display: flex;
  min-width: 0;
  flex: 1;
  align-self: stretch;
  align-items: center;
  gap: 6px;
  padding: 0 0 0 8px;
  border: 0;
  background: transparent;
  color: var(--w-text-primary);
  text-align: left;
  cursor: var(--cds-cursor-interactive);
  outline: none;
}
.w-combo-value { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-combo-chevron {
  align-items: center;
  margin-right: 2px;
  flex-shrink: 0;
  color: var(--w-text-muted);
  transition: color .15s var(--w-ease);
}
/* ЗАМЕРЕНО: стрелка темнеет только при НАВЕДЕНИИ, простое открытие без
   курсора над контролом (клавиатурой, или курсор уже отвёлся) её не
   красит - S/cp_combo_open.json снят как раз в таком состоянии */
@media (hover: hover) { .w-combo:hover .w-combo-chevron { color: var(--w-text-secondary); } }
/* тень фокуса у комбобокса висит на ОБЁРТКЕ, а не на внутренней кнопке:
   в исходнике на обёртке стоит has-[:focus-visible]:shadow-focus, а у
   самой кнопки только outline-none. Поэтому кольцо охватывает весь
   контрол целиком, вместе с правым отступом и стрелкой. */
.w-combo:has(:focus-visible) { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
/* вариант комбобокса на подложке поля (Domain allowlist): фон
   fill-field и кольцо field-ring, при наведении меняется только
   кольцо, фон остаётся, ширина во всю строку с потолком 300 */
.w-combo-field {
  width: 100%;
  min-width: 180px;
  max-width: 300px;
  /* ЗАМЕРЕНО: у этого варианта (Domain allowlist) flex-shrink возвращается
     к 1 - базовый .w-combo держит 0 для компактных селектов вроде шрифта */
  flex-shrink: 1;
  background: var(--w-fill-field);
  box-shadow: var(--w-field-ring);
}
.w-combo-field[data-open] { background: var(--w-fill-field); }
@media (hover: hover) { .w-combo-field:hover { background: var(--w-fill-field); } }
@media (hover: hover) { .w-combo-field:hover:not(:has(:focus-visible)) { box-shadow: var(--w-field-ring-hover); } }

/* кнопка-селект со сплошной подложкой при наведении (Chat font).
   ПЕРЕСНЯТО у образца 25.09 (Max и бесплатная учётка, новая вёрстка
   group/cbx): обёртка pl-0 pr-sm (8) gap 6 - подложка наведения и
   кольцо фокуса на ней; внутри кнопка pl-sm (8) gap 6, текст и стрелка
   16x16 с mr-0.5 (2). Итого [8][текст][6][16][2][8]: у «Anthropic
   Serif» коробка 141.42, стрелка 964..980 при правом крае 990.
   Раньше стрелка лежала в квадрате 20x20 при правом поле 2
   ([8][текст][6][2 16 2][2]) - стояла на 5 px правее, коробка на
   5.5 px уже. Обёртку и кнопку сводим в одну кнопку: те же поля. */
.w-select-btn {
  display: inline-flex;
  min-width: 0;
  height: var(--w-h-control);
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--w-radius);
  background: transparent;
  color: var(--w-text-primary);
  /* рука, как у образца (ЗАМЕРЕНО 29.09: button pointer и в покое, и под
     курсором); было default - по старому съёму (аудит 29.09) */
  cursor: var(--cds-cursor-interactive);
  outline: none;
  transition: background-color var(--w-dur-fast) var(--w-ease), box-shadow var(--w-dur-fast) var(--w-ease);
}
.w-select-btn[aria-expanded='true'] { background: var(--w-ghost-hover); }
@media (hover: hover) { .w-select-btn:hover { background: var(--w-ghost-hover); } }
.w-select-btn:focus-visible { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
.w-select-value { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-select-chevron {
  display: inline-flex;
  width: 16px;
  height: 16px;
  margin-right: 2px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  color: var(--w-text-muted);
  transition: color .15s var(--w-ease);
}
/* стрелка Chat font темнеет при наведении и когда меню открыто, как у
   остальных комбобоксов: снято с живого окна (137,135,129 -> 82,81,78) */
.w-select-btn[aria-expanded='true'] .w-select-chevron { color: var(--w-text-secondary); }
@media (hover: hover) { .w-select-btn:hover .w-select-chevron { color: var(--w-text-secondary); } }


/* ── Всплывающее меню ─────────────────────────────────────────────────────
   Ширина комбобокса фиксированная 192px, максимальная высота 320px.
   Внутри: обёртка с padding 4px, затем прокрутка с затуханием у краёв. */
/* подложка всплывашки: во весь экран, прозрачная, ловит курсор,
   чтобы под ней ничего не подсвечивалось */
.w-popover-backdrop { position: fixed; inset: 0; z-index: 59; }

.w-popover {
  position: fixed;
  z-index: 91;
  min-width: 128px;
  display: flex;
  flex-direction: column;
  max-height: var(--w-popup-max-h);
  border-radius: var(--w-radius-card);
  background: var(--w-surface-3);
  box-shadow: var(--w-shadow-panel);
  color: var(--w-text-primary);
  /* появления нет. Снято на живом открытом меню claude.ai: у корня
     всплывашки inline-стиль transition: none, transition-duration 0s,
     animation-name none, opacity 1, scale не задан. Меню просто
     возникает на месте. Анимация есть только у подсказки. */
  opacity: 1;
  transition: none;
}
.w-popover[data-state='closed'] { opacity: 0; }
.w-popover-inner {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border-radius: inherit;
  padding: 4px;
}
/* поле поиска внутри меню: тянется на всю ширину поверх padding обёртки */
.w-popover-search {
  display: block;
  width: calc(100% + 8px);
  flex-shrink: 0;
  margin: -4px -4px 4px -4px;
  padding: 8px 16px;
  border: 0;
  border-bottom: 1px solid var(--w-border);
  background: transparent;
  color: var(--w-text-primary);
  outline: none;
  transition: outline var(--w-dur-base) ease;
}
.w-popover-search::placeholder { color: var(--w-text-muted); }
.w-listbox {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  outline: none;
}
.w-listbox-empty { padding: 6px 12px; color: var(--w-text-muted); user-select: none; }
.w-option {
  display: flex;
  min-height: var(--w-h-control);
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 0;
  border-radius: var(--w-radius);
  background: transparent;
  color: var(--w-text-primary);
  text-align: start;
  cursor: var(--cds-cursor-interactive);
  user-select: none;
  outline: none;
  transition: opacity var(--w-dur-fast) var(--w-ease);
}
.w-option-label { width: 100%; min-width: 0; flex: 0 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* двухстрочный пункт меню: подпись и пояснение 13/17 приглушённым */
.w-option-main { min-width: 0; flex: 1; }
.w-option-lines { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.w-option-sub {
  white-space: normal;
  font-size: 13px;
  line-height: 17px;
  color: var(--w-text-muted);
}
.w-option .w-icon { flex-shrink: 0; color: var(--w-text-accent); }
/* подсветка: до входа мыши горит выбранный пункт, дальше только тот,
   что под курсором; если курсор в меню, но не на пункте, не горит ничто */
.w-option[data-highlighted] { background: var(--w-ghost-hover); }

/* Меню Chat font: контейнер меню и есть колонка с отступом 4. Раньше у
   claude.ai пункты были кнопками; с 25.09 это div role=option внутри
   role=listbox (group/cbx-item), не в порядке Tab - у нас кнопки с
   tabIndex -1, размеры те же: 216x32, поля 4/12, зазор 8, радиус 8. */
.w-select-menu { display: flex; flex-direction: column; padding: 4px; }
/* в фокусе сам список (как role=listbox у образца), кольца у него нет */
.w-select-menu:focus { outline: none; }
.w-select-opt {
  display: flex;
  min-height: var(--w-h-control);
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border: 0;
  border-radius: var(--w-radius);
  background: transparent;
  color: var(--w-text-primary);
  font: inherit;
  text-align: left;
  cursor: default;
  user-select: none;
  outline: none;
}
.w-select-opt[data-highlighted] { background: var(--cds-fill-ghost-hover); }
.w-select-opt-mark { display: flex; flex-shrink: 0; align-items: center; color: var(--cds-text-accent); }
.w-select-opt-label { width: auto; min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* Вариант пункта у «Style»: подпись слева, справа ячейка 24x24, в которой
   лежат друг на друге значок воспроизведения (виден под курсором) и
   галочка выбранного. Снято с живого меню claude.ai. */
.w-vopt-main { min-width: 0; flex: 1; }
.w-vopt-line { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; }
.w-vopt-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-vopt-slot { display: grid; width: 24px; height: 24px; flex-shrink: 0; cursor: var(--cds-cursor-interactive); place-items: center; }
.w-vopt-bars { display: block; flex-shrink: 0; grid-column-start: 1; grid-row-start: 1; overflow: visible; color: var(--cds-text-accent); opacity: 0; }
.w-vopt-bars-dim { color: var(--cds-text-secondary); }
.w-vopt-bar { transform-box: fill-box; transform-origin: 50% center; }
.w-option[data-highlighted] .w-vopt-bars { opacity: 1; }
.w-vopt-mark { grid-column-start: 1; grid-row-start: 1; display: flex; align-items: center; color: var(--w-text-accent); opacity: 1; }
.w-option[data-highlighted] .w-vopt-mark { opacity: 0; }
.w-vopt-check { display: none; flex-shrink: 0; color: var(--w-text-accent); }
.w-vopt-check .w-icon { display: flex; }


/* меню варианта Popover (Chat font): отступ у самого списка */
.w-popover-plain, .w-popover-plain .w-popover-inner,
.w-popover-menu .w-popover-inner { display: block; flex-direction: row; }
/* прозрачная нижняя граница в толщину внутреннего кольца есть только у
   МЕНЮ: в тёмной теме --cds-ring-inner равен 1px, из-за него меню там
   на пиксель выше, чем в светлой. Это не артефакт съёмки. */
.w-popover-menu .w-popover-inner { border-bottom: var(--cds-ring-inner) solid transparent; }
.w-popover-menu .w-popover-inner { overflow: auto; flex-grow: 0; scrollbar-width: thin; scrollbar-color: var(--w-scrollbar) transparent; }
.w-menu-list { display: block; }
.w-popover-plain .w-popover-inner { padding: 0; overflow: auto; }

/* ── Сегментированный контрол ───────────────────────────────────────────── */
.w-seg {
  position: relative;
  display: inline-flex;
  width: fit-content;
  flex-shrink: 0;
  align-items: stretch;
  height: var(--w-h-control);
  padding: 1px;
  border-radius: var(--w-radius);
  background: var(--w-seg-track);
}
.w-seg-clip { pointer-events: none; position: absolute; inset: 0; overflow: clip; border-radius: var(--w-radius); }
.w-seg-thumb {
  position: absolute;
  left: 0;
  top: 1px;
  bottom: 1px;
  transform-origin: left;
  border-radius: calc(var(--w-radius) - 1px);
  background: var(--w-seg-thumb);
  box-shadow: var(--w-seg-thumb-shadow);
}
.w-seg-item {
  position: relative;
  z-index: 1;
  display: inline-flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: calc(var(--w-radius) - 2px);
  background: transparent;
  color: var(--w-text-muted);
  cursor: var(--cds-cursor-interactive);
  user-select: none;
  outline: none;
  transition: box-shadow var(--w-dur-fast) var(--w-ease);
}
.w-seg-item-text { padding: 0 12px; }
.w-seg-item-icon { width: 30px; }
@media (hover: hover) { .w-seg-item:hover { color: var(--w-text-primary); } }
.w-seg-item[data-checked] { color: var(--w-text-primary); }
.w-seg-item:focus-visible { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
/* фокус живёт на скрытом radio, кольцо рисуем на видимой кнопке */
.w-seg-input { position: fixed; width: 1px; height: 1px; top: 0; left: 0; padding: 0; margin: -1px; overflow: hidden; white-space: nowrap; border: 0; clip: rect(0 0 0 0); clip-path: inset(50%); appearance: none; }
.w-seg-item:has(+ .w-seg-input:focus-visible):not(:has(+ .w-seg-input[data-mouse='1'])) { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }

/* ── Радиокнопки в окне выключения памяти ─────────────────────────────────
   Снято с окон «Turn off memory» и «Turn off sensitive topics»:
   подложка surface-0 с отступом 16 и радиусом 16, между вариантами 8,
   кружок 20x20 (у выбранного заливка accent и точка 10x10, у прочих
   рамка 1px 20%, под курсором 40%), подпись 14/20 и пояснение
   13/17.875 вторичным приглушённым цветом.                           */
.w-mmoff-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: var(--w-surface-0);
}
.w-mmoff-group { display: flex; flex-direction: column; gap: 8px; }
.w-mmoff-radio {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: var(--cds-cursor-interactive);
}
.w-mmoff-mark {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 1px solid var(--cds-border-strong);
  border-radius: calc(infinity * 1px);
  background: transparent;
}
@media (hover: hover) { .w-mmoff-radio:hover .w-mmoff-mark { border-color: var(--cds-border-stronger); } }
.w-mmoff-mark[data-checked] {
  border: 0;
  background: var(--w-accent);
}
@media (hover: hover) { .w-mmoff-radio:hover .w-mmoff-mark[data-checked] { background: var(--w-accent-hover); } }
.w-mmoff-dot {
  display: none;
  width: 10px;
  height: 10px;
  border-radius: calc(infinity * 1px);
  background: #fff;
}
.w-mmoff-mark[data-checked] .w-mmoff-dot { display: block; }
.w-mmoff-text { display: flex; min-width: 0; flex-direction: column; }
.w-mmoff-name { font-size: 14px; line-height: 20px; color: var(--w-text-primary); }
.w-mmoff-desc { font-size: 13px; line-height: 17.875px; color: var(--w-text-muted); }
/* настоящий radio спрятан рядом, кольцо фокуса рисуем на кружке */
.w-mmoff-input {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0;
  white-space: nowrap;
  appearance: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}
.w-mmoff-radio:has(+ .w-mmoff-input:focus-visible) .w-mmoff-mark {
  box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring);
}

/* ── Тумблер ────────────────────────────────────────────────────────────── */
.w-switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  width: 36px;
  height: 20px;
  padding: 2px;
  border: 0;
  border-radius: calc(infinity * 1px);
  background: var(--w-switch-track);
  cursor: var(--cds-cursor-interactive);
  outline: none;
  /* у дорожки перехода нет: снято с claude.ai, transition-duration 0s.
     Цвет меняется мгновенно, движется только бегунок. */
}
@media (hover: hover) { .w-switch:hover { background: var(--w-switch-track-hover); } }
.w-switch[data-checked] { background: var(--w-accent); }
@media (hover: hover) { .w-switch[data-checked]:hover { background: var(--w-accent-hover); } }
.w-switch:focus-visible { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
.w-switch-knob {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: calc(infinity * 1px);
  background: var(--w-switch-knob);
  box-shadow: var(--w-shadow-knob);
  /* transition-transform duration-snap ease-overshoot:
     .12s cubic-bezier(.34, 1.3, .64, 1); у claude.ai в списке свойств
     перехода transform, translate, scale и rotate, а смещение задано
     свойством translate */
  transition-property: transform, translate, scale, rotate;
  transition-duration: var(--w-dur-snap);
  transition-timing-function: var(--w-ease-overshoot);
}
.w-switch[data-checked] .w-switch-knob { translate: 16px; }

/* ── Аватар ───────────────────────────────────────────────────────────────
   Разметка и классы сняты из исходника claude.ai:
     кнопка  relative block overflow-hidden rounded-full outline-none
             focus-visible:shadow-focus
     обёртка block transition duration-fast
             group-hover/avatar:opacity-40
             group-hover/avatar:blur-[3px]
             group-hover/avatar:scale-[1.15]
             и то же самое на group-has-[:focus-visible]
     накладка pointer-events-none absolute inset-0 flex items-center
             justify-center rounded-full opacity-0
             transition-opacity duration-fast
             group-hover/avatar:opacity-100
   У накладки СВОЕЙ подложки нет: буква не закрывается, а уходит в
   прозрачность .4 с размытием 3px и увеличением 1.15, и значок
   проступает прямо сквозь неё. Длительность duration-fast, .06s.   */
.w-avatar-btn {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: calc(infinity * 1px);
  background: transparent;
  overflow: hidden;
  cursor: var(--cds-cursor-interactive);
  outline: none;
}
.w-avatar-btn:focus-visible { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
.w-avatar-inner {
  display: block;
  transition: opacity var(--w-dur-fast) var(--w-ease),
              filter var(--w-dur-fast) var(--w-ease),
              scale var(--w-dur-fast) var(--w-ease);
}
/* у claude.ai увеличение задано свойством scale, а не transform:
   вычисленный transform у аватара остаётся none.
   Считается по всей обёртке (group/avatar): рядом с кнопкой лежит кружок
   очистки, и наведение на него поднимает накладку точно так же. */
.w-avatar-wrap:has(:focus-visible) .w-avatar-inner {
  opacity: .4;
  filter: blur(3px);
  scale: 1.15;
}
@media (hover: hover) { .w-avatar-wrap:hover .w-avatar-inner {
  opacity: .4;
  filter: blur(3px);
  scale: 1.15;
} }
.w-avatar {
  display: inline-flex;
  overflow: hidden;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: calc(infinity * 1px);
  background: var(--w-fill-control);
  color: var(--w-text-primary);
  font-weight: 500; --w-w: 500;
  user-select: none;
}
.w-avatar-overlay {
  pointer-events: none;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: calc(infinity * 1px);
  color: var(--w-text-primary);
  opacity: 0;
  transition: opacity var(--w-dur-fast) var(--w-ease);
}
.w-avatar-overlay > span { color: var(--w-text-secondary); }
.w-avatar-wrap:has(:focus-visible) .w-avatar-overlay { opacity: 1; }
@media (hover: hover) { .w-avatar-wrap:hover .w-avatar-overlay { opacity: 1; } }
/* Загрузка новой картинки (ЗАМЕРЕНО по коду аватара образца, вариант с
   фото, c71860c77 сохранённой сборки): сразу видна выбранная картинка
   (object URL), сама она на .4 (opacity-40 duration-fast), по центру вместо
   значка правки cds Spinner md - 16, кольцо 1.75, цвета border / muted,
   подпись «Loading»; пункты меню отключены. Размытия и увеличения при этом
   нет - их даёт только наведение в старом виде (тут оно глушится) */
.w-avatar-wrap[data-busy] .w-avatar-inner { opacity: .4; filter: none; scale: 1; }
.w-avatar-wrap[data-busy] .w-avatar-overlay { opacity: 1; }
.w-avatar-wrap[data-busy] .w-avatar-btn { cursor: default; }
.w-avatar-wrap[data-busy] .w-avatar-clear-wrap { opacity: 0; pointer-events: none; }

/* ── Аватар с картинкой ───────────────────────────────────────────────────
   Картинка лежит в той же обёртке, что и буква, и режется круглой кнопкой
   с overflow: hidden. При наведении обёртка растёт до 1.15, поэтому
   картинка 40x40 выходит коробкой 46x46 и обрезается по кругу.
   Слева сверху, за пределами кнопки, лежит кружок очистки 18x18: он тоже
   всплывает по наведению на группу.                                    */
.w-avatar-img {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  vertical-align: middle;
  /* подложка под картинкой: у claude.ai это сплошной цвет самого аватара,
     он один и тот же в обеих темах */
  background: var(--w-avatar-bg);
}
.w-avatar-clear-wrap {
  position: absolute;
  top: -6px;
  left: -6px;
  width: 18px;
  height: 18px;
  opacity: 0;
  transition: opacity var(--w-dur-fast) var(--w-ease);
}
.w-avatar-wrap:has(:focus-visible) .w-avatar-clear-wrap { opacity: 1; }
@media (hover: hover) { .w-avatar-wrap:hover .w-avatar-clear-wrap { opacity: 1; } }
.w-avatar-clear {
  display: flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: calc(infinity * 1px);
  background: var(--w-surface-3);
  box-shadow: 0 0 0 1px var(--w-border);
  color: var(--w-text-primary);
  cursor: var(--cds-cursor-interactive);
  outline: none;
  /* ЗАМЕРЕНО у Max 25.09 (класс из кода образца): transition-colors
     duration-fast, outline-none, focus-visible:shadow-focus - кольцо
     тенью ПОСЛЕ своей кромки ring-1, без синей обводки outline */
  transition: color var(--w-dur-fast) cubic-bezier(.4, 0, .2, 1), background-color var(--w-dur-fast) cubic-bezier(.4, 0, .2, 1);
}
@media (hover: hover) { .w-avatar-clear:hover { background: var(--w-ghost-hover); } }
.w-avatar-clear:focus-visible { box-shadow: 0 0 0 1px var(--w-border), var(--cds-focus-shadow); }

/* ── Кольцо фокуса ────────────────────────────────────────────────────────
   Правило claude.ai один в один:

     .can-focus, a, button, input, textarea {
       outline: 2px solid hsla(var(--accent-100) / 0%);
       outline-offset: 2px;
     }
     .can-focus:focus-visible,
     a:not([role=menuitem]):not(.hide-focus-ring):focus-visible,
     button:not([role=menuitem]):not(.hide-focus-ring):focus-visible,
     input:not(.hide-focus-ring):not(.cds-input):focus-visible,
     textarea:not(.hide-focus-ring):not(.cds-input):focus-visible {
       outline: 2px solid hsl(var(--accent-100));
       transition: outline .2s !important;
     }
     :where(.cds-root) .cds-reset:focus,
     :where(.cds-root) .cds-reset:focus-visible { outline: none }

   То есть кольцо висит всегда, но прозрачное, поэтому переход идёт
   плавно, без скачка. --accent-100 это blue-500 в светлой теме и
   blue-350 в тёмной. У контролов со своей тенью фокуса outline снят. */
a, button, input, textarea, [role='radio'], [role='switch'] {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
/* ВАЖНО: из правила с !important контролы со своей тенью фокуса должны
   быть ИСКЛЮЧЕНЫ - ровно как у claude.ai, где стоит :not(.cds-input).
   Было наоборот: outline им снимали отдельным правилом ниже, а
   "transition: outline .2s !important" оставался и убивал их
   собственный переход тени. ЗАМЕРЕНО: у образца при клике в поле
   кольцо приезжает переходом box-shadow 0.06s (промежуточный кадр
   rgba(42,120,214,0.02) поймал), у нас же оно возникало разом -
   computed transition поля в фокусе был "outline 0.2s" вместо
   "box-shadow 0.06s ..." */
:is(a, button, input, textarea, [role='radio'], [role='switch']):focus-visible:not(
  .w-btn, .w-input, .w-textarea, .w-combo-btn, .w-select-btn, .w-seg-item,
  .w-switch, .w-avatar-btn, .w-search input, .w-popover-search, .w-listbox,
  .w-option, .w-search-result, .w-imp-paste, .w-composer-input,
  .w-sb-row, .w-sb-ctl, .w-sb-secbtn, .w-sb-user, .w-sb-logo, .w-pal-input, .w-pal-opt,
  .w-pal-tab, .w-pal-fchip-x, .w-chip-btn, .w-avatar-clear,
  .w-cmp-input, .w-tile-open, .w-mact, .w-tile-x, .w-pv-close, .w-set-tab, .w-rec-sinput, .w-chat-head-input,
  .w-rec-link, .w-msg-edit-ta, .w-up-row-btn, .w-link, .w-pdf-open, .w-find-input, .w-findd-input,
  .w-sheet-open, .w-oseg-item, .w-osvg-zoom button, .w-pp-btn, .w-avc-tile, .w-crop-box,
  [role='menuitem'], [role='menuitemradio']) {
  outline: 2px solid var(--w-focus-outline);
  transition: outline var(--w-dur-base) ease !important;
}
/* аналог .cds-reset: у этих кольца нет, у них своя тень фокуса */
.w-btn:focus-visible,
.w-input:focus-visible,
.w-textarea:focus-visible,
.w-combo-btn:focus-visible,
.w-select-btn:focus-visible,
.w-seg-item:focus-visible,
.w-switch:focus-visible,
.w-avatar-btn:focus-visible,
.w-search input:focus-visible,
.w-popover-search:focus-visible,
.w-listbox:focus-visible,
.w-option:focus-visible,
.w-search-result:focus-visible,
.w-imp-paste:focus-visible,
.w-composer-input:focus-visible,
/* поле правки сообщения: у образца outline-none, кольцо - у пузыря
   (focus-within:shadow-focus); без исключения была двойная рамка */
.w-msg-edit-ta:focus-visible,
/* строка окна Uploads: у образца outline-none, кольцо своё (inset accent) */
.w-up-row-btn:focus-visible,
/* левая панель и поиск: у образца на них hide-focus-ring - общей обводки
   нет, у каждого своё кольцо (ЗАМЕРЕНО 26.09 Tab-ом, обе темы). Раньше
   общее правило рисовало им сплошную обводку 2px поверх своего кольца -
   хозяин увидел её по Shift после щелчка */
.w-sb-row:focus-visible,
.w-sb-ctl:focus-visible,
.w-sb-secbtn:focus-visible,
.w-sb-user:focus-visible,
.w-sb-logo:focus-visible,
.w-pal-input:focus-visible,
.w-pal-opt:focus-visible,
/* ссылка строки Recents: у образца cds-reset + focus-visible:outline-hidden,
   кольцо - только shadow-focus на всю строку. Хозяин 27.09 (Shift после
   меню строки): у нас поверх кольца стояла ещё обводка 2px с отступом 2 -
   двойная рамка. Проверка всего окна на такие двойные и обрезанные кольца -
   tmp/pw_focus_audit.py */
.w-rec-link:focus-visible,
/* кнопка внутри PDF-плитки: кольцо рисует сама плитка (.w-pdf-card:
   focus-within, can-focus-within образца), а общее правило давало кнопке
   вторую обводку, целиком срезанную рамкой плитки (pw_focus_audit 29.09:
   CLIP) */
.w-pdf-open:focus-visible,
/* выдача файлов (30.09): у карточки-листа кольцо на всей карточке
   (has-[>button:focus-visible]:shadow-focus образца), у переключателя
   Preview / Code и кнопок масштаба SVG - своя тень */
.w-sheet-open:focus-visible,
.w-oseg-item:focus-visible { outline: none; }
.w-pp-btn:focus-visible, .w-avc-tile:focus-visible, .w-crop-box:focus-visible, .w-cslider-thumb:focus-visible { outline: none; }

/* ── Значки ───────────────────────────────────────────────────────────────
   Глиф шрифта, как у claude.ai: у них узел значка это span с
   font-family Anthropicons-Variable, line-height равным кеглю и
   font-feature-settings: "liga" 0. Ось оптического размера браузер
   подставляет сам по кеглю.                                          */
@font-face {
  font-family: 'Anthropicons';
  src: url(vendor/fonts/anthropicons.woff2) format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: block;
}
/* Fizzy Lake - НОВЫЕ значки claude.ai (25.10, см. CLAUDE.md): первый шрифт
   стека, прежний Anthropicons - запасной (глифы, которых нет в Fizzy), ниже
   него svg из WALL_ICONS, если не загрузился ни один */
@font-face {
  font-family: 'AnthropiconsFizzy';
  src: url(vendor/fonts/anthropicons-fizzy.woff2) format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: block;
}
/* ЗАМЕРЕНО у claude.ai: значок рядом с "Anthropic Sans"/"English"/"Buttery"
   в Preferences не подсвечивается при выделении текста мышью (текст
   рядом - подсвечивается), у любого значка везде стоит user-select:none
   на самом span. У нас базовый .w-icon этого не имел - выделялся вместе
   с текстом строки. */
.w-icon { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; user-select: none; }
.w-icon svg { display: block; fill: currentColor; }
.w-icon-glyph {
  font-family: 'AnthropiconsFizzy', 'Anthropicons';
  font-style: normal;
  line-height: 1;
  font-feature-settings: 'liga' 0;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

/* ── Подсказка ────────────────────────────────────────────────────────────
   Снято из исходника claude.ai (класс всплывашки и её варианты):
     rounded-[calc(.375rem*rem-scale)]  -> радиус 6
     px-2 py-1.5                        -> отступы 6px 8px, по факту 3px 8px
     text-[.8125rem]/[1.125rem]         -> 13/18, вес обычный
     bg-[--cds-tooltip-bg] text-[--cds-tooltip-fg]
     shadow-sm, в тёмной dark:shadow-panel-sm
     data-[starting-style]:opacity-0 data-[starting-style]:scale-[0.98]
     duration-snap ease-snap            -> .12s cubic-bezier(.32,.72,0,1)
   Появление: side "top", align "center", sideOffset 4, задержка 300мс
   (замер настоящим курсором дал 313мс), закрытие 200мс.              */
.w-tooltip {
  position: fixed;
  /* было 70 - подсказки во вложенных окнах (.w-confirm z 81: «Crop photo»,
     «Zoom in / out») рисовались ПОД окном, хозяин 09.10: «нету подсказки».
     Выше окон, ниже меню (91) */
  z-index: 88;
  pointer-events: none;
  transform-origin: bottom center;
  translate: -50% -100%;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--w-tooltip-bg);
  color: var(--w-tooltip-fg);
  font-size: 13px;
  line-height: 18px;
  font-weight: 400; --w-w: 400;
  /* у claude.ai подсказка не однострочная: min-h 24, max-w 240 и
     text-balance, длинный текст переносится */
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 240px;
  text-wrap: balance;
  box-shadow: var(--w-shadow-tooltip);
  opacity: 1;
  scale: 1;
  transition: opacity var(--w-dur-snap) var(--w-ease-snap),
              scale var(--w-dur-snap) var(--w-ease-snap);
}
.w-tooltip[data-state='closed'] { opacity: 0; scale: .98; }
/* открытая подсказка ловит курсор - на неё можно навестись, и она не
   закроется (у образца pointer-events-auto у корня, Base UI hoverable,
   ЗАМЕРЕНО 03.10 на «+»); гаснущая - мимо курсора */
.w-tooltip[data-state='open'] { pointer-events: auto; }
/* строка подсказки: у claude.ai <span class="min-w-0 break-words"> (ЗАМЕРЕНО
   25.09) - длинное слово переносится, а не вылезает за рамку */
.w-tip-text { min-width: 0; overflow-wrap: break-word; }
/* подсказка это тёмная область (cds-dark-scope): ось веса переменного
   шрифта в ней понижена на 40 и в светлой теме тоже, поэтому надпись в
   подсказке одной ширины в обеих темах */
.w-tooltip, .w-tooltip * { font-variation-settings: 'GRAD' 0, 'wght' calc(var(--w-w, 400) - 40) !important; }

/* ── Поиск по настройкам ──────────────────────────────────────────────────
   Всё снято из исходника окна поиска claude.ai:
     всплывашка: side "bottom", align "start", sideOffset 4,
                 padding "none", класс "!max-w-none w-[280px]"
     внутренний блок: max-h-[min(320px,available)] overflow-y-auto p-1
     строка: класс пункта меню плюс "h-auto !px-1 py-1.5 text-left"
     строка-раздел: значок + название, второй строкой (если совпадение
                    внутри ровно одно) "truncate pl-[calc(20px+gap-sm)]
                    text-footnote text-muted"
     вложенная строка: "pl-[calc(20px+gap-sm)]", то есть 32px
     совпадение красится, вариант "accent", а не жирнится
     пусто: "flex min-h-[120px] flex-col items-center justify-center
             gap-sm px-md text-center text-muted" и значок размера xl
   Больше трёх совпадений в разделе сворачиваются в строку "+N more". */
.w-search-results {
  position: absolute;
  z-index: 20;
  /* всплывашка встаёт ровно под полем: левый край в левый край,
     отступ вниз 4 (side bottom, align start, sideOffset 4) */
  left: 0;
  top: calc(100% + 4px);
  width: 280px;
  border-radius: var(--w-radius-card);
  background: var(--w-surface-3);
  box-shadow: var(--w-shadow-panel);
  color: var(--w-text-primary);
  cursor: auto;
}
/* внутри всплывашки два слоя: прокрутка на всю высоту и подложка с
   отступом 4, как у claude.ai */
.w-search-results-scroll {
  overflow: auto;
  flex-grow: 1;
  border-radius: inherit;
}
.w-search-results-inner {
  max-height: var(--w-popup-max-h);
  overflow-y: auto;
  padding: 4px;
}
.w-search-result {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border: 0;
  border-radius: var(--w-radius);
  background: transparent;
  color: var(--w-text-primary);
  text-align: left;
  cursor: var(--cds-cursor-interactive);
  user-select: none;
  outline: none;
}
.w-search-result[data-highlighted] { background: var(--w-ghost-hover); }
.w-search-result-col { display: flex; min-width: 0; flex: 1; flex-direction: column; }
/* строка внутри колонки не тянется, а одиночная вложенная строка да */
.w-search-result-col > .w-search-result-line { flex-grow: 0; }
.w-search-result-line { display: flex; min-width: 0; flex: 1; align-items: center; gap: 12px; }
.w-search-result-label { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-search-result .w-icon { flex-shrink: 0; color: var(--w-text-secondary); }
.w-search-result-sub {
  padding-left: calc(20px + 12px);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 17px;
  color: var(--w-text-muted);
}
.w-search-result-nested { padding-left: calc(20px + 12px); }
.w-search-result-more { color: var(--w-text-muted); }
.w-search-mark { color: var(--w-text-accent); }
.w-search-empty {
  display: flex;
  min-height: 120px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 12px;
  text-align: center;
  color: var(--w-text-muted);
}

/* ── Метка строки, к которой перешли из поиска ────────────────────────────
   Один в один из claude.ai. На саму строку вешается feature-anchor-row-fill
   (жёлтая заливка 22%, inset 4px -4px, радиус 6), на её заголовок
   feature-anchor-highlight (волнистое подчёркивание высотой 5px под
   строкой, маска нарисована svg-волной 8x5 с повтором по горизонтали).
   Обе анимации 1.95s ease-out forwards, классы снимаются через 2050мс.
   Прокрутка: scrollIntoView({block:"center", behavior:"smooth"}), а при
   СИСТЕМНОЙ уменьшенной анимации "instant" (при Motion: Reduced - smooth,
   код em образца смотрит только matchMedia).                                   */
.w-anchor-underline { position: relative; }
.w-anchor-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 5px;
  background: var(--w-warning);
  pointer-events: none;
  clip-path: inset(0 100% 0 0);
  animation: 1.95s ease-out forwards w-anchor-underline;
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'8'%20height%3D'5'%3E%3Cpath%20d%3D'M0%202.5%20Q2%200.75%204%202.5%20Q6%204.25%208%202.5'%20fill%3D'none'%20stroke%3D'black'%20stroke-width%3D'1.3'%20stroke-linecap%3D'round'%2F%3E%3C%2Fsvg%3E");
  mask-size: 8px 5px;
  mask-repeat: repeat-x;
}
.w-anchor-fill { isolation: isolate; position: relative; }
.w-anchor-fill::before {
  content: "";
  position: absolute;
  inset: 4px -4px;
  z-index: -1;
  border-radius: 6px;
  background: color-mix(in srgb, var(--w-warning) 22%, transparent);
  pointer-events: none;
  opacity: 0;
  animation: 1.95s ease-out forwards w-anchor-fill;
}
@keyframes w-anchor-underline {
  0%    { clip-path: inset(0 100% 0 0); opacity: 1; }
  17.9% { clip-path: inset(0);          opacity: 1; }
  53.8% { clip-path: inset(0);          opacity: 1; }
  100%  { clip-path: inset(0);          opacity: 0; }
}
@keyframes w-anchor-fill {
  0%    { opacity: 0; }
  17.9% { opacity: 1; }
  53.8% { opacity: 1; }
  100%  { opacity: 0; }
}
/* Уменьшенное движение (ПЕРЕСНЯТО 29.09 у Max, CSS + rAF): при СИСТЕМНОЙ
   настройке заливка и подчёркивание стоят без хода на 1 и пропадают через
   2050 мс; при Motion: Reduced (data-reduce-motion) у образца их не видно
   вовсе - анимация .01 мс кончается на конечном кадре (0), своего правила
   для атрибута у него нет. У нас было наоборот (аудит 29.09) */
@media (prefers-reduced-motion: reduce) {
  .w-anchor-underline::after { clip-path: inset(0); opacity: 1; animation: none; }
  .w-anchor-fill::before { opacity: 1; animation: none; }
}

/* ── Раздел Account ───────────────────────────────────────────────────────
   Всё снято с живого окна claude.ai: разметка, классы, вычисленные стили.

   Подпись под заголовком раздела: 13/17, вторичный цвет (у строк подпись
   приглушённая, а у раздела именно вторичная).                       */
.w-section-desc {
  font-size: 13px;
  line-height: 17px;
  color: var(--w-text-secondary);
}
/* строка-заглушка это тоже ребёнок группы, поэтому отступы 12 с обеих
   сторон (py-md перекрывает pt-md) */
.w-empty-note { padding: 12px 0; }
.w-empty-note > div { color: var(--w-text-muted); }

/* ── Вступление раздела Privacy ───────────────────────────────────────────
   Снято с живого окна claude.ai: колонка с зазором 16 и нижним отступом
   24, внутри заголовок 15/20 вес 580 и абзац 14/20 вторичным цветом со
   ссылками, ниже список раскрывашек с разделителями alpha-1.        */
.w-intro { display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.w-intro-head { display: flex; flex-direction: column; gap: 12px; }
.w-intro-text { margin: 0; color: var(--w-text-secondary); }

/* divide-y у claude.ai вешает НИЖНЮЮ рамку на всех кроме последнего,
   поэтому на 1px выше оказывается первый элемент, а не второй */
.w-accordions > *:not(:last-child) { border-bottom: 1px solid var(--w-alpha-1); }
.w-accordions > * { display: flex; flex-direction: column; }
.w-accordion-btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px 0;
  border: 0;
  border-radius: var(--w-radius);
  background: transparent;
  font: inherit;
  text-align: left;
  color: var(--w-text-primary);
  cursor: var(--cds-cursor-interactive);
  outline: none;
}
.w-accordion-btn:focus-visible { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
/* контейнер делаем flex, иначе глиф садится на базовую линию строки и
   кнопка становится 45 вместо 44 */
.w-accordion-chevron { display: flex; flex-shrink: 0; color: var(--w-text-muted); }
/* раскрытие мгновенное, без перехода по высоте: у claude.ai панель просто
   появляется, animation none и никаких переходов на ней нет */
.w-accordion-panel { padding-bottom: 12px; }
.w-accordion-list {
  margin: 0;
  padding: 4px 0 0 24px;
  list-style: disc;
  color: var(--w-text-primary);
}
.w-accordion-list > li:not(:last-child) { margin-bottom: 4px; }
.w-accordion-list p { margin: 0; color: var(--w-text-secondary); }

/* значок в конце подписи кнопки (Manage со стрелкой) */
.w-btn-icon-end { margin-inline-end: -4px; }

/* ── Раздел Claude Code ───────────────────────────────────────────────────
   Карточка приглашения: слева блок 208 шириной с радиусом 16 на
   подложке surface-0 и отступами 16, внутри поле 176x176 на surface-3
   с радиусом 8 и картинкой 128, ниже подпись 14/20 вес 580 и строка
   13/17 вторичным. Справа колонка с заголовком 22/28 вес 580,
   абзацем 14/20 вторичным, полем со ссылкой и примечанием.

   Поле со ссылкой на шаг крупнее: 40 в высоту, радиус 10, текст 15/22,
   отступы 0 6 0 16, зазор 12, внутри справа основная кнопка 28 с
   радиусом 4 и отступами 0 10.

   Превью тем кода: две колонки по 12, в каждой комбобокс на подложке
   поля и коробка 94 в высоту с радиусом 8 и рамкой 1px. Внутри диф из
   четырёх строк 13/19 моноширинным: номера слева, удалённая строка на
   красноватой подложке, добавленная на зеленоватой. Цвета сняты с
   живого компонента отдельно для светлой и тёмной темы кода.       */
.w-invite { display: flex; flex-direction: row; gap: 24px; padding: 12px 0; }
.w-invite-side { flex-shrink: 0; }
.w-invite-card {
  width: fit-content;
  overflow: hidden;
  padding: 16px;
  border-radius: 16px;
  background: var(--w-surface-0);
}
.w-invite-art { margin-bottom: 12px; padding: 24px; border-radius: 8px; background: var(--w-surface-3); }
.w-invite-art-inner { display: flex; width: 128px; height: 128px; align-items: center; justify-content: center; }
.w-invite-art-inner > svg { display: block; flex-shrink: 0; }
.w-invite-art-inner > img { display: block; flex-shrink: 0; overflow: clip; vertical-align: middle; }
.w-invite-art-inner .w-picto-hl { fill: var(--w-picto-highlight); }
.w-invite-meta { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.w-invite-name { margin: 0; font-weight: 580; --w-w: 580; color: var(--w-text-primary); }
.w-invite-left { margin: 0; font-size: 13px; line-height: 17px; color: var(--w-text-secondary); }
.w-invite-main { display: flex; flex: 1; flex-direction: column; gap: 12px; }
.w-invite-head { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
/* у крупного заголовка (font-xl-bold) вес зависит от темы: 580 в светлой, 600 в тёмной */
.w-invite-title { margin: 0; font-size: 22px; line-height: 28px; font-weight: var(--w-fw-xl); --w-w: var(--w-fw-xl); color: var(--w-text-primary); }
.w-invite-text { margin: 0; color: var(--w-text-secondary); }
.w-invite-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }

.w-field-lg {
  display: inline-flex;
  width: 66.6667%;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 6px 0 16px;
  border-radius: 10px;
  background: var(--w-fill-field);
  box-shadow: var(--w-field-ring);
  font-size: 15px;
  line-height: 22px;
  color: var(--w-text-primary);
  cursor: text;
}
@media (hover: hover) { .w-field-lg:hover:not(:has(:focus-visible)) { box-shadow: var(--w-field-ring-hover); } }
/* кольцо фокуса только от клавиатуры: клик по вложенной кнопке Copy link
   не должен подсвечивать поле (has-[:focus-visible] у claude.ai) */
.w-field-lg:has(:focus-visible) { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
.w-field-lg input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  outline: none;
}
/* вложенная кнопка внутри поля */
.w-field-end { display: flex; flex-shrink: 0; align-items: center; gap: 12px; color: var(--w-text-muted); }
.w-btn-nested { height: 28px; padding: 0 10px; border-radius: 4px; font-weight: 500; --w-w: 500; }

.w-code-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 12px 0; }
/* комбобокс темы занимает всю ширину колонки */
.w-code-col > .w-combo-field { max-width: none; flex-shrink: 1; }
.w-combo-fixed > .w-combo { flex-shrink: 1; }
.w-code-col { display: flex; min-width: 0; flex-direction: column; gap: 12px; }
.w-code-preview {
  min-height: 94px;
  overflow: clip;
  border: 1px solid var(--w-border);
  border-radius: 8px;
}
.w-diff-wrap { min-width: 0; color: #0b0b0b; }
.w-diff-font { min-width: 0; font-size: 13px; line-height: 19px; }
.w-diff-host { display: block; }
/* цвет текста в превью задан самой темой кода, а не темой окна */
.w-diff-light-host { background: #ffffff; color: #1a1a1a; }
.w-diff-dark-host { background: #1a1a19; color: #eaecf0; }
.w-diff-wrap-dark, .w-diff-wrap-dark .w-diff-font { color: #f0efec; }

.w-diff {
  display: grid;
  grid-template-columns: auto 1fr;
  /* превью 94 = 1 + 8 + 4*19 + 8 + 1, отступы сверху и снизу по 8 */
  padding: 8px 0;
  font-family: var(--w-font-mono);
  font-size: 13px;
  line-height: 19px;
}
.w-diff-num { padding: 0 8px; text-align: right; }
.w-diff-code { padding-right: 8px; white-space: pre; }
/* светлая тема кода */
.w-diff-light { background: #ffffff; color: #1a1a1a; }
.w-diff-light .w-diff-num { color: #898781; }
.w-diff-light .w-diff-num.w-d { background: lab(95.1251 5.98194 1.56764); color: #cd2054; }
.w-diff-light .w-diff-num.w-a { background: lab(96.1422 -4.49419 3.60789); color: #1e9e3c; }
.w-diff-light .w-diff-code.w-d { background: lab(93.5005 7.96964 2.09055); }
.w-diff-light .w-diff-code.w-a { background: lab(94.8566 -5.99852 4.81089); }
.w-diff-light .k { color: #c5621b; }
.w-diff-light .f { color: #0073e6; }
.w-diff-light .p { color: #737373; }
.w-diff-light .i { color: #1a1a1a; }
.w-diff-light .t { color: #8e6bd9; }
.w-diff-light .s { color: #1e9e3c; }
/* тёмная тема кода */
.w-diff-dark { background: #1a1a19; color: #eaecf0; }
.w-diff-dark .w-diff-num { color: #898781; }
.w-diff-dark .w-diff-num.w-d { background: lab(16.3532 11.4024 5.4563); color: #ff2c56; }
.w-diff-dark .w-diff-num.w-a { background: lab(19.2446 -9.62436 8.75465); color: #32d74b; }
.w-diff-dark .w-diff-code.w-d { background: lab(18.7266 15.2647 7.04135); }
.w-diff-dark .w-diff-code.w-a { background: lab(22.5818 -12.771 11.4391); }
.w-diff-dark .k { color: #cc7bf4; }
.w-diff-dark .f { color: #70b8ff; }
.w-diff-dark .p { color: #d3d7de; }
.w-diff-dark .i { color: #eaecf0; }
.w-diff-dark .t { color: #fbad60; }
.w-diff-dark .s { color: #9be963; }
.w-diff-dark .prm { color: #f7ab5f; }

/* таблица токенов: первая колонка 225, последняя 48, строка выше обычной */
.w-table-tokens { min-width: 493px; }
.w-table.w-table-tokens th:nth-child(1) { width: 225px; }
.w-table.w-table-tokens th:nth-child(2) { width: auto; }
.w-table.w-table-tokens th:nth-child(3) { width: 48px; text-align: right; }
.w-table.w-table-tokens td:nth-child(2) { white-space: normal; }
.w-token-app { display: flex; min-height: 48px; min-width: 0; flex-direction: column; justify-content: center; gap: 4px; }
.w-token-when { font-size: 13px; line-height: 17px; color: var(--w-text-secondary); }
.w-token-scopes { display: flex; flex-wrap: wrap; gap: 8px; white-space: normal; }
/* чип размера sm: 20 в высоту, радиус 5 */
.w-chip.w-chip-sm { height: 20px; border-radius: 5px; font-size: 12px; line-height: 15px; font-weight: 500; --w-w: 500; cursor: help; }
.w-chip-mono-sm { background: var(--w-bg-neutral); color: var(--w-text-secondary); font-family: var(--w-font-mono); }
.w-chip-sm-txt { display: block; padding-bottom: 0.6px; white-space: nowrap; }

/* ── Раздел Memory ────────────────────────────────────────────────────────
   Этот раздел устроен иначе: у него собственная прокрутка и прижатая к
   низу строка ввода, поэтому обычная область прокрутки окна тут без
   отступов и без прокрутки.

   Снято с живого окна claude.ai: заголовок 15/20 вес 580 с отступами
   4 сверху и 12 слева и нижним 16, четыре строки в блоке с боковыми
   отступами 12, дальше группы с зазором 8 и верхним отступом 24, в
   каждой подпись 14/20 вес 580 с отступом слева 12 и таблица.

   Таблица: те же ячейки, что в списке сессий, но с минимальной шириной
   576 и колонками 208 / остаток / 176 / 96, шапка спрятана. Строка
   кликабельная, справа две кнопки 28x28 (карандаш e064 и корзина
   e101) с зазором 9 и отрицательным отступом 3, появляются только при
   наведении на строку.

   Строка ввода: пилюля радиусом 24 с рамкой 1px и тенью shadow-sm,
   справа круглая кнопка 32 со стрелкой e013 16px; пока поле пустое
   она неактивна и красится в alpha-2 с приглушённым значком.       */
.w-scroll-area-plain { padding: 0; overflow-y: hidden; scrollbar-gutter: auto; }
.w-memory-page { display: flex; height: 100%; min-height: 0; flex-direction: column; }
.w-memory-head { display: flex; height: 56px; flex-shrink: 0; align-items: center; gap: 12px; padding: 0 16px; }
/* в узком окне полосы под крестик нет: заголовок «Memory» на 4 под шапкой
   (ЗАМЕРЕНО 26.09 у Max при 767: шапка до 137, текст «Memory» y 141,
   x 40) */
.w-dialog[data-narrow] .w-memory-head { display: none; }
.w-memory-head-bar { flex-grow: 1; }
.w-memory-scroll {
  /* затенение краёв тут вдвое крупнее, чем в меню: scroll-fade-size-12
     это 48px, но сверху оно подрезано шестёркой сетки, то есть 24px.
     Снято с живого списка (S/mm_scroll_fade.json). */
  --w-fade-size: 48px;
  --w-fade-top: min(calc(var(--w-fade-top-raw) * var(--w-fade-active)), 24px);
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 16px 16px;
  scroll-padding-block-start: 24px;
}
.w-memory-inner { display: flex; min-height: 0; flex: 1; flex-direction: column; margin-left: -4px; }
.w-memory-title {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 4px 0 0 12px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 580; --w-w: 580;
  color: var(--w-text-primary);
}
.w-memory-top { padding: 0 12px; }
.w-memory-group { display: flex; flex-direction: column; gap: 8px; padding-top: 24px; }
.w-memory-group-title {
  margin: 0;
  padding-left: 12px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 580; --w-w: 580;
  color: var(--w-text-primary);
}
.w-memory-table-wrap { margin: 0 -16px -8px; padding: 0 16px 8px; overflow-x: auto; scrollbar-gutter: stable; }
.w-table-mem { min-width: 576px; }
.w-table-mem tbody tr { cursor: var(--cds-cursor-interactive); }
.w-table-mem tbody tr:focus-visible { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); outline: none; }
.w-mem-name { display: flex; min-width: 0; align-items: center; gap: 12px; }
.w-mem-summary { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-mem-actions { display: inline-flex; align-items: center; gap: 9px; margin-right: -3px; }

.w-memory-composer { flex-shrink: 0; padding: 0 12px 12px; }
/* ячейки таблицы памяти НЕ режут содержимое, в отличие от списка сессий */
.w-table.w-table-mem td { overflow: visible; }
/* в таблицах памяти разделители это настоящие границы ячеек, а не
   градиент на строке; при наведении они гасятся у самой строки и у
   предыдущей (border-b) */
.w-table.w-table-mem tbody tr, .w-table.w-table-lines tbody tr { background-image: none; }
.w-table.w-table-mem td, .w-table.w-table-lines td { border-top-color: var(--w-alpha-1); border-bottom-color: var(--w-alpha-1); }
@media (hover: hover) { .w-table.w-table-mem tbody tr[data-hoverable]:hover td, .w-table.w-table-lines tbody tr[data-hoverable]:hover td { border-color: transparent; } }
@media (hover: hover) { .w-table.w-table-mem tbody tr:has(+ tr[data-hoverable]:hover) td,
.w-table.w-table-lines tbody tr:has(+ tr[data-hoverable]:hover) td { border-bottom-color: transparent; } }
/* ── Строка ввода внизу страницы памяти ──────────────────────────────────
   Снято с claude.ai узел в узел. Снаружи полоса с отступом 0/12/12,
   внутри колонка: пустая область сообщений, свёрнутая подсказка
   (max-height 0, отступы по бокам 16) и подложка цвета surface-2 с
   ещё одним отступом 0/12/12. Сама рамка радиусом 24 с обрезкой,
   заливкой surface-3, ПЕРЕВЁРНУТОЙ границей 1px (в светлой теме белая
   10%, в тёмной чёрная 10%) и тенью.

   Внутри рамки: полоса вложений высотой 0 и поле. Поле получает высоту
   из встроенного стиля (48 для одной строки), textarea лежит в нём
   абсолютно в окошке inset 8/44/0/16, сама она шире окошка на 28 и
   сдвинута вниз на 6. Кнопка отправки абсолютная в правом нижнем
   углу с отступом 8. */
.w-composer-col { display: flex; min-width: 0; flex-direction: column; }
.w-composer-hint {
  max-height: 0;
  margin-bottom: 0;
  padding: 0 16px;
  transition: all var(--w-dur-base) var(--w-ease-out) 200ms;
}
.w-composer-surface { position: relative; background: var(--w-surface-2); }
.w-composer-pad { flex-shrink: 0; padding: 0 12px 12px; }
.w-composer-box {
  overflow: hidden;
  border: 1px solid var(--w-alpha-2);
  border-radius: 24px;
  background: var(--w-surface-3);
  box-shadow: var(--w-shadow-composer);
  cursor: text;
  transition: border-radius 280ms cubic-bezier(.32, .72, 0, 1),
              border-color var(--w-dur-base) var(--w-ease),
              box-shadow var(--w-dur-base) var(--w-ease);
}
/* граница рамки ввода усиливается и под курсором, и в фокусе: 10% в
   покое, 20% при наведении и в фокусе (эталоны mm_comp_hv, mm_send_hv,
   mm_comp_fcm). Тень добавляется только в фокусе. */
.w-composer-box:focus-within { border-color: var(--w-border-strong); }
@media (hover: hover) { .w-composer-box:hover { border-color: var(--w-border-strong); } }
.w-composer-box:focus-within { box-shadow: var(--w-shadow-composer-focus); }
.w-composer-above { height: 0; overflow: hidden; transition: height 280ms cubic-bezier(.32, .72, 0, 1); }
.w-composer-field {
  position: relative;
  height: 48px;
  min-width: 0;
  background: var(--w-surface-3);
  transition: height 280ms cubic-bezier(.32, .72, 0, 1);
}
.w-composer-ta { position: absolute; overflow: hidden; inset: 8px 44px 0 16px; }
.w-composer-input {
  position: absolute;
  top: 0;
  right: -28px;
  left: 0;
  max-height: 200px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--w-text-primary);
  font: inherit;
  outline: none;
  overflow: hidden;
  resize: none;
  transform: translate(0, 6px);
  white-space: pre-wrap;
}
.w-composer-input::placeholder { color: var(--w-text-muted); }
.w-composer-sendpos { position: absolute; right: 8px; bottom: 8px; }
.w-composer-sendwrap {
  position: relative;
  display: flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  overflow: hidden;
  border-radius: 16px;
}
.w-composer-send {
  position: relative;
  display: flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--w-fill-brand);
  color: var(--w-on-brand);
  cursor: var(--cds-cursor-interactive);
  transition: background-color var(--w-dur-fast) var(--w-ease);
}
@media (hover: hover) { .w-composer-send:hover { background: var(--w-fill-brand-hover); } }
/* кольцо у кнопки отправки своё: синяя рамка 2px ВНУТРЬ, без свечения
   (эталон mm_send_on_fc, одинаково в обеих темах) */
.w-composer-send:focus-visible { box-shadow: inset 0 0 0 2px var(--w-accent); }
.w-composer-send:disabled {
  background: var(--w-alpha-2);
  color: var(--w-text-muted);
  cursor: not-allowed;
}


/* ── Раздел Capabilities ──────────────────────────────────────────────────
   Карточка списка доменов: радиус 12, подложка alpha-1, рамка 1px
   alpha-2, внутренние отступы 24 и зазор 24.

   Плашка с пояснением внутри карточки: подложка surface-1, кольцо 1px
   alpha-1 снаружи, радиус 12, отступы 12 и 16, зазор 8, слева значок
   20px вторичным цветом.

   Поле ввода домена и кнопка Add тут КРУПНЕЕ обычных: высота 40,
   радиус 10, боковые отступы 16.                                    */
.w-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--w-alpha-2);
  border-radius: var(--w-radius-card);
  background: var(--w-alpha-1);
}
.w-card-group { display: flex; flex-direction: column; gap: 8px; }
/* строка добавленного домена: ЗАМЕРЕНО на claude.ai (Capabilities,
   Allow network egress -> Additional allowed domains), S/cp_domain_chip.json.
   Внешний слой даёт рамку и радиус (--w-alpha-3 10->20%, --w-alpha-2 фон),
   внутренний со своим более светлым фоном (--w-alpha-1) и отступом 8/12 -
   средний div между ними в эталоне пустой, без своего оформления. */
.w-domainchip { display: flex; flex-direction: column; overflow: auto; background: var(--w-alpha-2); border: 1px solid var(--w-alpha-3); border-radius: 12px; }
.w-domainchip-mid { display: flex; align-items: center; justify-content: space-between; }
/* ширина 100%, а не flex-grow: у claude.ai flexGrow этого узла остаётся
   0 (ЗАМЕРЕНО), полную ширину даёт явный width */
.w-domainchip-row { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--w-alpha-1); border-radius: inherit; }
/* ЗАМЕРЕНО: при наведении на строку домена внутренний слой темнеет до
   --w-alpha-2 (10%), как и внешний фон чипа - двух заметных градаций нет */
@media (hover: hover) { .w-domainchip:hover .w-domainchip-row { background: var(--w-alpha-2); } }
.w-egress { padding: 12px 0; }
.w-egress-inner { display: flex; flex-direction: column; gap: 16px; }

.w-note {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--w-radius-card);
  background: var(--w-surface-1);
  box-shadow: var(--w-card-ring);
  color: var(--w-text-primary);
}
.w-note-icon {
  display: flex;
  min-height: 1lh;
  flex-shrink: 0;
  align-items: center;
  color: var(--w-text-secondary);
}
.w-note-body { display: flex; min-width: 0; flex: 1; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; }
.w-note-text { max-width: 100%; min-width: 0; flex: 1 1 auto; }

.w-field-col { display: flex; flex-direction: column; }
.w-field-row { display: flex; align-items: center; gap: 8px; }
/* поле и кнопка тут на шаг крупнее: 40 в высоту, радиус 10, боковые
   отступы 16 и текст 15/22 */
.w-input-lg {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 22px;
  flex: 1;
}
.w-btn-lg {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 22px;
}
/* подпись строки, разложенная в колонку (flex flex-col gap-1.5) */
.w-desc-stack { display: flex; flex-direction: column; gap: 6px; }
.w-skills-note { padding: 12px 0; font-size: 13px; line-height: 17px; color: var(--w-text-secondary); }

/* ── Раздел Billing ───────────────────────────────────────────────────────
   Строка тарифа: отступы 12 сверху и снизу, зазоры 12 по вертикали и 32
   по горизонтали, слева пиктограмма 64 и колонка с зазором 6
   (заголовок 15/20 вес 580, строка 14/20 обычным цветом, примечание
   13/17 вторичным), справа вторичная кнопка, прижатая к верху.

   Платёж: обёртка с отступами 12, внутри колонка с зазором 20, в ней
   строка со значком карты 24 (радиус 21%) и подписью через зазор 8.

   Счета: таблица border-collapse, шапка 14/20 ВЕС 700 обычным цветом,
   ячейки с отступами 8 сверху и снизу, без разделителей.             */
.w-plan-row {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding: 12px 0;
}
.w-plan-main { display: flex; align-items: center; gap: 16px; }
.w-plan-col { display: flex; min-width: 0; flex-direction: column; gap: 6px; text-align: start; }
.w-plan-title { margin: 0; font-size: 15px; line-height: 20px; font-weight: 580; --w-w: 580; color: var(--w-text-primary); }
.w-plan-sub { margin: 0; color: var(--w-text-primary); }
.w-plan-note { margin: 0; font-size: 13px; line-height: 17px; color: var(--w-text-secondary); }
.w-plan-action { display: flex; height: 100%; align-items: flex-start; }
.w-pictogram { display: block; flex-shrink: 0; color: var(--w-text-primary); }
.w-pictogram .w-picto-hl { fill: var(--w-picto-highlight); }

.w-pay-row { padding: 12px 0; }
.w-pay-inner { display: flex; flex-direction: column; gap: 20px; }
.w-pay-line {
  display: flex;
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.w-pay-card { display: flex; align-items: center; gap: 8px; color: var(--w-text-primary); }
.w-pay-logo { display: block; flex-shrink: 0; }
.w-pay-card svg { flex-shrink: 0; border-radius: 21%; }

/* обёртка таблицы это прямой ребёнок группы, поэтому получает те же
   отступы 12 сверху и снизу, что и обычные строки (py-md) */
.w-invoices { padding: 12px 0; overflow-x: auto; }
.w-invoice-table { width: 100%; border-collapse: collapse; }
.w-invoice-table thead tr { text-align: left; }
.w-invoice-table th { padding: 8px 0; }
/* подпись в шапке весом 500, а не жирным по умолчанию у th */
.w-invoice-head { font-size: 14px; line-height: 20px; font-weight: 500; --w-w: 500; color: var(--w-text-primary); }
.w-invoice-table td { padding: 8px 0; color: var(--w-text-primary); }
.w-invoice-table td:first-child { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-invoice-cell { display: flex; align-items: center; gap: 4px; }
.w-invoice-info { display: flex; color: var(--w-text-secondary); }
/* ссылка со своим цветом, как View в счетах */
.w-link-accent { color: var(--w-text-accent); }
/* ссылка внутри приглушённой подписи всё равно вторичного цвета */
.w-link-secondary { color: var(--w-text-secondary); }

/* многострочная подсказка (цена и налог у счёта): отступы 6 и 8,
   колонка с зазором 2, строки внутри через 4 */
.w-tooltip-rich {
  overflow-wrap: anywhere;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-height: 0;
  padding: 6px 8px;
  white-space: normal;
}
/* содержимое подсказки у суммы счёта: у claude.ai обёртка это строка с
   зазором 8 и выравниванием по центру, внутри обычный блок с двумя
   строками; выравнивание самой подложки normal, а не stretch */
.w-tooltip-rich { align-items: normal; }
.w-tooltip-rich .w-tip-scope > span { display: flex; align-items: center; gap: 8px; }
.w-tooltip-rich .w-tip-lines { display: block; }
.w-tip-lines > div > div:not(:last-child) { margin-bottom: 4px; }

/* ── Чип ──────────────────────────────────────────────────────────────────
   h-control-nested 22, rounded-chip = 22/4 = 5.5, px-sm 8, gap 4.
   Синий вариант: подложка bg-tint-blue, текст text-accent, 12/15 вес 500.
   Ровный вариант (идентификатор организации): подложка alpha-1, 14/20. */
.w-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 8px;
  border-radius: 5.5px;
  vertical-align: middle;
  white-space: nowrap;
  flex-shrink: 0;
}
.w-chip-blue {
  background: var(--w-tint-blue);
  color: var(--w-text-accent);
  font-size: 12px;
  line-height: 15px;
  font-weight: 500; --w-w: 500;
}
/* Идентификатор организации. Снято с живого чипа claude.ai: моноширинный
   шрифт, вторичный цвет, подложка bg-neutral, 12/15 вес 500, переполнение
   срезано. При наведении подложка становится bg-neutral-hover, справа
   проявляется значок копирования, а сам текст уходит под маску, чтобы
   значок не налезал на буквы. */
.w-chip-mono {
  position: relative;
  max-width: 100%;
  overflow: hidden;
  background: var(--w-bg-neutral);
  color: var(--w-text-secondary);
  font-family: var(--w-font-mono);
  font-size: 12px;
  line-height: 15px;
  font-weight: 500; --w-w: 500;
  transition: color .15s var(--w-ease), background-color .15s var(--w-ease);
}
.w-chip-mono > span { white-space: nowrap; }
/* поле профиля 224, а в узком окне (<= 380) не шире места в строке: поле
   налезало на подпись «Username», чип User ID вылезал за строку на 13-33
   px (аудит 29.09) */
.w-profile-input { width: 224px; max-width: 100%; min-width: 0; }
.w-row-control:has(> .w-profile-input), .w-row-control:has(.w-chip-mono) { flex-shrink: 1; min-width: 0; }
.w-row-control:has(.w-chip-mono) .w-chip-btn { max-width: 100%; min-width: 0; }
.w-row:has(> .w-row-control > .w-profile-input, > .w-row-control .w-chip-mono) > .w-row-main { min-width: min-content; }
.w-chip-mono > span { overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) { .w-chip-btn:hover .w-chip-mono { background: var(--w-bg-neutral-hover); } }
.w-chip-btn[data-copied='true'] .w-chip-text {
  mask-image: linear-gradient(to left, transparent, transparent 20px, #000 40px);
}
@media (hover: hover) { .w-chip-btn:hover .w-chip-text {
  mask-image: linear-gradient(to left, transparent, transparent 20px, #000 40px);
} }
.w-chip-copy {
  position: absolute;
  right: 2px;
  top: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  color: var(--w-text-secondary);
  opacity: 0;
}
.w-chip-copy svg { position: absolute; right: 2px; flex-shrink: 0; opacity: 0; }
@media (hover: hover) { .w-chip-btn:hover .w-chip-copy svg { opacity: 1; } }
.w-chip-btn[data-copied='true'] .w-chip-copy svg { opacity: 1; }
@media (hover: hover) { .w-chip-btn:hover .w-chip-copy { opacity: 1; } }
/* после копирования значок меняется на галочку и красится в accent,
   сам текст при этом НЕ меняется, держится 2000мс */
.w-chip-btn[data-copied='true'] .w-chip-copy { opacity: 1; color: var(--w-text-accent); }
.w-chip-btn {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 5.5px;
  cursor: var(--cds-cursor-interactive);
  outline: none;
}
.w-chip-btn:focus-visible { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }

/* ── Таблица сессий ───────────────────────────────────────────────────────
   Обёртка выходит за поля на 12px (mx-outset), внутри прокрутка по
   горизонтали с затуханием по краям и полями -8/+8, чтобы кольцо фокуса
   не обрезалось. Шапка 32, ячейка 32 по содержимому плюс 8/12 отступы.

   Разделителя в виде рамки НЕТ: у строк все рамки прозрачные, а линия
   рисуется фоном сверху строки, шириной 100% минус два отступа ячейки:
     bg-top bg-no-repeat
     bg-[linear-gradient(var(--cds-alpha-1), var(--cds-alpha-1))]
     [background-size: calc(100% - 2*var(--cds-pad-md)) 1px]
   и гасится у выделенной, активной и наведённой строки и у следующей
   за ними.                                                           */
/* обёртка таблицы сидит внутри блока с отступами 12 сверху и снизу */
.w-table-pad { padding: 12px 0; }
.w-table-outer { min-width: 0; margin: 0 -12px; }
.w-table-scroll {
  margin: -8px;
  padding: 8px;
  overflow-x: auto;
}
.w-table {
  width: 100%;
  min-width: 648px;          /* inline min-width у таблицы claude.ai */
  table-layout: fixed;       /* table-fixed */
  border-collapse: separate;
  border-spacing: 0;
  white-space: nowrap;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400; --w-w: 400;
  color: var(--w-text-primary);
}
.w-table th {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 17px;
  font-weight: 500; --w-w: 500;
  color: var(--w-text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-table td {
  height: 28px;
  box-sizing: content-box;
  padding: 8px 12px;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  vertical-align: middle;
}
.w-table tbody tr:not(:first-child) td { border-top-width: 0; }
/* ЗАМЕРЕНО в таблице Uploaded files: при наведении на строку (не первую)
   claude.ai добавляет border-top 1px прозрачным - сам разделитель у этой
   таблицы рисуется фоновым градиентом (ниже), а этот бордер невидим и
   нужен только чтобы высота строки не менялась, когда фон-разделитель на
   hover гаснет (см. background-image: none у [data-hoverable]:hover) */
@media (hover: hover) { .w-table.w-table-files tbody tr[data-hoverable]:hover td {
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: transparent;
} }
/* ЗАМЕРЕНО: при фокусе (мышью или клавиатурой) на любую кнопку строки
   (открывающую беседы или удаляющую файл) тот же бордер, но ВИДИМЫЙ -
   тем же цветом, что у обычного разделителя */
.w-table.w-table-files tbody tr[data-hoverable]:has(button:focus-visible) td {
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: var(--w-alpha-1);
}
.w-table tbody tr {
  position: relative;
  background-image: linear-gradient(var(--w-alpha-1), var(--w-alpha-1));
  background-repeat: no-repeat;
  background-position: top;
  background-size: calc(100% - 24px) 1px;
}
.w-table tbody tr:first-child { background-image: none; }
@media (hover: hover) { .w-table tbody tr[data-hoverable]:hover,
.w-table tbody tr[data-hoverable]:hover + tr { background-image: none; } }
/* gap-sm в ячейке это 12, а не 8 (замерено на живой таблице) */
.w-table-cell { display: flex; min-width: 0; align-items: center; gap: 12px; }
/* truncate у claude.ai: три свойства на самом span, а не на ячейке */
.w-truncate { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-nowrap { white-space: nowrap; }
/* в таблице сессий основным цветом набрано только устройство, остальные
   колонки вторичным */
.w-td-secondary { color: var(--w-text-secondary); }
.w-td-muted { color: var(--w-text-muted); }
/* шапка только для читалки экрана */
.w-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* область для читалки экрана в описании строки: та же sr-only, но
   display block (у claude.ai это span.sr-only[role=status]) */
.w-sr-live {
  position: absolute;
  display: block;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
/* подпись «(opens in new tab)» у ссылки наружу: у claude.ai она
   sr-only, но с display none, поэтому размер 0x0 */
.w-blank-note {
  position: absolute;
  display: none;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.w-table-actions { text-align: right; }
/* обёртка кнопок строки, как у claude.ai: relative inline-flex align-middle */
.w-btn-wrap { position: relative; display: inline-flex; max-width: 100%; vertical-align: middle; }
/* корзина у токенов красная (text-danger) */
.w-icon-danger { color: var(--w-text-danger); }
/* ширины колонок: третья и четвёртая по 170, последняя 48, первые две
   делят остаток поровну (inline style="width" у соответствующих th) */
.w-table th:nth-child(3),
.w-table th:nth-child(4) { width: 170px; }
.w-table th:nth-child(5) { width: 48px; }
.w-table th > span { cursor: help; }
/* шапка срезается многоточием, как truncate у claude.ai */
.w-table th { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-table td { overflow: hidden; background-clip: padding-box; }
.w-table thead { text-align: left; }

/* наведение на строку: подложка fill-ghost-hover на всех ячейках, у
   крайних скругляются внешние углы, разделители гасятся у самой строки
   и у следующей за ней (см. group-hover/cdsrow у claude.ai) */
@media (hover: hover) { .w-table tbody tr[data-hoverable]:hover td { background-color: var(--w-ghost-hover); } }
@media (hover: hover) { .w-table tbody tr[data-hoverable]:hover td:first-child {
  border-top-left-radius: var(--w-radius);
  border-bottom-left-radius: var(--w-radius);
} }
@media (hover: hover) { .w-table tbody tr[data-hoverable]:hover td:last-child {
  border-top-right-radius: var(--w-radius);
  border-bottom-right-radius: var(--w-radius);
} }

/* кнопка действий строки не видна, пока на строке нет курсора: у
   claude.ai обёртка кнопки стоит с opacity 0 и проявляется по
   наведению на строку, по фокусу с клавиатуры и пока открыто меню */
.w-row-actions {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  opacity: 0;
}
.w-row-actions:has(:focus-visible),
.w-row-actions:has([aria-expanded='true']) { opacity: 1; }
@media (hover: hover) { .w-table tbody tr[data-hoverable]:hover .w-row-actions { opacity: 1; } }
/* Ячейка с кнопкой действий в таблицах сеансов: наружный слой шириной 24
   держит место и виден всегда, а гаснет и проявляется по наведению
   внутренний, по ширине самой кнопки. */
.w-act-cell { position: relative; display: inline-flex; width: 24px; vertical-align: middle; }
.w-act-fade { display: flex; min-width: auto; vertical-align: middle; opacity: 0; }
.w-chip-cur { display: flex; }
.w-act-cell:has(:focus-visible) .w-act-fade,
.w-act-cell:has([aria-expanded='true']) .w-act-fade { opacity: 1; }
@media (hover: hover) { .w-table tbody tr[data-hoverable]:hover .w-act-fade { opacity: 1; } }

/* пункт всплывающего меню строки: 32 в высоту, отступы 6/10, радиус 8.
   Опасный пункт красный, под подсветкой заливается fill-danger. */
.w-menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 8px;
  height: var(--w-h-control);
  padding: 6px 10px;
  border: 0;
  border-radius: var(--w-radius);
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400; --w-w: 400;
  text-align: start;
  color: var(--w-text-primary);
  cursor: var(--cds-cursor-interactive);
  user-select: none;
  outline: none;
}
.w-menu-item[data-highlighted] { background: var(--w-ghost-hover); }
/* фокус в меню настоящий (на самом меню и на пункте), но кольца нет:
   ЗАМЕРЕНО у claude.ai - у div role=menu и у пункта в фокусе с
   клавиатуры outline none и box-shadow none, видна только заливка */
.w-popover-menu:focus, .w-menu-item:focus { outline: none; }
@media (hover: hover) { .w-menu-item:hover { background: var(--w-ghost-hover); } }
/* ЗАМЕРЕНО: пункт-заглушка со спиннером не кликабелен (S/pv_menu_loading.json) */
.w-menu-item[data-disabled] { cursor: default; }
.w-menu-item-off { opacity: var(--cds-opacity-disabled); pointer-events: none; }
.w-menu-danger { color: var(--w-text-danger); }
.w-menu-danger[data-highlighted] {
  background: var(--w-fill-danger);
  color: var(--w-on-danger);
}

/* горизонтальное затухание у прокрутки таблицы, по той же ленте */
@property --w-fade-left-raw  { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --w-fade-right-raw { syntax: '<length>'; inherits: false; initial-value: 0px; }
@property --w-fade-x-active  { syntax: '<number>'; inherits: false; initial-value: 0; }
@keyframes w-fade-left  { 0% { --w-fade-left-raw: 0px; }
                          100% { --w-fade-left-raw: var(--w-fade-size); } }
@keyframes w-fade-right { 0% { --w-fade-right-raw: var(--w-fade-size); }
                          100% { --w-fade-right-raw: 0px; } }
@keyframes w-fade-x-active { 0%, 100% { --w-fade-x-active: 1; } }
.w-fade-x {
  --w-fade-size: 28px;
  --w-fade-left: calc(var(--w-fade-left-raw) * var(--w-fade-x-active));
  --w-fade-right: calc(var(--w-fade-right-raw) * var(--w-fade-x-active));
  mask-image: linear-gradient(to right,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, .05) calc(var(--w-fade-left) * .15),
    rgba(0, 0, 0, .15) calc(var(--w-fade-left) * .3),
    rgba(0, 0, 0, .3)  calc(var(--w-fade-left) * .45),
    rgba(0, 0, 0, .5)  calc(var(--w-fade-left) * .6),
    rgba(0, 0, 0, .7)  calc(var(--w-fade-left) * .75),
    rgba(0, 0, 0, .85) calc(var(--w-fade-left) * .87),
    rgb(0, 0, 0) var(--w-fade-left),
    rgb(0, 0, 0) calc(100% - var(--w-fade-right)),
    rgba(0, 0, 0, .85) calc(100% - var(--w-fade-right) * .87),
    rgba(0, 0, 0, .7)  calc(100% - var(--w-fade-right) * .75),
    rgba(0, 0, 0, .5)  calc(100% - var(--w-fade-right) * .6),
    rgba(0, 0, 0, .3)  calc(100% - var(--w-fade-right) * .45),
    rgba(0, 0, 0, .15) calc(100% - var(--w-fade-right) * .3),
    rgba(0, 0, 0, .05) calc(100% - var(--w-fade-right) * .15),
    rgba(0, 0, 0, 0));
}
@supports (animation-timeline: scroll()) {
  .w-fade-x {
    animation-name: w-fade-left, w-fade-right, w-fade-x-active;
    animation-duration: auto;
    animation-timing-function: linear;
    animation-fill-mode: both, both, none;
    animation-timeline: scroll(self inline);
    animation-range: 0px var(--w-fade-size), calc(100% - var(--w-fade-size)), 0px 101%;
  }
}

/* ── Уменьшенная анимация (Motion: Reduced) ───────────────────────────────
   ЗАМЕРЕНО у claude.ai (Preferences -> Motion, снято computed-стилями в
   обоих положениях переключателя):

     бегунок тумблера   System: transform, translate, scale, rotate .12s
                        Reduced: transition-property НЕТ (none)
     окно подтверждения System: opacity, scale .2s   Reduced: none
     сегмент и кнопка   System: box-shadow .06s      Reduced: box-shadow .06s

   Гасится НЕ всё подряд и НЕ просто "всё, что двигается". Доснято у
   образца в обоих положениях:

     подложка окна   opacity .2s  -> none      ГАСНЕТ
     окно            opacity+scale .2s -> none ГАСНЕТ
     бегунок тумблера transform... -> none     ГАСНЕТ
     пункт меню      opacity .06s -> opacity .06s   ОСТАЁТСЯ
     аватар (hover)  .06s -> .06s                   ОСТАЁТСЯ
     кнопка, сегмент box-shadow .06s -> то же        ОСТАЁТСЯ

   Правило образца: гасится появление/исчезновение крупных блоков (окна,
   подложки, всплывашки) и ход органов управления (бегунок), а мелкая
   обратная связь на курсор и фокус (box-shadow, прозрачность пункта,
   затемнение аватара) продолжает плавно отрабатывать. Раньше у нас тут
   стояло `* { transition: none !important }` - оно рубило и её тоже.

   Анимации (@keyframes): ЗАМЕРЕНО 24.09 точное правило образца -
   [data-reduce-motion="true"] *, ::before, ::after { animation-duration:
   0.01ms !important; animation-iteration-count: 1 !important }. То есть не
   "animation: none", а мгновенный однократный проигрыш: конечный кадр
   анимаций с fill-mode forwards/both сохраняется. Раньше тут стояло
   animation: none - для анимаций появления это давало то же, но для тех,
   что держат конечный кадр, - нет. */
/* ПЕРЕСНЯТО 29.09 (аудит, CSS образца): придавливание кнопки (.cds-btn-
   squish) Motion: Reduced НЕ глушит - у образца правило для него есть только
   под @media prefers-reduced-motion; окна файлов (.w-modal, cds Dialog с
   motion-reduce:transition-none) глушатся обоими. Было наоборот */
[data-reduce-motion='true'] :is(
  .w-backdrop, .w-dialog, .w-dialog::after, .w-confirm, .w-paymodal,
  .w-modal-backdrop, .w-modal, .w-tooltip, .w-toast, .w-toast-row,
  .w-switch-knob,
  .w-copymorph-a, .w-copymorph-a svg, .w-copymorph-c, .w-copymorph-c svg
) { transition: none !important; }
[data-reduce-motion='true'] *, [data-reduce-motion='true'] ::before, [data-reduce-motion='true'] ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
/* ЗАМЕРЕНО 25.09 в CSS образца: вариант motion-reduce у claude.ai
   срабатывает и от data-reduce-motion="true" на предке, и от системной
   настройки (prefers-reduced-motion: reduce) - у окна настроек, подложки
   и окон подтверждения это motion-reduce:transition-none. Раньше системную
   настройку мы не учитывали вовсе */
/* 29.09: и подсказки, придавливание, ползунок переключателя, окна файлов
   - у образца motion-reduce: срабатывает и от системной настройки (аудит:
   под системной reduce подсказка у нас проявлялась .12с) */
@media (prefers-reduced-motion: reduce) {
  :is(.w-backdrop, .w-dialog, .w-dialog::after, .w-confirm, .w-paymodal, .w-modal-backdrop, .w-modal, .w-toast, .w-toast-row,
      .w-tooltip, .w-btn-squish, .w-sb-ctl-paint, .w-switch-knob,
      .w-copymorph-a, .w-copymorph-a svg, .w-copymorph-c, .w-copymorph-c svg) { transition: none !important; }
}
/* и то же общее правило анимаций от СИСТЕМНОЙ настройки: у образца в base
   (@media (prefers-reduced-motion: reduce) { *, ::before, ::after {
   animation-duration: 0.01ms !important; animation-iteration-count: 1
   !important } }, S/old/max_styles.css). У нас его не было - системное
   уменьшение движения глушило только те анимации, где правило стояло
   поштучно (нашлось 26.09 при сверке угасания «Reply») */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* ── Раздел Cowork ────────────────────────────────────────────────────────
   Содержимое без разделов и разделительных линий: колонка с зазором 28.  */
.w-plain-rows { display: flex; flex-direction: column; gap: 28px; }
/* ссылка со значком «откроется в новой вкладке»: подчёркнут только текст */
.w-link-ext { display: inline-flex; align-items: baseline; gap: 0; text-decoration: none; text-underline-offset: auto; }
.w-link-ext .w-link-text { display: block; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
@media (hover: hover) { .w-link-ext:hover .w-link-text { text-decoration-color: currentColor; } }
/* значок не участвует в выравнивании по базовой линии (self-center) */
.w-link-ext .w-icon { align-self: center; }

.w-invite-apps { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.w-invite-apps-title { margin: 0; color: var(--w-text-muted); }
.w-invite-apps-row { display: flex; gap: 16px; }
.w-invite-app { display: flex; align-items: center; gap: 7px; }
.w-invite-app-icon { display: flex; width: 20px; height: 20px; align-items: center; justify-content: center; }
img.w-app-art { display: block; width: 18px; height: auto; flex-shrink: 0; vertical-align: middle; }
/* «(opens in new tab)»: sr-only плюс display:none */
.w-hidden { display: none; }

/* ── Раздел Claude in Chrome ──────────────────────────────────────────────
   Картинка 60x60 и заголовок под ней с отступом 12 (space-y-3).         */
.w-hero { padding: 12px 0; }
.w-hero-art { display: block; color: var(--w-text-primary);  flex-shrink: 0; }
.w-hero-art svg { display: block; }
.w-hero-title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 580; --w-w: 580;
  color: var(--w-text-primary);
}
/* space-y-3 в tailwind v4 это margin-bottom у всех детей кроме последнего */
.w-hero > :not(:last-child) { margin-bottom: 12px; }
/* выпадающий список размера sm: 28 в высоту, радиус 7 */
.w-combo-sm { height: var(--w-h-control-sm); border-radius: 7px; max-width: none; min-width: 0; }
/* комбобокс с заданной шириной обёртки (Preferred browser: w-[260px]) */
.w-combo-fixed > .w-combo-field { width: 100%; max-width: none; min-width: 0; }
.w-combo-placeholder { font-weight: 400; --w-w: 400; color: var(--w-text-muted); }

/* ── Оболочка разделов Customize (Skills, Connectors, Plugins) ────────────
   Шапка: отступы 56/16/16, минимум 56 в высоту, сетка 1fr/минимум(0,472)/1fr
   с зазором 12, боковые колонки не уже 168.                             */
.w-hub { display: flex; height: 100%; min-height: 0; flex-direction: column; }
.w-hub-head {
  display: flex;
  min-height: 56px;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  padding: 56px 16px 16px;
}
/* в узком окне крестика над витриной нет (он в шапке): ряд заголовка
   встаёт на 16 под шапкой. ЗАМЕРЕНО 26.09 у Max, Plugins при 767: шапка
   до 137, ряд с кнопками y 153 */
.w-dialog[data-narrow] .w-hub-head { padding-top: 16px; }
.w-hub-grid {
  display: grid;
  min-width: 0;
  flex: 1;
  grid-template-columns: minmax(168px, 1fr) minmax(0, 472px) minmax(168px, 1fr);
  align-items: center;
  column-gap: 12px;
}
.w-hub-title {
  margin: 0;
  min-width: 168px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 22px;
  line-height: 28px;
  font-weight: 500; --w-w: 500;
  color: var(--w-text-primary);
}
.w-hub-search-cell { grid-column-start: 2; display: flex; min-width: 80px; flex: 1; justify-content: center; padding: 0 12px; }
/* поле поиска размера sm: 28, радиус 7, отступы 10, зазор 8 */
.w-hub-search {
  display: inline-flex;
  width: 100%;
  max-width: 448px;
  height: var(--w-h-control-sm);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--w-fill-field);
  box-shadow: var(--w-field-ring);
  cursor: text;
  transition: box-shadow var(--w-dur-fast) var(--w-ease);
}
@media (hover: hover) { .w-hub-search:hover:not(:has(:focus-visible)) { box-shadow: var(--w-field-ring-hover); } }
.w-hub-search:has(:focus-visible) { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
.w-hub-search-icon { display: flex; flex-shrink: 0; align-items: center; color: var(--w-text-muted); }
.w-hub-search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: var(--w-text-primary);
  outline: none;
}
.w-hub-search input::placeholder { color: var(--w-text-muted); }
.w-hub-search input::-webkit-search-cancel-button { display: none; }
.w-hub-actions { grid-column-start: 3; display: flex; flex-shrink: 0; justify-content: flex-end; }
.w-hub-actions-inner { display: flex; min-width: 168px; align-items: center; justify-content: flex-end; gap: 12px; }
.w-hub-add { display: flex; align-items: center; gap: 6px; }
.w-hub-add-wrap { display: flex; }
/* стрелка-каретка у кнопки с меню: 12, вес 577.75, прозрачность .6 */
.w-btn-caret { flex-shrink: 0; opacity: .6; }
/* значок слева у кнопки: отрицательный отступ 4 */
.w-btn-lead { display: inline-flex; margin-inline-start: -4px; }
/* значок справа у кнопки: тот же отступ, но с конца */
.w-btn-trail { display: inline-flex; margin-inline-end: -4px; }
.w-icon-muted { color: var(--w-text-muted); }

.w-hub-toolbar { flex-shrink: 0; padding: 0 16px 16px; }
.w-hub-toolbar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.w-hub-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* вкладки: подложка у активной рисуется псевдоэлементом под текстом */
.w-tabs-wrap { display: block; }
.w-tabs { display: flex; align-items: center; }
.w-tab {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  height: var(--w-h-control-sm);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-weight: 500; --w-w: 500;
  white-space: nowrap;
  color: var(--w-text-muted);
  cursor: var(--cds-cursor-interactive);
  user-select: none;
  outline: none;
}
.w-tab::before {
  content: '';
  position: absolute;
  inset: 0 1px;
  z-index: -1;
  border-radius: 7px;
  transition: box-shadow var(--w-dur-fast) var(--w-ease);
}
@media (hover: hover) { .w-tab:not([data-active]):hover { color: var(--w-text-secondary); } }
@media (hover: hover) { .w-tab:not([data-active]):hover::before { background: var(--w-ghost-hover); } }
.w-tab[data-active] { color: var(--w-text-primary); }
.w-tab[data-active]::before { background: var(--w-ghost-hover); }
.w-tab:focus-visible::before { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }

.w-hub-content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
  padding: 0 16px 16px;
}
.w-hub-list { display: flex; flex-direction: column; }

/* карточка пустого состояния */
.w-hub-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  margin-bottom: 8px;
  border-radius: var(--w-radius-card);
}
.w-hub-card-fill { pointer-events: none; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--w-bg-neutral); }
.w-hub-card-body { display: flex; flex: 1; flex-direction: column; align-self: stretch; border-radius: inherit; padding: 16px; }
.w-hub-card-row { display: flex; align-items: center; gap: 28px; }
.w-hub-card-main { display: flex; min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; gap: 16px; }
.w-hub-card-text { display: flex; flex-direction: column; gap: 8px; }
.w-hub-card-title { margin: 0; font-size: 15px; line-height: 20px; font-weight: 580; --w-w: 580; color: var(--w-text-primary); }
.w-hub-card-desc { margin: 0; color: var(--w-text-secondary); }
.w-hub-card-btns { display: flex; align-items: center; gap: 12px; }
.w-hub-card-art { flex-shrink: 0; padding-right: 24px; color: var(--w-text-primary); }

/* заголовок группы списка */
.w-hub-group { display: flex; align-items: center; gap: 8px; padding: 6px 12px; }
.w-hub-group-title { font-weight: 500; --w-w: 500; color: var(--w-text-primary); }
.w-hub-group-count { font-size: 13px; line-height: 17px; color: var(--w-text-muted); }

/* строка списка */
.w-hub-row {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: var(--w-radius-card);
}
.w-hub-row::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--w-border);
}
.w-hub-row:last-child::after { display: none; }
@media (hover: hover) { .w-hub-row:hover::after, .w-hub-row:has(+ .w-hub-row:hover)::after { display: none; } }
@media (hover: hover) { .w-hub-row:hover { background: var(--w-ghost-hover); } }
@media (hover: hover) { .w-hub-row:has(> div button:hover) { background: transparent; } }
.w-hub-row-hit { position: absolute; inset: 0; padding: 0; border: 0; background: transparent; border-radius: var(--w-radius-card); outline: none; cursor: var(--cds-cursor-interactive); }
.w-hub-row-hit:focus-visible { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
.w-hub-row-main { pointer-events: none; position: relative; display: flex; min-width: 0; flex: 1; align-items: center; gap: 16px; }
.w-hub-tile {
  display: flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--w-border);
  border-radius: 8px;
  background: var(--w-surface-0);
  color: var(--w-text-secondary);
}
.w-hub-row-text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.w-hub-row-head { display: flex; min-width: 0; align-items: center; gap: 8px; }
.w-hub-row-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; --w-w: 500; color: var(--w-text-primary); }
.w-hub-row-desc {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 17px;
  color: var(--w-text-secondary);
}
.w-hub-dot { padding: 0 8px; }
.w-hub-row-side { pointer-events: none; position: relative; display: flex; flex-shrink: 0; align-items: center; gap: 28px; }
.w-hub-row-side button, .w-hub-row-side [tabindex] { pointer-events: auto; }
.w-hub-row-time { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; line-height: 17px; color: var(--w-text-muted); }

/* ── Connectors ─────────────────────────────────────────────────────────── */
.w-conn { display: flex; flex: 1; flex-direction: column; gap: 28px; padding-top: 8px; }
.w-conn-top { display: flex; flex-shrink: 0; flex-direction: column; gap: 12px; }
/* сегментированный фильтр размера sm: без подложки дорожки, зазор 1 */
.w-seg-sm { height: var(--w-h-control-sm); padding: 0; gap: 1px; background: transparent; border-radius: 0; align-self: flex-start; }
.w-seg-sm .w-seg-clip { border-radius: 0; }
.w-seg-sm .w-seg-item { color: var(--w-text-secondary); }
.w-seg-sm .w-seg-item[data-checked] { color: var(--w-text-primary); }
.w-seg-sm .w-seg-thumb { top: 0; bottom: 0; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--w-border); }
.w-seg-sm .w-seg-item-text { padding: 0 10px; border-radius: 5px; }
@media (hover: hover) { .w-seg-sm .w-seg-item:not([data-checked]):hover { background: var(--w-ghost-hover); } }

.w-conn-table-outer { flex-shrink: 0; }
.w-conn-table-scroll { margin: 0 -16px -8px; padding: 0 16px 8px; overflow-x: auto; scrollbar-gutter: stable; }
.w-table.w-table-conn { min-width: 576px; }
/* у таблицы коннекторов ячейки не срезаются, обрезает внутренний блок,
   а строка кликабельная */
.w-table.w-table-conn td { overflow: visible; }
.w-table.w-table-conn tbody tr[data-clickable] { cursor: var(--cds-cursor-interactive); }
.w-table.w-table-conn td:nth-child(2),
.w-table.w-table-conn td:nth-child(3) { color: var(--w-text-secondary); }
.w-conn-cell > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-conn-type { overflow: hidden; }
.w-table.w-table-conn th:nth-child(1) { width: auto; }
.w-table.w-table-conn th:nth-child(2),
.w-table.w-table-conn th:nth-child(3) { width: 160px; }
.w-conn-cell { display: flex; align-items: center; gap: 12px; }
.w-conn-icon {
  display: flex;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--w-alpha-2);
  border-radius: 6.48px;
  background: var(--w-surface-3);
  box-shadow: var(--w-shadow-sm);
}
.w-conn-icon svg { display: block; flex-shrink: 0; }
.w-conn-icon img { flex-shrink: 0; vertical-align: middle; }
.w-conn-type { display: flex; align-items: center; gap: 8px; }
.w-conn-status { display: flex; align-items: center; color: var(--w-text-secondary); }

.w-conn-popular { display: flex; flex-direction: column; gap: 16px; flex-shrink: 0; }
.w-conn-empty { margin: 0; padding: 16px 0; font-size: 14px; line-height: 20px; font-weight: 400; --w-w: 400; color: var(--w-text-muted); text-align: center; }
.w-conn-favicon { width: 16px; height: 16px; object-fit: contain; transition: opacity .5s var(--w-ease); }
.w-conn-popular-title { margin: 0; font-size: 14px; line-height: 20px; font-weight: 400; --w-w: 400; color: var(--w-text-secondary); }
.w-conn-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.w-conn-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px;
  border-radius: var(--w-radius-card);
  background: var(--w-surface-1);
  box-shadow: var(--w-card-ring);
  text-align: left;
  cursor: var(--cds-cursor-interactive);
  outline: none;
}
@media (hover: hover) { .w-conn-card:hover { background: var(--w-surface-2); } }
.w-conn-card:focus-visible { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
.w-conn-card-icon { flex-shrink: 0; }
.w-conn-card-name { min-width: 0; flex: 1; color: var(--w-text-primary); word-break: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-conn-card-action { flex-shrink: 0; }
/* пункты меню разделов Customize */
.w-menu-sep { height: 1px; margin: 4px 10px; background: var(--w-border); }
.w-menu-item-sub { justify-content: space-between; }
.w-menu-sub { display: flex; flex-shrink: 0; align-items: center; justify-content: center; margin-right: -4px; color: var(--w-text-muted); }
.w-menu-label { padding: 4px 10px; font-size: 13px; line-height: 17px; font-weight: 500; --w-w: 500; color: var(--w-text-muted); }
.w-menu-icon { display: flex; width: 20px; height: 20px; flex-shrink: 0; align-items: center; justify-content: center; }
.w-menu-text { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-menu-check { margin-left: 16px; display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.w-menu-check-inner { display: flex; width: 20px; height: 20px; flex-shrink: 0; align-items: center; justify-content: center; margin-right: -4px; color: var(--w-accent); }
.w-menu-count { display: block; flex-shrink: 0; margin: -1.625px 0; padding: 1.625px 0; overflow: hidden; white-space: nowrap; font-size: 13px; line-height: 17px; font-variant-numeric: tabular-nums; color: var(--w-text-muted); }
.w-menu-count-plain { font-variant-numeric: normal; }
.w-menu-check:has(.w-menu-count) .w-menu-check-inner { margin-right: 0; }


/* ── Подстраницы разделов (коннектор, навык, плагин) ──────────────────────
   Шапка 56 с кнопкой «назад»: слева 24, справа 48 под крестик окна,
   сама кнопка ghost-sm со сдвигом -10 влево, значок со сдвигом -4.    */
.w-sub { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.w-sub-head-outer { flex-shrink: 0; }
.w-sub-head {
  display: flex;
  height: 56px;
  align-items: center;
  gap: 12px;
  padding: 0 48px 0 24px;
}
.w-sub-back { margin-left: -10px; }
.w-sub-back-icon { margin-left: -4px; }
.w-sub-scroll { min-height: 0; flex: 1; overflow: auto; }
.w-sub-body { padding: 0 24px 24px; }

/* строка названия коннектора: подпись слева, кнопка справа, отступ
   вправо -24 чтобы кнопка встала к краю колонки */
.w-conn-detail-head {
  display: flex;
  height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 0;
  margin-right: -24px;
}
.w-conn-detail-id { display: flex; align-items: center; gap: 12px; }
.w-conn-detail-icon {
  display: flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8.64px;
}
.w-conn-detail-icon svg { display: block; width: 32px; height: 32px; }
.w-conn-detail-name { margin: 0; font-size: 15px; line-height: 20px; font-weight: var(--w-fw-xl); --w-w: var(--w-fw-xl); color: var(--w-text-primary); }
.w-conn-detail-actions { display: flex; align-items: center; gap: 8px; }
.w-conn-detail-text { color: var(--w-text-primary); }
.w-conn-detail-md { color: var(--w-text-secondary); }
.w-conn-detail-icon svg { flex-shrink: 0; }
.w-conn-detail-text p { margin: 0 0 12px; font-size: 14px; line-height: 20px; }
.w-conn-detail-text ul { margin: 8px 0; padding-left: 24px; }
.w-conn-detail-text li { margin: 4px 0; font-size: 14px; line-height: 20px; }
.w-conn-detail-text strong { font-weight: 600; --w-w: 600; }

/* ── Модальное окно ──────────────────────────────────────────────────────
   Ширина 536, радиус 12, отступ 24; тень CDS уровня «modal».          */
.w-modal-layer { position: fixed; inset: 0; z-index: 60; }
.w-modal-backdrop { position: absolute; inset: 0; background: var(--w-backdrop); opacity: 1; transition: opacity var(--w-dur-base) var(--w-ease-out); }
/* подложка cds Dialog образца: bg-backdrop + backdrop-blur-[2px]
   (ЗАМЕРЕНО 28.09 на окне Uploads; тот же Dialog у окон CSV / PDF / текста
   / цитаты). Размытия у нас не было - страница за окном стояла резкой */
.w-modal-backdrop { backdrop-filter: blur(2px); }
.w-modal-backdrop[data-state='closed'] { opacity: 0; }
.w-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  display: flex;
  width: 536px;
  max-height: calc(100vh - 32px);
  flex-direction: column;
  border-radius: 12px;
  background: var(--w-surface-3);
  box-shadow: var(--w-shadow-panel-lg);
  /* translate, а не transform: свойство scale применяется РАНЬШЕ transform,
     и с transform точка роста при появлении уходила в правый нижний угол
     (то же, что у окна Uploads, хозяин 28.09 «микро сдвиг»). translate
     применяется до scale - рост от центра, как у cds Dialog образца */
  translate: -50% -50%;
  opacity: 1;
  transition: opacity var(--w-dur-base) var(--w-ease-out), scale var(--w-dur-base) var(--w-ease-out);
}
/* в покое scale не задаём: любое значение делает окно блоком содержания
   для position:fixed внутри, как и у окна настроек */
.w-modal[data-state='closed'] { opacity: 0; scale: .98; }
.w-modal-inner { display: flex; min-height: 0; flex: 1; flex-direction: column; padding: 24px; overflow: auto; border-radius: 12px; scrollbar-width: thin; scrollbar-color: var(--w-scrollbar) transparent; }
.w-modal-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.w-modal-head-main { display: flex; flex: 1; flex-direction: column; gap: 4px; margin-top: -4px; }
.w-modal-title { margin: 0; font-size: 22px; line-height: 28px; font-weight: 580; --w-w: 580; color: var(--w-text-primary); }
.w-modal-title-text { display: flex; align-items: center; gap: 8px; }
.w-modal-close { margin-top: -8px; margin-right: -8px; }
.w-modal-lead { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--w-text-secondary); }
.w-modal-form { display: flex; flex-direction: column; }
.w-modal-fields { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.w-modal-field { display: flex; flex-direction: column; gap: 8px; }
.w-modal-hint { margin: 0; font-size: 13px; line-height: 17.875px; color: var(--w-text-muted); }
.w-modal-note { margin: 24px 0 0; font-size: 14px; line-height: 20px; color: var(--w-text-muted); }
.w-modal-note-tight { margin-top: 12px; }
.w-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ── Каталог коннекторов ─────────────────────────────────────────────────
   Крошки, широкий поиск 40 и кнопка фильтра, ниже сетка карточек.     */
.w-dir { display: flex; height: 100%; min-height: 0; flex-direction: column; }
.w-dir-crumbs-row { height: 32px; flex-shrink: 0; }
.w-dir-crumbs-inner { display: flex; align-items: center; gap: 12px; height: 32px; }
.w-crumbs { display: flex; min-width: 0; flex: 1; align-items: center; gap: 12px; height: 28px; }
.w-crumb-btn { margin-left: -10px; }
/* второе звено цепочки на странице-списке каталога стоит без сдвига */
.w-crumb-btn-mid { margin-left: 0; }
.w-crumb-sep { color: var(--w-text-muted); }
.w-crumb-cur { padding: 0 10px; font-weight: 500; --w-w: 500; color: var(--w-text-primary); }
.w-dir-outer { min-height: 0; flex: 1; margin: 0 -16px; overflow: auto; }
.w-dir-body { display: flex; height: 100%; min-width: 0; flex-direction: column; gap: 16px; padding: 8px 16px 24px; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--w-scrollbar) transparent; }
.w-dir-tools { display: flex; align-items: center; gap: 12px; }
.w-dir-searchcell { min-width: 192px; flex: 1; }
.w-dir-search {
  display: inline-flex;
  width: 100%;
  height: 40px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--w-fill-field);
  /* в покое кольцо alpha-2, при наведении alpha-3: снято живым курсором
     на каталоге коннекторов (shadow-field-ring / field-ring-hover) */
  box-shadow: inset 0 0 0 1px var(--w-alpha-2);
  transition: box-shadow var(--w-dur-fast) var(--w-ease);
  font-size: 15px;
  line-height: 22px;
  cursor: text;
}
@media (hover: hover) { .w-dir-search:hover:not(:focus-within) { box-shadow: inset 0 0 0 1px var(--w-alpha-3); } }
.w-dir-search, .w-dir-search * { cursor: text; }
.w-dir-search input { height: 40px; flex: 1; padding: 0; }
.w-dir-search input { width: 100%; min-width: 0; border: 0; background: none; outline: none; font: inherit; color: var(--w-text-primary); }
.w-dir-search input::placeholder { color: var(--w-text-muted); }
.w-dir-search-icon { display: flex; flex-shrink: 0; align-items: center; color: var(--w-text-muted); }
.w-dir-filter { height: 40px; padding: 0 16px; border-radius: 10px; font-size: 15px; line-height: 22px; }
.w-dir-filter .w-btn-label { gap: 4px; }
.w-dir-filter-label { color: var(--w-text-muted); }
.w-dir-filter-value { overflow-x: clip; }
.w-dir-filter-name { display: inline; color: var(--w-text-muted); }

/* заглушка на время загрузки каталога: карточки-плейсхолдеры 391x82 */
.w-dir-groups { display: flex; flex-direction: column; gap: 48px; }
.w-dir-group { display: flex; flex-direction: column; gap: 28px; }
.w-dir-group-inner { display: flex; flex-direction: column; }
.w-dir-section { display: flex; flex-direction: column; gap: 16px; }
.w-dir-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.w-dir-skel-card { position: relative; display: flex; flex-direction: column; border-radius: 11px; }
.w-dir-skel-bg { position: absolute; inset: 0; border-radius: 11px; background: var(--w-surface-1); }
.w-dir-skel-body { position: relative; display: flex; flex-direction: column; border-radius: 11px; min-width: 0; flex: 1; padding: 14px; }
.w-dir-skel-grid { display: grid; min-width: 0; flex: 1; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.w-dir-skel-iconcell { width: 54px; height: 54px; }
.w-dir-skel-icon { width: 54px; height: 54px; border-radius: 7px; overflow: hidden; background: var(--w-skeleton); }
.w-dir-skel-lines { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.w-dir-skel-lines > div { height: 14px; border-radius: 7px; overflow: hidden; background: var(--w-skeleton); }
.w-dir-skel-line1 { width: 60%; }
.w-dir-skel-line2 { width: 90%; }
/* сообщение об ошибке каталога: полоса с рамкой и кнопкой повтора */
.w-dir-error { display: flex; align-items: flex-start; gap: 8px; padding: 12px 16px; border-radius: 12px; background: var(--w-tint-danger); box-shadow: inset 0 0 0 1px var(--w-border-danger); color: var(--w-text-danger); }
.w-dir-error-icon { display: flex; flex-shrink: 0; align-items: center; }
.w-dir-error-body { display: flex; min-width: 0; flex: 1; flex-wrap: wrap; align-items: flex-start; gap: 12px 16px; }
.w-dir-error-msg { min-width: 0; flex: 1; }
.w-dir-error-act .w-btn { color: var(--w-text-primary); }
.w-dir-error-act { display: flex; height: 20px; flex-shrink: 0; align-items: center; gap: 8px; margin-left: -2px; margin-right: -8px; }
.w-dir-note { display: flex; flex-direction: column; }
.w-dir-note p { margin: 0; font-size: 13px; line-height: 17px; text-align: center; color: var(--w-text-secondary); }

/* шапка вкладки Discover: без поля поиска, заголовок растягивается */
header.w-hub-head-row { min-width: 0; }
div.w-hub-head-row { display: flex; min-width: 0; flex: 1; align-items: center; gap: 12px; }
.w-hub-head-row .w-hub-title { min-width: 0; flex: 1; }
.w-hub-head-row .w-hub-actions { flex-shrink: 0; }
.w-hub-head-row .w-hub-actions-inner { min-width: 0; }


/* ── Страница навыка ─────────────────────────────────────────────────────
   Шапка с отступом сверху 24 и полем 24 по бокам, ниже вкладки с
   подчёркиванием 2px, содержимое двумя колонками 516 + 28 + 240.     */
.w-det { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.w-det-head { flex-shrink: 0; }
.w-det-head-inner { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; }
.w-det-top .w-sub-back { margin-left: 0; }
.w-det-top { display: flex; flex-direction: column; gap: 16px; padding: 0 24px; }
.w-det-top .w-sub-back { align-self: flex-start; }
.w-det-top .w-det-id-row { align-self: stretch; }
.w-det-id-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.w-det-id { display: flex; align-items: flex-start; gap: 16px; }
.w-det-icon {
  display: flex;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  /* подложка значка навыка не зависит от темы: она из палитры навыка */
  background: #bcd1ca;
  color: #2f5f52;
}
.w-det-idtext { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.w-det-namerow { display: flex; min-width: 0; align-items: center; gap: 8px; }
/* у заголовка 15px вес 580 в обеих темах: прибавки в тёмной, как
   у крупных заголовков, тут нет */
.w-det-name { margin: 0; min-width: 0; font-size: 15px; line-height: 20px; font-weight: 580; --w-w: 580; color: var(--w-text-primary); }
.w-det-meta { display: block; font-size: 13px; line-height: 17px; color: var(--w-text-muted); }
.w-det-actions { display: flex; flex-shrink: 0; align-items: center; gap: 12px; }

/* скрытая полоса между шапкой и вкладками, она есть в разметке claude.ai */
.w-det-gap { display: none; flex-direction: column; gap: 12px; margin: 0 24px; }
.w-det-tabs-outer { margin: 0 24px; }
.w-det-tabs-scroll { overflow: auto; padding: 4px; margin: -4px; }
.w-det-tabs-line { border-bottom: 1px solid var(--w-alpha-2); }
.w-det-tabs { display: flex; align-items: center; }
.w-det-tab {
  display: flex;
  height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  margin-bottom: -1px;
  flex-shrink: 0;
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font: inherit;
  font-weight: 500; --w-w: 500;
  color: var(--w-text-muted);
  cursor: var(--cds-cursor-interactive);
  outline: none;
}
.w-det-tab[data-active] { border-bottom-color: var(--w-text-primary); color: var(--w-text-primary); }
.w-det-tab-count { color: var(--w-text-muted); }

.w-det-body { display: flex; min-height: 0; flex: 1; flex-direction: column; padding: 24px 0; overflow-y: auto; }
.w-det-body-inner { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.w-det-cols { display: flex; gap: 28px; padding: 0 24px; }
.w-det-main { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 28px; }
.w-det-section { display: flex; flex-direction: column; gap: 12px; }
.w-det-label { margin: 0; font-size: 12px; line-height: 17px; font-weight: 400; --w-w: 400; color: var(--w-text-secondary); }
.w-det-desc { margin: 0; white-space: pre-wrap; font-size: 14px; line-height: 20px; color: var(--w-text-primary); }
.w-det-aside { display: flex; width: 240px; flex-shrink: 0; flex-direction: column; gap: 16px; }
.w-det-card { position: relative; display: flex; flex-direction: column; gap: 16px; border-radius: 12px; }
.w-det-card-fill { position: absolute; inset: 0; border-radius: 12px; background: var(--w-surface-1); }
.w-det-card-body { position: relative; display: flex; flex-grow: 1; flex-direction: column; gap: 16px; padding: 16px; border-radius: 12px; }
.w-det-card-section { display: flex; flex-direction: column; gap: 8px; }
.w-det-author { display: flex; align-items: center; gap: 8px; }
.w-det-avatar {
  display: flex;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 5.5px;
  background: var(--w-alpha-2);
  color: var(--w-text-secondary);
}
.w-det-authorname { display: block; flex-grow: 1; overflow: clip visible; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; line-height: 17px; color: var(--w-text-secondary); }


/* ── Вкладка Contents: список файлов и предпросмотр ──────────────────────
   Панель 784 с подложкой surface-1 и радиусом 12; слева колонка 244 со
   своей полосой прокрутки 12, справа предпросмотр 538.               */
.w-cont { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 16px; padding: 0 24px; }
.w-cont-bar { display: flex; height: 32px; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 12px; }
.w-cont-version {
  display: flex;
  height: 28px;
  align-items: center;
  gap: 6px;
  padding-right: 8px;
  border-radius: 7px;
  background: var(--w-fill-field);
  box-shadow: var(--w-field-ring);
}
.w-cont-version-btn {
  display: flex;
  height: 28px;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 6px;
  padding: 0 0 0 8px;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  color: var(--w-text-primary);
  cursor: var(--cds-cursor-interactive);
  outline: none;
}
.w-cont-version-text { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; }
.w-cont-version-btn .w-icon { margin-right: 2px; }
.w-cont-bar-actions { display: flex; align-items: center; gap: 12px; }

.w-cont-panel {
  display: flex;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  border: 1px solid var(--w-border);
  border-radius: 12px;
  background: var(--w-surface-1);
}
.w-cont-files { position: relative; display: flex; width: 244px; min-width: 160px; flex-shrink: 0; flex-direction: column; }
.w-cont-files-inner { width: 235px; min-height: 0; flex: 1; margin-right: 8px; padding: 8px 0 8px 8px; overflow: auto; }
.w-cont-files-inner > div { overflow: auto; flex-shrink: 0; }
.w-cont-filelist { display: flex; flex-direction: column; gap: 4px; }
.w-cont-file {
  display: inline-flex;
  width: 100%;
  height: 28px;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 4px 0 4px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font: inherit;
  color: var(--w-text-secondary);
  cursor: var(--cds-cursor-interactive);
  outline: none;
}
.w-cont-file[data-active] { background: var(--w-fill-active); color: var(--w-text-primary); font-weight: 580; --w-w: 580; }
.w-cont-file-name { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; text-align: left; }
/* собственная полоса прокрутки колонки файлов */
.w-cont-scroll { position: absolute; top: 0; right: -5.5px; bottom: 0; width: 12px; cursor: col-resize; }
.w-cont-scroll-track { position: absolute; inset: 0; border-radius: calc(infinity * 1px); }
.w-cont-scroll-thumb { position: absolute; top: calc(50% - 24px); left: 4.5px; width: 3px; height: 48px; border-radius: calc(infinity * 1px); color: rgb(137, 135, 129); background: currentColor; opacity: 0; }

.w-cont-preview { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.w-cont-preview-inner { display: flex; min-height: 0; flex: 1; flex-direction: column; }
.w-cont-preview-head { display: flex; height: 41px; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 0; }
.w-cont-path { display: flex; min-width: 0; flex-shrink: 1; align-items: center; gap: 12px; }
.w-cont-path span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--w-font-mono); font-size: 13px; line-height: 17px; color: var(--w-text-secondary); }
.w-cont-viewwrap { height: 29px; flex-shrink: 0; }
.w-cont-doc { min-height: 0; flex: 1; }
.w-cont-doc-a, .w-cont-doc-b { height: 100%; }
.w-cont-doc-c { height: 100%; overflow: auto; }
.w-cont-doc-pad { padding: 20px; font-size: 14px; line-height: 26.4px; }
.w-cont-doc-body { }
.w-md { display: grid; gap: 12px; }
.w-md-h1 { margin: 12px 0 -4px; font-size: 22px; line-height: 26.4px; font-weight: 600; --w-w: 600; color: var(--w-text-primary); }
.w-md-h2 { margin: 12px 0 -4px; font-size: 18px; line-height: 26.4px; font-weight: 600; --w-w: 600; color: var(--w-text-primary); }
.w-md-p { margin: 0; font-size: 14px; line-height: 26.4px; color: var(--w-text-primary); }
.w-md-ul { margin: 0 0 12px; padding-left: 24px; }
.w-md code, .w-md-code {
  display: inline;
  padding: 1px 4px;
  border-radius: 6.4px;
  background: var(--w-alpha-05, rgba(11, 11, 11, .05));
  font-size: 14.4px;
  line-height: 26.4px;
  color: var(--w-text-danger);
}


/* ── Вкладка Discover ────────────────────────────────────────────────────
   Промо-карточка 195 с подложкой из палитры набора, ниже разделы с
   карточками по две в ряд.                                           */
/* Скрытая часть окна добавления коннектора: способ входа, клиент OAuth
   и заголовки запроса. Показывается на втором шаге, но в разметке есть
   всегда, как у claude.ai. */
.w-adv { display: none; }
.w-adv-preview { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--w-alpha-2); }
.w-adv-preview-name { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; --w-w: 500; color: var(--w-text-primary); }
.w-adv-preview-url { display: block; font-family: var(--w-font-mono); font-size: 12px; line-height: 17px; color: var(--w-text-muted); word-break: break-all; }
.w-adv-groups { display: flex; flex-direction: column; gap: 28px; }
.w-adv-group { display: flex; flex-direction: column; gap: 12px; }
.w-adv-head { display: flex; align-items: center; gap: 12px; }
.w-adv-head-title { display: block; font-weight: 500; --w-w: 500; }
.w-adv-help { display: flex; flex-shrink: 0; align-items: center; justify-content: center; margin: -4px; padding: 4px; border: 0; border-radius: 8px; background: transparent; color: var(--w-text-muted); cursor: var(--cds-cursor-interactive); }
.w-adv-help .w-icon { display: flex; }
.w-adv-opts { display: flex; flex-direction: column; gap: 12px; }
.w-adv-opt { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 19px; text-align: start; cursor: var(--cds-cursor-interactive); }
.w-adv-opt * { cursor: var(--cds-cursor-interactive); }
.w-adv-dot { display: flex; width: 16px; height: 16px; flex-shrink: 0; align-items: center; justify-content: center; margin-top: 1.5px; border: 1px solid var(--w-alpha-3); border-radius: calc(infinity * 1px); }
.w-adv-dot > span { display: none; width: 6px; height: 6px; border-radius: calc(infinity * 1px); background: #fff; }
.w-adv-dot-on { border-color: transparent; border-width: 0; background: var(--w-accent); }
@media (hover: hover) { .w-adv-opt:hover .w-adv-dot { border-color: var(--w-radio-border); } }
@media (hover: hover) { .w-adv-opt:hover .w-adv-dot-on { border-color: transparent; background: var(--w-accent-hover); } }
.w-adv-dot-on > span { display: block; }
.w-adv-lines { display: flex; flex-direction: column; }
.w-adv-titlewrap { display: block; }
.w-adv-title { display: inline-flex; align-items: center; gap: 8px; }
.w-adv-badge { display: block; font-weight: 600; --w-w: 600; }
.w-adv-note { display: block; line-height: 17.875px; color: var(--w-text-muted); }
.w-adv-input { position: fixed; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; white-space: nowrap; appearance: none; border: 0; }
.w-adv-tail { display: block; margin-top: 28px; }
.w-adv-tail-in { display: flex; flex-direction: column; gap: 28px; }
.w-adv-hint { display: block; margin: 0; font-size: 13px; line-height: 17px; color: var(--w-text-secondary); }
.w-adv-btnrow { display: flex; flex-direction: column; gap: 12px; }
.w-adv-addwrap { display: inline-flex; }
.w-adv-addicon { display: flex; margin-left: -4px; }
.w-adv-more { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; border-top: 1px solid var(--w-alpha-2); }
.w-adv-more-btn { display: flex; align-items: center; gap: 4px; border: 0; padding: 0; background: transparent; color: var(--w-text-secondary); cursor: var(--cds-cursor-interactive); }

/* Страница коннектора в каталоге */
a.w-crumb-btn { color: inherit; text-decoration: none; }
.w-crumb-back { margin-left: -4px; }
.w-conncard-group { display: flex; flex-direction: column; }
.w-conncard-group-in { display: flex; flex-direction: column; gap: 28px; }
.w-card-page { display: flex; flex-direction: column; gap: 40px; padding-bottom: 24px; }
.w-card-head { position: relative; padding: 64px 0 32px; }
.w-card-head-bg { position: absolute; left: -9999px; right: -9999px; top: -200px; height: 376px; overflow: hidden; border-radius: 12px; background: var(--w-alpha-1); }
.w-card-head-rows { display: contents; }
.w-card-head-row { display: flex; align-items: center; gap: 16px; }
.w-card-logo-cell { position: relative; width: 80px; height: 80px; min-width: auto; flex-shrink: 0; }
.w-card-logo { position: relative; display: flex; width: 80px; height: 80px; flex-shrink: 0; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--w-alpha-2); border-radius: 8px; }
.w-card-logo-in { display: flex; width: 48px; height: 48px; min-width: auto; flex-shrink: 0; align-items: center; justify-content: center; overflow: hidden; border-radius: 6px; }
.w-card-logo-in > svg { display: block; flex-shrink: 0; min-width: auto; overflow: hidden; vertical-align: middle; }
/* в тёмной теме под значком подложка, как у карточек каталога */
[data-mode='dark'] .w-card-logo { background: var(--w-surface-2); }
.w-card-title-cell { position: relative; display: flex; flex-grow: 1; flex-direction: column; gap: 12px; }
.w-card-title-rows { display: flex; flex-direction: column; gap: 3px; }
.w-card-title-row { display: flex; align-items: center; gap: 12px; }
.w-card-title { margin: 0; min-width: auto; overflow: hidden; white-space: nowrap; font-size: 22px; line-height: 28px; font-weight: 400; --w-w: 400; }
.w-card-title > span { display: block; overflow: clip visible; white-space: nowrap; }
.w-card-info { position: relative; display: flex; min-width: auto; flex-shrink: 0; }
.w-card-info .w-icon { position: relative; flex-shrink: 0; min-width: auto; color: var(--w-text-muted); }
.w-card-tagline-wrap { min-width: auto; }
.w-card-tagline { display: flow-root; overflow: hidden; font-size: 15px; color: var(--w-text-secondary); }
.w-card-actions { position: relative; display: flex; min-width: auto; flex-shrink: 0; align-items: center; justify-content: flex-start; gap: 12px; }
.w-contents2 { display: contents; }
.w-card-actions-in { display: flex; min-width: auto; flex-shrink: 0; align-items: center; gap: 12px; }
.w-card-connect { height: 40px; padding: 0 16px; border-radius: 10px; font-size: 15px; line-height: 22px; font-weight: 500; --w-w: 500; }
.w-card-connect { color: #fff; }
.w-card-connect .w-btn-fill { background: var(--w-fill-brand); }
@media (hover: hover) { .w-card-connect:hover .w-btn-fill { background: var(--w-fill-brand-hover); } }
.w-card-bodywrap { min-width: auto; }
.w-card-body { display: flex; flex-direction: column; gap: 48px; }
.w-card-main { display: flex; flex-grow: 1; flex-direction: column; gap: 40px; }
.w-card-desc { display: flex; flex-direction: column; gap: 16px; line-height: 26.4px; }
.w-card-desc > div { min-width: auto; white-space: pre-wrap; line-height: 26.4px; }
.w-card-desc p { margin: 0; white-space: pre-wrap; line-height: 26.4px; }
.w-card-note { display: flex; min-width: auto; align-items: flex-start; gap: 8px; padding: 12px 16px; border-radius: 12px; background: var(--w-surface-1); box-shadow: 0 0 0 0 var(--w-alpha-2) inset, 0 0 0 1px var(--w-alpha-2); }
/* в тёмной теме обводка у claude.ai внутренняя, а не внешняя */
[data-mode='dark'] .w-card-note { box-shadow: 0 0 0 1px var(--w-alpha-2) inset, 0 0 0 0 var(--w-alpha-2); }
.w-card-note-icon { display: flex; min-width: auto; flex-shrink: 0; align-items: center; color: var(--w-text-secondary); }
.w-card-note-icon .w-icon { flex-shrink: 0; min-width: auto; }
.w-card-note-body { display: flex; flex-grow: 1; align-items: flex-start; row-gap: 12px; column-gap: 16px; }
.w-card-note-body > div { flex-grow: 1; }
.w-card-tools { display: flex; min-width: auto; flex-direction: column; gap: 16px; margin-top: 16px; }
.w-card-tools-head { display: flex; min-width: auto; align-items: center; gap: 8px; }
.w-card-tools-head h3 { margin: 0; min-width: auto; font-size: 22px; line-height: 28px; font-weight: 400; --w-w: 400; }
.w-card-tools-list { margin: 0; padding: 0; min-width: auto; columns: 3; column-gap: 28px; list-style: none; }
.w-card-tools-list li { display: list-item; margin-bottom: 8px; }
.w-card-tool { display: inline-flex; height: 28px; align-items: center; gap: 4px; padding: 0 12px; white-space: nowrap; vertical-align: middle; border-radius: 7px; background: var(--w-alpha-1); font-size: 13px; line-height: 16px; font-weight: 500; --w-w: 500; color: var(--w-text-secondary); }
.w-card-tool > span { display: block; padding-bottom: .65px; overflow: clip visible; white-space: nowrap; }
.w-card-tool > span > span { display: block; overflow: clip visible; white-space: nowrap; }
.w-card-aside { min-width: auto; padding-top: 6px; columns: 2; column-gap: 28px; }
.w-card-field { display: flex; break-inside: avoid; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.w-card-field h3 { margin: 0; min-width: auto; font-size: 12px; line-height: 17px; font-weight: 500; --w-w: 500; letter-spacing: .3px; text-transform: uppercase; color: var(--w-text-muted); }
.w-card-field-body { display: flex; min-width: auto; flex-direction: column; gap: 4px; }
.w-card-links { display: flex; flex-direction: column; gap: 4px; }
.w-card-link { display: flex; min-width: auto; align-items: baseline; gap: 0; border-radius: 2px; color: var(--w-text-accent); text-decoration: none; }
.w-card-link > span:first-child { min-width: auto; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--w-text-accent) 40%, transparent); text-underline-offset: 3px; }
.w-card-link .w-icon { display: flex; align-self: center; line-height: 20px; }
.w-card-link .w-icon { flex-shrink: 0; min-width: auto; }
.w-card-sr { display: none; position: absolute; margin: -1px; overflow: hidden; white-space: nowrap; }
.w-card-cats { display: flex; min-width: auto; gap: 8px; margin: 4px -4px 0; }
.w-card-cat { height: 24px; padding: 0 8px; border-radius: 6px; font-size: 13px; line-height: 19px; }
.w-card-url { display: flex; align-items: flex-start; gap: 8px; }
.w-card-url-text { display: flow-root; min-width: auto; overflow: hidden; font-family: var(--w-font-mono); font-size: 13px; line-height: 19px; }
.w-card-url-copy { position: relative; top: -6px; height: 0; min-width: auto; }
/* кнопка копирования выступает только при наведении на строку с адресом
   (у claude.ai opacity-0 group-hover:opacity-100 group-focus-within:opacity-100) */
.w-card-url-copy > .w-btn { opacity: 0; transition: opacity var(--w-dur-fast) var(--w-ease); }
.w-card-url:focus-within .w-card-url-copy > .w-btn { opacity: 1; }
@media (hover: hover) { .w-card-url:hover .w-card-url-copy > .w-btn { opacity: 1; } }
.w-card-related { display: flex; min-width: auto; flex-direction: column; gap: 28px; margin-top: 32px; }
.w-card-related-line { min-width: auto; height: 1px; border-top: 1px solid var(--w-alpha-2); }
.w-card-split { height: 1px; border-top: 1px solid var(--w-alpha-2); }
.w-card-related-title { margin: 0; min-width: auto; font-size: 22px; line-height: 28px; font-weight: 400; --w-w: 400; }

/* Каталог коннекторов: разделы, карточки и список категорий */
.w-cdir-sections { display: flex; flex-direction: column; gap: 48px; }
.w-cdir-sec { display: flex; flex-direction: column; gap: 16px; }
.w-cdir-sechead { display: flex; min-height: 28px; align-items: center; justify-content: space-between; gap: 16px; }
.w-cdir-sectitle { margin: 0; font-size: 15px; line-height: 20px; font-weight: 580; --w-w: 580; color: var(--w-text-primary); }
.w-cdir-showall { flex-shrink: 0; margin-right: -6px; color: var(--w-text-primary); text-decoration: none; }
.w-cdir-secbody { display: flex; flex-direction: column; gap: 16px; }
.w-cdir-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.w-cdir-card { position: relative; display: flex; flex-direction: column; border-radius: 11px; }
.w-cdir-fill { position: absolute; inset: 0; border-radius: 11px; background: var(--w-surface-1); }
.w-cdir-body { position: relative; display: flex; flex: 1; flex-direction: column; padding: 14px; border-radius: 11px; }
.w-cdir-row { display: grid; flex: 1; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.w-cdir-iconcell { display: block; width: 54px; height: 54px; }
.w-cdir-iconbox { position: relative; display: flex; width: 54px; height: 54px; min-width: 0; flex-shrink: 0; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--w-alpha-2); border-radius: 7px; }
.w-cdir-iconph { position: absolute; display: flex; width: 52px; height: 52px; align-items: center; justify-content: center; }
.w-cdir-iconph-in { display: flex; width: 36px; height: 36px; align-items: center; justify-content: center; overflow: hidden; border-radius: 6px; background: var(--w-alpha-1); }
.w-cdir-iconph-in .w-icon { color: var(--w-text-muted); }
.w-cdir-iconin { display: flex; width: 36px; height: 36px; flex-shrink: 0; align-items: center; justify-content: center; overflow: hidden; border-radius: 6px; }
.w-cdir-iconin-ph { background: var(--w-alpha-1); }
.w-cdir-iconin > svg { display: block; width: 36px; height: 36px; flex-shrink: 0; overflow: hidden; }
.w-cdir-iconin > img { display: block; width: 36px; height: 36px; flex-shrink: 0; overflow: clip; vertical-align: middle; object-fit: contain; }
.w-cdir-text { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.w-cdir-namerow { display: flex; min-width: 0; align-items: center; gap: 8px; overflow: hidden; }
.w-cdir-nameclip { display: block; min-width: 0; overflow-x: clip; white-space: nowrap; text-overflow: ellipsis; }
.w-cdir-name { display: inline; min-width: 0; white-space: nowrap; font-weight: 580; --w-w: 580; color: var(--w-text-primary); text-decoration: none; }
.w-cdir-info { position: relative; display: flex; width: 16px; height: 16px; flex-shrink: 0; }
.w-cdir-info .w-icon { position: relative; left: -4px; color: var(--w-text-muted); }
.w-cdir-desc {
  display: -webkit-box; margin: 0; overflow: hidden;
  -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  font-size: 13px; line-height: 16.25px; color: var(--w-text-secondary);
}
.w-cdir-chip { display: flex; height: 16px; flex-shrink: 0; align-items: center; gap: 4px; padding: 0 4px; white-space: nowrap; vertical-align: middle; border-radius: 4px; background: var(--w-tint-blue); font-size: 10px; line-height: 13px; font-weight: 500; --w-w: 500; color: var(--w-text-accent); }
.w-cdir-chip > span { display: block; margin: -1.25px 0; padding: 1.25px 0; line-height: 12px; }
.w-cdir-chip-gray { background: var(--w-alpha-1); color: var(--w-text-secondary); }
.w-cdir-iconin-ph .w-icon { color: var(--w-text-muted); }
[data-mode='dark'] .w-cdir-iconbox { background: var(--w-surface-2); }
[data-mode='dark'] .w-cdir-iconin-ph, [data-mode='dark'] .w-cdir-iconph-in { background: transparent; }
.w-cdir-act { display: block; }
.w-cdir-act-in { position: relative; display: flex; min-width: 0; align-items: center; gap: 8px; }
.w-cdir-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.w-cdir-cat { height: 40px; padding: 0 16px; border-radius: 10px; font-size: 15px; line-height: 22px; }
.w-cdir-cat .w-btn-label { gap: 4px; }
.w-cdir-cat-count { display: block; color: var(--w-text-muted); }

/* Меню версий навыка на вкладке Contents */
.w-popover-vers .w-popover-inner { display: flex; flex-direction: column; flex-grow: 1; padding: 4px; overflow: hidden; border-radius: 12px; }
.w-vers-list { flex-grow: 1; overflow: hidden auto; }
.w-vers-head { display: none; padding: 6px 12px; color: var(--w-text-muted); }
.w-vers-item { display: flex; min-height: 32px; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 8px; background: var(--w-ghost-hover); cursor: var(--cds-cursor-interactive); }
.w-vers-lines { display: flex; min-width: 0; flex-grow: 1; flex-direction: column; gap: 2px; }
.w-vers-lines span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-vers-check { display: block; width: 20px; height: 20px; flex-shrink: 0; color: var(--w-text-accent); }
.w-vers-check .w-icon { display: flex; }
.w-vers-tail { }
.w-vers-sep { margin: 4px 12px 0; height: 1px; flex-shrink: 0; background: var(--w-alpha-2); }
.w-vers-note { padding-top: 4px; flex-shrink: 0; }
.w-vers-note p { margin: 0; padding: 6px 12px; font-size: 13px; line-height: 17px; color: var(--w-text-muted); }

.w-disc { display: flex; flex-direction: column; gap: 28px; }
.w-disc-hero { position: relative; display: flex; flex-direction: column; justify-content: center; height: 195px; border-radius: 12px; }
.w-disc-hero-fill { position: absolute; inset: 0; border-radius: 12px; }
.w-disc-hero-skills .w-disc-hero-fill { background: #ced6bf; }
.w-disc-hero-plugins .w-disc-hero-fill { background: #c5d3e0; }
[data-mode='dark'] .w-disc-hero-skills .w-disc-hero-fill { background: #11260f; }
[data-mode='dark'] .w-disc-hero-plugins .w-disc-hero-fill { background: #032042; }
.w-disc-hero-body { position: relative; display: flex; flex: 1; flex-direction: column; justify-content: center; padding: 16px; border-radius: 12px; }
.w-disc-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 8px; }
.w-disc-hero-main { display: flex; min-width: 0; max-width: 520px; flex-direction: column; align-items: flex-start; gap: 8px; }
.w-disc-hero-kicker { font-size: 12px; line-height: 17px; font-weight: 500; --w-w: 500; color: var(--w-text-secondary); }
.w-disc-hero-titlerow { display: flex; align-items: center; gap: 12px; }
.w-disc-hero-title { margin: 0; font-size: 22px; line-height: 28px; font-weight: 580; --w-w: 580; color: var(--w-text-primary); }
.w-disc-hero-text { margin: 0; font-size: 14px; line-height: 20px; color: var(--w-text-secondary); }
.w-disc-hero-actwrap { padding-top: 6px; }
.w-disc-hero-act { display: flex; align-items: center; gap: 12px; }
.w-disc-hero-artwrap { flex-shrink: 0; padding-right: 40px; }
.w-disc-hero-art { position: relative; display: flex; width: 128px; height: 128px; flex-shrink: 0; }
.w-disc-hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; flex-shrink: 0; }

.w-disc-section { display: flex; flex-direction: column; gap: 12px; }
.w-disc-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.w-disc-sectitle { display: flex; align-items: baseline; }
.w-disc-sectitle h3 { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; line-height: 20px; font-weight: 400; --w-w: 400; color: var(--w-text-secondary); }
.w-disc-seeall { flex-shrink: 0; }
.w-disc-seeall .w-icon:last-child { margin-right: -4px; }
.w-disc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.w-disc-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.w-disc-sectitle-plain { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; line-height: 20px; font-weight: 400; --w-w: 400; color: var(--w-text-secondary); }
.w-disc-section-cats .w-disc-sechead { gap: 16px; }
.w-disc-tile-row { display: flex; align-items: center; gap: 12px; }
.w-disc-tile-icon {
  display: flex;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--w-alpha-2);
  color: var(--w-text-primary);
}
.w-disc-picto { display: block; min-width: auto; flex-shrink: 0; overflow: hidden; vertical-align: middle; }
.w-disc-picto .w-picto-hl { fill: var(--w-picto-highlight); }
.w-disc-tile-name { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; --w-w: 500; color: var(--w-text-primary); }
.w-disc-tile-count { flex-shrink: 0; font-size: 13px; line-height: 17px; color: var(--w-text-muted); }

.w-disc-card { position: relative; isolation: isolate; display: flex; flex-direction: column; border-radius: 11px; }
/* обводка карточки: у claude.ai это псевдоэлемент ::after с кольцом 1px */
.w-disc-card::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1px var(--w-alpha-2);
}
@media (hover: hover) { .w-disc-card:hover .w-disc-card-fill { background: var(--w-bg-neutral); } }
.w-disc-card-fill { position: absolute; inset: 0; z-index: -1; margin: 0; border-radius: inherit; background: transparent; }
.w-disc-card-body { position: relative; display: flex; flex: 1; align-self: stretch; flex-direction: column; padding: 14px; border-radius: inherit; }
.w-disc-card-row { display: flex; align-items: flex-start; gap: 16px; }
.w-disc-tile {
  display: flex;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--w-alpha-2);
  background: var(--w-surface-0);
  color: var(--w-text-secondary);
}
.w-disc-text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.w-disc-namerow { display: flex; min-width: 0; align-items: center; gap: 8px; }
.w-disc-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; --w-w: 500; color: var(--w-text-primary); }
.w-disc-desc {
  display: flow-root;
  overflow: hidden;
  /* ровно две строки с многоточием, как у клода */
  max-height: 40px;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  font-size: 14px;
  line-height: 20px;
  color: var(--w-text-secondary);
}
.w-disc-meta { position: relative; display: flex; min-width: 0; align-items: baseline; gap: 8px; font-size: 13px; line-height: 17px; color: var(--w-text-muted); cursor: var(--cds-cursor-interactive); }
.w-disc-meta > span { display: block; }
.w-disc-meta-clip { min-width: 0; overflow-x: clip; white-space: nowrap; text-overflow: ellipsis; }
.w-disc-meta-tail { flex-shrink: 0; white-space: nowrap; }
.w-disc-meta-inline { display: inline; min-width: 0; white-space: nowrap; }
/* Кликабельная область карточки: у claude.ai это невидимый ::after у
   названия, растянутый на всю карточку. */
.w-disc-cardlink { outline: none; cursor: var(--cds-cursor-interactive); }
.w-disc-cardlink::after { content: ''; position: absolute; inset: 0; border-radius: 11px; }
.w-disc-action { display: flex; flex-shrink: 0; align-items: center; }

/* ── Ось веса переменного шрифта ──────────────────────────────────────────
   В тёмной теме клод рендерит текст на 40 единиц легче: font-weight не
   меняется, меняется только ось wght (400→360, 500→460, 580→540, 600→560).
   Правило стоит последним и с !important, потому что многие элементы
   объявляют `font: inherit`, а шорткат font сбрасывает ось на
   унаследованную.

   "GRAD" 0 - в ОБЕИХ темах. ЗАМЕРЕНО 25.09 у claude.ai: у всего текста
   (правило :where(.cds-root) у образца) font-variation-settings "GRAD" 0,
   в тёмной "GRAD" 0, "wght" 360. Ставим так же, чтобы вычисленные стили
   совпадали с образцом; ширины текста от этого не меняются (проверено до
   и после на промежуточном экране входа, обе темы).
   Поначалу я решил, что "GRAD" 0 чинит ссылку "Privacy Policy" (76.36 у
   нас против 77.25 у образца) - это была ошибка: ширину меняло не
   значение, а то, что у ссылки оно ОТЛИЧАЛОСЬ от соседнего текста, и
   Chrome набирал её отдельным куском. С "GRAD" 0 у всей строки ссылка
   снова 76.36. Причина этих 0.9 не найдена: файл шрифта тот же (sha256
   совпал), текст, язык и все шрифтовые свойства строки - тоже.
   Правила обёрнуты в :where(), чтобы исключения ниже побеждали любым
   классом.                                                               */
:where(:root, :root *) {
  font-variation-settings: 'GRAD' 0 !important;
}
:where([data-mode='dark'], [data-mode='dark'] *) {
  font-variation-settings: 'GRAD' 0, 'wght' calc(var(--w-w, 400) - 40) !important;
}
/* ...кроме кода. ЗАМЕРЕНО 28.09 у claude.ai: у code (и токенов в нём)
   font-variation-settings normal - правило cds-root его не трогает, и в
   тёмной код остаётся весом 400; номера строк рядом - "GRAD" 0 (в тёмной
   360). У нас код попадал под -40 и в тёмной выходил тоньше образца */
:is(code, pre, kbd, samp), :is(code, pre, kbd, samp) * { font-variation-settings: normal !important; }
/* ...кроме значков. ЗАМЕРЕНО 24.09 у claude.ai: span data-cds=Icon в
   тёмной обёртке cds-root ("GRAD" 0, "wght" 360) даёт normal, то есть
   вес значка остаётся его font-weight (433.25 у значков 20px). У нас
   правило выше опускало и значки до 'wght' 360, а шрифт значков
   начинается с 400 - в тёмной теме все значки выходили тоньше образца.
   В светлой у образца у значков тоже normal */
.w-icon-glyph { font-variation-settings: normal !important; }
/* «Classic icons» (Experiments): прежний шрифт значков вместо Fizzy Lake */
html[data-icons='classic'] .w-icon-glyph { font-family: 'Anthropicons'; }
/* лист файла в 20 px - оптический размер 16, как у образца (см. Icon) */
.w-icon-glyph[data-opsz='16'] { font-variation-settings: 'opsz' 16 !important; }
/* НО в списке окна Uploads у образца этот знак - БЕЗ opsz 16 (ЗАМЕРЕНО 07.10 у
   Max, беседа «28 test files for preview»: в окне Uploads у e06c 20 px
   font-variation-settings normal и optical-sizing auto - лист со строчками;
   opsz 16 только в карточке Outputs и у листов ленты). Отрисовано его же
   шрифтом (c0f671921) - auto = строчки, 'opsz' 16 = пустой лист. Наша правка
   29.09 ставила пустой лист и в Uploads - пара upk_* 28.09 это и ловила */
.w-up-row-icon .w-icon-glyph[data-opsz='16'] { font-variation-settings: normal !important; }

/* у клода подписи приложений в блоке гостевого пропуска идут с классом
   font-base: ось веса там жёстко 400 и в тёмной теме не понижается */
[data-mode='dark'] .w-invite-app-name { font-variation-settings: 'GRAD' 0, 'wght' 400 !important; }
/* строчка на странице незаконченного коннектора набрана классом
   font-large: ось веса там тоже жёстко 400 и в тёмной теме не падает */
[data-mode='dark'] .w-cdet-empty-text p { font-variation-settings: 'GRAD' 0, 'wght' 400 !important; }
/* исключения для подписи кнопок входа НЕТ: 24.09 оно было добавлено по
   неверному замеру (подпись прочитана уже после возврата образцу светлой
   темы, отсюда "145.5 без понижения"). Переснято с выключенными
   переходами и с кадрами: у образца подпись в тёмной 'wght' 460, 144.8 -
   общее правило выше даёт ровно это. */

/* ── Внутренние страницы раздела Privacy ─────────────────────────────────
   Shared chats, Shared artifacts, Uploaded files, Your feedback. Снято с
   claude.ai: две пустые обёртки-колонки, внутри колонка с зазором 16,
   шапка это строка space-between с колонкой заголовка (зазор 12).     */
.w-pvsub, .w-pvsub-in { display: flex; flex-direction: column; }
.w-subpage { display: flex; flex-direction: column; gap: 16px; }
.w-subpage-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.w-subpage-head-main { display: flex; min-width: 0; flex-direction: column; gap: 12px; }
h2.w-subpage-title, h3.w-subpage-title {
  margin: 0;
  font-size: 15px;
  line-height: 20px;
  font-weight: 580; --w-w: 580;
  color: var(--w-text-primary);
}
.w-subpage-desc { margin: 0; font-size: 14px; line-height: 20px; color: var(--w-text-secondary); }
/* пустое состояние: 32 сверху и снизу, по центру, вторичным цветом */
.w-subpage-empty { padding: 32px 0; text-align: center; color: var(--w-text-secondary); }
.w-subpage-empty-muted { color: var(--w-text-muted); }
.w-subpage-sec { display: flex; flex-direction: column; gap: 16px; }
.w-subpage-sec-head { display: flex; flex-direction: column; gap: 12px; }
.w-sub-search-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.w-input-search { width: 100%; max-width: 448px; }
.w-sub-showing { color: var(--w-text-muted); }
.w-loadmore { display: flex; justify-content: center; padding-top: 12px; }

/* крошка в шапке окна: одиночная кнопка со стрелкой, сдвинутая на 10
   влево, значок ещё на 4 влево внутри подписи */
.w-crumbone { display: flex; align-items: center; }
.w-crumb-back { display: inline-flex; margin-inline-start: -4px; }

/* чип нейтральной подложки (Private / Chat) */
.w-chip-neutral {
  background: var(--w-bg-neutral);
  color: var(--w-text-secondary);
  font-size: 12px;
  line-height: 15px;
  font-weight: 500; --w-w: 500;
}

/* таблица артефактов Claude Code: ширина колонок по содержимому */
.w-table.w-table-cca { min-width: 0; table-layout: auto; }
.w-table.w-table-cca th:nth-child(3),
.w-table.w-table-cca th:nth-child(4),
.w-table.w-table-cca th:nth-child(5) { width: auto; }
.w-link-plain {
  color: var(--w-text-primary);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 3px;
  border-radius: 2px;
  overflow-wrap: break-word;
  cursor: var(--cds-cursor-interactive);
}
@media (hover: hover) { .w-link-plain:hover { text-decoration-color: currentColor; } }
/* ЗАМЕРЕНО: та же тень фокуса, что у обычной .w-link */
.w-link-plain:focus-visible {
  text-decoration-color: currentColor;
  box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring);
  outline-color: transparent;
}
.w-table.w-table-cca td { overflow: visible; }
.w-table.w-table-files td:nth-child(1) { overflow: hidden; }
.w-table.w-table-files td:nth-child(2),
.w-table.w-table-files td:nth-child(3),
.w-table.w-table-files td:nth-child(4),
.w-table.w-table-files td:nth-child(5),
.w-table.w-table-files td:nth-child(6) { overflow: visible; }

/* таблица загруженных файлов: ширины колонок заданы, первая забирает
   остаток */
.w-files-cq { container-type: inline-size; }
.w-table.w-table-files { min-width: 0; table-layout: fixed; }
.w-table.w-table-files th:nth-child(1) { width: auto; }
.w-table.w-table-files th:nth-child(2) { width: 112px; }
.w-table.w-table-files th:nth-child(3) { width: 128px; }
.w-table.w-table-files th:nth-child(4) { width: 128px; }
.w-table.w-table-files th:nth-child(5) { width: 80px; text-align: right; }
.w-table.w-table-files th:nth-child(6) { width: 32px; }
.w-table.w-table-files td:nth-child(5) { text-align: right; }
.w-table.w-table-files td:nth-child(6) { text-align: right; }
@container (max-width: 38rem) {
  .w-table.w-table-files th:nth-child(2),
  .w-table.w-table-files td:nth-child(2) { display: none; }
}
.w-table.w-table-files tbody tr:has(.w-row-overlay) { cursor: var(--cds-cursor-interactive); }
.w-chip.w-chip-neutral { cursor: inherit; }
.w-file-name { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--w-text-primary); }
.w-file-size { font-size: 13px; line-height: 17px; color: var(--w-text-muted); }
.w-contents { display: contents; }
/* прозрачная кнопка поверх всей строки: открывает список бесед файла */
.w-row-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: var(--w-radius);
  outline: none;
  cursor: inherit;
}
.w-row-overlay:focus-visible { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
.w-del-cell { display: inline-flex; vertical-align: middle; }

.w-fb-head { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; }
.w-fb-head .w-btn { margin-inline-start: -6px; }
.w-fb-title { margin: 0; font-size: 15px; line-height: 20px; font-weight: 500; --w-w: 500; color: var(--w-text-primary); }
.w-fb-desc { margin: 0 0 16px; font-size: 13px; line-height: 17px; color: var(--w-text-secondary); }

/* ── Скелетоны подстраниц Privacy ────────────────────────────────────────
   Полоска высотой 1em с радиусом 8 на подложке skeleton-base, поверх неё
   через ::after бежит блик: градиент прозрачный - sheen - прозрачный,
   сдвиг от -100% до 100% за 2с линейно, бесконечно. Ячейка проявляется
   анимацией opacity 0 -> 1. */
:root { --w-skel-base: hsl(from #0b0b0b h s l / 5%); --w-skel-sheen: hsl(from #0b0b0b h s l / 5%); }
[data-mode='dark'] { --w-skel-base: hsl(from #fff h s l / 7.5%); --w-skel-sheen: hsl(from #fff h s l / 7.5%); }
@keyframes w-shimmer { 0% { transform: translate(-100%); } 100% { transform: translate(100%); } }
@keyframes w-placeholder-reveal { 0% { opacity: 0; } 100% { opacity: 1; } }
.w-skel-cell { display: flex; min-height: 1lh; align-items: center; animation: w-placeholder-reveal .2s var(--w-ease-out) both; }
.w-skel-cell-end { justify-content: flex-end; }
.w-skel {
  position: relative;
  height: 1em;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--w-radius);
  background: var(--w-skel-base);
}
.w-skel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--w-skel-sheen), transparent);
  animation: w-shimmer 2s linear infinite;
}
[data-reduce-motion='true'] .w-skel::after { display: none; }

/* ── Скелеты нового вида (SkeletonGroup data-hold=delayed, motion=wave) ──
   ЗАМЕРЕНО у claude.ai 25.09 на строке удаления учётной записи (Account,
   после обновления страницы), правила - из его CSS:
     группа   cds-placeholder-reveal (opacity 0 -> 1) .15s ease-out с
              задержкой .5s, fill backwards - первые полсекунды её не
              видно вовсе: быстрый ответ скелет не показывает
     полоска  без бегущего блика; cds-skeleton-breathe (opacity 1 -> .6
              -> 1) 2s ease-in-out бесконечно, с .65s (конец проявления)
              и каждая следующая на 90мс позже (--i)
     уменьшенная анимация - всё это выключено
   Подложка та же: чёрный 5% / белый 7.5%, радиус 8. */
@keyframes w-skeleton-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }
.w-skelgrp { animation: w-placeholder-reveal .15s ease-out .5s backwards; }
.w-skelgrp .w-skel::after { display: none; }
.w-skelgrp .w-skel { animation: w-skeleton-breathe 2s ease-in-out calc(.65s + var(--i, 0) * 90ms) infinite; }
/* data-hold="none" у образца: группа видна сразу, без проявления, и дыхание
   начинается сразу (--cds-skel-reveal-end = 0), каждая полоска +90 мс */
.w-skelgrp[data-hold='none'] { animation: none; }
.w-skelgrp[data-hold='none'] .w-skel { animation-delay: calc(var(--i, 0) * 90ms); }
[data-reduce-motion='true'] .w-skelgrp,
[data-reduce-motion='true'] .w-skelgrp .w-skel { animation-duration: .01ms; animation-iteration-count: 1; }
@media (prefers-reduced-motion: reduce) {
  .w-skelgrp, .w-skelgrp .w-skel { animation-duration: .01ms; animation-iteration-count: 1; }
}

/* колонки таблиц скелетонов Shared chats / Shared artifacts */
.w-table.w-table-shared { min-width: 0; table-layout: fixed; }
.w-table.w-table-shared th:nth-child(1) { width: auto; }
.w-table.w-table-shared th:nth-child(2) { width: 144px; }
.w-table.w-table-shared th:nth-child(3) { width: 160px; }
.w-table.w-table-shared th:nth-child(4) { width: 96px; text-align: right; }
.w-table.w-table-shared td { overflow: visible; }
/* таблица Your feedback шириной по содержимому, без выносов по краям */
.w-table.w-table-fb { min-width: 0; table-layout: auto; }
.w-table.w-table-fb th:nth-child(3),
.w-table.w-table-fb th:nth-child(4),
.w-table.w-table-fb th:nth-child(5) { width: auto; }
.w-table.w-table-fb td { overflow: visible; }

/* раскрытая строка файла: список бесед во всю ширину, у самой строки
   гасится нижняя граница */
.w-table.w-table-files tbody tr.w-row-open > td { border-bottom-width: 0; }
.w-table.w-table-files td.w-row-chats { padding-top: 0; overflow: visible; }
.w-chatlist { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.w-chatlist-item { min-width: 0; }
.w-chatlist-link {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--w-text-secondary);
  cursor: var(--cds-cursor-interactive);
  border-radius: 2px;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 3px;
}
@media (hover: hover) { .w-chatlist-link:hover { text-decoration-color: currentColor; } }

/* ── Export data ─────────────────────────────────────────────────────── */
.w-shrink0 { flex-shrink: 0; }
.w-exp-body { display: flex; flex-direction: column; }
.w-exp-group { display: flex; flex-direction: column; gap: 12px; }
.w-exp-sec { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; }
.w-exp-h3 { margin: 0; font-size: 14px; line-height: 20px; font-weight: 400; --w-w: 400; color: var(--w-text-primary); }
.w-exp-list { display: inline-flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; text-align: left; }
.w-exp-li { display: flex; gap: 8px; }
.w-exp-check { width: 16px; height: 16px; flex-shrink: 0; margin-top: .25em; color: var(--w-text-muted); }

.w-date-row { display: flex; gap: 16px; }
.w-field { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 8px; }
.w-field-label { font-size: 14px; line-height: 1; font-weight: 500; --w-w: 500; color: var(--w-text-primary); }
.w-dateinput {
  position: relative;
  display: inline-flex;
  width: 100%;
  height: var(--w-h-control);
  align-items: center;
  border-radius: var(--w-radius);
  background: var(--w-fill-field);
  box-shadow: var(--w-field-ring);
  transition: box-shadow var(--w-dur-fast) var(--w-ease), background-color var(--w-dur-fast) var(--w-ease);
}
@media (hover: hover) { .w-dateinput:hover:not(:focus-within) { box-shadow: var(--w-field-ring-hover); } }
.w-dateinput:focus-within { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
.w-dateinput-body {
  display: flex;
  height: 100%;
  min-width: 0;
  flex: 1;
  align-items: center;
  padding-left: 12px;
  white-space: nowrap;
  cursor: text;
  unicode-bidi: isolate;
}
.w-dateseg { padding: 0 1px; border-radius: 5.5px; font-variant-numeric: tabular-nums; outline: none; caret-color: transparent; }
.w-dateseg:focus { background: var(--w-accent); color: #fff; }
.w-dateseg-sep { color: var(--w-text-muted); }
.w-dateinput-btn { display: inline-flex; width: 32px; height: 32px; flex-shrink: 0; align-items: center; justify-content: center; }
.w-btn-icon-xs { width: 24px; height: 24px; border-radius: 6px; }
.w-btn-icon-xxs { width: 22px; height: 22px; border-radius: 3px; }

/* ── Календарь ───────────────────────────────────────────────────────────
   Окошко 240x282: у обёртки отступ 8, внутри колонка 224x266. Шапка 32 со
   стрелками 24x24 (радиус 6, кегль 13/19) и подписью месяца веса 500.
   Сетка это таблица, где строки flex, ячейки по 32; выбранный день
   подсвечивают две абсолютные подложки внутри первой ячейки строки. */
.w-popover-cal .w-popover-inner { display: block; overflow: auto; padding: 8px; }
.w-cal { display: flex; flex-direction: column; }
.w-cal-head { display: flex; height: 32px; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 8px; }
.w-cal-head .w-btn { font-size: 13px; line-height: 19px; }
.w-cal-label { font-weight: 500; --w-w: 500; color: var(--w-text-primary); }
.w-cal-grid { display: flex; gap: 28px; }
.w-cal-grid table { display: block; border-collapse: collapse; }
.w-cal-grid thead { display: block; }
.w-cal-grid thead tr { display: flex; }
.w-cal-grid th {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 17px;
  font-weight: 400; --w-w: 400;
  color: var(--w-text-muted);
  text-align: center;
  padding: 0;
}
.w-cal-grid tbody { display: flex; flex-direction: column; row-gap: 2px; }
.w-cal-grid tbody tr { position: relative; display: flex; }
.w-cal-grid td { display: block; width: 32px; height: 32px; padding: 0; }
.w-cal-range, .w-cal-sel {
  position: absolute;
  top: 0;
  display: block;
  width: 32px;
  height: 32px;
  border-radius: var(--w-radius);
}
.w-cal-range { background: var(--cds-bg-accent); }
.w-cal-sel { background: var(--w-accent); }
.w-cal-day {
  position: relative;
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: var(--w-radius);
  cursor: var(--cds-cursor-interactive);
}
@media (hover: hover) { .w-cal-day:hover:not([data-selected]) { background: var(--w-ghost-hover); } }
.w-cal-day[data-selected] { color: #fff; }

/* скрытый настоящий флажок у переключателя: как у claude.ai, 1x1 */
.w-sr-input { position: fixed; top: 0; left: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; white-space: nowrap; border: 0; clip-path: inset(50%); appearance: none; }
/* описание строки из двух обёрток (вторая строка Privacy) */
.w-desc-col { display: flex; flex-direction: column; gap: 8px; }
.w-desc-col > span { display: block; }
/* шеврон в последней колонке таблицы файлов у claude.ai блочный */
.w-icon-block { display: flex; }
/* страница Your feedback обходится без третьей обёртки */
.w-pvsub-plain { display: flex; flex-direction: column; }
.w-fb-head svg { flex-shrink: 0; }

/* таблица в состоянии загрузки: у ячеек нет ни срезания, ни выравнивания
   по правому краю, всё это появляется вместе с данными */
.w-table.w-table-skel td:nth-child(n) { overflow: visible; text-align: start; }
.w-skel-cell-fb { height: 28px; min-height: 0; }
.w-skel-cell-mid { align-items: center; justify-content: center; }
/* старая таблица на странице Your feedback: отступы 16, разделители на
   самих строках, шапка вторичным цветом */
.w-table-fbskel { width: 100%; border-collapse: collapse; }
.w-table-fbskel thead tr { border-bottom: 1px solid var(--w-border); font-weight: 500; --w-w: 500; color: var(--w-text-secondary); }
.w-table-fbskel th { padding: 0 16px 12px; text-align: left; vertical-align: middle; }
.w-table-fbskel th:first-child { padding-left: 0; }
.w-table-fbskel th:last-child { padding-right: 0; }
.w-table-fbskel th.w-th-mid { text-align: center; }
.w-table-fbskel tbody tr { border-bottom: 1px solid var(--w-border); }
.w-table-fbskel tbody tr:last-child { border-bottom: 0; }
.w-table-fbskel td { padding: 16px; vertical-align: middle; }
.w-table-fbskel td:first-child { padding-left: 0; }
.w-table-fbskel td:last-child { padding-right: 0; }

/* ── Подгрузка меню ──────────────────────────────────────────────────────
   Первое открытие меню после загрузки страницы: один отключённый пункт
   высотой 24 с прозрачностью 0.4 и вертушкой 12x12. Вертушка это кольцо
   в 1.5px цветом границы и поверх него дуга из конического градиента под
   маской, крутится 1с линейно без конца. */
.w-menu-loading { height: auto; opacity: .4; pointer-events: none; }
.w-status { display: flex; align-items: center; }
.w-spinner {
  position: relative;
  display: inline-block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  vertical-align: middle;
}
.w-spinner-ring {
  position: absolute;
  inset: 0;
  border: 1.5px solid var(--w-border);
  border-radius: calc(infinity * 1px);
}
.w-spinner-arc {
  position: absolute;
  inset: 0;
  border-radius: calc(infinity * 1px);
  background: conic-gradient(transparent 40%, var(--w-text-muted));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px + 0.5px));
  animation: w-spin 1s linear infinite;
}
@keyframes w-spin { to { transform: rotate(360deg); } }
/* та же вертушка цветом текста вокруг: ЗАМЕРЕНО у cds Spinner в кнопке -
   кольцо color-mix(currentColor 25%), дуга conic-gradient(transparent
   40%, currentColor). В меню цвета другие (см. выше), там оставлено как было */
.w-spinner-cc .w-spinner-ring { border-color: color-mix(in srgb, currentColor 25%, transparent); }
.w-spinner-cc .w-spinner-arc { background: conic-gradient(transparent 40%, currentColor); }
[data-reduce-motion='true'] .w-spinner-arc { animation: none; }
/* cds Spinner 20 (первая загрузка Recents, ЗАМЕРЕНО 27.09): кольцо и
   маска дуги 2 px */
.w-spinner-20 { width: 20px; height: 20px; }
.w-spinner-20 .w-spinner-ring { border-width: 2px; }
.w-spinner-20 .w-spinner-arc { mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px + 0.5px)); }
/* cds Spinner md (16, кольцо 1.75) - загрузка аватара. Стоит ПОСЛЕ
   .w-spinner (12): раньше лежало выше, и общее правило его перебивало */
.w-spinner-16 { width: 16px; height: 16px; }
.w-spinner-16 .w-spinner-ring { border-width: 1.75px; }
.w-spinner-16 .w-spinner-arc { mask: radial-gradient(farthest-side, transparent calc(100% - 1.75px), #000 calc(100% - 1.75px + 0.5px)); }

/* ── Состояние загрузки вкладки Billing ─────────────────────────────────
   Пока данные не пришли, у claude.ai в разделе Payment под строкой карты
   лежит полоска 200x20 за разделителем, между Payment и Invoices стоит
   безымянный раздел из пяти полосок, а таблица счетов сменяется одной
   полоской во всю ширину. */
.w-pay-skel { padding: 12px 0; border-top: 1px solid var(--w-alpha-1); }
.w-usage-skel { padding: 12px 0; }
.w-usage-skel-a { margin-bottom: 24px; }
.w-usage-skel-a > .w-skel:nth-child(1) { margin-bottom: 16px; }
.w-usage-skel-a > .w-skel:nth-child(2) { margin-bottom: 8px; }
.w-usage-skel-b > .w-skel:nth-child(1) { margin-bottom: 8px; }

.w-skel-py12 { padding: 12px 0; }
.w-memory-group-head { display: flex; min-height: 20px; align-items: center; margin-left: 12px; }
.w-table-skelrows tbody tr, .w-table-skelrows tbody td, .w-table-skelrows tbody td * { cursor: auto; }

/* Пока память не пришла, строка ввода у claude.ai выключена: весь её
   короб рисуется приглушённым цветом и курсор обычный. */
.w-composer-off .w-composer-box,
.w-composer-off .w-composer-box * {
  color: var(--cds-text-disabled);
  text-decoration-color: var(--cds-text-disabled);
  cursor: default;
}
.w-composer-off .w-composer-sendwrap { gap: normal; }
.w-composer-off .w-composer-send:disabled,
.w-composer-off .w-composer-send:disabled * {
  color: var(--w-text-muted);
  text-decoration-color: var(--w-text-muted);
  cursor: not-allowed;
}

/* ── Состояния загрузки разделов Skills, Plugins и Connectors ────────────
   Шапка, панель вкладок и список сменяются полосками; ширины взяты с
   живого окна claude.ai. */
.w-hub-skel-title { grid-column-start: 1; min-width: 168px; }
.w-hub-skel-title-in {
  display: flex;
  height: 28px;
  align-items: center;
  font-size: 22px;
  line-height: 28px;
  font-weight: 500; --w-w: 500;
}
.w-hub-skel-actions { display: flex; min-width: 168px; align-items: center; justify-content: flex-end; gap: 6px; }
.w-hub-skel-tabs { display: flex; align-items: center; gap: 1px; }
.w-hub-skel-body { overflow: hidden; }
.w-hub-skel-row { display: flex; align-items: center; gap: 16px; padding: 12px; }
.w-hub-skel-row > .w-skel { flex-shrink: 0; }
.w-hub-skel-text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.w-hub-skel-line { display: flex; min-height: 20px; align-items: center; }
.w-hub-skel-side { display: flex; flex-shrink: 0; align-items: center; gap: 28px; }
.w-hub-skel-chip { display: flex; min-height: 17px; align-items: center; font-size: 13px; line-height: 17px; }
.w-hub-skel-more { width: 28px; height: 28px; }
.w-skel-wrap { flex-shrink: 0; }

/* заглушка списка коннекторов */
.w-cn-skel { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.w-cn-skel > div:first-child, .w-cn-skel > div:first-child > div { flex-shrink: 0; align-self: flex-start; }
.w-cn-skel-table { display: flex; flex-direction: column; }
.w-cn-skel-scroll { flex-shrink: 0; margin: 0 -16px; padding: 0 16px; overflow: hidden; scrollbar-gutter: stable; scrollbar-width: thin; }
.w-cn-skel-head { display: flex; }
.w-cn-skel-head > .w-cn-skel-cell:first-child { flex: 1; }
.w-cn-skel-head > .w-cn-skel-cell:not(:first-child) { flex-shrink: 0; }
.w-cn-skel-cell { display: flex; width: 160px; height: 32px; align-items: center; padding: 0 12px; }
.w-cn-skel-chip { display: flex; min-height: 17px; align-items: center; font-size: 13px; line-height: 17px; }
.w-cn-skel-row { display: flex; }
.w-cn-skel-row > :first-child { flex: 1; }
.w-cn-skel-row > :not(:first-child) { width: 160px; flex-shrink: 0; }
.w-cn-skel-td {
  box-sizing: content-box;
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--w-alpha-1);
}
.w-cn-skel-row[data-first] .w-cn-skel-td { border-top: 1px solid var(--w-alpha-1); }
.w-cn-skel-td > .w-skel { flex-shrink: 0; }
.w-cn-skel-line { display: flex; min-height: 20px; flex: 1; align-items: center; }

/* ── Состояние загрузки вкладки Account ─────────────────────────────────
   Доверенные устройства: шапка с полоской и пустое поле с полоской по
   центру. Активные сеансы: три строки полосок в 3/4 ширины ячейки. */
.w-trust-skel { padding: 12px 0; }
.w-trust-skel-in { display: flex; flex-direction: column; }
.w-trust-skel-head { display: flex; height: 32px; align-items: center; border-bottom: 1px solid var(--w-alpha-1); }
.w-trust-skel-body { display: flex; height: 125px; align-items: center; justify-content: center; }
.w-cell-skel { display: flex; min-height: 20px; align-items: center; }
.w-sec-off { display: none; }
.w-rowoff { display: none; }
.w-skelbtn { position: relative; display: flex; }
.w-skelbtn-in { display: block; }
.w-skelbtn-over { position: absolute; inset: 0; height: auto; overflow: visible; }
/* заглушка ровно по кнопке и поверх неё: так строка удаления выглядит,
   пока сервер не ответил, есть ли у учётной записи подписка */
.w-skelbtn-fit { display: inline-flex; }
/* саму кнопку прячем, но место она держит: заглушка ложится ровно по
   её размеру и цвет у неё тот же, что у полоски слева */
.w-skelbtn-fit .w-skelbtn-in { visibility: hidden; }
.w-skelbtn-fit .w-skelbtn-over { z-index: 2; border-radius: var(--w-radius); }

/* ── Состояние загрузки вкладки Claude Code ─────────────────────────────
   Карточка приглашения показывает пустой квадрат вместо кода и полоски
   вместо подписей, таблица токенов сменяется тремя строками полосок. */
.w-inv-skel-qr { width: 128px; height: 128px; }
.w-inv-skel-line { display: flex; min-height: 20px; align-items: center; }
.w-inv-skel-sub { display: flex; min-height: 17px; align-items: center; }
.w-inv-skel-head { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.w-inv-skel-field { margin-top: 135px; }
.w-cc-rest { display: flow-root; }
/* обёртка аватара это group/avatar: от неё считается наведение и в ней
   лежит кружок очистки, поэтому она относительная */
.w-avatar-wrap { position: relative; display: block; }
/* скрытое поле формы у списков: подложка прозрачная, как у claude.ai */
input.w-sr-only { background: transparent; }
/* в карточке приглашения Claude Code полоски без бегущего блика:
   у claude.ai они обычные блоки с подложкой */
.w-skel-flat { position: static; overflow: visible; }
.w-skel-flat::after { display: none; }
.w-invite-card-skel { overflow: visible; }
.w-field-note { display: block; }
/* тумблер в обёртке подсказки (Cowork, «Only on your computer») */
.w-sw-tip { display: inline-flex; }
.w-listbox-empty[data-off] { display: none; }
/* подпись пункта списка лежит в колонке (у claude.ai туда же попадает
   вторая строка), галочка выбранного в своей обёртке 20x20 */
.w-option-main { display: flex; min-width: 0; flex-direction: column; gap: 2px; }

/* простой пункт списка: подпись прямо в блоке, как у комбобокса
   What best describes your work? у claude.ai */
.w-option-plain { min-width: 0; flex: 1; }
.w-option-check { display: block; width: 20px; height: 20px; flex-shrink: 0; color: var(--w-text-accent); }
.w-option-check .w-icon { display: flex; }
/* пункт с пояснением: внешний блок обычный, колонка со строками внутри */
.w-option-block { display: block; min-width: 0; flex-grow: 1; }
.w-listbox-tail { display: block; height: 0; }

/* метка у названия в строке списка: снаружи 5.5, внутри 4.5, шрифт
   11/14 весом 500, отступы 0 6 и зазор 4 */
.w-hub-chip { display: block; padding: 0; border: 0; background: transparent; border-radius: 5.5px; outline: none; }
button.w-hub-chip { cursor: var(--cds-cursor-interactive); }
button.w-hub-chip { flex-shrink: 1; }
span.w-hub-chip { display: flex; flex-shrink: 0; }
.w-hub-row span.w-hub-chip, .w-hub-row span.w-hub-chip *,
.w-drow span.w-hub-chip, .w-drow span.w-hub-chip * { cursor: var(--cds-cursor-interactive); }
.w-hub-chip:focus-visible { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
.w-hub-chip-in {
  display: inline-flex;
  height: 18px;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  white-space: nowrap;
  vertical-align: middle;
  border-radius: 4.5px;
  background: var(--w-alpha-1);
  font-size: 11px;
  line-height: 14px;
  font-weight: 500; --w-w: 500;
  color: var(--w-text-secondary);
}
/* текст метки сдвинут на 0.55px вниз для оптического центра */
.w-hub-chip-in > span { padding-bottom: .55px; white-space: nowrap; }
.w-hub-chip-new { background: var(--w-tint-blue); color: var(--w-text-accent); }
.w-conn-chip { display: flex; }
.w-hub-tags { display: flex; height: 18px; min-width: 64px; flex-shrink: 9999; align-items: center; gap: 8px; overflow: hidden; }
.w-hub-tag { min-width: 0; flex-shrink: 1; }
.w-hub-tag > span { overflow: clip visible; }
.w-hub-tag-more { min-width: auto; flex-shrink: 0; }
.w-hub-tag-more > span { overflow: visible; }
.w-hub-row-nomenu { flex-shrink: 0; }
.w-hub-row-nomenu { display: block; width: 28px; height: 28px; }
.w-det-name > span { display: block; overflow: clip visible; white-space: nowrap; }
/* маленький тумблер (страница навыка): высота 18, бегунок 14 */
.w-switch-sm { width: 32.4px; height: 18px; }
.w-switch-sm .w-switch-knob { width: 14px; height: 14px; }
.w-switch-sm[data-checked] .w-switch-knob { translate: 14.4px; }
/* переключатель вида в предпросмотре файла: 28 в высоту */
.w-seg-xs { height: 28px; border-radius: 7px; }
.w-seg-xs .w-seg-clip { border-radius: 7px; }
.w-seg-xs .w-seg-thumb { border-radius: 6px; }
.w-seg-xs .w-seg-item { border-radius: 5px; }
.w-seg-xs .w-seg-item-icon { width: 26px; }
.w-seg-input { background: transparent; }

/* ── Подстраница «See all» в каталоге ──────────────────────────────────────
   Хлебная крошка, заголовок раздела и список строк. Правая часть строки:
   число установок в слоте 80px и кнопка «Add». */
.w-dsee { display: flex; min-width: 0; flex-direction: column; }
.w-dsee-head { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: 6px; }
.w-dsee-back { margin-left: -10px; }
.w-dsee-back-icon { margin-left: -4px; }
.w-dsee-title { margin: 0; min-width: 0; overflow: hidden; white-space: nowrap; font-size: 15px; line-height: 20px; font-weight: 580; --w-w: 580; color: var(--w-text-primary); }
.w-dsee-list { display: flex; min-width: 0; flex-direction: column; }

.w-drow { position: relative; display: flex; min-width: 0; align-items: center; gap: 16px; border-radius: var(--w-radius-card); padding: 12px; }
.w-drow::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--w-border);
  pointer-events: none;
}
.w-drow:last-child::after { display: none; }
@media (hover: hover) { .w-drow:hover::after, .w-drow:has(+ .w-drow:hover)::after { display: none; } }
@media (hover: hover) { .w-drow:hover { background: var(--w-ghost-hover); } }
@media (hover: hover) { .w-drow:has(> div button:hover) { background: transparent; } }
.w-drow-hit { position: absolute; inset: 0; padding: 0; border: 0; background: transparent; border-radius: var(--w-radius-card); outline: none; cursor: var(--cds-cursor-interactive); }
.w-drow-hit:focus-visible { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
.w-drow-main { pointer-events: none; position: relative; display: flex; min-width: 0; flex: 1; align-items: center; gap: 16px; }
.w-drow-text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.w-drow-head { display: flex; min-width: 0; align-items: center; gap: 8px; }
.w-drow-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; --w-w: 500; color: var(--w-text-primary); }
.w-drow-newwrap { display: contents; }
.w-drow-desc { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--w-text-secondary); }
.w-drow-by { color: var(--w-text-muted); }
.w-drow-dot { padding: 0 8px; color: var(--w-text-muted); }
.w-drow-side { pointer-events: none; position: relative; display: flex; flex-shrink: 0; align-items: center; gap: 28px; }
.w-drow-side button, .w-drow-side [tabindex] { pointer-events: auto; }
.w-drow-inst { display: flex; min-width: 80px; justify-content: flex-end; }
.w-drow-inst-in { flex-shrink: 0; white-space: nowrap; font-size: 13px; line-height: 17px; color: var(--w-text-muted); }
.w-drow-addwrap { display: flex; width: 64px; justify-content: flex-end; }
/* тело вкладки Discover с включённым фильтром рубрики: просто список */
.w-disc-plain { display: flex; min-width: 0; flex-direction: column; }
/* кнопка сброса фильтра: мельче обычной значковой и с кеглем 13 */
.w-hub-reset { font-size: 13px; line-height: 19px; }

/* ── Страница карточки каталога ────────────────────────────────────────── */
.w-dcard-actions { display: flex; flex-shrink: 0; align-items: center; gap: 12px; }
.w-dcard-add { display: flex; }
.w-dcard-cats { display: flex; margin: 0; padding: 0; min-width: 0; flex-wrap: wrap; gap: 8px; list-style: none; }
.w-dcard-cats > li { display: flex; min-width: 0; }
.w-dcard-cat {
  display: inline-flex;
  height: 20px;
  min-width: 0;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  white-space: nowrap;
  vertical-align: middle;
  border-radius: 5px;
  background: var(--w-alpha-1);
  font-size: 12px;
  line-height: 15px;
  font-weight: 500; --w-w: 500;
  color: var(--w-text-secondary);
}
.w-dcard-cat > span { padding-bottom: .6px; white-space: nowrap; }
.w-dcard-tool { display: flex; min-width: 0; align-items: flex-start; gap: 8px; }
.w-dcard-tool-icon { display: flex; width: 20px; height: 20px; flex-shrink: 0; align-items: center; justify-content: center; overflow: hidden; border-radius: 5.5px; background: var(--w-alpha-2); color: var(--w-text-secondary); }
.w-dcard-tool-text { min-width: 0; flex: 1; font-size: 13px; line-height: 17px; color: var(--w-text-secondary); }
.w-dcard-tool-info { display: flex; width: 20px; height: 20px; flex-shrink: 0; align-items: center; justify-content: center; margin: -4px; padding: 4px; border: 0; border-radius: 8px; background: transparent; color: var(--w-text-muted); cursor: var(--cds-cursor-interactive); }
.w-dcard-list-wrap { display: flex; min-width: 0; flex-direction: column; gap: 16px; padding: 0 24px; }
.w-dcard-note { margin: 0; min-width: 0; color: var(--w-text-secondary); }
.w-dcard-list { display: flex; min-width: 0; flex-direction: column; }
.w-dcard-row { position: relative; display: flex; min-width: 0; align-items: center; gap: 16px; border-radius: var(--w-radius-card); padding: 12px; }
@media (hover: hover) { .w-dcard-row:hover { background: var(--w-ghost-hover); } }
.w-dcard-row-hit { position: absolute; inset: 0; padding: 0; border: 0; background: transparent; border-radius: var(--w-radius-card); outline: none; cursor: var(--cds-cursor-interactive); }
.w-dcard-row-hit:focus-visible { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
.w-dcard-row-main { pointer-events: none; position: relative; display: flex; min-width: 0; flex: 1; align-items: center; gap: 16px; }
.w-dcard-row-tile { display: flex; width: 36px; height: 36px; flex-shrink: 0; align-items: center; justify-content: center; border: 1px solid var(--w-border); border-radius: 8px; background: var(--w-surface-0); color: var(--w-text-secondary); }
.w-dcard-row-text { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.w-dcard-row-name { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 500; --w-w: 500; color: var(--w-text-primary); }
.w-dcard-row-desc { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--w-text-secondary); }
.w-dcard-sr { display: none; }

/* ── Дерево файлов во вкладке Contents ─────────────────────────────────── */
/* родная полоса прокрутки списка файлов шириной 10px и прозрачная: рядом
   claude.ai рисует свою */
.w-cont-files-inner::-webkit-scrollbar,
.w-cont-files-inner > div::-webkit-scrollbar { width: 10px; }
.w-cont-files-inner::-webkit-scrollbar-thumb,
.w-cont-files-inner::-webkit-scrollbar-track,
.w-cont-files-inner > div::-webkit-scrollbar-thumb,
.w-cont-files-inner > div::-webkit-scrollbar-track { background: transparent; }
.w-cont-tree-item { display: block; min-width: 0; }
.w-cont-tree-kids { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.w-cont-dir { display: flex; justify-content: space-between; gap: normal; padding: 4px 8px; color: var(--w-text-secondary); }
.w-cont-dir-row { display: flex; min-width: 0; align-items: center; gap: 6px; }
.w-cont-dir .w-cont-file-name { flex: 0 1 auto; }
.w-cont-dir-icon .w-icon, .w-cont-dir-chev .w-icon { display: flex; }
.w-cont-dir-icon { display: block; width: 14px; height: 14px; flex-shrink: 0; color: var(--w-text-secondary); }
.w-cont-dir-chev { display: block; width: 14px; height: 14px; flex-shrink: 0; margin-left: 6px; color: var(--w-text-secondary); }
/* пустая полоска в конце списка каталога */
.w-cdir-tail { display: block; height: 1px; }
/* на странице-списке между сеткой и хвостовой полоской 28px, а не 48 */
.w-cdir-sections-list { gap: 28px; }
/* метка вроде Community рядом с названием в карточке каталога */
.w-cdir-badge { display: flex; min-width: 0; flex-shrink: 0; }
.w-cdir-badge > span {
  display: inline-flex;
  height: 16px;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  padding: 0 4px;
  border-radius: 4px;
  background: var(--w-alpha-1);
  white-space: nowrap;
  vertical-align: middle;
  font-size: 10px;
  line-height: 13px;
  font-weight: 500; --w-w: 500;
  color: var(--w-text-secondary);
}
/* у текста метки строка 12px с добором отступами, как у claude.ai */
.w-cdir-badge > span > span { margin: -1.25px 0; padding: 1.25px 0; line-height: 12px; }

/* ── Коннектор с незаконченным подключением ────────────────────────────── */
.w-cdet-scroll { display: block; min-height: 0; flex: 1; overflow: auto; }
.w-cdet-empty { position: relative; height: 100%; display: flex; min-width: 0; flex-grow: 0; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.w-cdet-empty-menu { position: absolute; top: 12px; right: 24px; }
.w-cdet-empty-icon {
  display: flex;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--w-alpha-2);
  border-radius: 15.12px;
  background: #fff;
  box-shadow: 0 1px 2px 0 hsl(from #0b0b0b h s l / 6%), 0 2px 8px 0 hsl(from #0b0b0b h s l / 8%);
}
/* в тёмной теме подложка значка тёмная и без тени */
[data-mode='dark'] .w-cdet-empty-icon {
  background: var(--w-surface-3);
  box-shadow: 0 1px 2px 0 hsl(from #0b0b0b h s l / 6%), 0 2px 8px 0 rgba(0, 0, 0, .24);
}
.w-cdet-empty-icon img { flex-shrink: 0; vertical-align: middle; }
.w-cdet-empty-text { display: flex; flex-direction: column; gap: 8px; padding: 0 24px; text-align: center; }
.w-cdet-empty-text p { margin: 0; font-size: 15px; line-height: 20px; text-align: center; color: var(--w-text-muted); }
.w-cdet-empty-act { display: flex; align-items: flex-start; justify-content: center; gap: 8px; }

/* ── Окно «Add custom connector»: второй шаг ──────────────────────────────
   Разметка у claude.ai одна на оба шага: поля имени и адреса и раздел с
   настройками лежат рядом, лишнее прячется display:none. На втором шаге
   раздел показывается блоком с отступом 8 сверху.                      */
.w-adv-on { display: block; margin-top: 8px; }
.w-icon-flex { display: flex; }

/* проверка сервера на первом шаге */
.w-addchk { margin-top: 16px; }
.w-addchk-in { display: flex; flex-direction: column; gap: 16px; }
.w-addchk-head { display: flex; flex-direction: column; gap: 8px; }
.w-addchk-title { display: block; font-weight: 580; --w-w: 580; color: var(--w-text-secondary); }
.w-addchk-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.w-addchk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--w-alpha-2);
}
.w-addchk-row { display: flex; flex-grow: 1; align-items: center; gap: 8px; }
.w-addchk-ico { display: flex; flex-shrink: 0; }
.w-addchk-ico-warn { color: var(--w-text-warning); }
.w-addchk-ico-mute { color: var(--w-text-secondary); }
.w-addchk-lines { display: flex; flex-grow: 1; flex-direction: column; }
.w-addchk-name { display: block; overflow: hidden; white-space: nowrap; color: var(--w-text-secondary); }
.w-addchk-note { display: block; font-size: 12px; line-height: 17px; color: var(--w-text-muted); }

/* плашка с предупреждением */
.w-addnote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
}
.w-addnote-danger { background: var(--w-tint-danger); color: var(--w-text-danger); box-shadow: inset 0 0 0 1px var(--w-border-danger); }
.w-addnote-warn { background: var(--w-tint-warning); color: var(--w-text-warning); box-shadow: inset 0 0 0 1px var(--w-border-warning); }
.w-addnote-ico { display: flex; flex-shrink: 0; align-items: center; }
.w-addnote-body { display: flex; flex-grow: 1; align-items: flex-start; gap: 12px 16px; }
.w-addnote-text { flex-grow: 1; }
.w-addnote-strong { display: block; font-weight: 500; --w-w: 500; }
.w-addnote-more { display: block; margin-top: 4px; }

/* подложка со вложенными полями: строка заголовка запроса и поля своего
   клиента OAuth */
.w-addpanel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--w-alpha-2);
  border-radius: 12px;
  background: var(--w-surface-1);
}
.w-addpanel-oauth { margin-top: 12px; margin-left: 28px; }
.w-addfield { display: flex; flex-direction: column; gap: 8px; }

.w-hdrow { display: flex; align-items: center; gap: 12px; }
.w-hdrow-name { display: flex; min-width: 160px; flex: 0 1 160px; flex-direction: column; gap: 8px; }
.w-hdrow-name > .w-combo { width: 100%; min-width: 0; max-width: none; flex-shrink: 1; }
.w-hdrow-label { font-weight: 500; --w-w: 500; line-height: 14px; }
.w-hdrow-val { width: auto; max-width: none; min-width: auto; flex: 1 1 0; }
.w-hdrow-tail { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* отметка «обязательный»: квадрат 16 с галочкой */
.w-cbx-box {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-top: 1.5px;
  border: 1px solid var(--w-alpha-3);
  border-radius: 4px;
}
.w-cbx-box-on { border: 0; background: var(--w-accent); }
.w-cbx-mark { display: none; color: #fff; }
.w-cbx-box-on .w-cbx-mark { display: block; }
.w-cbx-label { display: block; }

/* раскрытый раздел Advanced */
.w-adv-more-body { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }

/* многострочная подсказка у значка «i»: подложка, внутри прокрутка,
   текст в span с отступами 6 и 8 */
.w-tip-panel {
  position: fixed;
  z-index: 88;
  max-width: 240px;
  translate: -50% -100%;
  border-radius: 6px;
  background: var(--w-tooltip-bg);
  color: var(--w-tooltip-fg);
  font-size: 13px;
  line-height: 18px;
  box-shadow: var(--w-shadow-tooltip);
  pointer-events: none;
}
.w-tip-panel-scroll { overflow: auto; flex-grow: 1; border-radius: 6px; }
.w-tip-panel-in { display: contents; }
.w-tip-panel-text { display: block; padding: 6px 8px; }
.w-adv-addrow { align-self: flex-start; }
/* разделитель в выпадающем списке */
.w-option-sep { height: 1px; margin: 4px 12px; background: var(--w-alpha-2); }
/* пункт, который выбрать нельзя (заголовок authorization занят OAuth) */
.w-option-off { opacity: .4; cursor: default; }

/* ── Каталог коннекторов: поиск, пустой ответ и подсказка у имени ────────
   Как только в поле поиска что-то есть, справа появляется крестик, а
   разделы уступают место одной сетке. */
.w-dir-search-clear { padding-right: 0; }
.w-dir-search-clearcell { display: flex; width: 40px; height: 40px; flex-shrink: 0; align-items: center; justify-content: center; }
.w-dir-search-x { border-radius: 4px; }
.w-dir-search .w-btn, .w-dir-search .w-btn * { cursor: var(--cds-cursor-interactive); }

/* пустой ответ поиска */
.w-dir-empty { display: flex; min-height: 22rem; flex-direction: column; justify-content: center; }
.w-dir-empty-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 48px 12px;
  text-align: center;
}
.w-dir-empty-title { margin: 0; font-size: 14px; line-height: 20px; font-weight: 500; --w-w: 500; color: var(--w-text-secondary); }
.w-dir-empty-note { margin: 0; font-size: 13px; line-height: 17px; color: var(--w-text-secondary); }
.w-dir-empty-lines { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* подсказка с полным именем коннектора: внутри неё лежит та же ссылка,
   что и в карточке, поэтому цвет ей задаём по цвету подсказки */
.w-tip-scope { display: contents; }
.w-dirtip-clip { min-width: 0; overflow-wrap: break-word; }
/* позиционер подсказки: сама подсказка внутри него не fixed, поэтому
   остаётся inline-flex, как у claude.ai */
.w-tip-pos { position: fixed; z-index: 88; font-size: 16px; line-height: 24px; translate: -50% -100%; pointer-events: none; }
.w-tip-pos > .w-tooltip { position: static; translate: none; }
/* сбоку слева ("Last used" у поля почты): место ставит useTip целыми
   пикселями, а растёт всплывашка от точки у края поля - у образца
   origin 78.7 12.5 = ширина + отступ 4, середина по высоте */
.w-tip-pos-left { translate: none; }
.w-tip-pos-left > .w-tooltip { transform-origin: calc(100% + 4px) calc(50% + .5px); }
/* мгновенное открытие фокусом и закрытие нажатием - без анимации:
   data-[instant]:duration-0 у образца */
.w-tooltip[data-instant] { transition-duration: 0s; }
.w-tooltip-dir { gap: 8px; }
/* внутри подсказки ссылка рисуется в тёмной области (cds-dark-scope),
   поэтому цвет у неё тёмной темы в обеих темах */
.w-tooltip .w-cdir-name { font-size: 14px; line-height: 20px; white-space: normal; color: #f0efec; }

/* ── Окно Wall: курсор ────────────────────────────────────────────────────
   Настройка «Cursor» выключена: курсор-рука не появляется, над кнопками,
   ссылками и пунктами меню остаётся обычная стрелка. Поля ввода это не
   трогает, там по-прежнему текстовый курсор. */
/* Курсор-рука у Wall, как у образца, - одна переменная
   --cds-cursor-interactive (у claude.ai cursor-[var(--cds-cursor-interactive)]
   на кнопках). Выключенная настройка «Cursor» делает её стрелкой разом
   для всего. Раньше рука была прописана в 62 правилах, а «статичный»
   перебивал их правилом с весом :where - любое правило класса ниже по
   файлу (кнопка «вниз» в беседе, крестик уведомления) снова ставило руку
   (хозяин 26.09). Лупа у картинки и стрелки делителей не трогаются. */
:root[data-cursor='static'] { --cds-cursor-interactive: default; }
[data-cursor='static'] :where(button, a, label, summary, [role='button'], [role='tab'],
  [role='option'], [role='menuitem'], [role='radio'], [role='checkbox'], [role='switch'],
  .w-btn, .w-option, .w-nav-item, .w-row-title, .w-adv-opt, .w-cdir-card),
[data-cursor='static'] :where(button, a, label, summary, [role='button'], [role='tab'],
  [role='option'], [role='menuitem'], [role='radio'], [role='checkbox'], [role='switch'],
  .w-btn, .w-option, .w-nav-item, .w-row-title, .w-adv-opt, .w-cdir-card) * {
  cursor: default;
}
/* ссылка наружу (откроет браузер) остаётся рукой и при «статичном»: так и
   у программ Windows - рука значит ссылку, а не кнопку */
[data-cursor='static'] a[target='_blank'],
[data-cursor='static'] a[target='_blank'] * { cursor: pointer; }

/* значение справа в строке настроек (версия приложения во вкладке System):
   по снимку настольного Клода 27.09 - 14 px, основной цвет (11,11,11 в
   светлой), прижато вправо, как текст подписи строки */
.w-row-value { font-size: 14px; line-height: 20px; color: var(--w-text-primary); white-space: nowrap; }
/* Разделы настольного приложения (Desktop app > System) у образца чуть
   крупнее веба. ЗАМЕРЕНО 27.09 по снимку хозяина из настольного Клода
   (1:1 - высота букв строк 14 px совпадает с нашей): от верха букв
   «System» до строки версии 51, до черты 29, от черты до «Run on
   startup» 19, до пояснения 26; буква «System» 16 выс. С правилами веба
   выходило 48 / 28 / 18 / 23 и 15. Подобрано на стенде до пикселя:
   заголовок 16/24, строки 13 сверху и снизу, пояснение +3 */
.w-section-desktop .w-section-title { font-size: 16px; line-height: 24px; }
.w-section-desktop .w-row { padding: 13px 0; }
.w-section-desktop .w-row-desc { margin-top: 3px; }

/* ── Окно-предупреждение (удаление учётной записи) ────────────────────────
   Уже обычного окна подтверждения, заголовок мельче и легче, под ним
   пояснение. Подтверждение обычной чёрной кнопкой, не красной: снято с
   claude.ai. */
.w-confirm-alert { max-width: 400px; }
.w-confirm-alert .w-confirm-head-main { margin-top: -2px; }
.w-confirm-alert .w-confirm-title { font-size: 15px; line-height: 20px; font-weight: 500; --w-w: 500; }
.w-confirm-desc { margin: 0; font-size: 14px; line-height: 20px; color: var(--w-text-secondary); }
.w-confirm-desc strong { font-weight: 600; }

/* ── Раздел «Design systems» ──────────────────────────────────────────────
   Шапка раздела: слева заголовок 15/20 веса 580 и подпись 13/17, справа
   кнопка «New design system» с плюсом и шевроном. Ниже поле поиска со
   счётчиком и таблица: имя ссылкой, «Usable by» с подсказкой у значка
   «i», дата и троеточие. Пустая таблица показывает одну ячейку на всю
   ширину с отступами 48 сверху и снизу.                               */
.w-ds-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 16px;
}
.w-ds-head-main { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
/* заголовок сжимается по тексту (align-self), подпись остаётся во всю
   ширину колонки */
.w-ds-title { align-self: flex-start; margin: 0; font-size: 15px; line-height: 20px; font-weight: 580; --w-w: 580; color: var(--w-text-primary); }
.w-ds-desc { font-size: 13px; line-height: 17px; color: var(--w-text-secondary); }
.w-ds-head-act { display: flex; flex-shrink: 0; align-items: center; gap: 12px; }
/* плюс у кнопки съезжает на 4 влево, чтобы уравновесить отступ */
.w-ds-plus { margin-left: -4px; }
/* поле поиска тянется на всю ширину полосы, но не шире 448 */
.w-ds-search-cell { display: flex; min-width: 0; flex-grow: 1; align-items: center; gap: 12px; }
.w-ds-search { flex-grow: 1; width: 100%; max-width: 448px; }
/* заголовок столбца со значком подсказки */
.w-ds-th { display: inline-flex; align-items: center; gap: 4px; }
.w-table.w-table-ds th > span { cursor: auto; }
.w-table.w-table-ds { min-width: 0; table-layout: auto; }
.w-table.w-table-ds th:nth-child(3),
.w-table.w-table-ds th:nth-child(4) { width: auto; }
.w-table.w-table-ds td { overflow: visible; }
/* колонка «Usable by» не уже 144 */
.w-ds-usable { display: inline-block; min-width: 144px; white-space: normal; color: var(--w-text-secondary); }
/* пустая таблица: одна ячейка без нижней границы */
.w-table.w-table-ds td.w-ds-empty {
  padding: 48px 12px;
  border-bottom-width: 0;
  text-align: center;
}
.w-ds-empty-text { margin: 0; padding: 16px; color: var(--w-text-secondary); }

/* позиционер подсказки с подложкой: сама подсказка внутри него не fixed */
.w-tip-frame {
  position: fixed;
  z-index: 88;
  translate: -50% -100%;
  font-size: 16px;
  line-height: 24px;
  pointer-events: none;
}
.w-tip-frame > .w-tip-panel { position: static; translate: none; }

/* окно переименования: коробка уже обычной, форма вместо подвала */
.w-confirm-sm { max-width: 400px; }
.w-ds-form { min-width: 0; }
.w-ds-fields { display: flex; flex-direction: column; gap: 12px; padding-top: 12px; }
.w-ds-label { line-height: 14px; font-weight: 500; --w-w: 500; cursor: default; }
.w-ds-input { width: 100%; }
/* имя системы в окне удаления набрано полужирным 600, а не 700 */
.w-alert-text strong { font-weight: 600; --w-w: 600; }

/* ── Меню с позиционером ──────────────────────────────────────────────────
   У меню раздела Design systems снят и позиционер: обёртка с
   координатами, внутри неё две метки 1x1 для читалки экрана и сама
   всплывашка.                                                          */
/* меню и списки - ВЫШЕ уведомлений (91 > 90): тост «Session terminated.»
   ложился на меню следующей сессии, и щелчок по «Log out» уходил в тост
   (аудит 29.09). У образца меню и тост - порталы с одним слоем, и
   открытое позже встаёт сверху */
.w-popover-pos { position: fixed; z-index: 91; font-size: 16px; line-height: 24px; }
.w-popover-pos > .w-popover { position: relative; left: auto; top: auto; z-index: auto; }
.w-popover { font-size: 14px; line-height: 20px; }
.w-popover-guard {
  position: fixed;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}
/* пункт-ссылка ведёт себя как обычный: без подчёркивания и своим цветом */
a.w-menu-item { text-decoration: none; color: inherit; }
a.w-menu-item.w-menu-danger { color: var(--w-text-danger); }
/* пункт с подписью второй строкой: две строки в колонку, высота по
   содержимому, снизу отступ на пиксель больше */
.w-menu-item-note { height: auto; padding: 6px 10px 7px; }
.w-menu-lines { display: flex; min-width: 0; flex-direction: column; flex-grow: 1; }
.w-menu-line { overflow: hidden; white-space: nowrap; }
.w-menu-note {
  margin: -1.625px 0;
  padding: 1.625px 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  line-height: 17px;
  color: var(--w-text-muted);
}

/* ── Всплывающее уведомление ──────────────────────────────────────────────
   Копия cds Toast с claude.ai, ЗАМЕРЕНО 25.09 вычисленными стилями в обеих
   темах (см. комментарий к ToastHost в wall-app.jsx).

   Позиционер: fixed, поля 16 справа и снизу, ширина 360 и не шире
   calc(100vw - 2rem), колонка снизу вверх с зазором 16, кегль 16/24.
   Область (region) держит высоту переднего уведомления, сами уведомления
   лежат в ней абсолютом по низу.

   Место в стопке задаёт --toast-index (0 - переднее): сдвиг вверх на 14px
   и сжатие на .04 за каждое место, от нижнего края. Появление - из
   data-starting-style (прозрачное, --ty 100%), уход - в data-ending-style
   (прозрачное, --ts .85). Переход transform и opacity .2s ease-out.

   Подложка: радиус 12, фон surface-3. У neutral кольцо и тень панели
   (четыре пустых слоя впереди - состав тени у claude.ai), у warning и
   danger вместо них одно кольцо 1px внутрь цветом border-*, а поверх
   surface-3 заливка bg-* градиентом (так у образца: bg-surface-3 плюс
   background-image linear-gradient). Строка: 12/16, зазор 12, по верху,
   14/20 400. Значок 20 (secondary у neutral, у прочих цвет вида),
   заголовок 14/20 500, крестик 16 в кнопке 24: поля -2/-4/-4/-4,
   радиус 8, наведение ghost-hover за .06s. ЗАМЕРЕНО: #0b0b0b 5% в
   светлой, #fff 7.5% в тёмной (переменная образца, не снимок: цвет
   кнопки при смене темы висит на переходе). Цвет крестика - от подложки
   (text-primary / text-warning / text-danger).                        */
.w-toast-root {
  position: fixed;
  right: 16px;
  bottom: 16px;
  /* поверх окна настроек и вложенного окна подтверждения; у claude.ai
     9000 - у нас свой ряд слоёв, выше 90 здесь ничего нет */
  z-index: 90;
  display: flex;
  width: 360px;
  max-width: calc(100vw - 2rem);
  flex-direction: column-reverse;
  gap: 16px;
  font-size: 16px;
  line-height: 24px;
  /* мимо уведомления страница нажимается как обычно */
  pointer-events: none;
}
.w-toast-region {
  position: relative;
  outline: none;
  pointer-events: auto;
}
.w-toast {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  transform-origin: bottom;
  outline: none;
  --ty: calc(var(--toast-index) * -14px);
  --ts: calc(1 - var(--toast-index) * .04);
  transform: translateY(var(--ty)) scale(var(--ts));
  transition: transform var(--w-dur-base) var(--w-ease-out),
              opacity var(--w-dur-base) var(--w-ease-out);
}
.w-toast[data-starting-style] { opacity: 0; --ty: 100%; }
.w-toast[data-ending-style] { opacity: 0; --ts: .85; }
.w-toast[data-limited] { opacity: 0; }
.w-toast-box {
  border-radius: 12px;
  background: var(--w-surface-3);
  box-shadow: 0 0 0 0 #0000, 0 0 0 0 #0000, 0 0 0 0 #0000, 0 0 0 0 #0000,
              var(--shadow-card-ring), var(--cds-shadow-md);
  color: var(--w-text-primary);
}
.w-toast-box[data-type='warning'] {
  background-image: linear-gradient(0deg, var(--w-tint-warning), var(--w-tint-warning));
  box-shadow: 0 0 0 0 #0000, 0 0 0 0 #0000, 0 0 0 0 #0000, 0 0 0 0 #0000,
              inset 0 0 0 1px var(--w-border-warning);
  color: var(--w-text-warning);
}
.w-toast-box[data-type='danger'] {
  background-image: linear-gradient(0deg, var(--w-tint-danger), var(--w-tint-danger));
  box-shadow: 0 0 0 0 #0000, 0 0 0 0 #0000, 0 0 0 0 #0000, 0 0 0 0 #0000,
              inset 0 0 0 1px var(--w-border-danger);
  color: var(--w-text-danger);
}
.w-toast-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  overflow: hidden;
  border-radius: inherit;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  transition: opacity var(--w-dur-base) var(--w-ease-out),
              visibility var(--w-dur-base) var(--w-ease-out);
}
/* заднее в стопке: строка невидима, высота - как у переднего */
.w-toast-row[data-behind] { visibility: hidden; opacity: 0; }
.w-toast-icon { display: block; flex-shrink: 0; color: var(--w-text-secondary); }
.w-toast-box:not([data-type='neutral']) .w-toast-icon { color: inherit; }
/* значок лежит в обычном блоке, а не во флекс-строке, поэтому display
   ставим руками: у claude.ai он тоже flex, а не inline-flex */
.w-toast-icon .w-icon, .w-toast-close .w-icon { display: flex; }
.w-toast-text {
  min-width: 0;
  flex: 1;
  text-wrap: pretty;
  overflow-wrap: break-word;
}
.w-toast-title {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500; --w-w: 500;
}
.w-toast-close {
  display: block;
  flex-shrink: 0;
  margin: -2px -4px -4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 4px;
  color: inherit;
  outline: none;
  /* у образца стрелка (cds-reset), у нас рука, как у прочих кнопок окна:
     её убирает настройка Cursor (data-cursor=static) */
  cursor: var(--cds-cursor-interactive);
  transition: color var(--w-dur-fast) var(--w-ease), background-color var(--w-dur-fast) var(--w-ease),
              box-shadow var(--w-dur-fast) var(--w-ease);
}
@media (hover: hover) { .w-toast-close:hover { background: var(--w-ghost-hover); } }
.w-toast-close:focus-visible { box-shadow: var(--w-focus-ring); }

/* ── Окно смены способа оплаты ────────────────────────────────────────────
   ЗАМЕРЕНО: S/bd_paymodal.json (400x521, radius12, тень как у w-confirm,
   отступ 24), S/bd_pm_checked.json (чекбокс "Use a different name on
   invoices" раскрывает поле Bill to, окно растёт до 627). Поля номера
   карты и срока/CVC у claude.ai - Stripe Elements (чужой iframe-виджет),
   здесь на их месте заглушки тех же размеров - см. комментарий в JSX. */
.w-paymodal {
  position: fixed;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: flex;
  flex-direction: column;
  width: 400px;
  border-radius: var(--w-radius-card);
  background: var(--w-surface-3);
  box-shadow: var(--w-shadow-panel-lg);
  color: var(--w-text-primary);
  z-index: 81;
  opacity: 1;
  scale: 1;
  outline: none;
  transition: opacity var(--w-dur-base) var(--w-ease-out), scale var(--w-dur-base) var(--w-ease-out);
}
.w-paymodal[data-state='closed'] { opacity: 0; scale: .98; }
.w-paymodal-body { padding: 24px; }
.w-paymodal-title { margin-bottom: 16px; font-size: 16px; line-height: 24px; font-weight: 500; --w-w: 500; }
/* заглушки Stripe-полей: номер карты (352x202) и срок/CVC (352x132) -
   размеры из bd_pm_checked.json, чтобы окно не прыгало при доводке */
.w-paymodal-cardph { height: 202px; margin-bottom: 12px; border-radius: 8px; background: var(--w-alpha-1); }
.w-paymodal-cardph-sm { height: 132px; margin-bottom: 0; }
.w-paymodal-check { margin-top: 16px; }
.w-pm-cb-row { display: inline-flex; align-items: flex-start; gap: 8px; cursor: var(--cds-cursor-interactive); }
.w-pm-cb {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 1px solid var(--w-alpha-3);
  border-radius: 4px;
  color: #fff;
}
.w-pm-cb[data-checked] { background: var(--w-fill-brand); border-color: transparent; }
.w-pm-cb-label { color: var(--w-text-secondary); }
.w-pm-namefield { margin-top: 12px; }
.w-pm-namefield label { display: block; margin-bottom: 4px; font-weight: 500; --w-w: 500; color: var(--w-text-secondary); }
.w-pm-namefield input { width: 100%; height: 46px; padding: 12px; border-radius: 6px; box-shadow: var(--w-field-ring); background: transparent; color: var(--w-text-primary); }
.w-pm-namefield p { margin-top: 4px; color: var(--w-text-secondary); }
.w-paymodal-spacer { margin-top: 16px; }
.w-paymodal-foot { display: flex; margin-top: 20px; gap: 12px; justify-content: flex-end; }

/* ── Окно удаления артефакта (Privacy -> Shared artifacts) ────────────────
   ЗАМЕРЕНО: S/pv_art_del_dlg.json - строка ID отдельным блоком, мельче
   основного текста (13/17 против 14/20), с отступом сверху 8px */
.w-del-id { display: block; margin-top: 8px; font-size: 13px; line-height: 17px; }

/* ── Окно входа ───────────────────────────────────────────────────────────
   ЗАМЕРЕНО у claude.ai (страница входа, computed-стили, ОБЕ темы).
   Кнопок Google и Apple и разделителя OR у нас нет - только поле, кнопка
   и подпись снизу, как просил хозяин.

     карточка   внешняя ширина 448 при padding 28, радиус 32,
                тень в четыре слоя (одинакова в обеих темах),
                фон светлая #fcfcfb / тёмная #111111, рамка 1px border
     страница   фон page-bg: светлая #fcfcfb (тот же, что у карточки),
                тёмная #151515 (карточка на нём темнее)
     колонка    gap 20 между формой и подписью (у образца между этой
                колонкой и подписью; внутри неё ещё gap 12 на кнопки
                Google/Apple/OR, которых у нас нет)
     форма      gap 16 между полем и кнопкой, ширина содержимого 390
     поле       40 высотой, радиус 10, фон fill-field,
                обводка inset 0 0 0 1px var(--w-border), текст 16/24,
                подсказка text-muted (одна в обеих темах)
     кнопка     40 высотой, радиус 10, заливка fill-primary,
                подпись 15/22 веса 500
     подпись    12/19.5 веса 400 цветом text-muted; ссылка цветом
                text-accent, подчёркнута на 40% своего цвета, отступ
                подчёркивания 3, радиус 2 - это ровно наш .w-link  */
/* страница входа - отдельная, окна настроек на ней нет, поэтому фон
   page-bg красит и body: иначе из-под карточки видно белое полотно */
body:has(.w-login) { background: var(--w-page-bg); }
.w-login {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--w-page-bg);
}
/* ЗАМЕРЕНО 24.09 в окне 426: карточка образца 374, по 26 с боков - это
   mx-4 у карточки (16) и ещё 10 у внешнего блока, который уже 500
   сужается: max-[500px]:w-[calc(100%-1.25rem)]. У нас было только 16, и
   ниже 500 карточка выходила на 20 шире */
@media (width < 500px) {
  .w-login { padding-left: 26px; padding-right: 26px; }
}
.w-login-card {
  display: flex;
  width: 448px;
  max-width: 100%;
  flex-direction: column;
  padding: 28px;
  /* рамка есть в ОБЕИХ темах - светлая rgba(11,11,11,.1), тёмная
     rgba(255,255,255,.1), то есть ровно var(--w-border). В светлой она
     и есть единственное, чем карточка отделена от страницы: фон у них
     один и тот же #fcfcfb */
  border: 1px solid var(--w-border);
  border-radius: 32px;
  background: var(--w-login-card-bg);
  /* ЗАМЕРЕНО 24.09 полной сверкой (tools/сверка_входа.py): у карточки
     образца text-center и 14/21. Без этого подпись "By continuing..." на
     шаге почты стояла у левого края, а у образца она по центру */
  font-size: 14px;
  line-height: 21px;
  text-align: center;
  box-shadow:
    0 4px 24px color(srgb 0 0 0 / .0157),
    0 4px 32px color(srgb 0 0 0 / .0157),
    0 2px 64px color(srgb 0 0 0 / .0118),
    0 16px 32px color(srgb 0 0 0 / .0118);
}
/* ЗАМЕРЕНО 25.09: подпись "By continuing..." у образца лежит уже вне
   блока с формой, и между ними отступ самой карточки space-y-2 = 8
   (подпись в 8 под кнопкой, низ карточки в 112.5 под полем). Раньше
   здесь было 20 - зазор gap-5 из прежней вёрстки образца, где подпись
   была внутри того же блока; claude.ai её с тех пор переложил */
.w-login-col { display: flex; flex-direction: column; gap: 8px; }
.w-login-form { display: flex; flex-direction: column; gap: 16px; }
/* ошибка адреса (устройство - у LoginCard). ЗАМЕРЕНО у образца 24.09:
   столбец поля flex-col gap-xs = 8; строка role=alert flex items-start
   gap 4, 13/17.875 (text-footnote leading-snug), text-danger -
   rgb(142,38,38) / rgb(236,126,126), по левому краю во всю ширину (w-0
   min-w-full); значок e10a 16x16 веса 533.3 с mt-px. Рамка поля при
   ошибке - rgb(208,59,59) 1px внутрь в покое, под курсором и в фокусе, в
   обеих темах: синего кольца фокуса поверх неё нет */
.w-login-field { display: flex; flex-direction: column; gap: 8px; }
/* обёртка поля - цель подсказки "Last used" (у образца div 390x40 с
   data-base-ui-tooltip-trigger); колонкой, чтобы поле тянулось */
.w-login-trigger { display: flex; flex-direction: column; }
.w-login-fielderr {
  display: flex;
  width: 0;
  min-width: 100%;
  align-items: flex-start;
  gap: 4px;
  font-size: 13px;
  line-height: 17.875px;
  font-weight: 400; --w-w: 400;
  color: var(--w-text-danger);
  text-align: left;
}
.w-login-fielderr-icon { flex-shrink: 0; margin-top: 1px; }
/* плашка отказа сервера - .w-dir-error; своё у неё только то, что в
   карточке входа иначе унаследовалось бы (там 14/21 по центру): у образца
   text-body 14/20 по левому краю, во всю ширину (w-0 min-w-full) */
.w-login-banner {
  width: 0;
  min-width: 100%;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400; --w-w: 400;
  text-align: left;
}
.w-input.w-login-input[data-invalid],
.w-input.w-login-input[data-invalid]:focus-visible { box-shadow: inset 0 0 0 1px var(--cds-fill-danger); }
@media (hover: hover) { .w-input.w-login-input[data-invalid]:hover { box-shadow: inset 0 0 0 1px var(--cds-fill-danger); } }
/* поле - это наш .w-input (у него уже снято: покой ring, наведение
   ring-hover, фокус кольцом focus-shadow, переход duration-fast); здесь
   только то, чем поле входа от него отличается: выше на 8, радиус 10
   вместо общего и текст 16/24 вместо 14/20. ЗАМЕРЕНО у образца: это тот
   же cds-input с shadow-field-ring / shadow-field-hover (border-strong)
   / shadow-focus, что и поля в настройках */
.w-login-input {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-family: inherit;   /* input сам шрифт не наследует */
  font-size: 16px;
  line-height: 24px;
  font-weight: 400; --w-w: 400;
}
.w-login-btn {
  height: 40px;
  padding: 0 16px;
  gap: 6px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 500; --w-w: 500;
  /* на странице входа --cds-cursor-interactive = default: курсор у
     кнопок обычная стрелка, не рука (ЗАМЕРЕНО у обеих кнопок) */
  cursor: default;
}
/* слой придавливания у образца inset-[0.5px]: 389x39 при кнопке 390x40 */
.w-login-btn .w-btn-squish { inset: .5px; }
/* кнопка-ССЫЛКА ("Try again" на magic-link) у образца - <a href="/login">,
   и курсор у неё рука. ЗАМЕРЕНО 24.09 в Chrome хозяина, обе темы:
   cursor pointer, у кнопок-<button> входа - default */
a.w-login-btn { cursor: var(--cds-cursor-interactive); }
.w-login-note { font-size: 12px; line-height: 19.5px; color: var(--w-text-muted); }

/* ── Страница magic-link (замеры - у MagicLinkPage в wall-app.jsx) ───────
   main у образца: flex h-screen w-screen flex-col items-center
   justify-center gap-6 p-4, логотип absolute top-8. Фон - page-bg
   (rgb(252,252,251) / rgb(21,21,21)), он же у рамки с кодом (bg-100). */
body:has(.w-magic) { background: var(--w-page-bg); }
.w-magic {
  position: relative;
  display: flex;
  height: 100vh;
  /* 100%, не 100vw: vw включает вертикальную полосу, и низкое окно
     страницы удаления (она листается) давало полосу вбок (аудит 29.09) */
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px;
  background: var(--w-page-bg);
  font-size: 14px;
  line-height: 21px;
  color: var(--w-text-primary);
}
.w-magic-logo { position: absolute; top: 32px; display: flex; }
/* 26.09 надпись «Claude» (112 x 24) заменена словом «Wall» по слову
   хозяина: знак 24 + отступ 6 + «Wall» 47.4 = 78 (ЗАМЕРЕНО getBBox) */
.w-magic-logo-svg { display: inline-block; width: 78px; height: 24px; color: var(--w-text-primary); }
.w-magic-block { display: flex; flex-direction: column; align-items: center; gap: 32px; }
.w-magic-head { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
/* font-ui-serif text-3xl sm:text-4xl: 30/36, с 640 - 36/40, вес 400 */
.w-magic-title {
  margin: 0;
  font-family: 'Anthropic Serif', var(--cds-font-voice);
  font-size: 30px;
  line-height: 36px;
  font-weight: 400; --w-w: 400;
  color: var(--w-text-primary);
}
/* подпись у образца font-claude-response: это шрифт ответов из настройки
   Chat font, и он у разных браузеров разный. В панели браузера Клода
   (--font-claude-response: var(--font-serif)) она засечная: строка
   "If the problem persists..." 303, "contact support" 102.9. В Chrome
   хозяина - anthropic-sans (снято 24.09 дважды: эталон
   S/login/magic_link_page.json и живая страница, 14/20).
   Раньше здесь стоял засечный - по замеру в панели, это было неверно:
   хозяин смотрит в своём Chrome и велел Anthropic Sans. Поэтому шрифт не
   задаётся вовсе и берётся от body - тот же Anthropic Sans */
.w-magic-sub { margin: 0; font-size: 14px; line-height: 20px; color: var(--w-text-secondary); }
/* рамка с кодом: border-0.5 border-border-300 (10%) bg-bg-100, радиус 16,
   px-5 py-5, с 640 - px-8; цифры 48/48 */
.w-magic-code {
  padding: 20px;
  border: 1px solid var(--w-border);
  border-radius: 16px;
  background: var(--w-page-bg);
  font-size: 48px;
  line-height: 48px;
  color: var(--w-text-primary);
}
@media (min-width: 40rem) {
  .w-magic-title { font-size: 36px; line-height: 40px; }
  .w-magic-code { padding: 20px 32px; }
}
.w-magic-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }

/* ── Страница удаления учётной записи (DeleteAccountPage) ── та же карточка,
   что magic-link; текст длиннее, поэтому страница листается, а не режется
   по высоте окна. Красная кнопка во всю ширину - в самом низу */
.w-del-page { height: auto; min-height: 100vh; padding: 96px 16px 48px; }
.w-del-block { width: min(100%, 448px); gap: 24px; }
.w-del-who { display: flex; width: 100%; flex-direction: column; align-items: center; gap: 2px; padding: 12px 20px;
  border: 1px solid var(--w-border); border-radius: 12px; background: var(--w-page-bg); }
.w-del-name { font-size: 16px; line-height: 24px; font-weight: 500; --w-w: 500; color: var(--w-text-primary); overflow-wrap: anywhere; }
.w-del-mail { font-size: 14px; line-height: 20px; color: var(--w-text-secondary); overflow-wrap: anywhere; }
.w-del-list { display: flex; align-self: stretch; flex-direction: column; gap: 8px; margin: 0; padding-left: 20px;
  color: var(--w-text-secondary); font-size: 14px; line-height: 20px; text-align: left; }
.w-del-foot { display: flex; align-self: stretch; flex-direction: column; gap: 12px; margin-top: 8px; }
.w-del-confirm { margin: 0; color: var(--w-text-muted); font-size: 12px; line-height: 18px; text-align: center; }
/* рука, как всё на сайте (своя страница, не копия входа образца; как
   Copy Code - аудит 29.09) */
.w-del-btn { width: 100%; cursor: var(--cds-cursor-interactive); }
/* Copy Code: размеры образца (40, поля 0 16, радиус 10, 15/22 веса 500),
   а остальное - обычная основная кнопка, как наша Delete account: курсор
   рука и слой нажатия без утопления. Раньше кнопка брала .w-login-btn и
   с ним курсор-стрелку и слой нажатия на 0.5 внутрь - хозяин заметил, что
   она "чуть отличается" от Delete account */
.w-magic-btn {
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 22px;
}
.w-magic-btn .w-magic-btn-icon { margin-inline-start: -4px; }
.w-magic-link { font-size: 14px; line-height: 21px; }
.w-magic-support { color: inherit; text-decoration: underline; cursor: var(--cds-cursor-interactive); }
/* загрузка: h-20 w-20 border-8 border-border-200 border-r-transparent
   rounded-full animate-spin, motion-reduce - стоит */
.w-magic-wait { margin: auto; }
.w-magic-spin {
  display: inline-block;
  box-sizing: border-box;
  width: 80px;
  height: 80px;
  border: 8px solid var(--w-border-strong);
  border-right-color: transparent;
  border-radius: 9999px;
  vertical-align: -0.125em;
  animation: w-spin 1s linear infinite;
}
[data-reduce-motion='true'] .w-magic-spin { animation: none; }

/* ── Экран кода (устройство и замеры - у LoginCodeForm в wall-app.jsx) ──
   ЗАМЕРЕНО у claude.ai, отсчёт от края карточки: первый блок 29..71,
   второй 87..127, третий 159..199, поле 215..255, кнопка 271..311,
   карточка 448x340; с ошибкой +50 (8 + две строки по 21) = 390.
   Цвета - наши токены: secondary rgb(82,81,78) / rgb(195,194,183),
   primary rgb(11,11,11) / rgb(240,239,236), совпало в обеих темах. */
.w-login-code { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.w-login-code p { margin: 0; }
.w-login-sent { font-size: 14px; line-height: 21px; color: var(--w-text-secondary); }
.w-login-sent-email {
  overflow: hidden;
  font-weight: 500; --w-w: 500;
  color: var(--w-text-primary);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.w-login-hint { font-size: 14px; line-height: 20px; color: var(--w-text-secondary); }
.w-login-hint-gap { margin-top: 16px !important; }
/* кнопки-ссылки: простое подчёркивание своим цветом, без смены при
   наведении, курсор default - так у образца (class="underline") */
.w-login-textbtn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: default;
}
/* рамка фокуса у образца есть, но прозрачная и в покое, и в фокусе с
   клавиатуры (solid 2px, offset 2) - видимого кольца нет */
.w-login-textbtn, .w-login-err-link {
  /* цвет акцента с прозрачностью 0, как у образца: rgba(37,106,191,0) /
     rgba(85,152,231,0). color-mix с transparent давал чёрный с нулём */
  outline: 2px solid rgb(from var(--w-focus-outline) r g b / 0);
  outline-offset: 2px;
}
.w-login-input-code { width: 100%; text-align: center; }
/* промежуточный экран (замеры - у LoginSentForm): блок значка flex grow
   flex-col items-center justify-center gap-3 rounded-xl pt-2; текст под
   ним text-center w-full min-w-0; кнопки flex-col items-center gap-1.5 */
.w-login-mid {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 8px;
  border-radius: 12px;
}
.w-login-mid .w-login-sent { width: 100%; min-width: 0; }
.w-login-mid-icon { color: var(--w-text-accent); }
.w-login-mid-links { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.w-login-err { margin-top: 8px; font-size: 14px; line-height: 21px; color: var(--w-text-primary); }
.w-login-err-link { color: inherit; text-decoration: underline; }

/* ── Список возможностей бесплатного тарифа ───────────────────────────────
   ЗАМЕРЕНО у claude.ai: ряд 774x260 с padding 12 0 и выравниванием по
   верху; сам список 461.2 шириной (ширину задаёт содержимое, не колонка),
   колонка с gap 4; строка 20 высотой, gap 8, текст 14/20 цветом
   text-secondary; галочка 16x16 цветом text-muted. */
/* ЗАМЕРЕНО: между рядом плана и рядом со списком у образца линии НЕТ
   (borderTopWidth 0 у обоих рядов), хотя наша группа по умолчанию делит
   ряды линией в 1px - из-за неё ряд выходил 261 вместо снятых 260 */
.w-group > .w-feats-row { border-top: 0; }
.w-feats-row { display: flex; align-items: flex-start; padding: 12px 0; }
.w-feats {
  /* именно flex, а не inline-flex: у inline-варианта ряд выходил 261
     вместо снятых 260 - лишний пиксель давал подстрочный зазор строки */
  display: flex;
  margin: 0;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  list-style: none;
  text-align: start;
  color: var(--w-text-secondary);
}
.w-feat { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; }
.w-feat-check { flex-shrink: 0; color: var(--w-text-muted); }

/* ── Страница Upgrade ──────────────────────────────────────────────────────
   ЗАМЕРЕНО у claude.ai/upgrade, окно 1336x1047, обе темы (эталоны
   S/up_ind_light.json и S/up_ind_dark.json). Отступы между блоками взяты
   из margin-top снятых узлов: заголовок 0, сегмент 24, сетка 32,
   сноска 24, строка НДС 40.                                             */
/* ЗАМЕРЕНО: страница - это колонка на высоту окна, а прокручивается
   только область под шапкой: overflow-y auto, scrollbar-gutter STABLE
   (место под полосу держится всегда, поэтому содержимое центруется в
   1326, а не в 1336 - без этого всё стояло на 5 правее), полоса thin
   цветом rgba(30,30,29,.35).
   Корень - .w-upg, а не .w-up: с 28.09 .w-up - окно Uploads (fixed, 720,
   по центру), и его правило ниже в файле перебивало страницу тарифов -
   она рисовалась карточкой посреди экрана (хозяин 29.09). */
.w-upg {
  display: flex;
  height: 100vh;
  flex-direction: column;
  background: var(--w-page-bg);
}
/* ЗАМЕРЕНО: под шапкой линия 1px border-strong */
.w-up-top { display: flex; height: 48px; flex-shrink: 0; align-items: center; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--w-border-strong); box-sizing: border-box; }
.w-up-top-label { display: flex; flex: 1; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--w-text-secondary); }
/* внутренняя шапка полосы прокрутки: у образца это пустой блок высотой 52
   с padding-top 32 - он и отодвигает столбец от верхней полосы */
/* ЗАМЕРЕНО: у обёртки внутри прокрутки снизу поле 32 - на вкладке Team
   прокручиваемая высота у образца 1108 (без поля выходило 1076, ползунок
   полосы был крупнее и прокрутка короче) */
.w-up-scroll { display: flex; min-height: 0; flex: 1; flex-direction: column; align-items: center; padding-top: 52px; padding-bottom: 32px; overflow-y: auto; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--w-scrollbar) transparent; }
.w-up-col {
  display: flex;
  width: 1152px;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  padding: 0 8px;
}
.w-up-title {
  margin: 0;
  /* заголовок серифный. В --cds-font-voice первым стоит имя образца
     "anthropic-serif", которого у нас нет (наш @font-face зовётся
     'Anthropic Serif'), поэтому без явного имени шрифт падал на Georgia
     и строка выходила 305.9 вместо снятых 325.8 */
  font-family: 'Anthropic Serif', var(--cds-font-voice);
  font-size: 28px;
  line-height: 36.4px;
  font-weight: 500; --w-w: 500;
  color: var(--w-text-primary);
}
/* сегмент - наш же .w-seg, но крупнее: дорожка 40, пункты 38 и 15/22 */
.w-up-seg { margin-top: 24px; }
.w-up-seg .w-seg { height: 40px; padding: 1px; border-radius: 10px; }
.w-up-seg .w-seg-item { height: 38px; padding: 0 16px; border-radius: 8px; font-size: 15px; line-height: 22px; }
.w-up-seg .w-seg-thumb { border-radius: 9px; }

/* ЗАМЕРЕНО у claude.ai на узком окне (644): сетка это flex-col с
   items-center, а в строку (md:flex-row md:items-stretch) она встаёт
   только с 48rem = 768. Ниже карточки идут столбиком по 384 (max-w-sm)
   и каждая своей высоты: 471 / 519 / 495. Раньше у нас сетка была
   строкой всегда, и на узком окне три карточки сжимались до 192.7 и
   вытягивались до 809. Поля mx-1 у образца тоже есть: при w-full они
   выводят сетку на 8 за край, а центровка столбца возвращает её на место. */
.w-up-grid {
  display: flex;
  width: 100%;
  max-width: 1152px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 32px 4px 0;
}
@media (min-width: 48rem) {
  .w-up-grid { flex-direction: row; align-items: stretch; }
}

/* карточка тарифа: вся карточка - ссылка.
   ЗАМЕРЕНО 24.09 (страница у claude.ai обновилась): 365.33x519, радиус 16,
   рамка 1px border, фон surface-3, ТЕНЬ shadow-sm (0 1 2 .06 + 0 2 8 .08,
   в тёмной второй слой rgba(0,0,0,.24) - ровно наш токен), padding 24,
   промежуток 16 между пиктограммой, средним блоком и списком. */
/* ширина как у образца: w-full max-w-sm, flex по умолчанию (0 1 auto) и
   БЕЗ min-width:0. В строке три карточки по 100% сжимаются поровну до
   365.33 - то же, что давал прежний flex:1, - но на ширине 768..1000 им
   не даёт сжаться их же наименьшая ширина по содержимому, как у образца */
.w-plancard {
  display: block;
  position: relative;
  width: 100%;
  max-width: 384px;
  border-radius: 16px;
  color: var(--w-text-primary);
  text-decoration: none;
}
.w-plancard-body {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--w-border);
  border-radius: 16px;
  background: var(--w-surface-3);
  box-shadow: var(--w-shadow-sm);
}
.w-plancard-top { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; }
.w-plancard-pict { display: flex; }
/* пилюля периода справа сверху. Раньше тут стояла колонка высотой 32 с
   прижатием к НИЗУ: на широком окне это то же самое (пилюля 28 + 4 сверху),
   но на узком (ЗАМЕРЕНО на 800: карточка 244.67) "Yearly · Save 17%"
   переносится в три строки, пилюля вырастает до 60 и у нас уезжала на 32
   ВВЕРХ. У образца правая часть - flex-col items-end gap-2, внутри блок
   mt-1, и пилюля растёт ВНИЗ от отступа 4 */
.w-plancard-top-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.w-plancard-top-side-in { margin-top: 4px; }
.w-plancard-mid { display: flex; flex-direction: column; gap: 8px; }
.w-plancard-mid-a { display: flex; flex-direction: column; gap: 8px; }
/* заголовок тарифа у образца классом font-xl-bold: вес 580 в светлой и
   600 в тёмной (ось wght там 560) - это наш --w-fw-xl */
.w-plancard-title { margin: 0; font-size: 22px; line-height: 28px; font-weight: var(--w-fw-xl); --w-w: var(--w-fw-xl); }
.w-plancard-sub { margin: -8px 0 0; font-size: 14px; line-height: 20px; color: var(--w-text-secondary); }
.w-plancard-price { display: flex; margin-top: 12px; flex-direction: column; gap: 2px; }
.w-plancard-price-row { margin-left: -2px; }
.w-plancard-price-in { display: flex; min-height: 36px; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.w-plancard-price-tail { height: 0; margin-left: -2px; }
.w-plancard-amount { display: block; font-size: 30px; line-height: 36px; font-weight: 580; --w-w: 580; }
/* приписка у цены - две строки стопкой, 12/15 text-secondary */
.w-plancard-per { display: flex; flex-direction: column; font-size: 12px; line-height: 15px; color: var(--w-text-secondary); }
.w-plancard-spacer { height: 0; }
.w-plancard-cta { display: flex; flex-direction: column; }
.w-plancard-btn { width: 100%; height: 40px; border-radius: 10px; font-size: 15px; line-height: 22px; }
/* ЗАМЕРЕНО: у Free кнопка вторичная и подпись у неё веса 400,
   у Pro и Max основная и вес 500 */
.w-plancard-btn.w-btn-secondary { font-weight: 400; --w-w: 400; }
.w-plancard-note { min-height: 16px; margin: 6px 0 0; font-size: 12px; line-height: 16px; text-align: center; color: var(--w-text-muted); }
/* список: линия сверху, поля 24 24 0, промежуток 4 (раньше был 8) */
.w-plancard-feats {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 -24px;
  padding: 24px 24px 0;
  border-top: 1px solid var(--w-border);
  font-size: 14px;
  line-height: 20px;
  color: var(--w-text-secondary);
}
.w-plancard-feats-head { font-weight: 500; --w-w: 500; }
.w-plancard-list { display: flex; margin: 0; flex-direction: column; gap: 4px; padding: 0; list-style: none; }

/* пилюля периода в карточке Pro */
.w-up-period { display: inline-flex; padding: 2px; border-radius: 9999px; background: var(--w-pill-track); }
/* ЗАМЕРЕНО у образца: кнопка периода - обычный БЛОК (display:block), а
   приписка внутри inline со сдвигом влево 2 (ml-0.5). Текстовый узел там
   "Yearly " вместе с пробелом: 38.14, приписка 58.13, поля 10+10 - в
   сумме снятые 118.27. С inline-flex пробел схлопывался и кнопка
   выходила на 2.5 уже. */
.w-up-period-btn {
  display: block;
  padding: 4px 10px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  font: inherit;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500; --w-w: 500;
  color: var(--w-text-muted);
  cursor: default;   /* у образца курсор на этих кнопках именно default */
}
/* ЗАМЕРЕНО 24.09: у выбранной кнопки появилась тень shadow-sm */
.w-up-period-btn[aria-pressed='true'] { background: var(--w-page-bg); color: var(--w-text-primary); box-shadow: var(--w-shadow-sm); }
/* приписка про скидку у образца синяя (#2a78d6) в ОБЕИХ темах - это не
   наш --w-text-accent (#184f95 / #6da7ec), а отдельный цвет */
.w-up-save { margin-left: 2px; color: #2a78d6; }

/* ЗАМЕРЕНО: сноска у образца - столбец (mt-6 px-4 gap-7 flex flex-col
   items-center justify-center text-center), внутри ещё столбец с gap-1.
   Была строка: на широком окне всё равно, на узком строка переносится
   иначе */
.w-up-foot { display: flex; margin-top: 24px; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 0 16px; text-align: center; }
.w-up-foot-in { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.w-up-foot-text { margin: 0; font-size: 14px; line-height: 20px; text-align: center; color: var(--w-text-muted); }
.w-up-vat { margin: 40px 0 0; padding: 0 16px; font-size: 14px; line-height: 21px; color: var(--w-text-primary); }

/* ── Вкладка Team and Enterprise ───────────────────────────────────────────
   Все величины сняты с claude.ai (эталоны S/up_team_light.json и
   S/up_team_dark.json). Отличия от вкладки Individual: заголовок стоит
   СЛЕВА в одной строке с плашкой "Questions?", карточек две по 432.7,
   галочка в списке 14 вместо 16.                                       */
.w-up-head { display: flex; width: 100%; align-items: center; justify-content: center; }
/* на вкладке Team строка с заголовком: flex w-full max-w-[920px]
   flex-col gap-4 px-4, а с 40rem = 640 - строкой (sm:flex-row
   sm:items-center sm:justify-between). ЗАМЕРЕНО на 644: заголовок
   переносится в две строки (203.72 x 72.78) и стоит СЛЕВА, плашка
   справа своей полной ширины 366.28 - сжимается заголовок, а не она */
.w-up-col-team .w-up-head {
  width: 100%;
  max-width: 920px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
  padding: 0 16px;
}
@media (min-width: 40rem) {
  .w-up-col-team .w-up-head { flex-direction: row; align-items: center; justify-content: space-between; }
}
/* сетка Team - обёртка mx-auto mt-8 max-w-[920px] px-4 (обычный блок в
   центрующем столбце, поэтому ширина по содержимому) и внутри grid
   grid-cols-1 gap-5, с 768 - md:grid-cols-2. Прежде тут стояла
   снятая ширина 917.47; теперь она выходит сама из того же правила:
   две карточки по 432.735 + зазор 20 + поля 16+16. На 644 обёртка
   582.23 - по сноске, карточки в столбик по 550.23 */
.w-up-teamwrap { margin: 32px auto 0; max-width: 920px; padding: 0 16px; }
.w-up-teamgrid { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 20px; }
@media (min-width: 48rem) {
  .w-up-teamgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.w-up-teamfoot { margin-top: 24px; }
/* ЗАМЕРЕНО: плашка 45 высотой (border-box), padding 6.5 6 6.5 12 - справа
   поле 6, а не 12; всё выровнено по центру высоты 45.
   Ширина у образца: w-full, с 640 - sm:w-auto sm:max-w-[460px], с 768 -
   md:w-[calc(50%-10px)] md:max-w-none (на 1336 это снятые 434). Текст
   внутри min-w-0 flex-1 truncate: не переносится, а обрезается
   многоточием, поэтому наименьшая ширина плашки равна полной и на
   640..767 она не сжимается вовсе */
.w-up-banner {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  height: 45px;
  align-items: center;
  gap: 10px;
  padding: 6.5px 6px 6.5px 12px;
  border: 1px solid var(--w-border);
  border-radius: 16px;
  background: var(--w-surface-3);
}
@media (min-width: 40rem) {
  .w-up-banner { width: auto; max-width: 460px; }
}
@media (min-width: 48rem) {
  .w-up-banner { width: calc(50% - 10px); max-width: none; }
}
.w-up-banner-icon { flex-shrink: 0; color: var(--w-text-secondary); }
.w-up-banner-text { min-width: 0; flex: 1 1 0%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; line-height: 20.25px; color: var(--w-text-primary); }
.w-up-banner-go {
  display: inline-flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--w-fill-primary);
  color: var(--w-on-primary);
  text-decoration: none;
}

.w-teamcard {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--w-border);
  border-radius: 16px;
  background: var(--w-surface-3);
  color: var(--w-text-primary);
}
.w-teamcard-head { display: flex; align-items: flex-start; justify-content: space-between; }
/* пилюля с числом мест: padding 0 8, радиус 5.5, фон alpha 5%, текст
   12/15.6 веса 500 цветом text-secondary */
.w-teamcard-badge {
  display: inline-flex;
  height: 22px;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-radius: 5.5px;
  background: var(--w-alpha-1);
  font-size: 12px;
  line-height: 15.6px;
  font-weight: 500; --w-w: 500;
  color: var(--w-text-secondary);
}
/* ЗАМЕРЕНО: подпись стоит через 4 после заголовка (margin-top -4 гасит
   отступ колонки), плашка цен - через 20 (margin-top 12 поверх gap 8) */
.w-teamcard-mid { display: flex; margin-top: 20px; flex-direction: column; gap: 8px; }
.w-teamcard-titles { display: flex; flex-direction: column; gap: 8px; }
.w-teamcard-title-row { display: flex; align-items: center; }
/* ЗАМЕРЕНО: заголовки Team и Enterprise СЕРИФНЫЕ (класс font-heading у образца) */
.w-teamcard-title { margin: 0; font-family: 'Anthropic Serif', var(--cds-font-voice); font-size: 24px; line-height: 31.2px; font-weight: 500; --w-w: 500; }
.w-teamcard-sub { margin: -4px 0 0; font-size: 15px; line-height: 20px; color: var(--w-text-secondary); }
.w-teamcard-prices { margin-top: 12px; padding: 16px; border-radius: 12px; background: var(--w-surface-1); }
.w-teamcard-prices-in { display: flex; flex-direction: column; }
.w-teamcard-seat { display: flex; flex-direction: column; }
.w-teamcard-seat-row { display: flex; height: 28px; align-items: center; justify-content: space-between; }
.w-teamcard-seat-name { font-size: 14px; line-height: 20px; font-weight: 500; --w-w: 500; color: var(--w-text-secondary); }
.w-teamcard-seat-price { font-size: 22px; line-height: 28px; color: var(--w-text-primary); }
.w-teamcard-per { font-size: 14px; line-height: 20px; color: var(--w-text-muted); }
.w-teamcard-vat { margin-left: 4px; font-size: 12px; line-height: 17px; color: var(--w-text-muted); }
.w-teamcard-line { margin: 4px 0 0; font-size: 12px; line-height: 17px; color: var(--w-text-muted); }
.w-teamcard-api { margin: 0 0 4px; font-size: 14px; line-height: 20px; font-weight: 500; --w-w: 500; color: var(--w-text-primary); }
/* между двумя видами мест линия в 1px с отступом 16 сверху и снизу:
   по координатам образца группа 16..86, линия 102..103, группа 119..189 */
.w-teamcard-sep { height: 1px; margin: 16px 0; background: var(--w-alpha-1); }
.w-teamcard-feats { display: flex; margin: 24px 0 0; flex-direction: column; gap: 4px; padding: 0; list-style: none; font-size: 14px; line-height: 20px; color: var(--w-text-secondary); }
/* ЗАМЕРЕНО: у списка с заголовком (Enterprise) отступ сверху 20, у
   списка без заголовка (Team) - 24 */
.w-teamcard-feats-headed { margin-top: 20px; }
.w-teamcard-feats-head { margin: 0 0 4px; font-weight: 500; --w-w: 500; }
/* галочка 14 в списках Team/Enterprise не по центру строки: у образца
   items normal и margin-top 0.25em (3.5) */
.w-feat-sm { align-items: flex-start; }
.w-feat-sm .w-feat-check { margin-top: 3.5px; }
.w-teamcard-tail { flex: 1; min-height: 24px; }
.w-teamcard-cta { display: flex; }
.w-teamcard-btn { width: 100%; height: 40px; border-radius: 10px; font-size: 15px; line-height: 22px; }

/* строка "счетов пока нет" в Billing бесплатного тарифа: блок 44 высотой
   (поля 12), текст 14/20 цветом text-primary - ЗАМЕРЕНО */
.w-invoice-empty { padding: 12px 0; font-size: 14px; line-height: 20px; color: var(--w-text-primary); }

/* ЗАМЕРЕНО в тёмной теме: подпись тарифа у образца классом font-base -
   ось веса жёстко 400 и в тёмной НЕ понижается, в отличие от остального
   текста страницы (списки и приписки там 360) */
[data-mode='dark'] .w-plancard-sub { font-variation-settings: 'GRAD' 0, 'wght' 400 !important; }

/* ПРОВЕРЕНО 24.09: на странице тарифов пиктограммы карточек появляются
   БЕЗ анимации (animationName none у svg и у обёрток). Проявление
   lazy-pictogram-fade-in (.2s) у claude.ai есть только на маркетинговой
   странице входа - сюда его ставить нельзя, пробовал и откатил. */

/* ЗАМЕРЕНО в тёмной теме на вкладке Team and Enterprise: подпись под
   названием, строки списков и мелкие строки плашки цен у образца набраны
   классами font-base / font-small - ось веса у них жёстко 400 и в тёмной
   НЕ понижается (ширины строк те же, что в светлой). Название места,
   пилюля "2-150 users" и заголовок списка при этом утончаются, как всё. */
[data-mode='dark'] :is(.w-teamcard-sub, .w-teamcard-line, .w-teamcard-feats .w-feat) { font-variation-settings: 'GRAD' 0, 'wght' 400 !important; }

/* ── Левая панель ─────────────────────────────────────────────────────────
   Копия панели claude.ai (каркас dframe, вариант web, плотность
   comfortable). ЗАМЕРЕНО 25.09 вычисленными стилями и наведением
   настоящим курсором, окно 1320x896, обе темы; правила - из самого CSS
   образца (.dframe-sidebar, .df-*), значения токенов сняты в обеих темах.

   Размеры: ширина 288 (тянется от 232 до 420), шапка 44 (поля 4/8/0),
   тело с полями 4/8/6 и зазором 8, строка 32 (поля 0/2, зазор 8, радиус
   8, шаг .5), место под значок 28, значок 20 (вес 433.25), шрифт 14/21.
   Заголовок раздела: поля 16/4/4/6, 13/16 приглушённым. Низ: поля 8,
   над ним волосок .5px цветом border.

   Цвета (свет / тьма):
     фон панели  mix(surface-0 50%, surface-1) / mix(surface-1 80%, black)
     под курсором neutral-50 #f0efec / #fff 7.5%
     выбранный    neutral-60 #edece8 / #fff 15%
     кружок New   neutral-70 #eae9e4 / neutral-150 #2c2c2a, под курсором
                  text-muted 25%
   Кнопки и ссылки в каркасе со стрелкой, рука только у настоящих
   ссылок (у нас - настройка Cursor).                                  */
:root {
  --cds-neutral-50: #f0efec;
  --cds-neutral-60: #edece8;
  --cds-neutral-70: #eae9e4;
  --cds-neutral-150: #d2d1c7;
  /* neutral-900 - цвет под курсором у df-chrome-btn образца (ЗАМЕРЕНО 29.09:
     #0b0b0b / в тёмной белый) */
  --cds-neutral-900: #0b0b0b;
  --w-sb-bg: color-mix(in srgb, var(--cds-surface-0) 50%, var(--cds-surface-1));
  --w-sb-hover: var(--cds-neutral-50);
  --w-sb-selected: var(--cds-neutral-60);
  --w-sb-pop-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 4px 12px 0 rgba(0, 0, 0, .06), 0 16px 40px 0 rgba(0, 0, 0, .08);
  /* --df-ease-out образца */
  --w-sb-ease: cubic-bezier(.32, .72, 0, 1);
}
[data-mode='dark'] {
  --cds-neutral-50: #151515;
  --cds-neutral-60: #181817;
  --cds-neutral-70: #1a1a19;
  --cds-neutral-150: #2c2c2a;
  --cds-neutral-900: #ffffff;
  --w-sb-bg: color-mix(in srgb, var(--cds-surface-1) 80%, black);
  --w-sb-hover: var(--cds-fill-ghost-hover);
  --w-sb-selected: var(--cds-fill-ghost-selected);
  --w-sb-pop-shadow: 0 0 0 .5px rgba(255, 255, 255, .08), 0 4px 12px 0 rgba(0, 0, 0, .4), 0 16px 40px 0 rgba(0, 0, 0, .5);
}

/* оболочка приложения: панель слева, основная часть справа */
.w-app {
  position: fixed;
  inset: 0;
  display: flex;
  background: var(--cds-surface-1);
  color: var(--w-text-primary);
}
/* ── Рамка окна Wall3 (WallFrame в wall-app.jsx, числа там же) ── */
/* панель слева - с самого верха, её шапка заходит в полосу (у образца там
   же его кнопки панели, хозяин 29.09: «сайдбар вверх, чтобы на него
   заходило»); вниз на 36 уходит только правая часть */
html[data-frame] .w-app-main { padding-top: var(--w-frame-h, 36px); box-sizing: border-box; }
/* лёгкая панель из index.html уходит, как только появился настоящий корень
   рамки (даже если старая сборка страницы не успела удалить узел) */
html:has(.w-frame-root) #wall-boot-frame { display: none !important; }
/* шапка панели тащит окно, кнопки и строки в панели - нет */
html[data-frame] .w-sb-head { app-region: drag; -webkit-app-region: drag; }
/* свёрнутая панель в окне Wall3: её кнопка наверху в полосе, шапке беседы
   место под неё не нужно - название прижато влево, как при открытой
   панели: отступ ТОТ ЖЕ, что при открытой (хозяин 29.09) - кнопка названия
   на 16 от левого края беседы, текст на 24 (поле 8 даёт .w-chat-split, на
   узком окне его нет - там 16 шапкой). У Claude Desktop кнопка на 8
   ([data-wco] --df-trigger-right 0) - НАМЕРЕННО не как у образца */
html[data-frame] .w-app[data-collapsed] .w-chat-head { padding-left: 8px; }
html[data-frame] .w-app[data-narrow] .w-chat-head { padding-left: 16px; }
html[data-frame] .w-sb :is(button, a, input, [role='button'], [tabindex]) { app-region: no-drag; -webkit-app-region: no-drag; }
/* полоса: перетаскивание окна; под окнами-модалками (тускнеет вместе со
   страницей, как у образца - его кнопки лежат поверх прозрачно) */
/* z -1: ПОД приложением - свёрнутая панель кладёт кнопку «Show sidebar» в
   полосу, и полоса поверх её закрывала (хозяин 29.09: «кнопка сайдбара
   пропадает»). Перетаскиванию слой не нужен сверху: app-region считается по
   месту узла, а не по тому, что нарисовано над ним */
.w-frame-bg { position: fixed; z-index: -1; top: 0; right: 0; left: var(--w-frame-sb, 0px); height: var(--w-frame-h, 36px); app-region: drag; -webkit-app-region: drag; }
html[data-frame-app] .w-frame-bg { background: var(--cds-surface-1); }
/* над панелью - её цвет и её черта справа до самого верха (у образца так) */
.w-frame-sb { position: absolute; top: 0; bottom: 0; left: 0; width: var(--w-frame-sb, 0px); background: var(--w-sb-bg); }
/* над панелью полосы нет: панель рисует себя сама до верха */
html[data-frame-app] .w-frame-sb { display: none; }
/* Полоса-заголовок ПОВЕРХ окон-модалок (хозяин 01.10: «открыл настройки,
   нажал на место верхней панели - окно настроек закрылось, панель должна
   быть как виндовская»). ПОЙМАНО tmp/w3_modal_frame.py: перетаскивание
   WebView2 держит по app-region и под подложкой, НО в полосе над панелью
   дыры no-drag (кнопка панели, знак «Wall») - щелчок туда шёл в подложку
   окна (onMouseDown - закрыть). Пока открыто окно, над всей полосой лежит
   сплошной app-region: drag выше подложек и ниже кнопок окна и верхней
   кромки - полоса ведёт себя как заголовок Windows (тащит окно, двойной
   щелчок разворачивает), окно не закрывается. Меню (w-popover-backdrop) не
   в списке: щелчок по полосе их закрывает, как у Windows */
.w-frame-grab { display: none; position: fixed; z-index: 2147482999; top: 0; right: 0; left: 0; height: var(--w-frame-h, 36px); app-region: drag; -webkit-app-region: drag; }
html[data-frame]:has(:is(.w-backdrop, .w-modal-backdrop, .w-pv-layer):not([data-state='closed'])) .w-frame-grab { display: block; }
/* окно настроек (1024 x до 800, по центру всего окна) заходило верхом в
   полосу (y 16 при окне 792) - в Wall3 оно по центру места ПОД полосой */
html[data-frame] .w-dialog { top: var(--w-frame-h, 36px); height: calc(100% - var(--w-frame-h, 36px) - 2rem); }
/* верхний край: окно тянется за него (оболочка ведёт размер сама) */
.w-frame-edges { position: fixed; z-index: 2147483001; top: 0; right: 0; left: 0; height: 4px; app-region: no-drag; -webkit-app-region: no-drag; }
.w-frame-edge { position: absolute; inset: 0; cursor: n-resize; }
.w-frame-corner { position: absolute; top: 0; bottom: 0; width: 8px; }
.w-frame-corner[data-side='left'] { left: 0; cursor: nw-resize; }
.w-frame-corner[data-side='right'] { right: 0; cursor: ne-resize; }
/* кнопки окна - всегда сверху всего, как системный слой образца */
.w-frame-caps { position: fixed; z-index: 2147483000; top: 0; right: 0; display: flex; height: var(--w-frame-h, 36px); app-region: no-drag; -webkit-app-region: no-drag; }
.w-frame-btn { position: relative; width: 46px; height: 100%; padding: 0; margin: 0; border: 0; outline: none; background: none; color: var(--w-frame-sym); cursor: default;
  transition: color .15s ease-out; }
.w-frame-btn:first-child { width: 45px; }
.w-frame-btn::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 1px; background: var(--w-frame-hov); opacity: 0; transition: opacity .15s ease-out; }
.w-frame-btn:first-child::before { left: 0; }
.w-frame-btn:hover::before { opacity: .102; }
.w-frame-btn:active::before { opacity: .2; transition: none; }
.w-frame-close::before { background: #e81123; }
.w-frame-close:hover::before { opacity: 1; }
.w-frame-close:active::before { opacity: .596; }
.w-frame-close:hover, .w-frame-close:active { color: #fff; }
.w-frame-close svg path { stroke-width: 1.05; }
.w-frame-close:hover svg path { stroke-width: 1.1; }
.w-frame-btn svg { position: absolute; top: 13px; left: 18px; display: block; }
.w-frame-btn:first-child svg { left: 17px; }
[data-reduce-motion='true'] .w-frame-btn, [data-reduce-motion='true'] .w-frame-btn::before { transition: none; }
.w-app-main { position: relative; flex: 1; min-width: 0; outline: none; }

.w-sb {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: var(--w-sb-w, 288px);
  height: 100%;
  isolation: isolate;
  border-right: .5px solid var(--cds-border);
  background: var(--w-sb-bg);
  color: var(--w-text-primary);
  font-size: 14px;
  line-height: 21px;
  font-weight: 400; --w-w: 400;
  user-select: none;
}

/* шапка: кнопка сворачивания и надпись */
.w-sb-head { display: flex; flex-shrink: 0; align-items: center; height: 44px; padding: 4px 8px 0; }
.w-sb-togbox { display: flex; flex-shrink: 0; justify-content: center; width: 32px; height: 24px; }
/* кнопка сворачивания полупрозрачна, пока курсор не над панелью:
   .dframe-sidebar:hover .df-sidebar-hover-reveal { opacity: 1 } */
.w-sb-reveal { display: flex; width: 24px; height: 24px; opacity: .7; transition: opacity .12s var(--w-sb-ease); }
.w-sb-head:has(:focus-visible) .w-sb-reveal { opacity: 1; }
@media (hover: hover) { .w-sb:hover .w-sb-reveal { opacity: 1; } }
.w-app[data-collapsed] .w-sb-reveal { opacity: 1; }
.w-sb-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  margin-left: 6px;
  translate: 0 -1px;
}
.w-sb-logowrap { display: flex; align-items: center; gap: 6px; min-width: 0; margin: -4px; padding: 4px; overflow: clip; }
.w-sb-logo { display: flex; align-items: center; color: inherit; text-decoration: none; }
/* у сборки Max у надписи-ссылки в фокусе с клавиатуры кольцо shadow-focus
   прямо по её коробке, без скругления (ЗАМЕРЕНО 25.09). Прежняя запись
   «у логотипа кольца нет» была снята с другой сборки */
.w-sb-logo:focus-visible { box-shadow: var(--cds-focus-shadow); }
.w-sb-logo span {
  margin-left: -2px;
  font-family: 'Anthropic Serif', var(--cds-font-voice);
  font-size: 20px;
  line-height: 20px;
  font-weight: 500; --w-w: 500;
  white-space: nowrap;
}

/* маленькая кнопка панели (24, радиус 6): сворачивание, «...», «+».
   isolation: у образца на кнопке isolate. Без него подложка (z-index -1)
   уходила под фон строки: на «...» при наведении строка и кнопка
   сливались в одно - найдено хозяином 26.09 */
.w-sb-ctl {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--w-text-secondary);
  font: inherit;
  font-size: 13px;
  line-height: 19px;
  cursor: var(--cds-cursor-interactive);
  outline: none;
}
/* подложка сама и придавливается (cds-btn-squish образца, ЗАМЕРЕНО
   25.09 правилом CSS): нажатие - scale .975 за --cds-dur-fast (60мс)
   ease-out, отпускание - пружиной .45с; значок стоит на месте. У
   образца так у Hide sidebar, View all, Group and sort, «...», Get apps
   и Search; у строк, New, шапки раздела и кнопки профиля - нет */
.w-sb-ctl-paint {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform-origin: 50% center;
  transition: background-color var(--w-dur-fast) var(--w-ease-out), box-shadow var(--w-dur-fast) var(--w-ease-out),
              transform var(--w-dur-slow) var(--w-spring);
}
.w-sb-ctl:not(:disabled):active .w-sb-ctl-paint, .w-sb-ctl:not(:disabled)[data-held] .w-sb-ctl-paint {
  transform: scale(.975);
  transition: background-color var(--w-dur-fast) var(--w-ease-out), box-shadow var(--w-dur-fast) var(--w-ease-out),
              transform var(--w-dur-fast) ease-out;
}
@media (hover: hover) { .w-sb-ctl:hover { color: var(--w-text-primary); } }
/* подложка и пока открыто меню кнопки (aria-haspopup + aria-expanded) */
.w-sb-ctl[aria-haspopup][aria-expanded='true'] .w-sb-ctl-paint { background: var(--w-sb-hover); }
@media (hover: hover) { .w-sb-ctl:hover .w-sb-ctl-paint { background: var(--w-sb-hover); } }
/* «...» строки и прочие кнопки внутри строк: подложка ghost-hover (5% /
   7.5%), а не цвет строки - иначе она пропала бы на подсвеченной строке */
.w-sb-ctl-row[aria-haspopup][aria-expanded='true'] .w-sb-ctl-paint { background: var(--w-ghost-hover); }
@media (hover: hover) { .w-sb-ctl-row:hover .w-sb-ctl-paint { background: var(--w-ghost-hover); } }
/* кнопка в фокусе с клавиатуры: у образца кольцо на самой кнопке -
   линия цветом страницы внутри, 1px accent и свечение 6px (#cde2fb /
   accent 60%), и та же линия у подложки */
.w-sb-ctl:focus-visible { box-shadow: var(--cds-focus-shadow); }
.w-sb-ctl:focus-visible .w-sb-ctl-paint { box-shadow: inset 0 0 0 1px var(--cds-page-bg); }

/* тело панели */
.w-sb-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
  padding: 4px 8px 6px;
  overflow: clip;
}
.w-sb-main { display: flex; flex: 1; flex-direction: column; min-height: 0; }
/* верхняя строка Search: копия строки New/Search из панели Клода
   (ЗАМЕРЕНО 02.11: x 8, ширина как у строк 269 при панели 285, высота 32,
   поля 0/2, gap 4, радиус 8, слот значка 28 со сдвигом 2, подпись 14/21,
   сочетание 12/12 справа с полем 8). Стоит над прокруткой - не уезжает. */
.w-sb-nav { flex-shrink: 0; margin: 0 -8px 0 -4px; padding: 0 10px 0 4px; }
.w-sb-navrow {
  display: flex;
  width: 100%;
  height: 32px;
  align-items: center;
  gap: 4px;
  margin: 0 0 2px;
  padding: 0 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--w-text-primary);
  font: inherit;
  text-align: start;
  cursor: var(--cds-cursor-interactive);
  outline: none;
}
.w-sb-navrow:focus-visible {
  background: var(--w-sb-hover);
  box-shadow: inset 0 0 0 1px var(--cds-fill-accent), 0 0 6px 0 color-mix(in srgb, var(--cds-fill-accent) 20%, transparent);
}
@media (hover: hover) { .w-sb-navrow:hover { background: var(--w-sb-hover); } }
.w-sb-navlead {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 2px;
}
.w-sb-navlabel { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-sb-navkeys {
  display: inline-flex;
  flex-shrink: 0;
  align-items: baseline;
  gap: 1.8px;
  margin: 0 8px 0 4px;
  font-size: 12px;
  line-height: 12px;
  /* у Клода (ЗАМЕРЕНО 02.11) подсказка сочетания лежит с opacity 0 и
     проявляется ТОЛЬКО по наведению на строку, без перехода; цвет -
     60% основного, а не muted */
  color: color-mix(in srgb, var(--w-text-primary) 60%, transparent);
  opacity: 0;
}
@media (hover: hover) { .w-sb-navrow:hover .w-sb-navkeys { opacity: 1; } }
.w-sb-navplus { margin: 0 -0.15em; }
/* прокручиваемая часть: у образца она шире тела на 4 слева и 8 справа,
   под полосу прокрутки; строки внутри те же 269 */
.w-sb-scroll {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  margin: 0 -8px 0 -4px;
  padding: 0 10px 0 4px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--w-scrollbar) transparent;
}
/* .dframe-nav-scroll[data-scrolled]: верх прокрученного списка гаснет на 12 */
.w-sb-scroll[data-scrolled] { mask-image: linear-gradient(transparent 0, #000 12px); }

/* строка: New, разделы, чаты */
.w-sb-row {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 32px;
  padding: 0 2px;
  border-radius: 8px;
  color: var(--w-text-secondary);
  text-decoration: none;
  cursor: var(--cds-cursor-interactive);
  outline: none;
}
.w-sb-row:focus-visible { box-shadow: inset 0 0 0 1px var(--cds-fill-accent), 0 0 6px 0 color-mix(in srgb, var(--cds-fill-accent) 20%, transparent); }
.w-sb-lead { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 28px; height: 28px; }
.w-sb-label { display: flex; flex: 1; align-items: center; min-width: 0; }

/* Строка New (кружок 22 с плюсом, клавиши по наведению) убрана из панели
   27.09 по слову хозяина - стили ушли вместе с ней, см. WallSidebar */

/* раздел: шапка со стрелкой и кнопками */
.w-sb-sec { flex-shrink: 0; }
/* ЗАМЕРЕНО 25.09 у Max: gap-px и шаг строк 33.5 (1 + поле .5). ПЕРЕСНЯТО
   02.11 у Клода (живая панель, Chrome 156): раздел - колонка gap 2, поле
   .5 у строки убрано, шаг 34; между разделами margin-top 8, а не 10.
   Верхнее поле .5 со старым gap 1 дало бы 34.5 - лишний пиксель. */
.w-sb-sec { display: flex; flex-direction: column; gap: 2px; }
.w-sb-secrows { display: contents; }
.w-sb-sec + .w-sb-sec { margin-top: 8px; }
.w-sb-sechead {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  /* 02.11: слева оставлено как было (6); у Клода копируем только
     вертикаль - 16 сверху и 4 снизу */
  padding: 16px 4px 4px 6px;
  color: var(--cds-text-muted);
  font-size: 13px;
  line-height: 16px;
}
.w-sb-secbtn {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin: -4px 0 -4px -4px;
  padding: 4px 0 4px 4px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: var(--cds-cursor-interactive);
  outline: none;
}
/* заголовок раздела - кольцо как у строки (внутреннее), а не как у кнопки */
.w-sb-secbtn:focus-visible {
  box-shadow: inset 0 0 0 1px var(--cds-fill-accent), 0 0 6px 0 color-mix(in srgb, var(--cds-fill-accent) 20%, transparent);
}
/* ЗАМЕРЕНО наведением: заголовок раздела из muted становится secondary */
@media (hover: hover) { .w-sb-secbtn:hover { color: var(--w-text-secondary); } }
.w-sb-sectitle { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* кнопки справа в шапке раздела: зазор 4, сами 24 с -4 сверху и снизу;
   View all видна, пока курсор над разделом или она в фокусе */
.w-sb-secacts { display: flex; flex-shrink: 0; align-items: center; gap: 4px; }
.w-sb-ctl-hd { margin: -4px 0; }
.w-sb-reveal-hd { opacity: 0; }
.w-sb-reveal-hd:focus-visible { opacity: 1; }
@media (hover: hover) { .w-sb-sec:hover .w-sb-reveal-hd { opacity: 1; } }
/* стрелка видна по наведению на раздел; у раскрытого повёрнута на 90 */
.w-sb-chev {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: rotate var(--w-dur-fast) var(--w-ease);
}
.w-sb-secbtn[aria-expanded='true'] .w-sb-chev { rotate: 90deg; }
.w-sb-secbtn:focus-visible .w-sb-chev,
.w-sb-secbtn[aria-expanded='false'] .w-sb-chev { opacity: 1; }
@media (hover: hover) { .w-sb-sec:hover .w-sb-chev { opacity: 1; } }
.w-sb-secrows[hidden] { display: none; }
/* Свернутый раздел: следующий заголовок без верхнего поля. У Клода
   (ЗАМЕРЕНО 02.11, живая панель): свернутая шапка 44 (16 сверху), а шапка
   следующего раздела 28 (padding-top 0). Без этого между двумя шапками
   висело 26 px пустоты. Заголовок самого свернутого раздела поле сверху
   сохраняет - 44. */
.w-app:not([data-phone-sheet]) .w-sb-sec:has(> .w-sb-sechead > .w-sb-secbtn[aria-expanded='false']) + .w-sb-sec > .w-sb-sechead {
  min-height: 28px;
  padding-top: 0;
}

/* заглушки строк при первой загрузке списка (SbPlaceholderRows, числа -
   в комментарии над ним). Проявление - df-placeholder-fade образца:
   @keyframes { 0% { opacity: 0 } }, .15s ease-out, задержка .5s, both;
   при уменьшенном движении у образца (ЗАМЕРЕНО правилом его CSS)
   animation-duration 0s - задержка .5s остаётся, проявление мгновенное */
@keyframes w-sb-ph-fade { 0% { opacity: 0; } }
.w-sb-ph { display: flex; flex-direction: column; gap: 2px; animation: w-sb-ph-fade .15s ease-out .5s both; }
.w-sb-ph-row { display: flex; height: 32px; margin: 0; align-items: center; gap: 8px; padding: 0 2px; }
.w-sb-ph-lead { display: flex; flex-shrink: 0; width: 28px; height: 28px; align-items: center; justify-content: center; }
.w-sb-ph-dot { width: 6px; height: 6px; border-radius: calc(infinity * 1px); }
.w-sb-ph-bar { height: 14px; }
[data-reduce-motion='true'] .w-sb-ph { animation-duration: 0s; }
@media (prefers-reduced-motion: reduce) { .w-sb-ph { animation-duration: 0s; } }

/* перетаскивание закреплённых (sbDragBegin, числа - там). Соседи едут
   только пока тянут; призрак - фиксированный слой у курсора */
.w-sb[data-pin-dragging] .w-sb-item, .w-sb[data-pin-dragging] .w-sb-sechead { transition: transform .12s ease-out; }
/* слой на время перетаскивания (Sg образца): глушит наведение, курсор захвата */
.w-drag-chrome { position: fixed; inset: 0; z-index: 2147483647; pointer-events: auto; user-select: none; touch-action: none; background: transparent; cursor: grabbing; }
.w-sb-ghost { position: fixed; top: 0; left: 0; z-index: 9001; pointer-events: none; will-change: transform; }
.w-sb-ghost-box {
  position: absolute; overflow: hidden; border-radius: 8px; opacity: .9;
  background: var(--w-sb-bg, var(--cds-surface-1));
  box-shadow: 0 0 0 .5px #0000000d, 0 2px 8px #0000000a, 0 12px 32px #00000008;
  transition: opacity .15s cubic-bezier(.165, .84, .44, 1), transform .15s cubic-bezier(.165, .84, .44, 1), width .15s cubic-bezier(.165, .84, .44, 1), left .15s cubic-bezier(.165, .84, .44, 1), top .15s cubic-bezier(.165, .84, .44, 1);
}
.w-sb-ghost-clone { position: absolute; inset: 0; transition: opacity .15s cubic-bezier(.165, .84, .44, 1); }
.w-sb-ghost-clone > .w-sb-item { margin: 0; }
.w-sb-ghost-danger { position: absolute; inset: 0; border-radius: inherit; background: var(--cds-bg-danger, rgb(250 214 214)); box-shadow: inset 0 0 0 1px var(--cds-border-danger, rgb(142 38 38 / .3)); opacity: 0; transition: opacity .15s cubic-bezier(.165, .84, .44, 1); }
.w-sb-ghost-label { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 8px; color: var(--cds-text-danger, rgb(142 38 38)); font-size: 14px; line-height: 20px; font-weight: 500; --w-w: 500; white-space: nowrap; opacity: 0; transition: opacity .15s cubic-bezier(.165, .84, .44, 1); }
.w-sb-ghost-label > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.w-sb-ghost-measure { position: absolute; visibility: hidden; width: max-content; padding: 0 12px; font-size: 14px; line-height: 20px; font-weight: 500; --w-w: 500; white-space: nowrap; }
.w-sb-ghost-box[data-unpin] { opacity: 1; }
.w-sb-ghost-box[data-unpin] .w-sb-ghost-clone { opacity: 0; }
.w-sb-ghost-box[data-unpin] .w-sb-ghost-danger, .w-sb-ghost-box[data-unpin] .w-sb-ghost-label { opacity: 1; }
[data-reduce-motion='true'] :is(.w-sb-ghost-box, .w-sb-ghost-clone, .w-sb-ghost-danger, .w-sb-ghost-label),
[data-reduce-motion='true'] .w-sb[data-pin-dragging] :is(.w-sb-item, .w-sb-sechead) { transition: none; }
@media (prefers-reduced-motion: reduce) { :is(.w-sb-ghost-box, .w-sb-ghost-clone, .w-sb-ghost-danger, .w-sb-ghost-label), .w-sb[data-pin-dragging] :is(.w-sb-item, .w-sb-sechead) { transition: none; } }

/* строка чата */
/* шаг строки у Клода 34 = 32 + gap 2 раздела (02.11); поле 0.5 убрано,
   иначе выходило 34.5 */
.w-sb-item { position: relative; height: 32px; margin: 0; border-radius: 8px; }
/* df-hover: под курсором, в фокусе с клавиатуры и пока открыто меню
   строки («...» или правый клик); у открытой беседы при этом остаётся
   df-selected - правило выбранной ниже и перебивает */
/* ЗАМЕРЕНО 25.09: у образца has-[:focus-visible] - ЛЮБОЙ фокус с
   клавиатуры внутри строки, в том числе на «...»: меню «...» закрыли
   Escape (или щёлкнули «...» и нажали Shift), курсор увели - строка
   остаётся подсвечена (240,239,236), «...» видна, название гаснет под
   неё на 44/20. У нас условие было только на саму ссылку строки, и при
   фокусе на «...» заливка и маска пропадали (нашёл хозяин) */
.w-sb-item[data-menu],
.w-sb-item:has(:focus-visible) { background: var(--w-sb-hover); }
@media (hover: hover) { .w-sb-item:hover { background: var(--w-sb-hover); } }
.w-sb-item[data-selected] { background: var(--w-sb-selected); }
/* кольцо строки в фокусе своё, не общее: ЗАМЕРЕНО Tab-ом -
   inset 0 0 0 1px accent и 0 0 6px accent 20% */
.w-sb-item .w-sb-row:focus-visible {
  box-shadow: inset 0 0 0 1px var(--cds-fill-accent), 0 0 6px 0 color-mix(in srgb, var(--cds-fill-accent) 20%, transparent);
}
.w-sb-item[data-selected] .w-sb-row { color: var(--w-text-primary); }
.w-sb-item .w-sb-label { display: block; }
/* название: длинное гаснет на последних 24; когда видна кнопка «...» -
   на участке 44..20 от правого края, под кнопку */
.w-sb-clip { display: block; min-width: 0; overflow: hidden; white-space: nowrap; }
.w-sb-clip > span { display: inline-block; white-space: nowrap; }
.w-sb-item[data-over] .w-sb-clip { mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent 100%); }
.w-sb-item[data-menu] .w-sb-clip,
.w-sb-item:has(:focus-visible) .w-sb-clip {
  mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent calc(100% - 20px));
}
@media (hover: hover) { .w-sb-item:hover .w-sb-clip {
  mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent calc(100% - 20px));
} }
/* строка без значка (Recents новой панели): название с отступом 4 -
   df-iconless-pad = (место под значок 28 - значок 20) / 2. Раньше тут
   стояла метка состояния «Idle» (кольцо 6) - в новой панели её нет */
.w-sb-item[data-iconless] .w-sb-label { padding-left: 4px; }
/* кнопка «...»: видна по наведению на строку и пока открыто её меню.
   У образца у ВЫБРАННОЙ строки «...» (и маска названия) видны уже по
   наведению на весь раздел, в том числе на его заголовок (ЗАМЕРЕНО
   25.09). НАМЕРЕННО убрано (хозяин 27.09: навёлся на «Recents» - у
   открытой беседы «...» поверх значка архива, «я же на неё не
   наводился»): только наведение на саму строку. По замеру не возвращать */
.w-sb-more {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
}
.w-sb-item[data-menu] .w-sb-more,
.w-sb-item:has(:focus-visible) .w-sb-more,
.w-sb-more:has(:focus-visible) { opacity: 1; pointer-events: auto; }
@media (hover: hover) { .w-sb-item:hover .w-sb-more { opacity: 1; pointer-events: auto; } }

/* ── Точка непрочитанного ─────────────────────────────────────────────────
   ЗАМЕРЕНО 26.09 в Chrome хозяина (Max, строка «Scheduled task
   automation», классы и числа):
   место - [data-row-decoration] absolute справа на (row-h - row-ctl)/2 = 4,
   по центру строки, 24 x 24 (row-ctl), мимо мыши;
   в нём span role=status aria-label «Unread response» min 14 x 14 по
   центру, внутри .status-dot[data-kind=ready]: 6 x 6, круг, фон
   --cds-fill-accent (#2a78d6 светлая). Точка 202..208 при строке 8..221,
   x = 193 + 9;
   под курсором на строке (group-hover) и при фокусе с клавиатуры внутри
   (group-has-[:focus-visible]) - opacity 0 сразу, без перехода, на её
   месте «...» (ЗАМЕРЕНО наведением: 1 -> 0, «...» 0 -> 1);
   пока точка есть, название гаснет на 44..20 от края ВСЕГДА, как под
   курсором (у строки без точки маски нет); цвет и вес названия те же
   (secondary, 400).
   НАМЕРЕННО: у Wall «...» видна и при открытом меню строки (data-menu,
   снято 25.09) - точку прячем и тогда, чтобы они не лежали друг на
   друге. */
.w-sb-deco {
  position: absolute;
  top: 50%;
  right: 4px;
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  translate: 0 -50%;
}
.w-sb-item[data-menu] .w-sb-deco,
.w-sb-item:has(:focus-visible) .w-sb-deco { opacity: 0; }
@media (hover: hover) { .w-sb-item:hover .w-sb-deco { opacity: 0; } }
.w-sb-item[data-deco] .w-sb-clip { mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent calc(100% - 20px)); }
/* значок архива в слоте (архивная среди активных, см. SbChat) - muted,
   как значок документа у образца; бледности строки у Wall НЕТ (хозяин) */
.w-sb-deco-ic { color: var(--w-text-muted); }
/* Status: Archived - заголовок «Archived» над группами; первая группа
   встаёт вплотную (у образца «Older» на 44 ниже «Archived», то есть
   сразу за шапкой 44, без зазора колонки; 02.11 зазор раздела стал 2) */
.w-sb-sec-wrap > .w-sb-secrows > .w-sb-sec:first-child { margin-top: -2px; }
.w-unread { display: flex; min-width: 14px; min-height: 14px; flex-shrink: 0; align-items: center; justify-content: center; }
.w-status-dot { position: relative; display: block; width: 6px; height: 6px; border-radius: 50%; }
.w-status-dot[data-kind='ready'] { background: var(--cds-fill-accent); }

/* низ панели */
.w-sb-foot { position: relative; flex-shrink: 0; margin: -8px -8px -6px; }
.w-sb-foot::before {
  content: "";
  position: absolute;
  top: -.5px;
  right: 0;
  left: 0;
  z-index: 1;
  border-top: .5px solid var(--cds-border);
}
.w-sb-footrow { position: relative; display: flex; flex-shrink: 0; align-items: center; gap: 6px; height: 48px; padding: 8px; }
/* справа у образца две кнопки по 32 (Get apps and extensions и Search),
   у Wall - одна. Место второй оставлено пустым: иначе кнопке профиля
   доставалось больше, и при узкой панели и длинном имени из-под затухания
   выглядывало «Fr» от Free (хозяин нашёл в Wall3). ЗАМЕРЕНО у образца
   25.09 при панели 232 и имени «wall wallович»: правая группа 64 (две
   кнопки ВПЛОТНУЮ, без зазора), кнопка профиля 145, Free шириной 0.
   Первая прикидка резервировала 38 (32 и зазор 6) - кнопка выходила 139,
   на 6 уже образца; зазора между кнопками у образца нет, резерв 32. */
.w-sb-footl { flex: 1; min-width: 0; padding-right: 32px; }
.w-sb-footr { display: flex; flex-shrink: 0; align-items: center; }
.w-sb-user {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  height: 32px;
  padding: 0 8px 0 2px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--w-text-primary);
  font: inherit;
  cursor: var(--cds-cursor-interactive);
  outline: none;
}
.w-sb-user[aria-expanded='true'] { background: var(--w-sb-hover); }
@media (hover: hover) { .w-sb-user:hover { background: var(--w-sb-hover); } }
.w-sb-user:focus-visible { box-shadow: var(--cds-focus-shadow); }
.w-sb-avbox { position: relative; display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 28px; height: 24px; }
.w-sb-av {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--cds-alpha-2);
  color: var(--w-text-primary);
  font-size: 9px;
  line-height: 13.5px;
  font-weight: 500; --w-w: 500;
}
.w-sb-av img { width: 100%; height: 100%; object-fit: cover; }
/* карточка у названия беседы (ChatWhoCard; числа образца - в комментарии
   над ней в wall-app.jsx) */
.w-who { position: fixed; z-index: 91; display: flex; flex-direction: column; width: 280px; max-width: calc(100vw - 16px); border-radius: 12px; background: var(--w-surface-3);
  box-shadow: var(--w-shadow-panel); color: var(--w-text-primary); font-size: 14px; line-height: 20px; box-sizing: border-box; }
.w-who-in { display: flex; min-height: 0; flex: 1; flex-direction: column; padding: 4px; }
.w-who-head { display: flex; min-width: 0; flex-direction: column; gap: 2px; padding: 8px 12px; }
.w-who-name { font-weight: 500; --w-w: 500; overflow-wrap: anywhere; }
.w-who-stat { display: flex; align-items: flex-start; gap: 8px; color: var(--w-text-muted); font-size: 13px; line-height: 17px; }
.w-who-stext { min-width: 0; overflow-wrap: anywhere; }
/* точка статуса (как у «● Connected» образца): 6, круг, кольцо .5 цвета
   карточки; погасшая - text-muted */
.w-who-dotbox { display: block; flex-shrink: 0; margin-top: 6px; }
.w-who-dot { display: block; width: 6px; height: 6px; border-radius: 9999px; background: var(--cds-fill-success); box-shadow: 0 0 0 .5px var(--w-surface-3); }
.w-who-dot[data-off] { background: var(--cds-text-muted); }
.w-who-sep { height: 1px; margin: 4px 0; background: var(--cds-border); }
.w-who-more { display: flex; min-height: 0; flex-direction: column; }
.w-who-list { display: flex; min-height: 0; flex-direction: column; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--w-scrollbar) transparent; }
.w-who-row { display: flex; min-height: 32px; flex-shrink: 0; align-items: center; gap: 8px; min-width: 0; padding: 0 12px; border-radius: 8px; }
.w-who-rname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-who-rstat { display: flex; flex-shrink: 0; align-items: flex-start; gap: 8px; color: var(--w-text-muted); font-size: 13px; line-height: 17px; }
/* имя и тариф: имя 14/21 вторичным, точка и тариф 12/18 приглушённым,
   хвост гаснет на 12 (.df-footer-suffix) */
.w-sb-uname {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  padding-right: 12px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, #000 calc(100% - 12px), transparent);
}
.w-sb-uname > b { flex-shrink: 0; color: var(--w-text-secondary); font-weight: inherit; white-space: nowrap; }
/* ЗАМЕРЕНО 25.09 у образца с поиском в нижней панели (Chrome, Max): имя
   whitespace-nowrap max-w-full shrink-0 - не шире блока; точка без
   min-w-0 и не сжимается (2.8), сжимается только тариф (min-w-0). У нас
   точка сжималась до 0.9, и при панели 269 и имени «wall wallович» тариф
   сдвигался левее: видно 8.2 px от Free против 6.8 у образца */
.w-sb-uname > b { max-width: 100%; }
.w-sb-uname > i { min-width: auto !important; }
.w-sb-uname > i, .w-sb-uname > em {
  min-width: 0;
  color: var(--cds-text-muted);
  font-size: 12px;
  line-height: 18px;
  font-style: normal;
  white-space: nowrap;
}
.w-sb-uchev { display: flex; flex-shrink: 0; color: var(--cds-text-muted); }
/* кнопки 32 внизу (Get apps, поиск): радиус 8 */
.w-sb-ctl-32 { width: 32px; height: 32px; border-radius: 8px; font-size: 14px; line-height: 20px; }

/* ручка ширины: 12 у правого края, видна только правая часть
   (clip-path inset(0 0 0 37.5%)); по наведению через .2с проявляется
   полоска 3x48 цветом text-muted */
.w-sb-resize {
  position: absolute;
  top: 0;
  /* ЗАМЕРЕНО 26.09: end calc(-6px - (ring-outer - ring-inner)/2) = -6.25
     от края под рамкой (ручка 225.25..237.25 при панели 232). Было -5 -
     ручка и подсказка у неё стояли на 1.25 левее */
  right: -6.25px;
  z-index: 25;
  width: 12px;
  height: 100%;
  clip-path: inset(0 0 0 37.5%);
  cursor: col-resize;
  touch-action: none;
  outline: none;
}
.w-sb-resize:focus-visible { clip-path: none; }
/* кольцо ручки в фокусе с клавиатуры - отдельный слой: у сборки Max
   (ЗАМЕРЕНО 25.09) внутри ручки div absolute rounded-full inset-y-0
   left-1/2 w-3 -translate-x-1/2, transition-shadow .06с, в фокусе
   shadow-focus во всю высоту. У нас кольца не было - только синяя полоска */
.w-sb-resize::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 12px;
  translate: -50% 0;
  border-radius: 9999px;
  transition: box-shadow var(--w-dur-fast) cubic-bezier(.4, 0, .2, 1);
}
.w-sb-resize:focus-visible::before { box-shadow: var(--cds-focus-shadow); }
/* полоска по центру ручки (ЗАМЕРЕНО 26.09: 229.75 при ручке с 225.25 -
   left 50% и сдвиг -50%), не выше 48; в фокусе с клавиатуры - цветом
   accent во всю высоту и сразу, без задержки .2с */
.w-sb-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 3px;
  height: 100%;
  max-height: 48px;
  border-radius: 9999px;
  background: var(--cds-text-muted);
  opacity: 0;
  transition: opacity .2s var(--w-ease) .2s, background-color .2s var(--w-ease) .2s;
}
.w-app[data-resizing] .w-sb-grip { opacity: 1; }
@media (hover: hover) { .w-sb-resize:hover .w-sb-grip { opacity: 1; } }
.w-sb-resize:focus-visible .w-sb-grip { max-height: none; opacity: 1; background: var(--cds-fill-accent); transition-delay: 0s; }
.w-app[data-resizing] { cursor: col-resize; user-select: none; }
.w-app[data-resizing] * { cursor: col-resize !important; }

/* Свёрнутая панель (.dframe-root[data-collapsed], вариант web): от неё
   остаётся шапка 32x32 в углу 8/8, тело прячется и выпадает поверх
   страницы, пока курсор над кнопкой или над выпавшим телом:
     выпало - сразу при заходе курсора (0 мс);
     прячется - через 185 мс после ухода (ЗАМЕРЕНО);
     тело: фон surface-popover, тень shadow-pop, на всю высоту, поля
     48/8/6, из opacity 0 и сдвига -4 по x за .14с / .18с.
   Разворот: панель встаёт сразу, тело проявляется тем же ходом;
   сворачивание мгновенное. */
.w-app[data-collapsed] .w-sb {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 50;
  width: 32px;
  height: 32px;
  border-right: 0;
  background: none;
}
.w-app[data-collapsed] .w-sb-head { height: 32px; padding: 0; }
.w-app[data-collapsed] .w-sb-togbox { width: 32px; height: 32px; align-items: center; }
/* надписи в свёрнутом виде нет (у образца на её месте название беседы),
   при выпадении она есть и стоит РОВНО там же, где в открытой панели.
   ЗАМЕРЕНО 25.09 у сборки с поиском в нижней панели: «Claude» x 44 и в
   открытой, и в выпавшей (.df-peek-wordmark left 8 + отступ 38); все
   строки, значки и «...» тоже на тех же местах, расхождений 0. Прежняя
   запись «на 4 левее (42 против 46)» была снята с другой сборки, и у нас
   надпись при открытии прыгала на 4 - найдено хозяином 25.09. */
.w-app[data-collapsed]:not([data-hovering]) .w-sb-brand { visibility: hidden; }
.w-app[data-collapsed] .w-sb-resize { display: none; }
/* ЗАМЕРЕНО 25.09: в свёрнутом виде кнопки Search у образца нет вовсе (ни
   в выпавшем подвале, ни где-либо на странице; в открытом - одна), а
   «Get apps» встаёт на её место справа. У Wall «Get apps» нет, поэтому
   подвал оставляет кнопке профиля столько же, сколько у образца:
   271 - 32 - 6 = 233 */
.w-app[data-collapsed] .w-sb-footr { display: none; }
.w-app[data-collapsed] .w-sb-footl { padding-right: 38px; }
.w-sb-inner { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.w-app[data-collapsed] .w-sb-inner {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: var(--w-sb-w, 288px);
  height: 100%;
  padding-top: 44px;
  background: var(--cds-surface-popover);
  /* у образца у выпавшего тела рамка справа 1 px (cds-border), поэтому
     содержимое 287, как и в открытой панели. Без неё у нас всё, что
     прижато вправо (+, View all, «...», Search), в выпавшей стояло на 1
     правее (ЗАМЕРЕНО 25.09: 249 у образца в обоих видах, у нас 249/250) */
  border-right: 1px solid var(--cds-border);
  box-shadow: var(--w-sb-pop-shadow);
  opacity: 0;
  translate: -4px 0;
  pointer-events: none;
}
.w-app[data-collapsed][data-peeked] .w-sb-inner { transition: opacity .14s ease, translate .18s var(--w-sb-ease); }
.w-app[data-collapsed][data-hovering] .w-sb-inner { opacity: 1; translate: none; pointer-events: auto; }
[data-reduce-motion='true'] .w-sb-inner, [data-reduce-motion='true'] .w-sb-reveal { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .w-sb-inner, .w-sb-reveal { transition: none !important; }
}

/* подсказка с клавишами (TipKeys): подпись и клавиши через 8, клавиши
   12/18 приглушённым, плюс со сдвигом -3.6 (ЗАМЕРЕНО у «Hide sidebar») */
.w-tip-row { display: flex; align-items: center; gap: 8px; }
.w-tip-keys { display: flex; gap: 3.6px; font-size: 12px; line-height: 18px; color: var(--cds-text-muted); }
.w-tip-keys kbd { font: inherit; }
.w-tip-keys > span { margin: 0 -3.6px; }
/* не шире 240 (max-w-[240px] у образца; 26.09 длинное название дало 231). Было 218 - замер 25.09 упирался в край окна */
.w-tip-pos-left > .w-tooltip[data-side='right'] { max-width: 240px; transform-origin: -2px 50%; }
.w-tip-pos-left > .w-tooltip[data-side='bottom'] { transform-origin: 50% -5px; }
/* клавиши справа в пункте меню («P», «Ctrl+Shift+,»): 13/17 приглушённым */
.w-menu-keys { display: flex; flex-shrink: 0; gap: 3.6px; margin-left: auto; font-size: 13px; line-height: 17px; color: var(--cds-text-muted); }
.w-menu-keys kbd { font: inherit; }
.w-menu-keys > span { margin: 0 -3.6px; }
/* пункт с подменю и значением справа («Group by  None ›»): обёртка с
   отступом 16 и зазором 8, значение 13/17 приглушённым (ЗАМЕРЕНО) */
.w-menu-subwrap { display: flex; flex-shrink: 0; align-items: center; gap: 8px; margin-left: 16px; }
.w-menu-val { font-size: 13px; line-height: 17px; color: var(--cds-text-muted); white-space: nowrap; }
/* изменённый фильтр («Type», «Status», «Last activity» не по умолчанию) -
   text-accent (nD у образца: active ? text-accent : text-muted) */
.w-menu-val[data-active] { color: var(--cds-text-accent); }
/* окно удаления беседы стоит не поверх настроек - подложка обычная */
.w-backdrop-top { z-index: 80; }
/* почта над пунктами меню профиля: вес 500 (ЗАМЕРЕНО 26.09 инструментом
   снять_элемент.js, 13/17 приглушённым; прежняя запись «без веса» была
   неверной), длинная - с многоточием */
.w-menu-label-plain { font-weight: 500; --w-w: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* ── Поиск (палитра) - см. WallSearch в wall-app.jsx и S/pal_max.md ─────
   Копия сборки Max (снято 25.09). Цвета тёмной темы - через токены. */
:root {
  /* клавиша в рамке (cds Shortcut): ink/line; в меню действий - muted */
  --w-kbd-ink: #6d6b67;
  --w-kbd-line: rgba(109, 107, 103, .18);
  --w-kbd-ink-muted: #898781;
  --w-kbd-line-muted: rgba(137, 135, 129, .18);
  --w-kbd-line-danger: rgba(142, 38, 38, .18);
  /* плашка ключа фильтра bg-neutral (светлая ЗАМЕРЕНА: black 5%) */
  --w-chip-neutral: rgba(11, 11, 11, .05);
}
[data-mode='dark'] {
  --w-kbd-ink: #a5a49a;
  --w-kbd-line: rgba(165, 164, 154, .22);
  --w-kbd-ink-muted: #898781;
  --w-kbd-line-muted: rgba(137, 135, 129, .22);
  --w-kbd-line-danger: rgba(236, 126, 126, .22);
  /* у тёмной плашки фильтра замера нет - по токену neutral белый 5% */
  --w-chip-neutral: rgba(255, 255, 255, .05);
}

/* клавиши: 12/12, высота 18, рамка 1px, радиус 4; слово - поля 3 и не уже
   18, буква/значок - квадрат 18 (ЗАМЕРЕНО у Max и в окне клавиш) */
.w-kbds { display: inline-flex; flex-shrink: 0; align-items: center; gap: 2px; font-size: 12px; line-height: 17px; }
.w-kbd {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 3px;
  border: 1px solid var(--w-kbd-line);
  border-radius: 4px;
  background: transparent;
  color: var(--w-kbd-ink);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  font-variation-settings: inherit;
}
.w-kbd-sq { width: 18px; min-width: 0; padding: 0; }
.w-kbd .w-icon { color: inherit; }

.w-pal-backdrop { z-index: 88; }
/* Внутри окна поиска, его меню и окна клавиш «фон страницы» - поверхность
   окна: у образца внутренняя линия кольца фокуса белая, а не #fcfcfb
   (ЗАМЕРЕНО 25.09 у Max: Close :focus-visible - inset rgb(255,255,255)).
   Кнопки окна (Close, «…») под курсором - ghost-hover 5%, а не цвет
   панели 240,239,236: это кнопки cds, не dframe (там же). */
.w-pal, .w-pal-menu, .w-keys {
  --cds-page-bg: var(--w-surface-3);
  /* кольцо переопределяется здесь же: на :root оно уже посчитано с
     фоном страницы, и подмена --cds-page-bg до него не доходит */
  --cds-focus-shadow: inset 0 0 0 1px var(--w-surface-3), 0 0 0 1px #2a78d6, 0 0 6px 1px #cde2fb;
}
[data-mode='dark'] :is(.w-pal, .w-pal-menu, .w-keys) {
  --cds-focus-shadow: inset 0 0 0 1px var(--w-surface-3), 0 0 0 1px #2a78d6, 0 0 6px 1px hsl(from #184f95 h s l / 60%);
}
.w-pal .w-sb-ctl[aria-haspopup][aria-expanded='true'] .w-sb-ctl-paint { background: var(--w-ghost-hover); }
@media (hover: hover) {
  .w-pal .w-sb-ctl:hover .w-sb-ctl-paint,
  .w-keys .w-sb-ctl:hover .w-sb-ctl-paint { background: var(--w-ghost-hover); }
}
.w-pal {
  position: fixed;
  top: 25%;
  left: 50%;
  z-index: 89;
  width: calc(100vw - 2rem);
  max-width: 672px;
  translate: -50% 0;
  border-radius: 20px;
  color: var(--w-text-primary);
  font-size: 14px;
  line-height: 20px;
  opacity: 1;
  scale: 1;
  /* origin-top у образца: computed transform-origin 336px 0px (ЗАМЕРЕНО 25.09) */
  transform-origin: top;
  transition: opacity var(--w-dur-base) var(--w-ease-out), scale var(--w-dur-base) var(--w-ease-out);
  outline: none;
}
@media (min-width: 768px) { .w-pal { width: calc(100vw - 5rem); } }
@media (max-width: 639.98px) { .w-pal { top: 1rem !important; } }
.w-pal[data-state='closed'] { opacity: 0; scale: .98; }
[data-reduce-motion='true'] .w-pal { transition: none; }
[data-reduce-motion='true'] .w-pal[data-state='closed'] { scale: 1; }
@media (prefers-reduced-motion: reduce) { .w-pal { transition: none; } .w-pal[data-state='closed'] { scale: 1; } }

/* окно: surface-3, радиус 20, рамка .5 border-strong, shadow-2xl */
.w-pal-panel {
  overflow: hidden;
  border: .5px solid var(--w-border-strong);
  border-radius: 20px;
  background: var(--w-surface-3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25);
}
.w-pal-col { display: flex; flex-direction: column; max-height: calc(100vh - 2rem - 16px); overflow: clip; }
.w-pal-top { flex-shrink: 0; }
.w-pal-head { position: relative; display: flex; align-items: center; gap: 8px; padding: 17.6px 10px 14.4px 24px; }
.w-pal-input {
  position: relative;
  flex: 1;
  min-width: 5rem;
  height: 32px;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: var(--w-text-primary);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  resize: none;
  outline: none;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: pre;
  scrollbar-width: none;
}
.w-pal-input::placeholder { color: var(--cds-text-muted); }
.w-pal-spin { display: flex; flex-shrink: 0; width: 16px; height: 16px; }
.w-pal-close { color: var(--w-text-primary); }
/* Режим действий (Tab): в поле слева плашка «Actions» - ЗАМЕРЕНО у Max
   25.09: обёртка -mx-1 px-1 h-8 self-start flex gap-2 с прокруткой;
   плашка h-control-nested (20) px-sm (8) gap 4, радиус 5.5, 12/15 500,
   bg tint-blue, text accent, не шире 10rem; крестик «Clear filter» 14x14
   (радиус 2.5, поля 0/-5/0/-2), значок e10f 12 веса 577.8, под курсором
   вес 700 и подложка currentColor 10%, зона нажатия не меньше 24x24 */
.w-pal-chips { display: flex; flex-shrink: 1; align-self: flex-start; align-items: center; gap: 8px; min-width: 0; height: 32px; margin: 0 -4px; padding: 0 4px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.w-pal-chips::-webkit-scrollbar { display: none; }
.w-pal-fchip {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  min-width: 0;
  max-width: 10rem;
  height: 20px;
  padding: 0 8px;
  border-radius: 5.5px;
  background: var(--w-tint-blue);
  color: var(--w-text-accent);
  font-size: 12px;
  line-height: 15px;
  font-weight: 500; --w-w: 500;
  white-space: nowrap;
  vertical-align: middle;
}
.w-pal-fchip-text { min-width: 0; padding-bottom: .05em; overflow-x: clip; white-space: nowrap; text-overflow: ellipsis; }
.w-pal-fchip-x {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin: 0 -5px 0 -2px;
  padding: 0;
  border: 0;
  border-radius: 2.5px;
  background: transparent;
  color: currentColor;
  cursor: var(--cds-cursor-interactive);
  outline: none;
  transition: color .1s ease-out, background-color .1s ease-out, box-shadow .1s ease-out;
}
.w-pal-fchip-x::before { content: ""; position: absolute; left: -2px; top: 50%; translate: 0 -50%; width: max(24px, calc(100% + 2px)); height: max(24px, 100%); }
@media (hover: hover) {
  .w-pal-fchip-x:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
  .w-pal-fchip-x:hover .w-icon { font-weight: 700 !important; }
}
.w-pal-fchip-x:focus-visible { box-shadow: var(--w-focus-ring); }

/* ряд фильтров: flow-root pb 14.4, -mt 6, px 24; прокрутка без полосы */
.w-pal-filters { position: relative; display: flow-root; margin-top: -6px; padding: 0 24px 14.4px; }
.w-pal-fscroll { min-width: 0; margin: -8px -24px; padding: 8px 24px; overflow-x: auto; overscroll-behavior-x: contain; scroll-padding-inline: 24px; scrollbar-width: none; }
.w-pal-fscroll::-webkit-scrollbar { display: none; }
.w-pal-tabs { display: flex; align-items: center; min-width: max-content; }
.w-pal-tab {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cds-text-muted);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500; --w-w: 500;
  white-space: nowrap;
  cursor: var(--cds-cursor-interactive);
  user-select: none;
  outline: none;
}
.w-pal-tab::before { content: ""; position: absolute; inset: 0 1px; z-index: -1; border-radius: 8px; transition: box-shadow var(--w-dur-fast, .1s) ease-out; }
.w-pal-tab[data-active] { color: var(--w-text-primary); }
.w-pal-tab[data-active]::before { background: var(--w-ghost-hover); }
@media (hover: hover) {
  .w-pal-tab:not([data-active]):hover { color: var(--w-text-secondary); }
  .w-pal-tab:not([data-active]):hover::before { background: var(--w-ghost-hover); }
}
/* у образца focus-visible:before:shadow-focus - полное кольцо с внутренней линией */
.w-pal-tab:focus-visible::before { box-shadow: var(--cds-focus-shadow); }
.w-pal-line { width: 100%; height: .5px; background: var(--cds-border); }

/* список: p 10, высота по содержимому (не выше 440) с ходом .15с;
   сверху липкая тень, которую прячет плашка surface-3, пока не прокручено */
.w-pal-body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 440px;
  padding: 10px;
  /* auto - только при data-scroll (список выше 440): пока высота растёт
     к размеру, который помещается целиком, полосы нет */
  overflow-y: hidden;
  transition: height .15s ease-out, max-height .15s ease-out;
  scrollbar-width: thin;
  scrollbar-color: var(--w-scrollbar) transparent;
}
[data-reduce-motion='true'] .w-pal-body { transition: none; }
.w-pal-body[data-scroll] { overflow-y: auto; }
@media (prefers-reduced-motion: reduce) { .w-pal-body { transition: none; } }
.w-pal-sticky { position: sticky; top: -10px; z-index: 1; flex-shrink: 0; height: 10px; margin: -10px -10px -10px; overflow: hidden; pointer-events: none; }
.w-pal-sticky-shadow { position: absolute; left: 0; right: 0; bottom: 100%; height: 10px; box-shadow: 0 2px 8px color-mix(in srgb, #000 6%, transparent); }
.w-pal-cover { position: relative; z-index: 2; flex-shrink: 0; height: 10px; margin: 0 -10px; background: var(--w-surface-3); pointer-events: none; }
.w-pal-list { display: flex; flex-shrink: 0; flex-direction: column; gap: 4px; }
/* заглушки выдачи на время запроса (PalSkelGroup): остаток списка до
   потолка, лишние строки переносятся в скрытый столбец */
.w-pal-skel { display: flex; flex: 1 1 0; min-height: 0; flex-direction: column; flex-wrap: wrap; align-content: flex-start; overflow: hidden; }
/* строка во всю ширину (вариант fullWidth: box-border h-9 w-full) - ЗАМЕРЕНО:
   второй столбец начинается ровно на ширине группы (650), то есть первый
   столбец во всю ширину, а не по содержимому */
.w-pal-skrow { display: flex; flex-shrink: 0; width: 100%; height: 36px; align-items: center; gap: 8px; padding: 8px 12px; box-sizing: border-box; }
.w-pal-skico { width: 20px; height: 20px; flex-shrink: 0; }
.w-pal-skbar { height: 14px; }
.w-pal-glabel { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; color: var(--cds-text-muted); font-size: 12px; line-height: 17px; }
.w-pal-rowwrap { position: relative; }
.w-pal-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--w-text-secondary);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  text-align: start;
  cursor: var(--cds-cursor-interactive);
  outline: none;
  overflow: hidden;
  white-space: nowrap;
}
.w-pal-opt[data-highlighted] { background: var(--w-ghost-hover); color: var(--w-text-primary); }
.w-pal-main { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; }
/* у строк-бесед место под кнопку Actions: mr-7 (28) */
.w-pal-main[data-act] { margin-right: 28px; }
@media (pointer: coarse) { .w-pal-main[data-act] { margin-right: 0; } }
.w-pal-oico { position: relative; display: flex; flex-shrink: 0; width: 20px; height: 20px; }
.w-pal-oglyph { display: flex; }
/* точка непрочитанного 6x6 accent в углу, значок под ней вырезан маской */
.w-pal-oico-dot .w-pal-oglyph {
  --dot-r: 3px;
  mask-image: radial-gradient(circle at calc(100% - var(--dot-r) + 1px) calc(var(--dot-r) - 1px), transparent calc(var(--dot-r) + 2px), #000 calc(var(--dot-r) + 2.5px));
}
.w-pal-dot { position: absolute; top: -1px; right: -1px; width: 6px; height: 6px; border-radius: 50%; background: var(--cds-fill-accent); }
.w-pal-name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* название + отрывок (Jp образца: flex items-baseline gap-2 min-w-0 flex-1) */
.w-pal-titlewrap { display: flex; min-width: 0; flex: 1; align-items: baseline; gap: 8px; }
/* отрывок (Yp образца: text-xs text-muted max-w-[60%] shrink-0 overflow-hidden whitespace-nowrap) */
.w-pal-snip { max-width: 60%; flex-shrink: 0; overflow: hidden; white-space: nowrap; color: var(--cds-text-muted); font-size: 12px; line-height: 16px; }
.w-pal-chip {
  position: relative;
  top: 1px;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  margin: -1px 0;
  padding: 0 8px;
  border-radius: 5.5px;
  background: var(--w-chip-neutral);
  color: var(--w-text-secondary);
  font-size: 12px;
  line-height: 15px;
  font-weight: 500; --w-w: 500;
  white-space: nowrap;
}
.w-pal-chip > span { padding-bottom: .05em; }
.w-pal-right { display: flex; flex-shrink: 0; align-items: center; gap: 8px; color: var(--cds-text-muted); font-size: 12px; line-height: 16px; }
.w-pal-fine { display: flex; }
@media (pointer: coarse) { .w-pal-fine { display: none; } }
.w-pal-coarse { display: none; }
@media (pointer: coarse) { .w-pal-coarse { display: inline; } }
/* совпадение с запросом - полужирным primary (font-semibold, 580) */
.w-pal-match { font-weight: 580; --w-w: 580; color: var(--w-text-primary); }
/* кнопка Actions у подсвеченной беседы: absolute right-9 (36), 24x24 r6 */
.w-pal-actwrap { position: absolute; top: 0; bottom: 0; right: 36px; display: flex; align-items: center; pointer-events: none; }
.w-pal-act { width: 24px; height: 24px; border-radius: 6px; color: var(--w-text-primary); pointer-events: auto; }
@media (pointer: coarse) { .w-pal-actwrap { display: none; } }

/* подвал: виден только при пустом запросе (grid 1fr/0fr + opacity за .15с) */
.w-pal-footwrap { display: grid; flex-shrink: 0; grid-template-rows: 0fr; margin-top: auto; opacity: 0; transition: grid-template-rows .15s ease-out, opacity .15s ease-out; }
.w-pal-footwrap[data-open] { grid-template-rows: 1fr; opacity: 1; }
[data-reduce-motion='true'] .w-pal-footwrap { transition: none; }
.w-pal[data-fresh] .w-pal-footwrap { transition: none; }
.w-pal { outline: none; }
/* корни окон берут фокус (tabIndex -1, страж фокуса) - у образца на них
   outline-none: после любой клавиши браузер рисовал своё кольцо вокруг
   всего окна настроек (сверка 29.09, тема 11) */
:is(.w-dialog, .w-keys, .w-confirm, .w-modal, .w-up, .w-pv-layer, .w-paymodal):focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .w-pal-footwrap { transition: none; } }
.w-pal-footclip { min-height: 0; overflow: hidden; }
.w-pal-foot { flex-shrink: 0; padding: 10px 16px 10px 20px; border-top: .5px solid var(--cds-border); background: var(--w-surface-3); }
@media (pointer: coarse) { .w-pal-foot { display: none; } }
.w-pal-foot-in { display: flex; min-height: 20px; align-items: center; justify-content: space-between; color: var(--cds-text-muted); font-size: 12px; line-height: 16px; }
.w-pal-foot-left { display: flex; align-items: center; gap: 20px; }
.w-pal-hint { display: flex; align-items: center; gap: 8px; }
.w-pal-hint-md { display: none; }
@media (min-width: 768px) { .w-pal-hint-md { display: flex; } }

/* меню «Actions» строки: w 280, r 12, surface-3, shadow-panel; появление
   palette-card-in: opacity 0 -> 1 за duration-base (сдвиг --cp-card-slide
   в загруженном коде образца не задан - сдвига нет) */
@keyframes w-pal-card-in { from { opacity: 0; } }
.w-pal-menu {
  position: fixed;
  z-index: 95;
  display: flex;
  flex-direction: column;
  width: 280px;
  max-height: calc(100vh - 10px);
  border-radius: 12px;
  background: var(--w-surface-3);
  box-shadow: var(--w-shadow-panel);
  color: var(--w-text-primary);
  font-size: 14px;
  line-height: 20px;
  outline: none;
  animation: w-pal-card-in var(--w-dur-base) var(--w-ease-out);
}
[data-reduce-motion='true'] .w-pal-menu { animation: none; }
@media (prefers-reduced-motion: reduce) { .w-pal-menu { animation: none; } }
.w-pal-menu-in { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow: hidden; border-radius: inherit; }
.w-pal-menu-headwrap { flex-shrink: 0; padding: 4px 4px 0; }
.w-pal-menu-head { display: flex; flex-direction: column; gap: 2px; padding: 4px 10px; }
.w-pal-menu-title { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: break-word; color: var(--w-text-primary); }
.w-pal-menu-sub { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--cds-text-muted); font-size: 12px; line-height: 17px; }
.w-pal-menu-body { flex: 1; min-height: 0; padding: 0 4px 4px; overflow-y: auto; }
.w-pal-menu-sep { height: 1px; margin: 4px 10px; background: var(--cds-border); }
.w-pal-menu-item { display: flex; width: 100%; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; cursor: var(--cds-cursor-interactive); user-select: none; outline: none; }
.w-pal-menu-item[data-highlighted] { background: var(--w-ghost-hover); }
.w-pal-menu-text { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-pal-menu-keys { display: flex; flex-shrink: 0; align-items: center; gap: 8px; margin-left: 16px; }
.w-pal-menu-item .w-kbd { color: var(--w-kbd-ink-muted); border-color: var(--w-kbd-line-muted); }
.w-pal-menu-danger { color: var(--w-text-danger); }
.w-pal-menu-danger .w-kbd { color: var(--w-text-danger); border-color: var(--w-kbd-line-danger); }

/* ── Окно «Keyboard shortcuts» - см. WallKeys и S/shortcuts.md ────────── */
.w-keys-backdrop { z-index: 90; }
.w-keys {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 91;
  display: flex;
  flex-direction: column;
  width: calc(100vw - 2rem);
  max-width: 520px;
  max-height: calc(100dvh - 2rem);
  translate: -50% -50%;
  border-radius: 12px;
  background: var(--w-surface-3);
  box-shadow: var(--w-shadow-panel-lg);
  color: var(--w-text-primary);
  font-size: 14px;
  line-height: 20px;
  outline: none;
  opacity: 1;
  scale: 1;
  transition: opacity var(--w-dur-base) var(--w-ease-out), scale var(--w-dur-base) var(--w-ease-out);
}
.w-keys[data-state='closed'] { opacity: 0; scale: .98; }
[data-reduce-motion='true'] .w-keys { transition: none; }
@media (prefers-reduced-motion: reduce) { .w-keys { transition: none; } }
.w-keys-scroll { isolation: isolate; display: flex; flex: 1; flex-direction: column; min-height: 0; overflow-y: auto; padding: 24px; border-radius: inherit; }
.w-keys-head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  height: 48px;
  margin: -24px -24px 12px;
  padding: 0 8px;
  border-bottom: .5px solid var(--w-border-strong);
  border-radius: 12px 12px 0 0;
  background: var(--w-alpha-1, var(--w-ghost-hover));
}
.w-keys-title { min-width: 0; margin: 0; padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--w-text-primary); font-size: 15px; line-height: 20px; font-weight: 580; --w-w: 580; }
.w-keys-sp { flex: 1; }
.w-keys-close { color: var(--w-text-primary); }
.w-keys-region { flex: 1; min-height: 0; margin: 0 -24px -24px; padding: 0 24px 24px; overflow-y: auto; border-radius: 0 0 12px 12px; outline: none; }
.w-keys-region:focus-visible { box-shadow: inset 0 0 0 2px var(--cds-fill-accent); }
.w-keys-group { margin-top: 20px; padding: 8px 0; color: var(--w-text-primary); }
.w-keys-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: .5px solid var(--cds-border); }
.w-keys-row:last-child { border-bottom: 0; }
.w-keys-label { display: flex; align-items: center; gap: 8px; color: var(--w-text-secondary); font-size: 14px; line-height: 20px; }
.w-keys-keys { display: flex; align-items: center; gap: 8px; }

/* ── Пустая беседа: «Send a message to get started.» ───────────────────
   text-body (14/20) text-muted по центру области сообщений; появление
   animate-empty-chat-fade: .3s cubic-bezier(.25,.1,.35,1) .2s backwards
   (opacity 0 -> 1), при reduced motion - без него. По снимку хозяина
   (окно 945) середина строки на 444 - на 28.5 выше середины окна: снизу
   у образца место поля ввода, у нас поля нет - оставлено 57 снизу. */
@keyframes w-empty-fade { from { opacity: 0; } to { opacity: 1; } }
.w-app-main { display: flex; }
.w-empty-chat { display: flex; flex: 1; align-items: center; justify-content: center; min-width: 0; padding-bottom: 57px; }
.w-empty-line { margin: 0; color: var(--cds-text-muted); font-size: 14px; line-height: 20px; text-align: center; animation: w-empty-fade .3s cubic-bezier(.25, .1, .35, 1) .2s backwards; }
[data-reduce-motion='true'] .w-empty-line { animation: none; }
@media (prefers-reduced-motion: reduce) { .w-empty-line { animation: none; } }

/* карточка строки (SbCard): см. комментарий в wall-app.jsx */
.w-sb-card {
  position: fixed;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 240px;
  min-width: 200px;
  max-width: 360px;
  padding: 12px;
  border-radius: 12px;
  background: var(--w-surface-3);
  box-shadow: var(--w-shadow-panel);
  color: var(--w-text-primary);
  font-size: 14px;
  line-height: 20px;
  white-space: normal;
}
.w-sb-card-in { position: relative; display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.w-sb-card-title { font-size: 14px; line-height: 17.5px; overflow-wrap: anywhere; }
.w-sb-card-time { font-size: 13px; line-height: 17px; color: var(--w-text-secondary); }

/* подсказка в две строки (ручка ширины): колонка с зазором 2, поля 6/8;
   вторая строка 11/14 secondary подсказки (rgb 195 194 183 в обеих темах) */
.w-tooltip.w-tooltip-stack { flex-direction: column; align-items: flex-start; gap: 2px; padding: 6px 8px; }
.w-tip-pos-left > .w-tooltip-stack[data-side='right'] { max-width: 240px; transform-origin: -4px 50%; }
.w-tip-sub { display: block; align-self: stretch; font-size: 11px; line-height: 14px; color: rgb(195, 194, 183); overflow-wrap: break-word; }

/* ── Беседа: лента и поле ввода ───────────────────────────────────────────
   Копия экрана беседы claude.ai (index-Bj_qnzFL, поле marlin, форма
   legacy). Числа сняты 25.09: S/chat/c_* (бесплатная учётка, раскладка),
   S/chat/w_* (Cowork в Max, цвета), описание - в wall-app.jsx у ChatView,
   ChatComposer, ChatTile, ChatPreview. */
.w-chat { position: relative; display: flex; flex: 1; min-width: 0; min-height: 0; flex-direction: column; }
/* Шапка беседы (ChatHeader) - копия dframe-header образца, числа см. там.
   ЗАМЕРЕНО у Max 27.09: ряд 48, поле слева 8 (при свёрнутой панели 30 -
   название на 38 от края окна), справа 8, зазор 8 */
.w-chat-head {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 11;
  display: flex;
  height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  pointer-events: none;
}
.w-chat-head > * { pointer-events: auto; }
.w-app[data-collapsed] .w-chat-head,
.w-app[data-narrow] .w-chat-head { padding-left: 30px; }
/* подложка: цвет страницы, right-3, -bottom-6, маска 2/3 сплошная;
   прячется, когда колонка ленты не заходит под кнопки (data-chrome-clear) */
.w-chat-head-back {
  position: absolute;
  top: 0;
  right: 12px;
  bottom: -24px;
  left: 0;
  z-index: -1;
  background: var(--cds-page-bg);
  -webkit-mask-image: linear-gradient(to bottom, #000 66.67%, transparent);
  mask-image: linear-gradient(to bottom, #000 66.67%, transparent);
  pointer-events: none;
}
.w-chat-head[data-chrome-clear] > .w-chat-head-back { display: none; }
/* ЩИТ шапки (у образца «absolute inset-0 z-[-1]», pointer-events auto,
   прячется вместе с подложкой при chrome-clear; ЗАМЕРЕНО 29.09 у Max
   elementFromPoint: в полосе 0..48 курсор ловит шапка, с 56 - лента). Без
   него картинку, уехавшую под шапку, можно было нажать сквозь неё (хозяин
   29.09 снимком). Справа 12 - полоса прокрутки остаётся доступной */
.w-chat-head-shield { position: absolute; top: 0; right: 12px; bottom: 0; left: 0; z-index: -1; pointer-events: auto; }
.w-chat-head[data-chrome-clear] > .w-chat-head-shield { display: none; }
.w-chat-head-title { display: flex; min-width: 0; flex-shrink: 1; align-items: center; }
.w-chat-head-mid { position: relative; display: flex; min-width: 0; flex: 1; align-self: stretch; pointer-events: none; }
/* название: ghost sm с полями 0/8 (у образца !px-2), сжимается, курсор
   текстовый, текст обрезается */
/* курсор: у образца text - там нажатие по названию начинает
   переименование. У Wall переименования нет (WALL_RENAME = false), название -
   кнопка карточки собеседников, поэтому курсор кнопки: на сайте рука, в окне
   Wall3 стрелка (хозяин 29.09: «при нажатии на ник курсор выделяемый текст») */
.w-btn.w-chat-head-name { min-width: 0; flex-shrink: 1; padding: 0 8px; cursor: var(--cds-cursor-interactive); }
.w-chat-head-name .w-btn-label { min-width: 0; }
.w-chat-head-text { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-chat-head-text[data-untitled] { color: var(--w-text-muted); }
/* стрелка заходит на название на 8 (-ml-2): у образца так, когда между
   ними нет значка */
.w-chat-head-more { margin-left: -8px; }
/* правка на месте: bg-surface-3, ring-1 inset accent, rounded-md, h-7,
   px-2; поле по ширине текста, не уже 3rem */
.w-chat-head-rename {
  display: flex;
  min-width: 0;
  height: 28px;
  align-items: center;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--cds-surface-3);
  box-shadow: inset 0 0 0 1px var(--cds-fill-accent);
}
.w-chat-head-input {
  min-width: 3rem;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--w-text-primary);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  outline: none;
  box-shadow: none;
  field-sizing: content;
}
/* переход между беседами (chat-stale-nav образца): прежняя беседа стоит,
   пока новая не готова; щит поверх гасит нажатия, курсор обычный */
.w-chat-frame { position: relative; display: flex; flex: 1; min-width: 0; min-height: 0; }
.w-chat-body { display: flex; flex: 1; min-width: 0; min-height: 0; }
.w-chat-body[data-stale] { isolation: isolate; }
.w-chat-shield { position: absolute; inset: 0; z-index: 10; cursor: default; }
.w-chat-shield[hidden] { display: none; }
.w-chat-status { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* область прокрутки: у образца overflow-y auto, scrollbar-gutter stable,
   поле сверху 8 под шапкой высотой 48 (шапка у Wall будет следующей) */
.w-chat-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable; padding-top: 56px; container-type: inline-size;
  /* виртуальная лента держит взгляд сама (якорь в ChatView) - поправка
     браузера спорила бы с ней */
  overflow-anchor: none; }
/* распорки виртуальной ленты */
.w-chat-spacer { flex-shrink: 0; width: 100%; pointer-events: none; }
/* колонка: max-w 50.5rem с полями 20 -> содержимое 768 */
.w-chat-col { display: flex; min-height: 100%; width: 100%; max-width: 808px; flex-direction: column; margin: 0 auto; padding: 0 20px; }
.w-chat-list { display: flex; flex: 1; flex-direction: column; padding: 4px 16px 0; }
/* крутилка догрузки старых у верха ленты - поверх, без места в потоке:
   её появление и уход не двигают сообщения (у образца догрузки нет
   вовсе, беседа приходит целиком; см. CHAT_OLDER в wall-app.jsx) */
.w-chat-list { position: relative; }
/* кружок в том же облике, что кнопка «вниз» (.w-chat-jump): рамка
   alpha-2, подложка surface-3 80% с размытием - читается поверх текста */
.w-chat-older { position: absolute; z-index: 1; top: 8px; left: 50%; display: none; width: 32px; height: 32px; align-items: center; justify-content: center;
  translate: -50% 0; border: 1px solid var(--cds-alpha-2); border-radius: 9999px; background: color-mix(in srgb, var(--cds-surface-3) 80%, transparent);
  backdrop-filter: blur(8px); pointer-events: none; }
.w-chat-older[data-busy] { display: flex; }
.w-chat-older .w-spinner { width: 16px; height: 16px; }
/* Окно уже 768 (max-md у образца). ЗАМЕРЕНО 26.09 во фрейме claude.ai
   767 / 768 и по классам: колонка md:px-5 - полей нет; лента px-5
   md:px-[1rem] - поля 20 вместо 16 (текст ответа на 24 от края вместо
   40); поле ввода px-2 md:px-0 - коробка на 8 от края вместо 20 */
@media (max-width: 767.98px) {
  .w-chat-col { padding: 0; }
  .w-chat-list { padding-left: 20px; padding-right: 20px; }
  .w-cmp-dock { padding-left: 8px; padding-right: 8px; }
}
/* ── Новый экран (ChatNewPage) - копия claude.ai/new, числа см. там ── */
/* поля 8 слева и справа: у образца область прокрутки нового экрана 8..1912
   при окне 1920 (без правого поля всё стояло на 4 правее, 27.09) */
.w-new { display: flex; flex: 1; min-width: 0; min-height: 0; flex-direction: column; padding: 48px 8px 0; }
.w-new-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-gutter: stable both-edges; }
/* колонка: md:px-14, сверху max(28vh + .56875rem, 12rem), при высоте от
   900 - 32vh + .56875rem; gap-6 */
.w-new-col {
  display: flex;
  width: 100%;
  max-width: 1280px;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: max(calc(28vh + .56875rem), 12rem) 56px 0;
}
@media (min-height: 900px) { .w-new-col { padding-top: calc(32vh + .56875rem); } }
.w-new-greet { width: 100%; margin-top: 12px; }
.w-new-greet-in { display: flex; width: 100%; max-width: 672px; flex-direction: column; align-items: center; gap: 28px; margin: 0 auto; }
.w-new-hello-row { display: flex; width: 100%; justify-content: center; }
/* font-ui-serif font-[360]; справа (1cap + .45em) / 2 - половина знака с
   его полем, чтобы по центру стоял текст */
.w-new-hello {
  padding-right: calc((.72em + .45em) / 2);
  color: var(--w-text-primary);
  font-family: 'Anthropic Serif', var(--cds-font-voice);
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem);
  line-height: 1.2;
  /* вес через --w-w: общее правило тёмной темы ставит 'wght' на 40 ниже
     (у образца в тёмной "wght" 320), в светлой "GRAD" 0 */
  font-weight: 360; --w-w: 360;
  text-align: center;
  text-wrap: balance;
}
@supports (height: 1cap) { .w-new-hello { padding-right: calc((1cap + .45em) / 2); } }
.w-new-hello[data-empty] { visibility: hidden; }
.w-new-hello[data-fade] { animation: w-greeting-fade-in 350ms ease-in-out; }
@keyframes w-greeting-fade-in { 0% { opacity: 0; } }
[data-reduce-motion='true'] .w-new-hello[data-fade] { animation: none; }
@media (prefers-reduced-motion: reduce) { .w-new-hello[data-fade] { animation: none; } }
.w-new-spark { display: inline-block; width: .72em; height: .72em; margin-right: .45em; }
@supports (height: 1cap) { .w-new-spark { width: 1cap; height: 1cap; } }
.w-new-spark > svg { display: block; scale: 1.4; }
.w-new-hello-text { user-select: none; }
.w-new-cmp { isolation: isolate; width: 100%; max-width: 640px; margin: 0 auto; }
/* поле на новом экране: не липнет к низу, над ним ни полосы, ни «вниз»,
   под ним пусто; стопкой всегда, место текста не ниже 53, ряд кнопок 34 */
.w-cmp-dock[data-page] { position: relative; padding-top: 0; }
.w-cmp-dock[data-page] > .w-cmp-anchor,
.w-cmp-dock[data-page] .w-cmp-foot { display: none; }
.w-cmp-dock[data-page] .w-cmp-input { min-height: 53px; }
.w-cmp-dock[data-page] .w-cmp-box[data-stack] .w-cmp-row { padding-bottom: 34px; }
/* уже 768 (max-md): сверху 0, над приветствием место полосы уведомлений
   (10vh - 1.5rem, у md она absolute), внутри приветствия pt-4, поля 12 */
.w-new-top { display: none; }
@media (max-width: 767.98px) {
  .w-new-col { padding: 0 12px; }
  .w-new-top { display: block; flex-shrink: 0; align-self: stretch; min-height: calc(10vh - 1.5rem); }
  .w-new-greet-in { padding-top: 16px; }
}
/* уже 640 (dock образца): поле липнет к низу на подложке surface-1 с
   полем 40 снизу во всю ширину, приветствие - к середине экрана */
@media (max-width: 639.98px) {
  .w-new-col { padding: 0 4px; }
  .w-new-hello { padding: 0 .96em; }
  .w-new-spark { margin-left: -.84em; }
  .w-new-greet { margin-top: 0; padding-top: max(0px, calc(50dvh - 10vh - 6.5625rem)); }
  .w-new-cmp { position: sticky; bottom: 0; z-index: 10; width: calc(100% + 8px); max-width: none; margin: auto -4px 0; padding-bottom: 40px; background: var(--cds-surface-1); }
}

/* конец ленты: сторож 1px и пустые 48 перед доком (last-message-sentinel,
   h-12 у образца) - по сторожу считаются полоса затухания и «вниз» */
.w-chat-sentinel { flex-shrink: 0; width: 100%; height: 1px; pointer-events: none; }
/* место под своим письмом, чтобы оно встало наверх (chat-extra-space образца, 08.10); высоту ставит ChatView */
.w-chat-extra { flex-shrink: 0; width: 100%; height: 0; pointer-events: none; }
.w-chat-endpad { flex-shrink: 0; height: 48px; }
/* в беседе строка стоит по центру области НАД доком поля ввода
   (m_empty_column: область 721, центр строки 360.5); прежние 57 снизу
   заменяли док, пока его не было */
.w-chat-col > .w-empty-chat { flex: 1; padding-bottom: 0; }

/* ── сообщения ── */
/* своё (c_thread_rest): блок mt 24 mb 4 во всю ширину ленты (736), внутри
   колонка вправо с шагом 8: файлы, пузырь, строка кнопок 24; под ней ещё
   4 (у образца пустой узел через gap 4) - итого 44 + 8 + 24 + 4 = 80.
   Колонка ОБЯЗАТЕЛЬНО во всю ширину: иначе 85% у пузыря считались от
   сжатой по тексту колонки, и короткая фраза переносилась (было 235x64
   вместо 276.6x44) */
.w-msg-mine { display: flex; width: 100%; flex-direction: column; align-items: flex-end; margin: 24px 0 4px; padding-bottom: 4px; }
.w-msg-mine-col { display: flex; width: 100%; flex-direction: column; align-items: flex-end; gap: 8px; }
/* появление только что отправленного (cds-um-enter, см. ChatMessage) */
@keyframes w-um-enter { 0% { opacity: 0; transform: scale(.92) translateY(6px); } 100% { opacity: 1; transform: none; } }
.w-msg-enter { transform-origin: 100% center; animation: w-um-enter .45s cubic-bezier(.34, 1.3, .64, 1); }
[data-reduce-motion='true'] .w-msg-enter { animation: none; }
@media (prefers-reduced-motion: reduce) { .w-msg-enter { animation: none; } }
/* пузырь: поля 12/16, фон alpha-1 (5% в обеих темах), радиус 12, 15/20,
   не шире 85%, абзацы через 8 */
.w-msg-bubble {
  display: flex;
  max-width: 85%;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--cds-alpha-1);
  color: var(--w-text-primary);
  font-family: var(--w-chat-font, inherit);
  font-size: 15px;
  line-height: 20px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.w-msg-bubble p { margin: 0; }
/* чужое: как ответ Клода - шрифт из настройки Chat font, 16/24, у абзаца
   поля 4 слева и 32 справа, между абзацами 12, под текстом 12 */
.w-msg-other { position: relative; display: flex; flex-direction: column; }
.w-msg-text { color: var(--w-text-primary); }
/* прежнее (съём 25.09): 16/24, у абзаца поля 4 / 32, между абзацами 12,
   pre-wrap - заменено Prose образца (блок «Markdown в сообщениях» в конце) */
.w-msg-other > .w-msg-files { margin-bottom: 8px; }
/* Строка кнопок (MessageActions data-reveal=fade образца, ЗАМЕРЕНО
   26.09 курсором в новой сборке, правила - из CSS сохранённой): у ответа
   mt -4 ml -2 (после поля 12 под текстом). Видимость через число
   --w-acts-op: в покое 0; под курсором на строке сообщения (или при фокусе
   внутри) 1 - вход .12с ease-snap с задержкой .1с, уход .06с без задержки.
   У последнего чужого (data-always) кнопки видны всегда, а время
   проявляется тем же ходом - переход идёт у самого числа (@property).
   На сенсорных экранах всё видно сразу. */
@property --w-acts-op { syntax: "<number>"; inherits: true; initial-value: 1; }
.w-msg-acts {
  --w-acts-op: 0;
  display: flex;
  height: 24px;
  align-items: center;
  margin: 12px 0 0 -2px;
  opacity: var(--w-acts-op);
  transition-property: opacity;
  transition-duration: var(--w-dur-fast);
  transition-timing-function: var(--w-ease-snap);
  transition-delay: 0s;
}
/* ряд под чужим на 8 ниже текста: ЗАМЕРЕНО w_assistant_turn (текст до
   936.75, ряд с 944.75) и c_thread_rest (196 -> 204). Было: поле 12 под
   всем сообщением и ряд с -4 - он залезал на текст на 4 (высота сообщения
   при этом совпадала, 116, поэтому сверка его не ловила; хозяин 26.09) */
.w-msg-other > .w-msg-acts { margin-top: 8px; }
.w-msg-acts-mine { margin: 0; }
@media (hover: hover) {
  .w-msg:hover .w-msg-acts, .w-msg-acts:hover { --w-acts-op: 1; transition-duration: var(--w-dur-snap); transition-delay: .1s; }
}
.w-msg:focus-within .w-msg-acts { --w-acts-op: 1; transition-duration: var(--w-dur-snap); transition-delay: 0s; }
/* пока у кнопки или времени открыта подсказка - ряд виден (у образца
   :has([data-popup-open])): курсор ушёл, подсказка держится closeDelay
   200, и время с кнопками держатся вместе с ней, гаснут вместе */
.w-msg-acts:has([data-popup-open]) { --w-acts-op: 1; transition-duration: var(--w-dur-snap); transition-delay: 0s; }
/* РЯД ПОСЛЕ ОТМЕНЫ ПРАВКИ (хозяин 28.09: «после Cancel на пару кадров
   появляются время, Edit и Copy»). Поймано покадрово (tmp/pw_edit_cancel.py):
   ряд рождается заново, а наведение браузер ещё кадр держит на сообщении
   (удалённая кнопка Cancel отдаёт :hover предку). У нового узла нет
   прошлого стиля - перехода с задержкой .1с нет, ряд встаёт сразу на 1 и
   гаснет за 4 кадра. У образца (Max, rAF) после Cancel ряд сообщения не
   виден ни в одном кадре. Начальный стиль 0: ряд, рождённый под курсором,
   идёт обычным ходом наведения (задержка .1с), а наведение успевает
   поправиться раньше */
@starting-style { .w-msg-acts:not([data-always]) { opacity: 0; } }
.w-msg-acts[data-always] { opacity: 1; transition-property: --w-acts-op; }
@media (pointer: coarse), (hover: none) { .w-msg-acts { --w-acts-op: 1; transition-property: none; } }
[data-reduce-motion='true'] .w-msg-acts { transition-property: none; }
@media (prefers-reduced-motion: reduce) { .w-msg-acts { transition-property: none; } }
/* время (RelativeTime): 11/17 muted, высота 24, поле 6 только с внутренней
   стороны (first:ps-0 last:pe-0), в ряду - opacity по тому же числу */
.w-msg-time { display: flex; height: 24px; align-items: center; padding: 0 6px; color: var(--w-text-muted); font-size: 11px; line-height: 17px; opacity: var(--w-acts-op); cursor: default; user-select: none; }
/* время у ряда, что прячется целиком: число --w-acts-op при уходе курсора
   падает в 0 разом, и время пропадало мгновенно, раньше ряда (замерено
   26.09 по кадрам: 1.00 -> 0.00 на первом кадре). У образца здесь
   transition: opacity 0s linear calc((1 - op) * (out-delay +
   out-duration)) - при уходе время держится, пока ряд гаснет (60 мс), при
   появлении задержки нет */
.w-msg-acts:not([data-always]) > .w-msg-time { transition: opacity 0s linear calc((1 - var(--w-acts-op)) * var(--w-dur-fast)); }
.w-msg-time:first-child { padding-left: 0; }
.w-msg-time:last-child { padding-right: 0; }
.w-mact {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--w-text-muted);
  cursor: var(--cds-cursor-interactive);
  outline: none;
}
.w-mact-fill { position: absolute; z-index: -1; inset: 0; border-radius: inherit; transition: background-color var(--w-dur-fast) var(--w-ease), box-shadow var(--w-dur-fast) var(--w-ease); }
@media (hover: hover) { .w-mact:hover { color: var(--w-text-primary); } .w-mact:hover .w-mact-fill { background: var(--w-ghost-hover); } }
.w-mact:focus-visible { box-shadow: var(--cds-focus-shadow); }
.w-mact:active .w-btn-squish { transition: transform var(--w-dur-fast) ease-out; transform: scale(.975); }

/* вложения в сообщении: одна сетка с переносом, шаг 8 (row через mt 8 у
   плитки и -8 у ряда), свои - вправо */
/* Ряд во всю ширину колонки (w-full образца): у своего сообщения колонка -
   flex с items-end, и ряд без width ужимался по содержимому, а «50% - 4»
   плитки считалось от ужатого ряда - картинки выходили вдвое уже (29.09). */
.w-msg-files { display: flex; width: 100%; max-width: 100%; flex-wrap: wrap; align-items: flex-end; column-gap: 8px; margin-top: -8px; --w-img-cw: min(100%, 480px); --w-img-ch: 320; }
.w-msg-files[data-mine] { justify-content: flex-end; }
.w-msg-files > .w-tile { margin-top: 8px; }
/* Плитка картинки (ПЕРЕСНЯТО 29.09 у Max, CSS его сборки): одна картинка в
   сообщении - картинка не шире min(100%, 480) и не выше 320, две и больше -
   не шире min(100%, 240, 50% - 4) и не выше 160; не увеличивается, медиа не
   меньше 120 по стороне (мелкая - по центру). Ширина плитки считается здесь
   от --iw / --ih (натуральный размер), высоту даёт ::before с пропорцией
   картинки: так плитка и по ширине, и по высоте следует картинке, и когда
   ширину зажимает колонка (у 767 1920x1080 в паре - 234.5x131.9, как у
   образца; раньше высота стояла 135 и картинка ложилась с полосами) */
.w-msg-files:has(> .w-tile-img ~ .w-tile-img) { --w-img-cw: min(100%, 240px, 50% - 4px); --w-img-ch: 160; }
.w-msg-files > .w-tile-img {
  width: max(120px, min(var(--iw) * 1px, var(--w-img-cw), var(--w-img-ch) * 1px * var(--iw) / var(--ih)));
  height: auto;
}
.w-msg-files > .w-tile-img::before {
  content: "";
  display: block;
  width: min(100%, var(--iw) * 1px, var(--w-img-ch) * 1px * var(--iw) / var(--ih));
  aspect-ratio: var(--iw) / var(--ih);
  min-height: 120px;
}
.w-msg-files > .w-tile-img > .w-tile-card { position: absolute; inset: 0; width: auto; height: auto; }
/* картинки - первой группой (order -2), за ними разрыв строки, файлы - с
   новой строки (ЗАМЕРЕНО 27.09 у Max: [data-natural-tiles]::after образца -
   content "", flex 0 0 100%, order -1, высота 0; ставится, когда в
   сообщении есть хоть одна картинка). Без разрыва у нас файлы дотекали в
   ряд к картинкам */
.w-msg-files > .w-tile-img { order: -2; }
.w-msg-files[data-natural]::after { content: ""; flex: 0 0 100%; order: -1; height: 0; }

/* ── плитка вложения ── */
.w-tile { position: relative; flex-shrink: 0; width: 120px; height: 120px; border-radius: 12px; }
.w-tile-card { position: relative; isolation: isolate; display: flex; width: 100%; height: 100%; flex-direction: column; border-radius: 10px; }
.w-tile-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 1px var(--cds-alpha-2); pointer-events: none; }
.w-tile-fill { position: absolute; z-index: -1; inset: 0; border-radius: inherit; background: var(--cds-page-bg); box-shadow: 0 1px 2px 0 #0000000d; pointer-events: none; }
.w-tile-open {
  position: absolute;
  inset: 0;
  display: flex;
  padding: 12px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: var(--cds-cursor-interactive);
  outline: none;
}
.w-tile-img .w-tile-open { cursor: zoom-in; }
/* лупа и над самой картинкой: у образца cursor-zoom-in на CardLink, img
   его наследует. У нас в окне Wall3 («статичный» курсор) правило
   [data-cursor=static] :where(button) * ставило картинке стрелку - поймал
   хозяин 27.09. Лупа - не «рука», статичный её не отменяет */
.w-tile-img .w-tile-open *, [data-cursor='static'] .w-tile-img .w-tile-open, [data-cursor='static'] .w-tile-img .w-tile-open * { cursor: zoom-in; }
/* Наведение и нажатие плитки файла и цитаты (Card с CardLink образца, слой
   cds-card; ЗАМЕРЕНО 26.09 в панели, Free, и прочитано в его CSS):
   под курсором подложка surface-1 -> surface-2; нажатие - подложка и
   кольцо сжимаются scale(--cds-card-press-sx/sy) (у плитки 120 это
   0.9667 = (120 - 2*2)/120), содержимое обрезается clip-path на 2 с тем же
   радиусом; вниз - за dur-fast (60 мс) ease-out, отпускание - пружиной
   dur-slow (.45с, та же, что у придавливания кнопки). Уменьшенное
   движение - без хода. ПЕРЕСНЯТО 27.09 (Max): картинка - ТА ЖЕ карточка
   (Card, CardMedia, CardLink): кольцо внутреннее .2, подложка светлеет
   под курсором, нажатие сжимает, обрезка clip-path - исключения
   :not(.w-tile-img) по старому съёму («у картинки другой узел») сняты. */
/* кольцо карточки у образца ВНУТРЕННЕЕ 1px цветом border-strong (0.2 в
   обеих темах; after:shadow-card-ring с --cds-ring-color border-strong,
   ring-inner hairline, ring-outer 0). У нас было наружное 1px alpha-2 (0.1) */
.w-tile .w-tile-card::after { box-shadow: inset 0 0 0 1px var(--cds-border-strong); }
.w-tile .w-tile-fill,
.w-tile .w-tile-card::after { transform-origin: 50% center; transition: transform var(--w-dur-slow) var(--w-spring); }
.w-tile .w-tile-open { clip-path: inset(0 round 10px); transition: clip-path var(--w-dur-slow) var(--w-spring); }
@media (hover: hover) { .w-tile .w-tile-card:has(.w-tile-open:hover) > .w-tile-fill { background: var(--cds-surface-2); } }
.w-tile .w-tile-card:has(.w-tile-open[data-pressed]) > .w-tile-fill,
.w-tile .w-tile-card:has(.w-tile-open[data-pressed])::after { transform: scale(var(--w-press-sx, .9667), var(--w-press-sy, .9667)); transition: transform var(--w-dur-fast) ease-out; }
/* ^ коэффициент - СВОЙ у каждой плитки (ЗАМЕРЕНО 27.09 у Max на banner
   240x120: --cds-card-press-sx .98333, sy .96667 - их ставит его
   ResizeObserver: (w - 2*2) / w, (h - 2*2) / h), чтобы край подложки и
   кольца уходил ровно на 2, как обрезка clip-path. Было одно .9667 на всё:
   у широкой картинки кольцо уезжало на 4 по бокам, а картинка на 2 -
   «картинка прожимается, а рамка нет» (хозяин). У нас - wallPressRef */
.w-tile .w-tile-open[data-pressed] { clip-path: inset(2px round 10px); transition: clip-path var(--w-dur-fast) ease-out; }
/* ЗАМЕРЕНО 03.10 (CSS образца): при reduce (media и data-reduce-motion) у
   Card / CardLink transition: none - и вжатие, и пружина. Псевдоэлемент
   внутри :is() делал прежнее правило НЕДЕЙСТВИТЕЛЬНЫМ - ход шёл и при reduce */
[data-reduce-motion='true'] .w-tile .w-tile-fill, [data-reduce-motion='true'] .w-tile .w-tile-card::after, [data-reduce-motion='true'] .w-tile .w-tile-open { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .w-tile .w-tile-fill, .w-tile .w-tile-card::after, .w-tile .w-tile-open { transition: none !important; } }
/* фокус с клавиатуры у плитки файла и цитаты - на кольце самой карточки
   (has-[[data-cds=CardLink]:focus-visible]:after:shadow-focus образца,
   радиус карточки 10), а не на обёртке 12 */
.w-tile:has(.w-tile-open:focus-visible) .w-tile-card::after { box-shadow: var(--cds-focus-shadow); }
.w-tile-pic { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 10px; object-fit: contain; }
/* в ленте маленькая картинка - в натуральную величину по центру (у образца
   16x16 в плитке 120), в поле ввода - растянута (contain) */
.w-msg-files .w-tile-pic { object-fit: scale-down; }
/* просмотр CSV (см. ChatPreview) */
.w-pv-csv { display: flex; height: 384px; align-items: center; justify-content: center; }
/* снизу пусто 25 - место строки «Claude can analyze CSVs...» (8 + 17), которой у
   нас нет: карточка стоит там же, где у образца (140,119.5 в окне 520) */
.w-pv-csv-block { display: flex; flex-direction: column; align-items: center; gap: 20px; padding-bottom: 25px; }
.w-pv-csv-card { display: flex; width: 240px; height: 200px; flex-direction: column; overflow: hidden; border-radius: 8px; background: var(--cds-page-bg);
  /* shadow-card-ring: в светлой наружу 1px border (.1), в тёмной внутрь (ЗАМЕРЕНО 27.09) */
  box-shadow: inset 0 0 0 var(--cds-ring-inner) var(--cds-border), 0 0 0 var(--cds-ring-outer) var(--cds-border); }
.w-pv-csv-head { display: flex; height: 36px; flex-shrink: 0; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--cds-alpha-2); font-size: 14px; line-height: 20px; font-weight: 500; --w-w: 500; }
.w-pv-csv-list { display: flex; min-height: 0; flex-direction: column; gap: 8px; padding: 12px; overflow-y: auto; color: var(--w-text-secondary); font-size: 14px; line-height: 20px; }
.w-pv-csv-col { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.w-pv-csv-sum { font-size: 15px; line-height: 20px; color: var(--w-text-primary); }

/* ── ожидание загрузки в поле (ChatTile, file.pending) ──
   cds Skeleton образца поверх плитки: absolute inset-0 r10, bg
   skeleton-base (#0b0b0b 5% / тёмная #fff 7.5%), блик ::after gradient
   90deg transparent - sheen - transparent, translate -100% -> 100% за 2с
   линейно; motion-reduce - блика нет. Подпись и чип под ним invisible,
   плитка не нажимается и не подсвечивается (у образца нет CardLink). */
.w-att-skel { position: absolute; z-index: 1; inset: 0; overflow: hidden; border-radius: 10px; background: var(--w-skel-base); pointer-events: none; }
.w-att-skel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--w-skel-sheen), transparent); animation: w-shimmer 2s linear infinite; }
[data-reduce-motion='true'] .w-att-skel::after { display: none; }
@media (prefers-reduced-motion: reduce) { .w-att-skel::after { display: none; } }
.w-tile[data-pending] .w-tile-body { visibility: hidden; }
.w-tile[data-pending] .w-tile-open { cursor: inherit; pointer-events: none; }

/* ── PDF-плитка (ChatPdfTile) - старая разметка образца dg, ЗАМЕРЕНО 27.09 ── */
.w-tile-pdf { border-radius: 8px; }
/* обёртка НЕ позиционирована (как у образца): чип снизу отсчитывается от
   внешней плитки (10,94), а не от рамки внутри (было 11,93) */
.w-pdf-card {
  width: 120px;
  height: 120px;
  overflow: hidden;
  border: .5px solid var(--cds-border-strong);
  border-radius: 8px;
  box-shadow: var(--cds-shadow-sm);
  cursor: var(--cds-cursor-interactive);
  outline: 2px solid transparent;
  outline-offset: 2px;
}
@media (hover: hover) { .w-pdf-card:hover { border-color: var(--cds-border-stronger); } }
/* can-focus-within образца: кольцо на ВСЕЙ плитке при фокусе внутри (и
   после мыши - там focus-within, не focus-visible) */
.w-pdf-card:focus-within { outline: 2px solid var(--w-focus-outline); transition: outline .2s; }
.w-pdf-open { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: var(--w-bg-000); cursor: inherit; }
.w-pdf-pic { display: block; width: 100%; height: 100%; object-fit: contain; opacity: 0; filter: blur(8px);
  transition: opacity .4s cubic-bezier(.4, 0, .2, 1), filter .4s cubic-bezier(.4, 0, .2, 1); }
.w-pdf-pic[data-loaded] { opacity: 1; filter: none; }
.w-pdf-tagrow { position: absolute; right: 0; bottom: 8px; left: 0; display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 10px; overflow-x: clip; }
.w-pdf-tagfade { display: flex; min-width: 0; flex-shrink: 1; gap: 4px; animation: w-file-thumb-in .3s ease-out; }
.w-pdf-tag { display: flex; min-width: 0; height: 18px; align-items: center; justify-content: center; gap: 2px; padding: 0 4px;
  border: .5px solid var(--cds-border-strong); border-radius: 4px; background: color-mix(in oklab, var(--w-bg-000) 70%, transparent);
  box-shadow: var(--cds-shadow-sm); backdrop-filter: blur(8px); font-weight: 500; --w-w: 500; }
.w-pdf-tag p { margin: 0; overflow: hidden; color: var(--w-text-secondary); font-size: 11px; line-height: 13px; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; }
/* крестик PDF-плитки: 20, кромка .5 strong, bg-000/90 с размытием, muted ->
   под курсором secondary и bg-000/50, виден при наведении на плитку и при
   фокусе внутри, переход .15с (Vg образца) */
.w-pdf-x {
  position: absolute;
  top: -8px;
  right: -8px;
  z-index: 1;
  display: flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: .5px solid var(--cds-border-strong);
  border-radius: 9999px;
  background: color-mix(in oklab, var(--w-bg-000) 90%, transparent);
  backdrop-filter: blur(8px);
  color: var(--cds-text-muted);
  opacity: 0;
  cursor: var(--cds-cursor-interactive);
  transition: background-color .15s cubic-bezier(.4, 0, .2, 1), color .15s cubic-bezier(.4, 0, .2, 1), opacity .15s cubic-bezier(.4, 0, .2, 1), outline-color .15s cubic-bezier(.4, 0, .2, 1);
}
.w-tile-pdf:focus-within .w-pdf-x { opacity: 1; }
@media (hover: hover) {
  .w-tile-pdf:hover .w-pdf-x { opacity: 1; }
  .w-pdf-x:hover { background: color-mix(in oklab, var(--w-bg-000) 50%, transparent); color: var(--w-text-secondary); }
}
@media (hover: none) { .w-pdf-x { opacity: 1; background: color-mix(in oklab, var(--w-bg-000) 50%, transparent); } }

/* ── окно PDF (ChatPdfSheet) - ce7f34d1a образца, ЗАМЕРЕНО 27.09 ── */
.w-modal-400 { width: 400px; }
.w-pv-pdf { display: block; width: fit-content; margin-inline: auto; color: inherit; text-align: center; text-decoration: none; cursor: var(--cds-cursor-interactive); }
.w-pv-pdf-page { position: relative; width: fit-content; margin: 32px 8px 8px; border-radius: 8px; }
.w-pv-pdf-img { position: relative; display: block; border: 1px solid var(--cds-border); border-radius: 8px; background: #fff; box-shadow: var(--cds-shadow-sm);
  transition: border-color .15s cubic-bezier(.4, 0, .2, 1), rotate .15s cubic-bezier(.4, 0, .2, 1), box-shadow .15s cubic-bezier(.4, 0, .2, 1); }
.w-pv-pdf-grad { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 8px; transition: rotate .15s cubic-bezier(.4, 0, .2, 1); }
.w-pv-pdf-sheet { position: absolute; width: 100%; border: 1px solid var(--cds-border); border-radius: 8px; background: #fff;
  transition: transform .15s cubic-bezier(.4, 0, .2, 1), translate .15s cubic-bezier(.4, 0, .2, 1), rotate .15s cubic-bezier(.4, 0, .2, 1), border-color .15s cubic-bezier(.4, 0, .2, 1); }
.w-pv-pdf-sheet-1 { top: 2%; height: 96%; margin-left: 8px; opacity: .5; box-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1); }
.w-pv-pdf-sheet-2 { top: 1%; height: 98%; margin-left: 4px; opacity: .7; box-shadow: var(--cds-shadow-sm); }
.w-pv-pdf-lab { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 4px;
  color: var(--w-text-secondary); font-size: 14px; line-height: 20px; text-align: center; text-wrap: pretty; }
.w-pv-pdf-lab > * { transition: color .15s cubic-bezier(.4, 0, .2, 1), opacity .15s cubic-bezier(.4, 0, .2, 1), scale .15s cubic-bezier(.4, 0, .2, 1); }
.w-pv-pdf-count { margin: 0; }
.w-pv-pdf-dl { display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: var(--cds-text-accent); }
.w-pv-pdf-dl p { margin: 0; }
.w-pv-pdf-dl svg { flex-shrink: 0; transition: all .15s cubic-bezier(.4, 0, .2, 1); }
.w-pv-pdf-dl-hover { position: absolute; inset: 0; opacity: 0; }
.w-pv-pdf-dl-hover svg { scale: .5; }
@media (hover: hover) {
  .w-pv-pdf:hover .w-pv-pdf-img { border-color: var(--cds-border-accent); rotate: -1deg; }
  /* from-accent-200/5 to-60%: oklab(.622 -.042 -.156) = rgb(57,135,229) */
  .w-pv-pdf:hover .w-pv-pdf-grad { background-image: linear-gradient(to top, rgb(57 135 229 / .05) 0%, transparent 60%); rotate: -1deg; }
  .w-pv-pdf:hover .w-pv-pdf-sheet { border-color: var(--cds-border-accent); }
  .w-pv-pdf:hover .w-pv-pdf-sheet-1 { translate: 2px; rotate: 3deg; }
  .w-pv-pdf:hover .w-pv-pdf-sheet-2 { translate: 1px; rotate: 2deg; }
  .w-pv-pdf:hover .w-pv-pdf-count { opacity: 0; scale: .75; }
  .w-pv-pdf:hover .w-pv-pdf-dl-hover { opacity: 1; }
  .w-pv-pdf:hover .w-pv-pdf-dl-hover svg { scale: 1; }
}
/* в ленте картинка проявляется по загрузке (ChatTile): opacity 0 -> 1 за .2с
   (duration-base, ход по умолчанию), при уменьшенном движении сразу; имя и
   плашка файла в ленте входят file-thumbnail-fade-in (.3с ease-out от
   opacity 0) - у образца при каждом показе беседы, ЗАМЕРЕНО 27.09 */
.w-tile .w-tile-pic { opacity: 0; transition: opacity .2s var(--w-ease); }
.w-tile .w-tile-pic[data-loaded] { opacity: 1; }
/* в поле, пока файл грузится на сервер: картинка на .5 (opacity-50 образца)
   и поверх скелет. Раньше картинка в поле стояла сразу и без ожидания */
.w-tile[data-pending] .w-tile-pic[data-loaded] { opacity: .5; }
.w-tile:not([data-draft]) .w-tile-body > * { animation: w-file-thumb-in .3s ease-out; }
@keyframes w-file-thumb-in { 0% { opacity: 0; } }
[data-reduce-motion='true'] .w-tile .w-tile-pic { transition: none; }
[data-reduce-motion='true'] .w-tile:not([data-draft]) .w-tile-body > * { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .w-tile .w-tile-pic { transition: none; }
  .w-tile:not([data-draft]) .w-tile-body > * { animation: none; }
}
.w-tile-body { display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; justify-content: space-between; gap: 8px; }
.w-tile-name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--w-text-primary);
  font-size: 13px;
  line-height: 17px;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.w-tile-head { display: flex; min-width: 0; flex-direction: column; }
/* карточка вставки (chatPastedFile): своя рамка и тень поверх обычной плитки */
.w-tile:has(.w-tile-paste) .w-tile-card::after { box-shadow: none; }
/* bg-000 образца (color-version v2): gray-0 #fff, в тёмной gray-800
   hsl(60 1.5873% 12.3529%) - прочитано из его стилей 27.09 */
:root { --w-bg-000: #fff; }
[data-mode='dark'] { --w-bg-000: hsl(60 1.5873% 12.3529%); }
.w-tile:has(.w-tile-paste) .w-tile-fill { border-radius: 8px; border: .5px solid var(--cds-border-strong); background: var(--w-bg-000);
  box-shadow: 0 1px 2px 0 rgba(11, 11, 11, .06), 0 2px 8px 0 rgba(11, 11, 11, .08); }
.w-tile:has(.w-tile-paste) .w-tile-open { padding: 8px 10px; }
.w-tile-paste { display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; justify-content: space-between; gap: 10px; text-align: left; }
.w-tile-paste-text { display: -webkit-box; overflow: hidden; color: color-mix(in srgb, var(--cds-text-muted) 80%, transparent); font-size: 8px; line-height: 12px;
  white-space: pre-wrap; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 6; }
.w-tile-paste-badge { align-self: flex-start; display: inline-flex; height: 18px; align-items: center; padding: 0 4px; border-radius: 4px;
  background: color-mix(in srgb, var(--w-bg-000) 70%, transparent); color: var(--w-text-secondary); font-size: 11px; line-height: 13px; font-weight: 500; --w-w: 500; }
.w-tile-name[data-one] { -webkit-line-clamp: 1; }
.w-tile-lines { overflow: hidden; color: var(--w-text-secondary); font-size: 11px; line-height: 17px; white-space: nowrap; text-overflow: ellipsis; }
.w-tile-chip {
  display: inline-flex;
  max-width: 100%;
  height: 18px;
  min-width: 0;
  align-items: center;
  align-self: flex-start;
  padding: 0 6px;
  border-radius: 4.5px;
  background: var(--cds-alpha-1);
  color: var(--w-text-secondary);
  font-size: 11px;
  line-height: 14px;
  font-weight: 500; --w-w: 500;
  white-space: nowrap;
}
.w-tile-chip-t { min-width: 0; padding-bottom: .05em; overflow-x: clip; text-overflow: ellipsis; white-space: nowrap; }
/* крестик: кружок 20 на углу -8/-8, surface-3, цвет secondary, кольцо
   карточки; виден под курсором на плитке и при фокусе */
.w-tile-x {
  position: absolute;
  z-index: 1;
  top: -8px;
  right: -8px;
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--cds-surface-3);
  /* shadow-card-ring образца: в светлой кольцо наружу, в тёмной внутрь
     (ring-inner / ring-outer меняются местами), цвет border (0.1) -
     ЗАМЕРЕНО 26.09 в обеих темах; у нас было наружное в обеих */
  box-shadow: inset 0 0 0 var(--cds-ring-inner) var(--cds-border), 0 0 0 var(--cds-ring-outer) var(--cds-border);
  color: var(--w-text-secondary);
  /* курсор у образца обычная стрелка (cds-reset, ЗАМЕРЕНО наведением) */
  cursor: default;
  opacity: 0;
  outline: none;
  transition: opacity var(--w-dur-fast) var(--w-ease), color var(--w-dur-fast) var(--w-ease);
}
.w-tile-x::before { content: ""; position: absolute; inset: -4px; }
/* в ряду поля ввода зона нажатия крестика не выходит за поле ряда справа
   (10): иначе ряд листался на 2 дальше образца (у него scrollWidth =
   8 + n * 120 + (n - 1) * 12 + 10, ЗАМЕРЕНО 29.09, аудит) */
/* и со всех сторон -2, как у образца (ЗАМЕРЕНО 29.09, тема 18 досъёма: у
   Max inset -2 - зона 24x24; у нас было -4 сверху / слева / снизу, 26x28) */
.w-cmp-tiles .w-tile-x::before { inset: -2px; }
@media (hover: hover) { .w-tile:hover .w-tile-x { opacity: 1; } .w-tile-x:hover { color: var(--w-text-primary); } }
.w-tile:has(:focus-visible) .w-tile-x { opacity: 1; }
.w-tile-x:focus-visible { box-shadow: 0 0 0 1px var(--cds-alpha-2), var(--cds-focus-shadow); }

/* ── поле ввода ── */
/* док липнет к низу, сверху 24 прозрачного поля; от верха коробки вниз -
   фон страницы, лента под ним не просвечивает */
.w-cmp-dock { position: sticky; z-index: 5; bottom: 0; padding-top: 24px; pointer-events: none; }
.w-cmp-dock > * { pointer-events: auto; }
/* узел h-0 на верхней кромке коробки: полоса затухания и «вниз» */
.w-cmp-dock > .w-cmp-anchor { position: relative; height: 0; pointer-events: none; }
/* page-fade-b: 48 над коробкой во всю ширину области прокрутки (100cqw -
   ширина области без полосы прокрутки, у образца 8..1902 при прокрутке
   8..1912 с gutter 10), от цвета страницы внизу в прозрачность вверху;
   мимо мыши. Видна не всегда (data-shown из ChatView), переход opacity и
   visibility .15с ease-out (у cds ease-out = .165,.84,.44,1) */
.w-cmp-fade {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 100cqw;
  height: 48px;
  background-image: linear-gradient(to top, var(--cds-page-bg), transparent);
  opacity: 0;
  pointer-events: none;
  translate: -50% 0;
  visibility: hidden;
  transition: opacity .15s var(--w-ease-out), visibility .15s var(--w-ease-out);
}
.w-cmp-fade[data-shown] { opacity: 1; visibility: visible; }
/* ТУМАНА НАД ПОЛЕМ БОЛЬШЕ НЕТ (хозяин 25.10, снято у Max в новой сборке: над
   коробкой нет ни градиента, ни маски у ленты - текст идёт вплотную к полю).
   Код слоя цел, вернуть - убрать это правило */
.w-cmp-fade, .w-cmp-fade[data-shown] { display: none; }
/* подложки по бокам от колонки (transcript-bottom-backing-*): от кромки
   коробки вниз на высоту дока, цвет страницы, ловят мышь - лента по бокам
   под доком не видна и не нажимается. Живут внутри полосы и прячутся
   вместе с ней */
.w-cmp-backing { position: absolute; top: 100%; height: var(--w-dock-rest-h, 88px); background: var(--cds-page-bg); pointer-events: auto; }
/* --w-dock-w - ширина дока (колонки), ставит ChatComposer */
.w-cmp-backing-s { left: 0; width: calc((100cqw - var(--w-dock-w, 768px)) / 2); }
.w-cmp-backing-e { right: 0; width: calc((100cqw - var(--w-dock-w, 768px)) / 2); }
.w-cmp-under { background: var(--cds-page-bg); }
.w-cmp-wrap { position: relative; display: flex; flex-direction: column; }
/* плашка «печатает» над коробкой - вид плашки образца над полем (числа -
   в комментарии над ChatTypingBanner) */
.w-cmp-banner { padding-bottom: 8px; }
.w-cmp-banner-card { display: flex; min-width: 0; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--w-surface-1);
  box-shadow: var(--w-card-ring); color: var(--w-text-primary); font-size: 14px; line-height: 20px; }
.w-cmp-banner-text { min-width: 0; margin-left: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-cmp-file { position: absolute; z-index: -10; width: 0; height: 0; padding: 0; border: 0; opacity: 0; }
.w-cmp-box {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 14px;
  background: var(--cds-surface-3);
  /* shadow-composer: кольцо двумя слоями, толщины из токенов темы - в
     светлой inner 0 / outer 1 (кольцо снаружи), в тёмной inner 1 / outer 0
     (внутри). ЗАМЕРЕНО в тёмной 26.09: "inset 0 0 0 1px white/.1" и
     внешний 0. Было одно внешнее кольцо в обеих темах */
  box-shadow: 0 4px 20px color-mix(in srgb, #000 3.5%, transparent),
              inset 0 0 0 var(--cds-ring-inner) var(--cds-ring-color),
              0 0 0 var(--cds-ring-outer) var(--cds-ring-color);
  color: var(--w-text-primary);
  cursor: text;
  /* transition-[background-color,border-color,box-shadow,opacity]
     duration-200, ход по умолчанию (.4,0,.2,1). Раньше перехода не было -
     кольцо и тень фокуса вспыхивали разом */
  transition: background-color .2s var(--w-ease), border-color .2s var(--w-ease),
              box-shadow .2s var(--w-ease), opacity .2s var(--w-ease);
}
@media (hover: hover) {
  /* :where - как у образца: иначе :not(:has(...)) утяжеляет селектор, и
     под курсором в фокусе побеждала тень наведения (3.5%) вместо фокуса
     (7.5%) - поймано замером 26.09 */
  .w-cmp-box:hover:not(:where(:has(button:hover, a:hover, [role=button]:hover, label:hover))) {
    box-shadow: 0 4px 20px color-mix(in srgb, #000 3.5%, transparent),
                inset 0 0 0 var(--cds-ring-inner) var(--cds-border-strong),
                0 0 0 var(--cds-ring-outer) var(--cds-border-strong);
  }
}
.w-cmp-box:focus-within, .w-cmp-box:focus-within:hover {
  box-shadow: 0 4px 20px color-mix(in srgb, #000 7.5%, transparent),
              inset 0 0 0 var(--cds-ring-inner) var(--cds-border-strong),
              0 0 0 var(--cds-ring-outer) var(--cds-border-strong);
}
/* обёртка плиток (w_composer_att_text): снимает верхнее поле коробки
   (-8) и кладёт свои 12/12/10/12 - плитки на 12/12 от угла коробки, блок
   142 (12 + 120 + 10), текст ниже через 8 на 150, кнопки на 190, коробка
   230 с пятью плитками и строкой текста. Было 8/8 и 216 */
.w-cmp-att { margin: -8px -8px 0; padding: 12px 12px 10px; }
/* Ход вложений в поле (ЗАМЕРЕНО 26.09 в панели, Free, правила из
   document.styleSheets образца): первое вложение - ряд входит сверху
   (opacity 0, translateY(-8)) за .2с, плитка - из opacity 0 и scale(.92)
   translateY(4) от левого края за .18с, обе ease-out-cubic (.215, .61, .355,
   1); восстановленные из черновика не входят. Уход одной из нескольких -
   view transition: плитка к scale .5 и opacity 0 за .13с (.55, .055, .675,
   .19), остальные съезжают за .18с, прочая страница не анимируется.
   Уменьшенное движение - без хода. */
.w-cmp-att:has(.w-tile) { transition: opacity .2s cubic-bezier(.215, .61, .355, 1), transform .2s cubic-bezier(.215, .61, .355, 1); }
.w-cmp-att .w-tile {
  --w-att-vt: none;
  transform-origin: 0 center;
  view-transition-class: w-att;
  transition: transform .18s cubic-bezier(.215, .61, .355, 1), opacity .18s cubic-bezier(.215, .61, .355, 1);
}
@starting-style {
  .w-cmp-att:has(.w-tile:not([data-restored])) { opacity: 0; transform: translateY(-8px); }
  .w-cmp-att .w-tile:not([data-restored]) { opacity: 0; transform: scale(.92) translateY(4px); }
}
:root:active-view-transition-type(w-att) .w-cmp-att .w-tile { view-transition-name: var(--w-att-vt); }
:root:active-view-transition-type(w-att) { view-transition-name: none; }
:root:active-view-transition-type(w-att)::view-transition-group(root) { animation-duration: 0s; }
:root:active-view-transition-type(w-att)::view-transition-group(*.w-att) { animation-duration: .18s; animation-timing-function: cubic-bezier(.215, .61, .355, 1); }
@keyframes w-att-out { 100% { opacity: 0; transform: scale(.5); } }
:root:active-view-transition-type(w-att)::view-transition-old(*.w-att):only-child { animation: w-att-out .13s cubic-bezier(.55, .055, .675, .19) forwards; }
[data-reduce-motion='true'] :is(.w-cmp-att, .w-cmp-att .w-tile) { transition: none; }
@media (prefers-reduced-motion: reduce) { :is(.w-cmp-att, .w-cmp-att .w-tile) { transition: none; } }
/* ряд плиток: gap 12, прокрутка вбок, поля 10/10/8/8 с такими же
   отрицательными краями - крестики на углах не режутся */
.w-cmp-tiles { display: flex; gap: 12px; margin: -10px -10px -8px -8px; padding: 10px 10px 8px 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
/* Строка поля: «+» и кнопки стоят absolute внизу, текст сдвинут полями.
   В строку - слева 40 под «+», справа 107 под кнопки; стопкой (вложения
   или потолок) - текст на всю ширину с полем 8 слева, снизу 40 под ряд
   кнопок. Смена полей идёт за .2с (.4, 0, .2, 1) - ЗАМЕРЕНО 26.09 у
   образца (motion-safe:transition-[padding-left,padding-right,
   padding-bottom], ряд 0 <-> 40 / 40 <-> 0, текст 8 <-> 0, 0 <-> 107). Раньше
   стопка была сеткой и перескакивала без хода. */
.w-cmp-row { position: relative; padding-left: 40px; padding-bottom: 0; transition: padding-left .2s cubic-bezier(.4, 0, .2, 1), padding-bottom .2s cubic-bezier(.4, 0, .2, 1); }
.w-cmp-edit { position: relative; min-width: 0; }
.w-cmp-input {
  display: block;
  width: 100%;
  min-height: 32px;
  max-height: 384px;
  margin: 0;
  padding: 5.5px 71px 5.5px 0;
  border: 0;
  background: transparent;
  color: var(--w-text-primary);
  font: inherit;
  font-size: 15px;
  line-height: 21px;
  overflow-y: auto;
  /* у потолка 384 полоса узкая: ЗАМЕРЕНО у образца 26.09 набором текста
     до потолка - scrollbar-width thin (редактор 616 -> 606), цвет
     rgba(30,30,29,.35) на прозрачном; у нас было auto (полоса шире) */
  scrollbar-width: thin;
  resize: none;
  outline: none;
  field-sizing: content;
}
.w-cmp-input::placeholder { color: var(--w-text-muted); opacity: 1; }
/* справа под кнопки: у образца --cmp-trail-w = кнопки + 24. Без голоса
   (cowork) было 47 + 24 = 71; с отдельной диктовкой и парой голоса 83 + 24
   = 107; при записи 210 (ЗАМЕРЕНО: --cmp-trail-w: 210px) */
.w-cmp-box:not([data-stack]) .w-cmp-input { padding-right: 107px; }
.w-cmp-box:not([data-stack]):has(.w-cmp-right[data-dict]) .w-cmp-input { padding-right: 210px; }
.w-cmp-input[data-dict]::placeholder { font-style: italic; }
.w-cmp-left { position: absolute; bottom: 0; left: 0; display: flex; min-height: 32px; align-items: center; gap: 8px; padding-right: 8px; }
.w-cmp-right { position: absolute; right: 0; bottom: 0; display: flex; min-height: 32px; align-items: center; gap: 8px; padding-left: 8px; }
.w-cmp-plus-wrap { display: inline-flex; }
/* с вложениями или упёршись в потолок: текст на всю ширину сверху (поле
   слева 8), «+» и кнопки строкой ниже через 8 */
.w-cmp-box[data-stack] .w-cmp-row { padding-left: 0; padding-bottom: 40px; }
.w-cmp-box[data-stack] .w-cmp-input { padding-left: 8px; padding-right: 0; }
.w-cmp-box[data-stack] .w-cmp-left { padding-right: 0; }
.w-cmp-box[data-stack] .w-cmp-right { padding-left: 0; }
.w-cmp-input { transition: padding-left .2s cubic-bezier(.4, 0, .2, 1), padding-right .2s cubic-bezier(.4, 0, .2, 1); }
[data-reduce-motion='true'] :is(.w-cmp-row, .w-cmp-input) { transition: none; }
@media (prefers-reduced-motion: reduce) { :is(.w-cmp-row, .w-cmp-input) { transition: none; } }
/* правый край: два слота в одной клетке сетки (send-slot и idle-slot у
   образца), ширина по большему - 47 всегда; смена opacity и visibility
   за 60мс (.4,0,.2,1). Кнопка отправки входит fade-in-to-current .12с
   ease-out */
.w-cmp-slots { display: grid; flex-shrink: 0; align-items: center; justify-items: end; }
.w-cmp-slot {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  cursor: default;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity var(--w-dur-fast) var(--w-ease), visibility var(--w-dur-fast) var(--w-ease);
}
.w-cmp-slot[data-on] { opacity: 1; pointer-events: auto; visibility: visible; }
@keyframes w-fade-in-to-current { from { opacity: 0; } }
.w-cmp-send-in { position: relative; display: flex; align-items: center; justify-content: flex-end; animation: w-fade-in-to-current .12s ease-out; }
.w-cmp-btn { flex-shrink: 0; }
/* у призрачных кнопок поля нажатие ничем не видно: у образца слой
   cds-btn-squish у них пустой, а заливка (paint) - соседний слой и не
   сжимается. У нашей Btn заливка внутри squish - снимаем сжатие */
.w-cmp-btn:active .w-btn-squish { transform: none; }
/* пара «диктовка + выбор микрофона» (SplitDropdownButton): 32 + 1 + 20 со
   сдвигом -6 (47), радиус 8. Кольцо пары inset 1px --w-split-ring: в
   покое прозрачное, под курсором на любой половине и при открытом меню -
   border (alpha-2), переход box-shadow 60мс ease-out */
.w-cmp-mic {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--w-split-ring, transparent);
  transition: box-shadow var(--w-dur-fast) var(--w-ease-out);
}
@media (hover: hover) { .w-cmp-mic:hover { --w-split-ring: var(--cds-border); } }
.w-cmp-mic[data-open] { --w-split-ring: var(--cds-border); }
.w-cmp-mic .w-cmp-mic-btn { border-radius: 8px; }
/* диктовка отдельно, через 4 - пара голоса (inline-flex gap-1) */
.w-cmp-idle { display: inline-flex; align-items: center; gap: 4px; }
/* значок голоса: палочки вздрагивают при заходе курсора (Hf образца) */
.w-voice-icon { display: block; overflow: visible; }
.w-voice-bar { transform-box: fill-box; transform-origin: 50% center; }
.w-voice-ripple { animation: w-voice-ripple .55s ease both; }
@keyframes w-voice-ripple {
  0% { animation-timing-function: linear(0 0%, .0309 7.14286%, .1069 14.2857%, .2082 21.4286%, .3202 28.5714%, .433 35.7143%, .54 42.8571%, .6373 50%, .7229 57.1429%, .796 64.2857%, .8569 71.4286%, .9066 78.5714%, .9461 85.7143%, .9768 92.8571%, 1 100%); transform: scaleY(1); }
  27.273% { transform: scaleY(calc(1 + (var(--w-ripple) - 1) * .966)); animation-timing-function: linear(0 0%, .0275 2.5641%, .0958 5.12821%, .1878 7.69231%, .2906 10.2564%, .3953 12.8205%, .496 15.3846%, .5887 17.9487%, .6714 20.5128%, .7432 23.0769%, .8041 25.641%, .8545 28.2051%, .8955 30.7692%, .9281 33.3333%, .9534 35.8974%, .9726 38.4615%, .9867 41.0256%, .9968 43.5897%, 1.0037 46.1538%, 1.008 48.7179%, 1.0105 51.2821%, 1.0116 53.8462%, 1.0117 56.4103%, 1.0112 58.9744%, 1.0103 61.5385%, 1.0091 64.1026%, 1.0079 66.6667%, 1.0067 69.2308%, 1.0055 71.7949%, 1.0045 74.359%, 1.0036 76.9231%, 1.0028 79.4872%, 1.0021 82.0513%, 1.0015 84.6154%, 1.0011 87.1795%, 1.0007 89.7436%, 1.0005 92.3077%, 1.0003 94.8718%, 1.0001 97.4359%, 1 100%); }
  100% { transform: scaleY(1); }
}
[data-reduce-motion='true'] .w-voice-ripple { animation: none; }
@media (prefers-reduced-motion: reduce) { .w-voice-ripple { animation: none; } }
/* Запись (ЗАМЕРЕНО 26.09, n_dict_2): ряд flex с полем 6 слева и зазором
   12 - полоска (flex-1, не уже 112, высота 20, цвет secondary) и место 32
   под Cancel; через 8 - Done на месте отправки. Прежнее содержимое слотов
   уходит (absolute, opacity 0, scale .6), Done и Cancel входят из того
   же - пружина .32с bounce .15 (рассчитана: zeta .85, до 0.001 к .32с,
   перелёт 0.6%) */
.w-cmp-right { --w-spring-32: linear(0 0%, .0766 5%, .2384 10%, .4182 15%, .5819 20%, .7158 25%, .8174 30%, .8901 35%, .9392 40%, .9706 45%, .9893 50%, .9996 55%, 1.0045 60%, 1.0062 65%, 1.0061 70%, 1.0053 75%, 1.0041 80%, 1.0031 85%, 1.0021 90%, 1.0014 95%, 1 100%); }
.w-dict-row { display: flex; min-width: 0; flex: 1; align-items: center; gap: 12px; padding-left: 6px; }
/* svg абсолютом внутри (у образца absolute inset-0): иначе своя ширина
   svg по умолчанию (300) раздувала ряд до 398 вместо 210 */
.w-dict-meter { position: relative; height: 20px; min-width: min(7rem, 20vw); flex: 1; color: var(--w-text-secondary); }
.w-dict-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; }
.w-dict-spacer { width: 32px; height: 32px; flex-shrink: 0; }
.w-cmp-right[data-dict] .w-cmp-slot {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  opacity: 0;
  pointer-events: none;
  scale: .6;
  visibility: hidden;
  transition: opacity .32s var(--w-spring-32), scale .32s var(--w-spring-32), visibility 0s .32s;
}
.w-cmp-slots { position: relative; }
/* появление и уход - ПЕРЕХОДОМ, не анимацией: общее правило
   data-reduce-motion глушит animation, а у образца пружину ведёт скрипт, и
   при Motion: Reduced она идёт та же (ЗАМЕРЕНО 28.09) */
.w-cmp-dslot { grid-area: 1 / 1; display: flex; align-items: center; transition: opacity .32s var(--w-spring-32), scale .32s var(--w-spring-32); }
@starting-style { .w-cmp-dslot { opacity: 0; scale: .6; } }
.w-cmp-dslot-aside { position: absolute; inset-block: 0; inset-inline-end: 40px; }
/* конец записи (ЗАМЕРЕНО у Max 28.09, см. диктУход в ChatComposer): Done
   и Cancel уходят к .6 и 0 той же пружиной, прежняя кнопка встаёт из .6 */
.w-cmp-dslot[data-leaving] { pointer-events: none; opacity: 0; scale: .6; }
.w-cmp-right[data-dict-out] .w-cmp-slot { transition: opacity .32s var(--w-spring-32), scale .32s var(--w-spring-32), visibility 0s; }
/* настройка Motion: Reduced (data-reduce-motion) пружину НЕ глушит: у Max
   с этим атрибутом появление и уход Done / Cancel те же кадр в кадр
   (ЗАМЕРЕНО 28.09, пружину ведёт скрипт motion, а не CSS). Раньше у нас
   атрибут выключал появление - по догадке. Системная настройка - без
   движения (у образца не снята: её нельзя включить в браузере хозяина) */
@media (prefers-reduced-motion: reduce) {
  :is(.w-cmp-dslot, .w-cmp-right[data-dict] .w-cmp-slot, .w-cmp-right[data-dict-out] .w-cmp-slot) { animation: none; transition: none; }
  .w-cmp-dslot[data-leaving] { display: none; }
}
/* меню микрофона: не шире 320 (max-w-[320px]); шапка - значок 16 muted и
   полоска уровня h 6 во всю ширину через 8 (py 4) */
.w-popover-menu:has(.w-mic-head) { max-width: 320px; }
.w-mic-head { display: flex; width: 100%; align-items: center; gap: 8px; padding: 4px 0; color: var(--w-text-muted); }
.w-mic-level { position: relative; height: 6px; flex: 1; overflow: hidden; border-radius: 9999px; background: var(--cds-alpha-1); }
.w-mic-level-fill { display: block; height: 100%; border-radius: 9999px; background: var(--cds-fill-accent); transition: width 75ms ease-out; }
/* заливка половины под курсором на 3 внутрь (--cds-split-inset = min(
   (32 - 20) / 4, 3) = 3), фон по content-box */
/* правило наведения Btn пишет background целиком и сбрасывает clip -
   поэтому и под курсором, и при открытом меню clip повторён здесь */
.w-cmp-mic .w-btn .w-btn-fill, .w-cmp-mic .w-btn:hover .w-btn-fill,
.w-cmp-mic .w-btn[aria-expanded='true'] .w-btn-fill { padding: 3px; background-clip: content-box; }
.w-cmp-mic-gap { width: 1px; flex-shrink: 0; }
/* стрелка: сама мимо мыши, ловит её ::after от 5 слева до 9 за правым
   краем (after:start-[tuck-1] after:-end-[3+tuck], tuck 6) */
.w-cmp-micdev { width: 20px; height: 32px; margin-left: -6px; padding: 0; color: var(--w-text-muted); pointer-events: none; }
.w-cmp-micdev::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-start: 5px; inset-inline-end: -9px; pointer-events: auto; }
.w-cmp-micdev .w-btn-label { gap: 0; }
/* ── Голосовое сообщение (ChatVoicePill / ChatVoiceNote в wall-app.jsx) ──
   Пружина Pb образца (stiffness 600, damping 30, mass 1) линейной кривой:
   рассчитана по уравнению пружины, 0.577с до покоя, перелёт 1.086 (на
   снимке c_listening пара поймана на 1.068 - сходится). */
.w-cmp-right { --w-spring-pb: linear(0 0%, .0914 3.33%, .297 6.67%, .5249 10%, .7356 13.33%, .894 16.67%, 1.0027 20%, 1.0614 23.33%, 1.0848 26.67%, 1.0835 30%, 1.0687 33.33%, 1.0493 36.67%, 1.0299 40%, 1.0144 43.33%, 1.0031 46.67%, .9964 50%, .9932 53.33%, .9926 56.67%, .9934 60%, .995 63.33%, .9967 66.67%, .9982 70%, .9994 73.33%, 1.0001 76.67%, 1.0005 80%, 1.0006 83.33%, 1.0006 86.67%, 1.0005 90%, 1.0003 93.33%, 1.0002 96.67%, 1 100%); }
/* справа пара 47 + 4 + таблетка до 95 и 24 запаса */
.w-cmp-box:not([data-stack]):has(.w-cmp-right[data-voice]) .w-cmp-input { padding-right: 170px; }
.w-cmp-input[data-voice] { cursor: default; }
.w-cmp-input[data-voice]::placeholder { font-style: normal; }
/* длина записи - ТЕМ ЖЕ видом, что Connecting... / Listening... (у образца
   это одна подсказка text-muted обычным начертанием, ЗАМЕРЕНО r_02 / r_03;
   курсив secondary у него только у распознанной речи). Было курсивом
   secondary - хозяин 27.09: «после connecting шрифт как бы меняется» */
.w-cmp-input[data-voice-t]::placeholder { color: var(--w-text-muted); font-style: normal; }
.w-cmp-vslot { grid-area: 1 / 1; display: flex; align-items: center; justify-content: flex-end; }
.w-vsess { display: flex; flex-shrink: 0; align-items: center; gap: 4px; }
.w-vpair { display: flex; animation: w-vpair-in .577s var(--w-spring-pb) both; }
@keyframes w-vpair-in { from { opacity: 0; scale: 0; } }
/* выключенный микрофон: пара fill-danger (#d03b3b в обеих темах), значки
   и стрелка белые (oncolor-100), наведённая половина fill-danger-hover
   (#e34948) с тем же отступом 3 по content-box */
.w-vpair[data-muted] .w-cmp-mic { background: var(--cds-fill-danger); }
.w-vpair[data-muted] .w-cmp-mic .w-btn, .w-vpair[data-muted] .w-cmp-mic .w-btn .w-icon { color: #fff; }
@media (hover: hover) {
  .w-vpair[data-muted] .w-cmp-mic .w-btn:hover .w-btn-fill { padding: 3px; background: var(--cds-fill-danger-hover); background-clip: content-box; }
}
.w-vpill {
  position: relative;
  display: flex;
  height: 32px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: var(--cds-bg-accent);
  color: var(--cds-text-accent);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500; --w-w: 500;
  cursor: var(--cds-cursor-interactive);
  transition: background-color .2s cubic-bezier(.4, 0, .2, 1), color .2s cubic-bezier(.4, 0, .2, 1), padding .577s var(--w-spring-pb), scale .15s ease-out;
}
/* подключение: bg-accent-900/50 (светлая), dark:bg-accent */
.w-vpill[data-state='connecting'] { background: color-mix(in srgb, var(--cds-bg-accent) 50%, transparent); }
[data-mode='dark'] .w-vpill[data-state='connecting'] { background: var(--cds-bg-accent); }
.w-vpill[data-state='error'] { padding-left: 8px; background: var(--cds-fill-danger-hover); color: #fff; }
.w-vpill:active { scale: .97; }
/* фокус с клавиатуры - общее правило кнопок образца (обводка 2px
   hsl(--accent-100) = #256abf с отступом 2 за .2с), своей тени у таблетки
   нет: ЗАМЕРЕНО 26.09 Tab-ом в Chrome хозяина. Раньше тут стояла тень
   --cds-focus-shadow и outline: none - было не как у образца */
.w-vpill-ic { position: relative; display: flex; width: 20px; height: 20px; flex-shrink: 0; align-items: center; justify-content: center; }
.w-vpill-icin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.w-vpill[data-state='error'] .w-vpill-icin { animation: w-vic-in .2s cubic-bezier(.42, 0, .58, 1) both; }
@keyframes w-vic-in { from { opacity: 0; scale: .5; filter: blur(4px); } }
.w-vbars { display: block; overflow: visible; }
.w-vpill-meas { position: absolute; visibility: hidden; white-space: nowrap; padding-left: 8px; pointer-events: none; }
.w-vpill-lab { position: relative; display: block; height: 20px; overflow: hidden; transition: width .577s var(--w-spring-pb); }
.w-vpill-txt { display: block; white-space: nowrap; padding-left: 8px; }
/* Смена подписи (Cancel -> Stop и обратно) - ПО ОЧЕРЕДИ, а не
   наложением. По коду образца обе шли .2с разом на одном месте, и хозяин
   27.09 увидел, как текст «на секунду накладывается друг на друга» (кадры
   стенда: на 40 мс размытое «Canc» поверх «Stop»). НАМЕРЕННО не как у
   образца: уходящая гаснет за .1с, новая входит после неё за .16с */
.w-vpill-in { animation: w-vlab-in .16s cubic-bezier(0, 0, .58, 1) .1s both; }
.w-vpill-out { position: absolute; top: 0; left: 0; animation: w-vlab-out .1s cubic-bezier(.42, 0, 1, 1) both; }
@keyframes w-vlab-in { from { opacity: 0; filter: blur(6px); } }
@keyframes w-vlab-out { to { opacity: 0; filter: blur(6px); } }
[data-reduce-motion='true'] :is(.w-vpair, .w-vpill-in, .w-vpill-out, .w-vpill-icin) { animation: none !important; }
[data-reduce-motion='true'] :is(.w-vpill, .w-vpill-lab) { transition: none; }
@media (prefers-reduced-motion: reduce) {
  :is(.w-vpair, .w-vpill-in, .w-vpill-out, .w-vpill-icin) { animation: none !important; }
  :is(.w-vpill, .w-vpill-lab) { transition: none; }
}
/* меню «Audio settings»: подписи групп - значок 16 и слово / полоска через
   12 (GroupLabel образца gap-sm; «Speakers» 25 высотой, «Microphone» 24) */
.w-menu-label-head { display: flex; align-items: center; }
.w-aud-head { display: flex; width: 100%; min-width: 0; align-items: center; gap: 12px; }
.w-aud-head.w-mic-head { padding: 0; }
.w-aud-head[data-muted] > .w-icon { color: var(--cds-text-danger); }
.w-mic-level[data-muted] { background: var(--cds-bg-danger); }
.w-mic-level[data-muted] .w-mic-level-fill { background: var(--cds-fill-danger); }
/* Проигрыватель голосового в ленте (устройство - Telegram, токены -
   образца): свой - в пузыре (alpha-1, радиус 12) с полями 12/16/12/12,
   чужой - в таком же блоке слева */
.w-msg-voice { flex-direction: row; padding: 12px 16px 12px 12px; }
.w-msg-voice-other { display: inline-flex; max-width: 100%; align-self: flex-start; padding: 12px 16px 12px 12px; border-radius: 12px; background: var(--cds-alpha-1); }
.w-voice { display: flex; min-width: 0; align-items: center; gap: 10px; }
.w-voice-play {
  display: flex;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  margin: 0;
  border: 0;
  border-radius: 9999px;
  padding: 0;
  background: var(--cds-bg-accent);
  color: var(--cds-text-accent);
  cursor: var(--cds-cursor-interactive);
  transition: scale .15s ease-out;
}
/* как у таблетки голоса: нажатие .97, фокус - общая обводка кнопок */
.w-voice-play:active { scale: .97; }
.w-voice-wave { display: block; min-width: 0; max-width: 100%; flex-shrink: 1; height: 20px; color: var(--cds-text-accent); cursor: var(--cds-cursor-interactive); touch-action: none; }
.w-voice-wave rect { fill: currentColor; opacity: .35; }
.w-voice-wave rect[data-on] { opacity: 1; }
.w-voice-time { min-width: 28px; flex-shrink: 0; font-size: 12px; line-height: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--w-text-secondary); }
[data-reduce-motion='true'] .w-voice-play { transition: none; }
@media (prefers-reduced-motion: reduce) { .w-voice-play { transition: none; } }
/* Под коробкой. ПО УМОЛЧАНИЮ У ОБРАЗЦА (ЗАМЕРЕНО, ChatComposerChin):
   40 от низа коробки до низа окна - поле 8, строка 24 (оговорка «Claude
   is AI and can make mistakes.» и выбор модели), поле 8. При окне
   1920x953 коробка стоит на 865..913, низ окна 953; так и в старой
   сборке (r_rest, index-Bj_qnzFL), и в новой (index-CoDdp0Gu, 26.09).
   У Wall строки нет, и пустые 24 хозяин 26.09 велел убрать («опусти
   пониже, внизу всё равно ничего нет») - остались поля образца 8 + 8 =
   16, коробка на 24 ниже, чем у образца. НАМЕРЕННОЕ расхождение, по
   замеру назад не возвращать. Вместе с коробкой на 24 ниже встают
   полоса затухания, «вниз» и строка пустой беседы (центр области над
   доком: на 12 ниже, чем в m_empty_column).
   27.09 хозяин велел вернуть подсказки кнопок поля ВНИЗ, как у образца
   («+», диктовка, голос): им нужно от низа кнопки 34 (отступ 5, подсказка
   24, до края окна 5 - collisionPadding подсказок образца), кнопка стоит на
   8 выше низа коробки - под коробкой не меньше 26. Стало 28 (с запасом 2 на
   округление); без места подсказка переворачивается наверх (useTip). */
/* ряд под коробкой как у образца (ЗАМЕРЕНО 12.10): 40 под коробкой = 8 + кнопка 24 + 8, правый край кнопок на 9 от края коробки */
.w-cmp-foot { height: 40px; display: flex; align-items: flex-start; justify-content: flex-end; padding: 8px 9px 0 0; box-sizing: border-box; }
/* выбор модели выключен (WALL_MODEL_PICK, 17.10) - ряд снова 28, как до 12.10 */
.w-cmp-foot:empty { height: 16px; padding: 0; } /* 25.10 (хозяин: «поле ввода чуть ниже»): подсказки кнопок теперь НАД ними, место под коробкой под них не нужно - 16 вместо 28 */
/* выбор модели (ChatModelPick): кнопка 24, 13px, поля 0/8, радиус 6 */
.w-model-btn { height: 24px; padding: 0 8px; border-radius: 6px; font-size: 13px; line-height: 17px; gap: 4px; }
.w-model-name { color: var(--w-text-primary, inherit); }
.w-model-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-model-eff { margin-left: 4px; color: var(--w-text-muted, var(--w-muted)); }
.w-model-chip { margin-left: 8px; padding: 0 4px; border-radius: 4px; font-size: 10px; line-height: 13px; font-weight: 500; vertical-align: 1px; display: inline-flex; align-items: center; gap: 4px; background: rgba(11, 11, 11, .05); color: var(--w-text-secondary, var(--w-muted)); }
:root[data-mode='dark'] .w-model-chip { background: rgba(255, 255, 255, .08); }
.w-menu-label-plain:has(.w-model-head) { font-size: 13px; line-height: 17px; font-weight: 400; --w-w: 400; white-space: normal; overflow: visible; padding: 4px 10px; color: var(--w-text-muted, var(--w-muted)); }

/* кнопка «вниз»: кружок 36, поля 4, рамка 1 alpha-2, surface-3 80% с
   размытием, тень md (под курсором lg), по центру на 20 выше коробки;
   видна только вдали от низа */
.w-chat-jump {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 20px;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: 1px solid var(--cds-alpha-2);
  border-radius: 9999px;
  background: color-mix(in srgb, var(--cds-surface-3) 80%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--cds-shadow-md);
  color: var(--w-text-primary);
  cursor: var(--cds-cursor-interactive);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  translate: -50% 0;
  /* transition-opacity duration-200; тень под курсором меняется без
     перехода (у образца hover:shadow-lg вне transition) */
  transition: opacity .2s var(--w-ease);
}
.w-chat-jump::before { content: ""; position: absolute; inset: 0; transition: background-color .2s var(--w-ease); }
.w-chat-jump[data-shown] { opacity: 1; pointer-events: auto; }
@media (hover: hover) { .w-chat-jump:hover { box-shadow: var(--cds-shadow-lg); } .w-chat-jump:hover::before { background: var(--w-ghost-hover); } }
.w-chat-jump .w-icon { position: relative; mix-blend-mode: luminosity; }

/* ── просмотр вложения сбоку (ChatSplit / ChatViewer в wall-app.jsx) ── */
/* левое поле 8 (--df-content-gutter-start образца): ЗАМЕРЕНО 26.09 при
   окне 988 - коробка поля ввода у образца на 28 от края области прокрутки
   беседы (232 -> 260), у нас было 20: поля 8 у нас не было вовсе. С ним же
   сходятся доли просмотра (ряд образца 8..980) */
.w-chat-split { position: relative; display: flex; flex: 1; min-width: 0; min-height: 0; padding-left: 8px; }
.w-chat-splitcol { display: flex; min-width: 0; min-height: 0; }
.w-chat-splitcol > .w-chat { flex: 1; }
.w-chat-split[data-resizing] { cursor: col-resize; user-select: none; }
/* Узкое окно (панель свернулась сама, .w-app[data-narrow]). ЗАМЕРЕНО 29.09
   у Max в своём окне 700 и по коду (Qb в shared-23: у беседы при
   isNarrowViewport --df-content-gutter-start 0 и --df-ceded-gutter 8): поля
   8 слева от беседы нет, область прокрутки 0..W с полосой 10, внутри ленты
   8 с обеих сторон и px-5 - ряд сообщения 28 / W-66, коробка поля 8 / W-26.
   У нас было поле 8 всегда: ряд 28 / W-58 (на 8 шире), коробка 16 / W-34
   (сверка 29.09, тема 28). Название в шапке: при окне до 700 - 48 от края
   (правый край «Show sidebar» 40 + ceded 8, общее правило образца), шире
   700 - 38 (правило (width >= 701px): 38 + gap - gutter-start) */
.w-app[data-narrow] .w-chat-split { padding-left: 0; }
.w-app[data-narrow] .w-chat-head { padding-left: 38px; }
@media (max-width: 700.98px) { .w-app[data-narrow] .w-chat-head { padding-left: 48px; } }
@media (max-width: 767.98px) { .w-app[data-narrow] .w-chat-list { padding-left: 28px; padding-right: 28px; } }
.w-app[data-narrow] .w-ap-scrim { left: 0; }
.w-chat-split[data-resizing] * { cursor: col-resize !important; }
.w-chat-split[data-resizing] .w-view-pane { pointer-events: none; }
/* делитель 8, внутри поле нажатия 12 по центру и полоска 3x48 (ResizeHandle
   образца: полоска text-muted, проявляется под курсором с задержкой .2с за
   .2с; в фокусе с клавиатуры - accent во всю высоту сразу и кольцо) */
.w-view-sep { position: relative; z-index: 30; width: 8px; flex-shrink: 0; cursor: col-resize; touch-action: none; outline: none; }
.w-view-sep[hidden] { display: none; }
.w-view-sep::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 12px;
  translate: -50% 0;
  border-radius: 9999px;
  cursor: col-resize;
  transition: box-shadow var(--w-dur-fast) cubic-bezier(.4, 0, .2, 1);
}
.w-view-sep:focus-visible::before { box-shadow: var(--cds-focus-shadow); }
.w-view-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 3px;
  height: 100%;
  max-height: 48px;
  border-radius: 9999px;
  background: var(--cds-text-muted);
  opacity: 0;
  transition: opacity .2s var(--w-ease) .2s, background-color .2s var(--w-ease) .2s;
}
@media (hover: hover) { .w-view-sep:hover .w-view-grip { opacity: 1; } }
.w-chat-split[data-resizing] .w-view-grip { opacity: 1; }
.w-view-sep:focus-visible .w-view-grip { max-height: none; opacity: 1; background: var(--cds-fill-accent); transition-delay: 0s; }
/* карточка: поля 8 сверху/снизу/справа, радиус 10 (radius + 2), фон
   surface-2, кольцо panel-sm; в тёмной ещё кромка 1px alpha-2 */
.w-view-pane { position: relative; z-index: 20; min-width: 0; overflow: hidden; outline: none; }
.w-view-pane[data-open] {
  margin: 8px 8px 8px 0;
  border-radius: 10px;
  background: var(--w-surface-2);
  box-shadow: inset 0 0 0 var(--cds-ring-inner) var(--cds-border), 0 0 0 var(--cds-ring-outer) var(--cds-border), var(--cds-shadow-sm);
}
[data-mode='dark'] .w-view-pane[data-open] { border: 1px solid var(--cds-border); }
.w-view-in { display: flex; height: 100%; flex-direction: column; }
.w-view { display: flex; height: 100%; min-height: 0; flex-direction: column; padding: 12px 0 4px 20px; }
.w-view-head { display: flex; align-items: center; gap: 4px; padding-right: 20px; }
.w-view-btn { flex-shrink: 0; }
.w-view-flush-s { margin-left: -6px; }
.w-view-flush-e { margin-right: -6px; }
.w-view-title {
  min-width: 0;
  flex: 1;
  margin: 0;
  overflow: hidden;
  color: var(--w-text-primary);
  font-size: 18px;
  line-height: 28px;
  font-weight: 500; --w-w: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.w-view-main { display: flex; min-height: 0; flex: 1; flex-direction: column; margin-bottom: 4px; padding: 0 20px 12px 0; }
/* строка сведений: text-500 образца (rgb 137 135 129 в обеих темах) */
.w-view-meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px; margin: 2px 0 12px; color: rgb(137, 135, 129); font-size: 12px; line-height: 16px; }
.w-view-dot { margin: 0 4px; opacity: .5; }
.w-view-dot-lg { display: none; margin: 0 6px; opacity: .5; }
@media (min-width: 1024px) { .w-view-dot-lg { display: inline; } }
.w-view-text {
  min-height: 0;
  flex: 1;
  margin: 0 -4px -4px;
  overflow-y: auto;
  padding: 16px;
  border: .5px solid var(--cds-border);
  border-radius: 8px;
  background: var(--cds-surface-3);
  box-shadow: var(--cds-shadow-sm);
  color: var(--w-text-primary);
  font-family: var(--w-font-mono);
  font-size: 12px;
  line-height: 17px;
  white-space: pre-wrap;
  word-break: break-all;
  outline: none;
}
.w-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; user-select: none; }
.w-tooltip-stack[data-side='left'] { max-width: 240px; }
.w-tip-pos-left > .w-tooltip-stack[data-side='left'] { transform-origin: calc(100% + 4px) 50%; }

/* ── цитата: плитка и кнопка «Reply» над выделением (см. ChatTile, ChatView) ── */
.w-quote-row { display: flex; min-width: 0; min-height: 0; align-self: flex-start; gap: 8px; }
.w-quote-bar { width: 3px; flex-shrink: 0; align-self: stretch; border-radius: 9999px; background: var(--cds-border); }
.w-quote-text {
  display: -webkit-box;
  min-width: 0;
  flex: 1;
  margin: 0;
  overflow: hidden;
  color: var(--w-text-secondary);
  font-size: 11px;
  line-height: 13.75px;
  font-weight: 400; --w-w: 400;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}
.w-tile-quote .w-tile-open { cursor: var(--cds-cursor-interactive); }
/* имя того, на кого отвечают, над цитатой (НАМЕРЕННО, у образца нет):
   тот же кегль, что текст цитаты, основной цвет, 500, в одну строку */
.w-quote-who { display: block; align-self: stretch; min-width: 0; margin-bottom: 4px; overflow: hidden; color: var(--w-text-primary); font-size: 11px; line-height: 13.75px; font-weight: 500; --w-w: 500; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
.w-quote-who + .w-quote-row .w-quote-text { -webkit-line-clamp: 5; }
.w-quote-col { display: flex; min-width: 0; min-height: 0; flex: 1; flex-direction: column; align-self: stretch; }
.w-reply-pos { position: fixed; top: 0; left: 0; z-index: 50; pointer-events: auto; will-change: transform; }
/* ушло выделение дальше 100 - гаснет за 150 мс (selectionTooltipFadeOut
   образца), нажатия уже мимо */
.w-reply-pos[data-fading] { pointer-events: none; }
.w-reply-pos[data-fading] .w-reply-pop { animation: w-reply-out .15s ease-out forwards; }
@keyframes w-reply-out { from { opacity: 1; } to { opacity: 0; } }
.w-reply-pop {
  display: flex;
  align-items: center;
  border: 1px solid rgb(255 255 255 / .1);
  border-radius: 8px;
  background: rgb(0 0 0 / .8);
  box-shadow: var(--cds-shadow-lg);
  backdrop-filter: blur(8px);
  color: #fff;
  user-select: none;
}
.w-reply-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500; --w-w: 500;
  white-space: nowrap;
  cursor: var(--cds-cursor-interactive);
  transition: color .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1);
}
@media (hover: hover) { .w-reply-btn:hover { background: rgb(255 255 255 / .1); } }
.w-reply-btn svg { flex-shrink: 0; }
/* смена цвета под курсором у образца без motion-reduce: - при
   уменьшенном движении остаётся (глушится только угасание, общим правилом) */

/* ── просмотр вложения ── */
/* перелёт миниатюры в просмотр (wallPvOpen / wallPvClose): правила образца
   из его стилей 27.09 (max_styles.css) как есть, --cds-black -> #000 */
::view-transition-group(chat-image-preview) { animation-duration: .35s; animation-timing-function: cubic-bezier(.32, .72, 0, 1); }
::view-transition-image-pair(chat-image-preview) { isolation: auto; overflow: clip; animation: vt-image-preview-decoration-in .35s cubic-bezier(.32, .72, 0, 1) both; }
::view-transition-old(chat-image-preview),
::view-transition-new(chat-image-preview) { mix-blend-mode: normal; object-fit: cover; width: 100%; height: 100%; animation: none; }
html:not(.vt-image-preview-closing)::view-transition-old(chat-image-preview) { display: none; }
html.vt-image-preview-closing::view-transition-new(chat-image-preview) { display: none; }
html.vt-image-preview-closing::view-transition-group(chat-image-preview) { animation-duration: .25s; }
html.vt-image-preview-closing::view-transition-image-pair(chat-image-preview) { animation-name: vt-image-preview-decoration-out; animation-duration: .25s; }
html.vt-image-preview-no-origin::view-transition-group(chat-image-preview) { animation-name: vt-image-preview-fade-out; }
html.vt-image-preview-active :not(html) { view-transition-name: none !important; }
/* исток - значок строки Outputs (wallPvIcon): картинка заполняет растущую
   рамку целиком (cover) - квадратная миниатюра в начале, без полос */
html.vt-image-preview-icon::view-transition-old(chat-image-preview),
html.vt-image-preview-icon::view-transition-new(chat-image-preview) { height: 100%; object-fit: cover; }
html.vt-image-preview-active::view-transition-group(root) { animation-duration: .35s !important; }
html.vt-image-preview-active.vt-image-preview-closing::view-transition-group(root) { animation-duration: .25s !important; }
html.vt-image-preview-active.vt-image-preview-crossfade::view-transition-group(root) { animation-duration: .18s !important; }
@keyframes vt-image-preview-decoration-in {
  0% { inset: var(--vt-image-preview-source-inset, 0%); box-shadow: 0 4px 32px color-mix(in srgb, #000 0%, transparent), 0 0 0 .5px color-mix(in srgb, #000 0%, transparent); border-radius: var(--vt-image-preview-source-radius, .5rem); }
  100% { inset: 0%; box-shadow: 0 4px 32px color-mix(in srgb, #000 30%, transparent), 0 0 0 .5px color-mix(in srgb, #000 25%, transparent); border-radius: var(--vt-image-preview-target-radius, .375rem); }
}
@keyframes vt-image-preview-decoration-out {
  0% { inset: 0%; box-shadow: 0 4px 32px color-mix(in srgb, #000 30%, transparent), 0 0 0 .5px color-mix(in srgb, #000 25%, transparent); border-radius: var(--vt-image-preview-target-radius, .375rem); }
  100% { inset: var(--vt-image-preview-source-inset, 0%); box-shadow: 0 4px 32px color-mix(in srgb, #000 0%, transparent), 0 0 0 .5px color-mix(in srgb, #000 0%, transparent); border-radius: var(--vt-image-preview-source-radius, .5rem); }
}
@keyframes vt-image-preview-fade-out { 100% { opacity: 0; } }
/* Просмотр картинки - по коду образца (Popup: fixed inset-0 grid
   place-items-center p-4 md:p-10 bg-always-black/50 backdrop-brightness-75;
   колонка max-w-[40rem] w-full; рамка relative w-fit mx-auto; подпись
   pt-1.5 text-center text-always-white break-words с тенью 0 0 8px чёрный
   25%). ЗАМЕРЕНО 27.09: пока картинка грузится, у образца ни крутилки, ни
   заглушки - img сразу с width/height из данных вложения, перелёт ждёт её
   (у нас wallPvTarget). Раньше у нас не было backdrop-brightness (страница
   под затемнением светлее, чем у образца), подпись шла от левого края
   картинки, а не по центру, и поля 40 были и на узком экране */
.w-pv-layer { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 16px; background: rgb(0 0 0 / .5); backdrop-filter: brightness(.75); }
@media (min-width: 768px) { .w-pv-layer { padding: 40px; } }
.w-pv-img-col { width: 100%; max-width: 640px; }
.w-pv-img-frame { position: relative; width: fit-content; margin: 0 auto; }
.w-pv-close {
  position: absolute;
  top: 0;
  left: calc(100% + 6px);
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f0efec;
  cursor: var(--cds-cursor-interactive);
}
@media (hover: hover) { .w-pv-close:hover { background: rgb(255 255 255 / .1); } }
.w-pv-close:focus-visible { outline: none; box-shadow: var(--cds-focus-shadow); }
.w-pv-img-box { overflow: hidden; border-radius: 6px; box-shadow: 0 4px 32px 0 rgb(0 0 0 / .3), 0 0 0 .5px rgb(0 0 0 / .25); }
.w-pv-img-box img { display: block; max-width: 100%; max-height: calc(100vh - 64px); }
/* картинка в просмотре не выделяется синим (двойной / тройной щелчок,
   протяжка) - у образца так же (ЗАМЕРЕНО 01.10) */
.w-pv-img-box, .w-pv-img-box img { user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
.w-pv-img-name { padding-top: 6px; color: #fff; font-size: 16px; line-height: 24px; text-align: center; overflow-wrap: break-word; text-shadow: 0 0 8px color-mix(in srgb, #000 25%, transparent); }
.w-modal-520 { width: 520px; }
/* окно цитаты: prose mt-pad-md, blockquote ms-0 whitespace-pre-wrap (ЗАМЕРЕНО) */
.w-pv-quote { margin: 12px 0 0; padding-left: 14px; border-left: 4px solid var(--cds-alpha-2); color: var(--w-text-secondary); font-size: 14px; line-height: 21px; white-space: pre-wrap; overflow-wrap: anywhere; }
.w-modal-sub { margin: 0; color: var(--w-text-secondary); }
.w-pv-meta { display: flex; align-items: flex-start; margin: 2px 0 12px; color: var(--w-text-muted); font-size: 12px; line-height: 16px; }
.w-pv-dot { margin: 0 4px; opacity: .5; }
.w-pv-dot-sp { margin: 0 6px; }
/* поле текста у образца (ЗАМЕРЕНО 27.09, Max, окно файла в беседе):
   обёртка flex h-[min(24rem,60vh)] flex-col - высота постоянная, а не по
   тексту (4 строки - всё равно 384, окно 520x502); внутри min-h-0 flex-1
   rounded-card bg-surface-1 p-md text-code shadow-card-ring. Раньше у нас
   было max-height 60vh (окно по тексту) и фон page-bg */
.w-pv-textbox { display: flex; height: min(384px, 60vh); flex-direction: column; }
.w-pv-textbox > .w-pv-text { min-height: 0; flex: 1; }
.w-pv-text {
  max-height: 60vh;
  padding: 12px;
  border-radius: 12px;
  background: var(--cds-surface-1);
  box-shadow: 0 0 0 1px var(--cds-alpha-2);
  font-family: var(--w-font-mono);
  font-size: 13px;
  line-height: 19px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.w-pv-none { display: flex; height: 384px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 14px; line-height: 20px; }
/* AVIF / TIFF / HEIC - «Preview isn’t available» + Download (см. ChatPreview) */
.w-pv-unavail { display: flex; height: 384px; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.w-pv-unavail-text { max-width: 100%; margin: 0; color: var(--w-text-secondary); font-size: 14px; line-height: 20px; text-align: center; overflow-wrap: anywhere; }
.w-pv-unavail-ic { display: inline-flex; margin-inline-start: -4px; }
/* ожидание текста (ChatTextWait): крутилка 20 по центру места под текст;
   строка под заголовком пустая высотой 20 (ЗАМЕРЕНО у образца) */
.w-pv-meta-wait { display: block; height: 20px; margin: 0; }
.w-pv-wait { display: flex; height: min(384px, 60vh); flex-shrink: 0; align-items: center; justify-content: center; }
.w-view-main > .w-pv-wait { height: auto; flex: 1; min-height: 0; }
/* подпись под обрезанным текстом: px-xl py-2, text-caption (12/16) muted, по центру */
/* text-caption образца - 12/17 (ЗАМЕРЕНО 28.09: строка 33 высотой), было 16 */
.w-pv-trunc { flex-shrink: 0; margin: 0; padding: 8px 24px; color: var(--w-text-muted); font-size: 12px; line-height: 17px; text-align: center; }

/* ── файл над окном: «Drop files here» (ChatDropScrim) ── */
@keyframes w-cds-fade-in { from { opacity: 0; } }
@keyframes w-drop-ring-in { from { opacity: 0; transform: scale(1.005); } }
@keyframes w-drop-icon-rise { from { opacity: 0; transform: translateY(12px); } }
.w-drop { position: fixed; z-index: 9000; inset: 0; pointer-events: none; }
.w-drop-blur { position: absolute; inset: 0; backdrop-filter: blur(12px); animation: w-cds-fade-in .15s cubic-bezier(.215, .61, .355, 1); }
.w-drop-page { position: absolute; inset: 0; background: var(--cds-page-bg); opacity: .6; animation: w-cds-fade-in .15s cubic-bezier(.215, .61, .355, 1); }
.w-drop-ring {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--cds-gap-sm);
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px var(--cds-fill-accent);
  animation: w-drop-ring-in .15s cubic-bezier(.215, .61, .355, 1);
}
.w-drop-glow { position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 24px 0 color-mix(in srgb, var(--cds-fill-accent) 20%, transparent); animation: w-cds-fade-in .2s cubic-bezier(.215, .61, .355, 1) .08s backwards; }
.w-drop-icons { display: flex; align-items: flex-end; gap: var(--cds-gap-md); color: var(--cds-fill-accent); }
.w-drop-icons > span { display: inline-flex; }
.w-drop-rot-l { rotate: -14deg; }
.w-drop-rot-r { rotate: 14deg; }
.w-drop-up { translate: 0 -12px; }
.w-drop-ic { display: inline-flex; animation: w-drop-icon-rise .22s cubic-bezier(.215, .61, .355, 1) var(--w-rise-delay, 0ms) backwards; }
.w-drop-text { position: relative; color: var(--cds-text-accent); font-size: 14px; line-height: 20px; font-weight: 500; --w-w: 500; }

[data-reduce-motion='true'] :is(.w-msg-acts, .w-msg-time, .w-chat-jump, .w-tile-x, .w-mact-fill, .w-cmp-fade) { transition: none; }
@media (prefers-reduced-motion: reduce) { :is(.w-msg-acts, .w-msg-time, .w-chat-jump, .w-tile-x, .w-mact-fill, .w-cmp-fade) { transition: none; } }
/* motion-safe: у образца анимации слоя перетаскивания и входа кнопки
   отправки только без reduced motion */
[data-reduce-motion='true'] :is(.w-drop-blur, .w-drop-page, .w-drop-ring, .w-drop-glow, .w-drop-ic) { animation: none; }
@media (prefers-reduced-motion: reduce) { :is(.w-drop-blur, .w-drop-page, .w-drop-ring, .w-drop-glow, .w-drop-ic) { animation: none; } }

/* ── Окно Recents (WallRecents в wall-app.jsx) ─────────────────────────────
   Числа - из классов разметки claude.ai/chats (26.09, Max, см. комментарий
   у WallRecents): колонка max-w-5xl px-md md:px-8, шапка pb-6, строка
   заголовка min-h-12, h1 24/32 font-voice 500, управление gap-2 (после
   ghost-значка у не-ghost кнопки ещё ms-1), таблица -12 по бокам, ячейка
   px-md py-sm h-7 box-content, содержимое min-h-9 gap-3. Страница под
   полосой шапки 48, как область беседы (dframe-pane-scroller с полем 8
   слева). */
.w-rec {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  margin-top: 48px;
  /* строка в фокусе не уходит под липкую шапку (120 + затухание 32 + 16):
     у образца --cds-page-header-scroll-offset = шапка + 48 (аудит 29.09:
     строки 7 и 8 целиком прятались под шапкой, кольца не видно) */
  scroll-padding-top: 168px;
  /* ЗАМЕРЕНО у Max 26.09 (окно 892, панель свёрнута): область прокрутки
     px 8 / 8 (у нас было только слева), полоса thin с местом всегда
     (scrollbar-gutter stable): 892 -> clientWidth 882 -> колонка 866.
     С обычной полосой и без правого поля колонка выходила 869 и всё
     справа (кнопки шапки, время, «...») стояло на 3 правее */
  padding-left: 8px;
  padding-right: 8px;
  overflow-x: clip;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
.w-rec-sticky { position: sticky; top: 0; z-index: 20; background: var(--cds-page-bg); }
.w-rec-top { height: 0; flex-shrink: 0; }
/* page-fade-t absolute inset-x-0 -bottom-8 h-8 transition-opacity
   duration-fast; видна, когда список ушёл под шапку */
.w-rec-fade {
  position: absolute;
  right: 0;
  bottom: -32px;
  left: 0;
  height: 32px;
  background-image: linear-gradient(to bottom, var(--cds-page-bg), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--w-dur-fast) var(--w-ease);
}
.w-rec-fade[data-shown] { opacity: 1; }
.w-rec-col { box-sizing: border-box; width: 100%; max-width: 1024px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 767.98px) { .w-rec-col { padding: 0 12px; } }
.w-rec-headcol { padding-bottom: 24px; }
.w-rec-head { container-type: inline-size; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.w-rec-titlecol { display: flex; min-width: 0; flex-basis: 100%; flex-direction: column; }
.w-rec-titlerow { display: flex; min-width: 0; min-height: 48px; align-items: center; }
.w-rec-title {
  min-width: 0;
  margin: 0;
  font-family: 'Anthropic Serif', var(--cds-font-voice);
  font-size: 24px;
  line-height: 32px;
  font-weight: 500; --w-w: 500;
  color: var(--w-text-primary);
}
.w-rec-controls {
  display: flex;
  max-width: 100%;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-self: flex-end;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}
/* [&>[data-cds-ghost]+:not([data-cds-ghost])]:ms-1 - после значка поиска
   (и раскрытого поиска, у него тоже data-cds-ghost) обычная кнопка на 4
   дальше */
.w-rec-controls > .w-rec-sbtn + .w-btn:not(.w-btn-ghost),
.w-rec-controls > .w-rec-search + .w-btn:not(.w-btn-ghost) { margin-left: 4px; }
/* и обратно: обычная кнопка, за ней прозрачная (Select all / Delete ->
   крестик «Exit selection») - тоже +4: ЗАМЕРЕНО у Max 26.09, крестик на
   12 от Delete и от Select all, у нас было 8 */
.w-rec-controls > .w-btn:not(.w-btn-ghost) + .w-btn-ghost { margin-left: 4px; }
.w-rec-count { margin-right: 8px; white-space: nowrap; font-size: 14px; line-height: 20px; color: var(--w-text-muted); }
/* строка вкладок: при вкладках у образца grow-[9999] basis-0
   overflow-x-clip -mx-2 px-2, управление справа в той же строке */
.w-rec-tabsrow {
  position: relative;
  display: flex;
  min-width: 0;
  flex: 9999 1 0;
  align-items: center;
  column-gap: 16px;
  margin: 0 -8px;
  padding: 0 8px;
  overflow-x: clip;
}
/* у полосы настроек поля -1/1 (снято там), у полосы Recents их нет:
   ЗАМЕРЕНО у Max 26.09 - tablist 0,56 223.4x32 без полей, у нас было
   -1,56 225.4 */
.w-rec-tabs { min-width: 0; margin: 0; padding: 0; overflow: visible; }
/* ^ overflow visible: у образца tablist без обрезки (overflow visible), а
   обрезает только ячейка вкладок - по x (overflow-x clip) и с полями 8, в
   которые кольцо фокуса (1 px + размытие 6) помещается. Хозяин 27.09: у нас
   кольцо вкладок было срезано сверху и снизу - полоса брала overflow auto от
   полосы настроек (.w-set-tabs) */
/* Узкая шапка (контейнер уже 640 - порог @min-[640px] у образца):
   раскрытый поиск встаёт отдельной строкой во всю ширину под вкладками,
   Select и New session на это время спрятаны. НАБЛЮДЕНО у Max 26.09 в
   узком окне Chrome (строка вкладок, под ней поле во всю ширину с
   крестиком, ниже сразу список). Хозяин 26.09 прислал снимок нашего:
   поле с Select строкой, New session съехала ниже - было криво */
@container (max-width: 639.98px) {
  .w-rec-controls:has(.w-rec-search) { flex-basis: 100%; }
  .w-rec-controls:has(.w-rec-search) > :not(.w-rec-search) { display: none; }
  .w-rec-controls > .w-rec-search { width: 100%; flex: 1 1 100%; }
}
/* свёрнутая полоса вкладок: у образца za = invisible absolute size-0
   min-h-0 min-w-0 max-w-none overflow-hidden - не видна, но вкладки внутри
   сохраняют ширину, по ней считается, когда разворачивать. (Прежний
   data-wrap с переносом поиска убран: у образца места освобождает
   сворачивание вкладок в список.) */
.w-rec-tabs-stash {
  position: absolute;
  width: 0;
  height: 0;
  min-width: 0;
  min-height: 0;
  max-width: none;
  overflow: hidden;
  visibility: hidden;
}
/* кнопка-список вместо полосы: TriggerButton secondary, подпись
   max-w-40 (160) min-w-0 truncate, стрелка вниз */
.w-rec-tabtrigger { max-width: 100%; min-width: 0; }
.w-rec-tabtrigger .w-btn-label { gap: 4px; }
.w-rec-tablabel { display: block; min-width: 0; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-rec-tabcaret { flex-shrink: 0; }
.w-rec-countwrap { display: flex; align-items: center; }
.w-rec-countwrap .w-rec-count { margin-right: 0; }

/* поиск: раскрытый - flex max-w-full min-w-40 grow gap-3 basis-96 (с
   «Sort by» рядом), поле w-0 min-w-40 flex-1, при шапке от 640 - не шире
   384 и прижато вправо */
/* ширина задана явно: в блоке управления (shrink-0, flex-wrap) основа
   384 без явной ширины не входила в его собственную ширину, и Select с New
   переносились строкой ниже (поймано Playwright 26.09) */
.w-rec-search { display: flex; min-width: 160px; max-width: 100%; flex: 1 1 160px; align-items: center; gap: 12px; }
.w-rec-sfield { width: 0; min-width: 0; flex: 1 1 0%; }
/* Раскрытый поиск у Max (ЗАМЕРЕНО 26.09 фреймом claude.ai/chats 900/700,
   поиск раскрыт): ячейка вкладок становится flex 0 1 auto (по полосе
   вкладок), управление - flex 3 0 0 и не уже своего содержимого, поиск
   flex 1 1 160px (не уже 160), поле - flex 1 1 0% и не шире 384, прижато
   вправо. Поэтому поле ЗАНИМАЕТ свободное место (шапка 666 - поле 233.2,
   шапка 802 - 369.2, 826 - 384), а вкладки не сворачиваются. Было: поле
   жёстко 384, управление не сжималось, и при окне 892 вкладки уходили в
   список «Active ▾» - у образца там полоса вкладок. Свёрнутый поиск -
   прежнее: ячейка вкладок grow-9999 basis 0, управление по себе */
@container (min-width: 640px) {
  .w-rec-head:has(.w-rec-search) > .w-rec-tabsrow { flex: 0 1 auto; }
  .w-rec-head:has(.w-rec-search) > .w-rec-controls { flex: 3 0 0px; min-width: min-content; flex-wrap: nowrap; margin-left: 0; }
  .w-rec-search { justify-content: flex-end; }
  .w-rec-sfield { max-width: 384px; }
}
.w-rec-sbox {
  display: flex;
  height: var(--w-h-control);
  align-items: center;
  gap: 8px;
  /* ЗАМЕРЕНО у Max: лупа на 12 от края поля, текст на 36; справа отступа
     нет - крестик в ячейке 32x32 у самого края (см. .w-rec-sclear) */
  padding: 0 0 0 12px;
  border-radius: var(--w-radius);
  background: var(--w-fill-field);
  box-shadow: var(--w-field-ring);
  cursor: text;
  transition: box-shadow var(--w-dur-fast) var(--w-ease);
}
@media (hover: hover) { .w-rec-sbox:hover:not(:focus-within) { box-shadow: var(--w-field-ring-hover); } }
.w-rec-sbox:focus-within { box-shadow: inset 0 0 0 1px var(--w-focus-inset), var(--w-focus-ring); }
.w-rec-sico { display: flex; flex-shrink: 0; color: var(--w-text-muted); }
.w-rec-sinput {
  min-width: 0;
  flex: 1;
  /* h-full: поле ввода во всю высоту коробки 32 (у нас было 20 - меньше
     место под нажатие) */
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  color: var(--w-text-primary);
}
.w-rec-sinput::placeholder { color: var(--w-text-muted); }
.w-rec-sinput::-webkit-search-cancel-button { display: none; }
/* крестик у Max: ячейка h-control 32 квадратом, в ней кнопка --fhn 22
   (1.375rem) со скруглением fr - (32 - 22) / 2 = 3 (ЗАМЕРЕНО 26.09: 22x22,
   r3; центр на 16 от правого края - как было у нас с кнопкой 24 и полем 4) */
.w-rec-sclear.w-btn-icon-xs { flex-shrink: 0; width: 22px; height: 22px; margin: 0 5px; border-radius: 3px; }
.w-rec-sortwrap { display: inline-flex; }
.w-rec-sort[disabled] { opacity: var(--w-disabled-opacity, .5); cursor: default; }

/* строка над выдачей поиска: у образца p text-body text-muted mb-2 -
   «Search covers the titles shown.» (поиск только по названиям) или
   «Search isn’t working right now.» + ghost sm «Try again» (сбой) */
.w-rec-snote { margin: 0 0 8px; font-size: 14px; line-height: 20px; color: var(--w-text-muted); }
/* кнопка у образца text-primary (класс самой Button), а не цвет строки */
.w-rec-snote .w-btn { color: var(--w-text-primary); }
/* список */
.w-rec-listcol { display: flex; flex-grow: 1; flex-direction: column; padding-top: 4px; }
/* пустой список (пустой Archived / Active, ничего не нашлось): у Max текст
   14/20 muted ПО ЦЕНТРУ колонки, строка на 8 ниже начала колонки списка
   (ПЕРЕСНЯТО 29.09, тема 15 досъёма: колонка с 168, текст 176, середина
   186; у нас колонка .w-rec-listcol сама с полем 4 - здесь ещё 4). Прежние
   52 (середина 234) - от пустого Shared 26.09, его у нас нет */
.w-rec-empty { margin: 0; padding-top: 4px; text-align: center; font-size: 14px; line-height: 20px; color: var(--w-text-muted); }
.w-rec-table {
  width: calc(100% + 24px);
  margin: 0 -12px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  white-space: nowrap;
  font-size: 14px;
  line-height: 20px;
  color: var(--w-text-primary);
}
/* строка: линия alpha-1 по верху шириной строка - 2 x 12 */
.w-rec-tr {
  position: relative;
  transform: translate(0, 0);
  cursor: var(--cds-cursor-interactive);
  background-image: linear-gradient(var(--cds-alpha-1), var(--cds-alpha-1));
  background-repeat: no-repeat;
  background-position: top;
  background-size: calc(100% - 24px) 1px;
}
/* у отмеченной строки и у следующей линия ЕСТЬ (ЗАМЕРЕНО у Max 26.09:
   отмечена строка 1 - линии у 1 и 2 на месте); прячется только у первой,
   у наведённой и у следующей за наведённой. Раньше мы прятали её и у
   отмеченных */
.w-rec-tr:first-child { background-image: none; }
@media (hover: hover) { .w-rec-tr:hover, .w-rec-tr:hover + .w-rec-tr { background-image: none; } }
.w-rec-td {
  box-sizing: content-box;
  height: 28px;
  padding: 8px 12px;
  border-bottom: 1px solid transparent;
  background-clip: padding-box;
  overflow: hidden;
  vertical-align: middle;
}
.w-rec-tr:last-child > .w-rec-td { border-bottom: 0; }
.w-rec-td-cb { width: 0; padding: 0; }
.w-rec[data-selection] .w-rec-td-cb { width: 28px; padding-left: 12px; }
.w-rec-td-act { position: relative; width: 0; padding: 0; overflow: visible; }
/* подложка строки: у главной ячейки (флажок - w-0), со скруглением;
   в режиме выбора слева скругляется ячейка флажка */
@media (hover: hover) {
  .w-rec-tr:hover > .w-rec-td-main { border-radius: var(--w-radius); background-color: var(--cds-fill-ghost-hover); }
  .w-rec[data-selection] .w-rec-tr:hover > .w-rec-td-cb { border-radius: var(--w-radius) 0 0 var(--w-radius); background-color: var(--cds-fill-ghost-hover); }
  .w-rec[data-selection] .w-rec-tr:hover > .w-rec-td-main { border-top-left-radius: 0; border-bottom-left-radius: 0; }
}
/* отмеченная строка БЕЗ подложки, пока не под курсором: у образца
   [tr[data-selected]:not(:hover)_&]:!bg-transparent !rounded-none
   (ЗАМЕРЕНО 26.09: td0/td1 rgba(0,0,0,0), радиус 0). Раньше у нас
   отмеченная стояла серой */
.w-rec-tr[data-menu] > .w-rec-td-main { border-radius: var(--w-radius); background-color: var(--cds-fill-ghost-hover); }
.w-rec-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--w-radius); outline: none; cursor: inherit; }
.w-rec-link:focus-visible { box-shadow: var(--cds-focus-shadow); }
.w-rec-cell { display: flex; min-height: 36px; align-items: center; gap: 12px; }
.w-rec-main { display: flex; min-width: 0; flex: 1; flex-direction: column; justify-content: center; gap: 2px; }
.w-rec-titlewrap { display: flex; min-width: 0; align-items: center; gap: 6px; }
.w-rec-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--w-text-primary); }
/* беседа без названия - «Untitled». Было цветом muted «на глаз»; в коде
   строки образца (прочитан 26.09 по React fiber) это span opacity-60
   внутри text-primary, и снятый цвет rgb(11,11,11) с opacity .6 - на
   светлой подложке темнее muted (137,135,129) */
.w-rec-name[data-untitled] > span { opacity: .6; }
/* пустая личная беседа (из поиска, ещё не писали) - серая, как Untitled */
.w-sb-clip > span[data-empty], .w-pal-name[data-empty] { opacity: .6; }
/* строка выдачи поиска (ЗАМЕРЕНО у Max 26.09, 1320x896): под названием
   отрывок сообщения - truncate text-footnote text-muted (13/17), зазор
   gap-0.5 = 2, строка 56 вместо 53; совпадения в названии и в отрывке -
   font-semibold text-primary (580). Отрывок начинается с «…» и сразу со
   слова, в котором совпадение; конец режет text-overflow */
.w-rec-snip {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--cds-font-size-footnote);
  line-height: var(--cds-leading-footnote);
  color: var(--w-text-muted);
}
.w-rec-hl { font-weight: 580; --w-w: 580; color: var(--w-text-primary); }
/* время и точка: гаснут, пока строка под курсором, в фокусе или с
   открытым меню; в режиме выбора видны всегда */
.w-rec-side {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  line-height: 17px;
  color: var(--w-text-muted);
  transition: opacity var(--w-dur-fast) var(--w-ease-out);
}
.w-rec-tr:has(:focus-visible) .w-rec-side,
.w-rec-tr[data-menu] .w-rec-side { opacity: 0; }
@media (hover: hover) { .w-rec-tr:hover .w-rec-side { opacity: 0; } }
.w-rec[data-selection] .w-rec-side { opacity: 1 !important; }
.w-rec-time { flex-shrink: 0; font-size: 14px; line-height: 20px; color: var(--w-text-muted); }
/* архивная в выдаче поиска по всем - значок 16 muted, как в панели */
.w-rec-arch { flex-shrink: 0; display: inline-flex; width: 16px; height: 16px; align-items: center; justify-content: center; color: var(--w-text-muted); }
/* заглушки Shared и первого поиска (см. RecSkelGroup) */
.w-rec-skelgrp { display: flex; flex-direction: column; }
.w-rec-skrow {
  box-sizing: content-box;
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--w-alpha-1);
}
.w-rec-skrow:last-child { border-bottom: 0; }
.w-rec-sk-l { display: block; width: 224px; height: 12px; border-radius: 8px; }
.w-rec-sk-r { display: block; width: 80px; height: 10px; flex-shrink: 0; border-radius: 8px; opacity: .6; }
/* первая загрузка (см. WallRecents, ready) */
.w-rec-loading { display: grid; place-content: center; padding: 96px 0; }
/* строка-заглушка у низа (см. REC_PAGE): полоски ~224 и ~81, высота 10,
   концы круглые, с бегущим бликом .w-skel; строка не подсвечивается */
.w-rec-tr-skel { cursor: default; }
.w-rec-skel-l, .w-rec-skel-r { display: block; height: 10px; border-radius: 9999px; }
.w-rec-skel-l { width: 224px; max-width: 100%; }
.w-rec-skel-r { width: 81px; flex-shrink: 0; }
@media (hover: hover) { .w-rec-tr-skel:hover > .w-rec-td-main { background-color: transparent; } }
.w-rec-time::first-letter { text-transform: uppercase; }
.w-rec-acts {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding-right: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--w-dur-fast) var(--w-ease-out);
}
.w-rec-tr:has(:focus-visible) .w-rec-acts,
.w-rec-acts:has([aria-expanded='true']) { opacity: 1; pointer-events: auto; }
@media (hover: hover) { .w-rec-tr:hover .w-rec-acts { opacity: 1; pointer-events: auto; } }
/* флажок режима выбора (cds Checkbox xs): 16, радиус 4, кромка
   border-strong; отмечен - заливка accent, галочка на accent */
/* флажок - блок 16x16 по центру ячейки (контент 28, высота 52 без
   прозрачной кромки 1): ЗАМЕРЕНО у Max 26.09 - на 6 от начала текста
   колонки и на 18 от верха строки. У нас был inline-flex на строке 20 и
   стоял на 0 / 17 */
.w-rec-cb { position: relative; z-index: 2; display: flex; width: 16px; height: 16px; margin: 0 auto; align-items: center; justify-content: center; outline: none; cursor: var(--cds-cursor-interactive); }
.w-rec-cbox {
  display: flex;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid var(--w-border-strong);
  border-radius: 4px;
  background: transparent;
  transition: background-color var(--w-dur-fast) var(--w-ease-out), border-color var(--w-dur-fast) var(--w-ease-out);
}
.w-rec-cb[data-checked] .w-rec-cbox { border-color: var(--cds-fill-accent); background: var(--cds-fill-accent); }
/* галочка - глиф e03b 16 px, 700, поверх всей коробки (у образца span
   16x16 на месте коробки), не 12 внутри рамки */
.w-rec-cmark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; clip-path: inset(0 100% 0 0); transition: clip-path .1s var(--w-ease-out); }
.w-rec-cb[data-checked] .w-rec-cmark { clip-path: inset(0); transition-duration: .2s; }
.w-rec-cb:focus-visible .w-rec-cbox { box-shadow: var(--cds-focus-shadow); }
/* уменьшенная анимация: у образца motion-reduce:transition-none только у
   флажка (кромка и галочка); группа времени и «...» (transition
   duration-fast ease-out) гаснут переходом и при Reduced - раньше у нас
   переход у них снимался, это было не как у образца */
[data-reduce-motion='true'] :is(.w-rec-cbox, .w-rec-cmark) { transition: none; }
@media (prefers-reduced-motion: reduce) { :is(.w-rec-cbox, .w-rec-cmark) { transition: none; } }

/* ── Состояние своего сообщения (ChatMsgState): «Sending…», «Not sent ·
   Retry». У образца не снято (своего такого состояния в ленте Клода нет),
   размер и цвет - как у подписи времени ряда (13/17 muted), неудача -
   text-danger. Строка на 4 выше ряда действий, прижата вправо. */
.w-msg-state { display: flex; align-items: center; gap: 8px; margin-top: -4px; color: var(--w-text-muted); font-size: 13px; line-height: 17px; }
.w-msg-state[data-failed] { color: var(--w-text-danger); }
.w-msg-retry { padding: 0; border: 0; background: none; color: var(--w-text-primary); font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: var(--cds-cursor-interactive, pointer); }

/* сбой списка сессий в Account (загрузитьСессии) и поле кода удаления */
.w-sessions-err { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--w-text-secondary); font-size: 14px; line-height: 20px; }


/* ── Правка своего сообщения (ChatMessage, ЗАМЕРЕНО 27.09 у образца) ──── */
/* пузырь в правке: surface-1 + card-ring, в фокусе shadow-focus (у образца
   вставное кольцо цвета самого пузыря - surface-1 в обеих темах), переход
   duration-fast; поля и радиус те же, что у пузыря */
.w-msg-edit.w-msg-bubble {
  background: var(--cds-surface-1);
  box-shadow: var(--w-card-ring);
  white-space: normal;
  transition: box-shadow var(--w-dur-fast) var(--w-ease), background-color var(--w-dur-fast) var(--w-ease);
}
.w-msg-edit.w-msg-bubble:focus-within {
  box-shadow: inset 0 0 0 1px var(--cds-surface-1), 0 0 0 1px #2a78d6, 0 0 6px 1px #cde2fb;
}
[data-mode='dark'] .w-msg-edit.w-msg-bubble:focus-within {
  box-shadow: inset 0 0 0 1px var(--cds-surface-1), 0 0 0 1px #2a78d6, 0 0 6px 1px hsl(from #184f95 h s l / 60%);
}
/* поле по содержимому (у образца пустое - 1 px и пузырь 33x44, длинное
   тянет пузырь до 85% и растёт вниз) */
.w-msg-edit-ta {
  display: block;
  width: 100%;
  min-width: 1px;
  field-sizing: content;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--w-text-primary);
  font: inherit;
  font-size: 15px;
  line-height: 20px;
  resize: none;
  overflow: hidden;
  outline: none;
}
.w-msg-edit-ta:focus-visible { outline: none; box-shadow: none; }
/* ряд под пузырём: [i] Cancel Save через 8 */
.w-msg-edit-acts { display: flex; align-items: center; gap: 8px; }
.w-msg-edit-info {
  display: flex;
  border-radius: 2px;
  color: var(--w-text-secondary);
  outline: none;
}
.w-msg-edit-info:focus-visible { outline: none; box-shadow: var(--cds-focus-shadow); }


/* ── Окно «Uploads» (UploadsDialog образца, ЗАМЕРЕНО 28.09 у Max, обе
   темы; числа - S/chat/uploads_capture.md) ──────────────────────────── */
.w-chat-head-end { display: flex; flex-shrink: 0; align-items: center; gap: 4px; }
.w-up-layer { z-index: 60; }
/* по центру - полями auto, а НЕ transform: translate(-50%,-50%): свойство
   scale применяется до transform, и точка роста при появлении уходила в
   правый нижний угол - окно «съезжало» на 23 влево и 14 вверх (хозяин
   28.09: «микро сдвиг»; ЗАМЕРЕНО по кадрам у Max: первый кадр 29.5,96.8
   1129 - рост от центра, у нас было 41,103.9).
   29.09: не полями auto, а СВОЙСТВОМ translate: -50% -50% (у образца
   fixed left-1/2 top-1/2 -translate-x/y-1/2, это именно translate, не
   transform - ЗАМЕРЕНО). translate тоже идёт после scale, рост от центра
   тот же, но место дробное как у образца: поля auto давали y 89.59
   (LayoutUnit 1/64) вместо 89.6, и строка «Showing only…» под big-log.txt
   округлялась на пиксель выше (аудит A59). */
.w-up {
  position: fixed;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  display: flex;
  width: calc(100vw - 32px);
  max-width: 720px;
  height: min(80dvh, 760px);
  max-height: calc(100dvh - 32px);
  flex-direction: column;
  border-radius: 12px;
  background: var(--w-surface-3);
  box-shadow: var(--w-shadow-panel-lg);
  color: var(--w-text-primary);
  outline: none;
  opacity: 1;
  transition: opacity var(--w-dur-base) var(--w-ease-out), scale var(--w-dur-base) var(--w-ease-out);
}
/* ширина едет только у открытого окна (Close preview / выбор файла), не
   при появлении */
.w-up[data-ready] { transition: opacity var(--w-dur-base) var(--w-ease-out), scale var(--w-dur-base) var(--w-ease-out), max-width var(--w-dur-base) var(--w-ease-out); }
.w-up[data-split] { max-width: 1152px; }
.w-up[data-state='closed'] { opacity: 0; scale: .98; }
[data-reduce-motion='true'] .w-up, [data-reduce-motion='true'] .w-up[data-ready] { transition: none; }
@media (prefers-reduced-motion: reduce) { .w-up, .w-up[data-ready] { transition: none; } }
.w-up-inner { display: flex; min-height: 0; flex: 1; flex-direction: column; padding: 24px; overflow: hidden; border-radius: inherit; }
.w-up-cols { display: flex; min-height: 0; flex: 1; }
.w-up-listcol { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.w-up[data-split] .w-up-listcol { width: 384px; flex: 0 0 384px; }
.w-up-listcol[hidden] { display: none; }
/* шапка (Dialog.Header образца, mb-pad-sm) */
/* w-upl-: имена .w-up-title / .w-up-head заняты страницей Upgrade (выше):
   оттуда в заголовок окна приходил засечный шрифт 28 (хозяин 28.09 на паре
   снимков без потерь: у образца «Uploads» - anthropic-sans 22 w580) */
.w-upl-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.w-up-head-main { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 4px; margin-top: -4px; }
.w-upl-title { margin: 0; overflow-wrap: anywhere; font-size: 22px; line-height: 28px; font-weight: 580; --w-w: 580; color: var(--w-text-primary); }
.w-up-head-actions { display: flex; align-items: center; gap: 2px; margin-top: -8px; margin-right: -8px; }
/* список */
.w-up-listwrap { position: relative; display: flex; min-height: 0; flex: 1; flex-direction: column; margin: 0 -12px; }
.w-up-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 24px 12px 0;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--w-scrollbar) transparent;
}
.w-up-list-fade { position: absolute; top: 0; right: 0; left: 0; height: 24px; background: linear-gradient(to bottom, var(--w-surface-3), transparent); pointer-events: none; }
.w-up-rows { display: flex; flex-direction: column; }
.w-up-row {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  margin: 0 -12px;
  padding: 6px 12px;
  border-radius: 8px;
  background-image: linear-gradient(var(--cds-alpha-1), var(--cds-alpha-1));
  background-position: top;
  background-repeat: no-repeat;
  background-size: calc(100% - 24px) 1px;
}
.w-up-row:first-child { background-image: none; }
.w-up-row[data-selected] { background-color: var(--w-ghost-selected, rgba(11, 11, 11, .1)); background-image: none; }
.w-up-row[data-selected] + .w-up-row { background-image: none; }
@media (hover: hover) {
  .w-up-row:not([data-selected]):hover { background-color: var(--w-ghost-hover); background-image: none; }
  .w-up-row:not([data-selected]):hover + .w-up-row { background-image: none; }
}
.w-up-row:not([data-selected]):has(:focus-visible) { background-color: var(--w-ghost-hover); }
.w-up-row-btn {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: var(--cds-cursor-interactive);
  outline: none;
}
.w-up-row-btn:focus-visible { box-shadow: inset 0 0 0 1px var(--cds-fill-accent, #2a78d6), inset 0 0 6px 1px color-mix(in srgb, var(--cds-fill-accent, #2a78d6) 20%, transparent); }
.w-up-row-icon { display: flex; width: 24px; flex-shrink: 0; align-items: center; justify-content: center; color: var(--w-text-secondary); pointer-events: none; }
.w-up-row-text { display: flex; min-width: 0; flex: 1; align-items: baseline; gap: 8px; pointer-events: none; }
.w-up-row-name { min-width: 0; overflow: hidden; font-size: 14px; line-height: 20px; color: var(--w-text-primary); text-overflow: ellipsis; white-space: nowrap; }
.w-up-row-meta { min-width: 0; flex: 1; overflow: hidden; font-size: 12px; line-height: 17px; color: var(--w-text-muted); text-overflow: ellipsis; white-space: nowrap; }
.w-up-empty { margin: 0; padding: 24px 0; font-size: 14px; line-height: 20px; color: var(--w-text-muted); }
/* просмотр справа (два столбца): прижат к краям окна, кромка .5 слева */
.w-up-pane {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  margin: -24px -24px -24px 24px;
  border-left: .5px solid var(--cds-border, rgba(11, 11, 11, .1));
  border-radius: 0 12px 12px 0;
  background: var(--cds-surface-1);
  overflow: hidden;
}
.w-up-pane-head { display: flex; height: 32px; flex-shrink: 0; align-items: center; gap: 8px; margin-bottom: 12px; padding: 16px 24px 0; box-sizing: content-box; }
.w-up-pane-title { display: flex; min-width: 0; flex: 1; align-items: baseline; gap: 8px; margin: 0; font-weight: 400; --w-w: 400; }
.w-up-pane-name { min-width: 0; overflow: hidden; font-size: 14px; line-height: 20px; color: var(--w-text-primary); text-overflow: ellipsis; white-space: nowrap; }
.w-up-pane-meta { min-width: 0; flex: 1; overflow: hidden; font-size: 12px; line-height: 17px; color: var(--w-text-muted); text-overflow: ellipsis; white-space: nowrap; }
.w-up-pane-actions { display: flex; align-items: center; gap: 4px; margin-right: -8px; }
.w-up-pane-body { display: flex; min-height: 0; flex: 1; flex-direction: column; overflow: hidden; }
/* узкий вид: просмотр вместо списка */
.w-up-drill { display: flex; min-width: 0; flex: 1; flex-direction: column; }
.w-up-head-drill { margin-bottom: 12px; }
.w-up-back-row { display: flex; min-width: 0; align-items: center; gap: 8px; margin-left: -8px; }
.w-up-back-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-up-sub { margin: 0; font-size: 14px; line-height: 20px; color: var(--w-text-secondary); }
/* узкий вид с файлом: Download и Close через 8 (ЗАМЕРЕНО 28.09 у Max при
   700: 596 и 636), было 4 */
.w-up-head-actions-drill { gap: 8px; }
.w-up-drill-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  margin: 0 -12px;
  overflow: hidden;
  border: .5px solid var(--cds-border, rgba(11, 11, 11, .1));
  border-radius: 8px;
  background: var(--cds-surface-0, var(--cds-page-bg));
}
/* картинка: поля 20, по центру, без увеличения */
.w-up-img { height: 100%; padding: 20px; box-sizing: border-box; }
.w-up-img-box { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.w-up-img-box img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
/* звук: проигрыватель браузера, до 448 */
.w-up-audio { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.w-up-audio audio { width: 100%; max-width: 448px; }
/* нет просмотра: пиктограмма 96 в поле 24, имя, тип, подпись; зазор 16 */
.w-up-none { display: flex; height: 100%; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.w-up-none-art { padding: 24px; }
.w-up-none-pict { width: 96px; height: 96px; }
.w-up-none-text { text-align: center; }
.w-up-none-name { font-size: 18px; line-height: 28px; font-weight: 500; --w-w: 500; color: var(--w-text-primary); }
.w-up-none-type { font-size: 14px; line-height: 20px; color: var(--w-text-secondary); }
.w-up-none-note { font-size: 14px; line-height: 20px; color: var(--w-text-secondary); }
/* PDF: страницы стопкой на сером #f3f4f6 и в тёмной тоже (ЗАМЕРЕНО 28.09
   снимком без потерь: 243,244,246 в обеих темах; прежнее #f1f2f4 было
   прочитано по сжатому снимку расширения) */
.w-up-pdf { height: 100%; overflow: auto; padding: 16px; box-sizing: border-box; background: #f3f4f6; scrollbar-width: thin; }
.w-up-pdf-page { position: relative; margin: 0 auto 16px; width: fit-content; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 4px 10px rgba(0, 0, 0, .08); }
.w-up-pdf-canvas { min-width: 120px; min-height: 160px; }
.w-up-pdf-canvas canvas { display: block; }
.w-up-pdf-badge { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; border-radius: 4px; background: rgba(0, 0, 0, .5); color: #fff; font-family: system-ui, 'Segoe UI', sans-serif; font-size: 14px; line-height: 20px; }
/* ЗАМЕРЕНО 28.09 по снимку без потерь (PDF у образца - в своём фрейме
   claudeusercontent, шрифт там системный): плашка 78x28, текст 14 с
   полями 4/8, радиус 4, на 8 от правого и нижнего края страницы, фон
   128 на белом. Было 63x21 шрифтом 12 */
/* CSV: таблица как в Recents (cds Table) */
.w-up-csv-col, .w-up-code-col { display: flex; height: 100%; min-height: 0; flex-direction: column; }
.w-up-csv { min-height: 0; flex: 1; overflow: auto; outline: none; scroll-padding-top: 33px; scrollbar-width: thin; scrollbar-color: var(--w-scrollbar) transparent; }
.w-up-csv:focus-visible { box-shadow: var(--cds-focus-shadow); }
.w-up-table { width: 100%; border-collapse: separate; border-spacing: 0; white-space: nowrap; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--w-text-primary); }
.w-up-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--cds-alpha-1);
  background: var(--cds-surface-1);
  font-size: 13px;
  line-height: 17px;
  font-weight: 500;
  --w-w: 500;
  color: var(--w-text-secondary);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-up-table td { height: 28px; padding: 8px 12px; border-bottom: 1px solid var(--cds-alpha-1); box-sizing: content-box; }
/* ЗАМЕРЕНО 07.10 у Max (окно Uploads, data.csv): ячейки CSV с классом
   tabular-nums - цифры одной ширины (было на 2 px уже у «3.2»). Заголовки
   и таблица Recents - без него. Просмотр сбоку (Outputs) не снимался. */
.w-up .w-up-table td { font-variant-numeric: tabular-nums; }
/* код и текст: номера строк (mono 12/22 muted, pl 4 pr 8, черта справа),
   ячейка 16, код 12/22 pre-wrap break-all */
.w-up-code-box { position: relative; min-height: 0; flex: 1; }
.w-up-code-scroll { position: absolute; inset: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--w-scrollbar) transparent; }
.w-up-code { outline: none; }
.w-up-code:focus-visible, .w-up-md:focus-visible { box-shadow: var(--cds-focus-shadow); }
.w-up-line { display: flex; border-left: 3px solid transparent; }
.w-up-ln {
  display: flex;
  width: calc((.6 * var(--w-up-digits, 3) + .5) * 1rem);
  flex-shrink: 0;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 0 8px 0 4px;
  border-right: 1px solid var(--cds-border);
  font-family: var(--w-font-mono);
  font-size: 12px;
  line-height: 22px;
  color: var(--w-text-muted);
  user-select: none;
  box-sizing: border-box;
}
.w-up-gut { width: 16px; flex-shrink: 0; }
.w-up-src { display: flex; min-width: 0; flex: 1; align-items: flex-start; padding-right: 8px; }
.w-up-src code { font-family: var(--w-font-mono); font-size: 12px; line-height: 22px; color: var(--w-text-primary); white-space: pre-wrap; word-break: break-all; }
/* палитра подсветки образца (Lezer token-*), свет. и тёмн. */
.w-tok-kw { color: #8100c2; }
.w-tok-var { color: #b34a00; }
.w-tok-str { color: #008000; }
.w-tok-num { color: #008080; }
.w-tok-tag { color: #b80a18; }
.w-tok-com { color: var(--w-text-muted); }
[data-mode='dark'] .w-tok-kw { color: #cc7bf4; }
[data-mode='dark'] .w-tok-var { color: #fbad60; }
[data-mode='dark'] .w-tok-str { color: #9be963; }
[data-mode='dark'] .w-tok-num { color: #5eeded; }
[data-mode='dark'] .w-tok-tag { color: #f47b85; }
/* MD: как ответ образца (standard-markdown): max 768, поля 24/44, текст
   16/24, h1 22/26.4 w600, списки 32, блок кода - подложка bg-000 50%,
   кромка .5, радиус 8, язык 12/17 muted, код 14/22.75 mono */
.w-up-md { max-width: 768px; margin: 0 auto; padding: 24px 44px; outline: none; font-size: 16px; line-height: 24px; color: var(--w-text-primary); }
.w-up-md-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.w-up-md p { margin: 0; overflow-wrap: break-word; }
.w-up-md strong { font-weight: 600; --w-w: 600; }
.w-up-md h1, .w-up-md h2, .w-up-md h3, .w-up-md h4, .w-up-md h5, .w-up-md h6 { margin: 12px 0 -4px; font-weight: 600; --w-w: 600; overflow-wrap: break-word; }
.w-up-md h1 { font-size: 22px; line-height: 26.4px; }
.w-up-md h2 { font-size: 20px; line-height: 26px; }
.w-up-md h3 { font-size: 18px; line-height: 24px; }
.w-up-md h4, .w-up-md h5, .w-up-md h6 { font-size: 16px; line-height: 24px; }
.w-up-md ul, .w-up-md ol { margin: 0; padding-left: 32px; }
.w-up-md ul { list-style: disc; }
.w-up-md ol { list-style: decimal; }
.w-up-md li { padding-left: 8px; }
/* у образца ul - list-disc flex flex-col gap-1 (пункты - элементы флекса,
   маркер ложится иначе, чем в блоке: точка на 1 px выше) */
.w-up-md ul, .w-up-md ol { display: flex; flex-direction: column; gap: 4px; }
/* список у образца mb-3 (12) и в сетке с gap 12 это НЕ схлопывается -
   код ниже стоял на 12 выше (ЗАМЕРЕНО 28.09); последний в сетке - mb-0 */
.w-up-md-grid > ul, .w-up-md-grid > ol { margin-bottom: 12px; }
.w-up-md-grid > :last-child { margin-bottom: 0; }
.w-up-md blockquote { margin: 0; padding-left: 14px; border-left: 4px solid var(--cds-border); color: var(--w-text-secondary); }
.w-up-md hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--cds-alpha-1); }
.w-up-md-ic { padding: 1px 4px; border: .5px solid var(--cds-border, rgba(11, 11, 11, .1)); border-radius: 4px; background: var(--cds-alpha-1); font-family: var(--w-font-mono); font-size: .875em; }
.w-up-md-block { position: relative; border: .5px solid var(--cds-border); border-radius: 8px; background: color-mix(in oklab, var(--w-bg-000, #fff) 50%, transparent); }
.w-up-md-lang { height: 31px; padding: 14px 14px 0; box-sizing: border-box; font-size: 12px; line-height: 17px; color: var(--w-text-muted); }
/* кнопка копирования (ЗАМЕРЕНО 28.09 у Max): 28, на 10 ниже и 8 левее
   края блока, в покое opacity 0 - видна при наведении на блок и фокусе в
   нём (group-hover/copy, group-focus-within/copy), на сенсоре - всегда;
   перехода нет. Было: 32, видна всегда, на 4/4 */
.w-up-md-block { outline: none; }
.w-up-md-block:focus-visible { box-shadow: 0 0 0 2px var(--cds-fill-accent); }
.w-up-md-copy { position: absolute; top: 10px; right: 8px; opacity: 0; }
.w-up-md-block:focus-within .w-up-md-copy { opacity: 1; }
@media (hover: hover) { .w-up-md-block:hover .w-up-md-copy { opacity: 1; } }
@media (hover: none), (pointer: coarse) { .w-up-md-copy { opacity: 1; } }
.w-up-md-scroll { overflow-x: auto; }
.w-up-md-pre { margin: 0; padding: 14px; font-family: var(--w-font-mono); font-size: 14px; line-height: 22.75px; white-space: pre; }
.w-up-wait { display: flex; height: 100%; align-items: center; justify-content: center; }


/* ── Лента как feed образца (role=article, ЗАМЕРЕНО 28.09 у Max) ───────
   кольцо только с клавиатуры (focus-visible): shadow-focus, радиус 8;
   подъезд под шапку 48 и над полем ввода */
.w-art { border-radius: 8px; outline: none; scroll-margin-top: 48px; scroll-margin-bottom: 120px; }
/* отступы своего (24 сверху, 4 снизу) - СНАРУЖИ рамки. У образца статья -
   блок в flow-root, и mt-[--msg-gap] строки проваливается сквозь неё
   (схлопывание полей): рамка стоит вплотную к пузырю, 736 x (пузырь + 8 +
   ряд 24 + 4) - ЗАМЕРЕНО 28.09 у Max, снимок без потерь снимок_окна.py.
   У нас статья - элемент flex-ленты, поля не схлопываются, и 24 уходили
   ВНУТРЬ рамки (хозяин 28.09 снимками: «не так выделения сделал») */
/* ПЕРЕСНЯТО 29.09 у Max (хозяин снимками по Shift: «у Клода рамка ровно под
   кнопкой копирования, у нас ниже»): статья своего = пузырь + 8 + ряд 24,
   БЕЗ 4 внизу (низ статьи = низ ряда, 414.8 = 414.8), следующее сообщение -
   через 8 от рамки, после ответа до своего - 24. Нижние 4 (поле 4 у
   .w-msg-mine от прежней сборки) вынесены наружу: 4 + 4 = 8 */
.w-art:has(> .w-msg-mine) { margin: 24px 0 8px; }
.w-art > .w-msg-mine { margin: 0; padding-bottom: 0; }
.w-art:focus-visible { box-shadow: var(--cds-focus-shadow); }

/* ── Карточка «Used in this session» (числа - над ChatActivityPanel) ── */
.w-chat-head-files[aria-pressed='true'] .w-btn-fill { background: var(--w-ghost-hover); }
.w-ap { position: absolute; z-index: 30; top: 44px; right: 8px; display: flex; width: 320px; max-height: calc(100% - 52px); flex-direction: column;
  border: 1px solid var(--cds-border); border-radius: 12px; background: var(--cds-surface-2); box-shadow: 0 1px 2px 0 #0000000d; }
.w-ap-x { position: absolute; z-index: 1; top: 10px; right: 8px; }
/* подложка плавающей карточки при окне уже 640 (см. ChatView): вся область
   беседы с полем 8 слева (.w-chat-split), поверх шапки (z 11), под
   карточкой (z 30) и под кнопкой панели (.w-sb z 50) */
.w-ap-scrim { position: absolute; z-index: 25; inset: 0 0 0 -8px; background: var(--w-backdrop); }
/* показ по наведению: въезд из opacity 0, scale .98, -6 по y (ЗАМЕРЕНО по
   кадрам); уход мгновенный - узел просто убирается */
.w-ap[data-peek] { transition: opacity .14s ease, transform .18s cubic-bezier(.16, 1, .3, 1); }
@starting-style { .w-ap[data-peek] { opacity: 0; transform: translateY(-6px) scale(.98); } }
[data-reduce-motion='true'] .w-ap[data-peek] { transition: none; }
@media (prefers-reduced-motion: reduce) { .w-ap[data-peek] { transition: none; } }
/* справа 44 - место крестика, только у ЗАКРЕПЛЁННОЙ карточки; при показе по
   наведению крестика нет и поле 16 (ЗАМЕРЕНО 29.09 у Max) */
.w-ap-head { display: flex; padding: 16px 16px 12px; }
.w-ap-head[data-x] { padding-right: 44px; }
.w-ap-title { display: inline-flex; color: var(--w-text-primary); font-size: 13px; line-height: 17px; font-weight: 500; --w-w: 500; }
/* область прокрутки начинается на 4 выше и с полем 4 (у образца 861,86
   pt-1): иначе она срезала верх подсветки строки, заходящей на -4 - хозяин
   28.09: «кнопка uploads не ровная» (сверху плоский срез вместо скругления) */
/* НАМЕРЕННО не как у образца (хозяин 28.09): у образца обводку фокуса
   строки срезает сверху прокрутка; у нас место под неё есть - область на 8
   выше и с полем 8 (обводка 2 + отступ 2 = 4 за краем строки) */
.w-ap-body { min-height: 0; flex: 1; margin-top: -8px; padding-top: 8px; overflow-y: auto; }
/* строка 32 заходит на 4 вверх и вниз в клетку 24 секции (у образца:
   секция 36 = 24 + 12, строка на 86 при шапке до 90) */
.w-ap-sec { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 12px; }
.w-ap-row { display: flex; min-width: 0; align-items: center; gap: 10px; margin: -4px -8px; padding: 6px 8px; border: 0; border-radius: 8px;
  background: transparent; color: var(--w-text-secondary); font: inherit; text-align: left; cursor: var(--cds-cursor-interactive); }
@media (hover: hover) { .w-ap-row:hover { background: var(--w-ghost-hover); } .w-ap-row:hover .w-ap-row-label { color: var(--w-text-primary); } }
/* фокус - общая обводка 2px accent с отступом 2 (can-focus образца,
   ЗАМЕРЕНО 28.09 Tab-ом: outline #256abf 2px, offset 2, тени нет). Своя
   тень была лишней - две рамки (хозяин 28.09) */
.w-ap-row-icon { display: flex; width: 20px; height: 20px; flex-shrink: 0; align-items: center; justify-content: center; color: var(--w-text-secondary); }
.w-ap-row-label { flex-shrink: 0; font-size: 14px; line-height: 20px; color: var(--w-text-secondary); }
.w-ap-row-files { display: flex; min-width: 0; flex: 1; justify-content: flex-end; gap: 6px; color: var(--w-text-muted); font-size: 12px; line-height: 17px; }
.w-ap-row-names { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-ap-row-more { flex-shrink: 0; }
/* ── Число на кнопке шапки и раздел Files (числа - над ApSection) ── */
.w-chat-head-files[data-count] { max-width: 16rem; }
.w-chat-head-files-ic { display: inline-flex; margin-inline-start: -4px; }
.w-chat-head-count { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.w-ap-scroll { display: flex; min-height: 0; flex: 1; flex-direction: column; overflow-y: auto; border-radius: inherit; }
.w-ap-secs { display: flex; min-height: 0; flex-direction: column; }
.w-ap-s { position: relative; display: flex; flex-shrink: 0; flex-direction: column; overflow: hidden; }
.w-ap-s[data-shrink] { flex-shrink: 1; transition: min-height .2s cubic-bezier(.4, 0, .2, 1); }
.w-ap-s + .w-ap-s::before { content: ""; position: absolute; top: 0; left: 16px; right: 16px; height: 1px; background: var(--w-alpha-1); }
.w-ap-sh { display: flex; width: 100%; flex-shrink: 0; align-items: center; justify-content: space-between; padding: 16px 16px 12px;
  outline: none; text-align: left; user-select: none; cursor: var(--cds-cursor-interactive); }
.w-ap-sh[data-x] { padding-right: 44px; }
/* кольцо фокуса - на подписи со стрелкой (у образца
   group-focus-visible/section-header:outline на этом span) */
.w-ap-sh-t { display: flex; min-width: 0; align-items: center; gap: 4px; border-radius: 4px; outline: 2px solid transparent; outline-offset: 2px; }
.w-ap-sh:focus-visible .w-ap-sh-t { outline-color: var(--w-focus-outline); transition: outline var(--w-dur-base) ease; }
.w-ap-sh .w-ap-title { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* поворот - свойством rotate, а переход у образца на transform и opacity:
   стрелка поворачивается СРАЗУ, плавно только проявляется */
.w-ap-chev { display: inline-flex; width: 16px; height: 16px; flex-shrink: 0; align-items: center; justify-content: center; color: var(--w-text-muted);
  transition: transform .2s cubic-bezier(0, 0, .2, 1), opacity .2s cubic-bezier(0, 0, .2, 1); }
.w-ap-s:not([data-closed]) .w-ap-chev { rotate: 90deg; opacity: 0; }
@media (hover: hover) { .w-ap-sh:hover .w-ap-chev { opacity: 1; } }
.w-ap-sh:focus-visible .w-ap-chev { opacity: 1; }
.w-ap-sh-act { display: flex; height: 16px; flex-shrink: 0; align-self: flex-start; align-items: center; gap: 8px; color: var(--w-text-primary); }
/* Download all: 28 в клетке 16 x 24 - по центру по высоте, вправо на 4
   (flush end), до крестика 4 */
.w-ap-dl { display: flex; opacity: 0; transition: opacity var(--w-dur-fast) var(--w-ease-snap); }
.w-ap-dl > .w-btn { margin: -6px -4px -6px 0; }
@media (hover: hover) { .w-ap-s:hover .w-ap-dl { opacity: 1; transition-duration: var(--w-dur-snap); transition-delay: .1s; } }
@media (hover: none) { .w-ap-dl { opacity: 1; transition: none; } }
.w-ap-s:has(:focus-visible) .w-ap-dl, .w-ap-dl[data-busy] { opacity: 1; transition-duration: var(--w-dur-snap); transition-delay: 0s; }
.w-ap-grid { display: grid; min-height: 0; grid-template-rows: 1fr;
  transition: grid-template-rows .2s cubic-bezier(.4, 0, .2, 1), padding .2s cubic-bezier(.4, 0, .2, 1); }
.w-ap-s[data-closed] .w-ap-grid { grid-template-rows: 0fr; padding-bottom: 4px; }
/* обрезка только снизу и по бокам: сверху 8 - место кольца строки Uploads
   (см. .w-ap-body); свёрнутое уходит из Tab по концу хода */
.w-ap-clip { display: flex; min-height: 0; flex-direction: column; clip-path: inset(-8px -16px 0 -16px); visibility: visible; transition: visibility 0s; }
.w-ap-s[data-closed] .w-ap-clip { visibility: hidden; transition: visibility 0s .2s; }
[data-reduce-motion='true'] :is(.w-ap-s[data-shrink], .w-ap-grid, .w-ap-clip, .w-ap-dl) { transition: none !important; }
@media (prefers-reduced-motion: reduce) { :is(.w-ap-s[data-shrink], .w-ap-grid, .w-ap-clip, .w-ap-dl) { transition: none !important; } }
.w-ap-frow { display: flex; min-width: 0; align-items: center; gap: 10px; margin: -4px -8px; padding: 6px 8px; border-radius: 8px; cursor: var(--cds-cursor-interactive); }
@media (hover: hover) { .w-ap-frow:hover { background: var(--w-ghost-hover); } .w-ap-frow:hover .w-ap-fname { color: var(--w-text-primary); } }
.w-ap-fname { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 4px; color: var(--w-text-secondary);
  font-size: 14px; line-height: 20px; outline: 2px solid transparent; outline-offset: 2px; cursor: var(--cds-cursor-interactive);
  transition: color .15s cubic-bezier(.4, 0, .2, 1); }
.w-ap-fname:focus-visible { outline-color: var(--w-focus-outline); transition: color .15s cubic-bezier(.4, 0, .2, 1), outline var(--w-dur-base) ease; }
.w-ap-ftype { flex-shrink: 0; color: var(--w-text-muted); font-size: 12px; line-height: 17px; }
.w-fade-10 { --w-fade-size: 10px; }
/* подсказка имени файла: путь моноширинным, перенос по любому знаку (у
   образца font-mono break-all whitespace-pre-wrap), поля 6/8 - 4 строки по
   18 дают 84 (ЗАМЕРЕНО) */
.w-tip-mono { font-family: var(--w-font-mono); word-break: break-all; white-space: pre-wrap; }
.w-tooltip:has(.w-tip-mono) { padding-block: 6px; }
/* пустая карточка (см. ChatActivityPanel): EmptyState образца */
.w-ap-body[data-empty] { margin-top: 0; padding-top: 0; }
.w-ap-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 48px 12px;
  color: var(--w-text-primary); font-size: 14px; line-height: 20px; text-align: center; text-wrap: balance; white-space: normal; }
.w-ap-empty-title { max-width: 20rem; margin: 0; color: var(--w-text-secondary); font-size: 14px; line-height: 20px; font-weight: 500; --w-w: 500; }
.w-ap-empty-text { max-width: 20rem; margin: 0; color: var(--w-text-secondary); font-size: 13px; line-height: 17px; }
/* анимированная пиктограмма (WallAnimatedPictogram) */
.w-apict { position: relative; display: flex; flex-shrink: 0; color: var(--w-text-primary); }
.w-apict > svg:not(.w-flipbook-svg) { flex-shrink: 0; }
.w-apict .w-picto-hl { fill: var(--w-picto-highlight); }
.w-flipbook-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: scale(1.2); transform-origin: center; overflow: hidden; }
@keyframes w-flipbook { 0% { transform: translate(0); } 100% { transform: translateX(var(--w-fb-span)); } }
.w-flipbook { transform-box: view-box; animation-name: w-flipbook; animation-timing-function: steps(var(--w-fb-steps), jump-none);
  animation-iteration-count: 1; animation-fill-mode: forwards; }
/* при открытой карточке беседа уступает справа 20.5rem + 8 (336), но
   только если ей тесно: clamp(0, (50.5rem + 2 * 336 - 100%) * 9999, 336)
   - --chat-body-end-inset образца (ЗАМЕРЕНО: при 948 колонка 808 по
   центру -> 602 от левого края; шире 1480 - на месте) */
.w-chat[data-panel] > .w-chat-scroll { margin-right: clamp(0px, (808px + 2 * 336px - 100%) * 9999, 336px); }

/* ── Список при наведении на строку Uploads (числа - над ChatUploadsHover) ── */
.w-uph { position: fixed; z-index: 45; display: flex; width: 352px; max-width: calc(100vw - 16px); flex-direction: column; padding: 12px;
  border-radius: 12px; background: var(--w-surface-3); box-shadow: var(--w-shadow-panel); color: var(--w-text-primary); font-size: 14px; line-height: 20px; box-sizing: border-box; }
.w-uph-title { padding-bottom: 4px; overflow: hidden; font-size: 14px; line-height: 17.5px; font-weight: 500; --w-w: 500; }
/* -mb-1.5 и max-h min(28rem, --available-height) образца: доступная
   высота - окно без 48 сверху и 8 снизу */
.w-uph-list { max-height: min(448px, calc(100vh - 56px)); margin: 0 -8px -6px; padding: 0 8px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--w-scrollbar) transparent; }
.w-uph-item { display: flex; width: calc(100% + 16px); min-width: 0; height: 28px; flex-shrink: 0; align-items: center; gap: 8px; margin: 0 -8px; padding: 0 8px;
  border: 0; border-radius: 8px; background: transparent; color: var(--w-text-primary); font: inherit; text-align: start; cursor: var(--cds-cursor-interactive); }
@media (hover: hover) { .w-uph-item:hover { background: var(--w-ghost-hover); } }
.w-uph-icon { display: flex; width: 16px; height: 16px; flex-shrink: 0; color: var(--w-text-secondary); }
.w-uph-name { min-width: 0; flex: 1; overflow: hidden; font-size: 13px; line-height: 17px; text-overflow: ellipsis; white-space: nowrap; }

/* край свёрнутой панели (.dframe-sidebar-edge образца: top chrome-bar
   (у web 0), z 21, ширина 8, во всю высоту слева; см. крайВниз) */
.w-sb-edge { position: fixed; z-index: 21; top: 0; bottom: 0; left: 0; width: 8px; cursor: col-resize; touch-action: none; }
/* кольцо фокуса с клавиатуры - как у ручки открытой панели */
.w-sb-edge { outline: none; }
/* кольцо фокуса - на «таблетке» 12 во всю высоту, x -2..10, проявляется
   за 60 мс (ЗАМЕРЕНО 29.09 у Max); было прямо на полосе 8 */
.w-sb-edge::after { content: ""; position: absolute; top: 0; bottom: 0; left: -2px; width: 12px; border-radius: 9999px;
  box-shadow: var(--cds-focus-shadow); opacity: 0; pointer-events: none; transition: opacity var(--w-dur-fast) var(--w-ease-out); }
.w-sb-edge:focus-visible::after { opacity: 1; }
.w-sb-edge:focus-visible .w-sb-grip { max-height: none; opacity: 1; background: var(--cds-fill-accent); transition-delay: 0s; }
.w-app[data-resizing] .w-sb-edge { cursor: col-resize; }
/* полоска края - та же, что у ручки (3x48 по центру, text-muted, по
   наведению через .2с) */
@media (hover: hover) { .w-sb-edge:hover .w-sb-grip { opacity: 1; } }

.w-up-img[hidden], .w-up-audio[hidden], .w-up-pdf[hidden] { display: none; }

/* палитра блоков кода в MD - тема uD / lD образца (см. upPrismLines) */
.w-up-md-pre code { display: block; font-family: var(--w-font-mono); color: hsl(220, 20%, 10%); }
[data-mode='dark'] .w-up-md-pre code { color: hsl(220, 15%, 93%); }
.w-pz-comment { color: hsl(220, 10%, 48%); }
.w-pz-prolog { color: hsl(220, 10%, 48%); }
.w-pz-doctype { color: hsl(220, 10%, 48%); }
.w-pz-cdata { color: hsl(220, 10%, 48%); }
.w-pz-punctuation { color: hsl(220, 15%, 20%); }
.w-pz-keyword { color: hsl(280, 100%, 38%); }
.w-pz-keyword-control { color: hsl(280, 100%, 38%); }
.w-pz-keyword-operator { color: hsl(280, 100%, 38%); }
.w-pz-string { color: hsl(120, 100%, 25%); }
.w-pz-char { color: hsl(120, 100%, 25%); }
.w-pz-template-string { color: hsl(120, 100%, 25%); }
.w-pz-regex { color: hsl(120, 90%, 27%); }
.w-pz-attr-value { color: hsl(120, 100%, 25%); }
.w-pz-number { color: hsl(180, 100%, 25%); }
.w-pz-boolean { color: hsl(180, 100%, 25%); }
.w-pz-constant { color: hsl(180, 100%, 25%); }
.w-pz-symbol { color: hsl(180, 100%, 25%); }
.w-pz-property { color: hsl(355, 90%, 38%); }
.w-pz-tag { color: hsl(355, 90%, 38%); }
.w-pz-attr-name { color: hsl(355, 85%, 40%); }
.w-pz-selector { color: hsl(355, 90%, 38%); }
.w-pz-function { color: hsl(215, 100%, 38%); }
.w-pz-function-name { color: hsl(215, 100%, 38%); }
.w-pz-method { color: hsl(215, 100%, 38%); }
.w-pz-function-method { color: hsl(215, 100%, 38%); }
.w-pz-variable { color: hsl(25, 100%, 35%); }
.w-pz-parameter { color: hsl(25, 95%, 37%); }
.w-pz-class-name { color: hsl(25, 100%, 35%); }
.w-pz-type { color: hsl(25, 100%, 35%); }
.w-pz-type-builtin { color: hsl(25, 100%, 35%); }
.w-pz-builtin { color: hsl(25, 100%, 35%); }
.w-pz-operator { color: hsl(220, 20%, 10%); }
.w-pz-important { color: hsl(355, 90%, 38%); }
.w-pz-deleted { color: hsl(355, 90%, 38%); }
.w-pz-inserted { color: hsl(120, 100%, 25%); }
.w-pz-entity { color: hsl(180, 100%, 25%); }
.w-pz-url { color: hsl(180, 100%, 25%); }
.w-pz-namespace { color: hsl(220, 15%, 20%); }
.w-pz-atrule { color: hsl(280, 100%, 38%); }
.w-pz-maybe-class-name { color: hsl(25, 100%, 35%); }
[data-mode='dark'] .w-pz-comment { color: hsl(220, 10%, 55%); }
[data-mode='dark'] .w-pz-prolog { color: hsl(220, 10%, 55%); }
[data-mode='dark'] .w-pz-doctype { color: hsl(220, 10%, 55%); }
[data-mode='dark'] .w-pz-cdata { color: hsl(220, 10%, 55%); }
[data-mode='dark'] .w-pz-punctuation { color: hsl(220, 15%, 85%); }
[data-mode='dark'] .w-pz-keyword { color: hsl(280, 85%, 72%); }
[data-mode='dark'] .w-pz-keyword-control { color: hsl(280, 85%, 72%); }
[data-mode='dark'] .w-pz-keyword-operator { color: hsl(280, 85%, 72%); }
[data-mode='dark'] .w-pz-string { color: hsl(95, 75%, 65%); }
[data-mode='dark'] .w-pz-char { color: hsl(95, 75%, 65%); }
[data-mode='dark'] .w-pz-template-string { color: hsl(95, 75%, 65%); }
[data-mode='dark'] .w-pz-regex { color: hsl(95, 70%, 63%); }
[data-mode='dark'] .w-pz-attr-value { color: hsl(95, 75%, 65%); }
[data-mode='dark'] .w-pz-number { color: hsl(180, 80%, 65%); }
[data-mode='dark'] .w-pz-boolean { color: hsl(180, 80%, 65%); }
[data-mode='dark'] .w-pz-constant { color: hsl(180, 80%, 65%); }
[data-mode='dark'] .w-pz-symbol { color: hsl(180, 80%, 65%); }
[data-mode='dark'] .w-pz-property { color: hsl(355, 85%, 72%); }
[data-mode='dark'] .w-pz-tag { color: hsl(355, 85%, 72%); }
[data-mode='dark'] .w-pz-attr-name { color: hsl(355, 80%, 70%); }
[data-mode='dark'] .w-pz-selector { color: hsl(355, 85%, 72%); }
[data-mode='dark'] .w-pz-function { color: hsl(210, 100%, 72%); }
[data-mode='dark'] .w-pz-function-name { color: hsl(210, 100%, 72%); }
[data-mode='dark'] .w-pz-method { color: hsl(210, 100%, 72%); }
[data-mode='dark'] .w-pz-function-method { color: hsl(210, 100%, 72%); }
[data-mode='dark'] .w-pz-variable { color: hsl(30, 95%, 68%); }
[data-mode='dark'] .w-pz-parameter { color: hsl(30, 90%, 67%); }
[data-mode='dark'] .w-pz-class-name { color: hsl(30, 95%, 68%); }
[data-mode='dark'] .w-pz-type { color: hsl(30, 95%, 68%); }
[data-mode='dark'] .w-pz-type-builtin { color: hsl(30, 95%, 68%); }
[data-mode='dark'] .w-pz-builtin { color: hsl(30, 95%, 68%); }
[data-mode='dark'] .w-pz-operator { color: hsl(220, 15%, 93%); }
[data-mode='dark'] .w-pz-important { color: hsl(355, 85%, 72%); }
[data-mode='dark'] .w-pz-deleted { color: hsl(355, 85%, 72%); }
[data-mode='dark'] .w-pz-inserted { color: hsl(95, 75%, 65%); }
[data-mode='dark'] .w-pz-entity { color: hsl(180, 80%, 65%); }
[data-mode='dark'] .w-pz-url { color: hsl(180, 80%, 65%); }
[data-mode='dark'] .w-pz-namespace { color: hsl(220, 15%, 85%); }
[data-mode='dark'] .w-pz-atrule { color: hsl(280, 85%, 72%); }
[data-mode='dark'] .w-pz-maybe-class-name { color: hsl(30, 95%, 68%); }

/* «⋮» у раздела Older (SbOlderBulk; ЗАМЕРЕНО у Max 29.09): 32x32, радиус 8,
   -4 сверху и снизу, скрыта; наведение на строку заголовка или фокус внутри -
   .6, под курсором / фокус с клавиатуры / открытое меню - 1, без перехода */
.w-sb-bulk { margin-block: -4px; opacity: 0; color: var(--w-text-secondary); transition: none; }
.w-sb-sechead:hover .w-sb-bulk, .w-sb-sechead:focus-within .w-sb-bulk { opacity: .6; }
.w-sb-sechead .w-sb-bulk:is(:hover, :focus-visible, [aria-expanded="true"]) { opacity: 1; }
@media (hover: hover) { .w-sb-sechead .w-sb-bulk:hover { color: var(--cds-neutral-900); } }
/* df-chrome-btn образца: подложка под курсором --df-hover (у нас --w-sb-hover:
   #f0efec / white .075), все переходы 0с */
.w-sb-bulk .w-btn-fill, .w-sb-bulk::after { transition-duration: 0s; }
@media (hover: hover) { .w-sb-sechead .w-sb-bulk:hover .w-btn-fill { background: var(--w-sb-hover); } }

/* ── Лист панели во весь экран (окно уже 640, только сайт) ──────────────
   phone sheet образца (ЗАМЕРЕНО у Max 29.09, окно 600x883, правила
   .dframe-root[data-phone-sheet] и код NL / BL в shared-19): тело панели
   fixed inset 0, без рамки, тени и скругления, фон панели; строки 44
   (--df-row-h), кнопки строк 36 (--df-row-ctl), полоса заголовка раздела
   56 (подпись на 22); кнопки, что видны по наведению (df-touch-reveal),
   видны всегда; выезд слева transform -100% -> none за .3с
   cubic-bezier(.165,.84,.44,1), при закрытии видимость гаснет после хода;
   протяжка пальцем - translateX(--w-sheet-drag) без перехода; уменьшенная
   анимация - без хода. */
.w-app[data-phone-sheet] .w-sb-inner {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: auto;
  height: auto;
  padding: 0 0 2px;
  border: 0;
  border-radius: 0;
  background: var(--w-sb-bg);
  box-shadow: none;
  opacity: 1;
  translate: none;
  visibility: hidden;
  transform: translate(-100%);
  overscroll-behavior: contain;
  touch-action: pan-y pinch-zoom;
  outline: none;
  transition: transform .3s cubic-bezier(.165, .84, .44, 1), visibility 0s linear .3s;
}
.w-app[data-phone-sheet][data-hovering] .w-sb-inner {
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition: transform .3s cubic-bezier(.165, .84, .44, 1), visibility 0s;
}
.w-app[data-phone-sheet][data-hovering] .w-sb-inner[data-sheet-dragging] { transform: translateX(var(--w-sheet-drag, 0px)); transition: none; }
[data-reduce-motion='true'] .w-app[data-phone-sheet] .w-sb-inner { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .w-app[data-phone-sheet] .w-sb-inner { transition: none !important; } }
/* знак над списком - в шапке самого листа, у кнопки открытия его нет */
.w-app[data-phone-sheet] .w-sb-brand { display: none; }
.w-sb-sheethead { display: flex; flex-shrink: 0; align-items: center; gap: 16px; height: 44px; padding: 0 8px; }
.w-sb-sheethead .w-sb-sheetx { width: 32px; height: 32px; border-radius: 8px; }
.w-app[data-phone-sheet] .w-sb-item, .w-app[data-phone-sheet] .w-sb-item .w-sb-row { height: 44px; }
.w-app[data-phone-sheet] .w-sb-more { top: 4px; }
.w-app[data-phone-sheet] .w-sb-ctl-row { width: 36px; height: 36px; }
.w-app[data-phone-sheet] .w-sb-deco { width: 36px; height: 36px; }
/* заголовок раздела в листе: подпись на 22, справа поле (row-h - 24) / 2 =
   10, кнопки вплотную (ЗАМЕРЕНО: View all 532, Filter 556, край 580 при 590) */
.w-app[data-phone-sheet] .w-sb-sechead { min-height: 56px; padding-top: 22px; padding-right: 10px; padding-bottom: 10px; }
.w-app[data-phone-sheet] .w-sb-secacts { gap: 0; }
.w-app[data-phone-sheet] :is(.w-sb-reveal-hd, .w-sb-bulk) { opacity: 1; pointer-events: auto; }

/* ── Поиск по беседе Ctrl+F (ChatFindBar; числа - в комментарии над ним) ── */
.w-find { position: fixed; z-index: 9000; top: 56px; right: 16px; display: flex; align-items: center; gap: 4px; padding: 6px 8px;
  border: .5px solid var(--w-border-strong); border-radius: 8px; background: var(--w-surface-3); box-shadow: var(--cds-shadow-lg);
  color: var(--w-text-primary); font-size: 16px; line-height: 24px; outline: none; }
html[data-frame] .w-find { top: calc(var(--w-frame-h, 36px) + 56px); }
.w-find-input { width: 192px; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--w-text-primary); font: inherit; font-size: 14px; line-height: 20px; outline: none; }
.w-find-input::placeholder { color: var(--w-text-muted); }
.w-find-count { color: var(--w-text-muted); font-size: 13px; line-height: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.w-find-btn { display: inline-flex; width: 24px; height: 24px; flex-shrink: 0; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px;
  background: none; color: var(--w-text-muted); cursor: var(--cds-cursor-interactive); }
.w-find-btn:hover { background: var(--w-surface-0); color: var(--w-text-primary); }
.w-find-btn:disabled { opacity: .4; pointer-events: none; }
.w-find-btn svg { display: block; }
::highlight(find-in-page) { background-color: rgb(255 213 0); color: #000; }
::highlight(find-in-page-active) { background-color: rgb(255 150 50); color: #000; }

/* поиск по беседе в окне Wall3 - вид окошка поиска Claude Desktop (числа
   - в комментарии над ChatFindBar). Токены - старые токены его окошка:
   светлая bg-000 #fff, bg-200 hsl(53 28.6% 94.5%), text-200/300 hsl(60 2.5%
   23.3%), text-400/500 hsl(51 3.1% 43.7%), border hsl(30 3.3% 11.8%);
   тёмная bg-000 hsl(60 2.1% 18.4%), bg-200 hsl(30 3.3% 11.8%), text-200/300
   hsl(50 9% 73.7%), text-400/500 hsl(48 4.8% 59.2%), border hsl(51 16.5%
   84.5%); accent-100 hsl(210 70.9% 51.6%) в обеих */
.w-findd { --fd-bg: hsl(0 0% 100%); --fd-bg2: hsl(53 28.6% 94.5%); --fd-t2: hsl(60 2.5% 23.3%); --fd-t4: hsl(51 3.1% 43.7%); --fd-b: 30 3.3% 11.8%;
  position: fixed; z-index: 9000; top: 70px; right: 12px; display: flex; width: 320px; height: 54px; box-sizing: border-box; align-items: center; gap: 8px; padding: 12px;
  border-radius: 8px; background: var(--fd-bg);
  box-shadow: 0 0 0 .5px #0000001a, 0 0 20px #0000000d, 0 1px 5px #0000001a;
  font-family: inherit; font-size: 16px; line-height: 24px; }
.w-findd:focus-within { box-shadow: 0 0 0 1px hsl(210 70.9% 51.6%), 0 0 0 .5px #0000001a, 0 0 20px #0000000d, 0 1px 5px #0000001a; }
.w-findd-grow { flex: 1; min-width: 0; }
.w-findd-input { width: 100%; padding: 0 0 0 4px; border: none; outline: none; background: transparent; color: var(--fd-t2); font: inherit; }
.w-findd-input::placeholder { color: var(--fd-t4); opacity: .7; }
.w-findd-count { color: var(--fd-t4); font-size: 12px; line-height: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; user-select: none; }
.w-findd-btn { display: flex; width: 30px; height: 30px; flex-shrink: 0; align-items: center; justify-content: center; padding: 0; border: 1px solid transparent; border-radius: 8px;
  background: none; color: var(--fd-t2); }
.w-findd-btn:hover { background: var(--fd-bg2); }
.w-findd-btn[data-bordered] { border-color: hsl(var(--fd-b) / .15); }
.w-findd-btn[data-bordered]:hover { background: none; border-color: hsl(var(--fd-b) / .3); }
.w-findd-btn:disabled { opacity: .5; pointer-events: none; }
[data-mode='dark'] .w-findd { --fd-bg: hsl(60 2.1% 18.4%); --fd-bg2: hsl(30 3.3% 11.8%); --fd-t2: hsl(50 9% 73.7%); --fd-t4: hsl(48 4.8% 59.2%); --fd-b: 51 16.5% 84.5%; }

/* Storage folder во вкладке System (29.09): путь - cds TextLink без адреса,
   у образца это кнопка (onClick reveal), поэтому сброс вида кнопки; длинный
   путь переносится где угодно, как [overflow-wrap:anywhere] у образца */
.w-sys-folder-link { margin: 0; padding: 0; border: 0; background: none; font: inherit; text-align: start; overflow-wrap: anywhere; }

/* ── Markdown в сообщениях (29.09), см. блок «Markdown в сообщениях» в
   wall-app.jsx. Числа и правила - S/md/prose_rules.css образца. ─────────── */

/* Ответ (чужое сообщение) - cds Prose, data-size sm. ЗАМЕРЕНО 29.09 у Max:
   15/22 (.9375rem / 1.375rem), шаг --_prose-flow 11.25 (.75em, px-свойство),
   поля абзацев и заголовков 4 слева (--cds-assistant-message-text-inset) и
   clamp(0, (100% - 384) * .175, 56) справа (text-stop; при 736 - 56);
   внутри li / td / th / blockquote оба поля 0. Корень - сетка в одну
   колонку (standard-markdown). Прежние 16/24 и поля 4/32 - съём 25.09,
   у образца с тех пор другое. */
.w-prose {
  --_p-flow: 11.25px;
  --_p-inset: 4px;
  --_p-stop: clamp(0px, (100% - 384px) * .175, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  font-family: var(--w-chat-font, inherit);
  font-size: 15px;
  line-height: 22px;
  color: var(--w-text-primary);
  overflow-wrap: break-word;
  white-space: normal;
}
.w-prose > * { min-width: 0; }
/* вес правил - как у образца: элементы (0,0,1), классы под :where (0,0,0),
   иначе общий отступ перебивает «после заголовка / после списка» */
:where(.w-prose) :is(p, ul, ol, blockquote), :where(.w-prose) :where(.w-md-table, .w-md-codewrap, .footnotes, div.katex-display-wrap) { margin-block: var(--_p-flow) 0; }
:where(.w-prose) :is(p, h1, h2, h3, h4, h5, h6) { padding-inline-start: var(--_p-inset); }
:where(.w-prose) :is(li, blockquote, td, th) { --_p-inset: 0px; --_p-stop: 0px; }
:where(.w-prose) :is(p, h1, h2, h3, h4, h5, h6, ul, ol) { padding-inline-end: var(--_p-stop); }
:where(.w-prose) :is(h1, h2, h3, h4, h5, h6, strong, b) { font-weight: 600; --w-w: 600; }
:where(.w-prose) :is(h1, h2, h3, h4, h5, h6) { margin: calc(var(--_p-flow) * var(--_p-hs)) 0 0; font-family: inherit; }
:where(.w-prose) :where(.w-md-table, .w-md-codewrap, div.katex-display-wrap) { margin-inline: 0; }
:where(.w-prose) h1 { --_p-hs: 3; font-size: 1.75em; line-height: 1.25; }
:where(.w-prose) h2 { --_p-hs: 2.5; font-size: 1.375em; line-height: 1.25; }
:where(.w-prose) h3 { --_p-hs: 2; font-size: 1.125em; line-height: 1.3; }
:where(.w-prose) h4 { --_p-hs: 1.667; font-size: 1em; line-height: 1.3; }
:where(.w-prose) h5 { --_p-hs: 1.667; font-size: .875em; line-height: 1.3; }
:where(.w-prose) h6 { --_p-hs: 1.667; font-size: .875em; line-height: 1.3; color: var(--w-text-secondary); }
/* после заголовка - 2/3 шага; после списка, таблицы и черты - два шага,
   перед заголовком - не меньше его собственного отступа */
:where(.w-prose) :is(h1, h2, h3, h4, h5, h6) + :where(p, ul, ol, blockquote, .w-md-table, .w-md-codewrap, h1, h2, h3, h4, h5, h6, hr, .katex-display-wrap, .footnotes) { margin-top: calc(var(--_p-flow) * .667); }
:where(.w-prose) :is(ul, ol, hr) + :where(p, ul, ol, blockquote, .w-md-table, .w-md-codewrap, hr, .katex-display-wrap, .footnotes),
:where(.w-prose) :where(.w-md-table) + :where(p, ul, ol, blockquote, .w-md-table, .w-md-codewrap, hr, .katex-display-wrap, .footnotes) { margin-top: calc(var(--_p-flow) * 2); }
:where(.w-prose) :is(ul, ol, hr) + :is(h1, h2, h3, h4, h5, h6),
:where(.w-prose) :where(.w-md-table) + :is(h1, h2, h3, h4, h5, h6) { margin-top: calc(var(--_p-flow) * max(2, var(--_p-hs))); }
:where(.w-prose) :first-child:not(li > :where(ul, ol, blockquote, .w-md-table, .w-md-codewrap, .katex-display-wrap)) { margin-top: 0; }
/* ссылки: accent, подчёркивание 40%, отступ 3; наведение и фокус -
   подчёркивание сплошное, фокус - тень кольца */
:where(.w-prose) a { color: var(--cds-text-accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor, transparent 60%); text-underline-offset: 3px; border-radius: 2px; cursor: var(--cds-cursor-interactive); transition: color .06s var(--w-ease-out), text-decoration-color .06s var(--w-ease-out), box-shadow .06s var(--w-ease-out); }
:where(.w-prose) a:is(:hover, :focus-visible) { text-decoration-color: currentColor; }
:where(.w-prose) a:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--cds-focus-shadow); }
:where(.w-prose) :is(em, i) { font-style: italic; }
:where(.w-prose) :is(del, s) { text-decoration: line-through; text-decoration-color: color-mix(in oklab, currentColor 60%, transparent); }
:where(.w-prose) :is(sup, sub) { font-size: .75em; line-height: 0; }
/* списки: поле 2em, пункт +.5em, между пунктами треть шага, маркер
   secondary; вложенные - кружок, квадрат; a / i у нумерованных */
:where(.w-prose) :is(ul, ol) { padding-inline-start: 2em; }
:where(.w-prose) ul { list-style-type: disc; }
:where(.w-prose) ol { list-style-type: decimal; }
:where(.w-prose) li { margin: calc(var(--_p-flow) * .333) 0 0; padding-inline-start: .5em; }
:where(.w-prose) li > :is(p, ul, ol, blockquote), :where(.w-prose) li > :where(.w-md-table, .w-md-codewrap, .katex-display-wrap) { margin-top: calc(var(--_p-flow) * .333); }
:where(.w-prose) li::marker { color: var(--w-text-secondary); }
:where(.w-prose) ul > li > ul { list-style-type: circle; }
:where(.w-prose) ul > li > ul > li > ul { list-style-type: square; }
:where(.w-prose) ol > li > ol { list-style-type: lower-alpha; }
:where(.w-prose) ol > li > ol > li > ol { list-style-type: lower-roman; }
/* задачи: без маркера, флажок слева на -1.375em, серый accent, мимо
   мыши; выполненная - secondary и зачёркнута */
:where(.w-prose) li.task-list-item { list-style-type: none; padding-inline-start: 0; }
:where(.w-prose) li > input[type=checkbox]:first-child { margin: 0 .5em 0 -1.375em; translate: 0 .1em; accent-color: var(--cds-fill-accent); pointer-events: none; }
:where(.w-prose) li:has(> input[type=checkbox]:first-child:checked) { color: var(--w-text-secondary); text-decoration: line-through; }
/* цитата: черта 4 border, поле .5em слева, отступ 1em, secondary */
:where(.w-prose) blockquote { margin-inline: .5em 0; padding-inline-start: 1em; border-inline-start: 4px solid var(--cds-border); color: var(--w-text-secondary); }
/* код в строке: mono .9em, строка 1, danger, фон alpha-1, рамка .5 border,
   радиус .4em, поля .0625em .25em */
:where(.w-prose) code:not(pre code) { font-family: var(--w-font-mono); font-size: .9em; line-height: 1; color: var(--cds-text-danger); background: var(--cds-alpha-1); border: .5px solid var(--cds-border); border-radius: .4em; padding: .0625em .25em; white-space: pre-wrap; overflow-wrap: break-word; font-variation-settings: normal; font-feature-settings: "calt" 0, "liga" 0; }
/* таблица: обёртка с прокруткой вбок (md-table-scroll prose-scroll), рамка
   1 border, радиус 7 (--cds-radius), ячейки .4375em .75em, шапка 500 на
   alpha-1, линии между строками */
.w-prose .w-md-table { overflow-x: auto; }
.w-prose .w-md-table > table { margin: 0; }
:where(.w-prose) table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--cds-border); border-radius: 7px; text-align: start; font: inherit; }
:where(.w-prose) :is(th, td) { padding: .4375em .75em; vertical-align: top; }
:where(.w-prose) th { font-weight: 500; --w-w: 500; background: var(--cds-alpha-1); }
:where(.w-prose) th:where(:not([style])) { text-align: start; }
:where(.w-prose) thead > tr:first-child > th:first-child { border-start-start-radius: 6px; }
:where(.w-prose) thead > tr:first-child > th:last-child { border-start-end-radius: 6px; }
:where(.w-prose) thead :is(th, td) { border-block-end: 1px solid var(--cds-border); }
:where(.w-prose) tbody > tr + tr > :is(td, th) { border-block-start: 1px solid var(--cds-border); }
:where(.w-prose) th code:not(pre code) { background: transparent; }
/* черта: .5 border сверху, поля 2 шага / .375em по бокам */
:where(.w-prose) hr { margin: calc(var(--_p-flow) * 2) .375em 0; border: 0; border-top: .5px solid var(--cds-border); }
:where(.w-prose) hr:first-child { margin-top: 0; }
/* сноски .875em secondary */
:where(.w-prose) .footnotes { font-size: .875em; color: var(--w-text-secondary); }
:where(.w-prose) .footnotes > ol { margin-top: 0; }
:where(.w-prose) sup > a { text-decoration: none; }
/* формулы (KaTeX): выносная - по центру, прокрутка вбок, поля 2 */
.w-prose .katex-display-wrap { display: block; direction: ltr; overflow: auto hidden; padding-block: 2px; }
.w-prose .katex-display-wrap > .katex-display { margin: 0; }
.w-prose .katex { direction: ltr; unicode-bidi: isolate; }
.w-md-mathwait { font-family: var(--w-font-mono); color: var(--w-text-secondary); }
.w-md-mathwait-d { display: block; text-align: center; }

/* #rrggbb: квадратик 12, рамка .5 border-200, радиус 4, тень sm, mr 4 */
.w-md-color { display: inline-flex; height: 20px; align-items: center; vertical-align: bottom; }
.w-md-swatch { display: inline-block; width: 12px; height: 12px; flex-shrink: 0; margin-right: 4px; border: .5px solid var(--cds-border); border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); vertical-align: middle; }

/* блок кода (C_ образца): рамка .5 border, фон bg-000 на 50%, радиус 12
   (в пузыре 8), язык 12/17 text-500 с полями 14/14/0/14, код 14/22.75 с
   полями 14; кнопка копирования липкая справа */
.w-mdc { position: relative; border: .5px solid var(--cds-border); border-radius: 12px; background: color-mix(in oklab, var(--w-bg-000, #fff) 50%, transparent); outline: none; }
.w-mdc:focus-visible { box-shadow: 0 0 0 2px var(--cds-fill-accent); }
.w-mdc-plain { border-radius: 8px; }
/* появление без хода: у образца opacity-0 / group-hover:opacity-100 без transition */
.w-mdc-sticky { position: sticky; top: 8px; z-index: 1; float: right; width: 0; height: 48px; padding: 8px 0; opacity: 0; }
.w-mdc:focus-within .w-mdc-sticky { opacity: 1; }
@media (hover: hover) { .w-mdc:hover .w-mdc-sticky { opacity: 1; } }
@media (hover: none), (pointer: coarse) { .w-mdc-sticky { opacity: 1; } }
.w-mdc-copyrow { position: absolute; right: 0; z-index: 10; display: inline-flex; height: 32px; align-items: center; padding: 0 8px; }
.w-mdc-copy { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.w-mdc-lang { padding: 14px 14px 0; font-size: 12px; line-height: 17px; color: var(--w-text-muted); }
.w-mdc-scroll { overflow-x: auto; }
.w-mdc-pre { margin: 0; padding: 14px; border-radius: 12px; font-family: var(--w-font-mono); font-size: 14px; line-height: 22.75px; white-space: pre; font-variation-settings: normal; font-feature-settings: "calt" 0, "liga" 0; }
.w-mdc-plain .w-mdc-pre { border-radius: 8px; }
.w-mdc-pre.w-mdc-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.w-mdc-pre code { display: block; font: inherit; color: hsl(220, 20%, 10%); }
[data-mode='dark'] .w-mdc-pre code { color: hsl(220, 15%, 93%); }

/* Пузырь своего сообщения - набор D_ образца: абзац pre-wrap, между
   блоками 8 (сетка gap-2), списки ps-8 (32) без промежутков, вложенный
   список не последним - снизу 4; цитата - черта 2 border-100 (20%) и
   отступ 8; код в строке - чип .9rem (14.4) danger на text-200/5, рамка
   .5 border-300, радиус .4rem, поля 1/4 */
.w-msg-bubble { white-space: normal; }
.w-md-hp { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.w-md-hq { margin: 0; padding-inline-start: 8px; border-inline-start: 2px solid var(--cds-border-strong); display: flex; flex-direction: column; gap: 8px; }
.w-md-hul, .w-md-hol { margin: 0; padding-inline-start: 32px; }
.w-md-hul { list-style: disc; }
.w-md-hol { list-style: decimal; }
.w-md-hli { white-space: normal; overflow-wrap: anywhere; }
.w-md-hul:not(:last-child) :is(ul, ol), .w-md-hol:not(:last-child) :is(ul, ol) { padding-bottom: 4px; }
.w-md-chip { padding: 1px 4px; border: .5px solid var(--cds-border); border-radius: 6.4px; background: color-mix(in oklab, var(--w-text-secondary) 5%, transparent); color: var(--cds-text-danger); font-family: var(--w-font-mono); font-size: 14.4px; white-space: pre-wrap; font-variation-settings: normal; font-feature-settings: "calt" 0, "liga" 0; }
.w-md-chip.w-md-color { display: inline-flex; height: 20px; align-items: center; }
.w-msg-bubble .w-mdc-pre { white-space: pre-wrap; overflow-wrap: anywhere; }

/* окно внешней ссылки (jM образца): 520, адрес - поле surface-1 с рамкой,
   радиус 8, поля 16/12, не выше 160 с прокруткой; флажок sm с подписью
   14/20, домен моноширинным; предупреждение - danger, радиус 8, поля 12 */
.w-extlink .w-alert-text { margin-bottom: 0; }
.w-extlink-url { max-height: 160px; margin-top: 12px; padding: 12px 16px; overflow-y: scroll; border: 1px solid var(--cds-border); border-radius: 8px; background: var(--w-surface-1); color: var(--w-text-primary); font-size: 14px; line-height: 20px; word-break: break-all; }
.w-extlink-check { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; color: var(--w-text-secondary); font-size: 14px; line-height: 20px; cursor: var(--cds-cursor-interactive); }
.w-extlink-check[data-disabled] { opacity: .4; cursor: default; }
.w-extlink-check code { font-family: var(--w-font-mono); font-size: 13px; }
.w-extlink-warn { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 12px; border: 1px solid var(--cds-border-danger, var(--cds-text-danger)); border-radius: 8px; background: var(--cds-bg-danger, transparent); color: var(--cds-text-danger); font-size: 14px; line-height: 20px; }
.w-extlink-warn-title { margin: 0; font-weight: 500; --w-w: 500; }
.w-extlink-warn-detail { margin: 4px 0 0; font-family: var(--w-font-mono); word-break: break-all; }

/* подсветка в сообщениях там, где разбор Prism расходится с образцом
   (ЗАМЕРЕНО 29.09 в ответе Haiku): shebang bash - цвет комментария,
   встроенные команды bash (echo) - цвет функции, двоеточие json -
   пунктуация */
.w-mdc code:is(.language-bash, .language-sh, .language-shell) .w-pz-important { color: hsl(220, 10%, 48%); }
.w-mdc code:is(.language-bash, .language-sh, .language-shell) .w-pz-builtin { color: hsl(215, 100%, 38%); }
.w-mdc code.language-json .w-pz-operator { color: hsl(220, 15%, 20%); }
[data-mode='dark'] .w-mdc code:is(.language-bash, .language-sh, .language-shell) .w-pz-important { color: hsl(220, 10%, 55%); }
[data-mode='dark'] .w-mdc code:is(.language-bash, .language-sh, .language-shell) .w-pz-builtin { color: hsl(210, 100%, 72%); }
[data-mode='dark'] .w-mdc code.language-json .w-pz-operator { color: hsl(220, 15%, 85%); }
/* окно внешней ссылки - замеры 29.09 (Max): 520 шириной, адрес 472x46 на
   78, строка флажка на 136 высотой 23 (квадрат 18 на 1 ниже, подпись с 26
   от края - gap-xs 8, домен font-mono 14), подвал на 175 (mt-pad-lg 16),
   неготовый флажок и Open link на .4 */
.w-confirm.w-alert.w-extlink { max-width: 520px; }
.w-extlink .w-extlink-check { height: 23px; align-items: flex-start; }
.w-extlink .w-extlink-check .w-rec-cb { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; }
.w-extlink .w-extlink-check .w-rec-cbox { width: 18px; height: 18px; }
.w-extlink .w-extlink-check code { font-size: 14px; line-height: 18px; }

/* Поле ввода - редактор (ProseMirror), см. ChatEditor. ЗАМЕРЕНО у образца
   29.09: 15/21, списки с полем 32 без промежутков, код 14.4 mono
   rgb(141,37,37) на rgba(55,55,52,.05), рамка .5 rgba(31,31,30,.25), радиус
   4.8, поля 1/4. Подсказка - пустой документ (data-empty) */
.w-cmp-pm { position: relative; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; font-variant-ligatures: none; }
.w-cmp-pm p { margin: 0; }
.w-cmp-pm :is(ol, ul) { margin: 0; padding-left: 32px; }
.w-cmp-pm ol { list-style: decimal; }
.w-cmp-pm ul { list-style: disc; }
.w-cmp-pm li { margin: 0; }
.w-cmp-pm code { padding: 1px 4px; border: .5px solid color-mix(in srgb, var(--w-text-primary) 25%, transparent); border-radius: 4.8px; background: color-mix(in oklab, var(--w-text-secondary) 5%, transparent); color: var(--cds-text-danger); font-family: var(--w-font-mono); font-size: .96em; font-variation-settings: normal; font-feature-settings: "calt" 0, "liga" 0; }
.w-cmp-pm s { text-decoration: line-through; }
.w-cmp-pm[data-empty]::before { content: attr(data-placeholder); position: absolute; color: var(--w-text-muted); pointer-events: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 8px); }
.w-cmp-pm[data-dict][data-empty]::before { font-style: italic; }
.w-cmp-pm:focus { outline: none; }
.w-cmp-pm .ProseMirror-trailingBreak { }

/* Своё сообщение - тот же Prose, что у чужого (хозяин 30.09), в пузыре: как
   пузырьковый вариант Prose у образца ([data-variant=bubble]: поля абзацев
   inset/stop 0), строка пузыря 15/20, шаг 8 (= промежуток пузыря) */
.w-msg-bubble.w-prose.w-prose-bubble { --_p-inset: 0px; --_p-stop: 0px; --_p-flow: 8px; display: grid; gap: 0; font-size: 15px; line-height: 20px; white-space: normal; overflow-wrap: anywhere; }
.w-prose-bubble .w-mdc { background: color-mix(in oklab, var(--w-bg-000, #fff) 50%, transparent); }
/* РАЗМЕТКА В ПУЗЫРЕ - правила пузыря образца, а не ответа (ЗАМЕРЕНО 01.10:
   Max в Chrome хозяина, «Markdown rendering demo», и Free в панели, обе
   сборки одинаково; хозяин: «у Клода цифры чёрные, у нас серые»). У образца
   пузырь - свои компоненты (D_: ol/ul «list-decimal / list-disc space-y-2.5
   ps-7» и у тела «[&_ol]:!space-y-0 [&_ol]:ps-8»): отступ списка 32, у пункта
   ни отступа, ни промежутка (шаг = строка 20), маркер цвета ТЕКСТА (у ответа -
   secondary), вложенные - тот же decimal / disc, у вложенного в не последний
   список - pb 4; `код` 14.4 моно, поля 4, радиус 6.4, рамка alpha .1, фон 5%;
   ~~зачёркнутое~~ - линия цвета текста; блок кода - радиус 8 (msg-block-
   radius .5rem), поля 14. Было (мои правила ответа на пузыре): отступ
   30 + 7.5, шаг 23, серый маркер, кружок / «a.», код 13.5 с полями 3.4 и
   радиусом 5.4, зачёркивание 60%, блок кода с радиусом 12. tmp/_bubble_md.py */
.w-msg-bubble.w-prose-bubble :is(ul, ol) { padding-inline-start: 32px; }
.w-msg-bubble.w-prose-bubble ul, .w-msg-bubble.w-prose-bubble ul ul, .w-msg-bubble.w-prose-bubble ol ul { list-style-type: disc; }
.w-msg-bubble.w-prose-bubble ol, .w-msg-bubble.w-prose-bubble ol ol, .w-msg-bubble.w-prose-bubble ul ol { list-style-type: decimal; }
.w-msg-bubble.w-prose-bubble li { margin: 0; padding-inline-start: 0; }
.w-msg-bubble.w-prose-bubble li::marker { color: inherit; }
.w-msg-bubble.w-prose-bubble li > :is(p, ul, ol, blockquote) { margin-top: 0; }
.w-msg-bubble.w-prose-bubble :is(ul, ol):not(:last-child) :is(ul, ol) { padding-bottom: 4px; }
.w-msg-bubble.w-prose-bubble code:not(pre code) { padding: 1px 4px; border: .5px solid var(--cds-border); border-radius: 6.4px; background: color-mix(in oklab, var(--w-text-secondary) 5%, transparent); font-size: 14.4px; line-height: inherit; }
.w-msg-bubble.w-prose-bubble :is(del, s) { text-decoration-color: currentColor; }
.w-msg-bubble.w-prose-bubble .w-mdc, .w-msg-bubble.w-prose-bubble .w-mdc-pre { border-radius: 8px; }
/* цитата посреди своего письма (в начале «> » - плитка ответа): у образца в
   пузыре «border-s-2 border-border-100 ps-2» - черта 2 alpha .2, отступ 8,
   текст основного цвета (у ответа - черта 4 alpha .1, 15, secondary) */
.w-msg-bubble.w-prose-bubble blockquote { margin-inline: 0; border-inline-start-width: 2px; border-inline-start-color: var(--cds-border-strong, color-mix(in srgb, var(--w-text-primary) 20%, transparent)); padding-inline-start: 8px; color: inherit; }

/* ── Файлы собеседника: Outputs образца (30.09) ────────────────────────────
   Числа - S/out/capture.md; правила листа (sheet-card-*) перенесены из CSS
   образца (shared-styles, S/out/sheet_card.css) дословно, с @property. */
@property --sheet-card-sweep { syntax: "<angle>"; inherits: false; initial-value: 90deg; }
@property --sheet-card-lit { syntax: "<number>"; inherits: false; initial-value: .55; }
@property --sheet-card-light-angle { syntax: "<angle>"; inherits: false; initial-value: 165deg; }
@property --sheet-card-light-reach { syntax: "<percentage>"; inherits: false; initial-value: 55%; }
.w-ofiles { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 8px 8px; --cds-ease-out: cubic-bezier(.165, .84, .44, 1); --cds-ease-snap: cubic-bezier(.32, .72, 0, 1); }
.w-oimgs { display: flex; width: 100%; flex-wrap: wrap; align-items: flex-end; justify-content: flex-start; gap: 0 8px; }
.w-oimg { position: relative; isolation: isolate; display: flex; width: fit-content; height: fit-content; max-width: min(100%, 288px); flex-shrink: 0; margin-top: 8px; border-radius: 10px; overflow: hidden; outline: none; }
/* кольцо плитки поверх картинки (Card after:shadow-card-ring, --cds-ring-color
   border-strong, inset 1px; ЗАМЕРЕНО 30.09: .2 в обеих темах) */
.w-oimg::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--cds-border-strong); pointer-events: none; }
.w-oimg-fill { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--w-surface-1); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); pointer-events: none; }
.w-oimg-btn { position: relative; display: flex; align-items: center; justify-content: center; min-width: 80px; min-height: 120px; max-width: 100%; cursor: var(--cds-cursor-interactive); outline: none; border-radius: inherit; }
.w-oimg-btn img { display: block; max-width: 100%; height: auto; object-fit: contain; }
.w-oimg:has(.w-oimg-btn:focus-visible) { box-shadow: var(--cds-focus-shadow); }

/* карточка-лист */
.w-sheet {
  --t10: transparent; --t50: var(--cds-gray-50, #f0efec); --t100: transparent; --t200: transparent; --t300: transparent; --t600: var(--w-text-muted); --t700: transparent; --t800: #20201f;
  position: relative; isolation: isolate; display: flex; width: 100%; max-width: 520px; box-sizing: border-box;
  align-items: center; gap: 20px; overflow: hidden; padding: 6px 16px 8px 20px; border-radius: 12px;
  border: .5px solid var(--cds-border-strong); text-align: left; font-size: 14px; line-height: 21px;
  background-color: color-mix(in oklab, #fff 30%, transparent);
  background-image: linear-gradient(to bottom, var(--sh-from, transparent), var(--sh-to, transparent));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  transition: background-color var(--cds-dur-base) var(--cds-ease-out), border-color var(--cds-dur-base) var(--cds-ease-out), box-shadow var(--cds-dur-base) var(--cds-ease-out), --sh-from var(--cds-dur-base) var(--cds-ease-out), --sh-to var(--cds-dur-base) var(--cds-ease-out);
  --sheet-card-mark-delay: var(--cds-dur-snap);
}
@property --sh-from { syntax: "<color>"; inherits: false; initial-value: transparent; }
@property --sh-to { syntax: "<color>"; inherits: false; initial-value: transparent; }
.w-sheet[data-tint=blue] { --t10: #fafcff; --t50: #e7f1fb; --t100: #cde2fb; --t200: #9ec5f4; --t300: #6da7ec; --t600: #184f95; --t700: #0d366b; --t800: #032042; }
.w-sheet[data-tint=green] { --t10: #fafdfa; --t50: #e5f4e4; --t100: #caeac7; --t200: #91d68b; --t300: #55bf50; --t600: #006300; --t700: #074506; --t800: #11260f; }
.w-sheet[data-tint=yellow] { --t10: #fefcf8; --t50: #f9eeda; --t100: #f9dca4; --t200: #fab219; --t300: #db9300; --t600: #734500; --t700: #512e00; --t800: #311a00; }
.w-sheet[data-tint=violet] { --t10: #fcfbff; --t50: #efedff; --t100: #dfdbfd; --t200: #bfb9f5; --t300: #a096eb; --t600: #4a3aa7; --t700: #322777; --t800: #1d1649; }
.w-sheet[data-tint=orange] { --t10: #fefbfa; --t50: #f9ece7; --t100: #f7d8cb; --t200: #f4ae94; --t300: #ec835a; --t600: #863311; --t700: #5d230b; --t800: #371407; }
.w-sheet[data-tint=magenta] { --t10: #fefbfc; --t50: #faebf0; --t100: #f9d4e2; --t200: #f3a8c3; --t300: #e87ba4; --t600: #862a4c; --t700: #5e1c34; --t800: #390f1f; }
.w-sheet:not([data-tint=gray]) { --sh-from: color-mix(in oklab, var(--t10) 10%, transparent); --sh-to: var(--sh-from); }
.w-sheet:not([data-tint=gray]):hover { --sh-from: color-mix(in oklab, var(--t10) 40%, transparent); --sh-to: var(--sh-from); }
.w-sheet:hover { border-color: var(--cds-alpha-4); }
.w-sheet[data-open] { background-color: color-mix(in oklab, var(--t800) 5%, transparent); }
.w-sheet[data-open][data-tint=gray] { background-color: var(--cds-alpha-1); }
.w-sheet:has(> .w-sheet-open:focus-visible) { box-shadow: var(--cds-focus-shadow); }
[data-mode='dark'] .w-sheet { background-color: color-mix(in oklab, #1a1a19 30%, transparent); }
[data-mode='dark'] .w-sheet:not([data-tint=gray]) { --sh-from: color-mix(in oklab, var(--t800) 15%, transparent); --sh-to: var(--sh-from); }
[data-mode='dark'] .w-sheet:not([data-tint=gray]):hover { --sh-from: color-mix(in oklab, var(--t800) 33%, transparent); --sh-to: var(--sh-from); }
[data-mode='dark'] .w-sheet[data-open] { background-color: color-mix(in oklab, var(--t100) 10%, transparent); }
[data-mode='dark'] .w-sheet[data-open][data-tint=gray] { background-color: var(--cds-alpha-1); }
.w-sheet-open { position: absolute; inset: 0; z-index: 0; border: 0; padding: 0; margin: 0; background: none; border-radius: inherit; cursor: var(--cds-cursor-interactive); outline: none; }
.w-sheet-ico { position: relative; width: 56px; height: 56px; flex-shrink: 0; pointer-events: none; }
.w-sheet-under, .w-sheet-page {
  position: absolute; left: 0; right: 0; top: 10px; height: 72px; box-sizing: border-box;
  border-radius: 8px; border: .5px solid var(--t200);
  background-color: var(--t50);
  box-shadow: inset .5px 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .4), 0 1px 2px rgba(0, 0, 0, .05);
  --sheet-card-lit: .55;
}
.w-sheet[data-tint=gray] :is(.w-sheet-under, .w-sheet-page) { border-color: var(--cds-alpha-2); }
.w-sheet-page {
  display: flex; align-items: center; justify-content: center; overflow: hidden; padding-bottom: 18px;
  color: var(--t600);
  box-shadow: inset .5px 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .4), var(--cds-shadow-lg);
}
.w-sheet[data-tint=gray] .w-sheet-page { color: var(--w-text-muted); }
.w-sheet-page-thumb { left: -4px; right: -4px; padding: 0; border-radius: 6px; border-color: var(--cds-alpha-3); background-color: #fff; box-shadow: var(--cds-shadow-sm); }
.w-sheet-page-thumb img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.w-sheet:hover .w-sheet-page { translate: 0 -2px; --sheet-card-lit: .75; }
[data-mode='dark'] .w-sheet :is(.w-sheet-under, .w-sheet-page) { background-color: var(--t800); border-color: var(--t700); box-shadow: inset .5px 1px 0 rgba(255, 255, 255, .15), inset 0 0 0 1px rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .05); --sheet-card-lit: .08; }
[data-mode='dark'] .w-sheet .w-sheet-page { color: var(--t300); --sheet-card-ink-boost: 5%; box-shadow: inset .5px 1px 0 rgba(255, 255, 255, .15), inset 0 0 0 1px rgba(255, 255, 255, .05), var(--cds-shadow-lg); }
[data-mode='dark'] .w-sheet[data-tint=gray] :is(.w-sheet-under, .w-sheet-page) { background-color: #20201f; border-color: var(--cds-alpha-2); }
[data-mode='dark'] .w-sheet[data-tint=gray] .w-sheet-page { color: var(--w-text-muted); }
[data-mode='dark'] .w-sheet:hover .w-sheet-page { --sheet-card-lit: .12; }
.w-sheet-glyph { position: relative; display: flex; }
.w-sheet-text { position: relative; display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; padding-top: 4px; pointer-events: none; }
.w-sheet-title { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15px; line-height: 20px; color: var(--w-text-primary); }
.w-sheet-sub { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13px; line-height: 17px; color: var(--w-text-muted); }
.w-sheet-dot { padding: 0 4px; }
.w-sheet-acts { position: relative; display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.w-odl-all .w-odl-ic { display: inline-flex; margin-inline-start: -4px; }

/* правила образца (sheet-card-*), дословно */
.sheet-card-page, .sheet-card-under { background-image: linear-gradient(var(--sheet-card-light-angle, 165deg) in oklab, rgb(255 255 255 / var(--sheet-card-lit, .55)) 0%, transparent var(--sheet-card-light-reach, 55%)); }
.sheet-card-page { transition-property: translate, background-color, border-color, color, --sheet-card-lit, --sheet-card-light-angle, --sheet-card-light-reach; transition-duration: var(--cds-dur-base); transition-timing-function: var(--cds-ease-out); }
@media (hover: hover) { [data-sheet-kind]:hover .sheet-card-page { --sheet-card-light-angle: 200deg; --sheet-card-light-reach: 70%; transition-duration: var(--cds-dur-base), var(--cds-dur-base), var(--cds-dur-base), var(--cds-dur-base), var(--cds-dur-slow), var(--cds-dur-slow), var(--cds-dur-slow); } }
.sheet-card-under { transform-origin: 50% 0; opacity: 0; transition: transform var(--cds-dur-base) var(--cds-ease-snap), opacity var(--cds-dur-base) var(--cds-ease-out); transform: translate(0) translateY(62px) rotate(0) translateY(-62px); }
@media (hover: hover) { [data-sheet-kind]:hover .sheet-card-under { opacity: .7; transition: transform var(--cds-dur-slow) var(--cds-ease-out), opacity var(--cds-dur-snap) var(--cds-ease-out); transform: translate(-2px) translateY(62px) rotate(-4deg) translateY(-62px); } }
.sheet-card-marks { --sheet-card-ink: color-mix(in oklab, currentColor calc(25% + var(--sheet-card-ink-boost, 0%)), transparent); --sheet-card-ink-stamp: color-mix(in oklab, currentColor calc(35% + var(--sheet-card-ink-boost, 0%)), transparent); width: 28px; height: 18px; position: absolute; top: 38px; left: 14px; }
.sheet-card-part { opacity: 0; transition: opacity var(--cds-dur-snap) var(--cds-ease-out); display: block; position: absolute; }
.sheet-card-group { inset: 0; }
.sheet-card-stamp { --sheet-card-ink: var(--sheet-card-ink-stamp); }
.sheet-card-rule { left: var(--sheet-card-x, 0px); top: var(--sheet-card-y, 0px); width: var(--sheet-card-w, 10px); background: var(--sheet-card-ink); transform-origin: 0; height: 1px; }
.sheet-card-dot { left: var(--sheet-card-x, 0px); top: var(--sheet-card-y, 0px); background: var(--sheet-card-ink); border-radius: 50%; width: 2px; height: 2px; }
.sheet-card-ride { translate: var(--sheet-card-w, 0px) 0; }
.sheet-card-fill { left: var(--sheet-card-x, 0px); top: var(--sheet-card-y, 0px); width: var(--sheet-card-w, 10px); height: var(--sheet-card-h, 3px); background: color-mix(in oklab, currentColor calc(var(--sheet-card-o, .35) * 100% + var(--sheet-card-ink-boost, 0%)), transparent); border-radius: .5px; }
.sheet-card-svg { left: var(--sheet-card-x, 0px); top: var(--sheet-card-y, 0px); overflow: visible; }
.sheet-card-svg path { fill: none; stroke: var(--sheet-card-ink); stroke-width: 1px; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.sheet-card-caret { left: var(--sheet-card-x, 0px); top: var(--sheet-card-y, 0px); width: 1px; height: var(--sheet-card-h, 7px); background: color-mix(in oklab, currentColor calc(60% + var(--sheet-card-ink-boost, 0%)), transparent); }
.sheet-card-hash { left: var(--sheet-card-x, 0px); top: var(--sheet-card-y, 0px); width: 5px; height: 5px; }
.sheet-card-hash > span { background: var(--sheet-card-ink); border-radius: 1px; position: absolute; }
.sheet-card-hash > span:nth-child(-n+2) { transform-origin: 50% 0; width: 1px; height: 5px; top: 0; }
.sheet-card-hash > span:first-child { left: 1px; }
.sheet-card-hash > span:nth-child(2) { left: 3px; }
.sheet-card-hash > span:nth-child(n+3) { transform-origin: 0; width: 5px; height: 1px; left: 0; }
.sheet-card-hash > span:nth-child(3) { top: 1px; }
.sheet-card-hash > span:nth-child(4) { top: 3px; }
.sheet-card-sweep { left: var(--sheet-card-x, 0px); top: var(--sheet-card-y, 0px); width: 11px; height: 11px; box-shadow: inset 0 0 0 1px var(--sheet-card-ink); border-radius: 50%; }
.sheet-card-sweep:after { content: ""; background: conic-gradient(var(--sheet-card-ink-stamp) var(--sheet-card-sweep), transparent 0); border-radius: 50%; position: absolute; inset: 2px; }
.sheet-card-zip { left: var(--sheet-card-x, 0px); top: var(--sheet-card-y, 0px); width: 6px; height: 15px; }
.sheet-card-zip > span { left: 0; top: calc(var(--sheet-card-i) * 3px); background: color-mix(in oklab, currentColor calc(45% + var(--sheet-card-ink-boost, 0%)), transparent); width: 3px; height: 1px; position: absolute; }
.sheet-card-zip > span:nth-child(2n) { left: 3px; }
@media (hover: hover) {
  [data-sheet-kind]:hover .sheet-card-part { opacity: 1; transition-duration: 0s; }
  [data-sheet-kind]:hover .sheet-card-rule, [data-sheet-kind]:hover .sheet-card-hash > .sheet-card-tick:nth-child(n+3) { animation: sheet-card-draw-x var(--sheet-card-dur, var(--cds-dur-base)) var(--cds-ease-out) calc(var(--sheet-card-mark-delay) + var(--sheet-card-d, 0s)) both; }
  [data-sheet-kind]:hover .sheet-card-hash > .sheet-card-tick:nth-child(-n+2) { animation: sheet-card-draw-y var(--sheet-card-dur, var(--cds-dur-base)) var(--cds-ease-out) calc(var(--sheet-card-mark-delay) + var(--sheet-card-d, 0s)) both; }
  [data-sheet-kind]:hover .sheet-card-svg .sheet-card-stroke { animation: sheet-card-dash var(--sheet-card-dur, .3s) var(--cds-ease-out) calc(var(--sheet-card-mark-delay) + var(--sheet-card-d, 0s)) both; }
  [data-sheet-kind]:hover .sheet-card-dot { animation: sheet-card-pop var(--cds-dur-snap) var(--cds-ease-out) calc(var(--sheet-card-mark-delay) + var(--sheet-card-d, 0s)) both; }
  [data-sheet-kind]:hover .sheet-card-stamp { animation: sheet-card-stamp var(--cds-dur-base) var(--cds-ease-out) calc(var(--sheet-card-mark-delay) + var(--sheet-card-d, 0s)) both; }
  [data-sheet-kind]:hover .sheet-card-stamp .sheet-card-stroke, [data-sheet-kind]:hover .sheet-card-static .sheet-card-stroke { animation: none; }
  [data-sheet-kind]:hover .sheet-card-group { animation: sheet-card-reveal-x var(--sheet-card-dur, var(--cds-dur-slow)) var(--sheet-card-steps, var(--cds-ease-out)) calc(var(--sheet-card-mark-delay) + var(--sheet-card-d, 0s)) both; }
  [data-sheet-kind]:hover .sheet-card-group > .sheet-card-part { animation: none; }
  [data-sheet-kind]:hover .sheet-card-typed { animation-timing-function: var(--sheet-card-steps); }
  [data-sheet-kind]:hover .sheet-card-ride { animation: sheet-card-ride var(--sheet-card-dur, .3s) var(--sheet-card-steps) calc(var(--sheet-card-mark-delay) + var(--sheet-card-d, 0s)) both; }
  [data-sheet-kind]:hover .sheet-card-caret:not(.sheet-card-ride) { animation: sheet-card-blink .8s steps(1, end) calc(var(--sheet-card-mark-delay) + var(--sheet-card-d, 0s)) both; }
  [data-sheet-kind]:hover .sheet-card-sweep:after { animation: sheet-card-sweep .32s var(--cds-ease-out) calc(var(--sheet-card-mark-delay) + 80ms) both; }
  [data-sheet-kind]:hover .sheet-card-tight { animation: sheet-card-tighten .32s var(--cds-ease-out) calc(var(--sheet-card-mark-delay) + var(--sheet-card-d, 0s)) both; }
  [data-sheet-kind]:hover .sheet-card-zip > .sheet-card-tick { animation: sheet-card-appear 1ms linear calc(var(--sheet-card-mark-delay) + var(--sheet-card-i) * 40ms) both; }
}
[data-sheet-kind=code] .sheet-card-glyph { transition-property: opacity, translate; }
@media (hover: hover) { [data-sheet-kind=code]:hover .sheet-card-glyph { translate: -1px; } }
@keyframes sheet-card-draw-x { 0% { transform: scaleX(0); } }
@keyframes sheet-card-draw-y { 0% { transform: scaleY(0); } }
@keyframes sheet-card-dash { 0% { stroke-dashoffset: 1px; } }
@keyframes sheet-card-pop { 0% { transform: scale(0); } }
@keyframes sheet-card-stamp { 0% { opacity: 0; } 2% { opacity: 1; } to { opacity: .72; } }
@keyframes sheet-card-reveal-x { 0% { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes sheet-card-ride { 0% { translate: 0; } }
@keyframes sheet-card-blink { 0%, 50%, to { opacity: 1; } 25%, 75% { opacity: 0; } }
@keyframes sheet-card-sweep { 0% { --sheet-card-sweep: 0deg; } }
@keyframes sheet-card-tighten { 0% { translate: var(--sheet-card-tx, 0px) var(--sheet-card-ty, 0px); opacity: 0; } }
@keyframes sheet-card-appear { 0% { opacity: 0; } }
/* уменьшенное движение - как у образца: второго листа и пометок нет,
   свет не поворачивается, глиф кода не сдвигается */
@media (prefers-reduced-motion: reduce) {
  .sheet-card-under, .sheet-card-marks { display: none; }
  [data-sheet-kind]:hover .sheet-card-page { --sheet-card-light-angle: 165deg; --sheet-card-light-reach: 55%; }
  [data-sheet-kind=code]:hover .sheet-card-glyph { translate: none; }
}
:root[data-reduce-motion=true] .sheet-card-under, :root[data-reduce-motion=true] .sheet-card-marks { display: none; }
:root[data-reduce-motion=true] [data-sheet-kind]:hover .sheet-card-page { --sheet-card-light-angle: 165deg; --sheet-card-light-reach: 55%; }
:root[data-reduce-motion=true] [data-sheet-kind=code]:hover .sheet-card-glyph { translate: none; }

/* ── просмотр файла сбоку ── */
.w-view-pane[data-open]:has(> .w-view-in > .w-oview) { background: var(--w-surface-3); }
/* Развёрнутый просмотр во весь экран - ОВЕРЛЕЙ, колонку чата не трогаем.
   Было: display:none колонки + position:fixed панели вынимали колонку из
   потока - scrollTop виртуальной ленты сбрасывался в 0, при сворачивании
   сообщение прыгало на ~220 px (хозяин 30.09 «чат дёргается»; ПОЙМАНО rAF
   _exp_jit_live.py: nart 16->134, y -437->-211). Теперь колонка и разделитель
   стоят на местах под непрозрачным оверлеем, поток не меняется - лента не
   перекомпоновывается и scrollTop цел. Во весь экран фиксируем только
   содержимое просмотра (.w-view-in), панель остаётся в потоке своим слотом. */
.w-chat-split[data-expanded] .w-view-sep { pointer-events: none; }
/* Развёрнутый просмотр - ОБЛАСТЬ ПРАВЕЕ ПАНЕЛИ, а не всё окно. ЗАМЕРЕНО
   01.10 у образца (встроенный браузер, Free, файлы notes.md / hello.py):
   панель свёрнута на время просмотра - кнопка «Show sidebar» 24x24 на 12,12
   видна поверх развёрнутого просмотра и жмётся (elementFromPoint - она),
   шапка просмотра отступает: Preview / Code на x 48; наведение на кнопку -
   выпадение панели поверх просмотра; щелчок - панель встаёт на место, а
   просмотр сжимается правее неё (сегменты на краю панели + 8).
   Было у нас 30.09: оверлей inset 0 на всё окно, кнопка панели торчала на
   «N» у «Notes»; 30.09 (поздно) я поднял слой просмотра до z 70 и СПРЯТАЛ
   кнопку - это было НЕ как у образца, откачено. Теперь место берётся у
   .w-app-main (ChatSplit пишет --w-xp-left / --w-xp-top), кнопка свёрнутой
   панели (z 50) поверх, а шапке - поле 48, пока просмотр от края окна */
.w-chat-split[data-expanded] .w-view-in { position: fixed; top: var(--w-xp-top, var(--w-frame-h, 0px)); left: var(--w-xp-left, 0px); right: 0; bottom: 0; z-index: 70; height: auto; margin: 0; border-radius: 0; background: var(--w-surface-3); }
html:not([data-frame])[data-view-expanded-edge] .w-chat-split[data-expanded] .w-oview-head { padding-left: 48px; }
.w-oview { display: flex; height: 100%; min-height: 0; flex-direction: column; background: var(--w-surface-3); }
.w-oview-head { position: relative; display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; background: var(--w-surface-3); }
.w-oview-head[data-line]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-bottom: .5px solid var(--cds-border); pointer-events: none; }
/* у образца обёртка overflow-hidden; как там выглядит кольцо сегмента, НЕ
   снято - у нас visible, чтобы кольцо не резалось (заголовок режется сам
   многоточием) */
.w-oview-lead { display: flex; min-width: 0; flex: 1; align-items: center; gap: 8px; overflow: visible; }
.w-oview-title { min-width: 0; margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding-left: 12px; font-size: 14px; line-height: 20px; font-weight: 400; --w-w: 400; color: var(--w-text-secondary); }
.w-oview-title[data-seg] { padding-left: 0; }
.w-oview-sep { color: var(--w-text-muted); opacity: .5; }
.w-oview-ext { color: var(--w-text-muted); }
.w-oview-acts { display: flex; flex-shrink: 0; align-items: center; gap: 4px; }
.w-oview-body { position: relative; min-height: 0; flex: 1; overflow: auto; background: var(--w-surface-3); }
.w-oview-body > .w-up-csv { position: absolute; inset: 0; }
/* «Copy | ▾» - SplitButton образца: 84 x 28, радиус 7, общая тень */
.w-osplit { position: relative; display: inline-flex; width: fit-content; flex-shrink: 0; align-items: stretch; border-radius: 7px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.w-osplit-main.w-btn { height: 28px; padding: 0 10px; border-radius: 7px 0 0 7px; }
.w-osplit-main .w-btn-fill { border-radius: 7px 0 0 7px; }
.w-osplit-more.w-btn { width: 28px; height: 28px; padding: 0 4px; border-radius: 0 7px 7px 0; }
.w-osplit-more .w-btn-fill { border-radius: 0 7px 7px 0; }
.w-osplit-more .w-icon-glyph { color: var(--w-text-muted); }
.w-osplit-seam { width: 1px; flex-shrink: 0; align-self: stretch; background: var(--w-fill-secondary); }
/* переключатель Preview / Code - «File view mode» образца: 54 x 28 */
.w-oseg { position: relative; display: inline-flex; flex-shrink: 0; height: 28px; box-sizing: border-box; padding: 1px; border-radius: 7px; background: rgb(246, 246, 244); }
[data-mode='dark'] .w-oseg { background: rgba(255, 255, 255, .05); }
.w-oseg-thumb { position: absolute; left: 1px; top: 1px; width: 26px; height: 26px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--cds-alpha-2), 0 1px 2px rgba(0, 0, 0, .05); transition: transform var(--cds-dur-base) cubic-bezier(.165, .84, .44, 1); }
[data-mode='dark'] .w-oseg-thumb { background: hsl(from #fff h s l / 10%); }
.w-oseg-item { position: relative; z-index: 1; display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 5px; color: var(--w-text-muted); cursor: var(--cds-cursor-interactive); outline: none; }
.w-oseg-item[data-on] { color: var(--w-text-primary); }
.w-oseg-item:focus-visible { box-shadow: var(--cds-focus-shadow); }
@media (prefers-reduced-motion: reduce) { .w-oseg-thumb { transition: none; } }
:root[data-reduce-motion=true] .w-oseg-thumb { transition: none; }
/* код */
.w-ocode-scroll { position: absolute; inset: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--w-scrollbar) transparent; }
.w-ocode { padding-right: 64px; outline: none; }
.w-ocode:focus-visible, .w-omd:focus-visible, .w-obig-text:focus-visible { box-shadow: var(--cds-focus-shadow); }
.w-ocode .w-up-line:hover { background: var(--w-surface-1); }
/* md - standard-markdown образца */
.w-omd { max-width: 768px; margin: 0 auto; padding: 24px 64px 24px 44px; outline: none; line-height: 26.4px; color: var(--w-text-primary); }
.w-omd-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.w-omd-grid > :last-child { margin-bottom: 0 !important; }
.w-omd :is(p, li) { font-size: 16px; line-height: 24px; overflow-wrap: break-word; }
.w-omd p { margin: 0; }
.w-omd :is(h1, h2, h3, h4, h5, h6) { margin: 12px 0 -4px; font-weight: 600; --w-w: 600; overflow-wrap: break-word; }
.w-omd h1 { font-size: 22px; line-height: 26.4px; }
.w-omd h2 { font-size: 18px; line-height: 26.4px; }
.w-omd :is(h3, h4, h5, h6) { margin-top: 8px; font-size: 16px; line-height: 24px; }
.w-omd :is(ul, ol) { display: flex; flex-direction: column; gap: 4px; margin: 0 0 12px; padding-left: 32px; }
.w-omd ul { list-style: disc; }
.w-omd ol { list-style: decimal; }
.w-omd li { padding-left: 8px; }
.w-omd .w-md-table-wrap, .w-omd .w-md-table { margin-bottom: 24px; }
.w-omd table { min-width: 100%; border-collapse: collapse; font-size: 14px; line-height: 23.8px; }
.w-omd th { padding: 8px 16px 8px 0; text-align: left; font-weight: 600; --w-w: 600; border-bottom: .5px solid rgba(30, 30, 29, .6); }
.w-omd td { padding: 8px 16px 8px 0; border-bottom: .5px solid rgba(30, 30, 29, .3); }
[data-mode='dark'] .w-omd th { border-bottom-color: rgba(250, 249, 245, .6); }
[data-mode='dark'] .w-omd td { border-bottom-color: rgba(250, 249, 245, .3); }
/* большой текст */
.w-obig { display: flex; height: 100%; flex-direction: column; }
.w-onote { display: flex; flex-shrink: 0; align-items: flex-start; gap: 8px; margin: 8px; padding: 12px 16px; border-radius: 12px; background: var(--w-surface-1); box-shadow: 0 0 0 1px var(--cds-alpha-2); font-size: 14px; line-height: 20px; color: var(--w-text-primary); }
.w-onote-ic { display: flex; min-height: 20px; flex-shrink: 0; align-items: center; color: var(--w-text-secondary); }
.w-onote-text { min-width: 0; flex: 1; }
.w-obig-text { min-height: 0; flex: 1; overflow-y: auto; padding: 16px; white-space: pre-wrap; word-break: break-all; font-family: var(--w-font-mono); font-size: 12px; line-height: 17px; outline: none; scrollbar-width: thin; }
/* html / svg */
.w-oframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
/* xlsx */
.w-oxl { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; color: #1f1f1f; font-family: 'Segoe UI', system-ui, sans-serif; font-size: 11px; }
.w-oxl-grid td { font-size: 13px; }
.w-oxl-fx { display: flex; height: 32px; flex-shrink: 0; align-items: center; gap: 8px; padding: 0 8px; border-bottom: 1px solid #e1e1e1; }
.w-oxl-fx-ic { font-style: italic; color: #8a8a8a; font-family: Georgia, serif; }
.w-oxl-scroll { min-height: 0; flex: 1; overflow: auto; scrollbar-width: thin; }
.w-oxl-grid { border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.w-oxl-grid th { position: sticky; top: 0; z-index: 2; height: 16px; padding: 0; line-height: 15px; background: #eee; color: #555; font-weight: 400; text-align: center; border-right: 1px solid #e1e1e1; border-bottom: 1px solid #e1e1e1; }
.w-oxl-grid .w-oxl-rn { position: sticky; left: 0; z-index: 1; width: 24px; min-width: 24px; height: 20.8px; line-height: 19px; box-sizing: border-box; background: #eee; border-bottom: 1px solid #e2e4ea; }
.w-oxl-grid .w-oxl-corner { left: 0; z-index: 3; width: 24px; min-width: 24px; }
.w-oxl-grid tbody tr { height: 20.8px; }
.w-oxl-grid td { height: 20.8px; box-sizing: border-box; line-height: 19px; padding: 0 3px; overflow: hidden; white-space: nowrap; text-overflow: clip; border-right: 1px solid #e2e4ea; border-bottom: 1px solid #e2e4ea; }
.w-oxl-grid td[data-num] { text-align: right; }
.w-oxl-grid td[data-on] { box-shadow: inset 0 0 0 2px #1a73e8; }
.w-oxl-tabs { display: flex; height: 40px; flex-shrink: 0; align-items: stretch; gap: 0; padding: 0 4px; border-top: 1px solid #e1e1e1; background: #f8f8f8; }
.w-oxl-tab { margin: 0 2px 6px; padding: 0 14px; border: 1px solid transparent; border-top: 0; border-radius: 0 0 4px 4px; background: none; font: inherit; font-size: 12px; color: #444; cursor: var(--cds-cursor-interactive); }
.w-oxl-tab[aria-selected='true'] { background: #fff; border-color: #e1e1e1; color: #1f1f1f; }

/* SVG в просмотре */
.w-osvg { position: absolute; inset: 0; background: var(--w-surface-3); }
.w-osvg-scroll { position: absolute; inset: 0; overflow: auto; padding: 16px; scrollbar-width: thin; }
.w-osvg-scroll img { display: block; max-width: none; }
.w-osvg-zoom { position: absolute; right: 8px; bottom: 8px; display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; border: .5px solid var(--cds-border-strong); box-shadow: var(--cds-shadow-sm); background: color-mix(in oklab, var(--w-surface-3) 60%, transparent); backdrop-filter: blur(12px); }
.w-osvg-zoom button { display: flex; width: 34px; height: 32px; align-items: center; justify-content: center; border: 0; padding: 0; background: none; color: var(--w-text-secondary); cursor: var(--cds-cursor-interactive); }
.w-osvg-zoom button + button { border-top: .5px solid var(--cds-border); }
.w-osvg-zoom button:hover { background: var(--w-fill-ghost-hover, rgba(0,0,0,.05)); color: var(--w-text-primary); }
.w-osvg-zoom button:focus-visible { outline: 2px solid var(--w-focus-outline); outline-offset: -2px; }

/* при открытом просмотре файла у образца справа в шапке беседы кнопок нет */
.w-chat-head-end[hidden] { display: none !important; }

/* элемент сетки раздела не шире карточки: длинное имя файла («Quarterly
   financial summary ...») растягивало сетку, и тип справа уезжал за край */
.w-ap-grid { grid-template-columns: minmax(0, 1fr); }
.w-ap-grid > * { min-width: 0; }

/* развёрнутый просмотр файла (fixed, z 70): выпадение свёрнутой панели - поверх
   него (в Wall3 кнопка панели над просмотром, в полосе рамки) */
/* только в окне Wall3: на сайте развёрнутый просмотр закрывает и кнопку
   панели (у образца inset 0 поверх всего) */
html[data-frame][data-view-expanded] .w-app[data-collapsed] .w-sb { z-index: 80; }
/* сайт: выпадение (Ctrl+B при развёрнутом просмотре) - тоже поверх, но только
   пока оно открыто; в покое кнопка панели под просмотром */
html[data-view-expanded] .w-app[data-collapsed][data-hovering] .w-sb { z-index: 80; }

/* Expand у образца max-md:hidden - при окне уже 768 кнопки нет */
@media (max-width: 767.98px) { .w-oview-exp { display: none !important; } }


/* ── Знакомство после создания учётной записи (02.10, копия /onboarding
   claude.ai; числа - S/signup/capture.md) ─────────────────────────────── */
body:has(.w-onb) { background: var(--w-page-bg); }
.w-onb {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background: var(--w-page-bg);
  font-size: 14px;
  line-height: 21px;
  color: var(--w-text-primary);
}
.w-onb-top { display: flex; justify-content: center; padding-top: 40px; }
/* у образца ClaudeLogo 112x24 с -translate-x-0.5; у нас знак «Wall» 78x24 */
.w-onb-logo { display: block; width: 78px; height: 24px; transform: translateX(-2px); color: var(--w-text-primary); }
.w-onb-mid { display: flex; width: 100%; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 40px 16px; }
.w-onb-col { display: flex; width: 100%; max-width: 450px; flex-direction: column; align-items: center; gap: 20px; }
/* у образца max-w-md (448) внутри колонки 450 стоит у ЛЕВОГО края
   (обёртка flex-col без items-center), не по центру - x 536, не 537 */
.w-onb-in { width: 100%; max-width: 448px; align-self: flex-start; text-align: center; }
.w-onb-anim { opacity: 0; }
.w-onb-head { margin-bottom: 16px; }
/* font-display: anthropic-serif 38/45.6, вес 330 'opsz' 48; тёмная - вес
   300 и 'wght' 290 (общее правило тёмной темы opsz теряет - своё здесь) */
.w-onb-title {
  margin: 0 0 4px;
  font-family: 'Anthropic Serif', var(--cds-font-voice);
  font-size: 38px;
  line-height: 45.6px;
  font-weight: 330; --w-w: 330;
  font-variation-settings: 'opsz' 48 !important;
  color: var(--w-text-primary);
}
[data-mode='dark'] .w-onb-title { font-weight: 300; font-variation-settings: 'GRAD' 0, 'opsz' 48, 'wght' 290 !important; }
.w-onb-sub { margin: 0; font-size: 15px; line-height: 20px; color: var(--w-text-secondary); }
/* карточка формы: bg-surface-3 rounded-2xl p-5 border shadow-sm */
.w-onb-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--w-border);
  border-radius: 16px;
  background: var(--w-surface-3);
  box-shadow: var(--w-shadow-sm);
  text-align: center;
}
.w-onb-checks { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; text-align: left; }
.w-onb-field { display: flex; flex-direction: column; gap: 8px; }
.w-onb-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--w-text-secondary);
  cursor: var(--cds-cursor-interactive);
  user-select: none;
}
.w-onb-cb { position: relative; display: inline-flex; flex-shrink: 0; outline: none; cursor: var(--cds-cursor-interactive); }
.w-onb-cbox {
  position: relative;
  display: flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid var(--w-border-strong);
  border-radius: 5px;
  background: transparent;
  color: var(--w-text-primary);
  transition: background-color .06s var(--w-ease-out), border-color .06s var(--w-ease-out);
}
@media (hover: hover) {
  .w-onb-cb:not([data-checked]):hover .w-onb-cbox { border-color: var(--cds-border-stronger); }
  .w-onb-cb[data-checked]:hover .w-onb-cbox { background: var(--cds-fill-accent-hover); }
}
.w-onb-cb[data-checked] .w-onb-cbox { border-color: transparent; background: var(--cds-fill-accent); }
.w-onb-cmark { position: absolute; inset: 1px; display: flex; color: #fff; clip-path: inset(0 100% 0 0); transition: clip-path .12s var(--w-ease-out); }
.w-onb-cb[data-checked] .w-onb-cmark { clip-path: inset(0); transition-duration: .2s; }
.w-onb-cb:focus-visible .w-onb-cbox { box-shadow: var(--cds-focus-shadow); }
:where([data-reduce-motion='true']) .w-onb-cbox, :where([data-reduce-motion='true']) .w-onb-cmark { transition: none; }
@media (prefers-reduced-motion: reduce) { .w-onb-cbox, .w-onb-cmark { transition: none; } }
.w-onb-cbtext { display: block; }
.w-onb-nolink { cursor: default; }
/* ошибка: text-footnote 13/17.875, text-danger, значок e10a 16 mt 1, зазор 4 */
.w-onb-err { display: flex; align-items: flex-start; gap: 4px; font-size: 13px; line-height: 17.875px; color: var(--w-text-danger); text-align: left; }
.w-onb-err .w-icon { margin-top: 1px; flex-shrink: 0; }
.w-onb-btn { width: 100%; }
/* низ: text-muted 14/20 по центру, почта font-medium, ссылка secondary */
.w-onb-foot { display: flex; width: 100%; flex-shrink: 0; flex-direction: column; justify-content: flex-end; padding: 0 16px 16px; }
@media (min-width: 640px) { .w-onb-foot { min-height: 64px; padding-bottom: 40px; } }
.w-onb-verified { font-size: 14px; line-height: 20px; color: var(--w-text-muted); text-align: center; }
.w-onb-mail { font-weight: 500; --w-w: 500; }

/* ── Знакомство, шаги 3-7 (02.10): тарифы, приложение для компьютера,
   «Before your first chat», имя, род занятий. Числа - S/signup/capture.md */
/* каркас V без sm (шаг «на компьютере»): середина gap-9 */
.w-onb-mid-wide { gap: 36px; }
/* заголовок шагов 4, 6, 7: flex-col gap-2 по центру, h1 font-title 28/36.4
   (тот же .w-up-title), подпись font-base 14/20 secondary */
.w-onb-head2 { display: flex; width: 100%; flex-direction: column; gap: 8px; text-align: center; }
.w-onb-sub2 { margin: 0; font-size: 14px; line-height: 20px; color: var(--w-text-secondary); }
.w-onb-form { display: flex; width: 100%; flex-direction: column; gap: 12px; }

/* тарифы: корень flex-col items-center pb-8; шапка pt-8 pb-5, знак 20
   высотой (у образца ClaudeLogo 93.3x20, у нас Wall 65x20) с mt-0.5 и
   -translate-x-0.5; колонка mt-8 max-w-6xl px-2; сноска mt-6 px-4 */
.w-onbp { display: flex; min-height: 100vh; flex-direction: column; align-items: center; padding-bottom: 32px; background: var(--w-page-bg); color: var(--w-text-primary); font-size: 14px; line-height: 21px; }
body:has(.w-onbp) { background: var(--w-page-bg); }
.w-onbp-top { display: flex; justify-content: center; padding: 32px 0 20px; }
.w-onbp-logo { display: flex; margin: 2px 0 0; font-size: 20px; line-height: 1; transform: translate(-2px, -1px); }
.w-onbp-logo-svg { display: block; width: 65px; height: 20px; color: var(--w-text-primary); }
.w-onbp-col { display: flex; width: 100%; max-width: 1152px; flex-direction: column; align-items: center; margin-top: 32px; padding: 0 8px; box-sizing: border-box; }
.w-onbp-foot { margin-top: 24px; padding: 0 16px; text-align: center; }
/* карточка: has-[[data-cta]:hover] - кромка border-strong и shadow-md только
   при наведении на КНОПКУ карточки; Free - div role=button с рукой */
.w-onbp .w-plancard[data-pick] { cursor: var(--cds-cursor-interactive); }
@media (hover: hover) {
  .w-onbp .w-plancard:has([data-cta]:hover) .w-plancard-body { border-color: var(--w-border-strong); box-shadow: var(--cds-shadow-md); }
}

/* «на компьютере»: картинка max-w 556, кнопки max-w 450 gap 12; Skip -
   ghost lg 15/22 w400 по ширине текста. На телефоне кнопки липнут к низу
   (sticky bottom-0 -mx-4 w-screen bg-surface-1 px-4 pb-4 pt-3) */
.w-onbd-pic { width: 100%; max-width: 556px; }
.w-onbd-art { display: block; width: 100%; height: auto; }
.w-onbd-cta { display: flex; width: 100%; max-width: 450px; flex-direction: column; align-items: center; gap: 12px; }
.w-onbd-winlogo { margin-right: 2px; flex-shrink: 0; }
.w-onbd-skip, .w-onb-later { font-weight: 400; --w-w: 400; }
@media (max-width: 639.98px) {
  .w-onbd-cta { position: sticky; bottom: 0; width: 100vw; max-width: none; margin: 0 -16px; padding: 12px 16px 16px; box-sizing: border-box; background: var(--w-page-bg); }
}
.w-onbd-sky { fill: #dfe5ec; }
.w-onbd-win { fill: var(--w-surface-3); }
.w-onbd-winbar { fill: var(--w-surface-1); }
.w-onbd-line { fill: var(--w-text-muted); opacity: .45; }
.w-onbd-line-soft { opacity: .25; }
.w-onbd-bar { fill: #f3f3f3; }
.w-onbd-app { fill: #cfd6de; }
.w-onbd-hot { fill: #fff; opacity: .9; }
.w-onbd-cursor { fill: #fff; stroke: #0b0b0b; stroke-width: 3; stroke-linejoin: round; }
[data-mode='dark'] .w-onbd-sky { fill: #23272d; }
[data-mode='dark'] .w-onbd-bar { fill: #1f1f1f; }
[data-mode='dark'] .w-onbd-app { fill: #3a3e44; }
[data-mode='dark'] .w-onbd-hot { fill: #fff; opacity: .12; }

/* «Before your first chat» (компонент sc): знак 28 высотой на pt-8
   (у образца 130.7x28, у нас Wall 91x28), середина px-4 py-8, region
   max-w-lg 512 gap-6; список surface-3 радиус 24 p-6 шаг 24, кромка и
   shadow-sm; пункт flex gap-4, кружок 36, текст font-large 15/20 primary */
.w-onbi-top { display: flex; flex-shrink: 0; justify-content: center; padding-top: 32px; }
.w-onbi-logo { display: block; width: 91px; height: 28px; transform: translateX(-2px); color: var(--w-text-primary); }
.w-onbi-mid { display: flex; flex: 1; align-items: center; justify-content: center; padding: 32px 16px; }
.w-onbi-region { display: flex; width: 100%; max-width: 512px; flex-direction: column; gap: 24px; }
.w-onbi-head { text-align: center; }
.w-onbi-list { display: flex; margin: 0; flex-direction: column; gap: 24px; padding: 24px; list-style: none; border: 1px solid var(--w-border); border-radius: 24px; background: var(--w-surface-3); box-shadow: var(--w-shadow-sm); }
.w-onbi-item { display: flex; align-items: flex-start; gap: 16px; }
.w-onbi-item p { margin: 0; font-size: 15px; line-height: 20px; color: var(--w-text-primary); }
.w-onbi-item b { font-weight: 580; --w-w: 580; }
.w-onbi-dot { display: flex; width: 36px; height: 36px; flex-shrink: 0; align-items: center; justify-content: center; border-radius: 50%; }

/* «What’s your name?»: поле 450x54 surface-3, кромка border-strong, радиус
   16, px-3 py-4, 15/20 по центру, тень 0 4 20 .04; в фокусе кромка цветом
   текста (focus:outline-none focus:border-text-000) */
.w-onb-name {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 12px;
  border: 1px solid var(--w-border-strong);
  border-radius: 16px;
  background: var(--w-surface-3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .04);
  font: inherit;
  font-size: 15px;
  line-height: 20px;
  text-align: center;
  color: var(--w-text-primary);
  outline: none !important;
  transition: outline .2s;
}
.w-onb-name::placeholder { color: var(--w-text-muted); opacity: 1; }
.w-onb-name:focus { border-color: var(--w-text-primary); }

/* «What kind of work do you do?»: cds Combobox 450x40 на подложке поля,
   радиус 10, обёртка pr 12, кнопка pl 12, 15/22 */
.w-onb-role { display: flex; width: 100%; }
.w-onb-role .w-combo-field { width: 100%; max-width: none; height: 40px; padding-right: 12px; border-radius: 10px; }
.w-onb-role .w-combo-btn { padding-left: 12px; font-size: 15px; line-height: 22px; }

/* Меню правого щелчка по сообщению / плитке / картинке (compact у HubMenu) - ВИД НОВОЙ
   СБОРКИ claude.ai (ЗАМЕРЕНО 25.10 у Max, Claude Code «Привет»): радиус 14, внутри поле 6,
   пункт 28 высотой, 14/20 вес 435, поля 4 / 10, радиус 8, зазор 8; пункт с подписью 46
   (4 / 10 / 5); черта поле 4 / 10; ширина 128..320. Хозяин 25.10: ТОЛЬКО это меню - как у
   Клода (после «откати» вернул: «приятнее»), все остальные меню Wall остались прежними
   (радиус 12, поле 4, пункт 32). Прежний компактный вид 03.10 (радиус 10, поле 4, пункт
   24, 13/19, поля 2.5 / 8) - в CLAUDE.md */
.w-popover-compact { border-radius: 14px; font-size: 14px; line-height: 20px; max-width: 320px; }
.w-popover-compact .w-popover-inner { padding: 6px; }
.w-popover-compact .w-menu-item { height: 28px; padding: 4px 10px; gap: 8px; border-radius: 8px; font-size: 14px; line-height: 20px; font-weight: 435; --w-w: 435; }
.w-popover-compact .w-menu-item-note { height: auto; padding: 4px 10px 5px; }
.w-popover-compact .w-menu-sep { margin: 4px 10px; }

/* обёртка меню картинки в просмотре: слой - сетка по центру, лишний ребёнок
   делал вторую строку и уводил картинку вверх (03.10) - вне потока */
.w-pv-menu-guard { position: absolute; width: 0; height: 0; overflow: hidden; }

/* меню «/» в поле ввода (03.10, ЗАМЕРЕНО у образца, числа - над ChatSlashMenu):
   240, радиус 12, surface-3, shadow-panel, поле 4, пункт 32 (6/10, 14/20,
   зазор 8, радиус 8), подсветка ghost-hover; наведение фона не даёт; без хода */
.w-slash { position: fixed; z-index: 91; display: flex; flex-direction: column; width: 240px; max-height: 384px;
  border-radius: var(--w-radius-card); background: var(--w-surface-3); box-shadow: var(--w-shadow-panel); color: var(--w-text-primary); }
.w-slash-in { min-height: 0; overflow-y: auto; padding: 4px; border-radius: inherit; scrollbar-width: thin; }
.w-slash-item { display: flex; width: 100%; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px;
  font-size: 14px; line-height: 20px; font-weight: 400; --w-w: 400; color: var(--w-text-primary); cursor: default; user-select: none; outline: none; }
.w-slash-item[data-highlighted] { background: var(--w-ghost-hover); }
.w-slash-ico { display: flex; width: 20px; height: 20px; flex-shrink: 0; align-items: center; justify-content: center; }
.w-slash-label { min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* «Type to filter» сразу за «/», пока запрос пуст: text-500/75 в обеих темах */
.w-slash-ph { position: fixed; z-index: 6; font-size: 15px; line-height: 21px; color: rgba(137, 135, 129, .75); pointer-events: none; user-select: none; white-space: nowrap; }

/* ![]() в сообщении - кнопка «Show Image» вместо картинки (ЗАМЕРЕНО 07.10,
   числа - у case "image" в мдСтрочные): 160x128, поле 16, радиус 12, кромка
   1px alpha .1, bg-300, text-300 16/24 sans, курсор стрелка, наведение без смены */
.w-md-showimg { display: inline-grid; width: 160px; height: 128px; box-sizing: border-box; padding: 16px; place-items: center;
  border: 1px solid rgba(11, 11, 11, .1); border-radius: 12px; background: rgb(246, 246, 244); color: rgb(82, 81, 78);
  font: 400 16px/24px 'Anthropic Sans', 'WallSoft Cyr', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; --w-w: 400; cursor: default; vertical-align: top; }
[data-mode='dark'] .w-md-showimg { border-color: rgba(255, 255, 255, .1); background: rgb(17, 17, 17); color: rgb(195, 194, 183); }

/* ── Profile photo (09.10, новый вид claude.ai у Max, ProfilePhotoField) ──
   Кнопка 40 круглая (group/avatar); картинка / буква под курсором, при
   фокусе с клавиатуры и с открытым меню - .4 за duration-fast, значок
   e064 20 secondary поверх; размытия и увеличения прежнего вида НЕТ.
   Кольцо фокуса - shadow-focus на кнопке. */
.w-pp { position: relative; display: block; }
.w-pp-btn {
  position: relative; display: block; width: 40px; height: 40px; padding: 0; border: 0;
  border-radius: calc(infinity * 1px); background: transparent; overflow: hidden;
  cursor: var(--cds-cursor-interactive); outline: none;
}
.w-pp-btn:focus-visible { box-shadow: var(--cds-focus-shadow); }
.w-pp-inner { display: block; transition: opacity var(--w-dur-fast) cubic-bezier(.4, 0, .2, 1); }
.w-pp-btn:focus-visible .w-pp-inner, .w-pp-btn[data-popup-open] .w-pp-inner, .w-pp[data-busy] .w-pp-inner { opacity: .4; }
@media (hover: hover) { .w-pp-btn:hover .w-pp-inner { opacity: .4; } }
.w-pp-img { display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.w-pp-letter {
  display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
  border-radius: calc(infinity * 1px); background: var(--w-fill-control); color: var(--w-text-primary);
  font-size: 14px; line-height: 20px; font-weight: 500; --w-w: 500; user-select: none;
}
.w-pp-over { pointer-events: none; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.w-pp-icon { display: flex; color: var(--w-text-secondary); opacity: 0; transition: opacity var(--w-dur-fast) cubic-bezier(.4, 0, .2, 1); }
.w-pp-btn:focus-visible .w-pp-icon, .w-pp-btn[data-popup-open] .w-pp-icon { opacity: 1; }
@media (hover: hover) { .w-pp-btn:hover .w-pp-icon { opacity: 1; } }
.w-pp[data-busy] .w-pp-btn { cursor: default; }

/* Choose an avatar: сетка 12 (6 уже 640), строки через 8, плитка 36 */
.w-avc { display: contents; }
.w-avc-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); justify-items: center; row-gap: 8px; font-family: var(--w-font-sans, inherit); }
@media (min-width: 640px) { .w-avc-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.w-avc-tile {
  position: relative; display: flex; width: 36px; height: 36px; align-items: center; justify-content: center;
  border-radius: calc(infinity * 1px); outline: none; cursor: var(--cds-cursor-interactive);
}
.w-avc-tile:focus-visible { box-shadow: var(--cds-focus-shadow); }
.w-avc-tile img { display: block; width: 32px; height: 32px; border-radius: 50%; user-select: none; }
.w-avc-ring { pointer-events: none; position: absolute; inset: -2px; display: none; border: 2px solid var(--w-text-primary); border-radius: calc(infinity * 1px); }
.w-avc-badge {
  pointer-events: none; position: absolute; right: -2px; bottom: -2px; display: none; width: 16px; height: 16px;
  align-items: center; justify-content: center; border-radius: calc(infinity * 1px);
  background: var(--cds-fill-primary); color: #fff;
}
[data-mode='dark'] .w-avc-badge { color: #0b0b0b; }
.w-avc-tile[data-checked] .w-avc-ring { display: block; }
.w-avc-tile[data-checked] .w-avc-badge { display: flex; }
.w-avc-foot { justify-content: space-between; align-items: center; }
.w-avc-right { display: flex; gap: 8px; }
.w-avc-shuffle { display: inline-flex; align-items: center; gap: 6px; }

/* Crop photo: квадрат 288 (w-72) по центру, под ним ряд 288 - кнопки 28 и
   ползунок, промежутки 16 (gap-md) и 12 (gap-sm) */
.w-crop { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.w-crop-frame { position: relative; width: 288px; max-width: 100%; aspect-ratio: 1; }
.w-crop-box {
  position: absolute; inset: 0; overflow: hidden; padding: 0; border: 0; border-radius: var(--w-radius-card);
  background: var(--cds-surface-2); outline: none; user-select: none; touch-action: none; cursor: default;
}
.w-crop-box[data-ready] { cursor: grab; }
.w-crop-box[data-dragging] { cursor: grabbing; }
.w-crop-box:focus-visible { box-shadow: var(--cds-focus-shadow); }
.w-crop-img { pointer-events: none; position: absolute; max-width: none; user-select: none; }
.w-crop-box:not([data-ready]) .w-crop-img { visibility: hidden; }
.w-crop-mask {
  pointer-events: none; position: absolute; inset: 0; background: rgba(0, 0, 0, .4);
  -webkit-mask-image: radial-gradient(circle closest-side, transparent calc(100% - 1px), black 100%);
  mask-image: radial-gradient(circle closest-side, transparent calc(100% - 1px), black 100%);
}
[data-mode='dark'] .w-crop-mask { background: rgba(0, 0, 0, .5); }
.w-crop-zoom { display: flex; width: 288px; max-width: 100%; align-items: center; gap: 12px; }
.w-crop-zbtn[aria-disabled='true'] { pointer-events: none; opacity: .5; }

/* ползунок: дорожка 28 (my 2), радиус 8; заливка до середины бегунка */
.w-cslider { --i: 12px; position: relative; display: flex; flex: 1; height: 32px; align-items: center; touch-action: none; user-select: none; cursor: var(--cds-cursor-interactive); }
.w-cslider[data-disabled] { cursor: default; opacity: .5; }
.w-cslider-track { position: relative; width: 100%; height: 28px; overflow: hidden; border-radius: 8px; background: rgba(11, 11, 11, .1); }
[data-mode='dark'] .w-cslider-track { background: rgba(255, 255, 255, .1); }
.w-cslider-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: max(0px, calc(var(--i) + min(var(--p) * (100% - 2 * var(--i)), 4 * var(--p) * (100% - 2 * var(--i)) - var(--i))));
  background: rgba(11, 11, 11, .2);
}
[data-mode='dark'] .w-cslider-fill { background: rgba(255, 255, 255, .35); }
.w-cslider-thumb {
  position: absolute; top: 50%; left: calc(var(--i) + var(--p) * (100% - 2 * var(--i)));
  width: 24px; height: 28px; translate: -50% -50%; border-radius: 8px; background: #fff;
  box-shadow: 0 0 0 1px rgba(11, 11, 11, .04), 0 0 12px rgba(11, 11, 11, .06); outline: none;
}
[data-mode='dark'] .w-cslider-thumb { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0), 0 0 12px rgba(11, 11, 11, .24); }
.w-cslider-thumb:focus-visible { box-shadow: var(--cds-focus-shadow); }
@media (prefers-reduced-motion: no-preference) {
  .w-cslider:not([data-dragging]) .w-cslider-thumb { transition: left var(--w-dur-snap, .15s) ease-out, scale var(--w-dur-snap, .15s) var(--w-ease-overshoot, ease-out); }
  .w-cslider:not([data-dragging]) .w-cslider-fill { transition: width var(--w-dur-snap, .15s) ease-out; }
}
.w-cslider[data-dragging] .w-cslider-thumb { scale: 1.12; }
/* кромка кольца фокуса внутри окна - цвет самого окна (у образца окно
   переопределяет --cds-page-bg на surface-3: у плитки и кадра inset белый) */
.w-avc-grid, .w-crop { --cds-focus-shadow: inset 0 0 0 1px var(--cds-surface-3), 0 0 0 1px #2a78d6, 0 0 6px 1px #cde2fb; }
[data-mode='dark'] :is(.w-avc-grid, .w-crop) { --cds-focus-shadow: inset 0 0 0 1px var(--cds-surface-3), 0 0 0 1px #2a78d6, 0 0 6px 1px hsl(from #184f95 h s l / 60%); }
/* буква без аватара под курсором - КАК РАНЬШЕ (размытие 3px и увеличение
   1.15 вместе с .4), НАМЕРЕННО не как у образца: хозяин 09.10 - у образца
   карандаш стоит поверх ясной буквы, «сделай, чтобы буква полностью
   покрывалась». У фото и узора - как у образца, только .4 */
.w-pp-inner[data-letter] { transition: opacity var(--w-dur-fast) var(--w-ease), filter var(--w-dur-fast) var(--w-ease), scale var(--w-dur-fast) var(--w-ease); }
.w-pp-btn:focus-visible .w-pp-inner[data-letter], .w-pp-btn[data-popup-open] .w-pp-inner[data-letter] { filter: blur(3px); scale: 1.15; }
@media (hover: hover) { .w-pp-btn:hover .w-pp-inner[data-letter] { filter: blur(3px); scale: 1.15; } }

/* ПРОЧТЕНИЕ своих сообщений (10.10, своё - у образца нет). Вид - язык
   образца: слово 11/17 muted (как время ряда), ПОСЛЕДНИМ в ряду после
   кнопок - у правого края пузыря (поле 6 слева, справа 0). У самого
   нижнего своего видно всегда ([data-keep]), время и кнопки - по
   наведению: зеркало последнего ответа образца (там кнопки всегда, время по
   наведению). Первые два варианта 10.10 (строка под пузырём как «Sending…»;
   «время · Read» в ряду только по наведению) хозяин забраковал */
.w-msg-readmark { cursor: default; }
/* галочки вместо слова (25.10): значок 16 первым в ряду, время за ним на 4 */
.w-msg-readico { display: flex; width: 16px; height: 24px; flex-shrink: 0; align-items: center; justify-content: center; color: var(--w-text-muted); opacity: var(--w-acts-op); cursor: default; user-select: none; }
.w-msg-readico svg { display: block; width: 16px; height: 16px; }
.w-msg-acts:not([data-always]) > .w-msg-readico { transition: opacity 0s linear calc((1 - var(--w-acts-op)) * var(--w-dur-fast)), color var(--w-dur-fast) var(--w-ease); }
/* цвет галочки под курсором НЕ меняется (хозяин 25.10) */
.w-msg-readico + .w-msg-time { padding-left: 4px; }
.w-msg-acts[data-keep] { opacity: 1; transition-property: --w-acts-op; }
.w-msg-acts[data-keep] > .w-mact { opacity: var(--w-acts-op); transition: opacity var(--w-dur-fast) var(--w-ease-snap); }
.w-msg-acts[data-keep] > .w-msg-readmark { opacity: 1; }

/* ── ПЛОТНОСТЬ COMPACT - окно Wall3, как Claude Desktop (10.10) ─────────────
   Хозяин: «в десктопе сайдбар и меню меньше, чем в вебе - бери из кода
   десктопа». У claude.ai плотность - атрибут data-density на cds-root и
   dframe: vH() (shared-common-mcp-msg-3) - сохранённое ?? (web ?
   "comfortable" : "compact"). В CSS образца compact - значения ПО
   УМОЛЧАНИЮ (.cds-root, .dframe-sidebar), а [data-density=comfortable]
   их переопределяет (S/density/rules.txt, tokens.txt - CSS сборки
   10.10). У Wall стили сняты с сайта (comfortable) прямыми числами,
   поэтому compact - слой поверх: html[data-density=compact] ставит
   wallDensityApply только в окне Wall3, на сайте - comfortable.
   Числа ЗАМЕРЕНЫ в своей вкладке claude.ai переключением атрибута
   (все узлы панели, comfortable -> compact, атрибут возвращён). */

/* Левая панель. ЗАМЕРЕНО: строка 32 -> 26, радиус 8 -> 6, текст 14/21 ->
   13/19.5, место значка 28 -> 24, значок 20 -> 14, «...» и View all /
   Filter 24 -> 20 (радиус 6 -> 5, 13/19 -> 12/17), заголовок раздела 44 ->
   34 (поля 16 4 4 6 -> 12 1 4 6, зазор 8 -> 4, 13 -> 12), его кнопка
   радиус 8 -> 6, Bulk actions 32 -> 24 (радиус 8 -> 6), низ 48 -> 44
   (зазор 6 -> 3), кнопка профиля 32 -> 28 (радиус 8 -> 6), аватар 24 ->
   20 и его место 28x24 -> 24x20, хвост тарифа 12/18 -> 11/16.5, кнопка
   справа у низа 32 -> 24, кнопка сворачивания 24 -> 20 и её место 32x24
   -> 32x20 */
html[data-density='compact'] .w-sb { font-size: 13px; line-height: 19.5px; }
html[data-density='compact'] .w-sb-togbox { height: 20px; }
html[data-density='compact'] .w-sb-reveal { width: 20px; height: 20px; }
html[data-density='compact'] .w-sb-ctl { width: 20px; height: 20px; border-radius: 5px; font-size: 12px; line-height: 17px; }
html[data-density='compact'] .w-sb-row { height: 26px; border-radius: 6px; }
html[data-density='compact'] .w-sb-item { height: 26px; border-radius: 6px; }
html[data-density='compact'] .w-sb-lead { width: 24px; height: 24px; }
html[data-density='compact'] .w-sb-lead .w-icon { width: 14px !important; height: 14px !important; }
html[data-density='compact'] .w-sb-lead .w-icon-glyph { font-size: 14px !important; }
html[data-density='compact'] .w-sb-lead .w-icon svg { width: 14px; height: 14px; }
/* «...» строки и точка непрочитанного: 20 на (26 - 20) / 2 = 3 от края */
html[data-density='compact'] .w-sb-more { top: 3px; right: 3px; }
html[data-density='compact'] .w-sb-deco { right: 3px; width: 20px; height: 20px; }
html[data-density='compact'] .w-sb-sechead { min-height: 34px; gap: 4px; padding: 12px 1px 4px 6px; font-size: 12px; }
html[data-density='compact'] .w-sb-secbtn { border-radius: 6px; }
html[data-density='compact'] .w-sb-bulk { width: 24px !important; height: 24px !important; min-width: 0 !important; border-radius: 6px; }
html[data-density='compact'] .w-sb-ph-row { height: 26px; }
html[data-density='compact'] .w-sb-ph-lead { width: 24px; height: 24px; }
html[data-density='compact'] .w-sb-footrow { height: 44px; gap: 3px; }
html[data-density='compact'] .w-sb-footl { padding-right: 24px; }
html[data-density='compact'] .w-sb-user { height: 28px; border-radius: 6px; }
html[data-density='compact'] .w-sb-avbox { width: 24px; height: 20px; }
html[data-density='compact'] .w-sb-av { width: 20px; height: 20px; }
html[data-density='compact'] .w-sb-uname > i,
html[data-density='compact'] .w-sb-uname > em { font-size: 11px; line-height: 16.5px; }

/* Меню (все HubMenu / Popover menu). ЗАМЕРЕНО у образца в compact (меню
   «Filter and group recents» и меню профиля): меню радиус 12 -> 10, 14/20
   -> 13/19, поле 4 то же; пункт 32 -> 24, поля 6/10 -> 2.5/8, зазор 8 ->
   6, радиус 8 -> 6; значок пункта 20 -> 16; черта поля 4/10 -> 4/8;
   подпись сверху (почта) 13/17 -> 12/15, поля 4/10 -> 4/8; значение
   справа и клавиши 13/17 -> 12/15 (клавиши зазор 3.9 -> 3.6), отступ
   правой группы 16 -> 12, зазор 8 -> 6. Тот же вид, что .w-popover-compact
   (меню сообщения Claude Code) - это и есть compact образца */
html[data-density='compact'] .w-popover-menu { border-radius: 10px; font-size: 13px; line-height: 19px; }
html[data-density='compact'] .w-popover-menu .w-menu-item { height: 24px; padding: 2.5px 8px; gap: 6px; border-radius: 6px; font-size: 13px; line-height: 19px; }
html[data-density='compact'] .w-popover-menu .w-menu-item-note { height: auto; }
html[data-density='compact'] .w-popover-menu .w-menu-icon { width: 16px; height: 16px; }
html[data-density='compact'] .w-popover-menu .w-menu-icon .w-icon { width: 16px !important; height: 16px !important; }
html[data-density='compact'] .w-popover-menu .w-menu-icon .w-icon-glyph { font-size: 16px !important; }
html[data-density='compact'] .w-popover-menu .w-menu-sep { margin: 4px 8px; }
html[data-density='compact'] .w-popover-menu .w-menu-label { padding: 4px 8px; font-size: 12px; line-height: 15px; }
html[data-density='compact'] .w-popover-menu :is(.w-menu-val, .w-menu-count) { font-size: 12px; line-height: 15px; }
html[data-density='compact'] .w-popover-menu .w-menu-keys { gap: 3.6px; font-size: 12px; line-height: 15px; }
html[data-density='compact'] .w-popover-menu :is(.w-menu-subwrap, .w-menu-check) { margin-left: 12px; gap: 6px; }

/* Токены и кнопки. ЗАМЕРЕНО у образца (вычисленные значения cds-токенов на
   cds-root comfortable / compact): h-control 32 -> 24, --sm 28 -> 20, --xs
   24 -> 20, --lg 40 -> 28; radius 8 -> 6, --sm 7 -> 5, --xs 6 -> 5, --lg 10
   -> 7; body 14/20 -> 13/19, footnote 13/17 -> 12/15, caption 12 -> 11.
   Кнопка sm в шапке беседы: 28 -> 20, 14/20 -> 12/17, радиус 7 -> 5, у
   кнопки с текстом поля 0 10 -> 0 6; xs (ряд под сообщением) 24 -> 20,
   13/19 -> 12/17, радиус 6 -> 5 */
html[data-density='compact'] { --w-h-control: 24px; --w-h-control-sm: 20px; --w-radius: 6px; }
html[data-density='compact'] .w-btn { font-size: 13px; line-height: 19px; }
html[data-density='compact'] .w-btn-sm { padding: 0 6px; border-radius: 5px; font-size: 12px; line-height: 17px; }
html[data-density='compact'] .w-btn-icon-sm { border-radius: 5px; }
html[data-density='compact'] .w-btn-xs { height: 20px; border-radius: 5px; font-size: 12px; line-height: 17px; }
html[data-density='compact'] .w-btn-icon-xs { width: 20px; height: 20px; border-radius: 5px; }

/* Беседа. ЗАМЕРЕНО у образца (беседа Greeting, comfortable -> compact):
   название в шапке 28 -> 20, 14/20 -> 12/17, радиус 7 -> 5, поля 0 8 те же;
   своё сообщение: пузырь поля 12/16 -> 8/12, радиус 12 -> 10, 15/20 ->
   14/18, зазор 8 -> 6, отступ над своим 24 -> 20; ответ - prose sm 15/22 ->
   13/19 (поля 0 56 0 4 те же), зазор сообщения 8 -> 6; ряд кнопок 24 -> 20,
   кнопки 20 радиус 5, время 11/17 -> 10/17, поле 6 -> 4 */
html[data-density='compact'] .w-chat-head .w-btn-sm:not(.w-btn-icon-sm) { padding: 0 8px; }
html[data-density='compact'] .w-chat-head-files.w-btn-sm:not(.w-btn-icon-sm) { padding: 0 6px; }
html[data-density='compact'] .w-msg-mine { margin-top: 20px; }
html[data-density='compact'] .w-msg-mine-col { gap: 6px; }
html[data-density='compact'] .w-msg-bubble { gap: 6px; padding: 8px 12px; border-radius: 10px; font-size: 14px; line-height: 18px; }
html[data-density='compact'] .w-msg-other > .w-msg-acts { margin-top: 6px; }
html[data-density='compact'] .w-msg-acts { height: 20px; }
html[data-density='compact'] .w-mact { width: 20px; height: 20px; border-radius: 5px; }
html[data-density='compact'] .w-msg-time { height: 20px; padding: 0 4px; font-size: 10px; }
html[data-density='compact'] .w-msg-time:first-child { padding-left: 0; }
html[data-density='compact'] .w-msg-time:last-child { padding-right: 0; }
/* текст ответа: prose sm у образца 15/22 -> 13/19 (--cds-font-size-prose--sm
   .9375rem -> .8125rem, leading 1.375rem -> 1.1875rem); шаг абзацев у него
   .75em (prose-flow), у нас был числом 11.25 - в compact от шрифта */
html[data-density='compact'] .w-prose { --_p-flow: .75em; font-size: 13px; line-height: 19px; }
html[data-density='compact'] .w-msg-bubble.w-prose.w-prose-bubble { font-size: 14px; line-height: 18px; }
/* остальной текст ответа у образца в em и уменьшается со шрифтом (списки
   30 -> 26, таблица .4375em/.75em, черта, заголовки - ЗАМЕРЕНО в беседе
   «Markdown rendering demo»); числами у него меняются только углы: блок
   кода 12 -> 10 (сам код 14/22.75 и поля 14 те же), угол шапки таблицы 6 ->
   4, рамка таблицы 7 -> 5 (radius--sm) */
html[data-density='compact'] :is(.w-mdc, .w-mdc-pre) { border-radius: 10px; }
html[data-density='compact'] :where(.w-prose) table { border-radius: 5px; }
html[data-density='compact'] :where(.w-prose) thead > tr:first-child > th:first-child { border-start-start-radius: 4px; }
html[data-density='compact'] :where(.w-prose) thead > tr:first-child > th:last-child { border-start-end-radius: 4px; }

/* Поле ввода. ЗАМЕРЕНО у образца на /new (поле стопкой) и в беседе (одной
   строкой), comfortable -> compact: коробка радиус 14 -> 12, зазор 8 -> 6,
   поле 8 то же (одной строкой 48 -> 40, стопкой 103 -> 94); текст 15/21 ->
   14/20, поля текста 5.5/0/5.5 -> 2/0/2, слева в стопке 8 -> 6; кнопки 32
   -> 24 радиус 6 (токен), пара голоса 47 -> 43 (стрелка 20x24); группы
   кнопок: зазор и поле 8 -> 6, слева 40 -> 30 («+» 24 + 6). Под текстом в
   стопке у образца 34 в ОБОИХ режимах */
html[data-density='compact'] .w-cmp-box { gap: 6px; border-radius: 12px; }
html[data-density='compact'] .w-cmp-row { padding-left: 30px; }
html[data-density='compact'] .w-cmp-input { min-height: 24px; padding-top: 2px; padding-bottom: 2px; font-size: 14px; line-height: 20px; }
html[data-density='compact'] .w-cmp-box:not([data-stack]) .w-cmp-input { padding-right: 91px; }
html[data-density='compact'] .w-cmp-box:not([data-stack]):has(.w-cmp-right[data-dict]) .w-cmp-input { padding-right: 194px; }
html[data-density='compact'] .w-cmp-box[data-stack] .w-cmp-row { padding-left: 0; padding-bottom: 34px; }
html[data-density='compact'] .w-cmp-box[data-stack] .w-cmp-input { padding-left: 6px; }
html[data-density='compact'] :is(.w-cmp-left, .w-cmp-right) { min-height: 24px; gap: 6px; }
html[data-density='compact'] .w-cmp-left { padding-right: 6px; }
html[data-density='compact'] .w-cmp-right { padding-left: 6px; }
html[data-density='compact'] .w-cmp-box[data-stack] :is(.w-cmp-left, .w-cmp-right) { padding-left: 0; padding-right: 0; }
html[data-density='compact'] .w-cmp-micdev { height: 24px; }
html[data-density='compact'] .w-cmp-pm { font-size: 14px; line-height: 20px; }
html[data-density='compact'] .w-cmp-dslot-aside { inset-inline-end: 30px; }
/* новый экран: место текста 53 -> 44 (у образца поле стопкой 103 -> 94) */
html[data-density='compact'] .w-cmp-dock[data-page] .w-cmp-input { min-height: 44px; }

