/* =============================================================================
   SintexPro Operate UI — компоненты интерфейса продуктов
   Заявки на изготовление · Аварийный ЗИП · CRM лидов
   Подключение (порядок важен): fonts.css → tokens.css → operate.css
   Классы с префиксом op-, модификаторы через --, состояния через is-* и aria-*.
   Цвет — только из токенов --op-*. Литералы цвета в компонентах запрещены.
   ========================================================================== */

/* ---------------------------------------------------------------- 1. База */
body.op-app {
  margin: 0;
  min-height: 100vh;
  background: var(--op-canvas);
  color: var(--op-text);
  font-family: var(--op-font-sans);
  font-size: var(--op-fs-md);
  line-height: var(--op-lh-md);
  font-weight: var(--op-fw-regular);
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.op-app *, .op-app *::before, .op-app *::after { box-sizing: border-box; }
.op-app ::selection { background: var(--op-accent-soft); color: var(--op-text); }
:where(.op-app) :where(h1, h2, h3, h4) { margin: 0; font-weight: var(--op-fw-semibold); text-wrap: balance; }
:where(.op-app) p { margin: 0; }
:where(.op-app) a { color: var(--op-link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
:where(.op-app) a:where(:hover) { color: var(--op-link-hover); }
:where(.op-app) :focus { outline: none; }
:where(.op-app) :focus-visible {
  outline: 2px solid var(--op-focus);
  outline-offset: 2px;
  border-radius: var(--op-radius-xs);
}
:where(.op-app) :where(code, kbd, samp) { font-family: var(--op-font-mono); font-size: 0.92em; }
:where(.op-app) :where(img, svg) { max-width: 100%; }
:where(.op-app) hr { border: 0; border-top: 1px solid var(--op-border); margin: var(--op-space-6) 0; }

/* ---------------------------------------------------------------- 2. Утилиты */
.op-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.op-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.op-mono { font-family: var(--op-font-mono); font-size: 0.93em; font-variant-numeric: tabular-nums; }
.op-muted { color: var(--op-text-2); }
.op-subtle { color: var(--op-text-3); }
.op-nowrap { white-space: nowrap; }
.op-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.op-stack { display: flex; flex-direction: column; gap: var(--op-gap); min-width: 0; }
.op-stack--sm { gap: var(--op-space-2); }
.op-stack--lg { gap: var(--op-space-8); }
.op-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--op-space-2); min-width: 0; }
.op-cluster--between { justify-content: space-between; }
.op-grid { display: grid; gap: var(--op-gap); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.op-split { display: grid; gap: var(--op-space-6); grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; }
@media (max-width: 1024px) { .op-split { grid-template-columns: minmax(0, 1fr); } }
.op-prose { max-width: var(--op-prose-max); }
.op-prose p + p { margin-top: var(--op-space-3); }

/* ---------------------------------------------------------------- 3. Иконки
   <svg class="op-icon" aria-hidden="true"><use href=".../icons/sprite.svg#inbox"></use></svg> */
.op-icon {
  width: 16px; height: 16px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: -3px;
}
.op-icon--sm { width: 14px; height: 14px; }
.op-icon--lg { width: 20px; height: 20px; }
.op-icon--xl { width: 32px; height: 32px; stroke-width: 1.5; }

/* ---------------------------------------------------------------- 4. Каркас */
.op-skip {
  position: absolute; left: var(--op-space-3); top: -100px; z-index: var(--op-z-toast);
  background: var(--op-accent); color: var(--op-on-accent); padding: var(--op-space-2) var(--op-space-4);
  border-radius: var(--op-radius-sm); font-weight: var(--op-fw-semibold); text-decoration: none;
}
.op-skip:focus-visible { top: var(--op-space-3); }

.op-shell {
  display: grid;
  grid-template-columns: var(--op-sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
}
[data-op-rail="collapsed"] .op-shell { grid-template-columns: var(--op-rail-w) minmax(0, 1fr); }

.op-sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: var(--op-sidebar-bg);
  border-right: 1px solid var(--op-sidebar-border);
  color: var(--op-text);
  z-index: var(--op-z-nav);
  min-width: 0;
}
.op-sidebar__brand {
  display: flex; align-items: center; gap: var(--op-space-2);
  padding: var(--op-space-4) var(--op-space-3) var(--op-space-3) var(--op-space-4);
  min-height: 64px;
}
.op-brand {
  display: flex; align-items: center; gap: var(--op-space-3);
  min-width: 0; flex: 1; color: var(--op-text); text-decoration: none;
}
.op-brand__mark {
  width: 32px; height: 32px; flex: none; border-radius: var(--op-radius-md);
  background: var(--op-accent-soft); color: var(--op-accent);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px var(--op-accent-soft-border);
}
.op-brand__mark svg { width: 20px; height: 20px; }
.op-brand__text { display: flex; flex-direction: column; min-width: 0; }
.op-brand__product {
  font-family: var(--op-font-brand); font-weight: 600; font-size: 14px; line-height: 18px;
  letter-spacing: -0.005em; color: var(--op-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.op-brand__suite { font-size: var(--op-fs-xs); line-height: var(--op-lh-xs); color: var(--op-text-3); white-space: nowrap; }

.op-nav { flex: 1; overflow-y: auto; padding: var(--op-space-2) var(--op-space-3) var(--op-space-4); scrollbar-width: thin; }
.op-nav__group + .op-nav__group { margin-top: var(--op-space-4); }
.op-nav__label {
  padding: 0 var(--op-space-3); margin-bottom: var(--op-space-1);
  font-size: var(--op-fs-xs); line-height: var(--op-lh-xs); font-weight: var(--op-fw-semibold);
  color: var(--op-text-3);
}
.op-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.op-nav__item {
  position: relative;
  display: flex; align-items: center; gap: var(--op-space-3);
  min-height: 36px; padding: 0 var(--op-space-3);
  border-radius: var(--op-radius-sm);
  color: var(--op-text-2); text-decoration: none;
  font-weight: var(--op-fw-medium);
  transition: background-color var(--op-dur-fast) var(--op-ease), color var(--op-dur-fast) var(--op-ease);
}
.op-nav__item:hover { background: var(--op-surface-hover); color: var(--op-text); }
.op-nav__item[aria-current="page"] { background: var(--op-surface-selected); color: var(--op-text); }
.op-nav__item[aria-current="page"]::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--op-accent);
}
.op-nav__item .op-icon { width: 18px; height: 18px; }
.op-nav__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.op-sidebar__foot { border-top: 1px solid var(--op-sidebar-border); padding: var(--op-space-3); display: flex; flex-direction: column; gap: var(--op-space-2); }
.op-user { display: flex; align-items: center; gap: var(--op-space-3); padding: var(--op-space-1) var(--op-space-1); min-width: 0; }
.op-user__avatar {
  width: 32px; height: 32px; flex: none; border-radius: var(--op-radius-pill);
  display: grid; place-items: center; font-size: var(--op-fs-xs); font-weight: var(--op-fw-bold);
  background: var(--op-surface-2); color: var(--op-text-2); box-shadow: inset 0 0 0 1px var(--op-border-strong);
}
.op-user__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.op-user__name { font-weight: var(--op-fw-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-user__role { font-size: var(--op-fs-xs); line-height: var(--op-lh-xs); color: var(--op-text-3); }

/* Свёрнутая панель (рейка) */
[data-op-rail="collapsed"] .op-shell .op-sidebar .op-brand__text,
[data-op-rail="collapsed"] .op-shell .op-sidebar .op-nav__text,
[data-op-rail="collapsed"] .op-shell .op-sidebar .op-nav__label,
[data-op-rail="collapsed"] .op-shell .op-sidebar .op-user__text,
[data-op-rail="collapsed"] .op-shell .op-sidebar .op-sidebar__foot .op-segmented { display: none; }
[data-op-rail="collapsed"] .op-shell .op-sidebar .op-sidebar__brand { flex-direction: column; padding-inline: var(--op-space-2); }
[data-op-rail="collapsed"] .op-shell .op-sidebar .op-nav { padding-inline: var(--op-space-2); }
[data-op-rail="collapsed"] .op-shell .op-sidebar .op-nav__item { justify-content: center; padding: 0; }
[data-op-rail="collapsed"] .op-shell .op-sidebar .op-nav__item .op-count { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; font-size: 10px; padding: 0 4px; }
[data-op-rail="collapsed"] .op-shell .op-sidebar .op-nav__group + .op-nav__group { border-top: 1px solid var(--op-sidebar-border); padding-top: var(--op-space-3); margin-top: var(--op-space-3); }
[data-op-rail="collapsed"] .op-shell .op-sidebar .op-user { justify-content: center; }

/* Верхняя строка: только на узких экранах */
.op-topbar { display: none; }
.op-scrim { display: none; }

.op-main { min-width: 0; padding: var(--op-space-6) var(--op-gutter) var(--op-space-12); }
.op-main__inner { max-width: var(--op-content-max); margin: 0 auto; display: flex; flex-direction: column; gap: var(--op-space-6); }

@media (max-width: 960px) {
  .op-shell, [data-op-rail="collapsed"] .op-shell { grid-template-columns: minmax(0, 1fr); }
  .op-topbar {
    display: flex; align-items: center; gap: var(--op-space-2);
    position: sticky; top: 0; z-index: var(--op-z-sticky);
    height: calc(var(--op-topbar-h) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) var(--op-space-3) 0;
    background: var(--op-sidebar-bg); color: var(--op-text);
    border-bottom: 1px solid var(--op-sidebar-border);
  }
  .op-topbar .op-brand__mark { width: 28px; height: 28px; }
  .op-sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); height: 100%;
    transform: translateX(-102%); transition: transform var(--op-dur) var(--op-ease);
    visibility: hidden;
  }
  .op-shell.is-nav-open .op-sidebar { transform: none; visibility: visible; box-shadow: var(--op-shadow-overlay); }
  .op-shell.is-nav-open .op-scrim { display: block; position: fixed; inset: 0; background: var(--op-scrim); z-index: calc(var(--op-z-nav) - 1); }
  /* на телефоне рейки нет: выдвижная панель всегда полная */
  [data-op-rail="collapsed"] .op-shell .op-sidebar .op-brand__text,
  [data-op-rail="collapsed"] .op-shell .op-sidebar .op-user__text { display: flex; }
  [data-op-rail="collapsed"] .op-shell .op-sidebar .op-nav__text,
  [data-op-rail="collapsed"] .op-shell .op-sidebar .op-nav__label { display: block; }
  [data-op-rail="collapsed"] .op-shell .op-sidebar .op-sidebar__foot .op-segmented { display: inline-flex; }
  [data-op-rail="collapsed"] .op-shell .op-sidebar .op-sidebar__brand { flex-direction: row; padding-inline: var(--op-space-4) var(--op-space-3); }
  [data-op-rail="collapsed"] .op-shell .op-sidebar .op-nav { padding-inline: var(--op-space-3); }
  [data-op-rail="collapsed"] .op-shell .op-sidebar .op-nav__item { justify-content: flex-start; padding: 0 var(--op-space-3); }
  [data-op-rail="collapsed"] .op-shell .op-sidebar .op-nav__item .op-count { position: static; min-width: 20px; height: 20px; font-size: var(--op-fs-xs); padding: 0 6px; }
  [data-op-rail="collapsed"] .op-shell .op-sidebar .op-user { justify-content: flex-start; }
  [data-op-rail="collapsed"] .op-shell .op-sidebar .op-nav__group + .op-nav__group { border-top: 0; padding-top: 0; margin-top: var(--op-space-4); }
  .op-sidebar .op-sidebar__collapse { display: none; }
  .op-main { padding-top: var(--op-space-4); }
}

/* ---------------------------------------------------------------- 5. Заголовок страницы */
.op-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--op-space-4); }
.op-page-head__text { display: flex; flex-direction: column; gap: var(--op-space-1); min-width: 0; flex: 1 1 360px; }
.op-page-title { font-size: var(--op-fs-2xl); line-height: var(--op-lh-2xl); font-weight: var(--op-fw-semibold); letter-spacing: -0.01em; }
.op-page-title .op-mono { font-size: 0.82em; font-weight: var(--op-fw-medium); color: var(--op-text-2); margin-left: var(--op-space-2); }
.op-page-sub { color: var(--op-text-2); max-width: var(--op-prose-max); }
.op-page-head__actions { display: flex; flex-wrap: wrap; gap: var(--op-space-2); align-items: center; }

.op-breadcrumbs { font-size: var(--op-fs-sm); line-height: var(--op-lh-sm); color: var(--op-text-3); }
.op-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--op-space-1); }
.op-breadcrumbs li { display: flex; align-items: center; gap: var(--op-space-1); }
.op-breadcrumbs li + li::before { content: "/"; color: var(--op-text-disabled); }
.op-breadcrumbs a { color: var(--op-text-2); text-decoration: none; }
.op-breadcrumbs a:hover { color: var(--op-link-hover); text-decoration: underline; }

.op-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--op-space-2) var(--op-space-4); }
.op-section-title { font-size: var(--op-fs-lg); line-height: var(--op-lh-lg); font-weight: var(--op-fw-semibold); }
.op-section-title .op-count { margin-left: var(--op-space-2); vertical-align: 2px; }
.op-section-sub { color: var(--op-text-2); font-size: var(--op-fs-sm); line-height: var(--op-lh-sm); }

/* ---------------------------------------------------------------- 6. Кнопки */
.op-btn {
  --_bg: var(--op-surface); --_fg: var(--op-text); --_bd: var(--op-border-input);
  --_bg-h: var(--op-surface-hover);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--op-space-2);
  height: var(--op-control-h); padding: 0 var(--op-space-4);
  border: 1px solid var(--_bd); border-radius: var(--op-radius-sm);
  background: var(--_bg); color: var(--_fg);
  font: inherit; font-weight: var(--op-fw-semibold); line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer; user-select: none;
  transition: background-color var(--op-dur-fast) var(--op-ease), border-color var(--op-dur-fast) var(--op-ease), color var(--op-dur-fast) var(--op-ease);
}
.op-btn:hover { background: var(--_bg-h); }
.op-btn:active { transform: translateY(1px); }
.op-btn .op-icon { margin-inline: -2px; }
.op-btn--primary { --_bg: var(--op-accent); --_fg: var(--op-on-accent); --_bd: var(--op-accent); --_bg-h: var(--op-accent-hover); }
.op-btn--primary:active { --_bg: var(--op-accent-pressed); }
.op-btn--secondary { /* по умолчанию */ }
.op-btn--ghost { --_bg: transparent; --_bd: transparent; --_fg: var(--op-text-2); }
.op-btn--ghost:hover { --_fg: var(--op-text); }
.op-btn--danger { --_bg: var(--op-surface); --_fg: var(--op-critical-fg); --_bd: var(--op-critical-border); --_bg-h: var(--op-critical-bg); }
.op-btn--danger-solid { --_bg: var(--op-critical-fg); --_fg: var(--op-surface); --_bd: var(--op-critical-fg); --_bg-h: var(--op-critical-fg); }
.op-btn--link { --_bg: transparent; --_bd: transparent; --_bg-h: transparent; --_fg: var(--op-link); padding: 0; height: auto; font-weight: var(--op-fw-medium); text-decoration: underline; text-underline-offset: 2px; }
.op-btn--sm { height: var(--op-control-h-sm); padding: 0 var(--op-space-3); font-size: var(--op-fs-sm); }
.op-btn--lg { height: var(--op-control-h-lg); padding: 0 var(--op-space-5); font-size: var(--op-fs-lg); }
.op-btn--block { display: flex; width: 100%; }
.op-btn:disabled, .op-btn[aria-disabled="true"] {
  --_bg: var(--op-surface-2); --_fg: var(--op-text-disabled); --_bd: var(--op-border); --_bg-h: var(--op-surface-2);
  cursor: not-allowed; transform: none;
}
.op-btn[aria-busy="true"] { position: relative; color: transparent !important; pointer-events: none; }
.op-btn[aria-busy="true"]::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--_fg); border-right-color: transparent;
  animation: op-spin 0.7s linear infinite;
}
.op-icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: var(--op-control-h); height: var(--op-control-h);
  border: 1px solid transparent; border-radius: var(--op-radius-sm);
  background: transparent; color: var(--op-text-2); cursor: pointer; padding: 0;
}
.op-icon-btn:hover { background: var(--op-surface-hover); color: var(--op-text); }
.op-icon-btn--bordered { border-color: var(--op-border-input); background: var(--op-surface); }
.op-icon-btn--sm { width: var(--op-control-h-sm); height: var(--op-control-h-sm); }
.op-btn-group { display: inline-flex; flex-wrap: wrap; gap: var(--op-space-2); align-items: center; }

/* ---------------------------------------------------------------- 7. Формы */
.op-form { display: flex; flex-direction: column; gap: var(--op-space-6); max-width: var(--op-form-max); }
.op-form--wide { max-width: none; }
.op-form-grid { display: grid; gap: var(--op-space-4) var(--op-space-5); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.op-form-grid > .op-span-2 { grid-column: 1 / -1; }
@media (max-width: 720px) { .op-form-grid { grid-template-columns: minmax(0, 1fr); } }

.op-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--op-space-4); }
.op-fieldset > legend { padding: 0; margin-bottom: var(--op-space-3); font-size: var(--op-fs-lg); line-height: var(--op-lh-lg); font-weight: var(--op-fw-semibold); }

.op-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.op-label { font-size: var(--op-fs-sm); line-height: var(--op-lh-sm); font-weight: var(--op-fw-semibold); color: var(--op-text); display: flex; gap: var(--op-space-2); align-items: baseline; flex-wrap: wrap; }
.op-label__opt { font-weight: var(--op-fw-regular); color: var(--op-text-3); }
.op-hint { font-size: var(--op-fs-sm); line-height: var(--op-lh-sm); color: var(--op-text-2); }
.op-error-text { font-size: var(--op-fs-sm); line-height: var(--op-lh-sm); color: var(--op-critical-fg); display: flex; gap: 6px; align-items: flex-start; font-weight: var(--op-fw-medium); }
.op-error-text .op-icon { margin-top: 1px; }

.op-input, .op-textarea, .op-select select {
  width: 100%; min-width: 0;
  height: var(--op-control-h); padding: 0 var(--op-space-3);
  border: 1px solid var(--op-border-input); border-radius: var(--op-radius-sm);
  background: var(--op-surface); color: var(--op-text);
  font: inherit; font-size: var(--op-fs-md);
  transition: border-color var(--op-dur-fast) var(--op-ease), box-shadow var(--op-dur-fast) var(--op-ease);
}
.op-input::placeholder, .op-textarea::placeholder { color: var(--op-text-3); opacity: 1; }
.op-input:hover, .op-textarea:hover, .op-select select:hover { border-color: var(--op-text-3); }
.op-input:focus-visible, .op-textarea:focus-visible, .op-select select:focus-visible {
  outline: none; border-color: var(--op-focus); box-shadow: 0 0 0 1px var(--op-focus);
}
.op-textarea { height: auto; min-height: 96px; padding: var(--op-space-2) var(--op-space-3); line-height: var(--op-lh-md); resize: vertical; }
.op-input[aria-invalid="true"], .op-textarea[aria-invalid="true"], .op-select select[aria-invalid="true"] {
  border-color: var(--op-critical-fg); box-shadow: 0 0 0 1px var(--op-critical-fg);
}
.op-input:disabled, .op-textarea:disabled, .op-select select:disabled {
  background: var(--op-surface-2); color: var(--op-text-disabled); border-color: var(--op-border); cursor: not-allowed;
}
.op-input[readonly] { background: var(--op-surface-2); border-style: dashed; }
.op-input--mono { font-family: var(--op-font-mono); font-size: 13px; }
.op-input--num { text-align: right; font-variant-numeric: tabular-nums; }

.op-select { position: relative; display: block; min-width: 0; }
.op-select select { appearance: none; padding-right: 36px; cursor: pointer; }
.op-select::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: var(--op-text-2); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.op-input-group { display: flex; align-items: stretch; min-width: 0; }
.op-input-group > .op-input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.op-input-group__addon {
  display: grid; place-items: center; padding: 0 var(--op-space-3);
  border: 1px solid var(--op-border-input); border-left: 0; border-radius: 0 var(--op-radius-sm) var(--op-radius-sm) 0;
  background: var(--op-surface-2); color: var(--op-text-2); font-size: var(--op-fs-sm); white-space: nowrap;
}
.op-search { position: relative; min-width: 0; }
.op-search > .op-icon { position: absolute; left: 12px; top: 50%; margin-top: -8px; color: var(--op-text-3); pointer-events: none; }
.op-search > .op-input { padding-left: 36px; }

.op-check { display: inline-flex; align-items: flex-start; gap: var(--op-space-2); cursor: pointer; line-height: var(--op-lh-md); min-height: 24px; }
.op-check input { width: 16px; height: 16px; margin: 2px 0 0; flex: none; accent-color: var(--op-accent); cursor: pointer; }
.op-check__text { display: flex; flex-direction: column; gap: 2px; }
.op-check__hint { font-size: var(--op-fs-sm); line-height: var(--op-lh-sm); color: var(--op-text-2); }
.op-check input:disabled + .op-check__text { color: var(--op-text-disabled); }
.op-choice-list { display: flex; flex-direction: column; gap: var(--op-space-3); }

.op-switch { display: inline-flex; align-items: center; gap: var(--op-space-3); cursor: pointer; }
.op-switch input {
  appearance: none; margin: 0; flex: none; width: 36px; height: 20px; border-radius: var(--op-radius-pill);
  background: var(--op-surface-2); box-shadow: inset 0 0 0 1px var(--op-border-input);
  position: relative; cursor: pointer; transition: background-color var(--op-dur-fast) var(--op-ease);
}
.op-switch input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--op-text-2); transition: transform var(--op-dur-fast) var(--op-ease), background-color var(--op-dur-fast) var(--op-ease);
}
.op-switch input:checked { background: var(--op-accent); box-shadow: inset 0 0 0 1px var(--op-accent); }
.op-switch input:checked::after { transform: translateX(16px); background: var(--op-on-accent); }
.op-switch input:focus-visible { outline: 2px solid var(--op-focus); outline-offset: 2px; }

.op-segmented {
  display: inline-flex; padding: 2px; gap: 2px; border-radius: var(--op-radius-sm);
  background: var(--op-surface-2); box-shadow: inset 0 0 0 1px var(--op-border);
  max-width: 100%; overflow-x: auto;
}
.op-segmented label { position: relative; flex: 1 0 auto; }
.op-segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.op-segmented span {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: calc(var(--op-control-h-sm) - 4px); padding: 0 var(--op-space-3);
  border-radius: calc(var(--op-radius-sm) - 2px);
  font-size: var(--op-fs-sm); font-weight: var(--op-fw-semibold); color: var(--op-text-2); white-space: nowrap;
}
.op-segmented input:hover + span { color: var(--op-text); }
.op-segmented input:checked + span { background: var(--op-surface); color: var(--op-text); box-shadow: 0 0 0 1px var(--op-border-strong); }
.op-segmented input:focus-visible + span { outline: 2px solid var(--op-focus); outline-offset: 1px; }
.op-segmented--icons span { padding: 0 var(--op-space-2); }

.op-form-actions {
  display: flex; flex-wrap: wrap; gap: var(--op-space-2); align-items: center;
  padding-top: var(--op-space-4); border-top: 1px solid var(--op-border);
}
.op-form-actions--sticky {
  position: sticky; bottom: 0; z-index: var(--op-z-sticky);
  background: var(--op-canvas); padding-bottom: calc(var(--op-space-4) + env(safe-area-inset-bottom, 0px));
}
.op-form-actions__note { color: var(--op-text-2); font-size: var(--op-fs-sm); margin-left: auto; }

.op-error-summary {
  border: 1px solid var(--op-critical-border); background: var(--op-critical-bg); color: var(--op-text);
  border-radius: var(--op-radius-md); padding: var(--op-space-4);
}
.op-error-summary :is(h2, h3) { font-size: var(--op-fs-md); color: var(--op-critical-fg); display: flex; gap: var(--op-space-2); align-items: center; }
.op-error-summary ul { margin: var(--op-space-2) 0 0; padding-left: var(--op-space-6); }
.op-error-summary a { color: var(--op-text); }

.op-dropzone {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--op-space-2);
  padding: var(--op-space-6); text-align: center;
  border: 1.5px dashed var(--op-border-input); border-radius: var(--op-radius-md);
  background: var(--op-surface-2); color: var(--op-text-2);
}
.op-dropzone:hover, .op-dropzone.is-dragover { border-color: var(--op-accent); background: var(--op-accent-soft); }
.op-dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.op-dropzone:focus-within { outline: 2px solid var(--op-focus); outline-offset: 2px; }
.op-dropzone strong { color: var(--op-text); }

/* ---------------------------------------------------------------- 8. Фильтры */
.op-filterbar {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--op-space-3);
  padding: var(--op-space-3); border-radius: var(--op-radius-md);
  background: var(--op-surface); border: 1px solid var(--op-border);
}
.op-filterbar .op-field { flex: 1 1 180px; max-width: 280px; }
.op-filterbar .op-field--grow { flex: 2 1 280px; max-width: none; }
.op-filterbar__actions { display: flex; gap: var(--op-space-2); margin-left: auto; }
.op-chips { display: flex; flex-wrap: wrap; gap: var(--op-space-2); align-items: center; }
.op-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px;
  border-radius: var(--op-radius-pill); background: var(--op-surface-2); border: 1px solid var(--op-border-strong);
  font-size: var(--op-fs-sm); color: var(--op-text);
}
.op-chip button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: var(--op-text-2); cursor: pointer; padding: 0; }
.op-chip button:hover { background: var(--op-surface-hover); color: var(--op-text); }

/* ---------------------------------------------------------------- 9. Вкладки */
.op-tabs {
  display: flex; gap: var(--op-space-1); border-bottom: 1px solid var(--op-border);
  overflow-x: auto; scrollbar-width: none; max-width: 100%;
}
.op-tabs::-webkit-scrollbar { display: none; }
.op-tab {
  position: relative; display: inline-flex; align-items: center; gap: var(--op-space-2);
  height: 40px; padding: 0 var(--op-space-3); flex: none;
  border: 0; background: transparent; color: var(--op-text-2); text-decoration: none;
  font: inherit; font-weight: var(--op-fw-semibold); cursor: pointer; white-space: nowrap;
}
.op-tab:hover { color: var(--op-text); }
.op-tab[aria-selected="true"], .op-tab[aria-current="page"] { color: var(--op-text); }
.op-tab[aria-selected="true"]::after, .op-tab[aria-current="page"]::after {
  content: ""; position: absolute; left: var(--op-space-2); right: var(--op-space-2); bottom: -1px; height: 2px;
  background: var(--op-accent); border-radius: 2px 2px 0 0;
}
.op-tab:focus-visible { outline-offset: -2px; }
.op-tabpanel { padding-top: var(--op-space-5); }
.op-tabpanel:focus-visible { outline: none; }

/* ---------------------------------------------------------------- 10. Таблица */
.op-table-wrap {
  overflow-x: auto; border: 1px solid var(--op-border); border-radius: var(--op-radius-md);
  background: var(--op-surface); min-width: 0;
}
.op-table-wrap--scroll { max-height: min(70vh, 720px); overflow: auto; }
.op-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--op-fs-md); }
.op-table caption { text-align: left; padding: var(--op-space-3) var(--op-cell-px); color: var(--op-text-2); font-size: var(--op-fs-sm); }
.op-table th, .op-table td { padding: var(--op-cell-py) var(--op-cell-px); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--op-border); }
.op-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--op-surface-2); color: var(--op-text-2);
  font-size: var(--op-fs-sm); line-height: var(--op-lh-sm); font-weight: var(--op-fw-semibold); white-space: nowrap;
}
.op-table tbody tr:last-child > * { border-bottom: 0; }
.op-table tbody tr { transition: background-color var(--op-dur-fast) var(--op-ease); }
.op-table tbody tr:hover { background: var(--op-surface-hover); }
.op-table .op-num, .op-table th.op-num { text-align: right; }
.op-table td.op-actions { text-align: right; white-space: nowrap; width: 1%; }
.op-table--compact th, .op-table--compact td { padding-block: 6px; }
.op-table tfoot td { background: var(--op-surface-2); font-weight: var(--op-fw-semibold); border-top: 1px solid var(--op-border-strong); border-bottom: 0; }

.op-th-sort {
  display: inline-flex; align-items: center; gap: 4px; margin: -4px -6px; padding: 4px 6px;
  border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; border-radius: var(--op-radius-xs);
}
.op-th-sort:hover { color: var(--op-text); background: var(--op-surface-hover); }
.op-th-sort .op-icon { width: 14px; height: 14px; opacity: 0.55; }
th[aria-sort="ascending"] .op-th-sort, th[aria-sort="descending"] .op-th-sort { color: var(--op-text); }
th[aria-sort="ascending"] .op-th-sort .op-icon, th[aria-sort="descending"] .op-th-sort .op-icon { opacity: 1; }

.op-id {
  font-family: var(--op-font-mono); font-size: 13px; font-weight: var(--op-fw-medium);
  font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -0.01em;
}
a.op-id { color: var(--op-link); text-decoration: none; }
a.op-id:hover { text-decoration: underline; }
.op-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.op-cell__primary { font-weight: var(--op-fw-semibold); color: var(--op-text); }
.op-cell__primary a { color: inherit; text-decoration: none; }
.op-cell__primary a:hover { color: var(--op-link-hover); text-decoration: underline; }
.op-cell__secondary { font-size: var(--op-fs-sm); line-height: var(--op-lh-sm); color: var(--op-text-2); }
.op-unit { color: var(--op-text-3); font-size: 0.92em; margin-left: 2px; }

/* состояния строки: метка слева + фон; смысл дублируется текстом в ячейке */
/* приоритет метки: риск > ваш ход > внимание/готово */
.op-table tbody tr.is-warn > :first-child { box-shadow: inset 3px 0 0 var(--op-warning-fg); }
.op-table tbody tr.is-done > :first-child { box-shadow: inset 3px 0 0 var(--op-success-fg); }
.op-table tbody tr.is-turn > :first-child { box-shadow: inset 3px 0 0 var(--op-accent); }
.op-table tbody tr.is-turn { background: color-mix(in srgb, var(--op-accent-soft) 55%, transparent); }
.op-table tbody tr.is-turn:hover { background: var(--op-accent-soft); }
.op-table tbody tr.is-risk > :first-child { box-shadow: inset 3px 0 0 var(--op-critical-fg); }
.op-table tbody tr.is-muted > * { color: var(--op-text-3); }
.op-table tbody tr.is-muted .op-cell__primary { color: var(--op-text-2); font-weight: var(--op-fw-medium); }
.op-table tbody tr.is-selected { background: var(--op-surface-selected); }

/* Таблица карточками на телефоне: <td data-label="Статус"> */
@media (max-width: 640px) {
  .op-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .op-table--stack, .op-table--stack tbody { display: block; }
  .op-table--stack tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--op-space-3);
    padding: var(--op-space-3) var(--op-space-4); border-bottom: 1px solid var(--op-border);
  }
  .op-table--stack tbody tr:last-child { border-bottom: 0; }
  .op-table--stack td { display: block; padding: 0; border: 0; text-align: left !important; }
  .op-table--stack td[data-label]:not([data-primary])::before {
    content: attr(data-label); display: block; font-size: var(--op-fs-xs); line-height: var(--op-lh-xs); color: var(--op-text-3);
  }
  .op-table--stack td[data-primary], .op-table--stack td[data-wide] { grid-column: 1 / -1; }
  .op-table--stack td.op-actions { grid-column: 1 / -1; width: auto; padding-top: var(--op-space-2); }
  .op-table--stack tbody tr.is-turn, .op-table--stack tbody tr.is-risk, .op-table--stack tbody tr.is-warn, .op-table--stack tbody tr.is-done { box-shadow: inset 3px 0 0 var(--_row-mark, transparent); }
  .op-table--stack tbody tr.is-warn { --_row-mark: var(--op-warning-fg); }
  .op-table--stack tbody tr.is-done { --_row-mark: var(--op-success-fg); }
  .op-table--stack tbody tr.is-turn { --_row-mark: var(--op-accent); }
  .op-table--stack tbody tr.is-risk { --_row-mark: var(--op-critical-fg); }
  .op-table--stack tbody tr > :first-child { box-shadow: none !important; }
}

/* ---------------------------------------------------------------- 11. Статусы и метки */
.op-status {
  --_fg: var(--op-neutral-fg); --_bg: var(--op-neutral-bg); --_bd: var(--op-neutral-border);
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px 0 7px; max-width: 100%;
  border-radius: var(--op-radius-pill); border: 1px solid var(--_bd);
  background: var(--_bg); color: var(--_fg);
  font-size: var(--op-fs-xs); line-height: 1; font-weight: var(--op-fw-semibold); white-space: nowrap;
  vertical-align: middle;
}
.op-status::before { content: ""; flex: none; width: 8px; height: 8px; background: currentColor; }
/* форма значка различает тон без цвета: ○ нейтр. ● инфо ▲ внимание ✓ готово ◆ критично — финал */
.op-status--neutral::before { background: transparent; border: 1.5px solid currentColor; border-radius: 50%; }
.op-status--info { --_fg: var(--op-info-fg); --_bg: var(--op-info-bg); --_bd: var(--op-info-border); }
.op-status--info::before { border-radius: 50%; }
.op-status--warning { --_fg: var(--op-warning-fg); --_bg: var(--op-warning-bg); --_bd: var(--op-warning-border); }
.op-status--warning::before { width: 9px; height: 8px; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.op-status--success { --_fg: var(--op-success-fg); --_bg: var(--op-success-bg); --_bd: var(--op-success-border); }
.op-status--success::before {
  width: 10px; height: 10px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.op-status--critical { --_fg: var(--op-critical-fg); --_bg: var(--op-critical-bg); --_bd: var(--op-critical-border); }
.op-status--critical::before { width: 9px; height: 9px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.op-status--terminal { --_fg: var(--op-terminal-fg); --_bg: transparent; --_bd: var(--op-terminal-border); border-style: dashed; }
.op-status--terminal::before { width: 8px; height: 2px; border-radius: 1px; }
.op-status--lock::before {
  width: 10px; height: 10px; clip-path: none; border: 0; border-radius: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.op-status--lg { height: 28px; padding: 0 12px 0 10px; font-size: var(--op-fs-sm); }

/* «Ваш ход» — подпись очереди текущей роли. Единственное место, где акцент — состояние, а не кнопка. */
.op-turn {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px 0 6px;
  border-radius: var(--op-radius-pill); background: var(--op-accent-soft); color: var(--op-accent-text);
  box-shadow: inset 0 0 0 1px var(--op-accent-soft-border);
  font-size: var(--op-fs-xs); font-weight: var(--op-fw-bold); line-height: 1; white-space: nowrap;
}
.op-turn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--op-accent); box-shadow: 0 0 0 2px var(--op-accent-soft-border); }

.op-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--op-radius-pill); background: var(--op-surface-2); color: var(--op-text-2);
  box-shadow: inset 0 0 0 1px var(--op-border-strong);
  font-size: var(--op-fs-xs); font-weight: var(--op-fw-bold); font-variant-numeric: tabular-nums; line-height: 1;
}
.op-count--turn { background: var(--op-accent); color: var(--op-on-accent); box-shadow: none; }
.op-count--critical { background: var(--op-critical-bg); color: var(--op-critical-fg); box-shadow: inset 0 0 0 1px var(--op-critical-border); }
.op-count--warning { background: var(--op-warning-bg); color: var(--op-warning-fg); box-shadow: inset 0 0 0 1px var(--op-warning-border); }

.op-role {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px;
  border-radius: var(--op-radius-xs); background: var(--op-surface-2); color: var(--op-text);
  box-shadow: inset 0 0 0 1px var(--op-border-strong);
  font-size: var(--op-fs-xs); font-weight: var(--op-fw-semibold); white-space: nowrap;
}
.op-role .op-icon { width: 14px; height: 14px; color: var(--op-text-2); }
.op-role--me { background: var(--op-accent-soft); color: var(--op-accent-text); box-shadow: inset 0 0 0 1px var(--op-accent-soft-border); }
.op-role--me .op-icon { color: var(--op-accent-text); }
.op-role--system { background: transparent; box-shadow: none; border: 1px dashed var(--op-border-input); color: var(--op-text-2); }

.op-tag {
  display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px;
  border-radius: var(--op-radius-xs); font-size: var(--op-fs-xs); font-weight: var(--op-fw-semibold);
  background: var(--op-surface-2); color: var(--op-text-2); white-space: nowrap;
}
.op-tag .op-icon { width: 12px; height: 12px; }
.op-tag--warning { background: var(--op-warning-bg); color: var(--op-warning-fg); }
.op-tag--critical { background: var(--op-critical-bg); color: var(--op-critical-fg); }
.op-tag--success { background: var(--op-success-bg); color: var(--op-success-fg); }
.op-tag--info { background: var(--op-info-bg); color: var(--op-info-fg); }

.op-meta { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: var(--op-space-2) var(--op-space-4); margin: 0; }
.op-meta dt { color: var(--op-text-2); font-size: var(--op-fs-sm); line-height: var(--op-lh-md); }
.op-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.op-meta--stacked { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.op-meta--stacked dd + dt { margin-top: var(--op-space-3); }
.op-meta-row { display: grid; gap: var(--op-space-4); grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); margin: 0; }
.op-meta-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.op-meta-row dt { color: var(--op-text-2); font-size: var(--op-fs-sm); line-height: var(--op-lh-sm); }
.op-meta-row dd { margin: 0; font-weight: var(--op-fw-semibold); }

/* ---------------------------------------------------------------- 12. Панели */
.op-panel { background: var(--op-surface); border: 1px solid var(--op-border); border-radius: var(--op-radius-md); min-width: 0; }
.op-panel__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--op-space-2) var(--op-space-4);
  padding: var(--op-space-3) var(--op-panel-p); border-bottom: 1px solid var(--op-border); min-height: 52px;
}
.op-panel__title { font-size: var(--op-fs-md); line-height: var(--op-lh-md); font-weight: var(--op-fw-semibold); display: flex; align-items: center; gap: var(--op-space-2); }
.op-panel__body { padding: var(--op-panel-p); display: flex; flex-direction: column; gap: var(--op-gap); }
.op-panel__foot { padding: var(--op-space-3) var(--op-panel-p); border-top: 1px solid var(--op-border); display: flex; flex-wrap: wrap; gap: var(--op-space-2); align-items: center; }
.op-panel--flush .op-panel__body { padding: 0; }
.op-panel--flush .op-table-wrap { border: 0; border-radius: 0 0 var(--op-radius-md) var(--op-radius-md); }
.op-panel--inset { background: var(--op-surface-2); }
.op-panel--accent { border-color: var(--op-accent-soft-border); box-shadow: inset 3px 0 0 var(--op-accent); }

/* ---------------------------------------------------------------- 13. Обратная связь */
.op-alert {
  --_fg: var(--op-info-fg); --_bg: var(--op-info-bg); --_bd: var(--op-info-border);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--op-space-3); align-items: start;
  padding: var(--op-space-3) var(--op-space-4); border-radius: var(--op-radius-md);
  background: var(--_bg); border: 1px solid var(--_bd); color: var(--op-text);
}
.op-alert > .op-icon { color: var(--_fg); width: 18px; height: 18px; margin-top: 1px; }
.op-alert__title { font-weight: var(--op-fw-semibold); }
.op-alert__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.op-alert__body p { color: var(--op-text-2); }
.op-alert__actions { display: flex; gap: var(--op-space-2); flex-wrap: wrap; align-self: center; }
.op-alert--success { --_fg: var(--op-success-fg); --_bg: var(--op-success-bg); --_bd: var(--op-success-border); }
.op-alert--warning { --_fg: var(--op-warning-fg); --_bg: var(--op-warning-bg); --_bd: var(--op-warning-border); }
.op-alert--critical { --_fg: var(--op-critical-fg); --_bg: var(--op-critical-bg); --_bd: var(--op-critical-border); }
.op-alert--neutral { --_fg: var(--op-neutral-fg); --_bg: var(--op-surface-2); --_bd: var(--op-border); }
@media (max-width: 640px) { .op-alert { grid-template-columns: auto minmax(0, 1fr); } .op-alert__actions { grid-column: 2; } }

/* Баннер во всю ширину рабочей области: лицензия, демо-данные, офлайн */
.op-banner {
  --_fg: var(--op-warning-fg); --_bg: var(--op-warning-bg); --_bd: var(--op-warning-border);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--op-space-2) var(--op-space-3);
  padding: var(--op-space-2) var(--op-space-4); border-radius: var(--op-radius-md);
  background: var(--_bg); border: 1px solid var(--_bd); color: var(--op-text); font-size: var(--op-fs-sm);
}
.op-banner > .op-icon { color: var(--_fg); }
.op-banner__text { flex: 1 1 240px; min-width: 0; }
.op-banner--info { --_fg: var(--op-info-fg); --_bg: var(--op-info-bg); --_bd: var(--op-info-border); }
.op-banner--critical { --_fg: var(--op-critical-fg); --_bg: var(--op-critical-bg); --_bd: var(--op-critical-border); }
.op-banner--warning { --_fg: var(--op-warning-fg); --_bg: var(--op-warning-bg); --_bd: var(--op-warning-border); }
.op-banner--neutral { --_fg: var(--op-text-2); --_bg: var(--op-surface-2); --_bd: var(--op-border); }

.op-toast-region {
  position: fixed; z-index: var(--op-z-toast); right: var(--op-space-4); bottom: calc(var(--op-space-4) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: var(--op-space-2); width: min(400px, calc(100vw - 32px)); pointer-events: none;
}
.op-toast {
  pointer-events: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--op-space-3); align-items: start;
  padding: var(--op-space-3) var(--op-space-3) var(--op-space-3) var(--op-space-4);
  background: var(--op-surface); color: var(--op-text); border: 1px solid var(--op-border-strong);
  border-radius: var(--op-radius-md); box-shadow: var(--op-shadow-overlay);
  animation: op-toast-in var(--op-dur) var(--op-ease);
}
.op-toast > .op-icon { width: 18px; height: 18px; margin-top: 1px; }
.op-toast--success > .op-icon { color: var(--op-success-fg); }
.op-toast--critical > .op-icon { color: var(--op-critical-fg); }
.op-toast--info > .op-icon { color: var(--op-info-fg); }
.op-toast__text { display: flex; flex-direction: column; gap: 2px; }
.op-toast__text p { color: var(--op-text-2); font-size: var(--op-fs-sm); line-height: var(--op-lh-sm); }

.op-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0;
  border: 1px solid var(--op-border-strong); border-radius: var(--op-radius-lg);
  background: var(--op-surface); color: var(--op-text); box-shadow: var(--op-shadow-overlay);
}
.op-dialog::backdrop { background: var(--op-scrim); }
.op-dialog[open] { animation: op-dialog-in var(--op-dur) var(--op-ease); }
.op-dialog__form { display: flex; flex-direction: column; max-height: inherit; }
.op-dialog__head { display: flex; align-items: flex-start; gap: var(--op-space-3); padding: var(--op-space-5) var(--op-space-5) var(--op-space-3); }
.op-dialog__title { font-size: var(--op-fs-xl); line-height: var(--op-lh-xl); font-weight: var(--op-fw-semibold); flex: 1; }
.op-dialog__body { padding: 0 var(--op-space-5) var(--op-space-5); overflow-y: auto; display: flex; flex-direction: column; gap: var(--op-space-4); }
.op-dialog__body > p { color: var(--op-text-2); }
.op-dialog__foot { display: flex; flex-wrap: wrap-reverse; justify-content: flex-end; gap: var(--op-space-2); padding: var(--op-space-4) var(--op-space-5); border-top: 1px solid var(--op-border); background: var(--op-surface-2); border-radius: 0 0 var(--op-radius-lg) var(--op-radius-lg); }
@media (max-width: 640px) {
  .op-dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: var(--op-radius-lg) var(--op-radius-lg) 0 0; }
  .op-dialog__foot { padding-bottom: calc(var(--op-space-4) + env(safe-area-inset-bottom, 0px)); }
  .op-dialog__foot .op-btn { flex: 1 1 auto; }
}

/* Меню на <details>: замена «Ещё» */
.op-menu { position: relative; display: inline-block; }
.op-menu > summary { list-style: none; cursor: pointer; }
.op-menu > summary::-webkit-details-marker { display: none; }
.op-menu__list {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: var(--op-z-overlay); min-width: 220px;
  padding: var(--op-space-1); background: var(--op-surface); border: 1px solid var(--op-border-strong);
  border-radius: var(--op-radius-md); box-shadow: var(--op-shadow-overlay);
  display: flex; flex-direction: column;
}
.op-menu__item {
  display: flex; align-items: center; gap: var(--op-space-2); min-height: 36px; padding: 0 var(--op-space-3);
  border: 0; border-radius: var(--op-radius-sm); background: transparent; color: var(--op-text);
  font: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.op-menu__item:hover { background: var(--op-surface-hover); }
.op-menu__item--danger { color: var(--op-critical-fg); }
.op-menu__sep { height: 1px; background: var(--op-border); margin: var(--op-space-1) 0; }

.op-empty {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--op-space-2);
  padding: var(--op-space-8) var(--op-space-6); max-width: 560px;
}
.op-empty--center { align-items: center; text-align: center; margin: 0 auto; }
.op-empty > .op-icon { color: var(--op-text-3); margin-bottom: var(--op-space-2); }
.op-empty__title { font-size: var(--op-fs-lg); line-height: var(--op-lh-lg); font-weight: var(--op-fw-semibold); }
.op-empty__text { color: var(--op-text-2); }
.op-empty .op-btn-group { margin-top: var(--op-space-3); }

.op-skeleton {
  display: block; height: 14px; border-radius: var(--op-radius-xs);
  background: linear-gradient(90deg, var(--op-skeleton) 0%, var(--op-skeleton-shine) 50%, var(--op-skeleton) 100%);
  background-size: 200% 100%; animation: op-shimmer 1.4s linear infinite;
}
.op-skeleton--title { height: 22px; width: 40%; }
.op-skeleton--row { height: 36px; }
.op-spinner { display: inline-block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--op-border-strong); border-top-color: var(--op-accent); animation: op-spin 0.8s linear infinite; vertical-align: -3px; }

.op-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--op-space-3); padding: var(--op-space-3) var(--op-cell-px); color: var(--op-text-2); font-size: var(--op-fs-sm); }
.op-pager__pages { display: flex; gap: var(--op-space-1); }
.op-pager__pages .op-btn { min-width: var(--op-control-h-sm); padding: 0 var(--op-space-2); }
.op-pager__pages [aria-current="page"] { --_bg: var(--op-surface-selected); --_bd: var(--op-accent-soft-border); }

/* ---------------------------------------------------------------- 14. Данные и процесс */
.op-kpis { display: grid; gap: var(--op-gap); grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.op-kpi { display: flex; flex-direction: column; gap: var(--op-space-1); padding: var(--op-space-4) var(--op-space-5); background: var(--op-surface); border: 1px solid var(--op-border); border-radius: var(--op-radius-md); min-width: 0; }
.op-kpi__label { color: var(--op-text-2); font-size: var(--op-fs-sm); line-height: var(--op-lh-sm); font-weight: var(--op-fw-medium); }
.op-kpi__value { font-size: var(--op-fs-3xl); line-height: var(--op-lh-3xl); font-weight: var(--op-fw-semibold); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.op-kpi__value .op-unit { font-size: var(--op-fs-lg); font-weight: var(--op-fw-medium); letter-spacing: 0; }
.op-kpi__note { color: var(--op-text-2); font-size: var(--op-fs-sm); line-height: var(--op-lh-sm); display: flex; gap: var(--op-space-2); align-items: center; flex-wrap: wrap; }
.op-kpi--critical { border-color: var(--op-critical-border); box-shadow: inset 3px 0 0 var(--op-critical-fg); }
.op-kpi--turn { border-color: var(--op-accent-soft-border); box-shadow: inset 3px 0 0 var(--op-accent); }
a.op-kpi { color: inherit; text-decoration: none; }
a.op-kpi:hover { border-color: var(--op-border-strong); background: var(--op-surface-hover); }

/* Шкала загрузки («Ёмкость»): принято — сплошная, очередь — штриховка, порог риска — метка */
.op-meter { display: flex; flex-direction: column; gap: var(--op-space-2); min-width: 0; }
.op-meter__head { display: flex; justify-content: space-between; gap: var(--op-space-3); align-items: baseline; flex-wrap: wrap; }
.op-meter__label { font-weight: var(--op-fw-semibold); }
.op-meter__value { font-variant-numeric: tabular-nums; color: var(--op-text-2); font-size: var(--op-fs-sm); }
.op-meter__track { position: relative; height: 10px; border-radius: var(--op-radius-pill); background: var(--op-surface-2); box-shadow: inset 0 0 0 1px var(--op-border); overflow: visible; display: flex; }
.op-meter__fill { height: 100%; background: var(--op-chart-1); border-radius: var(--op-radius-pill) 0 0 var(--op-radius-pill); }
.op-meter__queue {
  height: 100%;
  background: repeating-linear-gradient(135deg, var(--op-chart-1) 0 2px, transparent 2px 5px);
  box-shadow: inset 0 0 0 1px var(--op-chart-1); opacity: 0.85;
}
.op-meter__threshold { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--op-text); border-radius: 1px; }
.op-meter.is-risk .op-meter__fill { background: var(--op-warning-fg); }
.op-meter.is-over .op-meter__fill { background: var(--op-critical-fg); }
.op-meter__legend { display: flex; flex-wrap: wrap; gap: var(--op-space-2) var(--op-space-4); font-size: var(--op-fs-xs); color: var(--op-text-2); }
.op-meter__legend span { display: inline-flex; align-items: center; gap: 6px; }
.op-meter__legend i { width: 12px; height: 8px; border-radius: 2px; background: var(--op-chart-1); }
.op-meter__legend i.is-threshold { width: 2px; height: 12px; border-radius: 1px; background: var(--op-text); }
.op-meter__legend i.is-queue { background: repeating-linear-gradient(135deg, var(--op-chart-1) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--op-chart-1); }

/* Норма аварийного резерва (ЗИП): N из нормы, клетками */
.op-norm { display: inline-flex; align-items: center; gap: var(--op-space-2); white-space: nowrap; }
.op-norm__cells { display: inline-flex; gap: 3px; }
.op-norm__cells i { width: 10px; height: 14px; border-radius: 2px; background: var(--op-success-fg); }
.op-norm__cells i.is-empty { background: transparent; box-shadow: inset 0 0 0 1.5px var(--op-critical-fg); }
.op-norm__text { font-variant-numeric: tabular-nums; font-size: var(--op-fs-sm); color: var(--op-text-2); }
.op-norm.is-risk .op-norm__text { color: var(--op-critical-fg); font-weight: var(--op-fw-semibold); }

/* Маршрут статусов: кто владеет каждым шагом */
.op-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; counter-reset: none; overflow-x: auto; }
.op-step { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px var(--op-space-3) 0 0; min-width: 96px; }
.op-step::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--op-border-strong); }
.op-step::after { content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--op-surface); box-shadow: inset 0 0 0 2px var(--op-border-input); }
.op-step:last-child::before { right: auto; width: 12px; }
.op-step__name { font-size: var(--op-fs-sm); line-height: var(--op-lh-sm); font-weight: var(--op-fw-semibold); color: var(--op-text-2); }
.op-step__role { font-size: var(--op-fs-xs); line-height: var(--op-lh-xs); color: var(--op-text-3); }
.op-step.is-done::before { background: var(--op-success-fg); }
.op-step.is-done::after { background: var(--op-success-fg); box-shadow: none; }
.op-step.is-done .op-step__name { color: var(--op-text); }
.op-step.is-current::after { background: var(--op-accent); box-shadow: 0 0 0 4px var(--op-accent-soft); }
.op-step.is-current .op-step__name { color: var(--op-text); }
.op-step.is-current .op-step__role { color: var(--op-accent-text); font-weight: var(--op-fw-semibold); }
.op-step.is-blocked::after { background: var(--op-warning-fg); box-shadow: 0 0 0 4px var(--op-warning-bg); border-radius: 2px; transform: rotate(45deg) scale(0.85); }
.op-step.is-blocked .op-step__name { color: var(--op-warning-fg); }
@media (max-width: 720px) {
  .op-steps { grid-auto-flow: row; grid-auto-columns: auto; }
  .op-step { padding: 0 0 var(--op-space-3) 24px; min-width: 0; }
  .op-step::before { top: 12px; bottom: 0; left: 5px; right: auto; width: 2px; height: auto; }
  .op-step:last-child::before { display: none; }
}

/* Журнал событий; передача между ролями — отдельный вид события (шов) */
.op-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.op-event { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: var(--op-space-3); padding-bottom: var(--op-space-5); }
.op-event::before { content: ""; position: absolute; left: 9px; top: 18px; bottom: 0; width: 2px; background: var(--op-border); }
.op-event:last-child { padding-bottom: 0; }
.op-event:last-child::before { display: none; }
.op-event__dot { width: 20px; height: 20px; display: grid; place-items: center; color: var(--op-text-3); }
.op-event__dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--op-surface); box-shadow: inset 0 0 0 2px var(--op-border-input); }
.op-event__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.op-event__line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--op-space-2); }
.op-event__title { font-weight: var(--op-fw-semibold); }
.op-event__meta { font-size: var(--op-fs-sm); line-height: var(--op-lh-sm); color: var(--op-text-2); display: flex; flex-wrap: wrap; gap: var(--op-space-1) var(--op-space-3); }
.op-event__meta time { font-variant-numeric: tabular-nums; }
.op-event__reason {
  margin: 0; padding: var(--op-space-2) var(--op-space-3); border-left: 2px solid var(--op-border-strong);
  background: var(--op-surface-2); border-radius: 0 var(--op-radius-sm) var(--op-radius-sm) 0; color: var(--op-text);
}
.op-event__reason b { display: block; font-size: var(--op-fs-xs); color: var(--op-text-2); font-weight: var(--op-fw-semibold); }
.op-event--handoff .op-event__dot::before { width: 10px; height: 10px; background: var(--op-accent); box-shadow: 0 0 0 3px var(--op-accent-soft); }
.op-event--critical .op-event__dot::before { background: var(--op-critical-fg); box-shadow: none; border-radius: 2px; transform: rotate(45deg); }
.op-event--system .op-event__dot::before { background: transparent; box-shadow: inset 0 0 0 2px var(--op-border-input); border-radius: 2px; }
.op-transition { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.op-transition > .op-icon { color: var(--op-text-3); width: 14px; height: 14px; }

/* Шов: [Роль] —●— [Роль] */
.op-handoff { display: inline-flex; align-items: center; gap: 0; max-width: 100%; flex-wrap: wrap; row-gap: 4px; }
.op-handoff__link { position: relative; width: 40px; height: 24px; flex: none; }
.op-handoff__link::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--op-accent); opacity: 0.55; }
.op-handoff__link::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--op-accent); box-shadow: 0 0 0 3px var(--op-surface); }

/* Ворота: что мешает следующему шагу */
.op-gate { border: 1px solid var(--op-warning-border); border-radius: var(--op-radius-md); background: var(--op-surface); overflow: hidden; }
.op-gate__head { display: flex; gap: var(--op-space-3); align-items: flex-start; padding: var(--op-space-3) var(--op-space-4); background: var(--op-warning-bg); }
.op-gate__head > .op-icon { color: var(--op-warning-fg); width: 18px; height: 18px; margin-top: 1px; }
.op-gate__title { font-weight: var(--op-fw-semibold); }
.op-gate__list { list-style: none; margin: 0; padding: var(--op-space-2) var(--op-space-4) var(--op-space-3); display: flex; flex-direction: column; gap: var(--op-space-2); }
.op-gate__item { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: var(--op-space-2); align-items: center; }
.op-gate__item > .op-icon { width: 16px; height: 16px; }
.op-gate__item.is-met > .op-icon { color: var(--op-success-fg); }
.op-gate__item.is-unmet > .op-icon { color: var(--op-critical-fg); }
.op-gate__item.is-met .op-gate__text { color: var(--op-text-2); }
.op-gate--clear { border-color: var(--op-success-border); }
.op-gate--clear .op-gate__head { background: var(--op-success-bg); }
.op-gate--clear .op-gate__head > .op-icon { color: var(--op-success-fg); }

/* Свежесть данных об остатках (ЗИП) */
.op-fresh { display: inline-flex; align-items: center; gap: 4px; font-size: var(--op-fs-xs); font-weight: var(--op-fw-semibold); color: var(--op-text-2); white-space: nowrap; }
.op-fresh .op-icon { width: 12px; height: 12px; }
.op-fresh--ok { color: var(--op-success-fg); }
.op-fresh--stale, .op-fresh--unknown { color: var(--op-warning-fg); }

/* ---------------------------------------------------------------- 15. CRM: доказательства и подтверждение человеком */
.op-evidence { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--op-border); border-radius: var(--op-radius-md); background: var(--op-surface); }
.op-evidence__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--op-space-1) var(--op-space-4); padding: var(--op-space-3) var(--op-space-4); border-bottom: 1px solid var(--op-border); }
.op-evidence__item:last-child { border-bottom: 0; }
.op-evidence__fact { color: var(--op-text); }
.op-evidence__source { grid-column: 1; display: flex; flex-wrap: wrap; gap: var(--op-space-1) var(--op-space-3); align-items: center; font-size: var(--op-fs-sm); color: var(--op-text-2); }
.op-evidence__source a { display: inline-flex; align-items: center; gap: 4px; overflow-wrap: anywhere; }
.op-evidence__aside { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
.op-evidence__item.is-missing .op-evidence__fact { color: var(--op-text-2); font-style: italic; }

.op-confirm {
  border: 1px solid var(--op-accent-soft-border); border-radius: var(--op-radius-md); background: var(--op-surface);
  box-shadow: inset 3px 0 0 var(--op-accent); padding: var(--op-space-4) var(--op-space-5); display: flex; flex-direction: column; gap: var(--op-space-3);
}
.op-confirm__title { font-weight: var(--op-fw-semibold); display: flex; gap: var(--op-space-2); align-items: center; }
.op-confirm__effects { margin: 0; padding-left: var(--op-space-5); color: var(--op-text-2); display: flex; flex-direction: column; gap: 4px; }
.op-confirm__foot { display: flex; flex-wrap: wrap; gap: var(--op-space-3); align-items: center; padding-top: var(--op-space-3); border-top: 1px solid var(--op-border); }
.op-confirm__foot .op-check { flex: 1 1 260px; }

.op-ai-note {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px;
  border-radius: var(--op-radius-xs); border: 1px dashed var(--op-border-input);
  font-size: var(--op-fs-xs); font-weight: var(--op-fw-semibold); color: var(--op-text-2); background: var(--op-surface-2);
}
.op-ai-note .op-icon { width: 14px; height: 14px; }
.op-draft {
  border: 1px dashed var(--op-border-input); border-radius: var(--op-radius-md); background: var(--op-surface-2);
  padding: var(--op-space-4); white-space: pre-wrap; font-size: var(--op-fs-md); line-height: 22px; max-width: var(--op-prose-max);
}

/* ---------------------------------------------------------------- 16. Графики */
.op-chart { position: relative; min-width: 0; }
.op-chart__canvas { position: relative; height: 260px; }
.op-chart__canvas--sm { height: 180px; }
.op-legend { display: flex; flex-wrap: wrap; gap: var(--op-space-2) var(--op-space-4); font-size: var(--op-fs-sm); color: var(--op-text-2); margin: 0; padding: 0; list-style: none; }
.op-legend li { display: inline-flex; align-items: center; gap: 6px; }
.op-legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--_c, var(--op-chart-1)); }
.op-legend i.is-line { height: 2px; width: 14px; border-radius: 1px; }
.op-chart-table summary { cursor: pointer; color: var(--op-link); font-size: var(--op-fs-sm); margin-top: var(--op-space-2); }

/* ---------------------------------------------------------------- 17. Вход */
.op-login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--op-canvas); }
.op-login__brand {
  background: var(--op-sidebar-bg); color: var(--op-text); padding: var(--op-space-10) var(--op-space-8);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--op-space-8); position: relative; overflow: hidden;
}
.op-login__product { font-family: var(--op-font-brand); font-weight: 600; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.15; letter-spacing: -0.01em; max-width: 14ch; }
.op-login__lede { color: var(--op-text-2); max-width: 36ch; margin-top: var(--op-space-4); font-size: var(--op-fs-lg); line-height: var(--op-lh-lg); }
.op-login__seam { width: 100%; max-width: 420px; height: auto; color: var(--op-accent); }
.op-login__foot { color: var(--op-text-3); font-size: var(--op-fs-sm); }
.op-login__form { display: flex; align-items: center; justify-content: center; padding: var(--op-space-10) var(--op-gutter); }
.op-login__card { width: min(400px, 100%); display: flex; flex-direction: column; gap: var(--op-space-5); }
.op-login__card h1 { font-size: var(--op-fs-2xl); line-height: var(--op-lh-2xl); }
.op-demo-creds { border: 1px dashed var(--op-border-input); border-radius: var(--op-radius-md); padding: var(--op-space-3) var(--op-space-4); font-size: var(--op-fs-sm); color: var(--op-text-2); }
.op-demo-creds table { width: 100%; border-collapse: collapse; margin-top: var(--op-space-2); }
.op-demo-creds td { padding: 4px 0; border-top: 1px solid var(--op-border); }
@media (max-width: 860px) {
  .op-login { grid-template-columns: minmax(0, 1fr); }
  .op-login__brand { padding: var(--op-space-6) var(--op-gutter); gap: var(--op-space-4); }
  .op-login__seam { display: none; }
}

/* ---------------------------------------------------------------- 18. Движение, режимы, печать */
@keyframes op-spin { to { transform: rotate(360deg); } }
@keyframes op-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes op-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes op-dialog-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .op-app *, .op-app *::before, .op-app *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
  .op-skeleton { animation: none; background: var(--op-skeleton); }
}

@media (forced-colors: active) {
  .op-status, .op-turn, .op-count, .op-role, .op-tag, .op-chip { border: 1px solid CanvasText; forced-color-adjust: none; background: Canvas; color: CanvasText; }
  .op-status::before, .op-turn::before { background: CanvasText; }
  .op-nav__item[aria-current="page"]::before, .op-tab[aria-selected="true"]::after, .op-tab[aria-current="page"]::after { background: Highlight; }
  .op-table tbody tr.is-turn > :first-child, .op-table tbody tr.is-risk > :first-child { border-left: 3px solid Highlight; }
  .op-btn--primary { border: 2px solid ButtonText; }
}

@media print {
  .op-sidebar, .op-topbar, .op-page-head__actions, .op-filterbar, .op-toast-region, .op-btn, .op-icon-btn { display: none !important; }
  .op-shell { display: block; }
  body.op-app { background: #fff; color: #000; }
  .op-table-wrap, .op-panel { border-color: #999; }
}
