/* src/style.css */
:root {
  --hk-navy: #12224d;
  --hk-navy-2: #0d1a3d;
  --hk-yellow: #ffcc18;
  --hk-yellow-2: #f1b800;
  --hk-ink: #172235;
  --hk-muted: #6d7787;
  --hk-line: #d9dfeb;
  --hk-soft: #f4f6fb;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--hk-ink);
  background: var(--hk-soft);
  font-synthesis: none;
  font-size: 14px;
  letter-spacing: 0;
  color-scheme: light;
}
:root[data-theme=dark] {
  --hk-ink: #edf3ff;
  --hk-muted: #aeb9cf;
  --hk-line: #2b395f;
  --hk-soft: #09142f;
  background: #07112b;
  color-scheme: dark;
}
html,
body,
button,
input,
textarea,
.layout,
.workspace,
aside,
.table-wrap,
dialog,
.custom-select-button,
.custom-select-menu,
.import-panel,
.help-panel,
.profile-panel,
.profile-summary {
  transition:
    background-color 420ms ease,
    background 420ms ease,
    color 420ms ease,
    border-color 420ms ease,
    box-shadow 420ms ease;
}
html,
body,
#app {
  min-height: 100%;
}
#app {
  background: transparent;
}
.brand-image {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: contain;
  object-position: center 48%;
  border-radius: 6px;
}
td code {
  white-space: nowrap;
}
.login .brand-image {
  height: 150px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-height: 100vh;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d6dddf;
  border-radius: 6px;
  background: #fff;
  color: #263638;
  min-height: 38px;
  padding: 8px 13px;
  cursor: pointer;
  font-weight: 550;
}
button:hover {
  background: #f0f5f4;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #168378;
  outline-offset: 2px;
}
svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.7;
}
.primary {
  background: #08695f;
  color: #fff;
  border-color: #08695f;
}
.primary:hover {
  background: #07554d;
}
.danger {
  color: #ae3333;
}
.icon-button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 7px;
}
.layout {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  min-height: 100vh;
}
aside {
  background: #fff;
  border-right: 1px solid #dfe5e6;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  color: #154b44;
}
.brand svg {
  width: 28px;
  height: 28px;
}
.workspace-label {
  font-size: 12px;
  color: #7e8b8b;
  margin: 10px 0 30px;
}
nav {
  display: grid;
  gap: 5px;
}
nav button {
  justify-content: flex-start;
  border: 0;
  background: none;
  min-height: 43px;
  color: #5c6a6c;
  font-weight: 500;
}
nav button.selected {
  color: #075e53;
  background: #e8f3ef;
  font-weight: 650;
}
.nav-group {
  display: grid;
  gap: 5px;
}
.nav-parent {
  width: 100%;
}
.nav-parent svg:last-child {
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform 260ms ease;
}
.nav-group.open .nav-parent svg:last-child {
  transform: rotate(180deg);
}
.nav-submenu {
  display: none;
  gap: 4px;
  padding-left: 18px;
  position: relative;
}
.nav-submenu::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: #ffffff24;
}
.nav-group.open .nav-submenu {
  display: grid;
}
.nav-submenu button {
  min-height: 35px;
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 6px;
  color: #d8def0;
  gap: 7px;
}
.nav-submenu button svg {
  width: 15px;
  height: 15px;
}
.nav-submenu button.selected {
  color: var(--hk-navy);
  background: #fff;
  font-weight: 750;
  box-shadow: none;
}
.identity {
  margin-top: auto;
  border-top: 1px solid #e7ebec;
  padding-top: 20px;
  display: grid;
  gap: 6px;
}
.identity span {
  font-size: 12px;
  color: #778486;
}
.identity button {
  margin-top: 12px;
  justify-content: flex-start;
  border: 1px solid #ffffff20;
  padding: 8px 12px;
  width: 100%;
  min-height: 38px;
  border-radius: 6px;
  background: #172858;
  color: #eef4ff;
  font-weight: 700;
}
.identity button svg {
  color: #ffcc18;
}
.identity button:hover {
  background: #ffcc18;
  border-color: #ffcc18;
  color: #12224d;
}
.identity button:hover svg {
  color: #12224d;
}
.workspace {
  padding: 30px 36px;
  min-width: 0;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 10px;
  color: #7a898b;
  font-weight: 650;
}
h1 {
  font-size: 27px;
  font-weight: 650;
  margin: 8px 0 0;
}
h2 {
  font-size: 19px;
  margin: 0 0 20px;
  font-weight: 600;
}
h3 {
  font-size: 14px;
  margin: 0;
}
.environment {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #52686a;
}
.environment svg {
  color: #148576;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #dce3e5;
  border-bottom: 1px solid #dce3e5;
  padding: 24px 0;
  margin-bottom: 26px;
}
.metrics > div {
  padding: 0 24px;
  border-right: 1px solid #dce3e5;
}
.metrics > div:first-child {
  padding-left: 0;
}
.metrics > div:last-child {
  border: 0;
}
.metrics span {
  display: block;
  font-size: 12px;
  color: #748183;
  margin-bottom: 8px;
}
.metrics strong {
  font-size: 28px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.toolbar > select {
  max-width: 260px;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 250px;
  flex: 1;
  max-width: 470px;
  background: white;
  border: 1px solid #d6dddf;
  border-radius: 6px;
  padding: 0 6px 0 12px;
}
.search input {
  border: 0;
  outline: none;
  width: 100%;
  background: none;
}
.search button {
  border: 0;
  min-height: 30px;
  padding: 4px;
}
.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid #dfe5e6;
  border-radius: 6px;
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
.products-table {
  min-width: 1050px;
}
th {
  background: #f8fafb;
  font-size: 11px;
  color: #7a868a;
  font-weight: 550;
  padding: 13px 17px;
  border-bottom: 1px solid #dfe5e6;
  white-space: nowrap;
}
td {
  padding: 16px 17px;
  border-bottom: 1px solid #eef1f2;
  max-width: 360px;
  overflow-wrap: anywhere;
}
tbody tr:last-child td {
  border: 0;
}
tbody tr:hover {
  background: #fbfdfc;
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}
.product-cell img,
.photo-placeholder {
  width: 44px;
  height: 48px;
  object-fit: contain;
  border: 1px solid #e6ebec;
  border-radius: 4px;
  background: #f6f8f9;
  flex-shrink: 0;
}
.photo-placeholder {
  display: grid;
  place-items: center;
  color: #8e9b9e;
}
.product-cell small,
td small {
  display: block;
  color: #879496;
  margin-top: 5px;
  font-size: 11px;
}
.money-cell {
  min-width: 120px;
  font-variant-numeric: tabular-nums;
}
.money-cell strong {
  display: block;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: #1f2f32;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 256px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.catalog-results {
  min-width: 0;
}
.catalog-filters {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--hk-line);
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fbfcff 100%);
  box-shadow: 0 18px 60px #12224d0d;
}
.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.filter-head h2,
.catalog-filters h3 {
  margin: 0;
  color: var(--hk-navy);
}
.filter-head h2 {
  font-size: 17px;
}
.catalog-filters h3 {
  font-size: 14px;
  margin-bottom: 11px;
}
.catalog-filters section {
  padding-top: 16px;
  border-top: 1px solid var(--hk-line);
}
.filter-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
  color: #728196;
  font-size: 12px;
}
.filter-breadcrumb span:not(:last-child)::after {
  content: "/";
  margin-left: 5px;
}
.filter-category-list {
  display: grid;
  gap: 4px;
}
.filter-category-list button {
  appearance: none;
  border: 0;
  border-radius: 8px;
  min-height: 34px;
  padding: 0 10px;
  background: transparent;
  color: var(--hk-navy);
  text-align: left;
  font-weight: 650;
  cursor: pointer;
}
.filter-category-list button:hover,
.filter-category-list button.selected {
  background: #f1f4fa;
}
.price-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.price-range label {
  margin: 0;
  color: #728196;
  font-size: 12px;
}
.price-range input {
  margin-top: 6px;
  min-height: 40px;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 0 0;
  color: var(--hk-navy);
  font-weight: 700;
}
.filter-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--hk-yellow);
}
.money-cell small {
  white-space: nowrap;
}
.text-button {
  display: inline;
  border: 0;
  background: none;
  padding: 0;
  min-height: 0;
  text-align: left;
  line-height: 1.5;
  font-size: 13px;
  font-weight: 600;
}
.badge {
  display: inline-block;
  background: #eef1f3;
  color: #718082;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
}
.green {
  background: #e5f4ec;
  color: #24744f;
}
.amber {
  background: #fff1d8;
  color: #886719;
}
code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 12px;
  color: #738387;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 14px;
}
.empty {
  padding: 60px 20px;
  text-align: center;
  color: #829093;
}
.empty > svg {
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
}
.empty h2 {
  font-size: 16px;
  font-weight: 500;
}
.muted {
  color: #7a898c;
  font-size: 13px;
}
.notice {
  padding: 12px 16px;
  border: 1px solid;
  border-radius: 5px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.success {
  background: #eaf6f0;
  border-color: #c1e3d1;
  color: #276c4a;
}
.error {
  background: #fff0ef;
  border-color: #f0c5c0;
  color: #a63532;
}
.error-text,
#login-error {
  color: #ad3833;
  white-space: pre-wrap;
  font-size: 13px;
}
.login {
  width: min(460px, calc(100% - 32px));
  margin: clamp(42px, 11vh, 118px) auto;
  min-height: auto;
  display: grid;
  align-content: start;
  padding: 22px 28px 30px;
  border: 1px solid #d8e0ee;
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      #ffffffed 0%,
      #f8faffeb 100%);
  box-shadow: 0 28px 80px #12224d1f, 0 1px 0 #ffffff inset;
}
.login h1 {
  margin: 4px 0 24px;
  font-size: 25px;
}
.login label {
  color: #17224a;
  font-weight: 700;
  margin-bottom: 18px;
}
.login input {
  min-height: 48px;
  margin-top: 9px;
  padding: 12px 15px;
  border-radius: 11px;
  border-color: #bfcae0;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f9fbff 100%);
  box-shadow: 0 1px 0 #ffffff inset, 0 8px 24px #12224d0a;
}
.login input:hover {
  border-color: #a9b8d3;
}
.login input:focus {
  outline: 0;
  border-color: var(--hk-yellow-2);
  box-shadow:
    0 0 0 3px #ffcc1830,
    0 12px 28px #12224d12,
    0 1px 0 #ffffff inset;
}
.login .primary {
  width: 100%;
  margin-top: 12px;
  box-shadow: 0 12px 28px #d7a90024;
}
.login .password-control {
  display: block;
  position: relative;
  margin-top: 9px;
}
.login .password-control input {
  margin-top: 0;
  padding-right: 56px;
  border-radius: 11px;
}
.login .password-control .password-toggle {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #475a7b;
}
.login .password-control .password-toggle:hover {
  background: #eef3fb;
  color: var(--hk-navy);
}
.password-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: stretch;
  margin-top: 7px;
}
.password-control input {
  margin-top: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.password-control .password-toggle {
  width: 42px;
  min-width: 42px;
  height: 40px;
  min-height: 40px;
  margin: 0;
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  color: #496062;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 17px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid #cdd6d9;
  border-radius: 5px;
  color: #263b40;
  background: #fff;
  margin-top: 7px;
  min-height: 40px;
}
select {
  appearance: none;
  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      #52686a 50%),
    linear-gradient(
      135deg,
      #52686a 50%,
      transparent 50%);
  background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}
textarea {
  resize: vertical;
  line-height: 1.5;
}
.custom-select {
  position: relative;
  min-width: 230px;
}
.custom-select input {
  display: none;
}
.custom-select-button {
  width: 100%;
  justify-content: space-between;
  background: #fff;
  color: #263b40;
  border: 1px solid #cdd6d9;
  min-height: 42px;
  padding: 9px 11px;
  margin-top: 7px;
}
.custom-select-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select-menu {
  display: none;
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 265px;
  overflow: auto;
  padding: 5px;
  background: #fff;
  border: 1px solid #bac7ca;
  border-radius: 7px;
  box-shadow: 0 14px 35px #102c2b24;
}
.custom-select.open .custom-select-menu {
  display: grid;
  gap: 3px;
}
.custom-select-menu button {
  justify-content: flex-start;
  border: 0;
  min-height: 34px;
  padding: 8px 9px;
  background: transparent;
  font-weight: 500;
  text-align: left;
}
.custom-select-menu button.selected,
.custom-select-menu button:hover {
  background: #e8f3ef;
  color: #075e53;
}
.toolbar-select .custom-select-button {
  margin-top: 0;
}
.toolbar input,
.toolbar select {
  margin: 0;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
}
.checkbox input {
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  accent-color: #08695f;
}
dialog {
  border: 1px solid #d3dddf;
  border-radius: 14px;
  padding: 0;
  width: min(700px, calc(100% - 24px));
  max-height: 90vh;
  color: #263638;
  box-shadow: 0 18px 60px #102c2b28;
  overflow: hidden;
  background: #fff;
}
dialog::backdrop {
  background: #172c3055;
}
.dialog-header {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 19px 24px;
  border-bottom: 1px solid #e1e7e8;
  border-radius: 13px 13px 0 0;
}
.dialog-header h2 {
  margin: 0;
}
.dialog-header .dialog-close {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  color: #eef4ff;
  background: #1b2d5f;
  border-color: #40517d;
  border-radius: 10px;
  box-shadow: 0 8px 20px #07122d30, inset 0 1px 0 #ffffff12;
}
.dialog-header .dialog-close svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}
.dialog-header .dialog-close:hover {
  color: var(--hk-navy);
  background: var(--hk-yellow);
  border-color: var(--hk-yellow);
}
.dialog-body {
  padding: 23px 24px;
  max-height: calc(90vh - 76px);
  overflow: auto;
  scrollbar-gutter: stable;
  border-radius: 0 0 13px 13px;
}
.dialog-body::-webkit-scrollbar {
  width: 10px;
}
.dialog-body::-webkit-scrollbar-track {
  background: transparent;
}
.dialog-body::-webkit-scrollbar-thumb {
  background: #c3cede;
  border: 3px solid #fff;
  border-radius: 999px;
}
.dialog-body::-webkit-scrollbar-thumb:hover {
  background: #9fadbf;
}
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #e5e9eb;
  flex-wrap: wrap;
}
.dialog-actions .danger {
  margin-right: auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 12px;
}
.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.inline input {
  margin: 0;
  min-width: 0;
}
.variants {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}
.variant-panel {
  border: 1px solid var(--hk-line);
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0 18px;
  background:
    linear-gradient(
      180deg,
      #fffdf3 0%,
      #f8faff 100%);
}
.variant-row {
  background: #f8faff;
  border: 1px solid var(--hk-line);
  border-radius: 12px;
  padding: 12px;
}
.variant-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 8px;
  margin-bottom: 8px;
}
.variant-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.variant-row input {
  margin: 0;
}
.variant-active {
  margin: 10px 0 0;
}
.small-action {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}
.file-button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #d6dddf;
  border-radius: 5px;
  cursor: pointer;
  margin: 0;
}
.photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.photo {
  width: 95px;
}
.photo img {
  width: 95px;
  height: 95px;
  object-fit: contain;
  background: #f4f6f7;
  border: 1px solid #e2e8e9;
  border-radius: 5px;
}
.photo > div {
  display: flex;
  justify-content: space-between;
}
.photo button {
  padding: 4px;
  min-height: 27px;
  border: 0;
}
.availability {
  margin-top: 25px;
  border-top: 1px solid #dce4e5;
  padding-top: 4px;
}
.availability > button {
  margin-top: 18px;
}
.warehouse-results {
  margin-top: 12px;
  font-size: 13px;
}
.live-values {
  display: flex;
  gap: 36px;
  margin: 20px 0;
}
.live-values small {
  display: block;
  margin-bottom: 7px;
}
.live-values strong {
  font-size: 23px;
  color: #22644d;
  font-weight: 600;
}
.tree ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.tree ul ul {
  margin-left: 24px;
  padding-left: 18px;
  border-left: 1px solid #d5dfdf;
}
.tree-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #e1e7e8;
}
.tree-row > svg {
  color: #b0903d;
}
.tree-row strong {
  font-size: 14px;
  overflow-wrap: anywhere;
  min-width: 0;
}
.tree-actions {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.category-browser {
  border: 1px solid var(--hk-line);
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fbfcff 100%);
  box-shadow: 0 18px 60px #12224d0d;
  overflow: hidden;
}
.category-tabs {
  display: flex;
  gap: 0;
  padding: 0 6px;
  border-bottom: 1px solid var(--hk-line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.category-tabs button {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--hk-navy);
  min-height: 52px;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}
.category-tabs button:hover,
.category-tabs button.selected {
  color: #005bff;
  border-bottom-color: #005bff;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 22px 36px;
  padding: 24px 22px 28px;
}
.category-column {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}
.category-line {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}
.category-line > span {
  color: #6d7a94;
  display: inline-flex;
}
.category-line > span svg {
  width: 16px;
  height: 16px;
}
.category-line .text-button {
  justify-self: start;
  text-align: left;
  color: var(--hk-navy);
  font-size: 14px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.category-line.level-0 .text-button {
  font-size: 15px;
  font-weight: 900;
}
.category-line.level-1 {
  grid-template-columns: 16px minmax(0, 1fr) auto auto;
}
.category-line.level-1 .text-button {
  color: #728196;
  font-weight: 600;
}
.tree-details {
  margin-top: 18px;
  border: 1px solid var(--hk-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.tree-details summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 800;
}
.tree-details .tree {
  padding: 0 18px 18px;
}
.settings-section {
  max-width: 630px;
  padding-top: 10px;
}
.settings-section form {
  max-width: 380px;
  margin-top: 30px;
}
dl {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 2fr;
  gap: 0;
  font-size: 13px;
}
dt,
dd {
  padding: 16px 0;
  margin: 0;
  border-bottom: 1px solid #dfe6e7;
  overflow-wrap: anywhere;
}
dt {
  color: #7a888a;
  padding-right: 20px;
}
.import-surface {
  max-width: 900px;
}
.import-surface > label {
  max-width: 500px;
}
.import-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 24px;
  max-width: 1120px;
}
.import-panel,
.help-panel,
.profile-panel,
.profile-summary {
  background: #fff;
  border: 1px solid #dfe5e6;
  border-radius: 8px;
  padding: 22px;
}
.help-panel dl {
  display: block;
}
.help-panel dt,
.help-panel dd {
  padding: 10px 0;
}
.help-panel dd {
  border-bottom: 1px solid #eef2f3;
}
.dropzone {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 155px;
  margin: 18px 0;
  border: 1.5px dashed #9fb5b7;
  border-radius: 8px;
  background: #f8fbfb;
  color: #52686a;
  cursor: pointer;
  text-align: center;
}
.dropzone:hover {
  background: #f0f7f5;
  border-color: #168378;
}
.dropzone svg {
  width: 30px;
  height: 30px;
  color: #087060;
}
.dropzone strong {
  color: #263638;
  font-size: 15px;
}
.dropzone span {
  font-size: 12px;
}
.import-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #e5e9eb;
}
.import-preview {
  margin-top: 4px;
}
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid #e2e8e9;
  border-radius: 8px;
  color: #7a898c;
  background: #fbfdfd;
}
.empty-state svg {
  width: 32px;
  height: 32px;
}
.empty-state h2,
.empty-state p {
  margin: 0;
}
.profile-layout {
  max-width: 760px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.profile-summary h2 {
  margin-bottom: 14px;
}
.profile-panel {
  max-width: 440px;
}
.profile-panel button.primary {
  margin-top: 4px;
}
.download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  color: #087060;
  text-decoration: none;
}
button span {
  overflow-wrap: anywhere;
}
input[type=file] {
  font-size: 12px;
}
a {
  color: #08695f;
}
@media (max-width: 1000px) {
  .layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .workspace {
    padding: 26px 20px;
  }
  aside {
    padding: 26px 12px;
  }
  .metrics > div {
    padding: 0 14px;
  }
  .toolbar > select {
    max-width: 210px;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .catalog-filters {
    position: static;
  }
  .import-layout {
    grid-template-columns: 1fr;
  }
  .help-panel {
    order: -1;
  }
  .environment {
    display: none;
  }
}
@media (max-width: 640px) {
  .layout {
    display: block;
  }
  aside {
    height: auto;
    position: static;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid #dfe5e6;
  }
  .brand {
    font-size: 20px;
  }
  .workspace-label {
    display: none;
  }
  nav {
    display: flex;
    overflow: auto;
    gap: 6px;
    margin-top: 15px;
    padding-bottom: 5px;
  }
  .nav-group {
    flex-shrink: 0;
    min-width: 190px;
  }
  .nav-submenu {
    padding-left: 10px;
  }
  nav button {
    flex-shrink: 0;
    padding: 8px 10px;
    min-height: 36px;
    font-size: 12px;
  }
  .identity {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 0;
    padding: 0;
    margin: 12px 0 0;
  }
  .identity span {
    font-size: 11px;
  }
  .identity button {
    margin: 0 0 0 auto;
    font-size: 12px;
    min-height: 28px;
    width: auto;
    padding: 5px 10px;
  }
  .workspace {
    padding: 22px 16px;
  }
  header {
    margin-bottom: 22px;
  }
  h1 {
    font-size: 25px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 0;
    padding: 20px 0;
  }
  .metrics > div:nth-child(3) {
    padding-left: 0;
  }
  .metrics > div:nth-child(2) {
    border: 0;
  }
  .metrics strong {
    font-size: 25px;
  }
  .toolbar {
    gap: 10px;
  }
  .search {
    min-width: 100%;
    max-width: none;
  }
  .toolbar > select {
    max-width: none;
    flex: 1;
    min-width: 100px;
    width: 100px;
  }
  .custom-select {
    min-width: 0;
    width: 100%;
  }
  .toolbar-select {
    flex: 1;
    width: 100%;
  }
  .custom-select-menu {
    max-height: 220px;
  }
  .import-panel,
  .help-panel,
  .profile-panel,
  .profile-summary {
    padding: 16px;
  }
  .import-actions {
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }
  .import-actions button,
  .import-actions a {
    width: 100%;
    justify-content: center;
  }
  .preview-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .profile-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .toolbar > .primary {
    font-size: 12px;
  }
  td,
  th {
    padding: 12px;
  }
  .product-cell {
    min-width: 190px;
  }
  .dialog-body,
  .dialog-header {
    padding: 18px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .variant-grid {
    grid-template-columns: 1fr 1fr;
  }
  .catalog-filters {
    padding: 14px;
    border-radius: 12px;
  }
  .price-range {
    grid-template-columns: 1fr;
  }
  .category-tabs button {
    min-height: 46px;
    padding: 0 12px;
    font-size: 12px;
  }
  .category-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
  .tree ul ul {
    margin-left: 8px;
    padding-left: 10px;
  }
  .tree-row {
    gap: 6px;
  }
  .tree-actions {
    gap: 2px;
  }
  .tree-row .badge {
    display: none;
  }
  .dialog-actions button {
    font-size: 12px;
  }
  .live-values {
    gap: 25px;
  }
  .live-values strong {
    font-size: 20px;
  }
}
body {
  background:
    radial-gradient(
      circle at 82% 0%,
      #fff1a733 0,
      transparent 28%),
    linear-gradient(
      135deg,
      #f8faff 0%,
      #eef3fb 46%,
      #f6f8fd 100%);
}
body.login-screen {
  position: relative;
  background: #edf2fa;
  overflow-x: hidden;
  min-height: 100vh;
}
body.login-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 30%,
      #fff3b833 0,
      transparent 32%),
    radial-gradient(
      circle at 50% 75%,
      #12224d0d 0,
      transparent 42%),
    linear-gradient(
      145deg,
      #e8eef8 0%,
      #f3f6fb 54%,
      #e9eef7 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
body.login-screen #app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow: hidden;
}
.layout {
  background: var(--hk-soft);
}
aside {
  background:
    linear-gradient(
      180deg,
      var(--hk-navy) 0%,
      var(--hk-navy-2) 100%);
  border-right: 0;
  color: #fff;
  box-shadow: 18px 0 45px #10193618;
}
aside .brand {
  padding: 0;
  margin: -8px -2px 0;
  border: 1px solid #ffffff10;
  border-radius: 12px;
  background: #122451;
  box-shadow: inset 0 1px 0 #ffffff14;
  overflow: hidden;
}
aside .brand-image {
  height: auto;
  aspect-ratio: 1200 / 420;
  object-fit: cover;
  background: transparent;
  border-radius: 11px;
}
.workspace-label,
.identity span,
nav button {
  color: #c9d2e8;
}
nav button {
  border: 1px solid transparent;
}
nav button:hover {
  background: #ffffff12;
  color: #fff;
}
nav button.selected {
  background: var(--hk-yellow);
  color: var(--hk-navy);
  box-shadow: 0 10px 24px #00000022;
}
.identity {
  border-top-color: #ffffff24;
}
.identity strong {
  color: #fff;
}
.identity button {
  color: #fff;
}
.identity button:hover {
  background: #ffffff12;
}
.workspace {
  background:
    radial-gradient(
      circle at 92% 4%,
      #ffcc1818 0,
      transparent 22%),
    linear-gradient(
      180deg,
      #fbfdff 0,
      #f2f5fb 280px,
      #f6f8fc 100%);
}
.eyebrow {
  color: #7f8a9d;
}
h1,
h2,
h3,
.text-button {
  color: var(--hk-ink);
}
.environment {
  color: var(--hk-navy);
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #f8faff 100%);
  border: 1px solid var(--hk-line);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 10px 26px #12224d0a;
}
.environment svg,
a,
.download-link {
  color: var(--hk-navy);
}
.metrics {
  border-color: var(--hk-line);
}
.metrics > div {
  border-right-color: var(--hk-line);
}
.metrics span,
.muted,
td small {
  color: var(--hk-muted);
}
.metrics strong {
  color: var(--hk-navy);
}
button,
input,
select,
textarea,
.custom-select-button,
.search,
.table-wrap,
.import-panel,
.help-panel,
.profile-panel,
.profile-summary,
dialog,
.empty-state {
  border-color: var(--hk-line);
}
button:focus-visible,
a:focus-visible,
input:focus,
select:focus,
textarea:focus,
.custom-select-button:focus-visible {
  outline-color: var(--hk-yellow);
}
.primary {
  background: var(--hk-yellow);
  color: var(--hk-navy);
  border-color: var(--hk-yellow);
  font-weight: 750;
}
.primary:hover {
  background: var(--hk-yellow-2);
  border-color: var(--hk-yellow-2);
}
.search button,
.icon-button {
  color: var(--hk-navy);
}
.search button:hover,
.icon-button:hover {
  background: #fff8d7;
  border-color: #f2cf47;
}
.search,
.custom-select-button,
.table-wrap,
.profile-panel,
.profile-summary,
.import-panel,
.help-panel,
.empty-state {
  background:
    linear-gradient(
      180deg,
      #ffffff 0%,
      #fbfcff 100%);
  box-shadow: 0 18px 45px #12224d0a, 0 1px 0 #ffffff inset;
}
.search,
.custom-select-button {
  border-radius: 10px;
}
.table-wrap,
.profile-panel,
.profile-summary,
.import-panel,
.help-panel,
.empty-state,
dialog {
  border-radius: 12px;
}
.profile-layout {
  align-items: start;
}
.profile-summary,
.profile-panel {
  border-color: #d6deed;
}
.profile-summary {
  min-height: 112px;
}
.profile-panel {
  max-width: 520px;
}
.profile-panel input {
  border-radius: 10px;
}
th {
  background: #f7f9ff;
  color: #6f7890;
  border-bottom-color: var(--hk-line);
}
td {
  border-bottom-color: #e8ecf4;
}
tbody tr:hover {
  background: #fffbea;
}
.money-cell strong {
  color: var(--hk-navy);
}
.badge {
  background: #edf1f8;
  color: #68748b;
}
.green {
  background: #fff4bd;
  color: #725900;
}
.amber {
  background: #fff0d8;
  color: #876014;
}
.photo-placeholder,
.photo img,
.dropzone {
  background: #f8faff;
  border-color: var(--hk-line);
}
.dropzone {
  color: var(--hk-navy);
}
.dropzone:hover {
  background: #fff9dc;
  border-color: var(--hk-yellow-2);
}
.dropzone svg,
.tree-row > svg,
.live-values strong {
  color: var(--hk-yellow-2);
}
.custom-select-menu {
  border-color: #bcc6d8;
  box-shadow: 0 18px 38px #12224d26;
}
.custom-select-menu button.selected,
.custom-select-menu button:hover {
  background: #fff3b4;
  color: var(--hk-navy);
}
.dialog-header {
  background: var(--hk-navy);
  border-bottom-color: #0b1635;
}
.dialog-header h2,
.dialog-header .icon-button {
  color: #fff;
}
dialog::backdrop {
  background: #07122d99;
}
.notice.success {
  background: #fff8da;
  border-color: #f2d25d;
  color: #574500;
}
.notice.error,
.error {
  background: #fff0ef;
  border-color: #efc2bc;
}
.login .brand {
  background: #122451;
  padding: 0;
  border-radius: 14px;
  border: 1px solid #ffffff12;
  margin: 0 0 28px;
  box-shadow: 0 18px 45px #12224d24, inset 0 1px 0 #ffffff14;
  overflow: hidden;
}
.login .brand-image {
  height: auto;
  aspect-ratio: 1200 / 420;
  object-fit: cover;
  border-radius: 13px;
}
@media (max-width: 640px) {
  aside {
    background: var(--hk-navy);
  }
  aside .brand {
    max-width: 210px;
  }
  nav button.selected {
    box-shadow: none;
  }
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.top-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}
.login-controls {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}
.theme-toggle {
  position: relative;
  width: 34px;
  min-width: 34px;
  height: 18px;
  min-height: 18px;
  padding: 2px;
  overflow: hidden;
  border-radius: 999px;
  border-color: #c8d3e7;
  background: #dfe7f5;
  box-shadow: 0 5px 12px #12224d0f, inset 0 1px 0 #ffffffb8;
}
.theme-toggle:hover {
  background: #d5deef;
}
.theme-toggle span {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 5px #12224d22, inset 0 1px 0 #ffffff;
  transition:
    transform 560ms cubic-bezier(.2, .8, .2, 1),
    background 420ms ease,
    box-shadow 420ms ease;
}
.theme-toggle.night {
  background: #1a2a57;
  border-color: #ffcc18;
  box-shadow:
    0 0 0 1px #ffcc1830,
    0 5px 12px #00000020,
    inset 0 1px 0 #ffffff1f;
}
.theme-toggle.night:hover {
  background: #172858;
}
.theme-toggle.night span {
  transform: translateX(16px);
  background: #dce7fb;
  box-shadow: 0 2px 6px #00000028, inset -4px -2px 0 -2px #99a9ca;
}
.celestial-scene {
  position: relative;
  width: 34px;
  min-width: 34px;
  height: 30px;
  overflow: hidden;
  border-radius: 999px;
  filter: drop-shadow(0 6px 12px #12224d22);
}
.celestial-scene .sun,
.celestial-scene .moon,
.celestial-scene b {
  position: absolute;
  display: block;
}
.celestial-scene .sun {
  left: 7px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffcc18;
  box-shadow: 0 0 0 5px #ffcc1820, 0 0 16px #e3aa155e;
  transition: transform 720ms cubic-bezier(.22, .84, .28, 1), opacity 420ms ease;
}
.celestial-scene .moon {
  left: 8px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eef4ff;
  box-shadow: -6px -3px 0 -2px #9eafd0 inset, 0 0 14px #a9c5ff70;
  opacity: 0;
  transform: translateY(-28px) scale(.9);
  transition: transform 720ms cubic-bezier(.22, .84, .28, 1), opacity 420ms ease 110ms;
}
.celestial-scene b {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 380ms ease 140ms, transform 560ms ease;
}
.celestial-scene b:nth-child(3) {
  left: 4px;
  top: 7px;
}
.celestial-scene b:nth-child(4) {
  right: 6px;
  top: 6px;
}
.celestial-scene b:nth-child(5) {
  left: 27px;
  bottom: 5px;
}
.celestial-scene.night .sun {
  opacity: 0;
  transform: translateY(30px) rotate(28deg) scale(.82);
}
.celestial-scene.night .moon {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.celestial-scene.night b {
  opacity: .9;
  transform: translateY(0);
}
.lang-switch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--hk-line);
  border-radius: 999px;
  background: #fff;
}
.lang-switch button {
  min-height: 24px;
  border: 0;
  border-radius: 999px;
  padding: 3px 8px;
  background: transparent;
  color: var(--hk-navy);
  font-size: 11px;
  font-weight: 750;
}
.lang-switch button.selected {
  background: var(--hk-yellow);
  color: var(--hk-navy);
}
:root[data-theme=dark] body {
  background: #07112b;
}
:root[data-theme=dark] #app {
  background: #07112b;
}
:root[data-theme=dark] body.login-screen {
  background: #07112b;
}
:root[data-theme=dark] body.login-screen #app {
  background: transparent;
}
:root[data-theme=dark] body.login-screen::before {
  background:
    radial-gradient(
      circle at 50% 42%,
      #18346838 0,
      transparent 32%),
    radial-gradient(
      circle at 50% 78%,
      #030817 0,
      transparent 44%),
    linear-gradient(
      180deg,
      #08132e 0%,
      #07112b 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
:root[data-theme=dark] .layout {
  background: #07112b;
}
:root[data-theme=dark] aside {
  background:
    radial-gradient(
      circle at 30% 0,
      #263d7b 0,
      transparent 32%),
    linear-gradient(
      180deg,
      #111f4c 0%,
      #07112b 100%);
  box-shadow: 18px 0 45px #00000040;
}
:root[data-theme=dark] .workspace {
  background:
    radial-gradient(
      circle at 85% 6%,
      #2d407233 0,
      transparent 22%),
    linear-gradient(
      180deg,
      #0b1738 0,
      #07112b 100%);
}
:root[data-theme=dark] .environment,
:root[data-theme=dark] .search,
:root[data-theme=dark] .table-wrap,
:root[data-theme=dark] .catalog-filters,
:root[data-theme=dark] .import-panel,
:root[data-theme=dark] .help-panel,
:root[data-theme=dark] .profile-panel,
:root[data-theme=dark] .profile-summary,
:root[data-theme=dark] dialog,
:root[data-theme=dark] .empty-state,
:root[data-theme=dark] .custom-select-menu,
:root[data-theme=dark] .lang-switch {
  background: #101d42;
  border-color: #2c3b65;
  color: var(--hk-ink);
}
:root[data-theme=dark] input,
:root[data-theme=dark] select,
:root[data-theme=dark] textarea,
:root[data-theme=dark] .custom-select-button {
  background: #0c1738;
  border-color: #33436e;
  color: var(--hk-ink);
}
:root[data-theme=dark] .variant-row {
  background: #0c1738;
  border-color: #33436e;
}
:root[data-theme=dark] .variant-panel {
  background:
    linear-gradient(
      180deg,
      #132452 0%,
      #0c1738 100%);
  border-color: #33436e;
}
:root[data-theme=dark] .catalog-filters {
  background:
    linear-gradient(
      180deg,
      #101e45 0%,
      #0c1738 100%);
  box-shadow: 0 20px 70px #03081735;
}
:root[data-theme=dark] .catalog-filters section {
  border-top-color: #33436e;
}
:root[data-theme=dark] .filter-head h2,
:root[data-theme=dark] .catalog-filters h3,
:root[data-theme=dark] .filter-check,
:root[data-theme=dark] .filter-category-list button {
  color: #eef4ff;
}
:root[data-theme=dark] .filter-breadcrumb,
:root[data-theme=dark] .price-range label {
  color: #9cabca;
}
:root[data-theme=dark] .filter-category-list button:hover,
:root[data-theme=dark] .filter-category-list button.selected {
  background: #172754;
}
:root[data-theme=dark] .category-browser,
:root[data-theme=dark] .tree-details {
  background:
    linear-gradient(
      180deg,
      #101e45 0%,
      #0c1738 100%);
  border-color: #33436e;
  box-shadow: 0 20px 70px #03081735;
}
:root[data-theme=dark] .category-tabs {
  border-bottom-color: #33436e;
}
:root[data-theme=dark] .category-tabs button {
  color: #eef4ff;
}
:root[data-theme=dark] .category-tabs button:hover,
:root[data-theme=dark] .category-tabs button.selected {
  color: var(--hk-yellow);
  border-bottom-color: var(--hk-yellow);
}
:root[data-theme=dark] .category-line > span {
  color: #9cabca;
}
:root[data-theme=dark] .category-line .text-button {
  color: #f8fbff;
}
:root[data-theme=dark] .category-line.level-1 .text-button {
  color: #aebbd4;
}
:root[data-theme=dark] input::placeholder {
  color: #8f9bb7;
}
:root[data-theme=dark] th {
  background: #15234c;
  color: #aeb9cf;
  border-bottom-color: #2c3b65;
}
:root[data-theme=dark] td {
  border-bottom-color: #24345c;
}
:root[data-theme=dark] tbody tr:hover {
  background: #162653;
}
:root[data-theme=dark] .metrics {
  border-color: #2c3b65;
}
:root[data-theme=dark] .metrics > div {
  border-right-color: #2c3b65;
}
:root[data-theme=dark] .metrics strong,
:root[data-theme=dark] h1,
:root[data-theme=dark] h2,
:root[data-theme=dark] h3,
:root[data-theme=dark] .text-button,
:root[data-theme=dark] .money-cell strong,
:root[data-theme=dark] code,
:root[data-theme=dark] .environment,
:root[data-theme=dark] a,
:root[data-theme=dark] .download-link {
  color: var(--hk-ink);
}
:root[data-theme=dark] .photo-placeholder,
:root[data-theme=dark] .photo img,
:root[data-theme=dark] .dropzone {
  background: #0c1738;
  border-color: #34446f;
}
:root[data-theme=dark] button {
  background: #101d42;
  border-color: #34446f;
  color: var(--hk-ink);
}
:root[data-theme=dark] button:hover {
  background: #172858;
}
:root[data-theme=dark] dialog {
  background: #101d42;
}
:root[data-theme=dark] .dialog-body::-webkit-scrollbar-thumb {
  background: #435174;
  border-color: #101d42;
}
:root[data-theme=dark] .dialog-body::-webkit-scrollbar-thumb:hover {
  background: #586789;
}
:root[data-theme=dark] .primary,
:root[data-theme=dark] .lang-switch button.selected,
:root[data-theme=dark] nav button.selected {
  background: var(--hk-yellow);
  border-color: var(--hk-yellow);
  color: var(--hk-navy);
}
:root[data-theme=dark] .green {
  background: #ffe17a;
  color: #453600;
}
:root[data-theme=dark] .badge {
  background: #26365f;
  color: #cbd5ea;
}
:root[data-theme=dark] .badge.green {
  background: #ffe17a;
  color: #453600;
}
:root[data-theme=dark] .dialog-header {
  background: #0b1738;
  border-bottom-color: #293861;
}
:root[data-theme=dark] .custom-select-menu button.selected,
:root[data-theme=dark] .custom-select-menu button:hover {
  background: #ffe17a;
  color: var(--hk-navy);
}
:root[data-theme=dark] .login .brand {
  background:
    linear-gradient(
      180deg,
      #16265a,
      #101d42);
  border-color: #ffffff12;
}
:root[data-theme=dark] .login {
  background:
    linear-gradient(
      180deg,
      #101d42e8 0%,
      #0b1738e8 100%);
  border-color: #26385f;
  box-shadow: 0 30px 90px #00000042, 0 1px 0 #ffffff10 inset;
}
:root[data-theme=dark] .login label {
  color: #eef4ff;
}
:root[data-theme=dark] .login input {
  background:
    linear-gradient(
      180deg,
      #101d42 0%,
      #0c1738 100%);
  border-color: #3d4d7a;
  box-shadow: 0 1px 0 #ffffff10 inset, 0 14px 32px #00000018;
}
:root[data-theme=dark] .login input:hover {
  border-color: #526391;
}
:root[data-theme=dark] .login input:focus {
  border-color: var(--hk-yellow);
  box-shadow:
    0 0 0 3px #ffcc1838,
    0 18px 34px #00000024,
    0 1px 0 #ffffff12 inset;
}
:root[data-theme=dark] .login .password-control .password-toggle {
  background: #15244f;
  color: #d7e2fb;
}
:root[data-theme=dark] .login .password-control .password-toggle:hover {
  background: #1c2f66;
  color: #ffffff;
}
button.loading {
  cursor: progress;
}
button.loading svg {
  animation: hk-spin 900ms linear infinite;
}
button.primary.loading:disabled {
  opacity: .92;
}
@keyframes hk-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1000px) {
  .header-actions {
    justify-content: flex-start;
  }
}
