/* ibm-plex-sans-cyrillic-400-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-sans-cyrillic-400-normal-DZqxrq2p.woff2) format('woff2'), url(/assets/ibm-plex-sans-cyrillic-400-normal-BTotfTJu.woff) format('woff');
}/* ibm-plex-sans-cyrillic-500-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-sans-cyrillic-500-normal-CocWQlwt.woff2) format('woff2'), url(/assets/ibm-plex-sans-cyrillic-500-normal-ByOcLdNv.woff) format('woff');
}/* ibm-plex-sans-cyrillic-600-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/ibm-plex-sans-cyrillic-600-normal-71GNu3SW.woff2) format('woff2'), url(/assets/ibm-plex-sans-cyrillic-600-normal-BGq0mW3O.woff) format('woff');
}/* ibm-plex-sans-latin-400-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2) format('woff2'), url(/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff) format('woff');
}/* ibm-plex-sans-latin-500-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(/assets/ibm-plex-sans-latin-500-normal-6ng42L7E.woff2) format('woff2'), url(/assets/ibm-plex-sans-latin-500-normal-BgVn5rGT.woff) format('woff');
}/* ibm-plex-sans-latin-600-normal */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2) format('woff2'), url(/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff) format('woff');
}/* ibm-plex-mono-cyrillic-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-cyrillic-400-normal-BSMlKf0J.woff2) format('woff2'), url(/assets/ibm-plex-mono-cyrillic-400-normal-CEL4l2ZJ.woff) format('woff');
}/* ibm-plex-mono-latin-400-normal */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2) format('woff2'), url(/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff) format('woff');
}:root {
  font-family: "IBM Plex Sans", sans-serif;
  color: #101a21;
  background: #f4f7f9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --accent: #19637f;
  --accent-dark: #124b60;
  --accent-light: #eaf3f7;
  --border: #dce5eb;
  --muted: #5c7488;
  --sidebar: #131e25;
  --danger: #a83a32;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button {
  color: inherit;
}
a {
  color: inherit;
}
button,
input,
select {
  transition:
    background-color 120ms,
    border-color 120ms,
    color 120ms;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #008ba8;
  outline-offset: 3px;
}
input:focus,
select:focus {
  outline: 2px solid #008ba8;
  outline-offset: 1px;
  border-color: var(--accent);
}
input[aria-invalid="true"] {
  border-color: var(--danger);
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
button svg,
a svg {
  flex-shrink: 0;
}
.mono {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.88em;
  font-variant-numeric: tabular-nums;
}
.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.muted {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eyebrow {
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.045em;
}
.required {
  color: var(--accent);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #dce5eb;
  border-radius: 3px;
  background: #fff;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 500;
  min-height: 34px;
  white-space: nowrap;
}
.button:hover:not(:disabled) {
  background: #f4f7f9;
  border-color: #a9becd;
}
.button-primary {
  background: #101a21;
  color: #ffffff;
  border-color: #101a21;
  font-weight: 600;
}
.button-primary:hover:not(:disabled) {
  background: #174f68;
  border-color: #174f68;
}
.button-primary:active:not(:disabled) {
  background: #123a4d;
  border-color: #123a4d;
}
.button-primary > svg {
  color: #65d0e6;
}
.button-small {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
}
.button-full {
  width: 100%;
}
.button-group {
  display: flex;
  gap: 8px;
  align-items: center;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  color: #526b7e;
}
.icon-button:hover:not(:disabled) {
  background: #eef5f8;
  color: #234d63;
}
.text-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-button:hover {
  color: #124b60;
}
.boot-state {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}
.notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.5;
  border: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.notice svg {
  flex-shrink: 0;
}
.notice-error {
  color: var(--danger);
  background: #fff5f2;
  border-color: #efccc6;
}
.notice-neutral {
  color: #526b7e;
  background: #f4f7f9;
}
.notice p + button {
  margin-top: 8px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
}
.field input,
.field select,
.quantity-field input {
  width: 100%;
  min-width: 0;
  border: 1px solid #cddbe5;
  border-radius: 3px;
  background: #fff;
  padding: 7px 9px;
  color: #101a21;
  min-height: 36px;
  font-weight: 400;
}
input::placeholder {
  color: #526b7e;
}
.field-error {
  font-size: 12px;
  font-weight: 400;
  color: var(--danger);
  line-height: 1.4;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cddbe5;
  border-radius: 3px;
  background: #fff;
  padding: 0 11px;
  color: var(--muted);
  min-width: 0;
}
.search-field:focus-within {
  outline: 2px solid #008ba8;
  outline-offset: 1px;
  border-color: var(--accent);
}
.search-field svg {
  flex-shrink: 0;
}
.search-field input {
  border: 0;
  outline: none;
  padding: 7px 0;
  flex: 1;
  width: 100%;
  min-width: 0;
  font-size: 13px;
  background: transparent;
  color: #101a21;
}
.search-field input:focus {
  outline: none;
}
.search-field .icon-button {
  width: 24px;
  height: 28px;
}
.login-screen {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) 1.1fr;
  min-height: 100dvh;
}
.login-brand {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  color: #101a21;
  padding: 38px 48px;
  display: flex;
  flex-direction: column;
}
.login-brand::before {
  content: "";
  position: absolute;
  right: -255px;
  top: calc(50% - 210px);
  width: 420px;
  height: 420px;
  border: 40px solid #00b4d8;
  border-radius: 50%;
  pointer-events: none;
}
.login-brand > * {
  position: relative;
}
.brand-mark {
  width: 132px;
  height: 132px;
  overflow: hidden;
  border-radius: 8px;
  background: #ffffff;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.login-brand-copy {
  margin: auto 0;
  padding: 60px 0;
  max-width: 430px;
}
.login-brand-copy .eyebrow {
  color: #19637f;
}
.login-brand-copy h1 {
  font-size: clamp(32px, 3vw, 47px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 20px 0;
}
.login-title-accent {
  color: #00849b;
}
.login-brand-copy p {
  color: #526b7e;
  font-size: 15px;
  line-height: 1.7;
  max-width: 350px;
}
.login-brand-footer {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  color: #526b7e;
  font-size: 12px;
}
.login-form-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 24px;
  background: #f4f7f9;
}
.login-form {
  width: 100%;
  max-width: 330px;
}
.login-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  width: 45px;
  height: 45px;
  background: #eaf3f7;
  border-radius: 9px;
  margin-bottom: 24px;
}
.login-form h2 {
  font-size: 29px;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin-top: 8px;
}
.login-description {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0 30px;
}
.login-form .field {
  margin-bottom: 18px;
}
.login-form .button {
  margin-top: 7px;
  justify-content: space-between;
  padding: 12px 15px;
}
.login-form .field input {
  min-height: 44px;
  padding: 11px;
}
.login-form .button {
  min-height: 44px;
}

.workspace {
  display: flex;
  gap: 12px;
  padding: 12px;
  height: 100dvh;
  overflow: hidden;
  background: #f4f7f9;
}
.sidebar {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 200px;
  min-height: 0;
  padding: 14px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px 20px;
}
.sidebar-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.sidebar-identity img {
  display: block;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: contain;
}
.sidebar-brand-copy {
  min-width: 0;
}
.sidebar-brand h2 {
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}
.sidebar-brand p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}
.sidebar.sidebar-modal {
  width: min(248px, calc(100vw - 24px));
  height: calc(100dvh - 24px);
  max-height: calc(100dvh - 24px);
  margin: 12px auto 12px 12px;
}
.main-workspace {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.workspace-header {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
  min-height: 80px;
  padding: 12px 18px;
  overflow: hidden;
  border-bottom: 1px solid #0b0b0c;
  background: #0b0b0c;
  color: #ffffff;
}
.workspace-header::before {
  content: "";
  position: absolute;
  right: 310px;
  top: -142px;
  width: 224px;
  height: 224px;
  border: 22px solid #00b4d8;
  border-radius: 50%;
  pointer-events: none;
}
.workspace-header > * {
  position: relative;
  z-index: 1;
}
.workspace-eyebrow {
  margin-bottom: 4px;
  color: #8edff0;
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.08em;
}
.workspace-header .button-primary {
  background: #143e52;
  border-color: #29627c;
}
.workspace-header .button-primary:hover:not(:disabled) {
  background: #1b5c76;
  border-color: #38afca;
}
.workspace-header .icon-button {
  color: #b8d1dd;
}
.workspace-header .icon-button:hover:not(:disabled) {
  background: #153445;
  color: #ffffff;
}
.workspace-header .operator-name {
  color: #b8d1dd;
}
.workspace-title,
.workspace-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.workspace-title h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.operator-name {
  font-size: 12px;
  color: var(--muted);
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.type-filters {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 0;
  overflow-y: auto;
}
.type-filters button {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 10px;
  min-height: 38px;
  background: transparent;
  color: #405c70;
  font-size: 12px;
  white-space: nowrap;
}
.type-filters button:hover {
  background: #eef5f8;
  color: #101a21;
}
.type-filters button.active {
  color: #ffffff;
  background: #131e25;
  border-color: #131e25;
}
.type-filters button.active::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  background: #00b4d8;
  border-radius: 0 2px 2px 0;
}
.filter-count {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: inherit;
}
.catalogue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  flex: 1;
  min-width: 0;
}
.catalogue-layout.has-detail {
  grid-template-columns: minmax(0, 1fr) 306px;
}
.catalogue {
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.catalogue-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 7px 16px;
}
.catalogue-search {
  flex: 1;
  max-width: 580px;
}
.unit-filter select {
  min-height: 34px;
  border: 1px solid #cddbe5;
  border-radius: 3px;
  padding: 6px 26px 6px 9px;
  font-size: 12px;
  color: #405c70;
  background: #fff;
}
.catalogue-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 24px;
  padding: 0 16px 5px;
  color: #526b7e;
  font-size: 11px;
}
.hierarchy-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.table-scroll {
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow: auto;
}
.table-scroll[aria-busy="true"] {
  opacity: 0.65;
}
.product-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 730px;
}
.product-table thead {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f3f7fa;
}
.product-table th {
  height: 30px;
  padding: 5px 8px;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  color: #526b7e;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.product-table th.numeric {
  text-align: right;
}
.product-table th:first-child {
  padding-left: 16px;
}
.product-table th:last-child {
  padding-right: 16px;
}
.files-column svg {
  vertical-align: middle;
}
.name-column {
  min-width: 220px;
}
.files-column {
  width: 100px;
}
.designation-column {
  min-width: 168px;
}
.product-table td {
  height: 40px;
  padding: 5px 8px;
  border-bottom: 1px solid #e8eef2;
  font-size: 13px;
  vertical-align: middle;
}
.product-table td:last-child {
  padding-right: 16px;
}
.product-table td.name-cell {
  padding-left: 16px;
}
.product-table tbody tr:hover {
  background: #f3f7fa;
}
.product-table tbody tr.row-selected {
  background: #eaf3f7;
}
.product-table tr.row-selected td.name-cell {
  box-shadow: inset 3px 0 var(--accent);
}
.row-child {
  background: #fafcfd;
}
.row-identity {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
}
.expand-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid #ccdae4;
  border-radius: 3px;
  padding: 0;
  background: #fff;
  color: #405c70;
}
.expand-button:hover {
  background: #eaf3f7;
  border-color: #89afc0;
}
.leaf-marker {
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
}
.leaf-marker::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a5bac8;
}
.row-product-button {
  display: block;
  width: 100%;
  min-width: 135px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.row-product-name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #101a21;
  overflow-wrap: anywhere;
}
.row-designation {
  color: #526b7e;
  font-size: 11px !important;
  white-space: nowrap;
}
.type-badge {
  display: inline-block;
  border-radius: 2px;
  padding: 2px 5px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  background: #edf2f6;
  color: #526b7e;
}
.type-assembly {
  background: #e8f3f7;
  color: #3b6276;
}
.type-semi {
  background: #f5f1e8;
  color: #746443;
}
.type-simple {
  background: #edf2f6;
  color: #526b7e;
}
.unit-cell,
.file-count {
  color: #526b7e;
  font-size: 12px !important;
}
.row-file-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
  min-width: 80px;
  white-space: nowrap;
}
.row-file-actions > span {
  margin-right: 3px;
}
.row-file-actions .icon-button {
  width: 28px;
  height: 28px;
}
.modal.row-files-modal {
  display: flex;
  flex-direction: column;
  height: fit-content;
}
.row-files-modal .dialog-head h2 {
  overflow-wrap: anywhere;
}
.row-feedback td {
  padding: 8px 16px !important;
  color: var(--muted);
  font-size: 12px;
}
.row-feedback .text-button {
  margin-left: 10px;
}
.catalogue-state {
  flex: 1;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  color: #526b7e;
  text-align: center;
}
.catalogue-state h2 {
  font-size: 16px;
  font-weight: 500;
  color: #405c70;
}
.catalogue-state p {
  font-size: 13px;
  max-width: 360px;
  line-height: 1.5;
}
.catalogue-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
  min-height: 36px;
  padding: 4px 16px;
  border-top: 1px solid var(--border);
  background: #fafcfd;
  color: #526b7e;
  font-size: 11px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 7px;
  font-variant-numeric: tabular-nums;
}
.pagination .icon-button {
  width: 28px;
  height: 28px;
}
.detail-host {
  display: flex;
  min-height: 0;
  min-width: 0;
}
.detail-host > .detail-panel {
  flex: 1;
  min-width: 0;
}
.detail-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--border);
  background: #f8fafc;
}
.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px 0;
}
.detail-head .eyebrow {
  font-size: 10px;
}
.detail-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.detail-identity {
  padding: 8px 14px 13px;
}
.detail-identity .type-badge {
  margin-bottom: 8px;
}
.detail-identity h2 {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}
.detail-designation {
  font-size: 11px;
  color: #526b7e;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 10px 0 12px;
  color: #526b7e;
  font-size: 11px;
}
.detail-meta strong {
  margin-left: 4px;
  color: #405c70;
  font-weight: 500;
}
.detail-identity .button {
  font-size: 12px;
  background: transparent;
}
.detail-section {
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.section-heading h3 {
  font-size: 13px;
  font-weight: 500;
}
.section-heading h4 {
  font-size: 13px;
  font-weight: 500;
}
.section-heading > .muted {
  font-size: 11px;
}
.count {
  color: #526b7e;
  font-size: 11px;
  font-weight: 400;
  margin-left: 5px;
  font-variant-numeric: tabular-nums;
}
.section-note {
  color: #526b7e;
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 9px;
}
.empty-inline {
  color: #526b7e;
  font-size: 12px;
  line-height: 1.5;
  padding: 8px 0;
}
.detail-component {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #e5edf2;
}
.detail-component:last-child {
  border: 0;
}
.detail-link {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}
.detail-link strong,
.parent-link strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.detail-link > span,
.parent-link span > span {
  display: block;
  font-size: 10px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.detail-link:hover strong,
.parent-link:hover strong {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.detail-quantity {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.parent-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid #e5edf2;
  background: transparent;
  text-align: left;
}
.parent-link:last-child {
  border: 0;
}
.parent-link svg {
  color: #526b7e;
}
.detail-section .button {
  font-size: 12px;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #e5edf2;
}
.file-link {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: #526b7e;
  text-decoration: none;
}
.file-link > span {
  flex: 1;
  min-width: 0;
}
.file-link strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: #405c70;
  overflow-wrap: anywhere;
}
.file-link .muted {
  display: block;
  font-size: 11px;
  margin-top: 2px;
}
.file-link:hover strong {
  text-decoration: underline;
}
.upload-progress {
  font-size: 11px;
  line-height: 1.5;
  color: #405c70;
  padding: 8px 0;
  overflow-wrap: anywhere;
}
.upload-results {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.upload-results li {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.5;
  margin-bottom: 6px;
  color: var(--accent);
  overflow-wrap: anywhere;
}
.upload-results li.field-error {
  color: var(--danger);
}
.detail-placeholder {
  position: relative;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  color: #526b7e;
}
.detail-placeholder h2 {
  font-size: 16px;
  font-weight: 500;
  color: #405c70;
}
.detail-placeholder p {
  color: #526b7e;
  max-width: 300px;
  font-size: 12px;
  line-height: 1.6;
}
.detail-placeholder-close {
  position: absolute;
  top: 8px;
  right: 8px;
}
.detail-refresh-error {
  margin: 10px 14px 0;
}
.toast {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(600px, 90vw);
  padding: 6px 8px 6px 12px;
  border: 1px solid #405c70;
  border-radius: 4px;
  color: #f4f7f9;
  background: #131e25;
  font-size: 12px;
  box-shadow: 0 3px 12px #172d201c;
}
.toast .icon-button {
  color: #b8cbd7;
}
.modal {
  margin: auto;
  padding: 0;
  width: min(720px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  border: 1px solid #dce5eb;
  border-radius: 4px;
  color: #101a21;
  background: #fff;
  box-shadow: 0 10px 35px #101c2326;
}
.modal::backdrop {
  background: #101a2170;
}
.modal-compact {
  width: min(520px, calc(100vw - 24px));
}
.editor-form {
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 26px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  min-height: 48px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
}
.dialog-head h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.dialog-head .eyebrow {
  font-size: 10px;
  margin-bottom: 3px;
}
.dialog-content {
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
}
.dialog-content > p {
  font-size: 13px;
  line-height: 1.6;
}
.deal-demo-actions {
  padding: 0 16px 16px;
}
.dialog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-shrink: 0;
  min-height: 48px;
  padding: 7px 16px;
  border-top: 1px solid var(--border);
  background: #f8fafc;
}
.dialog-foot > .muted {
  font-size: 11px;
  line-height: 1.4;
  max-width: 340px;
}
.modal-compact .dialog-foot {
  justify-content: flex-end;
}
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 16px;
}
.editor-composition {
  padding-top: 15px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}
.editor-composition .section-note {
  font-size: 11px;
}
.composition-table-scroll {
  overflow-x: auto;
  min-width: 0;
}
.composition-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 345px;
}
.composition-table th {
  padding: 6px 7px;
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  color: #526b7e;
  border-bottom: 1px solid #dce5eb;
  background: #f8fafc;
}
.composition-table th.numeric {
  text-align: right;
}
.composition-table td {
  padding: 5px 7px;
  border-bottom: 1px solid #e5edf2;
}
.composition-table td:last-child {
  width: 34px;
  padding-right: 0;
}
.component-identity strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.component-identity .mono {
  display: block;
  font-size: 11px;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.quantity-field {
  display: block;
  font-size: 12px;
}
.quantity-field input {
  width: 95px;
  min-height: 32px;
  padding: 5px 7px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.component-unit {
  font-size: 12px;
  color: #526b7e;
  white-space: nowrap;
}
.component-picker {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #dce5eb;
  border-radius: 3px;
  background: #f8fafc;
}
.picker-results {
  max-height: 170px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding-right: 12px;
  margin-top: 8px;
}
.picker-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 7px 2px;
  border: 0;
  border-bottom: 1px solid #e5edf2;
  background: transparent;
  text-align: left;
}
.picker-result:last-child {
  border: 0;
}
.picker-result:hover:not(:disabled) {
  background: #eaf3f7;
}
.picker-result:disabled {
  opacity: 0.7;
}
.picker-result strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
}
.picker-meta {
  display: block;
  font-size: 11px;
  color: #526b7e;
  margin-top: 2px;
}
.picker-result > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.picker-add {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--accent);
  font-size: 11px;
  white-space: nowrap;
}
.picker-status {
  color: #526b7e;
  font-size: 11px;
  white-space: nowrap;
}
.picker-state {
  color: #526b7e;
  font-size: 12px;
  padding-top: 8px;
}
.load-more {
  display: block;
  margin: 12px auto 0;
}
.warning-icon {
  color: #92763d;
  flex-shrink: 0;
}
.duplicate-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.duplicate-list li {
  padding: 9px 10px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fafcfd;
}
.duplicate-list strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.duplicate-list .mono {
  display: block;
  font-size: 11px;
  margin-top: 4px;
}
.detail-modal {
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border: 0;
  border-radius: 0;
}
.detail-modal > .detail-panel {
  position: static;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 1100px) {
  .workspace {
    gap: 0;
    padding: 8px;
  }
}

@media (max-width: 768px) {
  .workspace {
    padding: 0;
  }
  .main-workspace {
    border: 0;
    border-radius: 0;
  }
  .workspace-header {
    gap: 8px;
    min-height: 68px;
    padding: 10px 12px;
  }
  .workspace-header::before {
    display: none;
  }
  .workspace-eyebrow {
    font-size: 9px;
    letter-spacing: 0.03em;
  }
  .workspace-title,
  .workspace-actions {
    gap: 8px;
  }
  .workspace-title h1 {
    font-size: 17px;
  }
  .workspace-actions .button {
    font-size: 12px;
  }
  .operator-name {
    display: none;
  }
  .catalogue-toolbar {
    padding: 7px 10px;
    gap: 6px;
  }
  .catalogue-search {
    max-width: none;
  }
  .unit-filter select {
    max-width: 118px;
    padding-left: 7px;
    padding-right: 22px;
  }
  .catalogue-subhead {
    padding-left: 10px;
    padding-right: 10px;
  }
  .product-table th:first-child,
  .product-table td.name-cell {
    padding-left: 10px;
  }
  .product-table td {
    height: 44px;
    padding-top: 3px;
    padding-bottom: 3px;
  }
  .expand-button,
  .leaf-marker {
    width: 36px;
  }
  .expand-button {
    height: 36px;
  }
  .icon-button {
    width: 36px;
    height: 36px;
  }
  .catalogue-footer {
    padding-left: 10px;
    padding-right: 10px;
  }
  .detail-head {
    padding: 8px 12px 0;
  }
  .detail-identity,
  .detail-section {
    padding-left: 16px;
    padding-right: 16px;
  }
  .detail-identity h2 {
    font-size: 20px;
  }
  .detail-link strong,
  .parent-link strong {
    font-size: 13px;
  }
  .detail-link > span,
  .parent-link span > span {
    font-size: 11px;
  }
  .toast {
    bottom: 12px;
  }
  .login-screen {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }
  .brand-mark {
    width: 96px;
    height: 96px;
  }
  .login-brand {
    padding: 20px 24px;
  }
  .login-brand::before {
    width: 220px;
    height: 220px;
    top: -88px;
    right: -120px;
    border-width: 24px;
  }
  .login-brand-copy,
  .login-brand-footer {
    display: none;
  }
  .login-form-wrap {
    padding: 42px 24px;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .workspace-create {
    width: 36px;
    padding: 0;
  }
  .workspace-create span {
    display: none;
  }
  .modal {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .editor-form {
    height: 100dvh;
    max-height: 100dvh;
  }
  .modal-compact {
    height: auto;
    max-height: calc(100dvh - 24px);
    width: calc(100vw - 24px);
    margin: auto;
    border-radius: 4px;
  }
  .dialog-content {
    padding: 14px;
  }
  .deal-demo-actions {
    padding: 0 14px 14px;
  }
  .dialog-head {
    padding: 8px 14px;
  }
  .dialog-foot {
    padding: 9px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .dialog-foot > .muted {
    max-width: none;
  }
  .dialog-foot .button-group {
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .modal-compact .button-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .modal-compact .button {
    white-space: normal;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .component-picker {
    padding: 10px;
  }
  .picker-result {
    gap: 8px;
  }
  .picker-meta {
    line-height: 1.5;
  }
  .editor-composition .section-heading > .muted {
    display: none;
  }
}

@media (max-width: 380px) {
  .workspace-header .button {
    font-size: 11px;
    padding: 7px 8px;
  }
  .workspace-title h1 {
    font-size: 16px;
  }
  .catalogue-toolbar {
    flex-wrap: wrap;
  }
  .catalogue-search {
    flex-basis: calc(100% - 42px);
  }
  .unit-filter {
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
    scroll-behavior: auto !important;
  }
}

.preview-modal {
  display: flex;
  flex-direction: column;
  width: min(1100px, calc(100vw - 24px));
  height: calc(100dvh - 24px);
}
.preview-head h2 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}
.preview-head .button-group {
  flex-shrink: 0;
}
.preview-head a {
  text-decoration: none;
}
.preview-content {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: #f3f7fa;
}
.preview-status {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: #fff;
  font-size: 13px;
  color: #526b7e;
  white-space: nowrap;
  pointer-events: none;
}
.preview-message {
  padding: 20px;
  text-align: center;
}
.preview-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preview-pdf {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
@media (max-width: 560px) {
  .preview-modal {
    width: 100%;
    height: 100dvh;
  }
  .preview-head {
    align-items: flex-start;
  }
  .preview-head h2 {
    font-size: 13px;
  }
  .preview-head .button-small {
    padding: 5px 7px;
  }
}

/* Bitrix24 export planning */
.b24-column { width: 214px; }
.b24-row-button { white-space: nowrap; font-size: 11px; padding: 5px 8px; min-height: 28px; }
.modal.b24-plan-modal { display: flex; flex-direction: column; height: fit-content; max-height: calc(100dvh - 32px); width: min(660px, calc(100vw - 24px)); }
.b24-plan-content { display: flex; flex-direction: column; gap: 12px; min-height: 0; overflow-y: auto; }
.b24-readonly { color: var(--accent-dark); background: var(--accent-light); border-left: 3px solid #00b6d6; padding: 10px 12px; font-size: 12px; }
.b24-plan-counts { font-size: 13px; color: var(--muted); }
.b24-plan-scroll { min-height: 0; max-height: 320px; overflow: auto; }
.b24-plan-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.b24-plan-table th { position: sticky; top: 0; background: #f4f7f9; color: var(--muted); font-weight: 500; }
.b24-plan-table td, .b24-plan-table th { padding: 9px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.b24-plan-table td:first-child { width: 55%; }
.b24-plan-table strong { font-weight: 500; }
.b24-plan-table small { display: block; margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
.b24-status-create { color: var(--accent-dark); }
.b24-status-skip { color: var(--muted); }
.b24-status-blocked { color: var(--danger); }
.b24-plan-warnings { margin: 0; padding-left: 17px; font-size: 12px; color: var(--muted); }
.b24-plan-warnings li + li { margin-top: 5px; }

.b24-plan-modal .dialog-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border); flex-shrink: 0; }


.detail-b24 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}
.detail-b24-id {
  font-size: 11px;
  color: var(--muted);
}
.detail-b24-id strong {
  margin-left: 6px;
  color: #101a21;
  overflow-wrap: anywhere;
}
.detail-b24-open {
  text-decoration: none;
  min-height: 28px;
  padding: 4px 8px;
  font-size: 11px;
  white-space: nowrap;
}
.field-b24 {
  grid-column: 1 / -1;
}
.field-b24 input {
  max-width: 240px;
}

.b24-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
