/* HONEX Authkit-inspired workspace, shared by every React section.
   Apply to both saved theme preferences so every employee sees one visual system. */
html[data-theme] {
  color-scheme: dark;
  --hnx-night: #05060f;
  --hnx-surface: #101424;
  --hnx-surface-raised: rgba(25, 31, 50, .88);
  --hnx-frost: #d1e4fa;
  --hnx-bright: #edf6ff;
  --hnx-moon: #c7d3ea;
  --hnx-fog: #9daac0;
  --hnx-edge: rgba(186, 215, 247, .14);
  --hnx-violet: #663af3;
  --hnx-violet-hover: #7855fa;
  --hnx-panel-gradient: linear-gradient(155deg, rgba(30, 37, 58, .87), rgba(8, 11, 26, .96));
  --hnx-panel-shadow: inset 0 1px 1px rgba(216, 236, 248, .14), inset 0 0 0 1px var(--hnx-edge), 0 20px 52px rgba(0, 0, 0, .26);
  --line: var(--hnx-edge);
  --surface-soft: rgba(186, 215, 247, .055);
  --shell-accent: var(--hnx-violet);
  --shell-muted: var(--hnx-fog);
  --shell-hairline: var(--hnx-edge);
  --border: var(--hnx-edge);
  --border-soft: rgba(186, 215, 247, .08);
  --surface: var(--hnx-surface-raised);
  --surface-2: rgba(186, 215, 247, .055);
  --surface-3: rgba(186, 215, 247, .09);
  --text: var(--hnx-frost);
  --muted: var(--hnx-fog);
  --accent: var(--hnx-violet);
  --accent-2: #91b5e3;
  --bg: var(--hnx-night);
  --panel: var(--hnx-surface-raised);
  --panel-soft: var(--surface-2);
  --focus-ring: 0 0 0 3px rgba(182, 217, 252, .11);
  --shadow-soft: var(--hnx-panel-shadow);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--hnx-night);
  color: var(--hnx-frost);
}

html[data-theme] body {
  color: var(--hnx-frost);
  background-color: var(--hnx-night);
  background-image:
    linear-gradient(rgba(186, 215, 247, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(186, 215, 247, .045) 1px, transparent 1px),
    radial-gradient(ellipse at 51% -11%, rgba(82, 103, 164, .3), transparent 58%),
    linear-gradient(180deg, #090d1a, #05060f 56%);
  background-size: 56px 56px, 56px 56px, auto, auto;
  background-attachment: fixed;
}

/* The working frame stays restrained so dense operational data remains legible. */
html[data-theme] .appShell {
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
}

html[data-theme] .sidebar {
  top: 18px;
  height: calc(100vh - 36px);
  padding: 24px 15px 16px;
  border: 1px solid var(--hnx-edge);
  border-radius: 18px;
  background: linear-gradient(166deg, rgba(28, 35, 55, .86), rgba(8, 11, 25, .94) 67%);
  box-shadow: inset 0 1px rgba(216, 236, 248, .18), 0 24px 72px rgba(0, 0, 0, .35);
  backdrop-filter: blur(24px);
}

html[data-theme] .brandBlock {
  display: block;
  min-height: 0;
  margin-bottom: 17px;
  padding: 0 9px 26px;
  border-bottom: 1px solid var(--hnx-edge);
}

.brandMark {
  width: max-content;
  font-family: "Space Grotesk", Inter, "Segoe UI", Arial, sans-serif;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1;
  background: linear-gradient(180deg, #e7f2ff, #9fbee3);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brandMark span { color: var(--hnx-frost, #d1e4fa); }
.brandCaption { margin-top: 8px; color: var(--hnx-moon, #c7d3ea); font-size: 10px; font-weight: 650; letter-spacing: .17em; text-transform: uppercase; }
/* The live bundle still uses its original image mark; the source build uses brandMark. */
html[data-theme] .brandBlock:has(.brandLogo) .brandLogo { display: none; }
html[data-theme] .brandBlock:has(.brandLogo)::before { content: 'HONEX.'; display: block; width: max-content; font-family: "Space Grotesk", Inter, "Segoe UI", Arial, sans-serif; font-size: 30px; font-weight: 650; line-height: 1; letter-spacing: -.055em; color: #d1e4fa; }
html[data-theme] .brandBlock:has(.brandLogo)::after { content: 'НОВЫЕ ЗАПЧАСТИ'; display: block; margin-top: 8px; color: #c7d3ea; font-size: 10px; font-weight: 650; letter-spacing: .17em; }

html[data-theme] .tabGroupLabel { padding: 15px 10px 7px; color: #8797b1; font-size: 10px; letter-spacing: .17em; }
html[data-theme] .tabGroupChevron { color: #8797b1; }
html[data-theme] .tabs { gap: 5px; padding-right: 2px; scrollbar-color: rgba(186, 215, 247, .2) transparent; }
html[data-theme] .navGroupBodyInner { gap: 4px; }
html[data-theme] .tabs button,
html[data-theme] .logoutTab {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--hnx-moon);
  background: transparent;
  font-weight: 550;
}
html[data-theme] .tabs button:hover,
html[data-theme] .logoutTab:hover {
  border-color: rgba(186, 215, 247, .12);
  color: var(--hnx-bright);
  background: rgba(186, 215, 247, .075);
}
html[data-theme] .tabs button.active {
  border-color: rgba(186, 215, 247, .22);
  color: #f6f8ff;
  background: linear-gradient(112deg, rgba(102, 58, 243, .78), rgba(102, 58, 243, .3) 72%, rgba(164, 189, 240, .1));
  box-shadow: inset 0 1px rgba(225, 232, 255, .22), 0 12px 28px rgba(50, 29, 130, .22);
}
html[data-theme] .tabs button .tabIcon,
html[data-theme] .logoutTab .tabIcon { color: #aabbd5; }
html[data-theme] .tabs button.active .tabIcon { color: #fff; background: rgba(255, 255, 255, .12); }
html[data-theme] .logoutTab { margin-top: 14px; border-top: 1px solid var(--hnx-edge); color: #c9a9b9; }
html[data-theme] .logoutTab .tabIcon { color: #c9a9b9; }

html[data-theme] .contentShell { padding: 9px 14px 46px 0; }
html[data-theme] .topbar { grid-template-columns: minmax(170px, .9fr) minmax(250px, 1.2fr) auto; gap: 20px; align-items: end; min-height: 94px; margin-bottom: 21px; padding: 5px 0 21px; border-bottom: 1px solid var(--hnx-edge); background: transparent; }
html[data-theme] .topbar.noSearch { grid-template-columns: 1fr auto; }
.workspaceEyebrow { display: block; margin-bottom: 8px; color: #9fb4d3; font-size: 10px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase; }
html[data-theme] .topbarIntro:not(:has(.workspaceEyebrow))::before,
html[data-theme] .topbar > div:first-child:not(.topbarIntro)::before { content: 'РАБОЧЕЕ ПРОСТРАНСТВО / НОВЫЕ ЗАПЧАСТИ'; display: block; margin-bottom: 8px; color: #9fb4d3; font-size: 10px; font-weight: 650; letter-spacing: .18em; }
html[data-theme] .topbar h1 { width: max-content; max-width: 100%; margin: 0; font-family: "Space Grotesk", Inter, "Segoe UI", Arial, sans-serif; font-size: clamp(32px, 3.7vw, 52px); font-weight: 520; letter-spacing: -.048em; line-height: 1.07; background: linear-gradient(180deg, #e4f2ff 3%, #91b5e3 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme] .topSearch { min-height: 45px; border-color: var(--hnx-edge); border-radius: 9px; background: rgba(186, 215, 247, .05); box-shadow: inset 0 1px rgba(216, 236, 248, .06); }
html[data-theme] .topSearch input { color: var(--hnx-frost); }
html[data-theme] .topSearchSubmit { background: var(--hnx-violet); }
html[data-theme] .topActions { align-self: center; gap: 12px; }
html[data-theme] .systemMailButton { border-color: var(--hnx-edge); color: var(--hnx-frost); background: rgba(186, 215, 247, .07); }
html[data-theme] .systemMailDropdown { border-color: var(--hnx-edge); background: var(--hnx-panel-gradient); box-shadow: var(--hnx-panel-shadow); }
html[data-theme] .systemMailItem { border-color: var(--hnx-edge); color: var(--hnx-frost); background: rgba(186, 215, 247, .05); }
html[data-theme] .systemMailItem.unread { border-color: rgba(160, 131, 255, .43); background: rgba(102, 58, 243, .17); }
html[data-theme] .systemMailItem p,
html[data-theme] .systemMailHead span,
html[data-theme] .systemMailItem span,
html[data-theme] .systemMailEmpty { color: var(--hnx-fog); }
html[data-theme] .themeToggle { display: none; }

html[data-theme] .contentSubtabs { gap: 7px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid rgba(186, 215, 247, .07); }
html[data-theme] .contentSubtabs button,
html[data-theme] .mobileSubTabs button { min-height: 38px; border: 1px solid var(--hnx-edge); border-radius: 8px; padding: 8px 13px; color: var(--hnx-moon); background: rgba(186, 215, 247, .045); font-size: 12px; letter-spacing: .015em; }
html[data-theme] .contentSubtabs button:hover,
html[data-theme] .mobileSubTabs button:hover { border-color: rgba(186, 215, 247, .3); color: var(--hnx-bright); background: rgba(186, 215, 247, .09); }
html[data-theme] .contentSubtabs button.active,
html[data-theme] .mobileSubTabs button.active { border-color: rgba(156, 131, 255, .55); color: #fff; background: rgba(102, 58, 243, .42); box-shadow: inset 0 1px rgba(216, 236, 248, .14); }

html[data-theme] .pageSurface { color: var(--hnx-frost); }
html[data-theme] .pageSurface :is(h1, h2, h3, h4) { color: var(--hnx-bright); font-family: "Space Grotesk", Inter, "Segoe UI", Arial, sans-serif; letter-spacing: -.028em; }
html[data-theme] .pageSurface :is(.hero, .card, .panelSection, .loading, .notice, .miniMetric, .subCard, .docCard, .modal, .priceCard, .detailCard, .undCard, .readyCard, .workQueue, .journal, .knowledgeHero, .knowledgeDoc),
html[data-theme] .pageSurface :is([class$="Card"], [class$="Panel"], [class$="Box"], [class$="Tile"]):not(button):not(input) {
  border-color: var(--hnx-edge);
  color: var(--hnx-frost);
  background: var(--hnx-panel-gradient);
  box-shadow: var(--hnx-panel-shadow);
}
html[data-theme] .pageSurface :is(.card, .panelSection, .subCard, .docCard, .miniMetric):hover { border-color: rgba(186, 215, 247, .24); box-shadow: inset 0 1px rgba(216, 236, 248, .2), inset 0 0 0 1px rgba(186, 215, 247, .16), 0 26px 60px rgba(0, 0, 0, .34); }
html[data-theme] .pageSurface :is(.card, .panelSection, .subCard, .docCard, .miniMetric, .tableWrap) { border-radius: 15px; }
html[data-theme] .pageSurface :is(.card p, .hero p, .panelSection p, .mutedText, .sectionHead > p, small) { color: var(--hnx-fog); }
html[data-theme] .pageSurface :is(.miniMetric span, .miniMetric small) { color: var(--hnx-fog); }
html[data-theme] .pageSurface .miniMetric strong { color: var(--hnx-bright); font-variant-numeric: tabular-nums; }
html[data-theme] .pageSurface .miniMetric:is(.ok, .warn, .bad, .info) { background: rgba(22, 29, 47, .92); }
html[data-theme] .pageSurface .miniMetric.ok { border-color: rgba(85, 208, 151, .32); }
html[data-theme] .pageSurface .miniMetric.warn { border-color: rgba(232, 179, 99, .32); }
html[data-theme] .pageSurface .miniMetric.bad { border-color: rgba(238, 119, 135, .32); }
html[data-theme] .pageSurface .miniMetric.info { border-color: rgba(144, 185, 239, .32); }
html[data-theme] .pageSurface .controlCommandHero { background: linear-gradient(135deg, rgba(27, 36, 63, .96), rgba(9, 13, 30, .98)); }
html[data-theme] .pageSurface .controlCommandHero.warn { background: linear-gradient(135deg, rgba(48, 38, 38, .97), rgba(14, 15, 29, .98)); }
html[data-theme] .pageSurface .controlCommandHero.bad { background: linear-gradient(135deg, rgba(56, 31, 42, .97), rgba(14, 14, 28, .98)); }

/* Data, forms, and dialogs share the same surfaces in every section. */
html[data-theme] .pageSurface :is(.field span, label) { color: var(--hnx-moon); }
html[data-theme] :is(input, select, textarea) { border-color: var(--hnx-edge); border-radius: 8px; background: rgba(199, 211, 234, .06); color: var(--hnx-bright); box-shadow: inset 0 1px rgba(216, 236, 248, .04); }
html[data-theme] :is(input, select, textarea):hover { border-color: rgba(186, 215, 247, .32); background: rgba(199, 211, 234, .085); }
html[data-theme] :is(input, select, textarea):focus { border-color: rgba(186, 215, 247, .5); background: rgba(199, 211, 234, .07); box-shadow: var(--focus-ring); }
html[data-theme] :is(input, textarea)::placeholder { color: #8290a9; opacity: 1; }
html[data-theme] .pageSurface :is(.button.primary, button.primary, .button.action) { background: var(--hnx-violet); color: #fff; box-shadow: 0 10px 26px rgba(102, 58, 243, .22); }
html[data-theme] .pageSurface :is(.button.primary, button.primary, .button.action):hover { background: var(--hnx-violet-hover); }
html[data-theme] :is(button.secondary, .button.secondary, .button.muted) { border: 1px solid var(--hnx-edge); color: var(--hnx-frost); background: rgba(186, 215, 247, .07); }
html[data-theme] :is(button.secondary, .button.secondary, .button.muted):hover { border-color: rgba(186, 215, 247, .3); color: #fff; background: rgba(186, 215, 247, .12); }
html[data-theme] .pageSurface :is(.tableWrap, .dataRows, .journal, .resultList, .compactList, .sourceRows) { border-color: var(--hnx-edge); background: rgba(10, 14, 29, .58); }
html[data-theme] .pageSurface table { color: var(--hnx-frost); }
html[data-theme] .pageSurface :is(th, td) { border-bottom-color: var(--hnx-edge); }
html[data-theme] .pageSurface th { color: #a9b9d2; background: rgba(186, 215, 247, .045); font-size: 10px; letter-spacing: .1em; }
html[data-theme] .pageSurface tbody tr:hover { background: rgba(186, 215, 247, .045); }
html[data-theme] .pageSurface td small { color: var(--hnx-fog); }
html[data-theme] .pageSurface :is(.resultRow, .journalRow, .dataRow, .empty, .sourceRows p) { border-color: var(--hnx-edge); color: var(--hnx-frost); background: rgba(186, 215, 247, .035); }
html[data-theme] .pageSurface :is(.resultRow, .journalRow, .dataRow):hover { background: rgba(186, 215, 247, .075); }
html[data-theme] :is(.modalCard, .modal, .callCard, .tabletDialogCard) { border-color: rgba(186, 215, 247, .22); color: var(--hnx-frost); background: var(--hnx-panel-gradient); box-shadow: 0 34px 100px rgba(0, 0, 0, .56), inset 0 1px rgba(216, 236, 248, .18); }
html[data-theme] .modalHeader h2 { color: var(--hnx-bright); }
html[data-theme] .modalMeta :is(b, span),
html[data-theme] .modalHint { border: 1px solid var(--hnx-edge); color: var(--hnx-moon); background: rgba(186, 215, 247, .07); }
html[data-theme] .toastNotice { border-color: var(--hnx-edge); color: var(--hnx-frost); background: var(--hnx-panel-gradient); }
html[data-theme] .toastNotice.error { border-color: rgba(238, 119, 135, .4); }

/* Subtools loaded after the shell keep the same palette. */
html[data-theme] .supportDesk { --support-ink: #d1e4fa; --support-paper: #101424; --support-line: rgba(186, 215, 247, .14); color: #d1e4fa; font-family: Inter, "Segoe UI", Arial, sans-serif; }
html[data-theme] .supportDesk :is(.supportMetric, .supportQueue, .supportDetail, .supportControls, .supportAiPanel, .supportRunbooks, .supportRunbookCatalog, .supportRunbookActivity, .supportRunbooks__intro, .supportKnowledgeArticle, .supportMessage, .supportTicketCard, .supportNote, .supportEmpty, .supportKnowledgeArticles, .supportDesk__views, .supportSearch, .supportFilters, .supportSignal) { border-color: var(--hnx-edge); color: var(--hnx-frost); background: var(--hnx-panel-gradient); box-shadow: inset 0 1px rgba(216, 236, 248, .12); }
html[data-theme] .supportDesk :is(.supportQueue__head, .supportRunbookTable__head, .supportRunbookTable__row, .supportDesk__views button, .supportTicketCard__footer, .supportKnowledgeArticle[open] summary) { border-color: var(--hnx-edge); color: var(--hnx-frost); background: rgba(186, 215, 247, .055); }
html[data-theme] .supportDesk :is(.supportDesk__views button.is-active, .supportTicketCard.is-active) { border-color: rgba(156, 131, 255, .52); color: #fff; background: rgba(102, 58, 243, .23); box-shadow: inset 0 1px rgba(216, 236, 248, .16); }
html[data-theme] .supportDesk :is(input, select, textarea) { border-color: var(--hnx-edge); color: var(--hnx-bright); background: rgba(199, 211, 234, .06); }
html[data-theme] .qrLabelsPage :is(.qrLabelsListCard, .qrVerifyCard) { border-color: var(--hnx-edge); color: var(--hnx-frost); background: var(--hnx-panel-gradient); box-shadow: var(--hnx-panel-shadow); }

/* The standalone warehouse monitor is part of the same ERP. */
html[data-theme] .tabletMonitorShell { background: transparent; }
html[data-theme] .tabletMonitorTop { border-color: var(--hnx-edge); border-radius: 15px; background: var(--hnx-panel-gradient); box-shadow: var(--hnx-panel-shadow); }
html[data-theme] .tabletMonitorTop h1 { color: var(--hnx-bright); font-family: "Space Grotesk", Inter, "Segoe UI", Arial, sans-serif; letter-spacing: -.04em; }
html[data-theme] .tabletStatusRail button { border-color: var(--hnx-edge); border-radius: 10px; color: var(--hnx-frost); background: rgba(186, 215, 247, .06); }
html[data-theme] .tabletStatusRail button.active { border-color: rgba(156, 131, 255, .55); color: #fff; background: rgba(102, 58, 243, .5); }
html[data-theme] .tabletOrder { border-color: var(--hnx-edge); background: var(--hnx-panel-gradient); box-shadow: var(--hnx-panel-shadow); }

/* Match the portal's quiet, centered authentication page. */
html[data-theme] .loginShell { display: block; min-height: 100vh; padding: 0; background: transparent; overflow: visible; }
html[data-theme] .loginShell:before { display: none; }
.loginViewport { min-height: 100vh; max-width: 1200px; margin: 0 auto; padding: 30px 32px 28px; display: flex; flex-direction: column; }
.loginHeader { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--hnx-edge); }
.loginHeader .brandMark { font-size: 25px; }
.loginHeader .brandCaption { margin-top: 5px; }
.loginStatus { color: var(--hnx-moon); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.loginStatus:before { content: '●'; color: #b6d9fc; margin-right: 10px; box-shadow: 0 0 14px #b6d9fc; }
.loginStage { width: 100%; flex: 1; display: flex; flex-direction: column; align-items: center; padding: 46px 0 48px; text-align: center; }
.loginMarker { color: var(--hnx-moon); font: 500 11px "SFMono-Regular", Consolas, monospace; letter-spacing: .19em; text-transform: uppercase; }
.loginMarker:before, .loginMarker:after { content: ''; display: inline-block; width: 60px; height: 1px; margin: 0 17px 4px; background: linear-gradient(90deg, transparent, var(--hnx-edge)); }
.loginMarker:after { transform: rotate(180deg); }
.loginStage h1 { max-width: 980px; margin: 44px 0 14px; color: transparent; background: linear-gradient(180deg, #e4f2ff 3%, #91b5e3 100%); -webkit-background-clip: text; background-clip: text; font-family: "Space Grotesk", Inter, "Segoe UI", Arial, sans-serif; font-size: clamp(51px, 7.5vw, 94px); font-weight: 500; line-height: 1.04; letter-spacing: -.055em; }
.loginLead { margin: 0 0 38px; color: var(--hnx-fog); font-size: 16px; line-height: 1.55; }
html[data-theme] .loginForm { display: grid; width: min(470px, 100%); gap: 0; padding: 30px 32px 32px; border: 1px solid var(--hnx-edge); border-radius: 16px; text-align: left; color: var(--hnx-frost); background: var(--hnx-panel-gradient); box-shadow: inset 0 1px rgba(216, 236, 248, .23), 0 30px 90px rgba(0, 0, 0, .42), 0 0 70px rgba(93, 111, 178, .12); backdrop-filter: blur(24px); }
.loginFormTitle { margin-bottom: 18px; color: var(--hnx-bright); font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.loginForm .field { margin-bottom: 17px; }
.loginForm .field span { margin-bottom: 2px; color: var(--hnx-moon); font-size: 13px; font-weight: 500; }
.loginForm input:not([type="checkbox"]) { min-height: 48px; }
html[data-theme] .loginRemember { margin: 2px 0 0; color: var(--hnx-moon); font-size: 13px; font-weight: 500; }
html[data-theme] .loginRemember input { border-color: var(--hnx-edge); background: rgba(199, 211, 234, .06); }
html[data-theme] .loginRemember input:checked { border-color: var(--hnx-violet); background: var(--hnx-violet); }
html[data-theme] .loginForm button { width: 100%; min-height: 46px; margin-top: 25px; border-radius: 7px; background: var(--hnx-violet); font-size: 14px; box-shadow: 0 10px 26px rgba(102, 58, 243, .26); }
.loginBack { width: min(470px, 100%); margin-top: 25px; color: var(--hnx-moon); font-size: 13px; }
.loginBack a { color: inherit; text-decoration: none; }
.loginBack a:hover { text-decoration: underline; }
.loginFooter { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--hnx-edge); color: var(--hnx-fog); font-size: 12px; }

/* Portal layout for the currently published login markup. */
html[data-theme] .loginShell > .loginCard {
  display: flex;
  flex-direction: column;
  width: min(1200px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 30px 32px 28px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
html[data-theme] .loginShell > .loginCard::before { display: none; }
html[data-theme] .loginCard > .loginBrandPanel {
  display: block;
  min-height: 0;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--hnx-edge);
  background: transparent;
}
html[data-theme] .loginBrandPanel::after,
html[data-theme] .loginBrandPanel .loginAccent,
html[data-theme] .loginBrandPanel .loginBrand { display: none; }
html[data-theme] .loginBrandPanel .loginBrandCopy { display: block; margin: 0; padding: 0; }
html[data-theme] .loginBrandPanel .loginBrandCopy strong { display: block; max-width: none; font-size: 0; }
html[data-theme] .loginBrandPanel .loginBrandCopy strong::before { content: 'HONEX.'; font-family: "Space Grotesk", Inter, "Segoe UI", Arial, sans-serif; font-size: 25px; font-weight: 650; letter-spacing: -.055em; background: linear-gradient(180deg, #e7f2ff, #9fbee3); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme] .loginBrandPanel .loginBrandCopy span { display: block; max-width: none; margin-top: 5px; color: var(--hnx-moon); font-size: 0; }
html[data-theme] .loginBrandPanel .loginBrandCopy span::before { content: 'РАБОЧЕЕ ПРОСТРАНСТВО'; font-size: 10px; font-weight: 650; letter-spacing: .17em; }
html[data-theme] .loginCard > .loginIntro { align-self: center; width: 100%; margin-top: 63px; padding: 0; text-align: center; }
html[data-theme] .loginCard > .loginIntro span { color: var(--hnx-moon); font: 500 11px "SFMono-Regular", Consolas, monospace; letter-spacing: .19em; }
html[data-theme] .loginCard > .loginIntro h1 { margin: 31px auto 14px; color: transparent; background: linear-gradient(180deg, #e4f2ff 3%, #91b5e3 100%); -webkit-background-clip: text; background-clip: text; font-family: "Space Grotesk", Inter, "Segoe UI", Arial, sans-serif; font-size: clamp(56px, 8vw, 98px); font-weight: 500; line-height: 1.04; letter-spacing: -.055em; }
html[data-theme] .loginCard > .loginIntro p { margin: 0 0 39px; color: var(--hnx-fog); font-size: 16px; font-weight: 400; }
html[data-theme] .loginCard > .loginForm { align-self: center; grid-column: auto; width: min(470px, 100%); padding: 30px 32px 32px; border: 1px solid var(--hnx-edge); border-radius: 16px; text-align: left; background: var(--hnx-panel-gradient); box-shadow: inset 0 1px rgba(216, 236, 248, .23), 0 30px 90px rgba(0, 0, 0, .42), 0 0 70px rgba(93, 111, 178, .12); }
html[data-theme] .loginCard > .loginForm::before { content: 'ВХОД В ERP'; display: block; margin-bottom: 18px; color: var(--hnx-bright); font-size: 13px; font-weight: 650; letter-spacing: .08em; }
html[data-theme] .loginCard > .loginForm .field { margin-bottom: 17px; }
html[data-theme] .loginCard > .loginForm .field span { color: var(--hnx-moon); font-size: 13px; font-weight: 500; }
html[data-theme] .loginCard > .loginForm button { min-height: 46px; margin-top: 25px; background: var(--hnx-violet); font-size: 14px; }
html[data-theme] .loginCard > .loginForm .loginRemember { margin: 2px 0 0; color: var(--hnx-moon); font-size: 13px; font-weight: 500; }

@media (max-width: 1100px) { html[data-theme] .appShell { grid-template-columns: 230px minmax(0, 1fr); gap: 16px; } html[data-theme] .topbar { grid-template-columns: 1fr auto; } html[data-theme] .topSearch { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 900px) { html[data-theme] .appShell { display: block; padding: 12px; } html[data-theme] .sidebar { top: 0; height: auto; max-height: 35vh; margin-bottom: 14px; padding: 13px; } html[data-theme] .brandBlock { margin-bottom: 4px; padding-bottom: 12px; } html[data-theme] .contentShell { padding: 0 0 160px; } html[data-theme] .topbar { display: flex; flex-wrap: wrap; align-items: center; min-height: 0; padding: 12px 3px 18px; } html[data-theme] .topSearch { width: 100%; order: 3; } html[data-theme] .topbar h1 { font-size: clamp(30px, 7vw, 44px); } }
@media (max-width: 720px) { .loginViewport { padding: 24px 18px 24px; } .loginHeader { padding-bottom: 18px; } .loginStatus { max-width: 130px; font-size: 9px; text-align: right; } .loginMarker:before, .loginMarker:after { width: 22px; margin: 0 7px 4px; } .loginStage { padding-top: 42px; } .loginStage h1 { margin-top: 34px; font-size: clamp(48px, 10vw, 68px); } .loginLead { font-size: 15px; margin-bottom: 26px; } html[data-theme] .loginForm { padding: 25px 22px; } .loginFooter { flex-direction: column; gap: 5px; } }
@media (prefers-reduced-motion: reduce) { html[data-theme] .pageSurface, html[data-theme] .sidebar { animation: none; } }

/* The unified workspace deliberately replaces both legacy theme modes. */
html[data-theme] .themeToggle { display: none; }

@media (min-width: 721px) and (max-height: 850px) {
  .loginStage { padding-top: 22px; }
  .loginStage h1 { margin-top: 22px; font-size: clamp(54px, 6vw, 70px); }
  .loginLead { margin-bottom: 22px; }
  html[data-theme] .loginCard > .loginIntro { margin-top: 24px; }
  html[data-theme] .loginCard > .loginIntro h1 { margin: 16px auto 10px; font-size: clamp(54px, 6vw, 70px); }
  html[data-theme] .loginCard > .loginIntro p { margin-bottom: 20px; }
  html[data-theme] .loginCard > .loginForm { padding: 22px 28px; }
  html[data-theme] .loginCard > .loginForm .field { margin-bottom: 10px; }
  html[data-theme] .loginCard > .loginForm button { margin-top: 17px; }
}
