/* HDTools.UI.Web - Unified Dock shell (web port of ExternalCommand/Alpha/UnifiedDockPreview).
   Numbers come from UnifiedDockPreviewView.cs (BuildShell, CreateViewerToolbar, CreateSearchHeader, CreatePixelScroll),
   DockPalette and DockMotion. Body controls come from hdui.css; this file only adds the dock shell and dock-only parts. */

/* ---------- palette (DockPalette): dark is the default ---------- */
.hd-dock {
  /* Pavel's palette (DockPalette), the checkpoint values of 2026-10-13: restored on his word after the review
     of the improvement stage. The only addition is --dk-Hover, the hover wash of the new status line. */
  --dk-Body: #3E4A5D; --dk-NavRail: #536180; --dk-NavSel: #3E4A5D; --dk-NavHover: #4A556C;
  --dk-HeaderRail: #53617F; --dk-HeaderCover: #2E3440; --dk-HeaderDivider: #191F26;
  --dk-HeaderSel: #53617F; --dk-HeaderHover: #3E4A5D; --dk-HeaderContour: #191F26;
  --dk-SearchField: #384255; --dk-SearchFieldHover: #354055; --dk-SearchBorder: #1A1F25; --dk-SearchBorderHover: #1A1F25;
  --dk-SearchText: #C2D5FF; --dk-FilterField: #4A5771; --dk-FilterHover: #536587; --dk-FilterGlyph: #8697BA; --dk-FilterGlyphLine: none;
  --dk-ScrollNarrow: #53617F; --dk-ScrollWide: #7EA6F8; --dk-ScrollTrack: #2E3440;
  --dk-Footer: #364153; --dk-Surface: #435068; --dk-GraphicsHeader: #364153; --dk-MaterialHeader: #364153;
  --dk-Stripe: #71A5F4; --dk-Chevron: #B0C9FD;
  --dk-HIconOn: #C2CEE4; --dk-HIconHover: #DCE6FA; --dk-HIcon: #9AAFD8;
  --dk-NIconOn: #C2CEE4; --dk-NIconHover: #DCE6FA; --dk-NIcon: #A9B9D8;
  --dk-Expand: #5F7FC2; --dk-SearchIcon: #7EA6F8; --dk-ClearIcon: #A77070;
  --dk-PanelHeader: #364153; --dk-PanelField: #445476; --dk-PanelText: #B0C7F5; --dk-PanelTitle: #C2D5FF;
  --dk-RowIcon: #9FB3D6; --dk-PanelAccent: #7EA6F8; --dk-PanelLine: #1A1F25; --dk-Contour: #1A1F25;
  --dk-RowSel: #3E4A5D; --dk-RowHover: #46536A; --dk-IconBtnHover: #232B37; --dk-GroupHeader: #35425D; --dk-GroupHeaderHover: #3E4D6B; --dk-GroupText: #C9D4EC;
  --dk-Ok: #8EC9B4; --dk-Bad: #E38282; --dk-Warn: #E0B36A; --dk-Paper: #FFFFFF; --dk-SrcFill: .32;
  /* owner 2026-10-27: marks and tags of one perceived contrast (same lightness, calm chroma) */
  --dk-TagPro: #D4AAB7; --dk-TagNew: #A3D3C6; --dk-TagBeta: #D4C095; --dk-MkAll: #CEB3FF; --dk-MkProject: #9FCBB8; --dk-MkDisk: #E1BB69; --dk-MkWeb: #8CC5FF;
  --dk-Hover: rgba(201, 221, 255, .10);
  /* round 19: names brighter than icons; restrained kind tints (category, element, filter, type, phase) */
  --dk-Del: var(--hd-tn-red); --dk-DelBg: color-mix(in srgb, var(--hd-tn-red) 16%, transparent); --dk-Add: #8EC9B4; --dk-Inf: var(--hd-tn-blue);
  --dk-Clr: var(--hd-tn-orange); --dk-Pick: var(--hd-tn-teal); --dk-Move: var(--hd-tn-violet); --dk-Fav: var(--hd-tn-rose); --dk-Neutral: var(--hd-tn-gray);
  --dk-NameText: #C2CEE4; --dk-HoverText: #E4EAF4; --dk-KCat: var(--hd-tn-blue); --dk-KElm: var(--hd-tn-green); --dk-KFlt: var(--hd-tn-amber); --dk-KTyp: var(--hd-tn-violet); --dk-KPha: var(--hd-tn-rose);
  --dk-nav-h: 41px; /* owner 2026-10-16 (A4) step 40; Pavel 2026-10-28: odd control sizes -> 41 */ --dk-rail-top: 35px;
  display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: 35px 35px 35px minmax(0, 1fr) auto auto auto;
  position: relative; overflow: hidden; box-sizing: border-box; background: var(--dk-Body); color: var(--dk-PanelText);
  font-size: 11px; user-select: none;
}
.hd-dock[data-theme="light"] {
  --dk-Body: #F7F8FA; --dk-NavRail: #ECEEF2; --dk-NavSel: #F7F8FA; --dk-NavHover: #D6E3F4;
  --dk-HeaderRail: #ECEEF2; --dk-HeaderCover: #E1E4EA; --dk-HeaderDivider: #8593B7;
  --dk-HeaderSel: #F7F8FA; --dk-HeaderHover: #D6E3F4; --dk-HeaderContour: #8593B7;
  --dk-SearchField: #FFFFFF; --dk-SearchFieldHover: #EEF2F8; --dk-SearchBorder: #8593B7; --dk-SearchBorderHover: #436199;
  --dk-SearchText: #2E333E; --dk-FilterField: #FFFFFF; --dk-FilterHover: #EDF2FB; --dk-FilterGlyph: #8697BA; --dk-FilterGlyphLine: #AAB1C3;
  --dk-ScrollNarrow: #AAB1C3; --dk-ScrollWide: #7382A8; --dk-ScrollTrack: #ECEEF2;
  --dk-Footer: #E7E9ED; --dk-Surface: #F7F8FA; --dk-GraphicsHeader: #D5D9DD; --dk-MaterialHeader: #D9DDE2;
  --dk-Stripe: #436199; --dk-Chevron: #2E3440;
  --dk-HIconOn: #1F4388; --dk-HIconHover: #436199; --dk-HIcon: #5A6E9A;
  --dk-NIconOn: #1C3563; --dk-NIconHover: #1F4388; --dk-NIcon: #3E5B9A;
  --dk-Expand: #8697BA; --dk-SearchIcon: #436199; --dk-ClearIcon: #A77070;
  --dk-PanelHeader: #D9DDE2; --dk-PanelField: #EFF2F8; --dk-PanelText: #2E333E; --dk-PanelTitle: #2E333E;
  --dk-RowIcon: #4E6488; --dk-PanelAccent: #436199; --dk-PanelLine: #9AA8C3; --dk-Contour: #8593B7;
  --dk-RowSel: #DCE9F7; --dk-RowHover: #E9EEF6; --dk-IconBtnHover: #E1E8F4; --dk-GroupHeader: #C3D2EE; --dk-GroupHeaderHover: #B8C9EA; --dk-GroupText: #1C3563;
  --dk-Ok: #2F7565; --dk-Bad: #B23B3B; --dk-Warn: #9A6A12; --dk-Paper: #FFFFFF; --dk-SrcFill: .12;
  --dk-TagPro: #8C5366; --dk-TagNew: #3B7064; --dk-TagBeta: #7A6030; --dk-MkAll: #71569C; --dk-MkProject: #3D7440; --dk-MkDisk: #815E00; --dk-MkWeb: #2F64A6;
  --dk-Hover: rgba(46, 81, 131, .10);
  --dk-Del: var(--hd-tn-red); --dk-DelBg: color-mix(in srgb, var(--hd-tn-red) 12%, transparent); --dk-Add: #2F7565; --dk-Inf: var(--hd-tn-blue);
  --dk-Clr: var(--hd-tn-orange); --dk-Pick: var(--hd-tn-teal); --dk-Move: var(--hd-tn-violet); --dk-Fav: var(--hd-tn-rose); --dk-Neutral: var(--hd-tn-gray);
  --dk-NameText: #2A3343; --dk-HoverText: #0F1623; --dk-KCat: var(--hd-tn-blue); --dk-KElm: var(--hd-tn-green); --dk-KFlt: var(--hd-tn-amber); --dk-KTyp: var(--hd-tn-violet); --dk-KPha: var(--hd-tn-rose);
}
/* type scale: 11 interface, 12 text that is read (chat, card names), 13 titles; nothing smaller than 11 */
.hd-dock .hd-pread, .hd-dock .hd-pfoot-size, .hd-dock .hd-gpanel-more, .hd-dock .hd-clw-cells.cap { font-size: 11px; }
/* ---------- motion: one scale for the whole dock (improvement stage, 2026-10-13) ----------
   hover in 80 ms, hover out 120 ms (no trails); expand / reveal 160 ms ease-out (the accepted MOTION.md value);
   switching a tool or a tab is instant. The design-system controls inside the dock follow the same scale through
   their own motion tokens. Progress indicators (spinner, agent dots, Hexa loader) and the accepted 300 ms sliding
   choice keep their own timing. */
.hd-dock {
  --dk-in: 80ms; --dk-out: 120ms; --dk-reveal: 160ms; --dk-ease: cubic-bezier(.33, 1, .68, 1);
  /* the rail that opens under the pointer: 240 ms with a slow start (it must not jump out), closing by the common 160 ms */
  --dk-rail-in: 240ms; --dk-rail-ease: cubic-bezier(.5, 0, .2, 1);
  --m-Motion-ButtonHoverIn: 80ms; --m-Motion-ButtonHoverOut: 120ms; --m-Motion-ComboHoverIn: 80ms; --m-Motion-ComboHoverOut: 120ms;
  --m-Motion-HoverIn: 80ms; --m-Motion-HoverOut: 120ms; --m-Motion-ItemHoverIn: 80ms; --m-Motion-ItemHoverOut: 120ms;
  --m-Motion-TitleBarHover: 80ms; --m-Motion-Popup: 160ms; --m-Motion-Reveal: 160ms; --m-Motion-State: 120ms;
}
@media (prefers-reduced-motion: reduce) {
  .hd-dock { --dk-in: 0ms; --dk-out: 0ms; --dk-reveal: 0ms; --dk-rail-in: 0ms; }
}
.hd-dock *, .hd-dock *::before, .hd-dock *::after { box-sizing: border-box; }
/* hdui.css resets every button to the inherited text colour with (0,1,1); the colour rules of dock buttons are
   therefore written as button.dk-* so that the idle icon colour is not lost */
:where(.hd-dock) button { font: inherit; }
.dk-ico { display: block; flex: none; overflow: visible; pointer-events: none; }

/* ---------- head row (34, whole: the settings cell in the corner, then the tabs; above the search as in WPF): the tabs of the tool (or its name when it has none), the name of the current tab, state slot, «Ещё» ---------- */
/* owner, 2026-10-15: the global row is whole, edge to edge; the settings cell moved under the search row */
.dk-title { grid-row: 1; grid-column: 1 / 3; position: relative; z-index: 1; height: 34px; display: flex; align-items: center; min-width: 0; overflow: hidden; background: var(--dk-HeaderCover); }
.dk-title-rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--dk-HeaderDivider); pointer-events: none; }
.dk-htabs { position: relative; flex: 0 1 auto; min-width: 0; height: 34px; --th: 34px; }
.dk-htabs:empty { display: none; }
.dk-title-n { position: relative; flex: none; padding-left: 8px; font-size: 13px; line-height: 16px; color: var(--dk-PanelTitle); white-space: nowrap; }
.dk-title-n:empty { display: none; }
/* the name is not said twice (owner, 2026-10-13): when the caption of the host pane names the tool, the head row does not */
.dk-hostcap .dk-title.named .dk-title-n, .dk-hostcap .dk-title.named .dk-title-s { display: none; }
/* the commands of a tool in the head row (Material Eater): 26 px cells, 8 px between the groups */
.dk-hacts { display: flex; align-items: center; height: 34px; }
/* owner, round 13: the commands of the head row are buttons of the design system spread evenly over the row */
.dk-title.hacts > .dk-title-x { flex: 1 1 0; justify-content: stretch; }
.dk-title.hacts > .dk-title-sw { flex: 0 0 0; min-width: 0; overflow: hidden; }
/* equal shares: the script gives every button the same odd width and the left padding; 4 px between buttons */
.dk-hacts.even { flex: 1 1 0; min-width: 0; gap: 4px; }
.dk-hacts.even > .hd-btn { flex: none; min-width: 0; }
.dk-hacts.even.flat { justify-content: space-between; padding: 0 4px; gap: 0; }
/* HD Materials (owner, round 14): two groups of small buttons, the scene on the left, the materials on the right */
.dk-hacts.grp { flex: 1 1 0; min-width: 0; justify-content: flex-start; gap: 16px; padding: 0 8px; }
.dk-hacts.grp > .g { flex: none; display: flex; gap: 4px; }
.dk-hacts.grp > .g.end { margin-left: auto; }
.dk-hacts.grp > .g > .hd-btn { flex: none; position: relative; }
/* owner, 2026-10-14: «бледные»: the icon is drawn in the button's own text colour, as every other head button */
.hd-dock .dk-hacts.grp .hd-btn .dk-ico-mat { --dki-4A5771: transparent; --dki-333B49: transparent; --dki-7EA6F8: currentColor; }
/* owner, 2026-10-15 («открытие резкое»): the name of the button fades in under it after the pointer rests 400 ms and fades out in
   120 ms; it lies above the list and moves nothing in the row. The right-corner button opens its name to the left */
.dk-title:has(> .dk-title-x > .dk-hacts.grp), .dk-title-x:has(> .dk-hacts.grp) { overflow: visible; }
.dk-title:has(> .dk-title-x > .dk-hacts.grp) { z-index: 20; }
.dk-hacts.grp .dk-hx { position: absolute; left: 0; top: calc(100% + 4px); z-index: 30; height: 22px; padding: 0 8px; box-sizing: border-box; display: flex; align-items: center;
  white-space: nowrap; font: 11px Tahoma, sans-serif; line-height: 14px; color: var(--dk-PopText); background: var(--dk-PopBg); border: 1px solid var(--dk-PopBorder); border-radius: 3px;
  box-shadow: 0 3px 10px rgba(0,0,0,.3); pointer-events: none; opacity: 0; transform: translateY(-3px);
  transition: opacity 120ms ease-out, transform 120ms ease-out; }
.dk-hacts.grp > .g.end .dk-hx { left: auto; right: 0; }
.dk-hacts.grp .hd-btn:hover .dk-hx { opacity: 1; transform: none; transition: opacity 160ms cubic-bezier(.215, .61, .355, 1) 400ms, transform 160ms cubic-bezier(.215, .61, .355, 1) 400ms; }
@media (prefers-reduced-motion: reduce) { .dk-hacts.grp .dk-hx { transition: none !important; transform: none; } }
/* the flat cells (narrow panel) colour the accent of the icon by the tone the script sets */
.hd-dock .dk-hacts .dk-ib[style*="--tn-c"] .dk-ico-mat { --dki-7EA6F8: var(--tn-c); }
.hd-dock .dk-hacts.dk-hacts .dk-ib.danger .dk-ico-mat, .hd-dock .dk-hacts.dk-hacts .dk-ib.danger:hover .dk-ico-mat { --dki-7EA6F8: var(--dk-Del); }
.hd-dock .dk-hacts.dk-hacts .dk-ib.tn-ok .dk-ico-mat, .hd-dock .dk-hacts.dk-hacts .dk-ib.tn-ok:hover .dk-ico-mat { --dki-7EA6F8: var(--dk-Add); }
.hd-dock .dk-hacts.dk-hacts .dk-ib.tn-inf .dk-ico-mat, .hd-dock .dk-hacts.dk-hacts .dk-ib.tn-inf:hover .dk-ico-mat { --dki-7EA6F8: var(--dk-Inf); }
/* Section Box: saved states of the box (combo + save + delete) and, 8 px apart, the visibility of the box frame */
.dk-hacts.agc { flex: 1 1 0; min-width: 0; gap: 4px; padding: 0 4px 0 0; }
.dk-hacts.agc > .hd-combo { flex: 1 1 0; min-width: 0; }
.dk-hacts.agc > .hd-btn, .dk-hacts.agc > .dk-ag-status { flex: none; }
.dk-title:has(.dk-hacts.agc), .dk-title-x:has(> .dk-hacts.agc) { overflow: visible; }
.dk-hacts.sbx { flex: 1 1 0; min-width: 0; gap: 4px; padding: 0 4px; }
.dk-hacts.sbx > .hd-combo { flex: 1 1 0; min-width: 0; }
.dk-hacts.sbx > .hd-btn { flex: none; }
/* owner 2026-10-27: save, delete and eye stand 4 px apart, one even row; each glyph gets the soft fill of the house icons */
.dk-hacts.sbx .dk-soft { fill: currentColor; fill-opacity: .24; stroke: none; }
.dk-title:has(.dk-hacts.sbx), .dk-title-x:has(> .dk-hacts.sbx) { overflow: visible; }
.hd-dock .dk-hacts.even .hd-btn .dk-ico-mat { --dki-4A5771: transparent; --dki-333B49: transparent; --dki-7EA6F8: var(--dk-HIcon); }
.hd-dock .dk-hacts.even .hd-btn:hover .dk-ico-mat { --dki-7EA6F8: var(--dk-HIconHover); }
/* groups of commands: a thin dark line of one pixel (owner, round 3) */
.dk-hacts > i { flex: none; width: 9px; height: 16px; background: linear-gradient(var(--dk-Contour), var(--dk-Contour)) center / 1px 100% no-repeat; }
.dk-title-sw { position: relative; flex: 1 1 0; min-width: 8px; height: 34px; display: flex; align-items: center; overflow: hidden; container-type: inline-size; }
.dk-title-s { padding-left: 8px; font-size: 11px; line-height: 14px; color: var(--dk-Muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-title.named .dk-title-s { padding-left: 0; }
.dk-title.named .dk-title-s::before { content: '›'; margin: 0 6px; }
.dk-title-s:empty { display: none; }
/* owner, 2026-10-13: nothing is written in the row of icon tabs; the name of the tab lives in the caption of the host pane.
   The tabs stand at the right end of the row (the last one, then «Ещё»); the spacer before them never gets under 8 px */
.dk-title:not(.named) .dk-title-s { display: none; }
.dk-title:not(.named) .dk-title-sw { min-width: 0; }
@container (max-width: 55px) { .dk-title-s { display: none; } }
.dk-title-x { position: relative; flex: 0 1 auto; min-width: 0; height: 34px; display: flex; align-items: center; justify-content: flex-end; overflow: hidden; }
/* «Ещё» is a quiet secondary cell (owner, 2026-10-15: it looked more important than the main buttons): 28 wide, no plate,
   the muted icon colour; only the tab-row rule runs under it. Hover still lights it like a tab. */
button.dk-more { position: relative; flex: none; width: 28px; height: 34px; padding: 0; border: 0; background: none; box-shadow: inset 0 -1px 0 var(--dk-HeaderDivider); cursor: pointer; color: var(--dk-Muted); opacity: .8; transition: color var(--dk-out), opacity var(--dk-out); }
.dk-more:hover { opacity: 1; }
.dk-more > .dk-ico { position: absolute; left: 6px; top: 9px; }
.dk-more::before { content: ''; position: absolute; left: 1px; top: 0; right: 0; bottom: 1px; background: var(--dk-NavHover); opacity: 0; transition: opacity var(--dk-out); }
.dk-more:hover::before { opacity: 1; transition-duration: var(--dk-in); }
.dk-more:hover { color: var(--dk-NIconHover); transition-duration: var(--dk-in); }
.dk-more[disabled] { opacity: .45; cursor: default; }
/* a tool without rare commands has no «Ещё» cell: its tabs take the width (owner, 2026-10-14: HD Viewer) */
.dk-title.nomore > .dk-more { display: none; }
.dk-more[disabled]::before { display: none; }
/* a tab strip (head row, or the command row of a mode): the WPF look, a plate that moves under the icons and joins the row below */
.dk-tabs-scroll { height: var(--th, 26px); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; position: relative; }
.dk-tabs-scroll::-webkit-scrollbar { display: none; }
.dk-tabs-in { position: relative; display: flex; height: var(--th, 26px); width: max-content; padding-right: 1px; }
.dk-tab-sel { position: absolute; left: 0; top: 0; width: 27px; height: var(--th, 26px); background: var(--dk-HeaderSel); border-left: 1px solid var(--dk-Contour); border-right: 1px solid var(--dk-Contour); pointer-events: none; }
.dk-tab-sel.off { visibility: hidden; }
button.dk-tab { position: relative; flex: none; width: var(--tw, 26px); height: var(--th, 26px); padding: 0; border: 0; background: none; cursor: pointer; color: var(--dk-HIcon); transition: color var(--dk-out); }
.dk-tab::before { content: ''; position: absolute; left: 1px; top: 0; right: 0; bottom: 1px; background: var(--dk-HeaderHover); opacity: 0; transition: opacity var(--dk-out); }
.dk-tab:hover::before { opacity: 1; transition-duration: var(--dk-in); }
.dk-tab:hover { color: var(--dk-HIconHover); transition-duration: var(--dk-in); }
.dk-tab.sel { color: var(--dk-HIconOn); }
.dk-tab.sel::before { opacity: 0; }
.dk-tab > .dk-ico { position: absolute; left: 1px; top: 0; }
/* a mode of a set shown by a 17 px draft glyph alone: centred in the 25 px field of the 26 x 26 tab */
.dk-tab.gl > .dk-ico { left: 5px; top: 4px; }
/* a 19 px icon of the icon library: 4 + 19 + 4 = the 27 px plate */
.dk-tab.lb > .dk-ico { left: 4px; top: 3px; }
/* a tab with a caption: the modes of a tool set («Семейства»: Диск / Проект / Hexa) */
/* a tab that stands apart from its neighbours (the favourites of HD Browser): 8 px before it */
button.dk-tab.gap { margin-left: 8px; }
button.dk-tab.tx { width: auto; padding: 0 9px 1px 10px; font-size: 11px; line-height: 14px; white-space: nowrap; color: var(--dk-PanelText); }
.dk-tab.tx > span { position: relative; }
.dk-tab.tx:hover, .dk-tab.tx.sel { color: var(--dk-HIconOn); }
/* a mode tab with its glyph: a 17 px drawing on rows 4..21 (as in the icon tabs), the caption 6 px after it */
button.dk-tab.tx.ic { display: inline-flex; align-items: flex-start; padding: 0 9px 0 7px; }
.dk-tab.tx.ic > .dk-ico { position: relative; left: 0; top: 4px; flex: none; margin-right: 6px; }
.dk-tab.tx.ic > span { margin-top: 5px; }
/* a sliding choice that takes the whole row (U.dockSlide) */
.dk-slide { display: flex; min-width: 0; min-height: 27px; }
.dk-slide.nar .hd-btn { font-size: 11px; }
/* Pavel 06.11: the view switch of a list head keeps its 234 px, the groups button fills the rest; the pixel snapping must not freeze them */
.dk-slide.dk-vsw { flex: 0 0 234px !important; }
.dk-slide.dk-vsf { flex: 1 1 0 !important; min-width: 0; }
.hd-btn.dk-grpb { flex: 1 1 0 !important; min-width: 0; width: auto !important; }

/* ---------- command row under the search: the tool's own actions (37: compact 27 buttons, 8 px above the body) or the tabs of a mode (26) ---------- */
.dk-tb { grid-row: 3; grid-column: 2; height: 26px; position: relative; z-index: 1; overflow: hidden; background: var(--dk-HeaderRail); }
.dk-tb.acts { height: 37px; }
/* a command row that holds the medium view switch (31, owner round 13: taller): 2 above, 8 below */
.dk-tb.fv { height: 42px; }
/* a named choice under the search row (HD Viewer, «Раздел»): the 25 px combo ends on the edge of the search field */
.dk-tb.sec { height: 33px; }
.dk-tb.sec .dk-mhead { align-items: flex-start; padding: 0 6px 8px 8px; }
/* owner 2026-10-16 (V35): the view switch row breathes evenly: 8 px from the search field above (5 + 3), from the settings
   cell on the left, from the right edge and from the list below */
.dk-tb.fv .dk-mhead { gap: 8px; padding: 3px 8px 8px 8px; }
.dk-tb.sub { background: var(--dk-HeaderCover); }
/* a tool without a command row keeps an empty 34 px bar beside the settings cell (owner, 2026-10-15) */
.dk-tb.none { height: 34px; }
.dk-tb.none > .dk-tbset { display: none; }
.dk-tbset { position: absolute; inset: 0; }
.dk-tabs { position: absolute; inset: 0; }
.dk-tabs-rule { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--dk-HeaderDivider); }
/* the tabs of a mode join the body: the plate has the body colour, the row's own rule replaces the body's top line */
.dk-tb.sub .dk-tab-sel { background: var(--dk-Body); }
.dk-tb.sub ~ .dk-rule-top { display: none; }
/* the tool's own row */
.dk-mhead { position: absolute; inset: 0; display: flex; align-items: center; background: var(--dk-HeaderRail); }
.dk-mhead.pad { padding: 0 4px; }
/* owner 2026-10-16 (M20): Materials, the row beside the settings cell holds Копировать, delete, refresh: 8 px off the edge, 4 px apart */
.dk-tb.mcmd { height: 34px; }
/* owner 2026-10-16 (M22): «Все / Выделено» a little closer to the settings cell and shorter; copy, delete, refresh to its right */
.dk-mcmd { align-self: stretch; flex: 1 1 0; min-width: 0; display: flex; align-items: flex-start; gap: 4px; padding: 3px 8px 0 4px; }
.dk-mcmd > .hd-btn { flex: none; }
.dk-mcmd > .hd-slide.grow + .hd-btn { margin-left: 4px; }
.dk-mcmd > .hd-slide.grow { flex: 1 1 0; min-width: 0; }
/* owner 2026-10-16 (M21): Materials head row: seven compact buttons spread evenly, 8 px off the edges, at least 4 px apart;
   a button with a name keeps 6 px inside on each side (as the compact cells of a segment), so more names fit */
.dk-hacts.mat { display: flex; align-items: center; justify-content: flex-start; gap: 0; padding: 0 8px; box-sizing: border-box; width: 100%; overflow: hidden; }
.dk-hacts.mat.fit { gap: 4px; }
.dk-hacts.mat > .hd-btn { flex: none; }
/* owner 2026-10-16 (M22): the scene icons keep their colour of meaning, as before (pick teal, paint green, clear orange, split blue) */
.hd-dock .dk-hacts.mat .hd-btn .dk-ico-mat { --dki-4A5771: transparent; --dki-333B49: transparent; --dki-7EA6F8: currentColor; }
/* owner 2026-10-16 (M23): a compact face (4 px from the frame to the icon and from the text to the frame) so the four names fit */
.hd-dock .dk-hacts.mat > .hd-btn.s-compact:not(.io) .hd-face { padding-left: 3px; padding-right: 6px; } /* owner 2026-10-27: the caption needs more air on the right than the icon on the left (the icon carries its own inner margin) */
.dk-mhead > .grow { flex: 1 1 0; min-width: 0; }
.dk-tb.acts .dk-mhead { align-items: flex-start; gap: 4px; padding: 2px 4px 8px 4px; }
/* a control found through the panel search is outlined for a moment; a control that waits for its command is dimmed */
.hd-dock .dk-hit { outline: 2px solid var(--dk-Accent); outline-offset: 1px; }
.hd-dock .dk-wait { pointer-events: none; opacity: .6; }

/* flat dock icon button (module headers, rows): square cell, native-size artwork on whole pixels */
button.dk-ib { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; background: none; cursor: pointer; color: var(--dk-HIcon); }
.dk-ib::before { content: ''; position: absolute; inset: 0; background: var(--dk-HeaderHover); opacity: 0; transition: opacity var(--dk-out); }
.dk-ib:hover::before { opacity: 1; transition-duration: var(--dk-in); }
.dk-ib:hover { color: var(--dk-HIconHover); }
.dk-ib.on { color: var(--dk-HIconOn); }
.dk-ib.on::before { opacity: 1; background: var(--dk-HeaderSel); }
.dk-ib > * { position: relative; }
.dk-ib.framed { border: 1px solid var(--dk-Contour); background: var(--dk-PanelField); }
.dk-ib.row::before { background: var(--dk-IconBtnHover); border-radius: 2px; }
.dk-ib[disabled] { opacity: .45; cursor: default; }
/* round 19 (owner): a cross that closes, clears or deletes is red on a soft face, not white on a dark plate */
button.dk-ib.dk-x, button.dk-ib.dk-x:hover { color: var(--dk-Del); } .dk-ib.dk-x::before, .dk-ib.dk-x.row::before { background: var(--dk-DelBg); }
.dk-ib[disabled]::before { display: none; }

/* ---------- search row (36), whole width (owner, 2026-10-13): the list filter 25 x 25 stands in the rail column, where the
   rail toggle was; the field starts on the pixel of the rail line and runs to the right edge ---------- */
.dk-search { grid-row: 2; grid-column: 1 / 3; height: 36px; display: grid; grid-template-columns: 33px minmax(0, 1fr); background: var(--dk-HeaderRail); }
.dk-search.x3 { grid-template-columns: 33px minmax(0, 1fr) 31px; }
.dk-search.bar { display: flex; align-items: center; gap: 8px; padding: 0 8px; }
/* round 19: a lead tile beside the funnel (the same tile, the same gap to the next one as the funnel to the field) */
/* owner 2026-10-16 (H16): the pick column holds its 4 px gap and the 25 tile, so the tile never runs into the field (4 px apart) */
/* owner 2026-10-16 (H21): one grid for the search row, 4 px everywhere: edge | filter 25 | 4 | pick 25 | 4 | field | 4 | heart 25 | 4 | edge */
.dk-search.ld { grid-template-columns: 33px 29px minmax(0, 1fr); } .dk-search.ld.x3 { grid-template-columns: 33px 29px minmax(0, 1fr) 31px; }
button.dk-filter.dk-lead { width: 29px; justify-self: start; margin: 0; } .dk-lead > .dk-filter-tile { left: 0; } .dk-lead > .dk-filter-tile > svg { left: 0; top: 0; }   /* the 23 px pick fills the inside of the tile */
button.dk-filter { width: 33px; height: 36px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.dk-filter-tile { position: absolute; left: 4px; top: 6px; width: 25px; height: 25px; border: 1px solid var(--dk-SearchBorder); background: var(--dk-FilterField); transition: background-color var(--dk-out); }
.dk-filter:hover .dk-filter-tile { background: var(--dk-FilterHover); transition-duration: var(--dk-in); }
.dk-filter-tile > svg { position: absolute; left: -1px; top: -1px; display: block; }
.dk-filter.on .dk-filter-tile { border-color: var(--dk-PanelAccent); }
.dk-filter.on { --dk-FilterGlyph: var(--dk-PanelAccent); }
/* the filter of a tool, opened under the search row by the funnel: a framed block of design-system rows, the
   counter and «Сбросить» in its last row; the filters in force stay visible as buttons with a cross when it is closed */
.dk-fpanel { display: flex; flex-direction: column; gap: 8px; padding: 8px; border-bottom: 1px solid var(--dk-Contour); background: var(--dk-Footer); }
.dk-fpanel-foot { display: flex; align-items: center; gap: 8px; }
/* once the block stands open, its combo lists may drop over the list below (the reveal clips only while it moves) */
.hd-reveal.dk-free { position: relative; z-index: 3; }
.hd-reveal.dk-free > .hd-reveal-in { overflow: visible; }
.dk-fpanel-foot > .n { flex: 1 1 0; min-width: 0; font-size: 11px; line-height: 14px; color: var(--dk-Muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px 8px; border-bottom: 1px solid var(--dk-Contour); background: var(--dk-Footer); }
.dk-filter[disabled] { opacity: .45; cursor: default; }
.dk-filter[disabled]:hover .dk-filter-tile { background: var(--dk-FilterField); }
/* owner 2026-10-16 (H16): the field is as high as the 25 tiles beside it (funnel, pick) and shares their top edge */
.dk-sfield { position: relative; margin: 6px 6px 5px 0; height: 25px; border: 1px solid var(--dk-SearchBorder); background: var(--dk-SearchField); transition: background-color var(--dk-out), border-color var(--dk-out); }
.dk-search.x3 .dk-sfield { margin-right: 0; }
/* owner, 2026-10-15: «избранное плохо видно»: a trailing tile the size of the funnel tile (25, 17 px heart), 4 px from the
   field and 6 px from the edge; when on, the heart and the frame take the favourite colour of the tone rainbow */
.dk-search.tr { grid-template-columns: 33px minmax(0, 1fr) 33px; } .dk-search.ld.tr { grid-template-columns: 33px 29px minmax(0, 1fr) 33px; }
.dk-search.tr .dk-sfield { margin-right: 0; }
.dk-sextra.fav { justify-content: flex-start; padding-left: 5px; } /* Pavel 2026-10-28: even 2 px gap after the search field */
.dk-sextra.fav > button.dk-favt { border-color: var(--dk-SearchBorder); background: var(--dk-FilterField); color: var(--dk-SearchIcon); transition: background-color var(--dk-out), border-color var(--dk-out); }
.dk-sextra.fav > button.dk-favt::before { display: none; }
.dk-sextra.fav > button.dk-favt:hover { background: var(--dk-FilterHover); border-color: var(--dk-SearchBorderHover); transition-duration: var(--dk-in); }
.dk-sextra.fav > button.dk-favt.on { border-color: var(--dk-Fav); color: var(--dk-Fav); background: color-mix(in srgb, var(--dk-Fav) 14%, var(--dk-FilterField)); }
/* owner 2026-10-16 (H15, H17): only the heart, no frame: a filled 21 px heart on whole pixels in the 25 cell, on the top edge of the
   field, in the selection colour of the panel: half transparent when off, solid when on */
.dk-sextra.fav { align-items: flex-start; padding-top: 6px; }
.dk-sextra.fav > button.dk-favt.big, .dk-sextra.fav > button.dk-favt.big:hover, .dk-sextra.fav > button.dk-favt.big.on { border-color: transparent; background: transparent; }
.dk-sextra.fav > button.dk-favt.big { color: var(--dk-PanelAccent); }
/* owner 2026-10-16 (H20): the outline stays bright, only the fill is half transparent when off */
.hd-dock svg.dk-heart .dk-hfill { fill-opacity: .5; transition: fill-opacity var(--dk-out); }
.hd-dock button:hover > svg.dk-heart .dk-hfill { fill-opacity: .75; transition-duration: var(--dk-in); }
.hd-dock button.on > svg.dk-heart .dk-hfill, .hd-dock button.fav > svg.dk-heart .dk-hfill { fill-opacity: 1; }
.dk-sfield:hover, .dk-sfield:focus-within { background: var(--dk-SearchFieldHover); border-color: var(--dk-SearchBorderHover); transition-duration: var(--dk-in); }
.dk-sfield > input { position: absolute; left: 3px; top: 0; height: 23px; width: calc(100% - 24px); padding: 0; border: 0; outline: 0; background: none; font: 11px Tahoma, sans-serif; color: var(--dk-SearchText); user-select: text; }
.dk-sfield > input::placeholder { color: var(--dk-Muted); opacity: 1; }
.dk-sfield > .dk-ico { position: absolute; right: 4px; top: 5px; color: var(--dk-SearchIcon); }
button.dk-sclear { position: absolute; right: -2px; top: -3px; width: 25px; height: 30px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--dk-ClearIcon); display: none; }
.dk-sclear > .dk-ico { position: absolute; left: 6px; top: 8px; }
.dk-sfield.has > .dk-ico { display: none; }
.dk-sfield.has > .dk-sclear { display: block; }
.dk-sextra { display: flex; align-items: center; justify-content: center; }
/* results of the panel search: the design-system menu look, attached under the field */
.dk-find { display: none; position: absolute; left: 33px; right: 6px; top: 64px; z-index: 30; padding: 4px; background: var(--dk-PopBg); border: 1px solid var(--dk-PopBorder); box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.dk-find.open { display: block; }
button.dk-find-row { display: flex; align-items: center; gap: 8px; width: 100%; height: 24px; padding: 0 8px; border: 0; background: none; color: var(--dk-PopText); line-height: 14px; text-align: left; cursor: pointer; }
.dk-find-row.act { background: var(--dk-PopHover); }
.dk-find-t { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-find-w { flex: 1 0 auto; text-align: right; white-space: nowrap; color: var(--dk-Muted); }
.dk-find-none { height: 24px; padding: 0 8px; line-height: 24px; color: var(--dk-Muted); }

/* ---------- navigation rail (34, beside the command row and the body, under the search row). It opens by itself under
   the pointer, over the command row and the body, as wide as its longest caption; groups, the WPF selection plate
   that moves and joins the body, error counter ---------- */
/* owner, 2026-10-15: the module buttons start under the settings cell and stand a little apart (36 instead of 33);
   the first one stays at one place for every tool (the tallest command row, 41), whatever the height of the row beside the settings */
.dk-rail { grid-row: 3 / 5; grid-column: 1; justify-self: start; width: 34px; position: relative; z-index: 6; background: var(--dk-NavRail); }
.dk-rail.open .dk-rail-scroll { width: var(--dk-rail-open, 190px); box-shadow: 4px 0 12px rgba(0, 0, 0, .25); clip-path: inset(0 -16px 0 0); transition: width var(--dk-rail-in) var(--dk-rail-ease); }
.dk-rail.open .dk-nav-t { opacity: 1; transition: opacity var(--dk-reveal) 80ms; }
.dk-rail-scroll { position: absolute; left: 0; width: 34px; top: var(--dk-rail-top); bottom: 0; padding-bottom: 1px; display: flex; flex-direction: column; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; box-sizing: border-box; border-right: 1px solid var(--dk-Contour); background: var(--dk-NavRail); transition: width var(--dk-reveal) var(--dk-ease); }
.dk-rail-scroll::-webkit-scrollbar { display: none; }
/* the settings cell has a tone of its own (owner 2026-10-13: "slightly accented, apart from the rail"): the rail colour with a
   share of the panel accent, closed by the contour line below */
button.dk-gear { grid-row: 3; grid-column: 1; align-self: stretch; position: relative; z-index: 7; width: 34px; min-height: 34px; padding: 0; border: 0; background: var(--dk-GearBg); box-shadow: inset 0 -1px 0 var(--dk-Contour); /* owner 2026-10-16 (H19): no vertical line beside the settings button */ cursor: pointer; color: var(--dk-NIcon); text-align: left; transition: color var(--dk-out); }
.dk-gear > .dk-ico { position: absolute; left: 7px; top: var(--dk-gear-top, 7px); }
.dk-gear::before { content: ''; position: absolute; left: 0; top: 0; right: 0; bottom: 1px; background: var(--dk-NavHover); opacity: 0; transition: opacity var(--dk-out); }
.dk-gear:hover::before { opacity: 1; transition-duration: var(--dk-in); }
.dk-gear:hover { color: var(--dk-NIconHover); transition-duration: var(--dk-in); }
.dk-gear.sel { color: var(--dk-NIconOn); }
.dk-gear.sel::before { right: 0; bottom: 0; opacity: 1; background: var(--dk-NavSel); border-bottom: 1px solid var(--dk-Contour); }
.dk-gear[disabled] { opacity: .45; cursor: default; }
.dk-gear[disabled]::before { display: none; }
/* the settings of the panel itself: one framed section with its title, after the settings of the tool (16 = a new logical section) */
.dk-pset { margin: 16px 8px 8px 8px; border: 1px solid var(--dk-Contour); background: var(--dk-Body); color: var(--dk-PanelText); font-size: 11px; line-height: 14px; }
.dk-pset:first-child { margin-top: 8px; }
.dk-pset-h { height: 31px; padding: 0 8px; display: flex; align-items: center; font-size: 12px; font-weight: bold; color: var(--dk-PanelTitle); }
.dk-pset-h > .dk-pset-i { flex: none; margin-right: 8px; }
.dk-pset-b { padding: 0 8px 8px 8px; }
.dk-pset-b > .dk-pset-d { margin-bottom: 8px; }
.dk-rail-hr { position: absolute; left: 0; right: 0; top: var(--dk-rail-top); /* owner 2026-10-27: on the body rule row */ height: 1px; background: var(--dk-Contour); pointer-events: none; }
/* the selected tool: a plate in the body colour between two contour lines, open towards the body */
.dk-rail-sel { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--dk-nav-h) + 1px); background: var(--dk-NavSel); border-top: 1px solid var(--dk-Contour); border-bottom: 1px solid var(--dk-Contour); pointer-events: none; }
/* groups have no headings: the first tool of a group carries a 1 px contour line in its top pixel (the pixel where
   the plate has its own top line, so the 33 px grid is not broken); the last group stands at the bottom */
.dk-nav.gs::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--dk-Contour); pointer-events: none; }
button.dk-nav.gl { margin-top: auto; }
button.dk-nav { flex: none; display: block; position: relative; width: 100%; height: var(--dk-nav-h); padding: 0; border: 0; background: none; cursor: pointer; color: var(--dk-NIcon); text-align: left; transition: color var(--dk-out); }
.dk-nav::before { content: ''; position: absolute; left: 0; top: 1px; right: 1px; bottom: 1px; background: var(--dk-NavHover); opacity: 0; transition: opacity var(--dk-out); }
.dk-nav:hover::before { opacity: 1; transition-duration: var(--dk-in); }
.dk-nav:hover { color: var(--dk-NIconHover); transition-duration: var(--dk-in); }
.dk-nav.sel { color: var(--dk-NIconOn); }
.dk-nav.sel::before { opacity: 0; }
.dk-nav > .dk-ico { position: absolute; left: 1px; top: 4px; }
.dk-nav-t { position: absolute; left: 42px; top: 13px; line-height: 14px; white-space: nowrap; color: var(--dk-PopText); opacity: 0; transition: opacity var(--dk-out); }
.dk-nav.sel .dk-nav-t { color: var(--dk-PanelTitle); }
.dk-nav-n { position: absolute; left: 19px; top: 7px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: var(--dk-Bad); color: #1A1F25; font: normal 11px/14px Tahoma, sans-serif; text-align: center; pointer-events: none; }
.hd-dock[data-theme="light"] .dk-nav-n { background: #E5ADB0; color: #5A1E21; }

/* ---------- status line (25): selection, last message coloured by meaning, progress; a click opens the console ---------- */
button.dk-sline { grid-row: 7; grid-column: 1 / 3; position: relative; height: 25px; display: flex; align-items: center; gap: 8px; padding: 0 8px; border: 0; border-top: 1px solid var(--dk-Contour); background: var(--dk-Footer); color: var(--dk-Muted); font-size: 11px; line-height: 14px; text-align: left; cursor: pointer; }
.dk-sline::before { content: ''; position: absolute; inset: 0; background: var(--dk-Hover); opacity: 0; transition: opacity var(--dk-out); }
.dk-sline:hover::before { opacity: 1; transition-duration: var(--dk-in); }
.dk-sline > span { position: relative; }
.dk-sline-bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--dk-Accent); transform: scaleX(0); transform-origin: 0 0; pointer-events: none; }
.dk-sline-sel { flex: none; padding-right: 8px; border-right: 1px solid var(--dk-Contour); white-space: nowrap; }
.dk-sline-msg { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 6px; }
.dk-sline-msg > .dk-spin { display: none; }
.dk-sline-msg.busy > .dk-spin { display: block; }
.dk-sline-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-sline-msg.err { color: var(--cl-err); }
.dk-sline-msg.warn { color: var(--cl-warn); }
.dk-sline-msg.ok { color: var(--cl-ok); }
.dk-sline-msg.inf { color: var(--cl-inf); }
.dk-sline-msg.dim { color: var(--cl-dim); }
.dk-sline-msg.busy { color: var(--dk-PanelText); }
.dk-sline-info { flex: none; white-space: nowrap; }
.dk-sline-info:empty { display: none; }

/* ---------- body: pages, top rule, right rule, 8 px scroll lane ---------- */
.dk-body { grid-row: 4; grid-column: 2; position: relative; overflow: hidden; background: var(--dk-Body); min-height: 0; }
.dk-rule-top { grid-row: 4; grid-column: 2; height: 1px; margin-right: 8px; align-self: start; background: var(--dk-Contour); z-index: 2; pointer-events: none; }
.dk-rule-right { position: absolute; right: 8px; top: 0; bottom: 0; width: 1px; background: var(--dk-Contour); z-index: 2; pointer-events: none; }
.dk-lane { position: absolute; right: 0; top: 0; bottom: 0; width: 8px; background: var(--dk-ScrollTrack); z-index: 2; }
/* AttachModule: page = star + 8 px lane; the top and right body rules are shell overlays drawn over the page */
.dk-page { position: absolute; left: 0; top: 0; right: 8px; bottom: 0; display: flex; flex-direction: column; min-height: 0; }
.dk-page.nolane { right: 0; }
.dk-page-top, .dk-page-bottom { flex: none; }
.dk-page-main { flex: 1 1 0; min-height: 0; position: relative; }
/* dock scroll (CreatePixelScroll): the content scrolls natively with a hidden bar; the thumb lives in the 8 px lane */
.dk-sc { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; }
.dk-sc::-webkit-scrollbar { display: none; }
.dk-thumb { position: absolute; left: 1px; width: 6px; opacity: 0; transition: opacity var(--dk-out); cursor: default; }
.dk-thumb::before { content: ''; position: absolute; left: 1px; top: 0; bottom: 0; width: 4px; border-radius: 2px; background: var(--dk-ScrollNarrow); }
.dk-thumb.show { opacity: 1; }
.dk-thumb.idle { opacity: .38; }
.dk-lane:hover > .dk-thumb.show::before, .dk-thumb.drag::before { left: 0; width: 6px; border-radius: 3px; background: var(--dk-ScrollWide); }
/* a self-contained scroll area with its own lane (lower editors, drawers) */
.dk-sbox { position: relative; overflow: hidden; }
.dk-sbox > .dk-sc { right: 8px; }
.dk-sbox > .dk-lane { z-index: 1; }

/* ---------- lower hosts: detail (editor) and agent composer ---------- */
.dk-detail { grid-row: 5; grid-column: 1 / 3; overflow: hidden; height: 0; opacity: 0; border-top: 0 solid var(--dk-Contour); background: var(--dk-Body); transition: height var(--dk-reveal) var(--dk-ease), opacity var(--dk-reveal) var(--dk-ease); }
.dk-detail.open { opacity: 1; border-top-width: 1px; }
.dk-composer { grid-row: 6; grid-column: 1 / 3; }   /* no own background: the root Body shows (View.cs, row 4) */
.dk-composer:empty { display: none; }

/* ---------- dock parts ---------- */
.dk-pad { padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.dk-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; }
.dk-empty-t { font-size: 13px; color: var(--dk-PanelTitle); }
.dk-empty-h { font-size: 11px; opacity: .75; }
.dk-empty-a { margin-top: 2px; }
.dk-foot { flex: none; min-height: 23px; padding: 0 8px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--dk-Contour); background: var(--dk-Footer); }
.dk-foot.h29 { min-height: 29px; padding: 0 6px; }
.dk-foot .muted { opacity: .7; }
.dk-foot > .grow { flex: 1 1 0; min-width: 0; }
/* the framed footer bar of a tool with its accepting action (Colorize: «Применить»): 8 around, 4 between the buttons */
.dk-actbar { display: flex; align-items: center; gap: 4px; padding: 8px; border-top: 1px solid var(--dk-Contour); background: var(--dk-Footer); }
.dk-actbar > .hd-btn { flex: 1 1 0; min-width: 0; }
.dk-actbar > .hd-btn.fix { flex: none; }

/* tree rows (HD Viewer 26 / section 24; Families 32 / 25) */
.dk-row { display: flex; align-items: center; height: 26px; padding-right: 2px; color: var(--dk-PanelText); cursor: default; transition: background-color var(--dk-out); white-space: nowrap; }
.dk-row:hover { background: var(--dk-RowHover); transition-duration: var(--dk-in); }
.dk-row.sel { background: var(--dk-RowSel); }
.dk-row.sec { height: 24px; background: var(--dk-PanelHeader); color: var(--dk-PanelTitle); font-weight: 600; }
.dk-row.sec.sel { background: var(--dk-RowSel); }
.dk-row.h32 { height: 32px; background: var(--dk-PanelHeader); color: var(--dk-PanelTitle); }
.dk-row.h25 { height: 25px; }
.dk-row > .nm { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
/* round 19 (owner): the main text is the brightest thing of a row; icons keep their own, calmer colours */
.dk-row > .nm, .dk-group > .nm, .dk-card-item > .nm, .dk-mrow > .nm, .dk-rev > .nm, .dk-card-name, .dk-fr-tx > .n { color: var(--dk-NameText); }
.dk-row > .hd-caticon, .dk-row > .dk-ico { flex: none; }
button.dk-exp { flex: none; width: 17px; height: 17px; padding: 0; border: 0; background: none; color: var(--dk-Expand); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.dk-exp svg { transition: transform var(--dk-reveal) var(--dk-ease); }
.dk-exp.open svg { transform: rotate(90deg); }
.dk-exp.none { visibility: hidden; }
.dk-g3 { flex: none; width: 3px; } .dk-g4 { flex: none; width: 4px; } .dk-g8 { flex: none; width: 8px; }
.dk-sub { opacity: .75; }

/* Browser: group header + sheet / view card */
.dk-group { display: flex; align-items: center; min-height: 25px; background: var(--dk-GroupHeader); color: var(--dk-GroupText); font-size: 11px; font-weight: 600; padding: 3px 6px 3px 8px; cursor: pointer; }
.dk-group > .nm { color: inherit; flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-group > .pm { flex: none; width: 14px; height: 14px; line-height: 13px; text-align: center; font-weight: 400; }
.dk-card { padding: 0 4px 6px; border-bottom: 1px solid var(--dk-PanelLine); }
.dk-card.sel { background: var(--dk-RowSel); }
.dk-card-head { display: flex; align-items: center; gap: 4px; min-height: 20px; margin: 2px 0; }
.dk-card-num { font-size: 13px; color: var(--dk-PanelTitle); flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-card-prev { border: 1px solid var(--dk-Contour); background: var(--dk-Paper); display: flex; align-items: center; justify-content: center; color: #6b7280; overflow: hidden; }
.dk-card-prev > svg { display: block; width: 100%; height: auto; }
.dk-card-name { min-height: 22px; font-size: 12px; display: flex; align-items: center; color: var(--dk-PanelText); }
.dk-card-items { display: flex; flex-direction: column; }
.dk-card-item { display: flex; align-items: center; min-height: 20px; gap: 4px; font-size: 11px; }
.dk-card-item > .nm { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-prog { flex: 1 1 0; height: 4px; background: var(--dk-ScrollTrack); position: relative; }
.dk-prog > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--dk-PanelAccent); }

/* Families: type row with a square preview cell */
.dk-type { display: flex; align-items: center; gap: 8px; min-height: 25px; padding: 2px 2px 2px 40px; }
.dk-type:hover { background: var(--dk-RowHover); }
.dk-type-prev { flex: none; border: 1px solid var(--dk-Contour); background: var(--dk-Paper); display: flex; align-items: center; justify-content: center; }
.dk-type-prev > svg { display: block; width: 80%; height: 80%; }
.dk-type-tx { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dk-type-tx > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Catalog cards: grid / wide / list */
.dk-cat { display: grid; gap: 0; padding: 0; }
.dk-ccard { position: relative; margin: 2px; border: 1px solid var(--dk-Contour); background: var(--dk-Surface); display: grid; grid-template-rows: 31px minmax(0, 1fr) 43px; min-width: 0; }
.dk-ccard:hover { border-color: var(--dk-PanelAccent); }
/* «Семейства»: one card and one row for the project, the disk and the internet (owner, 2026-10-13).
   The mark says where the nearest copy is, with the icons of the source choice: house = in the project, folder = on disk, globe = internet */
/* the number of a row (owner, 2026-10-13): its own column, wide enough for thousands, the digits end on one line.
   One place to change the width: --dk-cnt-w (a plain number), --dk-cnt-wide («12 из 1 248») */
.hd-dock { --dk-cnt-w: 40px; --dk-cnt-wide: 80px; }
.dk-cnt { flex: none; box-sizing: border-box; min-width: var(--dk-cnt-w); margin: 0 8px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; font-size: 11px; line-height: 14px; color: var(--dk-Muted); }
.dk-cnt.wide { min-width: var(--dk-cnt-wide); }
/* Viewer (owner, 2026-10-15): a thin rule in front of the number column, 6 px from the marks and 6 px from the digits;
   the column ends 8 px before the row action */
.dk-cnt.vc { position: relative; align-self: stretch; display: flex; align-items: center; justify-content: flex-end; min-width: calc(var(--dk-cnt-w) + 7px); margin: 0 8px 0 6px; padding-left: 7px; }
.dk-cnt.vc.wide { min-width: calc(var(--dk-cnt-wide) + 7px); }
.dk-cnt.vc::before { content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 1px; background: var(--dk-Contour); }
.dk-cnt.txt { min-width: 0; }
/* owner, round 14: every place has its own calm colour: project blue, disk teal, internet lavender */
button.dk-ib.dk-fmark.at1 { color: var(--dk-MkProject); } button.dk-ib.dk-fmark.at2 { color: var(--dk-MkDisk); } button.dk-ib.dk-fmark.at3 { color: var(--dk-MkWeb); }
/* owner 2026-10-16 (G34): the source has its colour wherever its picture stands: the source tabs, list rows, menus, the «where» line.
   The disk folder is a yellow folder (a light fill under its outline) */
.hd-dock.hd-dock .dk-ico.dk-ico.dk-ico[data-draft="src_all"] { color: var(--dk-MkAll); }
.hd-dock.hd-dock .dk-ico.dk-ico.dk-ico[data-draft="src_project"], .hd-dock.hd-dock .dk-ico.dk-ico.dk-ico[data-draft="mk_project"] { color: var(--dk-MkProject); }
.hd-dock.hd-dock .dk-ico.dk-ico.dk-ico[data-draft="src_disk"], .hd-dock.hd-dock .dk-ico.dk-ico.dk-ico[data-draft="mk_disk"] { color: var(--dk-MkDisk); }
.hd-dock.hd-dock .dk-ico.dk-ico.dk-ico[data-draft="src_web"], .hd-dock.hd-dock .dk-ico.dk-ico.dk-ico[data-draft="mk_web"] { color: var(--dk-MkWeb); }
.hd-dock.hd-dock .dk-ico.dk-ico.dk-ico[data-draft="src_disk"] path:first-child, .hd-dock.hd-dock .dk-ico.dk-ico.dk-ico[data-draft="mk_disk"] path:first-child { fill: currentColor; fill-opacity: .2; }
/* pass 6j: the folder fill is ONE 20 % layer (owner); the inner strip of mk_disk no longer adds a second layer */
.hd-dock.hd-dock .dk-ico.dk-ico.dk-ico[data-draft="mk_disk"] path:nth-child(2) { fill-opacity: 0; }
/* pass 6j: light dock success button a drop lighter and warmer (OKLCH L+.025, hue 173 -> 155), dock only */
.hd-dock[data-theme="light"] .hd-btn.v-success { --bg: #C6DDCD; --hbg: #B7D2BE; --bd: #9CBBA4; --hbd: #9CBBA4; --fg: #2C4837; }
.dk-fprev { position: relative; }
.dk-ftag { position: absolute; left: 3px; bottom: 3px; width: 36px; height: 15px; padding: 0; text-align: center; font-size: 11px; line-height: 15px; color: var(--dk-Body); background: var(--dk-TagPro); }
.dk-ftag.new { background: var(--dk-TagNew); }
.dk-ftag.beta { background: var(--dk-TagBeta); }
/* light theme: no light ink on a dark plate (owner, 2026-10-15: no white text); the pastel plates of the dark theme carry the dark ink */
.hd-dock[data-theme="light"] .dk-ftag:not(.in) { color: #101B36; background: #D9A6B5; }
.hd-dock[data-theme="light"] .dk-ftag.new:not(.in) { background: #BFDCD2; }
.hd-dock[data-theme="light"] .dk-ftag.beta:not(.in) { background: #D9C190; }
/* in the lists the tag is a plain word in its colour (owner, round 13), not a plate */
/* owner, round 14: the tags stand in one column (an empty cell where there is none), so they do not wander */
.dk-ftag.in { position: static; flex: none; width: 34px; margin-right: 8px; padding: 0; text-align: center; background: none; color: var(--dk-TagPro); }
.dk-ftag.in.new { color: var(--dk-TagNew); } .dk-ftag.in.beta { color: var(--dk-TagBeta); }
.dk-fr { display: flex; align-items: center; height: 44px; padding-right: 2px; color: var(--dk-PanelText); cursor: default; transition: background-color var(--dk-out); white-space: nowrap; }
.dk-fr:hover { background: var(--dk-RowHover); }
.dk-fr-prev { flex: none; box-sizing: border-box; width: 36px; height: 36px; margin: 0 8px 0 3px; border: 1px solid var(--dk-Contour); background: var(--dk-Paper); display: flex; align-items: center; justify-content: center; }
.dk-fr-prev > svg { display: block; width: 80%; height: 80%; }
.dk-fr-tx { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dk-fr-tx > div { overflow: hidden; text-overflow: ellipsis; }
.dk-fr-tx > .c { font-size: 11px; line-height: 13px; color: var(--dk-Muted); }
.dk-fr-tx > .n { font-size: 12px; line-height: 14px; color: var(--dk-PanelTitle); }
.dk-fd { display: flex; flex-direction: column; gap: 8px; padding: 8px; }
.dk-fd-prev { position: relative; flex: none; box-sizing: border-box; height: 140px; border: 1px solid var(--dk-Contour); background: var(--dk-Paper); display: flex; align-items: center; justify-content: center; }.dk-fd-cat { font-size: 11px; line-height: 13px; color: var(--dk-Muted); }
.dk-fd-name { font-size: 15px; line-height: 19px; font-weight: 600; color: var(--dk-PanelTitle); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* owner 2026-10-27 («мерзкий салатовый»): «В проекте» takes the selection teal, not the lime/mint green */
.dk-fd-at.at1 > svg { color: var(--dk-MkProject); }
.dk-foot.fbar { min-height: 35px; padding: 0 4px; gap: 8px; }
/* round 19 (owner): a footer that holds only a sliding choice IS that choice: the whole bar is its field, no frame inside the
   frame; the plate keeps 5 px of field on every side and crawls over the whole width */
.dk-foot.fbar:has(> .dk-slide:only-child) { padding: 0; }
.dk-foot.fbar > .dk-slide:only-child { align-self: stretch; min-height: 34px; }
.dk-foot.fbar > .dk-slide:only-child > .hd-slide { height: 34px; }
.dk-foot.fbar > .dk-slide:only-child .hd-slide-track { display: none; }
.dk-foot.fbar > .dk-slide:only-child .hd-slide-thumb { top: 5px; height: 24px; }
.dk-foot.fbar > .dk-slide:only-child .hd-slide > .hd-btn { height: 34px; }
.dk-foot.fbar > .dk-slide:only-child .hd-slide > .hd-btn .hd-bl { height: 30px; }
.dk-foot.fbar > .dk-slide:only-child .hd-slide > .hd-btn .hd-bl > .hd-bt { margin-top: 8px; }
/* the family card, as on the library site: the caption takes the whole width (two lines), the actions have a strip of their own.
   Rows: 25 category (between the mark and the heart) / square picture / 32 name / 25 more, number of types, place */
.dk-ccard.fam { grid-template-rows: 25px minmax(0, 1fr) 32px 25px; }
.dk-ccard.fam > .dk-ccard-cat { margin: 5px 24px 0 24px; -webkit-line-clamp: 1; color: var(--dk-Muted); opacity: 1; }
.dk-ccard.fam > .dk-ccard-name { margin: 3px 4px 0 4px; -webkit-line-clamp: 2; overflow-wrap: anywhere; }
.dk-ccard-n { align-self: center; margin: 0 24px; font-size: 11px; line-height: 13px; text-align: center; color: var(--dk-Muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-ccard-cat { font-size: 11px; line-height: 13px; margin: 3px 24px 0 24px; min-width: 0; text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; opacity: .8; }
.dk-ccard-prev { background: var(--dk-Paper); display: flex; align-items: center; justify-content: center; min-height: 0; }
.dk-ccard-prev > svg { display: block; width: 70%; height: 70%; }
.dk-ccard-name { font-size: 11px; line-height: 13px; text-align: center; margin: 3px 24px 0; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; color: var(--dk-PanelTitle); }
.dk-ccard > .dk-ib { position: absolute; width: 21px; height: 21px; }
.dk-ccard > .tl { left: 1px; top: 1px; } .dk-ccard > .tr { right: 1px; top: 1px; } .dk-ccard > .bl { left: 1px; bottom: 1px; } .dk-ccard > .br { right: 1px; bottom: 1px; }
/* the corner buttons of a card lie on the card surface, not on the head row: the head colour was lost there (owner, 2026-10-13) */
:where(.hd-dock:not([data-theme="light"]) .dk-ccard) > button.dk-ib { color: var(--dk-PanelText); }
:where(.hd-dock:not([data-theme="light"]) .dk-ccard) > button.dk-ib:hover { color: var(--dk-HIconOn); }
.dk-crow { display: grid; grid-template-columns: 50px minmax(0, 1fr) 25px; align-items: center; height: 51px; border-bottom: 1px solid var(--dk-PanelLine); }
.dk-crow:hover { background: var(--dk-RowHover); }
.dk-crow-prev { justify-self: center; width: 34px; height: 24px; border: 1px solid var(--dk-Contour); background: var(--dk-Paper); display: flex; align-items: center; justify-content: center; }
.dk-crow-prev > svg { width: 20px; height: 20px; display: block; }
.dk-crow-tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dk-crow-tx > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Catalog display-mode selector 58 x 22: 20 / 18 / 20 */
.dk-modes { display: flex; width: 58px; height: 22px; border: 1px solid var(--dk-Contour); background: var(--dk-PanelField); }
.dk-modes > button { flex: none; height: 20px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--dk-HIcon); display: flex; align-items: center; justify-content: center; }
.dk-modes > button:nth-child(1), .dk-modes > button:nth-child(3) { width: 19px; } .dk-modes > button:nth-child(2) { width: 18px; }
.dk-modes > button:hover { color: var(--dk-HIconHover); background: var(--dk-HeaderHover); }
.dk-modes > button.sel { color: var(--dk-HIconOn); background: var(--dk-HeaderSel); }

/* Materials: column header + row (UnifiedDockMaterialList): marker cell 23 - 2·step | swatch 23 + 26·step | name (4 px) | favourite 23;
   row 27 + 22·step; rows alternate, hover and selection colours as in WPF */
.dk-colhead { display: flex; align-items: center; height: 22px; padding: 0 8px 0 21px; background: var(--dk-PanelField); border-bottom: 1px solid var(--dk-PanelLine); cursor: pointer; color: var(--dk-PanelTitle); }
.hd-dock[data-theme="light"] .dk-colhead { background: #E7E9ED; }
/* sort keys stand over their own columns; mHeadAlign places them from the first row */
.dk-sorthead { position: relative; padding: 0; cursor: default; }
.dk-sortk { position: absolute; top: 0; height: 100%; display: flex; align-items: center; gap: 4px; cursor: pointer; color: var(--dk-HIcon); font-size: 11px; white-space: nowrap; }
.dk-sortk.color { justify-content: center; gap: 2px; }
.dk-sortk:hover { color: var(--dk-HIconHover); }
.dk-sortk.on { color: var(--dk-PanelTitle); }
.dk-sortic.sw { width: 10px; height: 10px; box-sizing: border-box; border: 1px solid currentColor; background: linear-gradient(135deg, currentColor 0 50%, transparent 50%); }
.dk-sortic.az, .dk-sortic.n { font-weight: bold; }
.dk-mrow { display: flex; align-items: stretch; color: #EDF3FF; background: #3C4657; transition: background-color var(--dk-out); }
.dk-mrow:nth-child(odd) { background: #37404F; }
.hd-dock[data-theme="light"] .dk-mrow { color: #2E333E; background: #E9ECF0; }
.hd-dock[data-theme="light"] .dk-mrow:nth-child(odd) { background: #F0F2F6; }
.hd-dock .dk-mrow:hover { background: #46536B; transition-duration: var(--dk-in); }
.hd-dock[data-theme="light"] .dk-mrow:hover { background: #D9E1ED; }
.hd-dock .dk-mrow.sel { background: #242C3B; }
.hd-dock[data-theme="light"] .dk-mrow.sel { background: #B9C9DF; }
.dk-mrow > .mk { flex: none; box-sizing: border-box; display: flex; align-items: center; }
.dk-mrow > .sw { flex: none; display: block; }
.dk-mrow > .nm { flex: 1 1 0; min-width: 0; align-self: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 8px; }
.dk-swatch { flex: none; border: 1px solid var(--dk-Contour); }
.dk-mrow > .fav { flex: none; width: 23px; margin: 0 4px 0 0; display: flex; align-items: center; justify-content: center; }
/* how the material is used: nothing = by parameter (replaceable); the mark = paint / inside a family (cannot be replaced) */
.dk-mrow > .how { flex: none; align-self: center; display: flex; align-items: center; gap: 4px; margin-left: 8px; color: var(--dk-HIcon); font-size: 11px; white-space: nowrap; }
.dk-mrow > .how > span { color: var(--dk-FilterGlyph); }
.dk-mrow > .dk-cnt { align-self: center; }

/* Alignment: title rule + 4-column icon buttons 40 px high */
/* Alignment: a design-system secondary button, 40 high like the row of the real panel, so the tool's authored 28 px drawing stands 1:1
   (4 px of face around it); the caption may take two lines of 14 */
.dk-al-grid { display: grid; gap: 8px 4px; align-items: center; }
.hd-btn.dk-al-btn { height: 39px; min-width: 0; font-size: 12px; }
.hd-btn.dk-al-btn.s-standard .hd-face:has(> .hd-bl) { justify-content: flex-start; padding: 0 6px 0 4px; white-space: normal; text-align: left; }
.hd-btn.dk-al-btn.s-standard .hd-bl { display: flex; flex: 1; min-width: 0; height: 28px; }
.hd-btn.dk-al-btn.s-standard .hd-bl > .hd-bt { align-self: center; min-width: 0; margin: 0 0 0 8px; white-space: pre-line; line-height: 14px; max-height: 28px; overflow: hidden; }
.dk-al-ic { position: relative; flex: none; width: 28px; height: 28px; }
/* light theme: the two authored tones stay clearly two (owner 2026-10-27: Align icons are two-colour, never mono) */
.hd-dock[data-theme="light"] .dk-ico-al { --dki-ACC6FF: #2F4F92; --dki-7EA6F8: #8EADE6; } /* owner 2026-10-27: big bars light, thin lines / arrows / dashes dark, so both read with one contrast */
.hd-dock[data-theme="light"] .dk-ico-al[data-name="Lines"] { --dki-ACC6FF: #8CABE3; --dki-7EA6F8: #3E62A8; } /* «По Пути» keeps its drawing */
/* Selection: category rows 25 px, 2 px apart, 4 px side margins, no hover fill; footer has 8 px on every side */
.dk-row.dk-selrow { gap: 8px; margin: 2px 4px 0; padding-right: 0; cursor: pointer; }
.dk-row.dk-selrow:first-child { margin-top: 0; }
.dk-row.dk-selrow:hover { background: none; }
.hd-dock .dkm-foot.dk-selfoot { padding-top: 8px; }

/* AI chat (owner, 2026-10-13: no heavy headers, no frames, readable text). The request is a bubble at the right, the
   answer is plain text, a structured result is one quiet card without a header bar; its tone is said by a small icon and
   the colour of the title only. Dark: the card is the Surface tone without an outline; light: white with a faint line. */
.hd-dock { --dk-CardBg: var(--dk-Surface); --dk-CardEdge: var(--dk-Surface); --dk-CardRule: var(--dk-Body); --dk-BubBg: var(--dk-CollSel); }
.hd-dock[data-theme="light"] { --dk-CardBg: var(--dk-SearchField); --dk-CardEdge: var(--dk-PanelHeader); --dk-CardRule: var(--dk-PanelHeader); --dk-BubBg: var(--dk-CollSel); }
.dk-chat { display: flex; flex-direction: column; gap: 0; padding: 12px 8px; }
.dk-chat > * { flex: none; }
.dk-note { display: flex; align-items: flex-start; gap: 8px; padding: 0 2px; font-size: 12px; line-height: 18px; color: var(--dk-PanelTitle); user-select: text; }
/* chat bubbles (owner, 2026-10-21, vector mockup; WPF DockAgentChatBubble): user against the RIGHT edge, answer against
   the LEFT edge. The outline is an SVG path (flare r4 on the edge side, corners r5 on the free side, 1 px); bubbles stand
   4 px off each other's flares, so two of one side 8 px apart close a half circle. Free side keeps 24 (user) / 12 (answer) */
.hd-dock { --dk-ChatUser: #445476; --dk-ChatAnswer: #364153; --dk-ChatEdge: #1A1F25; --dk-ChatIcon: #6399F3; --dk-ChatIcon2: #ACC6FF; --dk-ChatField: #2C3544; }
.hd-dock[data-theme="light"] { --dk-ChatUser: #DDE4F2; --dk-ChatAnswer: #EEF0F4; --dk-ChatEdge: #8593B7; --dk-ChatIcon: #6399F3; --dk-ChatIcon2: #436199; --dk-ChatField: #FFFFFF; }
.dk-cb { position: relative; display: flex; align-items: flex-start; gap: 8px; padding: 7px 8px; font-size: 12px; line-height: 18px; color: var(--dk-PanelTitle); overflow-wrap: anywhere; user-select: text; }
.dk-cb.u { align-self: flex-end; margin: 4px -8px 4px 24px; }
.dk-cb.a { align-self: flex-start; margin: 4px 12px 4px -9px; }   /* -9: the edge line lies ON the rail border, no double line */
/* card = answer bubble with a header (owner, 2026-10-21): same fill and outline as every answer */
.dk-cb.k { display: block; align-self: stretch; padding: 0; }
.dk-cb.k > :not(.dk-cb-shape) { position: relative; }
.dk-cb.k > .dk-ans-h > .dk-cb-ic { flex: none; width: 17px; height: 17px; }
.dk-cb.k.t-warning > .dk-ans-h { color: var(--dk-Warn); box-shadow: inset 0 -1px 0 var(--dk-Warn); margin-bottom: 8px; }
.dk-cb.k.t-danger > .dk-ans-h { color: var(--dk-Bad); box-shadow: inset 0 -1px 0 var(--dk-Bad); margin-bottom: 8px; }
.dk-cb.k.t-success > .dk-ans-h { color: var(--dk-Ok); }
.hd-dock:not([data-theme="light"]) .dk-cb.k.t-danger > .dk-ans-h { color: #EEC0C2; }
.dk-cb-shape { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.dk-cb.u > .dk-cb-shape > path { fill: var(--dk-ChatUser); stroke: var(--dk-ChatEdge); stroke-width: 1; }
.dk-cb.a > .dk-cb-shape > path { fill: var(--dk-ChatAnswer); stroke: var(--dk-ChatEdge); stroke-width: 1; }
.dk-cb > .dk-cb-t, .dk-cb > .dk-cb-ic { position: relative; }
.dk-cb > .dk-cb-t { flex: 1 1 auto; min-width: 0; }
.dk-cb > .dk-cb-t > svg { vertical-align: -2px; margin-right: 8px; }
.dk-cb > .dk-cb-ic { flex: none; display: block; width: 17px; height: 17px; color: var(--dk-ChatIcon); }
.dk-cb-logo > svg { display: block; width: 17px; height: 17px; }
.dk-cb-t.t-success > svg { color: var(--dk-Ok); } .dk-cb-t.t-warning > svg { color: var(--dk-Warn); } .dk-cb-t.t-danger > svg { color: var(--dk-Bad); }
.dk-note > svg { flex: none; margin-top: 3px; }
.dk-note.t-success > svg { color: var(--dk-Ok); } .dk-note.t-warning > svg { color: var(--dk-Warn); } .dk-note.t-danger > svg { color: var(--dk-Bad); }
.dk-ans-h { display: flex; align-items: center; gap: 8px; height: 31px; padding: 0 8px; color: var(--dk-PanelTitle); }
.dk-ans-h > svg { flex: none; }
.dk-ans-h > .t { flex: 1 1 0; min-width: 0; font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-ans-h > .n { flex: none; font-size: 11px; color: var(--dk-Muted); white-space: nowrap; }
.dk-ans-h > .hd-btn { flex: none; margin-right: -4px; }
.dk-ans-b { padding: 0 8px 8px; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; user-select: text; }
.dk-ans-b.flush { padding: 0 0 4px; }
.dk-ans-st { padding: 0 8px 8px; font-size: 11px; line-height: 14px; color: var(--dk-Muted); }
.dk-ans-f { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; padding: 0 8px 8px; }
.dk-ans-f > .hd-btn { flex: 1 1 0; min-width: 0; }
.dk-ans-f > .hd-btn.fix { flex: none; }
.dk-table { width: 100%; border-collapse: collapse; }
.dk-table th { padding: 0 8px 4px; font-size: 11px; line-height: 14px; font-weight: 400; text-align: left; white-space: nowrap; color: var(--dk-Muted); }
.dk-table td { padding: 4px 8px; font-size: 12px; line-height: 16px; border-top: 1px solid var(--dk-CardRule); }
.dk-rev { display: flex; align-items: center; gap: 8px; min-height: 25px; padding: 0 8px; border-top: 1px solid var(--dk-CardRule); font-size: 12px; }
.dk-rev > .nm { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-rev > .n { flex: none; color: var(--dk-Muted); }
/* row states (owner, 2026-10-21): the value and the mark take the state colour; a neutral (calculated) row stays muted */
.dk-rev > .dk-cat, .dk-rev > svg, .dk-rev > .dk-rev-mk { flex: none; }
.dk-rev > .dk-rev-mk { width: 12px; height: 12px; }
.dk-rev.t-success > .n, .dk-rev.t-success > svg:last-child { color: var(--dk-Ok); }
.dk-rev.t-warning > .n, .dk-rev.t-warning > svg:last-child { color: var(--dk-Warn); }
.dk-rev.t-danger > .n, .dk-rev.t-danger > svg:last-child { color: var(--dk-Bad); }
.dk-rev > .dk-cat { width: 19px; height: 19px; color: var(--dk-RowIcon); }
.dk-spin { flex: none; width: 18px; height: 18px; animation: dk-rot 1s steps(8) infinite; color: var(--dk-PanelAccent); }
.dk-spin.big { width: 34px; height: 34px; }
@keyframes dk-rot { to { transform: rotate(360deg); } }
.dk-status { display: flex; align-items: center; gap: 4px; font-size: 11px; margin-left: 18px; }
.dk-status > i { width: 14px; text-align: center; font-style: normal; }
.dk-status.ok { color: var(--dk-Ok); } .dk-status.bad { color: var(--dk-Bad); }
/* Agent header (DockAgentView.Layout.cs): dot 14 px at the left, state text 11 px starting 18 px from the left */
.dk-ag-status { position: relative; flex: 0 1 auto; min-width: 0; height: 26px; display: flex; align-items: center; font-size: 11px; white-space: nowrap; color: var(--dk-Ok); }
.hd-dock[data-theme="light"] .dk-ag-status { color: #1D5A3D; }
.hd-dock .dk-ag-status.bad { color: #BA6F6F; }
.dk-ag-status > i { position: absolute; left: 3px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dk-ag-status > span { margin: 0 4px 0 18px; overflow: hidden; text-overflow: ellipsis; }
/* Agent composer: a framed footer bar of its own (line above, the Footer tone). A short handle in the middle changes its
   height; the field has the look of the search field and takes the accent line while it holds the caret */
.dk-comp { display: flex; flex-direction: column; padding: 0 8px 8px; border-top: 1px solid var(--dk-Contour); background: var(--dk-Footer); box-sizing: border-box; }
.dk-comp-grip { flex: none; height: 8px; cursor: ns-resize; position: relative; }
.dk-comp-grip::after { content: ''; position: absolute; left: 50%; top: 3px; width: 32px; height: 2px; margin-left: -16px; border-radius: 1px; background: var(--dk-Muted); opacity: .45; transition: opacity var(--dk-in) var(--dk-ease); }
.dk-comp-grip:hover::after { opacity: 1; }
.dk-comp-in { flex: 1 1 0; min-height: 0; position: relative; overflow: hidden; margin-bottom: 4px; border: 1px solid var(--dk-SearchBorder); border-radius: 3px; background: var(--dk-ChatField); transition: border-color var(--dk-in) var(--dk-ease); }
.dk-comp-in:focus-within { border-color: var(--dk-PanelAccent); }
.dk-comp-in > textarea { position: absolute; left: 8px; top: 4px; width: calc(100% - 39px); height: calc(100% - 36px); resize: none; border: 0; outline: 0; background: none; margin: 0; padding: 2px 0; font: 12px Tahoma, sans-serif; color: var(--dk-SearchText); user-select: text; scrollbar-width: none; }
.dk-comp-in > textarea::placeholder { color: var(--dk-Muted); opacity: 1; }
.dk-comp-in > .dk-ib { position: absolute; }
.dk-comp-in > .dk-ag-clear { top: 4px; right: -2px; z-index: 3; }
.dk-comp-in > .dk-ag-send { right: 3px; bottom: 3px; }
.dk-comp-in > .dk-ag-voice { right: 32px; bottom: 3px; }
.dk-ag-busy { position: absolute; left: 8px; bottom: 3px; height: 29px; max-width: calc(100% - 73px); display: flex; align-items: center; overflow: hidden; white-space: nowrap; font-size: 12px; color: var(--dk-PanelText); }
.dk-ag-busy > .dots { flex: none; display: flex; width: 18px; }
.dk-ag-busy > .dots > i { width: 5px; font-style: normal; animation: dk-ag-dot 1.2s infinite; }
.dk-ag-busy > .dots > i:nth-child(2) { animation-delay: .2s; } .dk-ag-busy > .dots > i:nth-child(3) { animation-delay: .4s; }
@keyframes dk-ag-dot { 0%, 20% { opacity: 0; } 45%, 100% { opacity: 1; } }
.dk-comp-hint { flex: none; height: 13px; line-height: 13px; font-size: 11px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dk-Muted); }
/* Agent settings: ordinary design-system sections and rows. State of the key: a dot and a sentence; a path: field + square button */
.dk-ag-key { display: flex; align-items: center; gap: 8px; height: 25px; color: var(--dk-Ok); }
.dk-ag-key.bad { color: var(--dk-Bad); }
.dk-ag-key > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.dk-ag-key > span { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-ag-path { display: flex; align-items: center; gap: 4px; }
.dk-ag-path > .hd-tb { flex: 1 1 0; min-width: 0; }
/* chats (2026-10-21): head row = chat combo + New / Clear / Delete; pictures are small thumbnails, a click opens one */
.dk-ag-ask { flex: 1 1 0; min-width: 0; height: 27px; line-height: 27px; font-size: 12px; color: var(--dk-PanelText); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-ag-pics { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.dk-ag-pic { flex: none; width: 54px; height: 40px; padding: 0; border: 1px solid var(--dk-CardEdge); border-radius: 3px; background: var(--dk-CardBg); color: var(--dk-Muted); cursor: pointer; }
.dk-ag-pic:hover { border-color: var(--dk-PanelAccent); color: var(--dk-PanelAccent); }
.dk-ag-pic { box-sizing: border-box; overflow: hidden; }
.dk-ag-pic > svg { display: block; width: 100%; height: 100%; }
.dk-ag-iss { display: flex; flex-direction: column; gap: 4px; padding: 4px 8px 0; }
.dk-ag-iss > .dk-note { margin: 0; padding: 0; border: 0; background: none; }
.dk-comp-in > .dk-ag-attach { position: absolute; right: 69px; bottom: 3px; display: flex; }
.dkm-head .hd-combo, .dkm-head .hd-btn.s-compact, .dkm-head .hd-btn { height: 27px; }
.dk-ag-pend { position: absolute; left: 8px; bottom: 3px; right: 102px; height: 29px; display: flex; align-items: center; gap: 4px; overflow: hidden; }
.dk-ag-pend > .dk-ag-pic { width: 36px; height: 27px; }
.dk-ag-pend > .dk-ag-pic:hover { border-color: var(--dk-Bad); color: var(--dk-Bad); }

/* Console log */
/* Console (ConsoleModule.cs): command tiles of the header and the plain settings column */
.dk-ib.framed.dk-tile { border-color: var(--dk-PanelLine); color: var(--dk-PanelText); }
.hd-dock .dk-ico-con { --dki-4A5771: transparent; --dki-333B49: transparent; --dki-7EA6F8: var(--dk-PanelText); --dki-5F7FC2: var(--dk-PanelText); }
.dk-con-back { position: absolute; left: 0; top: 0; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; color: var(--dk-PanelText); }
.dk-con-set { padding: 8px; color: var(--dk-PanelText); font-size: 11px; }
.dk-con-title { font-size: 13px; line-height: 17px; font-weight: 600; margin-bottom: 8px; }
.dk-con-desc { margin-bottom: 12px; line-height: 14px; }
.dk-con-presets { display: flex; gap: 8px; margin-bottom: 12px; }
button.dk-con-preset { flex: none; height: 26px; margin: 0; padding: 0 8px; white-space: nowrap; box-sizing: border-box; border: 1px solid var(--dk-PanelLine); background: var(--dk-PanelField); color: var(--dk-PanelText); font: 11px Tahoma, sans-serif; cursor: pointer; }
.dk-con-check { min-height: 24px; margin-bottom: 8px; display: flex; align-items: center; }
.dk-log { margin: 6px; font: 11px Consolas, 'Courier New', monospace; line-height: 16px; white-space: pre-wrap; word-break: break-word; user-select: text; color: var(--dk-PanelText); }
/* Console palette (design proposal 2026-10-13, second pass after Pavel's remark; not the WPF colours). The tones
   follow the design system's own dusty semantic colours (danger rose, warning sand, success sage, the panel's
   periwinkle for info): low equal chroma (dark .07-.10, light .08-.09), one lightness per theme, contrast on the
   body 4.6-5.1 dark and 5.8-6.7 light. Diagnostics is a readable muted tone (4.6 / 5.6), not opacity. Errors are
   bold, as SessionConsoleStyle.Error is in WPF. */
.dk-log, .dk-sline { --cl-err: #E5ADB0; --cl-warn: #D9C190; --cl-ok: #9FCBB8; --cl-inf: #9DBDFF; --cl-dim: #AEBBD3; }
.hd-dock[data-theme="light"] .dk-log, .hd-dock[data-theme="light"] .dk-sline { --cl-err: #864447; --cl-warn: #755822; --cl-ok: #2F7356; --cl-inf: #436199; --cl-dim: #5A6475; }
.dk-log .err { color: var(--cl-err); font-weight: bold; } .dk-log .warn { color: var(--cl-warn); } .dk-log .ok { color: var(--cl-ok); } .dk-log .dim { color: var(--cl-dim); } .dk-log .inf { color: var(--cl-inf); }

/* Hexa loader: 6 concentric rings in a 118 x 118 box, 3 s wave, 0.5 s steps */
.dk-hexa { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dk-hexa-box { position: relative; width: 118px; height: 118px; }
.dk-hexa-box > i { position: absolute; left: 25.4px; top: 25.4px; width: 67.2px; height: 67.2px; border-radius: 50%; border: 1px solid #69A2FF; opacity: 0; animation: dk-wave 3s linear infinite; }
.hd-dock[data-theme="light"] .dk-hexa-box > i { border-color: var(--dk-PanelAccent); }
@keyframes dk-wave { from { transform: scale(.6); opacity: 1; } to { transform: scale(2); opacity: 0; } }
.dk-hexa-cap { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--dk-PanelTitle); }
.dk-hexa-st { position: absolute; left: 10px; top: 10px; font-size: 11px; }

/* lower editor (graphics / material): header strip + body */
.dk-ed-head { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 4px 0 8px; background: var(--dk-GraphicsHeader); border-bottom: 1px solid var(--dk-PanelLine); color: var(--dk-PanelTitle); font-weight: 600; }
.dk-ed-head > .grow { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-ed-foot { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-top: 1px solid var(--dk-PanelLine); background: var(--dk-Footer); }
.dk-ed-foot > .grow { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .8; }

/* authored-colour icon maps (DockIconTint): keep-roles per theme and hover */
.hd-dock[data-theme="light"] .dk-ico-mat { --dki-4A5771: #E0E5EB; --dki-333B49: #8593B7; --dki-7EA6F8: #436199; }
.hd-dock[data-theme="light"] .dk-ib:hover .dk-ico-mat { --dki-4A5771: #D4E4F9; --dki-333B49: #436199; --dki-7EA6F8: #5C86DD; }
.hd-dock:not([data-theme="light"]) .dk-ib:hover .dk-ico-mat { --dki-4A5771: #3F4B62; --dki-333B49: #1A1F25; --dki-7EA6F8: #9ABAFB; }
/* in the head row the commands are plain signs like the tabs of the other tools: the authored plate and its outline are taken off
   (owner, 2026-10-13: framed squares in the dark row looked wrong); the hover plate of the cell stays */
.hd-dock .dk-hacts.dk-hacts .dk-ib .dk-ico-mat, .hd-dock .dk-hacts.dk-hacts .dk-ib:hover .dk-ico-mat { --dki-4A5771: transparent; --dki-333B49: transparent; }
/* and they take the colours of the head row (the same as the tabs), in both themes */
.hd-dock .dk-hacts.dk-hacts .dk-ib .dk-ico-mat { --dki-7EA6F8: var(--dk-HIcon); }
.hd-dock .dk-hacts.dk-hacts .dk-ib:hover .dk-ico-mat { --dki-7EA6F8: var(--dk-HIconHover); }
.hd-dock:not([data-theme="light"]) .dk-ico-mrow { --dki-7EA6F8: #A6C4FF; --dki-5F7FC2: #A6C4FF; }
.hd-dock:not([data-theme="light"]) :hover > .dk-ico-mrow { --dki-7EA6F8: #D4E3FF; --dki-5F7FC2: #D4E3FF; }
.hd-dock[data-theme="light"] .dk-ico-mrow { --dki-7EA6F8: #7387AD; --dki-5F7FC2: #7387AD; }
.hd-dock[data-theme="light"] :hover > .dk-ico-mrow { --dki-7EA6F8: #3F5F94; --dki-5F7FC2: #3F5F94; }
.hd-dock:not([data-theme="light"]) .dk-ico-vis { --dki-465A7D: #A6C4FF; --dki-9AB6F1: #A6C4FF; }
.hd-dock:not([data-theme="light"]) :hover > .dk-ico-vis { --dki-465A7D: #D4E3FF; --dki-9AB6F1: #D4E3FF; }
.hd-dock[data-theme="light"] .dk-ico-vis.on { --dki-222933: #436199; --dki-1A1F25: #436199; --dki-9AB6F1: #FFFFFF; }
.hd-dock[data-theme="light"] :hover > .dk-ico-vis.on { --dki-222933: #5278BA; --dki-1A1F25: #5278BA; }
.hd-dock[data-theme="light"] .dk-ico-vis.off { --dki-2E3440: #FFFFFF; --dki-1A1F25: #8593B7; --dki-465A7D: #8697BA; }
.hd-dock[data-theme="light"] :hover > .dk-ico-vis.off { --dki-465A7D: #436199; }
/* =====================================================================================================
   HD Browser card surface (tool 1). Numbers and colours: SheetViewerPaneControl.xaml, DockCardPalette.cs,
   UnifiedDockHost.UnifiedApplyTheme, SheetViewerDockChrome.xaml, HDBrowserSearchRowControl.cs, ...Setup.cs.
   The card surface uses the dock font (Tahoma, kept from the improvement stage); the card colours are the WPF ones.
   ===================================================================================================== */
.hd-dock {
  --dk-ToolSep: #566781; --dk-BtnPressed: #6D9CFF; --dk-CollHover: #38455C; --dk-CollSel: #445476; --dk-BorderDeep: #222933; --dk-Muted: #B8C4D8;
  --dk-AccentSoft: #3F4C61; --dk-Accent: #6D9CFF; --dk-ProgTrack: rgba(109, 156, 255, .275);
  --dk-PopBg: #394558; --dk-PopBorder: #29323F; --dk-PopHover: #46556C; --dk-PopPressed: #556B8E; --dk-PopText: #C2CEE4;
  --dk-BAction: #5A6E99; --dk-BActionDown: #4C5E85; --dk-BActionText: #EEF3FC;
  --dk-WellBg: #4B5873; --dk-WellLine: #4B5873; --dk-GearBg: var(--dk-NavRail); /* owner 2026-10-16 (H18): the panel colour, no own tint */
}
.hd-dock[data-theme="light"] {
  --dk-ToolSep: #B6BDC8; --dk-BtnPressed: #678CDA; --dk-CollHover: #DAE2F0; --dk-CollSel: #C2D8F6; --dk-BorderDeep: #BBC0C8; --dk-Muted: #56606C;
  --dk-AccentSoft: rgba(109, 156, 255, .10); --dk-Accent: #608DEF; --dk-ProgTrack: rgba(83, 113, 172, .133);
  --dk-PopBg: #FFFFFF; --dk-PopBorder: #B3B9C2; --dk-PopHover: #EAF0F7; --dk-PopPressed: #D7E1F0; --dk-PopText: #191F2B;
  --dk-BAction: #C3D2EE; --dk-BActionDown: #A9BDE4; --dk-BActionText: #1C3563;
  --dk-WellBg: #F7F8FA; --dk-WellLine: #8593B7; --dk-GearBg: var(--dk-NavRail);
}
.dk-bl { padding-bottom: 14px; }
/* group header: Grid MinHeight 25 + bottom line 1; name left, 14 x 14 toggle in the 24 px column */
.dk-bg { display: grid; grid-template-columns: minmax(0, 1fr) 24px; align-items: center; min-height: 26px; background: var(--dk-GroupHeader); border-bottom: 1px solid var(--dk-ToolSep); cursor: pointer; transition: background-color var(--dk-out); }
.dk-bg:hover { background: var(--dk-GroupHeaderHover); transition-duration: var(--dk-in); }
.dk-bg-nm { padding: 3px 6px 3px 8px; font-size: 11px; line-height: 16px; font-weight: 600; color: var(--dk-GroupText); overflow-wrap: anywhere; }
.dk-bg-tg { justify-self: end; display: flex; align-items: center; justify-content: center; width: 14px; height: 14px; margin-right: 4px; border-radius: 2px; font-size: 11px; line-height: 14px; font-weight: 600; color: var(--dk-GroupText); }
.dk-bg-tg:hover { background: rgba(83, 113, 172, .12); box-shadow: inset 0 0 0 1px rgba(83, 113, 172, .2); }
/* card: DockCardPalette (header / preview / footer / text / image opacity / expander) per state.
   owner 2026-10-26 (mockup «Card»): ONE palette for every card, tile and list row of every tool, both themes:
   normal; hover = blue; selected = soft green between the «Card» teal and sage: template lightness, hue 172, lower chroma (pass 6c; never blue). --p is the ground under the sheet, the sheet itself is the
   paper at opacity --o, so the visible sheet tint = mockup body colour (light: white / #EEF4FD / #F8FCFB; dark: #E4E7EC /
   #C5D8FF / #E2F4F4). Tiles and lists keep the darker normal ground of the «Tile» mockup; hover and selection are shared */
.dk-bc { --h: #8391AD; --p: #5B6981; --f: #9EA9C0; --t: #FFFFFF; --o: .85; --a: #9CC3FF; --dki-7EA6F8: var(--a); background: var(--h); cursor: pointer; }
.dk-bc.tile, .dk-bc.lrow, .dk-bc.nrow { --h: #6C7A96; --p: #616B81; --f: #6C7A96; } /* pass 6g: dark normal cards a little lighter (L+0.035) and 30 % less blue (OKLCH), hue kept */
.dk-bc.dk-bc:hover { --h: #6B82B3; --p: #A2B8E5; --f: #8198C7; --o: .5; --a: #C0D9FF; }
.dk-bc.dk-bc.sel { --h: #7A9596; --p: #B7D9DA; --f: #90ABAC; --o: .5; --a: #B8E6C0; } /* pass 6h (variant A): owner «Card» hue H199, lightness lowered to the softened cards (OKLCH L .65, C .030) */
/* owner 2026-10-27 (pass 6): source marks of one contrast (WCAG 3.4 on the selected tab, 2.9 on the card head):
   violet all, green project, gold disk, blue internet; on the mid-tone dark card head they are light tints */
.hd-dock:not([data-theme="light"]) .dk-bc { --dk-MkAll: #ECE0FF; --dk-MkProject: #CAE2D8; --dk-MkDisk: #F5E3C0; --dk-MkWeb: #CEE8FF; }
.dk-bc.dk-bc.cut { --h: #82739F; --p: #B0A3CF; --f: #9586B0; --o: .5; }
.hd-dock[data-theme="light"] .dk-bc.dk-bc { --h: #E5E8EE; --p: #FFFFFF; --f: #F0F3F9; --t: #1C3563; --o: 1; --a: #527ED0; } /* pass 6i: a drop of the panel cool hue (OKLCH H262, C .008), same lightness */
.hd-dock[data-theme="light"] .dk-bc.dk-bc:hover { --h: #DDE5F0; --p: #D6E0EE; --f: #E8EDF4; --o: .7; --a: #3F5F94; }
.hd-dock[data-theme="light"] .dk-bc.dk-bc.sel { --h: #E2EDE1; --p: #EEFDED; --f: #F0F7F0; --o: .7; --a: #5C7B5C; }
.hd-dock[data-theme="light"] .dk-bc.dk-bc.cut { --h: #DCCFF1; --p: #E7DBFF; --f: #EEE4FA; --o: .7; }
.dk-bc-head { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-auto-flow: column; grid-auto-columns: auto; align-items: start; margin: 2px 0; }
.dk-bc-l { display: flex; align-items: flex-start; min-width: 28px; margin-top: 2px; }
button.dk-bc-exp { position: relative; flex: none; width: 16px; height: 16px; margin: 2px 0 0 1px; padding: 0; border: 0; border-radius: 2px; background: none; color: var(--a); cursor: pointer; }
.dk-bc-exp:hover:not([disabled]) { background: var(--dk-AccentSoft); }
.dk-bc-exp[disabled] { opacity: .76; cursor: default; }
.dk-bc-exp svg { position: absolute; left: 5px; top: 4px; display: block; }
.dk-bc-exp.open svg { transform: rotate(90deg); }
.dk-bc-num { margin-left: 4px; font-size: 13px; line-height: 19px; color: var(--t); white-space: nowrap; }
.dk-bc-mark, button.dk-bc-plus { position: relative; flex: none; display: block; width: 20px; height: 20px; margin-left: 2px; padding: 0; border: 0; border-radius: 2px; background: none; color: #16264E; }
.dk-bc-mark svg { position: absolute; left: 4px; top: 4px; display: block; }
.dk-bc-plus { cursor: pointer; }
.dk-bc-plus:hover { background: var(--dk-AccentSoft); }
.dk-bc-plus svg { position: absolute; left: 4px; top: 4px; display: block; }
.dk-ib.dk-bc-fav { margin: 1px 2px 0 2px; border-radius: 2px; }   /* 4 px from «more» (owner 2026-10-15: buttons never touch) */
.dk-bc-head.sheet .dk-ib.dk-bc-fav { margin-top: 0; }
.dk-ib.dk-bc-fav::before { display: none; }
.dk-ib.dk-bc-fav:hover { background: rgba(83, 113, 172, .12); box-shadow: inset 0 0 0 1px rgba(83, 113, 172, .2); }
/* owner 2026-10-16 (V31): the card heart is the filled heart in the panel accent: half transparent when off, solid when on */
.hd-dock .dk-bc-heart, .hd-dock[data-theme="light"] .dk-bc-heart { --dki-7EA6F8: var(--dk-PanelAccent); }
/* owner 2026-10-16 (V32): the state mark (green tick = placed, quiet plus = not placed) and the card commands coloured by
   meaning like the Materials row: green places, blue opens, neutral shows in Revit; quiet at rest, full colour under the pointer */
.dk-bc .dk-bc-mark { color: var(--dk-Add) !important; }
.dk-bc .dk-bc-mark.no { color: var(--dk-RowIcon) !important; opacity: .7; }
.dk-bc button.dk-bc-plus.t-add { color: var(--dk-Add) !important; }
.dk-ib.dk-bc-act { flex: none; margin: 0 0 0 4px; border-radius: 2px; }
.dk-ib.dk-bc-act::before { display: none; }
.dk-ib.dk-bc-act > svg { opacity: .8; transition: opacity var(--dk-out); }
.dk-ib.dk-bc-act:hover > svg { opacity: 1; transition-duration: var(--dk-in); }
.dk-ib.dk-bc-act:hover { background: rgba(83, 113, 172, .14); }
.dk-ib.dk-bc-act.t-add { color: var(--dk-Add) !important; } .dk-ib.dk-bc-act.t-inf { color: var(--dk-Inf) !important; } .dk-ib.dk-bc-act.t-neutral { color: var(--dk-RowIcon) !important; }
.dk-bc.lrow > .dk-bc-mark, .dk-bc.nrow > .dk-bc-mark { width: 21px; height: 21px; margin: 0 0 0 4px; }
.dk-bc-prev { position: relative; overflow: hidden; background: var(--p); }
.dk-bc-prev > svg { position: absolute; left: 1px; top: 1px; width: calc(100% - 2px); height: calc(100% - 2px); display: block; background: var(--dk-Paper); opacity: var(--o); }
.dk-bc-prev::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--dk-Contour); pointer-events: none; }
.dk-bc-none, .dk-bc-load { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 8px; background: var(--dk-Footer); text-align: center; }
.dk-bc-none { font-size: 11px; line-height: 13px; color: var(--dk-PanelText); }
.dk-bc-load { color: #5371AC; }
.dk-bc-load span { margin-top: 7px; font-size: 11px; line-height: 16px; color: var(--dk-PanelAccent); }
/* name strip: top line 1 + host padding 2 + rows 2 / text / 2; one line = 27 */
.dk-bc-name { min-height: 22px; padding: 5px 3px; border-top: 1px solid var(--dk-Contour); background: var(--f); color: var(--t); font-size: 12px; line-height: 16px; text-align: center; overflow-wrap: anywhere; }
.dk-bc-gap { height: 2px; background: var(--dk-Body); }
/* HD Browser views (round 13): tiles, list with pictures (44), list (25); the card palette (--h, --p, --t) and states are shared */
.dk-btiles { display: grid; align-items: start; } /* a card keeps its own height by the view proportion, never stretched to a taller neighbour */
.dk-bc.tile { position: relative; margin: 2px; display: flex; flex-direction: column; min-width: 0; }
.dk-bc.tile > .dk-bc-prev { margin: 0 2px; }
/* owner 2026-10-27 (light): a card has ONE outline; the picture lies on it, so only its top and bottom lines are seen */
.hd-dock[data-theme="light"] .dk-bc:not(.lrow):not(.nrow) { box-shadow: inset 0 0 0 1px var(--dk-Contour); }
.hd-dock[data-theme="light"] .dk-bc.tile > .dk-bc-prev { margin: 0; }
.dk-bc-tn { margin: 3px 4px 4px; height: 26px; font-size: 11px; line-height: 13px; text-align: center; color: var(--t); overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dk-bc.lrow, .dk-bc.nrow { display: flex; align-items: center; margin-bottom: 1px; white-space: nowrap; }
.dk-bc.lrow { height: 44px; }
.dk-bc.nrow { height: 25px; padding-left: 8px; }
.dk-bc-th { position: relative; flex: none; width: 52px; height: 37px; margin: 0 8px 0 4px; overflow: hidden; background: var(--p); }
.dk-bc-th > svg { position: absolute; left: 1px; top: 1px; width: 50px; height: 35px; display: block; background: var(--dk-Paper); opacity: var(--o); }
.dk-bc-th::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--dk-Contour); pointer-events: none; }
.dk-bc.lrow .dk-fr-tx > div { color: var(--t); }
.dk-bc.lrow .dk-fr-tx > .c { opacity: .8; }
.dk-bc-ln { flex: none; width: 44px; font-size: 12px; line-height: 16px; color: var(--t); overflow: hidden; text-overflow: ellipsis; }
/* the plain list names the kind of every row with the picture of its tab (25, native), in the tab colour */
/* owner 2026-10-16 (V31): the kind picture is a muted tone of its own, a step away from the name text, never white */
.dk-bc.nrow > .dk-bc-kind { flex: none; width: 25px; height: 25px; margin: 0 2px 0 -6px; color: var(--dk-RowIcon); }
.dk-bc.nrow > .dk-bc-kind > svg { display: block; }
.dk-bc.nrow > .nm { flex: 1 1 0; min-width: 0; font-size: 12px; line-height: 16px; color: var(--t); overflow: hidden; text-overflow: ellipsis; }
.dk-bc.lrow > .dk-bc-fav, .dk-bc.nrow > .dk-bc-fav { flex: none; margin: 0 2px 0 4px; }
/* STANDARD TRAY CARD (owner 2026-10-30, accepted in «Печать и Экспорт»; U.card({ std: true }) = class dk-bcs): the card of every list the user
   composes (print tray, view sets). ONE common outline: the picture lies edge to edge and the card outline is an overlay above picture and
   strips (a plain box-shadow would be hidden by them). Header 21 px with a native 15 px kind icon (U.cardKind) 7 px before the number, one line
   with the number and the cross. No reserved empty line under the caption: strips take only the height of their text. The «remove» cross is
   pinkish (console error tone), quiet at rest (.5) and full on hover. Dark: the dock tile palette also for big cards. WPF: GAP until HdCard has it. */
.hd-dock:not([data-theme="light"]) .dk-bc.dk-bcs:not(:hover):not(.sel):not(.cut) { --h: #6C7A96; --p: #616B81; --f: #6C7A96; }
.dk-bcs .dk-bc-head { margin: 1px 0; }
.dk-bcs .dk-bc-l { min-width: 0; align-items: center; margin-top: 2px; height: 19px; }
.dk-bcs .dk-bc-l > .dk-bcs-kind { margin: 0 7px 0 4px; }
.dk-bcs .dk-bc-num { margin-left: 0; }
.dk-bcs-kind { display: inline-flex; flex: none; align-items: center; color: var(--t); }
.dk-bcs-kind > svg { color: inherit !important; }
.dk-bc.lrow.dk-bcs > .dk-bcs-kind { margin: 0 8px 0 6px; }
.dk-bcs .dk-bc-prev > svg { left: 0; top: 0; width: 100%; height: 100%; }
.dk-bc.dk-bcs:not(.lrow):not(.nrow) { position: relative; }
.dk-bc.dk-bcs:not(.lrow):not(.nrow)::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--dk-Contour); pointer-events: none; z-index: 3; }
.dk-bc.dk-bcs.tile > .dk-bc-prev { margin: 0; }
.dk-bcs .dk-bc-name { min-height: 0; padding: 3px 3px 0; }
.dk-bcs .dk-bc-line { margin-top: 0; padding: 1px 3px 4px; }
.dk-bcs .dk-bc-gap { display: none; }
.dk-bcs .dk-bc-tn { height: auto; margin: 3px 4px 4px; }
.dk-bcs .dk-bc-tl { margin: 1px 4px 4px; }
.dk-bc.dk-bcs .dk-ib.dk-bc-more.rm, .dk-bc.dk-bcs .dk-ib.dk-bc-more.add { opacity: .5; transition: opacity .12s; }
.dk-bc.dk-bcs .dk-ib.dk-bc-more.rm { color: #E5ADB0; }
.hd-dock[data-theme="light"] .dk-bc.dk-bcs .dk-ib.dk-bc-more.rm { color: #864447; }
.dk-bc.dk-bcs .dk-ib.dk-bc-more.rm:hover { opacity: 1; background: var(--dk-DelBg); box-shadow: none; }
/* the «add» action is the mirror of the cross: add = green (console success tone), remove = pink-red */
.dk-bc.dk-bcs .dk-ib.dk-bc-more.add { color: #ABCCA0; }
.hd-dock[data-theme="light"] .dk-bc.dk-bcs .dk-ib.dk-bc-more.add { color: #4A6838; }
.dk-bc.dk-bcs .dk-ib.dk-bc-more.add:hover { opacity: 1; background: rgba(171, 204, 160, .18); box-shadow: none; }
.hd-dock[data-theme="light"] .dk-bc.dk-bcs .dk-ib.dk-bc-more.add:hover { background: rgba(74, 104, 56, .14); }
/* views placed on an expanded sheet (owner, 2026-10-14: the well with a caption looked foreign): rows of the card itself under the
   name strip, the same colours (--f, --t) and contour line; 25 px tab picture, name, two quiet 20 px actions (red only for delete) */
.dk-bc-vrow { display: grid; grid-template-columns: 25px minmax(0, 1fr) 20px 20px; column-gap: 4px; align-items: center; height: 25px; padding: 0 3px 0 2px; border-top: 1px solid var(--dk-Contour); background: var(--f); color: var(--t); cursor: pointer; }
.dk-bc-vrow:hover { background-image: linear-gradient(rgba(255, 255, 255, .14), rgba(255, 255, 255, .14)); }
.hd-dock[data-theme="light"] .dk-bc-vrow:hover { background-image: linear-gradient(rgba(28, 53, 99, .06), rgba(28, 53, 99, .06)); }
.dk-bc-vk { display: block; width: 25px; height: 25px; color: var(--t); opacity: .85; }
.dk-bc-vk > svg { display: block; }
.dk-bc-vrow > .nm { font-size: 12px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.dk-bc-va { position: relative; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 2px; background: none; color: var(--t); opacity: .7; cursor: pointer; }
.dk-bc-va:hover { opacity: 1; background: rgba(0, 0, 0, .14); }
.dk-bc-va.del { color: var(--dk-Del); } .dk-bc-va.del:hover { background: var(--dk-DelBg); color: var(--dk-Del); }
.dk-bc-va svg { position: absolute; left: 4px; top: 4px; display: block; }
/* service footer (row 28, element 29 overlapping the list by 1) and the chrome status bar */
.dk-bsvc, .dk-bstat { position: relative; z-index: 1; height: 29px; margin-top: -1px; background: var(--dk-Footer); }
.dk-bsvc { border-top: 1px solid var(--dk-PanelAccent); }
.dk-bsvc-pad { padding: 2px; }
button.dk-bact { display: block; width: 100%; height: 24px; padding: 0 10px; border: 1px solid var(--dk-BAction); border-radius: 3px; background: var(--dk-BAction); color: var(--dk-BActionText); font: 600 11px/16px Tahoma, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.dk-bact:hover { background: var(--dk-GroupHeaderHover); border-color: var(--dk-PanelAccent); }
.dk-bact:active { background: var(--dk-BActionDown); border-color: var(--dk-BActionDown); }
.dk-bact.big { height: 42px; padding: 0 8px; font-size: 13px; line-height: 19px; }
.hd-dock:not([data-theme="light"]) .dk-bact:hover { background: #6B82B3; border-color: #8198C7; } /* owner 2026-10-27: a soft grey-blue button, lighter on hover, no navy slab */
.dk-bstat { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; border-top: 1px solid var(--dk-Accent); }
.dk-bstat-t { margin: 0 6px 0 8px; font-size: 11px; line-height: 15px; color: var(--dk-PanelText); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-bstat-tr { height: 4px; margin: 0 8px 0 6px; border-radius: 2px; background: var(--dk-ProgTrack); overflow: hidden; }
.dk-bstat-tr > i { display: block; height: 4px; border-radius: 2px; background: var(--dk-Accent); }
button.dk-bstat-x { height: 18px; min-width: 74px; margin: 2px 8px 2px 2px; padding: 0 8px; border: 0; border-radius: 4px; background: var(--dk-BAction); color: var(--dk-BActionText); font: 600 11px/15px Tahoma, sans-serif; cursor: pointer; }
/* empty states (ModeEmptyStateOverlay, MissingPreviewEmptyStateOverlay) */
.dk-bempty, .dk-bmiss { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; background: var(--dk-Body); text-align: center; }
.dk-bempty { align-items: center; }
.dk-bempty-in { max-width: 198px; margin: -12px 12px 0; }
.dk-bempty-t, .dk-bmiss-t { font-size: 13px; line-height: 19px; font-weight: 600; color: var(--dk-PanelAccent); }
.dk-bempty-h { margin-top: 8px; font-size: 11px; line-height: 16px; font-weight: 600; color: var(--dk-PanelText); }
.dk-bmiss { padding: 0 8px; }
.dk-bmiss-t { margin-bottom: 12px; }
/* filter popup of the Browser search row: rows 28, icon 19, gap 6, active row = pressed background + semibold */
.hd-menu.dk-bmenu { min-width: 148px; padding: 0; background: var(--dk-PopBg); border: 1px solid var(--dk-PopBorder); }
.hd-menu.dk-bmenu .hd-menu-item { height: 28px; padding: 0 8px; gap: 6px; background: var(--dk-PopBg); color: var(--dk-PopText); font-size: 11px; line-height: 16px; cursor: pointer; }
.hd-menu.dk-bmenu .hd-menu-item:hover { background: var(--dk-PopHover); }
.hd-menu.dk-bmenu .hd-menu-item:active, .hd-menu.dk-bmenu .hd-menu-item.active { background: var(--dk-PopPressed); }
.hd-menu.dk-bmenu .hd-menu-item.active { font-weight: 600; }
.hd-menu .dk-mi-lib { flex: none; display: block; }
.hd-menu .dk-mi-key { margin-left: auto; padding-left: 24px; opacity: .7; }
/* context menu with pictures: rows 25, the 19 px icon 3 px from the top on whole pixels, text after a 32 px gutter */
.hd-menu.dk-imenu .hd-menu-item { height: 25px; padding: 0 12px 0 34px; }
/* one grid (owner 2026-10-15): the picture is a fixed 19 x 19 box at x 6, text at x 34 (gap 9), captions and separators start at the text */
.hd-menu.dk-imenu .hd-menu-item > .dk-mi-lib { position: absolute; left: 6px; top: 3px; width: 19px; height: 19px; overflow: hidden; }
.hd-menu.dk-imenu .hd-menu-item > .dk-mi-lib:not(svg) > * { width: 19px !important; height: 19px !important; max-width: 19px; max-height: 19px; object-fit: contain; display: block; }
.hd-menu.dk-imenu .hd-menu-item.disabled > .dk-mi-lib { opacity: .45; }
.dk-slide.io .hd-bt, .hd-seg.dk-io .hd-bt { display: none; }   /* round 19: a narrow choice shows its pictures only, the captions stay in the tips */
.hd-menu.dk-imenu .hd-menu-item > .dk-mi-sw { position: absolute; left: 9px; top: 6px; width: 13px; height: 13px; box-sizing: border-box; border: 1px solid rgba(0, 0, 0, .35); border-radius: 2px; }
.hd-menu.dk-imenu .hd-menu-sep { margin: 3px 8px 3px 34px; }
/* owner 2026-10-15: the card menu of the Browser: taller rows (28), quiet group captions, pictures tinted by meaning */
/* owner 2026-10-16: larger pictures, less empty space. Rows 30, the 24 px ladder drawing at x 6 / y 3 on whole pixels,
   a 19 px library icon (no good 24 px drawing) centred in the same 24 box at x 8 / y 5; text at x 38 */
.hd-menu.dk-imenu.dk-tall .hd-menu-item { height: 30px; padding-left: 38px; }
.hd-menu.dk-imenu.dk-tall .hd-menu-item > .dk-mi-lib { left: 8px; top: 5px; }
.hd-menu.dk-imenu.dk-tall .hd-menu-item > .dk-mi-lib.dk-mi-24 { left: 6px; top: 3px; width: 24px; height: 24px; }
.hd-menu.dk-imenu.dk-tall .hd-menu-item > .dk-mi-lib.dk-mi-25 { left: 3px; top: 3px; width: 25px; height: 25px; }
/* owner 2026-10-26 evening («слева отступ большой, сверху снизу меньше, там где текст — уже меньше»): the 25 px picture stands
   in a 31 x 31 square with 3 px on every side, the text 6 px after the square; the menu is only as wide as its text needs */
.hd-menu.dk-imenu.dk-tall .hd-menu-item { height: 31px; padding: 0 8px 0 37px; column-gap: 14px; }
.hd-menu.dk-imenu.dk-tall .dk-mi-key { padding-left: 0; }
/* the submenu arrow: a solid triangle 6 x 10 at the right edge, the row's text colour, clearly visible */
.hd-menu .dk-mi-key.dk-mi-sub { flex: none; width: 6px; height: 10px; padding: 0; font-size: 0; opacity: .85;
  background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.hd-menu.dk-imenu.dk-tall .hd-menu-sep { margin: 2px 8px 2px 37px; }
/* owner 2026-10-26: the card menu parts its groups by a dark strip over the whole width, no captions */
.hd-dock .hd-menu.dk-tall .hd-menu-sep { height: 2px; margin: 3px -4px; background: rgba(0, 0, 0, .30); opacity: 1; }
.hd-dock[data-theme="light"] .hd-menu.dk-tall .hd-menu-sep { background: rgba(0, 0, 0, .11); }
/* a row whose submenu is open keeps its hover look; the submenu stands beside it */
.hd-dock .hd-menu .hd-menu-item.open { background: var(--b-Hover); color: var(--dk-HoverText); }
.hd-menu.dk-submenu { z-index: 61; }
.hd-dock:has(.dk-submenu) { overflow: visible; }
.hd-menu.dk-imenu.dk-tall .hd-menu-item.dk-mi-cap { padding: 6px 8px 1px 38px; }
.hd-menu .hd-menu-item.dk-mi-cap, .hd-menu.dk-imenu .hd-menu-item.dk-mi-cap {
  height: auto; padding: 8px 8px 2px 34px; font-size: 10px; font-weight: bold; line-height: 13px; pointer-events: none; background: transparent; }
.hd-dock .hd-menu .hd-menu-item.dk-mi-cap.disabled { color: var(--dk-PanelText); opacity: .6; }
.hd-dock .hd-menu .dk-mi-lib.tn-ok { color: #9FCBB8; --c-IconDefault: #9FCBB8; }
.hd-dock .hd-menu .dk-mi-lib.tn-err { color: #CB9596; --c-IconDefault: #CB9596; }
.hd-dock[data-theme="light"] .hd-menu .dk-mi-lib.tn-ok { color: #3D7440; --c-IconDefault: #3D7440; }
.hd-dock[data-theme="light"] .hd-menu .dk-mi-lib.tn-err { color: #864447; --c-IconDefault: #864447; }
/* owner 2026-10-16: more colours by group: collections violet, preview cyan, print and export amber */
.hd-dock .hd-menu .dk-mi-lib.tn-vio { color: #BBA0DE; --c-IconDefault: #BBA0DE; }
/* owner 2026-10-26: cut and paste (moving sheets) get their own colour: peach; open / show: sky blue */
.hd-dock .hd-menu .dk-mi-lib.tn-mov { color: #D4B39F; --c-IconDefault: #D4B39F; }
.hd-dock[data-theme="light"] .hd-menu .dk-mi-lib.tn-mov { color: #23707A; --c-IconDefault: #23707A; }
.hd-dock .hd-menu .dk-mi-lib.tn-sky { color: #7EB2FF; --c-IconDefault: #7EB2FF; }
.hd-dock[data-theme="light"] .hd-menu .dk-mi-lib.tn-sky { color: #36589A; --c-IconDefault: #36589A; }
/* owner 2026-10-27: LIGHT theme only: no brown in menus (export = copper, moving sheets = teal, create = warmer green). Dark menu tones stay as before (owner: do not touch dark) */
.hd-dock .hd-menu .dk-mi-lib.tn-amb { color: #C4BBA3; --c-IconDefault: #C4BBA3; }
.hd-dock .hd-menu .dk-mi-lib.tn-gold { color: #D9C190; --c-IconDefault: #D9C190; }   /* owner 2026-10-26: preview was cold cyan, now warm gold */
.hd-dock[data-theme="light"] .hd-menu .dk-mi-lib.tn-vio { color: #6B4A99; --c-IconDefault: #6B4A99; }
.hd-dock[data-theme="light"] .hd-menu .dk-mi-lib.tn-amb { color: #93633D; --c-IconDefault: #93633D; }
.hd-dock[data-theme="light"] .hd-menu .dk-mi-lib.tn-gold { color: #755822; --c-IconDefault: #755822; }
/* owner, 2026-10-13: the pictures of a menu are not the colour of its text. Text = the popup text, pictures = the panel accent */
.hd-dock .hd-menu .hd-menu-item { color: var(--dk-PopText); }
.hd-dock .hd-menu .hd-menu-item.disabled, .hd-dock .hd-menu .hd-menu-item.disabled:hover { color: var(--b-DisabledStroke); }
.hd-dock .hd-menu .dk-mi-lib { color: var(--dk-PanelAccent); --c-IconDefault: var(--dk-PanelAccent); }
/* owner 2026-10-27 (LIGHT only): menu icons of one perceived contrast: plain icons (rename, renumber...) a little more saturated, the colourful view-set icons calmer */
.hd-dock[data-theme="light"] .hd-menu .dk-mi-lib { color: #3D62AA; --c-IconDefault: #3D62AA; }
.hd-dock[data-theme="light"] .hd-menu .dk-mi-lib[data-icon="menu.view_sets"], .hd-dock[data-theme="light"] .hd-menu .dk-mi-lib[data-icon="browser.sheet_sets"] { filter: saturate(.7); }
/* a picture menu with check marks: the mark at the right edge, 9 px from it */
.hd-menu.dk-imenu.dk-chk .hd-menu-item { padding-right: 30px; }
.hd-menu.dk-imenu .hd-menu-item > .dk-mi-chk { left: auto; right: 9px; top: 6px; }
/* settings page: padding 4,8,0,10; framed collapsible sections */
.dk-bset { display: flex; flex-direction: column; padding: 8px 0 10px 4px; }
.dk-bset > *, .dk-bsec > *, .dk-bsec-b > *, .dk-bfld > *, .dk-bset-grp > * { flex: none; }
.dk-bsec { display: flex; flex-direction: column; margin-bottom: 10px; border: 1px solid var(--dk-BorderDeep); background: var(--dk-Body); }
button.dk-bsec-h { display: flex; align-items: center; width: 100%; height: 30px; padding: 0 8px; border: 0; background: var(--dk-Body); color: var(--dk-PanelText); font-size: 11px; line-height: 14px; font-weight: 600; text-align: left; cursor: pointer; }
.dk-bsec-h:hover { background: var(--dk-CollSel); }
.dk-bsec-a { flex: none; display: block; margin-right: 8px; color: var(--dk-PanelHeader); }
.dk-bsec-a svg { display: block; }
.dk-bsec-b { display: flex; flex-direction: column; padding: 8px; }
.dk-bset-grp { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 4px; }
.dk-bset .hd-sel { height: 15px; margin: 0 0 4px -2px; font-size: 11px; cursor: pointer; }
.dk-bset .hd-sel-text { margin: 0 0 0 2px; color: var(--dk-PanelText); }
.dk-bfld { display: flex; flex-direction: column; margin-bottom: 8px; }
.dk-bfld-l { margin-bottom: 6px; font-size: 11px; line-height: 14px; font-weight: 600; color: var(--dk-Muted); }
.dk-bset .hd-tb { flex: none; height: 28px; border-color: var(--dk-BorderDeep); background: var(--dk-Body); }
.dk-bset .hd-tb:focus-within { border-color: var(--dk-PanelHeader); }
.dk-bset .hd-tb.ro { opacity: .85; }
.dk-bset .hd-tb-in { padding: 0 8px; font-size: 11px; text-align: center; color: var(--dk-PanelText); }
.dk-bset .hd-btn.s-compact { display: flex; width: 100%; min-width: 0; height: 30px; padding: 0; font-size: 11px; font-weight: 600;
  --bg: var(--dk-Body); --bd: var(--dk-BorderDeep); --fg: var(--dk-PanelText); --hbg: var(--dk-CollHover); --hbd: var(--dk-PanelHeader); --hfg: var(--dk-PanelText);
  --pbg: var(--dk-CollSel); --pbd: var(--dk-BtnPressed); --afg: var(--dk-PanelText); }
.dk-bset .hd-btn.s-compact.v-primary { --bg: var(--dk-PanelHeader); --bd: var(--dk-PanelHeader); --fg: #FFFFFF; --hbg: var(--dk-BtnPressed); --hbd: var(--dk-BtnPressed); --hfg: #FFFFFF;
  --pbg: var(--dk-BtnPressed); --pbd: var(--dk-BtnPressed); --afg: #FFFFFF; }
.dk-bset .hd-btn.s-compact .hd-face { padding: 0 8px; border-radius: 3px; }
.dk-bset .hd-btn.mt { margin-top: 8px; }
.dk-bset .hd-btn.mb { margin-bottom: 8px; }

/* detail host sized by its content (property blocks): the scroll lane is reserved always, or (auto) only on overflow */
.dk-dbox { height: 100%; background: var(--b-Property-Surface); }
.dk-dbox.auto:not(.over) > .dk-sc { right: 0; }
.dk-dbox.auto:not(.over) > .dk-lane { display: none; }

/* HD Viewer (round 7): four levels x three scopes; marks of what is changed; the lower block = summary of the view or the editor of one target */
.dk-htabs.off .dk-tabs-scroll { opacity: .45; pointer-events: none; }
.dk-vempty { position: relative; height: 150px; }
.dk-vmark { flex: none; display: block; width: 11px; height: 11px; margin-left: 4px; }
.dk-vmark > svg { display: block; }
/* where else the graphics of the row is set (owner, 2026-10-13: tell an override by element, by type and by filter apart):
   three places of 13 px that never move, the picture = the tab where that override lives */
.dk-vsrc { flex: none; display: flex; align-items: flex-start; width: 13px; height: 14px; margin-left: 4px; color: var(--dk-Muted); } /* 14 high: the 13 px picture lands on a whole pixel in the 26 px row */
.dk-row:hover > .dk-vsrc, .dk-row.sel > .dk-vsrc { color: var(--dk-PanelText); }
/* round 19: a marker has the tint of its kind, a little quieter at rest */
.dk-vsrc[class*="k-"] { opacity: .85; } .dk-row:hover > .dk-vsrc, .dk-row.sel > .dk-vsrc { opacity: 1; }
.dk-vsrc.k-cat, .dk-row > .dk-vsrc.k-cat { color: var(--dk-KCat); } .dk-vsrc.k-elm, .dk-row > .dk-vsrc.k-elm { color: var(--dk-KElm); }
.dk-vsrc.k-pha, .dk-row > .dk-vsrc.k-pha, .dk-row:hover > .dk-vsrc.k-pha, .dk-row.sel > .dk-vsrc.k-pha { color: var(--dk-KPha); }
.dk-vsrc.k-tpl, .dk-row > .dk-vsrc.k-tpl, .dk-row:hover > .dk-vsrc.k-tpl, .dk-row.sel > .dk-vsrc.k-tpl { color: var(--dk-Inf); }
.dk-vsrc.k-flt, .dk-row > .dk-vsrc.k-flt { color: var(--dk-KFlt); } .dk-vsrc.k-typ, .dk-row > .dk-vsrc.k-typ { color: var(--dk-KTyp); }
.dk-row:hover > .dk-vsrc.k-cat, .dk-row.sel > .dk-vsrc.k-cat { color: var(--dk-KCat); } .dk-row:hover > .dk-vsrc.k-elm, .dk-row.sel > .dk-vsrc.k-elm { color: var(--dk-KElm); }
.dk-row:hover > .dk-vsrc.k-flt, .dk-row.sel > .dk-vsrc.k-flt { color: var(--dk-KFlt); } .dk-row:hover > .dk-vsrc.k-typ, .dk-row.sel > .dk-vsrc.k-typ { color: var(--dk-KTyp); }
.dk-voff { flex: none; margin-left: 4px; font-size: 11px; line-height: 14px; color: var(--dk-Muted); }
.dk-vord { flex: none; width: 20px; text-align: center; font-size: 11px; line-height: 14px; color: var(--dk-Muted); }
.dk-vsp { flex: none; width: 20px; }
.dk-vmode { flex: none; margin-left: 8px; opacity: .75; }
.dk-row.dk-vdim > :not(button) { opacity: .5; }
.dk-vlock { box-sizing: border-box; display: flex; align-items: center; gap: 8px; min-height: 35px; padding: 0 4px 0 8px; border-bottom: 1px solid var(--dk-Contour); background: var(--dk-Footer); }
/* a sentence beside buttons: up to two lines inside the 35 px bar instead of a cut text */
.dk-vlock > .nm { flex: 1 1 0; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; line-height: 14px; }
.dk-vnote { padding: 6px 12px; font-size: 11px; line-height: 14px; color: var(--dk-Muted); white-space: normal; }
.dk-fpanel > .dk-vnote { padding: 0; }
.dk-vsum .dk-row { cursor: pointer; color: var(--b-Property-Text); }
.dk-vsum .dk-row > .dk-g8 { width: 12px; }
.dk-vval { flex: 0 1 auto; min-width: 0; margin: 0 8px; overflow: hidden; text-overflow: ellipsis; color: var(--dk-Muted); }
.dk-vsum > .hd-gpanel-acts { margin-top: 8px; margin-bottom: 8px; }
.dk-vask { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; line-height: 14px; }
/* the editor inside the block: the close cell keeps 4 px from the target field and the right edge of the rows below; the reason line is compact (one height of the block) */
.dk-vhost .hd-gpanel-scope > button { justify-self: end; margin-right: 1px; }
.dk-vhost .hd-gpanel-msg { padding: 0 8px 4px; }
/* Утилиты: the launch buttons of a draft tab stand in two equal columns */
.dk-ut-grid { display: grid; gap: 8px 4px; }
.dk-ut-grid > .hd-btn { min-width: 0; width: auto; }
/* Семейства, round 8. Equal text tabs of the head row (where to look): the width is given, the content is centred by the shell */
button.dk-tab.tx.eq { display: flex; flex-direction: column; align-items: flex-start; padding: 9px 0 0 0; text-align: left; }
/* with its picture: 4 + 13 (drawing) + 1 + 14 (caption) + 2 = the 34 px head row; both are centred by the shell */
button.dk-tab.tx.eq.ic { padding-top: 4px; }
.dk-tab.tx.eq.ic > .dk-ico { position: relative; left: 0; top: 0; margin: 0 0 1px 0; }
.dk-tab.tx.eq > span { display: block; margin-top: 0; }
/* the picture of a tab with a caption has the colour of the icon tabs (owner, 2026-10-14: never the colour of the text) */
.dk-tab.tx.ic > .dk-ico { color: var(--dk-HIcon); transition: color var(--dk-out); }
.dk-tab.tx.ic:hover > .dk-ico { color: var(--dk-HIconHover); transition-duration: var(--dk-in); }
.dk-tab.tx.ic.sel > .dk-ico { color: var(--dk-HIconOn); }
/* round 19: a tab of one kind has the tint of that kind (Viewer levels = the colours of its markers) */
.dk-tab.tx.ic[class*="tn-"] > .dk-ico { opacity: .85; } .dk-tab.tx.ic[class*="tn-"]:hover > .dk-ico, .dk-tab.tx.ic.sel[class*="tn-"] > .dk-ico { opacity: 1; }
.dk-tab.tx.ic.tn-cat > .dk-ico { color: var(--dk-KCat); } .dk-tab.tx.ic.tn-elm > .dk-ico { color: var(--dk-KElm); }
.dk-tab.tx.ic.tn-flt > .dk-ico { color: var(--dk-KFlt); } .dk-tab.tx.ic.tn-pha > .dk-ico { color: var(--dk-KPha); }
/* no room for the caption: the picture alone, in the middle of the cell (the shell sets its offsets) */
button.dk-tab.tx.eq.noc { padding-top: 0; }
.dk-tab.tx.eq.noc > span { display: none; }
/* a tile of a role has one line of facts under the name */
.dk-ccard.fam.fx { grid-template-rows: 25px minmax(0, 1fr) 32px 15px 25px; }
.dk-ccard-f { margin: 0 4px; font-size: 11px; line-height: 15px; text-align: center; color: var(--dk-PanelText); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the big card takes the whole width; its height follows the content */
.dk-ccard.fam.big { grid-template-rows: 25px auto auto auto 25px; }
.dk-ccard.fam.big > .dk-ccard-prev > svg { width: 86%; height: 86%; }
.dk-ccard.fam.big > .dk-ccard-name { margin: 8px 8px 0; font-size: 12px; line-height: 14px; }
.dk-ffacts { margin: 4px 8px 4px; display: flex; flex-direction: column; }
.dk-ffacts > div { display: flex; gap: 8px; height: 15px; font-size: 11px; line-height: 15px; white-space: nowrap; }
.dk-ffacts .k { flex: none; color: var(--dk-Muted); }
.dk-ffacts .v { flex: 1 1 0; min-width: 0; text-align: right; overflow: hidden; text-overflow: ellipsis; color: var(--dk-PanelText); }
/* names only: the favourite and «place» come under the pointer; a favourite that is on stays */
.dk-fn > .dk-ib.hov { opacity: 0; transition: opacity var(--dk-out); }
.dk-fn:hover > .dk-ib.hov, .dk-fn > .dk-ib.hov.fav { opacity: 1; }

/* ---- Browser, 2026-10-15: multi-selection, cut for moving (Ctrl+X), collections, renumbering, export ---- */
.dk-bc.cut { opacity: .45; }
/* the one card, family additions (2026-10-15): category caption in the head, square thumbnail, facts, the tag over the picture */
.dk-bc-cap { min-width: 0; margin: 2px 4px 0; font-size: 11px; line-height: 19px; color: var(--t); opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-bc .dk-ib.dk-bc-more, .dk-bc .dk-ib.dk-bc-at { flex: none; margin: 1px 2px 0 0; border-radius: 2px; color: var(--t); }
.dk-bc .dk-ib.dk-bc-more::before, .dk-bc .dk-ib.dk-bc-at::before { display: none; }
.dk-bc .dk-ib.dk-bc-more:hover, .dk-bc .dk-ib.dk-bc-at:hover { background: rgba(83, 113, 172, .12); box-shadow: inset 0 0 0 1px rgba(83, 113, 172, .2); }
.dk-bc-l > .dk-ib.dk-bc-at { margin: -1px 0 0 2px; }
/* owner 2026-10-27: family head = mark + category right beside it; «more» hidden at rest (the head was overloaded) */
.dk-bc.fam .dk-bc-l { min-width: 0; }
.dk-bc.fam .dk-bc-cap { margin-left: 1px; }
.dk-bc.fam .dk-ib.dk-bc-more { opacity: 0; transition: opacity var(--dk-out); }
.dk-bc.fam:hover .dk-ib.dk-bc-more, .dk-bc.fam.sel .dk-ib.dk-bc-more, .dk-bc.fam .dk-ib.dk-bc-more:focus-visible { opacity: 1; transition-duration: var(--dk-in); }
.dk-bc-th.sq { width: 37px; }
.dk-bc-th.sq > svg { width: 35px; }
.dk-bc-prev > .dk-ftag, .dk-bc-th > .dk-ftag { z-index: 1; }
.dk-bc-th > .dk-ftag { left: 1px; bottom: 1px; width: 26px; height: 13px; font-size: 9px; line-height: 13px; }
.dk-bc-line { padding: 0 3px 5px; margin-top: -3px; background: var(--f); color: var(--t); font-size: 11px; line-height: 13px; text-align: center; opacity: .85; }
.dk-bc-tl { margin: -2px 4px 4px; font-size: 11px; line-height: 13px; text-align: center; color: var(--t); opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dk-bc-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 8px; padding: 4px 8px 6px; border-top: 1px solid var(--dk-Contour); background: var(--f); color: var(--t); font-size: 11px; line-height: 15px; }
.dk-bc-facts > div { display: contents; }
.dk-bc-facts .k { opacity: .75; } .dk-bc-facts .v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-bc.lrow > .dk-ib, .dk-bc.nrow > .dk-ib { flex: none; margin: 0 2px 0 4px; color: var(--t); }
.dk-bc.lrow > .dk-ib::before, .dk-bc.nrow > .dk-ib::before { display: none; }
.dk-bc.lrow > .dk-ftag.in, .dk-bc.nrow > .dk-ftag.in { margin-right: 2px; }
.dk-bc.lrow > .dk-exp { flex: none; margin-left: 2px; }
.dk-bc.dk-fn > .dk-ib.hov { opacity: 0; } .dk-bc.dk-fn:hover > .dk-ib.hov, .dk-bc.dk-fn > .dk-ib.hov.fav { opacity: 1; }
.dk-bl.cutting .dk-bc:not(.cut) { cursor: copy; }
.dk-bc.ins-b { box-shadow: inset 0 2px 0 var(--dk-Move); }
.dk-bc.ins-a { box-shadow: inset 0 -2px 0 var(--dk-Move); }
.dk-bmove { position: fixed; z-index: 9999; pointer-events: none; height: 22px; line-height: 20px; padding: 0 8px; border-radius: 3px;
  font: 11px Tahoma, sans-serif; color: #101B36; background: var(--dk-Move); border: 1px solid rgba(0,0,0,.25); white-space: nowrap; }
.dk-bcwrap { display: flex; flex-direction: column; height: 100%; }
.dk-bcwrap > .dk-bempty { flex: 1 1 0; }
.dk-bcstrip { margin-bottom: 8px; }
.dk-bcstrip > .fill { display: flex; align-items: center; }
.dk-bcstrip .nm { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.dk-bcstrip .n { color: var(--dk-Muted); font-variant-numeric: tabular-nums; }
.dk-bcoll { display: flex; flex-direction: column; gap: 8px; }
.dk-bcoll-r { position: relative; display: flex; align-items: center; gap: 4px; min-height: 27px; padding: 0 0 0 10px; border: 1px solid var(--dk-PanelLine); border-radius: 3px; }
.dk-bcoll-r::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; border-radius: 3px 0 0 3px; background: transparent; }
.dk-bcoll-r:hover { background: var(--dk-RowHover); }
.dk-bcoll-r:hover::before { background: var(--dk-PanelAccent); }
.dk-bcoll-r.on { background: var(--dk-RowSel); }
.dk-bcoll-r.on::before { background: var(--dk-CollMark); }
.dk-bcoll-empty { padding: 16px 8px; text-align: center; border: 1px dashed var(--dk-PanelLine); border-radius: 3px; }
.dk-bcoll-empty .dk-bempty-h { margin-top: 4px; }
.hd-dock { --dk-CollMark: #6FB7B9; }
.hd-dock[data-theme="light"] { --dk-CollMark: #3E8A8C; }
.dk-bcoll-r .nm { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dk-PanelText); }
.dk-bcoll-n { min-width: 36px; padding-right: 4px; text-align: right; color: var(--dk-Muted); font-variant-numeric: tabular-nums; }
.dk-brn { display: flex; flex-direction: column; }
.dk-brn-r { display: flex; align-items: center; gap: 8px; height: 22px; padding: 0 4px; color: var(--dk-PanelText); font-variant-numeric: tabular-nums; }
.dk-brn-r:nth-child(even) { background: var(--dk-RowHover); }
.dk-brn-r .o { width: 44px; color: var(--dk-Muted); }
.dk-brn-r .ar { color: var(--dk-Muted); }
.dk-brn-r .n { width: 44px; font-weight: 600; }
.dk-brn-r .nm { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-brn-r.same { opacity: .55; }
.dk-brn-r.same .n { font-weight: normal; }
.dk-brn-r.bad, .dk-brn-r.bad .o, .dk-brn-r.bad .ar { color: var(--dk-Bad); }
.dk-brn-more { padding: 4px; color: var(--dk-Muted); }
.dk-bhist { display: flex; flex-direction: column; }
.dk-bhist-r { display: flex; align-items: center; gap: 4px; height: 22px; padding: 0 0 0 8px; cursor: pointer; color: var(--dk-PanelText); }
.dk-bhist-r:hover { background: var(--dk-RowHover); }
.dk-bhist-r.on { background: var(--dk-RowSel); }
.dk-bhist-r.off { opacity: .45; cursor: default; }
.dk-bhist-r .nm { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dk-bhist-r .dk-bpin { color: var(--dk-Muted); }
.dk-bhist-r .dk-bpin.on { color: var(--dk-Inf); }
.dk-ed-foot .grow.warn { color: var(--dk-Warn); }
.dk-ed-foot .grow.bad { color: var(--dk-Bad); }

/* One height in a row (owner, 2026-10-15: "combo and button heights in one row must be equal"): a compact button in a dock
   .fill row that holds a 25 px field takes the field height (cell 27, face 25, the same top edge), as .hd-row does in hdui.css. */
.fill:has(> :is(.hd-combo:not(.tall), .hd-num, .hd-tb, .hd-nb, .hd-sel)) > .hd-btn.s-compact { height: 27px; }
.fill:has(> :is(.hd-combo:not(.tall), .hd-num, .hd-tb, .hd-nb, .hd-sel)) > .hd-btn.io.s-compact { width: 27px; }

/* owner 2026-10-15: Delete asks first; after it a framed card «Лист удалён · Отменить» for 6 s over the status line */
.dk-del-q { font-weight: bold; color: var(--dk-PanelText); }
.dk-del-list { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border: 1px solid var(--dk-Contour); border-radius: 3px; }
.dk-del-row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dk-PanelText); }
.dk-del-row.more, .dk-del-hint { color: var(--dk-Muted); }
.dk-undo { position: absolute; left: 8px; right: 8px; bottom: 34px; z-index: 40; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; overflow: hidden;
  border: 1px solid var(--dk-Contour); border-radius: 3px; background: var(--dk-Footer); color: var(--dk-PanelText); box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.dk-undo .grow { flex: 1 1 auto; }
.dk-undo-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--dk-PanelAccent); transform-origin: left center; }

.hd-dock:not([data-theme="light"]) .dk-bc-vrow { background: #3A4558; color: #C2CEE4; }
.hd-dock:not([data-theme="light"]) .dk-bc-vrow:hover { background: #4A5A75; background-image: none; }
.hd-dock:not([data-theme="light"]) .dk-bc-vrow .dk-bc-vk, .hd-dock:not([data-theme="light"]) .dk-bc-vrow .dk-bc-va:not(.del) { color: inherit; }
.hd-dock:not([data-theme="light"]) .dk-bc-vrow:hover { color: var(--dk-HoverText); }

/* owner 2026-10-15 (repeated): light (white) text only under the pointer; at rest every name and menu row keeps the
   restrained tone (NameText / PopText #C2CEE4 dark); the rail icons are a calm light tone, brighter on hover */
.hd-dock .dk-row:hover > .nm, .hd-dock .dk-group:hover > .nm, .hd-dock .dk-card-item:hover > .nm, .hd-dock .dk-mrow:hover > .nm,
.hd-dock .dk-rev:hover > .nm, .hd-dock .dk-fr:hover .dk-fr-tx > .n, .hd-dock button.dk-find-row:hover,
.hd-dock .hd-menu .hd-menu-item:hover, .hd-menu.dk-bmenu .hd-menu-item:hover, .hd-dock .dk-nav:hover .dk-nav-t { color: var(--dk-HoverText); transition: color var(--dk-in); }

/* owner 2026-10-27 («мерзкий салатовый … нигде»): inside the dock the green icon tone is a sea green (hue ~155), never the lime #A7C99F / #357426 */
.hd-dock:not([data-theme="light"]) { --hd-tn-green: #9FCBB8; --c-IconToneSuccess: #9FCBB8; }
.hd-dock[data-theme="light"] { --hd-tn-green: #2F7356; --c-IconToneSuccess: #2F7356; --b-StateSuccessBorder: #86B0A2; }
/* owner 2026-10-27: numeric +/- rest quiet (low contrast) and become contrasting only under the cursor */
.hd-dock { --b-NumericGlyph: #7D91B0; --b-NumericSpinButtonHoverGlyph: #DCE6FA; --b-NumericSpinButtonActiveGlyph: #FFFFFF; }
.hd-dock[data-theme="light"] { --b-NumericGlyph: #A3ADC2; --b-NumericSpinButtonHoverGlyph: #1C3563; --b-NumericSpinButtonActiveGlyph: #1F4388; }
/* owner 2026-10-27: light dock success button = the soft sea-green of the light selection (D5EAE3), never salad/olive/lime */
.hd-dock[data-theme="light"] { --b-ButtonSuccessBg: #B9D6CC; --b-ButtonSuccessHoverBg: #A9CBBF; --b-ButtonSuccessPressedBg: #96BDAF; --b-ButtonSuccessText: #24493F; --b-StateSuccessBorder: #8DB4A6; } /* owner 2026-10-27: a button is a button, but soft: a light sage fill, clearly more active than the pale hover, never a dark slab */
/* ===== owner 2026-10-15 («белый шрифт только при наведении», «винегрет»): ONE text scale for every control of the dark dock.
   rest = NameText #C2CEE4 · not chosen = the same at .55 · hover = HoverText #E4EAF4 · filled buttons = a tinted, not white, text.
   Checked by hdui-audit.js (C1/C2) before any showing. ===== */
.hd-dock:not([data-theme="light"]) {
  --b-ButtonText: var(--dk-NameText); --b-ButtonTextActive: var(--dk-NameText); --b-ButtonTextHover: var(--dk-HoverText);
  --b-ButtonSecondaryText: var(--dk-NameText); --b-ButtonSecondaryTextActive: var(--dk-NameText); --b-ButtonSecondaryTextHover: var(--dk-HoverText);
  --b-ButtonSubtleText: var(--dk-NameText); --b-ButtonSubtleTextActive: var(--dk-NameText); --b-ButtonSubtleTextHover: var(--dk-HoverText);
  --b-TabActiveText: var(--dk-NameText);
  /* owner 2026-10-27: the success button («Разместить», «Применить») of the dark dock is the selection teal, no lime */
  --b-ButtonSuccessBg: #6A8780; --b-ButtonSuccessHoverBg: #77948D; --b-ButtonSuccessPressedBg: #84A19A;
  --b-ButtonSuccessText: #F0F7F5; --b-StateSuccessBorder: #84A19A; --b-ButtonDangerText: #E0CDD1; --b-ButtonFilledText: var(--dk-NameText);
  /* owner 2026-10-16 (G37): no white icons; the combo chevron and text keep the same scale as every row */
  --b-ComboGlyph: var(--dk-RowIcon); --b-ComboText: var(--dk-NameText);
}
/* owner 2026-10-16 (G37, one rule for the whole dock): an icon WITHOUT a meaning colour is the muted RowIcon, one step below its
   text (NameText); it lights up together with the text under the pointer. Toned icons (green, red, blue) keep their meaning colour */
.hd-dock .hd-btn:not([class*="tone-"]):not([class*="hint-"]):not(.v-success):not(.v-danger):not(.v-primary) .hd-face svg,
.hd-dock .hd-btn:not([class*="tone-"]):not([class*="hint-"]):not(.v-success):not(.v-danger):not(.v-primary) .hd-face .hd-glyph { color: var(--dk-RowIcon); --tn: var(--dk-RowIcon); transition: color var(--dk-out); }
.hd-dock .hd-btn:not([class*="tone-"]):not([class*="hint-"]):not(.v-success):not(.v-danger):not(.v-primary):hover:not(:disabled) .hd-face svg,
.hd-dock .hd-btn:not([class*="tone-"]):not([class*="hint-"]):not(.v-success):not(.v-danger):not(.v-primary):hover:not(:disabled) .hd-face .hd-glyph { color: var(--dk-HoverText); transition-duration: var(--dk-in); }
.hd-dock:not([data-theme="light"]) .hd-btn.v-success:hover:not(:disabled) .hd-face,
.hd-dock:not([data-theme="light"]) .hd-btn.v-danger:hover:not(:disabled) .hd-face { color: var(--dk-HoverText); }
/* sliding choice: the chosen caption on its plate = rest tone; the other one restrained (.55); under the pointer only its text lights up */
.hd-dock:not([data-theme="light"]) .hd-slide > .hd-btn .hd-face { color: var(--dk-NameText); opacity: .55; }
.hd-dock:not([data-theme="light"]) .hd-slide > .hd-btn.on .hd-face { color: var(--dk-NameText); opacity: 1; }
.hd-dock:not([data-theme="light"]) .hd-slide > .hd-btn:hover:not(:disabled) .hd-face { color: var(--dk-HoverText); opacity: 1; }
/* owner 2026-10-15: two picture buttons side by side never touch, 4 px between them (found by hdui-audit G1) */
/* owner 2026-10-16 (H21): the pick stands 4 px after the filter tile on the common grid, its column carries no extra margin */
.dk-search > .dk-filter + .dk-filter { margin-left: 0; }
.dk-comp-in > .dk-ag-voice { margin-right: 4px; }

/* owner 2026-10-16 (H23): the head of every tool is three equal static strips of 35 px: the dark title strip, the search strip,
   the settings strip. Nothing in them changes height from tool to tool, so nothing jumps when the tool is switched.
   25 px tiles and fields stand 5 | 25 | 5, 27 px buttons 4 | 27 | 4, the 31 px view switch 2 | 31 | 2, all on whole pixels.
   Static: the settings cell (34 x 35), the filter, the pick, the field, the heart. Only the tool's own buttons change */
.hd-dock .dk-title, .hd-dock .dk-title-sw, .hd-dock .dk-title-x { height: 35px; }
/* owner 2026-10-27: the tab strip fills the whole 35 px strip from its top edge (no half-pixel centring of a 34 px row), the
   selected plate covers the bottom rule and joins the strip below (no line under it), and the first tab stands at the left
   edge: the unused width of a tool without a name stays on the right, not in the 1 px name slot before the tabs */
.hd-dock .dk-htabs { align-self: flex-start; height: 35px; --th: 35px; }
.hd-dock .dk-title:not(.named) > .dk-title-sw { flex: 0 0 0; }
/* owner 2026-10-27: one 5 px step down the whole head: tab rule | 5 | search field 25 | 5 | settings controls 29 | 5 | body.
   The search strip has no line under it, so the settings strip is 34 px and its controls (29 px visible, inside a 31 px box with
   a 1 px clear edge) start at its top edge: 5 px under the field and 5 px above the body, the gear on the same centre line */
.hd-dock { grid-template-rows: 35px 35px 34px minmax(0, 1fr) auto auto auto; }
.hd-dock .dk-tb.fv .dk-mhead > * { margin-top: -1px; }
.hd-dock .dk-gear > .dk-ico { top: 5px; }
.hd-dock .dk-search { height: 35px; }
.hd-dock button.dk-filter { height: 35px; }
.hd-dock .dk-filter-tile { top: 5px; }
.hd-dock .dk-sfield { margin-top: 5px; margin-bottom: 5px; }
.hd-dock .dk-search:not(.x3):not(.tr) .dk-sfield { margin-right: 5px; } /* owner 2026-10-27: the field ends 5 px off the edge, on the same line as the settings controls */
.hd-dock .dk-sextra.fav { padding-top: 5px; }
.hd-dock .dk-tb, .hd-dock .dk-tb.acts, .hd-dock .dk-tb.fv, .hd-dock .dk-tb.sec, .hd-dock .dk-tb.none, .hd-dock .dk-tb.mcmd { height: 34px; }
/* owner 2026-10-27: the gear is one pixel taller than its 34 px strip, so its bottom line lies on the body rule (first body row), not one row above it */
.hd-dock button.dk-gear { height: 35px; min-height: 35px; align-self: start; }
.hd-dock .dk-tb .dk-mhead, .hd-dock .dk-tb.acts .dk-mhead, .hd-dock .dk-tb.sec .dk-mhead { align-items: flex-start; padding-top: 0; padding-bottom: 0; }
.hd-dock .dk-tb.fv .dk-mhead { align-items: flex-start; padding: 0 4px; } /* owner 2026-10-27: 5 px visible from the gear and the edge, as on every tab */
.hd-dock .dk-mcmd { align-self: stretch; align-items: flex-start; padding: 0 4px; }
/* owner 2026-10-27 (сетка на всех вкладках): every tool's settings strip has the same 5 | 29 | 5 step as Browser: the 29 px controls
   start at the strip top (their 31 px box has a 1 px clear edge), a smaller control is centred in that 29 px band */
.hd-dock .dk-tb .dk-mhead > * { margin-top: -1px; }
.hd-dock .dk-mcmd > * { margin-top: 2px; } /* Viewer / Materials keep their 25 px controls, centred like Browser's small buttons: 2 | 25 | 2 */
.hd-dock .dk-title-x > .dk-hacts { height: 35px; }
/* owner 2026-10-16 (M23): the choice takes all the room the buttons leave (also when «Копировать» drops its name) */
.hd-dock .dk-mcmd > .dk-slide.grow { flex: 1 1 0; min-width: 0; }
/* owner 2026-10-16 (M24, M25): «Удалить» in the Materials row is not filled: the quiet face and outline of the other buttons with
   the red icon; the red outline comes only under the pointer */
/* owner 2026-10-27 (K): the three material buttons beside «Все / Выделено» read as light as the choice: the same 25 px band,
   a 15 px icon with 5 px air on every side and the choice track's quiet outline at rest (the state outline comes under the pointer) */
.hd-dock .dk-mcmd > .hd-btn .hd-face > .hd-bl > svg, .hd-dock .dk-mcmd > .hd-btn .hd-face svg { width: 15px; height: 15px; }
.hd-dock .dk-mcmd > .hd-btn:not(:hover):not(:active) .hd-face { border-color: var(--b-PanelBorder); }
.hd-dock .hd-btn.dk-del-line { --hbd: var(--b-StateDangerBorder); --pbd: var(--b-StateDangerBorder); }
.hd-dock .hd-btn.dk-del-line .hd-face, .hd-dock .hd-btn.dk-del-line:hover:not(:disabled) .hd-face { color: var(--b-StateDangerBorder); }
.hd-dock .hd-btn.dk-del-line .hd-face svg { color: var(--b-StateDangerBorder) !important; }
/* owner 2026-10-16 (A7): «Группы» and every secondary toggle of the dock rows stay DARK when on (no light #556B8E plate,
   Pavel: "white" is banned); the state shows only by the caption and icon lighting up in the accent colour */
.hd-dock .hd-toggle.v-secondary.on .hd-face { background: var(--b-ButtonSecondaryBg); border-color: var(--b-ButtonSecondaryBorder); color: var(--dk-PanelAccent); }
.hd-dock .hd-toggle.v-secondary.on .hd-face svg { color: var(--dk-PanelAccent); }
.hd-dock .hd-toggle.v-secondary.on:hover:not(:disabled) .hd-face { background: var(--b-ButtonSecondaryHoverBg); color: var(--dk-HoverText); }
.hd-dock .hd-toggle.v-secondary:not(.on) .hd-face { color: var(--dk-NameText); }

/* Tool collections use the same semantic brushes as WPF CollectionItemRowA/Hover/Selected.
   Explicit scope keeps the accepted Browser palette intact. Card variables are important
   because Browser has historical selectors for each theme, state and presentation mode. */
.hd-dock[data-card-palette="collection"] {
  --dk-Body: var(--b-Level1Bg);
  --dk-PanelText: var(--b-Text);
  --dk-NameText: var(--b-TextStrong);
  --dk-HoverText: var(--b-TextStrong);
}
.hd-dock[data-card-palette="collection"] .dk-bc:not(.cut) {
  --h: var(--b-CollectionItemRowA) !important;
  --p: var(--b-Level2Bg) !important;
  --f: var(--b-CollectionItemRowA) !important;
  --t: var(--b-Text) !important;
}
.hd-dock[data-card-palette="collection"] .dk-bc:not(.cut):hover {
  --h: var(--b-CollectionHover) !important;
  --f: var(--b-CollectionHover) !important;
}
.hd-dock[data-card-palette="collection"] .dk-bc:not(.cut).sel {
  --h: var(--b-CollectionSelected) !important;
  --f: var(--b-CollectionSelected) !important;
}
/* Section Box «Этажи» (owner 2026-10-27): icon · caption of one width · control; «До Этажа» lines up with the numbers */
.dk-flv-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dk-flv-row > .hd-combo, .dk-flv-half > .hd-num { flex: 1 1 0; min-width: 0; width: auto !important; }
.dk-flv-half { display: flex; align-items: center; gap: 4px; flex: 1 1 0; min-width: 0; }
.dk-flv-cap { display: flex; align-items: center; gap: 5px; flex: none; width: 66px; white-space: nowrap; }
.dk-flv-row > .dk-flv-cap { margin-right: -4px; }
.dk-flv-ic { flex: none; color: var(--dk-PanelAccent); }
/* owner 2026-10-27 (pass 6l): text is never tinted without a meaning. Captions of buttons, toggles, tabs, combos, popup rows and
   group headers take the ordinary panel text; the colour lives in the ICON only. Meaning keeps its colour: console lines, statuses,
   review marks, errors, badges, disabled. Filled faces (primary / filled, and dark success / danger) keep their contrast text. */
.hd-dock, .hd-dock[data-theme] {
  --b-ButtonSecondaryText: var(--dk-NameText); --b-ButtonSecondaryTextHover: var(--dk-HoverText); --b-ButtonSecondaryTextActive: var(--dk-HoverText);
  --b-ButtonSubtleText: var(--dk-NameText); --b-ButtonSubtleTextHover: var(--dk-HoverText); --b-ButtonSubtleTextActive: var(--dk-HoverText);
  --b-ButtonText: var(--dk-NameText); --b-ButtonTextHover: var(--dk-HoverText); --b-ButtonTextActive: var(--dk-HoverText);
  --b-ComboText: var(--dk-NameText); --b-ComboActiveText: var(--dk-NameText); --b-ComboActiveGlyph: var(--dk-RowIcon); --b-SelectionText: var(--dk-NameText);
  --b-TabActiveText: var(--dk-NameText); --b-TabHoverText: var(--dk-HoverText); --b-Property-Title: var(--dk-NameText);
}
.hd-dock[data-theme="light"] { --b-ButtonSuccessText: var(--dk-NameText); --b-ButtonDangerText: var(--dk-NameText); --b-ButtonWarningText: var(--dk-NameText); }
.hd-dock[data-theme="light"] .hd-btn.v-success { --fg: var(--dk-NameText); }
.hd-dock .hd-btn:not(:disabled):not(.v-filled):not(.v-primary):not(.v-success):not(.v-danger) .hd-bt { color: var(--dk-NameText); }
.hd-dock[data-theme="light"] .hd-btn:not(:disabled):is(.v-success, .v-danger, .v-warning) .hd-bt { color: var(--dk-NameText); }
.hd-dock .hd-btn:hover:not(:disabled):not(.v-filled):not(.v-primary):not(.v-success):not(.v-danger) .hd-bt { color: var(--dk-HoverText); }
.hd-dock .hd-toggle.v-secondary.on .hd-face .hd-bt { color: var(--dk-NameText); }
.hd-dock .dk-tab.tx > span, .hd-dock .dk-tab.tx.sel > span { color: var(--dk-NameText); }
.hd-dock .dk-tab.tx:hover > span { color: var(--dk-HoverText); }
.hd-dock .hd-lv-title { color: var(--dk-NameText); }
/* soft body fill of outline glyphs on every dock button (pass 6l), the same one 20 % layer as the folder fill */
.hd-dock button svg .dk-soft { fill: currentColor; fill-opacity: .2; stroke: none; }
/* a toggle that is ON keeps its accent icon above the muted-icon rule */
.hd-dock .hd-btn.hd-toggle.v-secondary.on:not([class*="tone-"]):not([class*="hint-"]):not(.v-success):not(.v-danger):not(.v-primary) .hd-face svg { color: var(--dk-PanelAccent); }
/* the bin of a red (danger) button is a quieter red: 75 % of the tone over the face, so delete does not shout louder than the rest */
.hd-dock .hd-btn.tone-danger .hd-face svg[data-icon="delete"] { color: color-mix(in srgb, var(--tn) 75%, var(--b-ButtonSecondaryBg)); }
/* Pass 6m (owner, 2026-10-26). Family tree in light: a calm step from the darkest category row through a lighter family row
   to near-white names. The footer slide sits on the grey footer: an inset track a step darker than the footer, a white thumb.
   Alignment icon light tones one step deeper so the drawing does not wash out. */
.hd-dock[data-theme="light"] .dk-ftree .dk-row:not(.h32):not(:hover) { background: #E8EBEF; }
.hd-dock[data-theme="light"] .dk-ftree .dk-bc.dk-bc:not(:hover):not(.sel):not(.cut) { --h: #FCFDFE; }
.hd-dock[data-theme="light"] .dk-ftree .dk-type:not(:hover) { background: #FCFDFE; }
.hd-dock[data-theme="light"] .dk-foot .hd-slide-track { background: #DCDFE4; border-color: #C3C8D0; }
.hd-dock[data-theme="light"] .dk-foot .hd-slide-thumb { background: #FFFFFF; }
/* Pass 6n (owner, 2026-10-26). Family tree in dark starts from the light name cards he likes (one hair darker), the family
   rows are lifted toward them and the category rows a little, so the three steps read as nuances. */
.hd-dock[data-theme="dark"] .dk-ftree .dk-row.h32:not(:hover) { background: #3D495E; }
.hd-dock[data-theme="dark"] .dk-ftree .dk-row:not(.h32):not(:hover) { background: #4D5A71; }
.hd-dock[data-theme="dark"] .dk-ftree .dk-bc.nrow:not(:hover):not(.sel):not(.cut),
.hd-dock[data-theme="dark"] .dk-ftree .dk-bc.lrow:not(:hover):not(.sel):not(.cut) { --h: #65738E; }
.hd-dock[data-theme="dark"] .dk-ftree .dk-row:hover { background: #57657E; }
/* The family sheet: a quiet head without lines, a square picture beside the facts, the types under the actions. */
.dk-ed-head { background: transparent; border-bottom: 0; color: var(--dk-Muted); font-weight: 400; }
.dk-fd-top { display: flex; gap: 12px; align-items: flex-start; }
.dk-fd-top > .dk-fd-prev { width: 168px; height: 168px; }
.dk-fd-info { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 7px; padding-top: 2px; }
.dk-fd-fact { display: flex; gap: 6px; font-size: 12px; line-height: 15px; min-width: 0; }
.dk-fd-at { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 15px; color: var(--dk-PanelText); min-width: 0; }
.dk-fd-at > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hd-dock .dk-fd-dir { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; margin-left: -8px; border: 0; background: transparent; font: inherit; font-size: 12px; color: var(--dk-Inf); cursor: pointer; }
.hd-dock .dk-fd-dir:hover { background: var(--dk-RowHover); color: var(--dk-HoverText); }
.dk-fd-fact > .k { flex: none; color: var(--dk-Muted); }
.dk-fd-fact > .v { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dk-PanelText); }
.dk-fd-types { display: flex; flex-direction: column; border-top: 1px solid var(--dk-PanelLine); padding-top: 4px; }
.dk-fd-tcap { display: flex; align-items: center; height: 22px; padding: 0 2px 0 8px; font-size: 11px; color: var(--dk-Muted); }
.dk-fd-tcap > span:first-child { flex: 1 1 0; }
/* Pass 6o (owner 2026-10-26): no colourless black icons in the lists; the category picture takes a calm blue of the panel hue.
   Names rest below full white (dark) / full black (light), so hover and selection keep a soft step up. */
.hd-dock[data-theme="light"] .dk-row .dkm-box { color: #55709F; }
.hd-dock[data-theme="dark"] .dk-row .dkm-box { color: #A9C0EE; }
.hd-dock[data-theme="dark"] .dk-bc:not(:hover):not(.sel) { --t: #DDE4F0; }
.hd-dock[data-theme="light"] .dk-bc.dk-bc:not(:hover):not(.sel) { --t: #2A4170; }

/* pass 6p, owner 2026-10-26: the empty head row and settings row of Align and Selection are filled.
   Align head: anchor choice | selection count | repeat the last command; Align settings row: step and gap.
   Selection head: history combo | back | forward; Selection settings row: where to search */
.dk-hacts.alh, .dk-hacts.hist { flex: 1 1 0; min-width: 0; gap: 4px; padding: 0 4px; }
.dk-hacts.alh > .grow, .dk-hacts.hist > .hd-combo { flex: 1 1 0; min-width: 0; }
.dk-hacts.alh > .hd-btn, .dk-hacts.hist > .hd-btn { flex: none; }
.dk-title:has(.dk-hacts.hist), .dk-title-x:has(> .dk-hacts.hist) { overflow: visible; }
.dk-al-cnt { flex: none; padding: 0 4px; font-size: 12px; line-height: 15px; color: var(--dk-PanelText); white-space: nowrap; }
.dk-al-rep { position: relative; display: block; width: 19px; height: 19px; }
/* the fields stand on the same middle line as the choices in the rows beside the settings cell of the other tools (173..200) */
/* Align step / gap row stands in the second row (instead of the search field): centred on its height */
.hd-dock .dk-al-set { gap: 6px; flex: 1 1 auto; min-width: 0; align-items: center; }
.hd-dock .dk-al-set > * { margin-top: 0; margin-bottom: 0; }
.dk-al-lab { flex: none; font-size: 12px; line-height: 15px; color: var(--dk-PanelText); white-space: nowrap; }
/* a number field never stretches (HDTOOLS_UI_RULES): it keeps its 95; the free width stands between the two settings (WPF AlignmentModule) */
.dk-al-lab + .hd-num { flex: none; }
/* Pavel 06.11: the two settings stand packed at the left, beside the gear, with no empty gap between them */
.dk-al-set > .hd-num + .dk-al-lab { margin-left: 6px; }
/* a tool without search (WPF IDockModuleWithoutSearch): the search row takes no height */
.hd-dock.dk-nosearch { grid-template-rows: 35px 0 34px minmax(0, 1fr) auto auto auto; }
.hd-dock.dk-nosearch .dk-search { display: none; }
/* Selection rows (Pavel 06.11): a caption that does not fit turns the whole row into icon cells; the hint keeps the name */
.dk-sbbar.ionly > .hd-btn { min-width: 0; }
.dk-sbbar.ionly > .hd-btn .hd-bt { display: none; }
