.docs_page:has(.docs-demo) #docs.container { width: auto; max-width: none; margin: 0; padding: 0; }
.docs_page:has(.docs-demo) #center { min-height: 0; padding: 0; }
.docs_page:has(.docs-demo) footer, .docs_page:has(.docs-demo) #hfooter { display: none; }
html:has(.docs-demo), body:has(.docs-demo) { height: auto !important; overflow-y: auto !important; }

.docs-demo {
    --demo-ink: #20242a;
    --demo-muted: #6e747d;
    --demo-line: #dfe2e6;
    --demo-soft: #f4f5f6;
    --demo-paper: #fbfaf6;
    --demo-accent: #c91842;
    color: var(--demo-ink);
    background: #fff;
    min-height: 100vh;
    padding-top: 100px;
    font-family: "Open Sans", sans-serif;
}

.docs-demo__search-drawer { width:100%; margin:0 0 20px; padding:18px 20px; border:1px solid var(--demo-line); border-radius:10px; background:#10262e; box-shadow:none; }
.docs-demo__search-drawer.is-hidden { display:none; }
.docs-demo__search-drawer-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; font-size:17px; color:#fff; }
.docs-demo__search-drawer-head button { border:0; background:transparent; color:var(--demo-accent); font-size:26px; }
.docs-demo__search-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 20px; }
.docs-demo__search-filters label { display:grid; gap:6px; color:#8eb9c3; font-size:12px; }
.docs-demo__search-filters input,.docs-demo__search-filters select { height:40px; border:1px solid var(--demo-line); border-radius:7px; padding:0 10px; color:#fff; background:#09161b; }
.docs-demo__date-filter { cursor:pointer; }
.docs-demo__date-filter input { width:100%; min-width:0; cursor:pointer; }
.docs-demo__date-filter input::-webkit-calendar-picker-indicator { position:absolute; inset:0; width:auto; height:auto; margin:0; cursor:pointer; opacity:0; }
.docs-demo__filter-choice { display:grid; gap:6px; color:#8eb9c3; font-size:12px; }
.docs-demo__filter-options { display:flex; flex-wrap:wrap; gap:5px; min-height:40px; align-items:center; }
.docs-demo__filter-options button { min-height:32px; padding:5px 8px; border:1px solid #31505a; border-radius:6px; color:#a9c3ca; background:#09161b; font-size:11px; cursor:pointer; }
.docs-demo__filter-options button.is-active { border-color:#12d5e5; background:rgba(18,213,229,.16); color:#fff; }
.docs-demo * { box-sizing: border-box; }
.docs-demo button, .docs-demo input, .docs-demo textarea { font: inherit; }
.docs-demo button { appearance: none; border: 1px solid var(--demo-line); background: #fff; color: var(--demo-ink); border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.docs-demo button:hover { border-color: #9da3aa; text-decoration: none; }
.docs-demo button:focus-visible, .docs-demo input:focus-visible, .docs-demo textarea:focus-visible, .docs-demo__stage:focus-visible { outline: 3px solid rgba(201,24,66,.22); outline-offset: 2px; }
.docs-demo button.is-primary { color: #fff; border-color: var(--demo-accent); background: var(--demo-accent); }
.docs-demo .is-hidden { display: none !important; }

.docs-demo__bar { position: fixed; z-index: 60; top: 0; right: 0; left: 0; height: 100px; display: grid; grid-template-columns: 360px minmax(420px, 1fr) 328px; align-items: center; gap: 0; padding: 12px 0; border-bottom: 1px solid var(--demo-line); background: #fff; }
.docs-demo__logo { display: flex; align-items: center; justify-self: center; gap: 10px; width: 314px; height: 62px; padding: 0; overflow: visible; border: 0; border-radius: 0; background: transparent; transform: translateY(-3px); }
.docs-demo__logo img { display: block; width: 234px; height: auto; }
.docs-demo__logo b { color: #12d5e5; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; }
.docs-demo__identity { display: flex; flex-direction: column; min-width: 0; }
.docs-demo__identity strong { font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docs-demo__identity span { font-size: 12px; color: var(--demo-muted); }
.docs-demo__search { display: block; position: relative; min-width: 0; }
.docs-demo__search svg { position: absolute; left: 11px; top: 9px; width: 17px; height: 17px; fill: none; stroke: var(--demo-muted); stroke-width: 1.8; pointer-events: none; }
.docs-demo__search input { width: 100%; height: 42px; border: 1px solid var(--demo-line); border-radius: 7px; padding: 5px 12px 5px 36px; font-size: 13px; background: var(--demo-soft); }
.docs-demo__search-empty { padding: 12px; color: var(--demo-muted); font-size: 12px; }
.docs-demo__header-search { width: min(640px, calc(100% - 20px)); margin: 0 0 0 20px; }
.docs-demo__account { display: flex; align-items: center; justify-content: flex-start; gap: 12px; min-width: 0; padding: 0 16px; }
.docs-demo__profile-button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0 !important; }
.docs-demo__profile-button { border-radius: 50% !important; border-color: #314c57 !important; background: #314c57 !important; color: #fff !important; font-size: 11px; font-weight: 700; }
.docs-demo__mobile-panel-button { display: none; }
.docs-demo__scrim { display: none; }

.docs-demo__workspace { display: grid; grid-template-columns: 360px minmax(420px, 1fr) 328px; min-height: calc(100vh - 100px); }
.docs-demo__tree, .docs-demo__inspector { position: static; align-self: stretch; max-height: none; overflow: visible; background: #fff; min-width: 0; }
.docs-demo__tree { border-right: 1px solid var(--demo-line); padding: 18px 14px 18px 6px; }
.docs-demo__inspector { border-left: 1px solid var(--demo-line); }
.docs-demo__side-tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; margin: 0 0 12px; padding: 3px; border: 1px solid var(--demo-line); border-radius: 8px; background: var(--demo-soft); }
.docs-demo__side-tabs button { padding: 7px 4px; border: 0; border-radius: 5px; background: transparent; color: var(--demo-muted); font-size: 11px; }
.docs-demo__side-tabs button.is-active { background: #fff; color: var(--demo-ink); box-shadow: 0 1px 3px rgba(22,28,35,.12); font-weight: 700; }
.docs-demo__clients { display: grid; gap: 6px; }
.docs-demo__client { position: relative; width: 100%; }
.docs-demo__client-open { width: 100%; padding: 9px 38px 9px 9px !important; text-align: left; }
.docs-demo__client strong, .docs-demo__client span { display: block; }
.docs-demo__client strong { font-size: 12px; }
.docs-demo__client span { margin-top: 3px; color: var(--demo-muted); font-size: 10px; }
.docs-demo__client-edit { position: absolute; top: 50%; right: 6px; width: 27px; height: 27px; padding: 0 !important; transform: translateY(-50%); border: 0 !important; background: transparent !important; color: var(--demo-muted) !important; }
.docs-demo__client-edit:hover { color: var(--demo-accent) !important; }
.docs-demo__client-edit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.docs-demo__tree ul { list-style: none; margin: 0; }
.docs-demo__tree li { margin: 2px 0; }
.docs-demo__tree details > summary { list-style: none; }
.docs-demo__tree details > summary::-webkit-details-marker { display: none; }
.docs-demo__tree details > summary, .docs-demo__tree .tree-item { min-height: 34px; display: flex; align-items: center; gap: 4px; padding: 6px 5px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.docs-demo__tree .tree-item { border-color: transparent !important; background: transparent !important; }
.docs-demo__tree-row { display: flex; align-items: center; }
.docs-demo__tree-row .tree-item { flex: 1; min-width: 0; }
.docs-demo__tree-edit { display: grid; flex: 0 0 auto; width: 25px; height: 25px; padding: 0 !important; place-items: center; border: 0 !important; background: transparent !important; color: var(--demo-muted); opacity: 0; }
.docs-demo__tree details > summary:hover .docs-demo__tree-edit, .docs-demo__tree-row:hover .docs-demo__tree-edit, .docs-demo__tree-edit:focus-visible { opacity: 1; }
.docs-demo__tree-edit:hover { color: var(--demo-accent); }
.docs-demo__tree-edit svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.docs-demo__tree details > summary:hover, .docs-demo__tree .tree-item:hover { background: var(--demo-soft); }
.docs-demo__tree details > summary::before { content: "›"; width: 9px; color: var(--demo-muted); font-size: 18px; transition: transform .16s ease; }
.docs-demo__tree details[open] > summary::before { transform: rotate(90deg); }
.docs-demo__tree .tree-item::before { content: ""; width: 9px; }
.docs-demo__tree .is-selected { color: var(--demo-accent); background: #fff0f3 !important; font-weight: 700; }
.docs-demo__tree .count { margin-left: auto; color: var(--demo-muted); font-size: 11px; font-weight: 400; }
.docs-demo__tree ul ul { margin-left: 7px; padding-left: 5px; border-left: 1px solid var(--demo-line); }
.docs-demo__tree > #demo-tree > ul > li > details > ul { margin-left: 0; padding-left: 7px; }
.docs-demo__tree-add { width: 100%; margin-top: 16px; color: var(--demo-accent) !important; border-style: dashed !important; }

.docs-demo__viewer { min-width: 0; background: #fff; display: flex; flex-direction: column; }
.docs-demo__stage { position: relative; min-height: calc(100vh - 100px); height: auto; overflow: visible; background: #fff; user-select: none; }
.docs-demo__swiper { position: relative; width: 100%; min-height: calc(100vh - 100px); height: auto; aspect-ratio: 1240 / 1754; background: #fff; }
.docs-demo__swiper .swiper-slide { width: 100%; height: 100%; background: #fff; }
.docs-demo__canvas { position: relative; width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; background: #fff; cursor: zoom-in; touch-action: none; }
.docs-demo__canvas.is-zoomed { cursor: grab; }
.docs-demo__canvas.is-dragging { cursor: grabbing; }
.docs-demo__canvas img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; filter: sepia(.08) saturate(.78) brightness(.985); transform-origin: center; will-change: transform; pointer-events: none; transition: transform .18s ease; }
.docs-demo__canvas.is-dragging img { transition: none; }
.docs-demo__page-markers { position: absolute; z-index: 3; top: 18px; right: 18px; display: grid; gap: 7px; pointer-events: none; }
.docs-demo__page-markers i { width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.92); border-radius: 50%; box-shadow: 0 1px 5px rgba(0,0,0,.3); }
.docs-demo__page-markers .is-important { background: #ff4167; }
.docs-demo__page-markers .is-work { background: #ffc247; }
.docs-demo__page-markers .is-quote { background: #9b7bff; }

.docs-demo__filmstrip-wrap { margin-top: 16px; background: #fff; border-top: 1px solid var(--demo-line); padding: 10px 14px 12px; }
.docs-demo__filmstrip-head { display: block; margin-bottom: 7px; }
.docs-demo__filmstrip-head span { font-size: 12px; font-weight: 700; }
.docs-demo__filmstrip-head small { display: block; margin-top: 3px; font-size: 10px; color: var(--demo-muted); }
.docs-demo__filmstrip { display: flex; gap: 8px; overflow-x: auto; padding: 2px; }
.docs-demo__thumb { position: relative; flex: 0 0 66px; height: 86px; padding: 3px !important; border: 2px solid transparent !important; background: var(--demo-soft) !important; }
.docs-demo__thumb.is-active { border-color: var(--demo-accent) !important; }
.docs-demo__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.docs-demo__thumb span { position: absolute; right: 3px; bottom: 3px; min-width: 18px; padding: 1px 4px; background: rgba(32,36,42,.82); color: #fff; border-radius: 3px; font-size: 9px; }
.docs-demo__thumb-markers { position: absolute; top: 5px; left: 5px; display: flex; flex-wrap: wrap; gap: 3px; max-width: calc(100% - 10px); }
.docs-demo__thumb-markers i { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.55); }
.docs-demo__thumb-markers .is-important { background: #ff4167; }
.docs-demo__thumb-markers .is-work { background: #ffc247; }
.docs-demo__thumb-markers .is-quote { background: #9b7bff; }
.docs-demo__thumb.is-dragging { opacity: .45; }

.docs-demo__folder-view { flex: 1; padding: 18px; overflow: auto; background: #f1f2f3; }
.docs-demo__form-view { flex: 1; padding: 36px; background: #f5f6f7; }
.docs-demo__ai-status-view { flex:1; padding:32px; overflow:auto; background:#09161b; color:#edf6f7; }
.docs-demo.is-ai-status .docs-demo__workspace { grid-template-columns:280px minmax(0,1fr); }
.docs-demo.is-ai-status .docs-demo__inspector { display:none; }
.docs-demo__ai-status-head { display:flex; justify-content:space-between; gap:24px; align-items:flex-start; max-width:1100px; margin:0 auto 28px; }
.docs-demo__ai-status-head span { color:#12d5e5; font-size:12px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.docs-demo__ai-status-head h1 { margin:5px 0 6px; font-size:27px; line-height:1.15; }
.docs-demo__ai-status-head p { margin:0; color:#8eb9c3; }
.docs-demo__ai-status-head > div:last-child { display:flex; gap:8px; }
.docs-demo__ai-status-head button { border-color:#31505a; background:#10262e; color:#edf6f7; }
.docs-demo__ai-services,.docs-demo__ai-progress { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; max-width:1100px; margin:0 auto; }
.docs-demo__ai-service,.docs-demo__ai-progress article { border:1px solid #31505a; border-radius:10px; background:#10262e; padding:18px; }
.docs-demo__ai-service > div { display:flex; align-items:center; gap:9px; color:#9ec6cf; font-size:13px; }
.docs-demo__ai-service i { width:9px; height:9px; border-radius:50%; background:#789; }
.docs-demo__ai-service i.is-ok { background:#54e59b; box-shadow:0 0 0 4px rgba(84,229,155,.1); }
.docs-demo__ai-service i.is-bad { background:#ff5b7e; }
.docs-demo__ai-service > strong { display:block; margin:14px 0 4px; font-size:20px; }
.docs-demo__ai-service small { color:#8eb9c3; }
.docs-demo__ai-progress { margin-top:14px; }
.docs-demo__ai-progress h2 { margin:0 0 16px; font-size:16px; }
.docs-demo__ai-progress article > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.docs-demo__ai-metric { min-height:72px; padding:12px; border-radius:7px; background:#0d2027; }
.docs-demo__ai-metric strong,.docs-demo__ai-metric span { display:block; }
.docs-demo__ai-metric strong { color:#fff; font-size:22px; }
.docs-demo__ai-metric span { margin-top:4px; color:#8eb9c3; font-size:12px; }
.docs-demo__ai-loading { max-width:1100px; margin:70px auto; color:#8eb9c3; }
.docs-demo__workspaces-view { flex: 1; padding: 22px; background: #09161b; }
.docs-demo__workspaces-head { max-width: none; margin-bottom: 18px; }
.docs-demo__workspaces-head h2 { margin: 0; color: var(--demo-ink); font-size: 22px; }
.docs-demo__workspaces-head p { margin: 5px 0 0; color: var(--demo-muted); font-size: 12px; }
.docs-demo__workspace-list { display: grid; gap: 10px; max-width: none; }
.docs-demo__workspace-row { position: relative; width: 100%; min-height: 116px; padding: 21px 60px 20px 20px !important; text-align: left; }
.docs-demo__workspace-row::after { content: "›"; position: absolute; top: 50%; right: 20px; transform: translateY(-50%); color: var(--demo-muted); font-size: 30px; font-weight: 300; }
.docs-demo__workspace-row strong, .docs-demo__workspace-row span, .docs-demo__workspace-row small { display: block; }
.docs-demo__workspace-row strong { font-size: 16px; line-height: 1.35; }
.docs-demo__workspace-row span { margin-top: 5px; color: #12d5e5; font-size: 11px; font-weight: 700; }
.docs-demo__workspace-row small { margin-top: 7px; color: var(--demo-muted); font-size: 12px; }
.docs-demo.is-form-mode #demo-document-view,
.docs-demo.is-form-mode #demo-folder-view,
.docs-demo.is-form-mode #demo-search-view,
.docs-demo.is-form-mode #demo-workspaces-view { display: none !important; }
.docs-demo.is-search-mode #demo-document-view,
.docs-demo.is-search-mode #demo-folder-view,
.docs-demo.is-search-mode #demo-form-view,
.docs-demo.is-search-mode #demo-workspaces-view { display: none !important; }
.docs-demo__form-card { max-width: 832px; padding: 29px; border: 1px solid var(--demo-line); border-radius: 10px; background: #fff; box-shadow: 0 4px 16px rgba(22,28,35,.06); }
.docs-demo__form-card h2 { margin: 0 0 7px; font-size: 22px; }
.docs-demo__form-card > p { margin: 0 0 26px; color: var(--demo-muted); font-size: 14px; }
.docs-demo__form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.docs-demo__form-grid label { display: block; }
.docs-demo__form-grid label.is-wide { grid-column: 1 / -1; }
.docs-demo__form-grid span { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 700; }
.docs-demo__form-grid input, .docs-demo__form-grid select { width: 100%; height: 46px; border: 1px solid var(--demo-line); border-radius: 6px; padding: 8px 11px; background: #fff; font-size: 14px; }
.docs-demo__form-actions { display: flex; gap: 10px; margin-top: 26px; }
.docs-demo__access { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--demo-line); }
.docs-demo__access-head { margin-bottom: 12px; }
.docs-demo__access-head strong, .docs-demo__access-head span { display: block; }
.docs-demo__access-head strong { font-size: 14px; }
.docs-demo__access-head span { margin-top: 3px; color: var(--demo-muted); font-size: 11px; }
.docs-demo__access-member { display: flex; align-items: center; gap: 9px; padding: 8px 0; }
.docs-demo__access-avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #0d313a; color: #12d5e5; font-size: 9px; font-weight: 700; }
.docs-demo__access-avatar.is-secondary { background: #243744; color: #d9e5e8; }
.docs-demo__access-member strong, .docs-demo__access-member small { display: block; }
.docs-demo__access-member strong { font-size: 12px; }
.docs-demo__access-member small { margin-top: 2px; color: var(--demo-muted); font-size: 10px; }
.docs-demo__access-invite { display: grid; grid-template-columns: minmax(0, 1fr) 132px auto; gap: 7px; margin-top: 12px; }
.docs-demo__access-invite input, .docs-demo__access-invite select { min-width: 0; height: 36px; border: 1px solid var(--demo-line); border-radius: 6px; padding: 7px 9px; font-size: 11px; }
.docs-demo__access-invite button { padding: 0 11px; font-size: 11px; }
.docs-demo__search-view { flex: 1; padding: 20px; background: #f5f6f7; }
.docs-demo__search--center { max-width: 900px; margin-bottom: 18px; }
.docs-demo__search-view-head { max-width: none; margin-bottom: 14px; }
.docs-demo__search-view-head strong { display: block; font-size: 16px; }
.docs-demo__search-view-head span { display: block; margin-top: 3px; color: var(--demo-muted); font-size: 12px; }
.docs-demo__search-page-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 0 18px; }
.docs-demo__search-page-head h1 { margin:0; color:#fff; font-size:30px; line-height:1.15; }
.docs-demo__search-page-head h1 small { margin-left:7px; color:#8eb9c3; font-size:16px; font-weight:500; vertical-align:middle; }
.docs-demo__search-page-head button { padding:10px 14px; color:#b7d3d9; white-space:nowrap; }
.docs-demo__inspector .docs-demo__search-drawer { border:0; border-top:1px solid var(--demo-line); border-radius:0; background:transparent; }
.docs-demo__inspector .docs-demo__search-drawer-head { display:none; }
.docs-demo__search-context { display:flex; align-items:center; justify-content:space-between; }
.docs-demo__search-context h1 { margin:0; }
.docs-demo__search-context button { border:0; background:transparent; color:#b7d3d9; font-size:24px; line-height:1; }
.docs-demo__inspector .docs-demo__search-filters { grid-template-columns:1fr; gap:16px; }
.docs-demo__inspector .docs-demo__filter-options { gap:6px; }
.docs-demo__search-list { display: grid; gap: 10px; max-width: none; }
.docs-demo__search-card { position: relative; display: block; width: 100%; min-height: 126px; padding: 17px 58px 17px 16px !important; border-color: var(--demo-line) !important; text-align: left; background: #fff !important; box-shadow: 0 2px 7px rgba(22,28,35,.05); }
.docs-demo__search-card:hover { border-color: #e2a1b1 !important; box-shadow: 0 5px 16px rgba(22,28,35,.1); }
.docs-demo__search-card span, .docs-demo__search-card strong, .docs-demo__search-card p { display: block; }
.docs-demo__search-card::after { content: "›"; position: absolute; top: 50%; right: 21px; transform: translateY(-50%); color: #7f9ba3; font-size: 30px; font-weight: 300; line-height: 1; transition: color .15s ease, transform .15s ease; }
.docs-demo__search-card:hover::after { color: #12d5e5; transform: translate(3px, -50%); }
.docs-demo__search-card span { margin-bottom: 5px; color: var(--demo-muted); font-size: 11px; }
.docs-demo__search-card strong { color: var(--demo-ink); font-size: 17px; line-height: 1.35; }
.docs-demo__search-card p { margin: 9px 0 0; color: var(--demo-muted); font-size: 14px; line-height: 1.6; }
.docs-demo__search-card mark { padding: 1px 3px; border: 0; border-radius: 3px; color: #bcf8fc; background: rgba(18,213,229,.19); font-weight: 400; }
.docs-demo__search-view .docs-demo__search-empty { max-width: 900px; border: 1px dashed var(--demo-line); background: #fff; }
.docs-demo__folder-summary { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.docs-demo__folder-summary strong { font-size: 14px; }
.docs-demo__folder-summary strong b { color: var(--demo-muted); font-size: 12px; font-weight: 600; }
.docs-demo__folder-summary span { color: var(--demo-muted); font-size: 11px; }
.docs-demo__document-sheets-head { display: flex; align-items: center; gap: 8px; min-height: 42px; margin: 0 0 18px; }
.docs-demo__document-title { display: flex; align-items: center; overflow: hidden; flex: 0 1 auto; height: 36px; color: var(--demo-ink); font-size: 18px; font-weight: 700; line-height: 1; white-space: nowrap; text-overflow: ellipsis; }
.docs-demo__back-documents, .docs-demo__document-edit { display: grid; flex: 0 0 auto; width: 36px; height: 36px; padding: 0 !important; place-items: center; border: 1px solid var(--demo-line) !important; border-radius: 6px; background: transparent !important; color: var(--demo-muted); }
.docs-demo__back-documents:hover, .docs-demo__document-edit:hover { border-color: var(--demo-accent) !important; color: var(--demo-accent); }
.docs-demo__back-documents svg, .docs-demo__document-edit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.docs-demo__document-edit { width: 30px; height: 30px; margin-left: 1px; border-color: transparent !important; background: transparent !important; }
.docs-demo__document-edit:hover { border-color: transparent !important; background: rgba(18,213,229,.1) !important; }
.docs-demo__sheet-card .is-pending { color: var(--demo-muted); }
.docs-demo__document-list { display: grid; gap: 10px; width: 100%; }
.docs-demo__document-row { position: relative; width: 100%; min-height: 96px; padding: 19px 56px 18px 20px !important; border-color: var(--demo-line) !important; text-align: left; background: #fff !important; box-shadow: 0 2px 7px rgba(22,28,35,.05); }
.docs-demo__document-row:hover { border-color: #e2a1b1 !important; box-shadow: 0 5px 16px rgba(22,28,35,.1); }
.docs-demo__document-row::after { content: "›"; position: absolute; top: 50%; right: 21px; transform: translateY(-50%); color: var(--demo-muted); font-size: 30px; font-weight: 300; line-height: 1; transition: color .15s ease, transform .15s ease; }
.docs-demo__document-row:hover::after { color: var(--demo-accent); transform: translate(3px, -50%); }
.docs-demo__document-row strong { display: block; font-size: 17px; line-height: 1.35; }
.docs-demo__document-row span { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 9px; color: var(--demo-muted); font-size: 12px; }
.docs-demo__document-row i { font-style: normal; }
.docs-demo__document-row .is-ready { color: #287d47; font-weight: 700; }
.docs-demo__sheet-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.docs-demo__sheet-card { position: relative; min-width: 0; padding: 7px !important; text-align: left; background: #fff !important; border-color: #d8dadd !important; box-shadow: 0 2px 7px rgba(22,28,35,.05); }
.docs-demo__sheet-card .docs-demo__thumb-markers { top: 13px; left: 13px; }
.docs-demo__sheet-card:hover { transform: translateY(-2px); border-color: #aeb3b9 !important; box-shadow: 0 7px 18px rgba(22,28,35,.12); }
.docs-demo__sheet-card img { display: block; width: 100%; aspect-ratio: 1 / 1.38; object-fit: cover; object-position: top; background: var(--demo-paper); border: 1px solid var(--demo-line); }
.docs-demo__sheet-card strong { display: block; overflow: hidden; margin-top: 7px; font-size: 11px; line-height: 1.3; white-space: nowrap; text-overflow: ellipsis; }
.docs-demo__sheet-card span { display: flex; justify-content: space-between; gap: 5px; margin-top: 4px; color: var(--demo-muted); font-size: 9px; }
.docs-demo__sheet-card .is-ready { color: #287d47; }
.docs-demo__folder-empty { min-height: 420px; display: grid; place-content: center; text-align: center; }
.docs-demo__folder-empty strong { font-size: 16px; }
.docs-demo__folder-empty span { margin-top: 5px; color: var(--demo-muted); font-size: 12px; }

.docs-demo__tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--demo-line); }
.docs-demo__context { padding: 15px 16px 14px; border-bottom: 1px solid var(--demo-line); }
.docs-demo__context span { display: block; margin-bottom: 5px; color: var(--demo-muted); font-size: 10px; line-height: 1.4; }
.docs-demo__context h1 { margin: 0; padding: 0; font-size: 15px; line-height: 1.35; }
.docs-demo__folder-tools { display: none; padding: 18px 16px; }
.docs-demo__folder-tools > span { display: block; margin-bottom: 14px; color: var(--demo-muted); font-size: 11px; }
.docs-demo__folder-tools > span b { color: var(--demo-ink); font-size: 20px; }
.docs-demo__folder-tools button { width: 100%; margin-bottom: 8px; }
.docs-demo.is-folder-mode .docs-demo__folder-tools { display: block; }
.docs-demo.is-folder-mode .docs-demo__tabs,
.docs-demo.is-folder-mode .docs-demo__tab { display: none; }
.docs-demo.is-folder-mode .docs-demo__filmstrip-wrap { display: none; }
.docs-demo__tabs button { border: 0; border-radius: 0; padding: 15px 3px 12px; font-size: 11px; color: var(--demo-muted); border-bottom: 2px solid transparent; }
.docs-demo__tabs button.is-active { color: var(--demo-accent); border-bottom-color: var(--demo-accent); font-weight: 700; }
.docs-demo__tab { display: none; padding: 18px; }
.docs-demo__tab.is-active { display: block; }
.docs-demo__page-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; font-size: 11px; color: var(--demo-muted); }
.docs-demo__page-status .is-ready { color: #287d47; background: #e8f5ec; border-radius: 12px; padding: 4px 8px; font-weight: 700; }
.docs-demo__page-status button { padding: 5px 7px; font-size: 10px; }
.docs-demo__field { display: block; }
.docs-demo__field > span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.docs-demo__field textarea { width: 100%; height: auto !important; resize: vertical; border: 1px solid var(--demo-line); border-radius: 7px; padding: 11px; font-size: 12px; line-height: 1.55; background: #fff; }
.docs-demo__note-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.docs-demo__note-actions button { font-size: 11px; }
.docs-demo__note-actions span { color: #287d47; font-size: 10px; }
.docs-demo__markers { border-top: 1px solid var(--demo-line); margin-top: 22px; padding-top: 16px; }
.docs-demo__markers strong { display: block; margin-bottom: 8px; font-size: 12px; }
.docs-demo__markers button { margin: 0 4px 6px 0; padding: 6px 8px; font-size: 10px; }
.docs-demo__markers button.is-marked { background: #fff0f3; color: var(--demo-accent); border-color: #eab2c0; }
.docs-demo__meta { margin: 0; }
.docs-demo__meta div { display: grid; grid-template-columns: 90px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--demo-line); }
.docs-demo__meta dt { color: var(--demo-muted); font-size: 11px; }
.docs-demo__meta dd { margin: 0; font-size: 12px; font-weight: 600; }
.docs-demo__wide-button { width: 100%; margin-top: 18px; color: var(--demo-accent) !important; }
.docs-demo__toast { position: fixed; z-index: 20; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--demo-ink); color: #fff; border-radius: 7px; padding: 10px 16px; font-size: 12px; transition: .2s ease; }
.docs-demo__toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Рабочая палитра Alumetra: светлым остаётся только лист документа. */
.docs-demo {
    --demo-ink: #edf6f7;
    --demo-muted: #91aab1;
    --demo-line: #294752;
    --demo-soft: #142a33;
    --demo-paper: #fffef9;
    --demo-accent: #12d5e5;
    background: #09161b;
}
.docs-demo button { border-color: var(--demo-line); background: #142a33; color: var(--demo-ink); }
.docs-demo button:hover { border-color: #4c7480; }
.docs-demo button.is-primary { border-color: var(--demo-accent); background: var(--demo-accent); color: #082027; font-weight: 700; }
.docs-demo button:focus-visible, .docs-demo input:focus-visible, .docs-demo textarea:focus-visible { outline-color: rgba(18,213,229,.46); }
.docs-demo__bar { border-color: #25424c; background: #0b1d24; box-shadow: 0 3px 16px rgba(0,0,0,.22); }
.docs-demo__logo { background: transparent; box-shadow: none; }
.docs-demo__search input { border-color: #31505a; background: #10252d; color: var(--demo-ink); }
.docs-demo__search input::placeholder { color: #78949c; }
.docs-demo__search svg { stroke: #9ab8bf; }
.docs-demo__profile-button { border-color: #12d5e5 !important; background: #0d313a !important; color: #12d5e5 !important; }
.docs-demo__wiki-main { display:grid; place-items:center; width:46px; height:46px; margin-right:13px; padding:0 !important; border:0 !important; background:transparent !important; color:#fff !important; }.docs-demo__wiki-main svg { width:29px; height:29px; fill:none; stroke:currentColor; stroke-width:1.8; }.docs-demo__wiki-main:hover { color:#12d5e5 !important; }.docs-demo__gigachat-head .docs-demo__chat-wiki { display:none; }
.docs-demo__tree, .docs-demo__inspector { background: #0d2027; }
.docs-demo__tree { border-color: #25424c; }
.docs-demo__inspector { border-color: #25424c; }
.docs-demo__side-tabs { border-color: #294752; background: #0a1920; }
.docs-demo__side-tabs button { color: #8fa9b0; }
.docs-demo__side-tabs button.is-active { background: #17343d; color: #fff; box-shadow: none; }
.docs-demo__client-open { background: #10262f !important; }
.docs-demo__client-open:hover { background: #17343d !important; }
.docs-demo__client.is-active .docs-demo__client-open { border-color: #12d5e5; background: rgba(18,213,229,.1) !important; }
.docs-demo__tree details > summary:hover, .docs-demo__tree .tree-item:hover { background: #17343d; }
.docs-demo__tree .is-selected { color: #12d5e5; background: rgba(18,213,229,.12) !important; }
.docs-demo__tree ul ul { border-color: #294752; }
.docs-demo__tree-add { color: #12d5e5 !important; border-color: #38616d !important; background: transparent !important; }
.docs-demo__viewer { background: #09161b; }
.docs-demo__folder-view, .docs-demo__search-view, .docs-demo__form-view { background: #09161b; }
.docs-demo__folder-summary strong, .docs-demo__folder-summary span { color: var(--demo-ink); }
.docs-demo__document-title { color: var(--demo-ink); }
.docs-demo__folder-summary span, .docs-demo__document-row span { color: var(--demo-muted); }
.docs-demo__document-row, .docs-demo__search-card { border-color: #294752 !important; background: #10262f !important; box-shadow: none; }
.docs-demo__workspace-row { border-color: #294752 !important; background: #10262f !important; box-shadow: none; }
.docs-demo__workspace-row:hover { border-color: #3a6975 !important; background: #15323c !important; }
.docs-demo__workspace-row strong { color: #edf6f7; font-size: 18px; }
.docs-demo__document-row:hover, .docs-demo__search-card:hover { border-color: #3a6975 !important; background: #15323c !important; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.docs-demo__document-row::after { color: #7f9ba3; }
.docs-demo__document-row:hover::after { color: #12d5e5; }
.docs-demo__document-row .is-ready, .docs-demo__sheet-card .is-ready, .docs-demo__page-status .is-ready { color: #54e59b; }
.docs-demo__sheet-card { border-color: #294752 !important; background: #10262f !important; box-shadow: none; }
.docs-demo__sheet-card:hover { border-color: #3a6975 !important; box-shadow: 0 7px 18px rgba(0,0,0,.24); }
.docs-demo__sheet-card img { border-color: #47636c; background: #fff; }
.docs-demo__form-card { border-color: #294752; background: #10262f; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.docs-demo__form-card h2 { color: var(--demo-ink); }
.docs-demo__form-grid input, .docs-demo__form-grid select, .docs-demo__field textarea { border-color: #31505a; background: #0c2027; color: var(--demo-ink); }
.docs-demo__access { border-color: #294752; }
.docs-demo__access-invite input, .docs-demo__access-invite select { border-color: #31505a; background: #0c2027; color: var(--demo-ink); }
.docs-demo__tabs { border-color: #294752; }
.docs-demo__context { border-color: #294752; }
.docs-demo__context h1 { color: var(--demo-ink) !important; }
.docs-demo__context span { color: #91aab1 !important; }
.docs-demo__tabs button { color: #90aab2; background: transparent; }
.docs-demo__tabs button.is-active { color: #12d5e5; border-bottom-color: #12d5e5; }
.docs-demo__page-status .is-ready { background: rgba(84,229,155,.12); }
.docs-demo__markers { border-color: #294752; }
.docs-demo__markers button.is-marked { background: rgba(18,213,229,.12); color: #12d5e5; border-color: #3b7783; }
.docs-demo__markers button.is-important { color: #ff6a86; border-color: rgba(255,65,103,.42); }
.docs-demo__markers button.is-work { color: #ffc247; border-color: rgba(255,194,71,.42); }
.docs-demo__markers button.is-quote { color: #b19aff; border-color: rgba(155,123,255,.46); }
.docs-demo__markers button.is-important.is-marked { background: #ff4167; border-color: #ff4167; color: #261117; font-weight: 700; }
.docs-demo__markers button.is-work.is-marked { background: #ffc247; border-color: #ffc247; color: #28200b; font-weight: 700; }
.docs-demo__markers button.is-quote.is-marked { background: #9b7bff; border-color: #9b7bff; color: #17112d; font-weight: 700; }
.docs-demo__meta div { border-color: #294752; }
.docs-demo__wide-button { color: #12d5e5 !important; }
.docs-demo__filmstrip-wrap { border-color: #294752; background: #0d2027; }
.docs-demo__thumb { background: #10262f !important; }
.docs-demo__thumb.is-active { border-color: #12d5e5 !important; }
.docs-demo__toast { background: #0d3038; border: 1px solid #38616d; }
.docs-demo__access-button { margin-top: 10px; padding: 5px 8px !important; border-color: #31505a !important; background: #10262f !important; color: var(--demo-accent) !important; font-size: 10px; }
.docs-demo__access-list .docs-demo__access-member { border-bottom: 1px solid #294752; }
.docs-demo__access-list .docs-demo__access-member button { margin-left: auto; width: 26px; height: 26px; padding: 0; color: var(--demo-muted); font-size: 18px; }

/* На широком экране панели закреплены относительно окна, а не высоты листа. */
@media (min-width: 901px) {
    .docs-demo__workspace { display: grid; min-height: calc(100vh - 100px); }
    .docs-demo__tree, .docs-demo__inspector { position: static; height: auto; overflow: visible; }
    .docs-demo__viewer { min-height: calc(100vh - 100px); margin: 0; }
}

@media (max-width: 1180px) {
    .docs-demo__bar { grid-template-columns: 300px minmax(380px, 1fr) 286px; }
    .docs-demo__logo { width: 237px; }
    .docs-demo__logo img { width: 147px; }
    .docs-demo__workspace { grid-template-columns: 300px minmax(380px, 1fr) 286px; }
    .docs-demo__stage, .docs-demo__swiper { min-height: 500px; }
    .docs-demo__sheet-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 901px) and (max-width: 1180px) {
    .docs-demo__viewer { margin: 0; }
}
@media (max-width: 900px) {
    .docs-demo__bar { grid-template-columns: 248px minmax(0, 1fr); }
    .docs-demo__logo { width: 210px; }
    .docs-demo__logo img { width: 129px; }
    .docs-demo__workspace { display: block; }
    .docs-demo__tree, .docs-demo__inspector { position: static; width: auto; max-height: none; overflow: visible; transform: none; box-shadow: none; }
    .docs-demo__inspector { border-left: 0; border-top: 1px solid var(--demo-line); }
    .docs-demo__account { display: none; }
    .docs-demo__tab.is-active { max-width: 720px; }
    .docs-demo__stage, .docs-demo__swiper { min-height: calc(100vh - 100px); }
    .docs-demo__sheet-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .docs-demo { min-height: 100vh; padding-top: 48px; }
    .docs-demo__bar { height: 48px; grid-template-columns: 34px 86px minmax(0, 1fr) 34px; gap: 6px; padding: 5px 8px; }
    .docs-demo__logo { width: 86px; height: 32px; padding: 5px 6px; gap: 0; }
    .docs-demo__logo img { width: 74px; }
    .docs-demo__logo b { display: none; }
    .docs-demo__account { display: none; }
    .docs-demo__search input { height: 34px; padding-left: 32px; font-size: 11px; }
    .docs-demo__search svg { left: 9px; top: 8px; }
    .docs-demo__header-search { width: 100%; margin: 0; }
    .docs-demo__mobile-panel-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0 !important; border: 0 !important; background: transparent !important; }
    .docs-demo__mobile-panel-button svg { width: 21px; height: 21px; fill: none; stroke: var(--demo-ink); stroke-width: 1.8; }
    .docs-demo__scrim { position: fixed; z-index: 39; inset: 48px 0 0; width: 100%; height: calc(100vh - 48px); padding: 0; border: 0 !important; border-radius: 0 !important; background: rgba(17,25,30,.34) !important; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
    .docs-demo.is-tree-open .docs-demo__scrim,
    .docs-demo.is-inspector-open .docs-demo__scrim { opacity: 1; pointer-events: auto; }
    .docs-demo__workspace { display: block; }
    .docs-demo__tree,
    .docs-demo__inspector { position: static; z-index: auto; width: auto; max-height: none; overflow: visible; box-shadow: none; transform: none; }
    .docs-demo__tree { border-right: 0; border-bottom: 1px solid var(--demo-line); }
    .docs-demo__inspector { border-left: 0; border-top: 1px solid var(--demo-line); }
    .docs-demo__mobile-panel-button, .docs-demo__scrim { display: none !important; }
    .docs-demo__viewer { min-height: 0; }
    .docs-demo__stage, .docs-demo__swiper { min-height: 480px; }
    .docs-demo__filmstrip-head small { display: none; }
    .docs-demo__sheet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .docs-demo__search-view { padding: 12px; }
    .docs-demo__form-view { padding: 14px; }
    .docs-demo__form-card { padding: 16px; }
    .docs-demo__form-grid { grid-template-columns: 1fr; }
    .docs-demo__form-grid label.is-wide { grid-column: auto; }
    .docs-demo__access-invite { grid-template-columns: 1fr; }
}

.docs-demo__gigachat-button { margin-top: 14px; color: #fff !important; background: linear-gradient(135deg,#1c73d8,#8d52ea) !important; border: 0 !important; }
.docs-demo__teamchat-button { margin-top:8px; color:#e8f6f8 !important; background:#17343d !important; border-color:#38616d !important; }
.docs-demo__viewer { position: relative; }
.docs-demo__gigachat { position: absolute; z-index: 20; inset: 0; display: flex; flex-direction: column; border: 0; border-radius: 0; overflow: hidden; background: #09161b; }
.docs-demo__gigachat-body { display:grid; grid-template-columns:250px minmax(0,1fr); flex:1; min-height:0; }
.docs-demo__chat-sidebar { display:flex; flex-direction:column; min-height:0; border-right:1px solid var(--demo-line); background:#0d2027; }
.docs-demo__chat-sidebar-head { display:flex; align-items:center; justify-content:space-between; min-height:58px; padding:0 14px; border-bottom:1px solid var(--demo-line); color:#edf6f7; }
.docs-demo__chat-sidebar-head strong { font-size:14px; }
.docs-demo__chat-list { display:grid; gap:3px; min-width:0; padding:8px; overflow-y:auto; overflow-x:hidden; }
.docs-demo__chat-list-item { display:flex; min-width:0; align-items:center; gap:3px; border-radius:7px; }
.docs-demo__chat-list-item > button:first-child { flex:1; min-width:0; padding:10px 11px; overflow:hidden; border:0; border-radius:7px; color:#b7d3d9; background:transparent; font-size:12px; line-height:1.35; text-align:left; text-overflow:ellipsis; white-space:nowrap; }
.docs-demo__chat-list-item:hover, .docs-demo__chat-list-item.is-active { background:#17343d; }.docs-demo__chat-list-item.is-active > button:first-child { color:#12d5e5; }
.docs-demo__chat-rename { display:grid; place-items:center; width:27px; height:27px; margin-right:5px; padding:0 !important; border:0 !important; color:#9dbac0; background:transparent !important; box-shadow:none !important; opacity:0; transition:opacity .15s; }.docs-demo__chat-rename svg { display:block; width:14px; height:14px; margin:auto; fill:none; stroke:currentColor; stroke-width:1.7; }.docs-demo__chat-list-item:hover .docs-demo__chat-rename { opacity:1; }
.docs-demo__message-attachment { display:flex; align-items:center; gap:9px; width:max-content; max-width:100%; margin-top:10px; overflow:hidden; color:#cfe7ea; text-decoration:none; }.docs-demo__message-attachment span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; }.docs-demo__message-attachment.is-image { display:block; width:180px; }.docs-demo__message-attachment.is-image img { display:block; width:180px; max-height:150px; object-fit:cover; border-radius:8px; }.docs-demo__message-attachment.is-image span:last-child { display:block; margin-top:5px; }.docs-demo__chat-file-icon { display:grid; place-items:center; width:34px; height:38px; flex:0 0 34px; border-radius:5px; color:#12d5e5; background:#17343d; font-size:9px; font-weight:700; }
.docs-demo__chat-list-empty { padding:12px 10px; color:#78949c; font-size:12px; }
.docs-demo__chat-sources { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin-top:12px; color:#789ca4; font-size:11px; }.docs-demo__chat-source { max-width:100%; padding:3px 6px; overflow:hidden; border:1px solid #38616d; border-radius:5px; color:#12d5e5; background:transparent; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.docs-demo__team-member { width:calc(100% - 16px); margin:8px; padding:9px; border:1px solid #31505a; border-radius:7px; color:#cfe7ea; background:#10262f; font-size:12px; }
.docs-demo__chat-main { display:flex; flex-direction:column; min-width:0; min-height:0; }
.docs-demo__gigachat.is-hidden { display: none; }
.docs-demo.is-gigachat-mode .docs-demo__inspector > * { display: none; }
.docs-demo__gigachat-head { display:flex; align-items:center; justify-content:space-between; padding:15px 18px; color:#fff; border-bottom:1px solid var(--demo-line); }
.docs-demo__gigachat-head button { border:0; background:transparent; color:var(--demo-ink); font-size:26px; }
.docs-demo__gigachat-head .docs-demo__chat-wiki { display:grid; place-items:center; width:34px; height:34px; margin-right:10px; padding:0; color:#fff; }.docs-demo__chat-wiki svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.7; }.docs-demo__chat-wiki:hover { color:#12d5e5; }
.docs-demo.is-wiki-mode .docs-demo__folder-summary::after { content:'Режим WIKI · управление базой знаний'; display:block; margin-top:7px; color:#12d5e5; font-size:11px; font-weight:500; }
.docs-demo.is-wiki-mode .docs-demo__tree-edit { display:none; }
.docs-demo__wiki-head { display:flex; align-items:center; justify-content:space-between; gap:24px; margin:4px 0 22px; padding:0 4px; }
.docs-demo__wiki-head h1 { margin:0 0 7px; color:#fff; font-size:28px; line-height:1.15; }
.docs-demo__wiki-head p { margin:0; color:var(--demo-muted); font-size:13px; }
.docs-demo__wiki-head button { flex:0 0 auto; padding:10px 14px; color:#b7d3d9; }
.docs-demo__chat-head-actions { display:flex; align-items:center; gap:10px; }
.docs-demo__chat-head-actions select { max-width:260px; height:34px; padding:0 8px; border:1px solid #31505a; border-radius:6px; color:#d6ebee; background:#10262f; font-size:12px; }
.docs-demo__gigachat-head .docs-demo__chat-new { width:30px; height:30px; padding:0; color:#12d5e5; font-size:22px; }
.docs-demo__gigachat-messages { flex:1; overflow:auto; padding:16px; color:#b7d3d9; font-size:14px; line-height:1.5; }
.docs-demo__gigachat-messages p { padding:11px; border-radius:8px; background:#0b1c22; }
.docs-demo__chat-message { max-width:84%; margin:22px 0; padding:18px 21px; border-radius:14px; line-height:1.6; }
.docs-demo__chat-message strong { display:block; margin-bottom:9px; color:#fff; font-size:16px; }
.docs-demo__chat-message p { margin:0; padding:0; background:transparent; color:#b7d3d9; }
.docs-demo__chat-message.is-assistant p, .docs-demo__chat-message.is-user p { font-size:15px; }
.docs-demo__chat-message.is-user { margin-left:auto; background:#123844; }
.docs-demo__chat-message.is-assistant { background:#102128; }
.docs-demo__chat-message.is-assistant { display:flex; align-items:flex-start; gap:22px; }
.docs-demo__chat-message.is-user { position:relative; }
.docs-demo__chat-message.is-user::after { content:""; position:absolute; right:-8px; top:16px; border:8px solid transparent; border-top-color:#123844; border-left:0; }
.docs-demo__chat-message.is-assistant { padding:0; background:transparent; }
.docs-demo__chat-message.is-assistant > div { position:relative; min-width:0; flex:1; padding:18px 21px; border-radius:14px; background:#102128; }
.docs-demo__chat-message.is-assistant > div::before { content:""; position:absolute; left:-18px; top:20px; border:18px solid transparent; border-top-color:#102128; border-right:0; }
.docs-demo__anna-avatar { width:64px; height:64px; flex:0 0 64px; border:2px solid #d8f2f5; border-radius:50%; object-fit:cover; box-shadow:0 0 0 3px rgba(18,213,229,.16); }
.docs-demo__chat-message small { display:block; height:16px; margin-top:13px; overflow:hidden; opacity:0; visibility:hidden; color:#6f9ca7; font-size:11px; transition:opacity .18s ease,visibility .18s ease; }
.docs-demo__chat-message.is-thinking p { display:flex; align-items:center; gap:6px; min-height:22px; }.docs-demo__chat-message.is-thinking p i { width:8px; height:8px; border-radius:50%; background:#b7d3d9; animation:docs-breathe 1.25s ease-in-out infinite; }.docs-demo__chat-message.is-thinking p i:nth-child(2){animation-delay:.16s}.docs-demo__chat-message.is-thinking p i:nth-child(3){animation-delay:.32s}@keyframes docs-breathe{0%,100%{opacity:.25;transform:scale(.75)}50%{opacity:1;transform:scale(1)}}
.docs-demo__chat-message:hover small { opacity:1; visibility:visible; }
.docs-demo__gigachat-form { padding:14px; border-top:1px solid var(--demo-line); background:#0b1b21; }
.docs-demo__chat-composer-shell { position:relative; min-height:108px; border:1px solid #31505a; border-radius:10px; background:#09161b; }
.docs-demo__gigachat-form textarea { display:block; width:100%; min-height:106px; resize:vertical; padding:13px 14px 54px; border:0; border-radius:10px; color:#b7d3d9; background:transparent; font-size:15px; line-height:1.45; }
.docs-demo__chat-composer-controls { position:absolute; right:10px; bottom:9px; left:10px; display:flex; align-items:center; gap:8px; }
.docs-demo__gigachat-form button { display:grid; place-items:center; width:42px; height:42px; padding:0; color:#fff; border:0; border-radius:9px; background:transparent; }
.docs-demo__gigachat-form button:hover { background:#17343d; }.docs-demo__gigachat-form button svg { width:23px; height:23px; fill:none; stroke:currentColor; stroke-linecap:round; stroke-linejoin:round; stroke-width:1.9; }
.docs-demo__gigachat-form button[type="submit"] { margin-left:2px; border-radius:50%; background:#fff; color:#0d535f; }.docs-demo__gigachat-form button[type="submit"]:hover { background:#e8ffff; }
.docs-demo__chat-model-control { display:flex; align-items:center; gap:7px; margin-left:auto; height:38px; padding:0; border:0; color:#8faab1; background:transparent; font-size:12px; }.docs-demo__model-picker { position:relative; }.docs-demo__model-picker-button { width:auto !important; min-width:76px; height:32px !important; padding:0 22px 0 3px !important; color:#fff !important; background:linear-gradient(45deg,transparent 50%,#fff 50%) right 8px center/6px 6px no-repeat,linear-gradient(135deg,#fff 50%,transparent 50%) right 3px center/6px 6px no-repeat transparent !important; font-size:14px; font-weight:700; text-align:left; }.docs-demo__model-picker-button:hover { background:linear-gradient(45deg,transparent 50%,#fff 50%) right 8px center/6px 6px no-repeat,linear-gradient(135deg,#fff 50%,transparent 50%) right 3px center/6px 6px no-repeat transparent !important; }.docs-demo__model-picker-menu { position:absolute; right:0; bottom:38px; display:none; min-width:112px; padding:5px; border:1px solid #31505a; border-radius:8px; background:#10262f; box-shadow:0 10px 24px rgba(0,0,0,.3); }.docs-demo__model-picker.is-open .docs-demo__model-picker-menu { display:grid; }.docs-demo__model-picker-menu button { width:100% !important; height:31px !important; padding:0 8px !important; border-radius:5px; color:#cfe7ea; background:transparent; font-size:13px; text-align:left; }.docs-demo__model-picker-menu button:hover,.docs-demo__model-picker-menu button.is-selected { color:#fff; background:#173f4a; }
.docs-demo__chat-attachments { position:absolute; bottom:49px; left:12px; right:12px; z-index:1; }.docs-demo__chat-file { background:#17343d; }
.docs-demo__chat-attach { align-self:end; width:42px; padding:0; font-size:25px; line-height:1; }
.docs-demo__chat-attachments { grid-column:1 / -1; display:flex; flex-wrap:wrap; gap:7px; min-height:0; }
.docs-demo__chat-file { display:inline-flex; align-items:center; gap:7px; max-width:250px; padding:6px 8px; border:1px solid #38616d; border-radius:7px; color:#cfe7ea; background:#10262f; font-size:12px; }
.docs-demo__chat-file b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:500; }
.docs-demo__chat-file button { width:18px; height:18px; padding:0; border:0; background:transparent; color:#91aab1; font-size:16px; line-height:1; }
.docs-demo__giga-balance { flex:1; min-width:0; padding:0 18px; overflow:hidden; color:#8faab1; font-size:11px; line-height:1.2; text-align:right; text-overflow:ellipsis; white-space:nowrap; pointer-events:none; }
@media (max-width:760px){.docs-demo__gigachat-body{grid-template-columns:1fr}.docs-demo__chat-sidebar{max-height:142px;border-right:0;border-bottom:1px solid var(--demo-line)}.docs-demo__chat-list{grid-auto-flow:column;grid-auto-columns:minmax(150px,1fr);overflow-x:auto}}

.docs-demo__chat-mic { position:relative; transition:color .18s ease,background .18s ease,transform .18s ease !important; touch-action:none; }
.docs-demo__chat-mic.is-recording { color:#fff; background:#b94250 !important; animation:docs-stt-pulse 1.1s ease-in-out infinite; }
.docs-demo__chat-mic.is-processing { color:#b7d3d9; cursor:wait; }
.docs-demo__chat-mic.is-processing svg { animation:docs-stt-spin .85s linear infinite; }
@keyframes docs-stt-pulse { 0%,100% { box-shadow:0 0 0 0 rgba(218,80,94,.46); } 50% { box-shadow:0 0 0 8px rgba(218,80,94,0); } }
@keyframes docs-stt-spin { to { transform:rotate(360deg); } }


/* Forms and navigation density */
.docs-demo.is-form-mode .docs-demo__inspector{display:none!important}
.docs-demo.is-form-mode .docs-demo__viewer{grid-row:1/3}
.docs-demo__tree details>summary,.docs-demo__tree .tree-item{font-size:15px}
.docs-demo__client strong{font-size:15px}.docs-demo__client span{font-size:15px;line-height:1.35}.docs-demo__client-edit{width:32px;height:32px}.docs-demo__side-tabs button{font-size:15px}.docs-demo__tree-add{font-size:16px}.docs-demo__folder-summary strong,.docs-demo__folder-summary h1{font-size:18px}.docs-demo__folder-summary span{display:none}.docs-demo__document-row strong{font-size:18px}.docs-demo__document-row span{font-size:15px}.docs-demo__context h1{font-size:18px}.docs-demo__context span{font-size:15px}.docs-demo__tabs button{font-size:15px}.docs-demo__page-status{font-size:15px}.docs-demo__field>span{font-size:15px}.docs-demo__field textarea{font-size:15px}
/* Docs header layout v3 */
.docs_page .docs-session-exit{display:none}.docs-demo{padding-top:124px}.docs-demo__bar{height:124px;display:block;padding:0}.docs-demo__top-row{height:68px;display:flex;align-items:center;gap:14px;padding:0 22px;border-bottom:1px solid #25424c}.docs-demo__menu-button,.docs-demo__header-actions button,.docs-demo__header-actions a{display:grid;place-items:center;width:42px;height:42px;padding:0!important;border:0!important;border-radius:8px;background:transparent!important;color:#fff!important}.docs-demo__menu-button svg,.docs-demo__header-actions svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.docs-demo__menu-button:hover,.docs-demo__header-actions button:hover,.docs-demo__header-actions a:hover{color:#12d5e5!important;background:#14333c!important}.docs-demo__logo{justify-self:auto;width:auto;height:42px;margin:0;transform:none}.docs-demo__logo img{width:155px}.docs-demo__logo b{font-size:13px}.docs-demo__header-actions{display:flex;align-items:center;gap:4px;margin-left:auto}.docs-demo__header-actions a{margin-left:18px}.docs-demo__header-search{display:none;width:min(520px,42vw);margin:0 0 0 auto}.docs-demo.is-search-mode .docs-demo__header-search{display:block}.docs-demo__casebar{height:56px;display:flex;align-items:center;gap:14px;padding:0 22px 0 78px;background:#0d2027}.docs-demo__casebar>b{color:#12d5e5;font-size:12px;letter-spacing:.08em;text-transform:uppercase}.docs-demo__casebar .docs-demo__identity{flex-direction:row;align-items:baseline;gap:10px}.docs-demo__casebar .docs-demo__identity strong{font-size:15px}.docs-demo__workspace{grid-template-columns:280px minmax(0,1fr);grid-template-rows:minmax(calc(100vh - 124px),auto) auto;min-height:calc(100vh - 124px)}.docs-demo__tree{grid-column:1;grid-row:1/3;padding:18px 14px}.docs-demo__viewer{grid-column:2;grid-row:1;min-height:calc(100vh - 124px)}.docs-demo__inspector{grid-column:2;grid-row:2;border-top:1px solid var(--demo-line);border-left:0}.docs-demo.is-sidebar-collapsed .docs-demo__workspace{grid-template-columns:minmax(0,1fr)}.docs-demo.is-sidebar-collapsed .docs-demo__tree{display:none}.docs-demo.is-sidebar-collapsed .docs-demo__viewer,.docs-demo.is-sidebar-collapsed .docs-demo__inspector{grid-column:1}@media(max-width:900px){.docs-demo{padding-top:116px}.docs-demo__bar{height:116px}.docs-demo__top-row{height:62px;padding:0 12px;gap:9px}.docs-demo__logo img{width:125px}.docs-demo__header-actions{gap:0}.docs-demo__header-actions button,.docs-demo__header-actions a,.docs-demo__menu-button{width:36px;height:36px}.docs-demo__header-actions svg,.docs-demo__menu-button svg{width:20px;height:20px}.docs-demo__header-actions a{margin-left:7px}.docs-demo__casebar{height:54px;padding:0 14px}.docs-demo__casebar .docs-demo__identity{display:block}.docs-demo__casebar .docs-demo__identity strong,.docs-demo__casebar .docs-demo__identity span{display:block}.docs-demo__casebar .docs-demo__identity strong{font-size:13px}.docs-demo__workspace,.docs-demo.is-sidebar-collapsed .docs-demo__workspace{display:grid;grid-template-columns:1fr;grid-template-rows:auto auto auto;min-height:calc(100vh - 116px)}.docs-demo__tree{grid-column:1;grid-row:1}.docs-demo__viewer{grid-column:1;grid-row:2;min-height:480px}.docs-demo__inspector{grid-column:1;grid-row:3}.docs-demo.is-sidebar-collapsed .docs-demo__viewer{grid-row:1}.docs-demo.is-sidebar-collapsed .docs-demo__inspector{grid-row:2}.docs-demo__gigachat{position:fixed;z-index:100;inset:0}.docs-demo__gigachat-body{grid-template-columns:1fr}.docs-demo__chat-sidebar{max-height:145px;border-right:0;border-bottom:1px solid var(--demo-line)}}@media(max-width:560px){.docs-demo__logo b{display:none}.docs-demo__top-row{padding:0 8px}.docs-demo__header-actions button:nth-child(3){display:none}.docs-demo__casebar{gap:10px}.docs-demo__casebar>b{font-size:10px}.docs-demo__casebar .docs-demo__identity span{max-width:245px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}

.docs-demo__folder-summary h1{margin:0;font-size:18px;line-height:1.3}.docs-demo__folder-summary h1 b{color:var(--demo-muted);font-size:15px;font-weight:600}
/* Wide screens: document lists remain a readable work column after the sidebar is collapsed. */
@media(min-width:901px){
  .docs-demo.is-sidebar-collapsed .docs-demo__folder-view,
  .docs-demo.is-sidebar-collapsed .docs-demo__search-view,
  .docs-demo.is-sidebar-collapsed .docs-demo__form-view,
  .docs-demo.is-sidebar-collapsed .docs-demo__workspaces-view{width:100%;padding:30px clamp(28px,4vw,76px)}
  .docs-demo.is-sidebar-collapsed .docs-demo__folder-view > *,
  .docs-demo.is-sidebar-collapsed .docs-demo__search-view > *,
  .docs-demo.is-sidebar-collapsed .docs-demo__workspaces-view > *{max-width:1360px;margin-left:auto;margin-right:auto}
  .docs-demo.is-sidebar-collapsed .docs-demo__form-card{max-width:900px;margin-left:auto;margin-right:auto}
}
/* Desktop workbench: both navigation columns stay visible by default. */
@media (min-width:901px){
  .docs-demo__workspace{grid-template-columns:320px minmax(0,1fr) 360px;grid-template-rows:minmax(calc(100vh - 124px),auto);}
  .docs-demo__tree{grid-column:1;grid-row:1;}
  .docs-demo__viewer{grid-column:2;grid-row:1;min-height:calc(100vh - 124px);}
  .docs-demo__inspector{grid-column:3;grid-row:1;border-top:0;border-left:1px solid var(--demo-line);}
  .docs-demo.is-sidebar-collapsed .docs-demo__workspace{grid-template-columns:minmax(0,1fr) 360px;}
  .docs-demo.is-sidebar-collapsed .docs-demo__viewer{grid-column:1;grid-row:1;}
  .docs-demo.is-sidebar-collapsed .docs-demo__inspector{grid-column:2;grid-row:1;}
  .docs-demo__top-row{padding-left:22px;}
}

/* Mobile chat lives inside the workspace, below the app header. */
@media (max-width:900px){
  .docs-demo__viewer > .docs-demo__gigachat{position:relative;inset:auto;z-index:auto;min-height:calc(100dvh - 116px);height:calc(100dvh - 116px);}
  .docs-demo__gigachat-head{min-height:54px;padding:9px 12px;}
  .docs-demo__gigachat-head strong{font-size:16px;}
  .docs-demo__gigachat-body{grid-template-rows:auto minmax(0,1fr);}
  .docs-demo__chat-sidebar{max-height:116px;overflow:hidden;}
  .docs-demo__chat-sidebar-head{min-height:44px;padding:0 12px;}
  .docs-demo__chat-list{grid-auto-columns:minmax(132px,1fr);min-height:0;}
  .docs-demo__gigachat-messages{padding:12px;font-size:15px;}
  .docs-demo__chat-message{max-width:100%;margin:14px 0;padding:14px 15px;}
  .docs-demo__chat-message.is-assistant{gap:10px;}
  .docs-demo__chat-message.is-assistant > div{padding:14px 15px;}
  .docs-demo__anna-avatar{width:38px;height:38px;}
  .docs-demo__gigachat-form{padding:9px;}
  .docs-demo__chat-composer-shell{min-height:96px;}
  .docs-demo__gigachat-form textarea{min-height:94px;padding:10px 12px 50px;}
}

/* Header search: one stable control on wide screens. */
@media (min-width:901px){
  .docs-demo__top-row{min-width:0;}
  .docs-demo.is-search-mode .docs-demo__header-search{display:block;flex:1 1 560px;max-width:720px;min-width:260px;margin-left:auto;}
  .docs-demo.is-search-mode .docs-demo__header-search input{width:100%;height:42px;color:#edf6f7;border-color:#31505a;background:#0d2027;}
  .docs-demo.is-search-mode .docs-demo__header-actions{flex:0 0 auto;margin-left:18px;}
  .docs-demo.is-search-mode .docs-demo__header-actions > button[data-demo-action="show-search"]{display:none;}
}
/* Контекст активного дела: одна строка по центру верхней панели. */
@media (min-width: 901px) {
  .docs-demo { padding-top:68px; }
  .docs-demo__bar { height:68px; }
  .docs-demo__top-row { position:relative; }
  .docs-demo__casebar { position:absolute; left:50%; transform:translateX(-50%); display:block; width:min(620px,calc(100% - 680px)); height:auto; padding:0; background:transparent; pointer-events:none; }
  .docs-demo__casebar .docs-demo__identity { display:flex; align-items:baseline; justify-content:center; gap:10px; min-width:0; }
  .docs-demo__casebar .docs-demo__identity strong,.docs-demo__casebar .docs-demo__identity span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .docs-demo__casebar .docs-demo__identity strong { font-size:15px; }
  .docs-demo__casebar .docs-demo__identity span { font-size:12px; }
  .docs-demo__workspace { min-height:calc(100vh - 68px); grid-template-rows:minmax(calc(100vh - 68px),auto) auto; }
  .docs-demo__viewer { min-height:calc(100vh - 68px); }
}
@media (max-width: 900px) {
  .docs-demo__casebar { height:54px; display:flex; align-items:center; padding:0 14px; background:#0d2027; }
}
/* Единый поиск в начале центральной колонки. */
.docs-demo__search-inline{margin:18px 18px 0;padding:12px;border:1px solid #31505a;border-radius:10px;background:#10262e}.docs-demo__search-inline-row{display:flex;align-items:center;gap:10px}.docs-demo__search-inline-icon{color:#9ec6cf;font-size:23px;line-height:1}.docs-demo__search-inline-field{flex:1;min-width:0}.docs-demo__search-inline .docs-demo__search{display:block;width:100%;margin:0}.docs-demo__search-inline .docs-demo__search input{height:40px;background:#09161b}.docs-demo__search-inline button{white-space:nowrap;color:#c7e1e6;background:transparent;border-color:#31505a}.docs-demo__search-inline .docs-demo__search-drawer{margin:14px 0 0;padding:0;border:0;border-top:1px solid #31505a;border-radius:0;background:transparent}.docs-demo__search-inline .docs-demo__search-drawer-head{display:none}.docs-demo__search-inline .docs-demo__search-filters{padding-top:14px}@media(max-width:700px){.docs-demo__search-inline{margin:12px}.docs-demo__search-inline-row{flex-wrap:wrap}.docs-demo__search-inline-field{order:2;flex-basis:calc(100% - 42px)}.docs-demo__search-inline-row button:first-of-type{margin-left:auto}.docs-demo__search-inline .docs-demo__search-filters{grid-template-columns:1fr}}
.docs-demo__viewer{display:flex;flex-direction:column}.docs-demo__search-inline{order:-2;flex:0 0 auto}.docs-demo__search-view{order:-1;flex:1;width:100%;padding:18px}.docs-demo__search-view .docs-demo__search-page-head{display:none}.docs-demo__search-empty{margin:0;border:1px dashed #31505a;border-radius:9px;padding:18px;color:#9ec6cf;background:#10262e}.docs-demo__search-list{display:grid;gap:10px}.docs-demo__search-card{width:100%;text-align:left;padding:14px;border:1px solid #31505a;border-radius:9px;background:#10262e;color:#fff}.docs-demo__search-card:hover{border-color:#12d5e5;background:#14333c}.docs-demo__search-card span{display:block;color:#8eb9c3;font-size:13px}.docs-demo__search-card strong{display:block;margin:6px 0}.docs-demo__search-card p{margin:0;color:#d6e6e9}.docs-demo__search-card mark{background:#0fbfce;color:#071417}
/* Нативный календарь должен быть привязан к своему полю; растягивание индикатора ломает позицию popup в Chromium. */
.docs-demo__date-filter { position:relative; cursor:pointer; }
.docs-demo__date-filter input { cursor:pointer; }
.docs-demo__date-filter input::-webkit-calendar-picker-indicator { position:static; inset:auto; width:auto; height:auto; margin:0; opacity:1; cursor:pointer; }
.docs-demo__header-actions .search-close-line{display:none}.docs-demo__header-actions button.is-search-open{color:#12d5e5!important;background:#14333c!important}.docs-demo__header-actions button.is-search-open .search-glass-handle{display:none}.docs-demo__header-actions button.is-search-open .search-close-line{display:block}.docs-demo__search-inline{margin-top:28px}
/* Центральная строка поиска не наследует режим шапки, а лупа всегда доступна. */
.docs-demo.is-search-mode .docs-demo__header-actions > button[data-demo-action="show-search"]{display:grid!important}
.docs-demo.is-search-mode #demo-search-inline .docs-demo__header-search{display:block!important;flex:none!important;max-width:none!important;min-width:0!important;margin:0!important}
.docs-demo.is-search-mode #demo-search-inline .docs-demo__header-search input{width:100%;height:40px;color:#edf6f7;border-color:#31505a;background:#09161b}
.docs-demo__bar{z-index:100}
.docs-demo__search-inline{scroll-margin-top:88px}
/* При открытом поиске действия остаются у правого края шапки. */
@media (min-width:901px){
  .docs-demo.is-search-mode .docs-demo__header-actions{margin-left:auto!important;}
}
/* В поиске правая колонка освобождается: она относится к открытому листу. */
.docs-demo__inspector.is-search-empty > *{display:none!important}
.docs-demo__search-back{margin:0 0 9px;padding:0;border:0!important;background:transparent!important;color:#12d5e5;font-size:15px;font-weight:600;cursor:pointer}.docs-demo__search-back:hover{text-decoration:underline}
.docs-demo__document-breadcrumb{padding:15px 18px 0;color:#91aab1;font-size:15px;line-height:1.4}.docs-demo__document-breadcrumb:empty{display:none}
.docs-demo__document-tabs{display:flex;gap:8px;padding:12px 18px 0;border-bottom:1px solid #294752}.docs-demo__document-tabs button{padding:9px 14px;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:#90aab2;font-size:15px}.docs-demo__document-tabs button.is-active{color:#12d5e5;border-bottom-color:#12d5e5}.docs-demo__document-ocr{padding:18px;min-height:480px}.docs-demo__document-ocr .docs-demo__field{max-width:none}.docs-demo__document-ocr textarea{min-height:440px}
/* Компактная строка контекста документа: путь слева, представление справа. */
#demo-document-view{display:flex;flex-wrap:wrap;align-items:center}
.docs-demo__document-breadcrumb{flex:1 1 auto;min-width:0;margin:0;padding:14px 18px;color:#91aab1;font-size:15px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.docs-demo__document-tabs{display:flex;flex:0 0 auto;gap:4px;margin-left:auto;padding:0 18px;border:0}
.docs-demo__document-tabs button{padding:14px 12px 11px}
.docs-demo__stage,.docs-demo__document-ocr{flex:0 0 100%;width:100%}
.docs-demo__document-ocr .docs-demo__field>span{display:none}
.docs-demo__document-ocr .docs-demo__field{margin-top:0}
/* Компактная навигация документа. */
.docs-demo__document-breadcrumb{padding:15px 18px 14px;color:#9dbbc2;font-size:15px;font-weight:500;letter-spacing:.01em}
.docs-demo__document-tabs{gap:6px;padding:0 18px 0 0;border:0;align-self:center}
.docs-demo__document-tabs button{min-height:34px;padding:7px 13px;border:1px solid transparent;border-radius:7px;background:transparent;color:#9dbbc2;font-size:15px;font-weight:700;line-height:1}
.docs-demo__document-tabs button:hover{color:#dff6f8;background:#102b34}
.docs-demo__document-tabs button.is-active{border-color:#1c6774;color:#12d5e5;background:#10343e;box-shadow:inset 0 0 0 1px rgba(18,213,229,.08)}
.docs-demo__search-back{display:inline-flex;align-items:center;min-height:34px;margin:0 0 13px;padding:7px 11px;border:1px solid #31505a!important;border-radius:7px!important;background:#10262e!important;color:#d5edf0;font-size:15px;font-weight:700;line-height:1;letter-spacing:0}
.docs-demo__search-back:hover{border-color:#12d5e5!important;background:#14343d!important;color:#12d5e5}
.docs-demo__context:has(.docs-demo__search-back:not(.is-hidden)){padding-top:16px}
/* Спокойные текстовые вкладки и ссылка возврата с отдельной иконкой. */
.docs-demo__document-tabs{gap:2px}
.docs-demo__document-tabs button,.docs-demo__document-tabs button.is-active{min-height:auto;padding:8px 12px;border:0;border-radius:6px;background:transparent;box-shadow:none;color:#94afb6;font-weight:700}
.docs-demo__document-tabs button:hover{color:#e1f5f7;background:#102b34}
.docs-demo__document-tabs button.is-active{color:#12d5e5;background:rgba(18,213,229,.07)}
.docs-demo__search-back{min-height:30px;margin:0 0 14px;padding:0;border:0!important;border-radius:0!important;background:transparent!important;color:#c5e0e5;font-weight:700}
.docs-demo__search-back::first-letter{color:#12d5e5}
.docs-demo__search-back:hover{border:0!important;background:transparent!important;color:#12d5e5;text-decoration:none}
/* Ровная стрелка возврата и стандартная линия иконки настроек. */
.docs-demo__search-back{display:inline-flex;gap:9px;align-items:center}
.docs-demo__search-back::before{content:"";width:7px;height:7px;border-left:1.8px solid currentColor;border-bottom:1.8px solid currentColor;transform:rotate(45deg);margin-left:2px}
.docs-demo__search-back::first-letter{color:inherit}
.docs-demo__header-actions [data-demo-action="gigachat-wiki"] svg{stroke-linecap:round;stroke-linejoin:round}
/* Верхние действия центральной и правой колонок лежат на одной базовой линии. */
.docs-demo__context:has(.docs-demo__search-back:not(.is-hidden)){padding:11px 16px 14px}
.docs-demo__search-back{height:34px;margin:0 0 9px}
.docs-demo__search-back{transform:translateY(-7px)}
/* Просмотр листа: целиком на экране и вертикальная лента страниц. */
.docs-demo__zoom-controls{display:flex;align-items:center;gap:3px;margin-left:auto;margin-right:10px;padding:3px;border:1px solid #294752;border-radius:8px;background:#0d2027}.docs-demo__zoom-controls button{min-width:30px;height:28px;padding:0 8px;border:0!important;border-radius:5px!important;background:transparent!important;color:#b7d3d9;font-size:14px;font-weight:700}.docs-demo__zoom-controls button:first-child,.docs-demo__zoom-controls button:last-child{font-size:20px;line-height:1}.docs-demo__zoom-controls button:hover{background:#14343d!important;color:#12d5e5}
.docs-demo__page-layout{display:flex;flex:0 0 100%;width:100%;height:calc(100dvh - 111px);min-height:440px;background:#071317}.docs-demo__page-layout .docs-demo__stage{flex:1 1 auto;width:auto;height:100%;min-height:0;overflow:hidden}.docs-demo__page-layout .docs-demo__swiper{height:100%;min-height:0;aspect-ratio:auto}.docs-demo__page-layout .docs-demo__canvas{height:100%;padding:14px;background:#071317}.docs-demo__page-layout .docs-demo__canvas img{max-width:100%;max-height:100%;object-fit:contain}
.docs-demo__page-layout .docs-demo__filmstrip-wrap{display:flex;flex:0 0 104px;flex-direction:column;min-width:0;margin:0;padding:10px 8px;border:0;border-left:1px solid #294752;background:#0d2027}.docs-demo__page-layout .docs-demo__filmstrip-head{display:none}.docs-demo__page-layout .docs-demo__filmstrip{display:flex;flex:1;flex-direction:column;gap:8px;overflow-x:hidden;overflow-y:auto;padding:0 1px}.docs-demo__page-layout .docs-demo__thumb{flex:0 0 112px;width:86px;height:112px;margin:0;padding:3px!important;background:#10262f!important}.docs-demo__page-layout .docs-demo__thumb img{object-fit:cover}
@media(max-width:1500px) and (min-width:901px){.docs-demo__page-layout .docs-demo__filmstrip-wrap{flex-basis:88px;padding:8px 5px}.docs-demo__page-layout .docs-demo__thumb{flex-basis:94px;width:76px;height:94px}}
@media(max-width:900px){.docs-demo__page-layout{display:block;height:auto;min-height:0}.docs-demo__page-layout .docs-demo__stage{height:calc(100dvh - 160px);min-height:460px}.docs-demo__page-layout .docs-demo__filmstrip-wrap{display:block;margin:0;padding:10px 14px;border:0;border-top:1px solid #294752}.docs-demo__page-layout .docs-demo__filmstrip{flex-direction:row;overflow-x:auto;overflow-y:hidden}.docs-demo__page-layout .docs-demo__thumb{flex:0 0 66px;width:auto;height:86px}}

/* Hybrid search: MySQL exact matches and scoped vector matches share one result list. */
.docs-demo__search-summary{display:flex;gap:18px;align-items:center;margin:0 0 12px;color:#9ec6cf;font-size:15px;line-height:1.35}
.docs-demo__search-summary span{display:inline-flex;gap:6px;align-items:center}
.docs-demo__search-summary span::before{content:"";width:7px;height:7px;border-radius:50%;background:#12d5e5}
.docs-demo__search-summary span:last-child::before{background:#8c65f4}
.docs-demo__search-origins{display:flex;gap:7px;flex-wrap:wrap;margin:7px 0 0}
.docs-demo__search-origin{display:inline-flex;align-items:center;min-height:24px;padding:2px 8px;border:1px solid;border-radius:6px;font-size:15px;font-style:normal;line-height:1.2}
.docs-demo__search-origin.is-exact{border-color:#277b85;background:#103d43;color:#73eaf3}
.docs-demo__search-origin.is-semantic{border-color:#6750a4;background:#25203f;color:#c4afff}
.docs-demo__search-card span{font-size:15px}
.docs-demo__search-card p{font-size:15px;line-height:1.5}
@media(max-width:640px){.docs-demo__search-summary{gap:12px;flex-wrap:wrap}.docs-demo__search-origin{font-size:15px}}

/* Sheet fitting: a full A4 page must stay inside the viewer; a reduced page anchors at top-left. */
.docs-demo__page-layout .docs-demo__swiper-wrapper,.docs-demo__page-layout .swiper-wrapper,.docs-demo__page-layout .swiper-slide{height:100%}
.docs-demo__page-layout .docs-demo__canvas{align-items:center;justify-items:center}
.docs-demo__page-layout .docs-demo__canvas img{width:auto!important;height:calc(100% - 28px)!important;max-width:calc(100% - 28px)!important;max-height:calc(100% - 28px)!important;object-fit:contain}
.docs-demo__page-layout .docs-demo__canvas.is-reduced{align-items:start;justify-items:start}
.docs-demo__page-layout .docs-demo__canvas.is-reduced img{transform-origin:top left}
/* The page image is absolute so percentage height resolves against the fixed viewer, not its intrinsic A4 size. */
.docs-demo__page-layout .docs-demo__canvas img{position:absolute;inset:14px;margin:auto;width:auto!important;height:calc(100% - 28px)!important;max-width:calc(100% - 28px)!important;max-height:calc(100% - 28px)!important}
.docs-demo__page-layout .docs-demo__canvas.is-reduced img{inset:14px auto auto 14px;margin:0}

@media (max-width:700px){.docs-demo__ai-status-view{padding:18px 14px}.docs-demo__ai-status-head{display:block}.docs-demo__ai-status-head > div:last-child{margin-top:16px}.docs-demo__ai-services,.docs-demo__ai-progress{grid-template-columns:1fr}.docs-demo__ai-progress article > div{grid-template-columns:1fr 1fr}}



/* OCR занимает место листа, полоса миниатюр остаётся в page-layout. */
.docs-demo__stage>.docs-demo__document-ocr{box-sizing:border-box;width:100%;height:100%;min-height:0;margin:0;padding:12px;overflow:hidden}
.docs-demo__stage>.docs-demo__document-ocr .docs-demo__field{height:100%;margin:0}
.docs-demo__stage>.docs-demo__document-ocr textarea{height:calc(100% - 48px);min-height:0;resize:none}


/* Viewer header and filmstrip use a shared desktop grid. */
.docs-demo__viewer {
  --docs-filmstrip-width: 120px;
}

@media (min-width: 901px) {
  #demo-document-view {
    box-sizing: border-box;
    padding-right: var(--docs-filmstrip-width);
  }

  .docs-demo__page-layout .docs-demo__filmstrip-wrap {
    flex-basis: var(--docs-filmstrip-width);
    padding: 10px 9px 10px 8px;
  }

  .docs-demo__page-layout .docs-demo__filmstrip {
    box-sizing: border-box;
    padding: 0 6px 0 0;
    scrollbar-gutter: stable;
  }

  .docs-demo__page-layout .docs-demo__thumb {
    box-sizing: border-box;
    width: 86px;
    max-width: 100%;
    align-self: flex-start;
  }

  .docs-demo__search-back {
    height: 34px;
    margin: 0;
    transform: translateY(-1px);
  }
}

@media (min-width: 901px) and (max-width: 1500px) {
  .docs-demo__viewer {
    --docs-filmstrip-width: 100px;
  }

  .docs-demo__page-layout .docs-demo__filmstrip-wrap {
    padding: 8px;
  }

  .docs-demo__page-layout .docs-demo__filmstrip {
    padding-right: 5px;
  }

  .docs-demo__page-layout .docs-demo__thumb {
    width: 72px;
  }
}

/* The page layout already owns the filmstrip width. Keep that space out of the content area. */
@media (min-width: 901px) {
  #demo-document-view { padding-right: 0; }
  .docs-demo__document-tabs { margin-right: var(--docs-filmstrip-width); }
}

/* Search occupies one predictable workspace and never leaves an inspector beside it. */
.docs-demo.is-search-mode .docs-demo__workspace { grid-template-columns: 280px minmax(0, 1fr); }
.docs-demo.is-search-mode .docs-demo__inspector { display: none; }

/* Case tree: a fixed chevron column keeps every row on one visual grid. */
.docs-demo__tree ul {
  padding: 0;
}
.docs-demo__tree ul ul {
  margin-left: 12px;
  padding-left: 10px;
}
.docs-demo__tree > #demo-tree > ul > li > details > ul {
  margin-left: 0;
  padding-left: 10px;
}
.docs-demo__tree details > summary,
.docs-demo__tree .tree-item {
  gap: 0;
  padding: 7px 4px;
}
.docs-demo__tree details > summary::before,
.docs-demo__tree .tree-item::before {
  flex: 0 0 16px;
  width: 16px;
  text-align: center;
}
.docs-demo__tree details > summary > span:not(.count),
.docs-demo__tree .tree-item > span:not(.count) {
  flex: 1 1 auto;
  min-width: 0;
}
.docs-demo__tree .count {
  flex: 0 0 22px;
  margin-left: 6px;
  text-align: right;
}
.docs-demo__tree details > summary:hover,
.docs-demo__tree .tree-item:hover,
.docs-demo__tree .is-selected {
  background: transparent !important;
}
.docs-demo__tree .is-selected,
.docs-demo__tree .is-selected::before {
  color: #12d5e5;
}

.docs-demo__teamchat-button { display: none !important; }


/* Search has one focus outline: the input itself. */
.docs-demo__search-inline { padding: 0; border: 0; background: transparent; }
.docs-demo__search-inline-row { gap: 10px; }
.docs-demo__search-inline .docs-demo__search input { box-shadow: 0 0 0 1px rgba(18, 213, 229, .48); }
.docs-demo__search-loading { display:flex; align-items:center; gap:13px; min-height:94px; padding:18px 4px; color:#a5c7ce; }
.docs-demo__search-loading svg { width:42px; height:42px; flex:0 0 auto; overflow:visible; animation:docs-search-orbit 1.3s linear infinite; }
.docs-demo__search-loading-ring { fill:none; stroke:rgba(18,213,229,.18); stroke-width:3; }
.docs-demo__search-loading-orbit { fill:none; stroke:#12d5e5; stroke-width:3; stroke-linecap:round; }
.docs-demo__search-loading-dot { fill:#7d62ee; }
.docs-demo__search-loading strong,.docs-demo__search-loading span { display:block; }
.docs-demo__search-loading strong { color:#edf6f7; font-size:15px; }
.docs-demo__search-loading span { margin-top:4px; font-size:13px; }
@keyframes docs-search-orbit { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .docs-demo__search-loading svg { animation:none; } }

/* Calm, single-line search control. */
.docs-demo.is-search-mode .docs-demo__search-inline {
  margin: 22px 28px 0;
}
.docs-demo.is-search-mode .docs-demo__search-inline .docs-demo__search input {
  height: 42px;
  padding: 0 14px 0 38px;
  border: 1px solid #31505a;
  border-radius: 8px;
  outline: 0;
  box-shadow: none;
  background: #0b1b21;
  transition: border-color .16s ease, background .16s ease;
}
.docs-demo.is-search-mode .docs-demo__search-inline .docs-demo__search input:hover {
  border-color: #47717a;
}
.docs-demo.is-search-mode .docs-demo__search-inline .docs-demo__search input:focus {
  border-color: #12b8c7;
  box-shadow: none;
  background: #0d2027;
}
.docs-demo.is-search-mode .docs-demo__search-inline-row > button {
  height: 42px;
  padding: 0 14px;
  border: 1px solid #31505a;
  border-radius: 8px;
  background: #10262e;
  color: #c7e1e6;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.docs-demo.is-search-mode .docs-demo__search-inline-row > button:hover {
  border-color: #47717a;
  background: #14313a;
  color: #edf6f7;
}


/* Tree labels use the same readable type treatment as client names. */
.docs-demo__tree details > summary,
.docs-demo__tree .tree-item {
  font-family: "Open Sans", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.docs-demo__tree details > summary::before {
  align-self: flex-start;
  margin-top: 1px;
  line-height: 1.35;
}
.docs-demo__tree .count {
  font-size: 12px;
  font-weight: 400;
}

.docs-demo__zoom-controls .docs-demo__rotate-button {
  width: 28px;
  min-width: 28px;
  margin-left: 4px;
  padding: 0;
}
.docs-demo__rotate-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.docs-demo__canvas img {
  transform-origin: center center;
  will-change: transform;
}

/* OCR reads as one continuous document; only the stage itself scrolls. */
.docs-demo__page-layout .docs-demo__stage:has(.docs-demo__document-ocr:not(.is-hidden)) {
  overflow-y: auto;
  background: #071317;
}
.docs-demo__stage > .docs-demo__document-ocr {
  height: auto;
  min-height: 100%;
  padding: 12px;
  overflow: visible;
  background: #071317;
}
.docs-demo__stage > .docs-demo__document-ocr .docs-demo__field {
  height: auto;
  min-height: 100%;
  background: transparent;
}
.docs-demo__stage > .docs-demo__document-ocr textarea {
  box-sizing: border-box;
  height: auto;
  min-height: 100%;
  resize: none;
  overflow: hidden;
  border-color: #31505a;
  background: #0b1b21;
  color: #edf6f7;
}

.docs-demo__server-status { width:9px; height:9px; margin-left:auto; border-radius:50%; background:#8799a0; box-shadow:0 0 0 3px rgba(135,153,160,.12); }
.docs-demo__server-status.is-online { background:#54e59b; box-shadow:0 0 0 3px rgba(84,229,155,.14); }
.docs-demo__server-status.is-offline { background:#ff5b77; box-shadow:0 0 0 3px rgba(255,91,119,.14); }
.docs-demo__queue-indicator { margin-left:auto; color:#9ec6cf; font-size:12px; white-space:nowrap; }
.docs-demo__queue-indicator.is-warning { color:#ffc247; }
@media (max-width:560px) { .docs-demo__queue-indicator { display:none; } }
.docs-demo__network-label { margin-left:10px; color:#9ec6cf; font-size:12px; white-space:nowrap; }
.docs-demo__server-status.is-offline + .docs-demo__header-actions {} 
@media (max-width:760px) { .docs-demo__network-label { display:none; } }

/* Connection and local-queue indicators belong to the mobile capture workflow. */
@media (min-width: 1025px) {
  .docs-demo__server-status,
  .docs-demo__network-label,
  .docs-demo__queue-indicator { display: none; }
}

/* Mobile capture header: keep only navigation and the real connection state. */
@media (max-width: 1024px) {
  .docs-demo__top-row .docs-demo__casebar { display: none !important; }
  .docs-demo__server-status { display: block; margin-left: auto; }
}
@media (min-width: 561px) and (max-width: 1024px) {
  .docs-demo__network-label { display: block; margin-left: 8px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .docs-demo__queue-indicator { display: block; margin-left: 12px; }
}
@media (max-width: 560px) {
  .docs-demo__server-status { margin-left: auto; }
}

@media (max-width: 900px) {
  .docs-demo__page-layout .docs-demo__canvas {
    align-items: start;
    justify-items: center;
    padding: 10px 8px;
  }
  .docs-demo__page-layout .docs-demo__canvas img {
    position: static;
    inset: auto;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0;
  }
}

@media (max-width: 900px) {
  .docs-demo__page-layout .docs-demo__stage,
  .docs-demo__page-layout .docs-demo__swiper,
  .docs-demo__page-layout .swiper-wrapper,
  .docs-demo__page-layout .swiper-slide {
    height: auto;
    min-height: 0;
  }
  .docs-demo__page-layout .docs-demo__canvas {
    height: auto;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .docs-demo__page-layout { padding: 8px 8px 0; background: #071317; }
  .docs-demo__page-layout .docs-demo__canvas { padding: 0; }
  .docs-demo__page-layout .docs-demo__filmstrip-wrap { margin-top: 8px; padding: 8px 6px; }
}

@media (max-width: 900px) {
  .docs-demo { padding-top: 62px; }
  .docs-demo__bar { height: 62px; }
  .docs-demo__workspace,
  .docs-demo.is-sidebar-collapsed .docs-demo__workspace { min-height: calc(100vh - 62px); }
  .docs-demo__viewer { min-height: calc(100vh - 62px); }
}

@media (max-width: 900px) {
  .docs-demo__page-layout { padding-top: 16px; }
  .docs-demo__page-layout .docs-demo__filmstrip-wrap { margin-top: 16px; }
}

@media (max-width: 900px) {
  .docs-demo__viewer,
  .docs-demo.is-sidebar-collapsed .docs-demo__viewer,
  #demo-document-view,
  .docs-demo__page-layout,
  .docs-demo__page-layout .docs-demo__filmstrip-wrap { min-height: 0; }
  .docs-demo__page-layout .docs-demo__filmstrip-wrap { padding-bottom: 0; }
}
.docs-demo__scan-section { display:none; width:100%; margin-top:10px; padding:12px; border:1px solid #12d5e5; border-radius:8px; background:#10343e; color:#dff6f8; font-weight:700; }
@media (max-width:1024px) { .docs-demo__scan-section:not(.is-hidden) { display:block; } }
.docs-demo__stage > .docs-demo__document-ocr .docs-demo__ocr-text {
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  padding: 12px;
  border: 1px solid #31505a;
  border-radius: 7px;
  background: #0b1b21;
  color: #edf6f7;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow: visible;
}

@media (max-width: 900px) {
  #demo-document-view > .docs-demo__document-breadcrumb { display: none; }
  .docs-demo__context:has(#demo-document-back:not(.is-hidden)) h1 { display: none; }
  .docs-demo__context:has(#demo-document-back:not(.is-hidden)) { padding: 10px 16px; }
  .docs-demo__context:has(#demo-document-back:not(.is-hidden)) #demo-document-back { margin: 0; }
}

@media (max-width: 900px) {
  #demo-document-back:not(.is-hidden) {
    position: fixed;
    z-index: 120;
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    height: 44px;
    border: 1px solid #31505a;
    border-radius: 10px;
    background: rgba(13, 32, 39, .96);
    box-shadow: 0 8px 24px rgba(0,0,0,.32);
  }
}

@media (max-width: 900px) {
  #demo-document-back:not(.is-hidden) {
    height: 56px;
    padding: 0 20px;
    font-size: 16px;
    font-weight: 700;
  }
}

@media (max-width: 900px) {
  #demo-document-back:not(.is-hidden) {
    position: fixed !important;
    z-index: 1000 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(64px + env(safe-area-inset-bottom)) !important;
    margin: 0 !important;
    padding: 0 24px env(safe-area-inset-bottom) !important;
    border: 0 !important;
    border-top: 1px solid #31505a !important;
    border-radius: 0 !important;
    background: #0d2027 !important;
    box-shadow: 0 -10px 24px rgba(0,0,0,.26) !important;
    color: #edf6f7 !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    text-align: left;
  }
  #demo-document-back:not(.is-hidden)::before {
    content: '‹';
    display: inline-block;
    margin-right: 11px;
    color: #12d5e5;
    font-size: 30px;
    font-weight: 400;
    line-height: 0;
    vertical-align: -3px;
  }
}

@media (max-width: 900px) {
  #demo-document-back:not(.is-hidden) {
    height: calc(104px + env(safe-area-inset-bottom)) !important;
    padding: 0 30px env(safe-area-inset-bottom) !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    letter-spacing: -.02em;
  }
  #demo-document-back:not(.is-hidden)::before {
    content: '‹';
    margin-right: 16px;
    color: #90aab1;
    font-size: 42px;
    font-weight: 300;
    vertical-align: -5px;
  }
}

@media (max-width: 900px) {
  #demo-document-back:not(.is-hidden) {
    height: calc(80px + env(safe-area-inset-bottom)) !important;
    font-size: 22px !important;
    font-weight: 100 !important;
    letter-spacing: 2px;
  }
}

@media (max-width: 900px) {
  #demo-document-back:not(.is-hidden)::before {
    content: '' !important;
    width: 13px;
    height: 13px;
    margin-right: 18px;
    border-left: 2px solid #90aab1;
    border-bottom: 2px solid #90aab1;
    transform: rotate(45deg);
    vertical-align: 1px;
  }
}

@media (max-width: 900px) { #demo-document-back:not(.is-hidden) { font-size: 18px !important; } }

.docs-demo__scanner{display:none}
@media(max-width:1024px){.docs-demo.is-scanner-mode .docs-demo__scanner{position:fixed;z-index:2000;inset:0;display:block;background:#071317}.docs-demo__scanner video{width:100%;height:100%;object-fit:cover}.docs-demo__scanner-frame{position:absolute;inset:10% 7% 19%;border:3px solid rgba(255,255,255,.85);border-radius:14px;pointer-events:none}.docs-demo__scanner-capture{position:absolute;left:20px;right:20px;bottom:88px;height:58px;border:1px solid #48646c;border-radius:14px;background:#14242b;color:#fff;font-size:20px;font-weight:700}.docs-demo__scanner-capture span{font-size:28px;margin-right:10px}.docs-demo__scanner-section{position:absolute;left:0;right:0;bottom:0;height:76px;border:0;border-top:1px solid #31505a;background:#0d2027;color:#edf6f7;font-size:17px}.docs-demo__scanner-section i{margin-right:12px;color:#90aab1;font-size:28px;font-style:normal}.docs-demo__scanner-feedback{position:absolute;top:20px;left:20px;right:20px;text-align:center;font-size:16px;font-weight:700;color:#fff}.docs-demo__scanner-feedback.is-ok{color:#54e59b}.docs-demo__scanner-feedback.is-error{color:#ff7188}}
@media(max-width:1024px){.docs-demo__scanner-queue{position:absolute;right:18px;top:14px;z-index:2;min-height:36px;padding:0 12px;border:1px solid #4a6972;border-radius:9px;background:#10252c;color:#dff5f7;font-size:14px}.docs-demo__scanner-queue-panel{position:absolute;z-index:4;top:60px;left:16px;right:16px;max-height:calc(100% - 160px);overflow:auto;padding:14px;border:1px solid #365761;border-radius:14px;background:rgba(8,22,27,.97);box-shadow:0 16px 48px rgba(0,0,0,.42)}.docs-demo__scanner-queue-panel.is-hidden{display:none}.docs-demo__scanner-queue-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:#fff}.docs-demo__scanner-queue-head button{border:0;background:transparent;color:#9bb7bf;font-size:24px}.docs-demo__scanner-queue-summary{margin:0 0 12px;color:#9ec5cc;font-size:13px}.docs-demo__scanner-queue-row{display:grid;grid-template-columns:64px 1fr auto;gap:10px;align-items:center;padding:9px 0;border-top:1px solid #213d45}.docs-demo__scanner-queue-row img{width:64px;height:64px;object-fit:cover;border-radius:6px}.docs-demo__scanner-queue-row strong{display:block;color:#fff;font-size:14px}.docs-demo__scanner-queue-row span{display:block;margin-top:3px;color:#92b7bf;font-size:12px}.docs-demo__scanner-queue-row button{min-height:34px;border:1px solid #41636d;border-radius:7px;background:#12313a;color:#e8fbfc;font-size:12px}.docs-demo__scanner-queue-empty{padding:14px 0;color:#9ec5cc;text-align:center}}
@media(max-width:1024px){.docs-demo__scanner-head{position:absolute;z-index:3;top:0;left:0;right:0;height:62px;display:flex;align-items:center;gap:12px;padding:0 16px;background:linear-gradient(180deg,rgba(4,15,19,.94),rgba(4,15,19,.52));border-bottom:1px solid rgba(114,164,174,.22)}.docs-demo__scanner-head button{display:grid;place-items:center;width:36px;height:36px;border:0;background:transparent;color:#eaf7f8}.docs-demo__scanner-head svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.docs-demo__scanner-logo img{display:block;width:108px}.docs-demo__scanner-leds{display:flex;gap:8px;margin-left:auto}.docs-demo__scanner-leds i{width:8px;height:8px;border-radius:50%;background:#869ba1;box-shadow:0 0 0 3px rgba(134,155,161,.14)}.docs-demo__scanner-leds i.is-online{background:#54e59b;box-shadow:0 0 0 3px rgba(84,229,155,.15)}.docs-demo__scanner-leds i.is-pending{background:#ffc247;box-shadow:0 0 0 3px rgba(255,194,71,.15)}.docs-demo__scanner .docs-demo__scanner-feedback{top:78px}.docs-demo__scanner .docs-demo__scanner-queue{top:72px}}
@media(max-width:1024px){.docs-demo__scanner-frame{display:none}.docs-demo__scanner video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#071317}}
@media(max-width:1024px){.docs-demo__scanner-section{position:absolute!important;z-index:5;left:0!important;right:0!important;bottom:0!important;width:100%!important;height:calc(80px + env(safe-area-inset-bottom))!important;margin:0!important;padding:0 30px env(safe-area-inset-bottom)!important;border:0!important;border-top:1px solid #31505a!important;border-radius:0!important;background:#0d2027!important;box-shadow:0 -10px 24px rgba(0,0,0,.26)!important;color:#edf6f7!important;font-size:18px!important;font-weight:100!important;letter-spacing:2px;text-align:left}.docs-demo__scanner-section i{display:none}.docs-demo__scanner-section::before{content:'';display:inline-block;width:13px;height:13px;margin-right:18px;border-left:2px solid #90aab1;border-bottom:2px solid #90aab1;transform:rotate(45deg);vertical-align:1px}.docs-demo__scanner-capture{bottom:calc(96px + env(safe-area-inset-bottom))}}
