* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ghost-button,
.primary-button,
.danger-button,
.icon-button {
  border: 1px solid transparent;
  text-decoration: none;
}

.ghost-button:disabled,
.primary-button:disabled,
.danger-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
}

.kb-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.kb-body {
  --kb-nav-width: 336px;
  --kb-bg: #f4f5f7;
  --kb-surface: rgba(255, 255, 255, 0.96);
  --kb-surface-strong: #ffffff;
  --kb-subtle: #f7f7f6;
  --kb-subtle-strong: #f0efed;
  --kb-line: #dedbd5;
  --kb-line-strong: #cfc7ba;
  --kb-ink: #11131a;
  --kb-muted: #6d7280;
  --kb-accent: #b28546;
  --kb-accent-strong: #8b642f;
  --kb-accent-soft: #f4eadb;
  --kb-jade: #8b642f;
  --kb-jade-soft: #f7eddf;
  --kb-warm: #e36a4a;
  --kb-warm-soft: #fff1eb;
  --kb-shadow: 0 24px 60px rgba(17, 19, 26, 0.07);
  margin: 0;
  color: var(--kb-ink);
  background:
    radial-gradient(circle at top left, rgba(178, 133, 70, 0.1), transparent 24%),
    radial-gradient(circle at top right, rgba(17, 19, 26, 0.06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f4f5f7 100%);
}

.kb-body .eyebrow {
  color: var(--kb-jade);
}

.kb-body.kb-booting {
  min-height: 100vh;
  overflow: hidden;
}

.kb-body.kb-booting .kb-mobile-topbar,
.kb-body.kb-booting .kb-nav-backdrop,
.kb-body.kb-booting .kb-nav-collapse,
.kb-body.kb-booting .kb-app,
.kb-body.kb-booting .kb-feedback-widget {
  visibility: hidden;
  pointer-events: none;
}

.kb-boot-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 12%, rgba(178, 133, 70, 0.12), transparent 30%),
    radial-gradient(circle at 82% 0%, rgba(17, 19, 26, 0.06), transparent 28%),
    linear-gradient(180deg, #fffdf9 0%, #f7f3ec 100%);
  opacity: 1;
  transition:
    opacity 240ms ease,
    visibility 240ms ease;
}

.kb-boot-screen[hidden] {
  display: none;
}

.kb-boot-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
}

.kb-boot-card {
  width: min(420px, calc(100vw - 40px));
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: 34px 30px;
  border: 1px solid rgba(178, 133, 70, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 28px 70px rgba(72, 52, 28, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
}

.kb-boot-card img {
  width: min(260px, 70vw);
  height: auto;
  mix-blend-mode: multiply;
}

.kb-boot-card p {
  margin: 0;
  color: #69645f;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.5;
  text-align: center;
}

.kb-boot-pulse {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
}

.kb-boot-pulse span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--kb-accent);
  animation: kb-boot-pulse 900ms ease-in-out infinite;
}

.kb-boot-pulse span:nth-child(2) {
  animation-delay: 120ms;
}

.kb-boot-pulse span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes kb-boot-pulse {
  0%,
  100% {
    opacity: 0.34;
    transform: translateY(0) scale(0.82);
  }

  50% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }
}

.kb-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--kb-nav-width) minmax(0, 1fr);
  transition: grid-template-columns 180ms ease;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kb-mobile-topbar,
.kb-nav-backdrop {
  display: none;
}

.kb-nav-collapse {
  position: fixed;
  top: 82px;
  left: calc(var(--kb-nav-width) - 18px);
  z-index: 35;
  width: 36px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--kb-accent-strong);
  box-shadow: 0 14px 28px rgba(17, 19, 26, 0.12);
  backdrop-filter: blur(12px);
  transition:
    left 180ms ease,
    color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.kb-nav-collapse:hover,
.kb-nav-collapse:focus-visible {
  border-color: rgba(178, 133, 70, 0.38);
  color: var(--kb-ink);
  outline: none;
}

.kb-panel-toggle-icon {
  width: 22px;
  height: 18px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}

.kb-panel-toggle-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.92;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.42);
  transform-origin: center;
  transition:
    width 180ms ease,
    opacity 160ms ease,
    transform 180ms ease;
}

.kb-panel-toggle-icon span:nth-child(1) {
  width: 18px;
}

.kb-panel-toggle-icon span:nth-child(2) {
  width: 22px;
}

.kb-panel-toggle-icon span:nth-child(3) {
  width: 18px;
}

.kb-nav-collapse:hover .kb-panel-toggle-icon span,
.kb-nav-collapse:focus-visible .kb-panel-toggle-icon span {
  width: 22px;
}

.kb-body.kb-nav-collapsed .kb-app {
  grid-template-columns: 0 minmax(0, 1fr);
}

.kb-body.kb-nav-collapsed .kb-nav-shell {
  transform: translateX(calc(-1 * var(--kb-nav-width)));
  opacity: 0;
  pointer-events: none;
}

.kb-body.kb-nav-collapsed .kb-nav-collapse {
  left: 16px;
}

.kb-body.kb-nav-collapsed .kb-panel-toggle-icon span:nth-child(1),
.kb-body.kb-nav-collapsed .kb-panel-toggle-icon span:nth-child(3) {
  width: 22px;
}

.kb-nav-shell {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: auto;
  padding: 24px 20px 28px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(222, 219, 213, 0.92);
  display: grid;
  grid-template-rows: auto auto;
  align-content: start;
  gap: 22px;
  transition:
    transform 180ms ease,
    opacity 160ms ease;
}

.kb-brand-band {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 4px 4px 2px;
}

.kb-nav-close {
  display: none;
}

.kb-brand-home,
.kb-mobile-home {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.kb-brand-home {
  display: block;
  width: 100%;
  padding: 0;
}

.kb-mobile-home {
  display: none;
  padding: 0;
}

.kb-brand-home:focus-visible,
.kb-mobile-home:focus-visible,
.kb-active-role-title:focus-visible {
  outline: 3px solid rgba(178, 133, 70, 0.22);
  outline-offset: 4px;
}

.kb-brand-logo {
  display: block;
  width: min(100%, 264px);
  height: auto;
  margin: 0 auto;
  mix-blend-mode: multiply;
}

.kb-active-role-title {
  width: 100%;
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  margin-top: 0;
  padding: 11px 14px;
  border: 1px solid rgba(178, 133, 70, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf9 0%, #faf7f1 100%);
  color: var(--kb-accent-strong);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
  overflow-wrap: anywhere;
}

.kb-active-role-title:hover {
  border-color: rgba(178, 133, 70, 0.36);
  background: linear-gradient(180deg, #ffffff 0%, #f8efe3 100%);
}

.kb-active-role-title::before {
  content: "Текущая роль";
  color: var(--kb-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kb-role-preview {
  width: 100%;
  display: grid;
  gap: 7px;
  padding: 10px 12px 12px;
  border: 1px solid rgba(222, 219, 213, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.kb-role-preview span {
  color: var(--kb-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.kb-role-preview select {
  width: 100%;
  min-height: 38px;
  padding: 0 32px 0 12px;
  border: 1px solid rgba(178, 133, 70, 0.2);
  border-radius: 8px;
  background: var(--kb-subtle);
  color: var(--kb-ink);
  font-size: 14px;
  font-weight: 800;
  outline: none;
}

.kb-role-preview select:focus {
  border-color: rgba(178, 133, 70, 0.48);
  box-shadow: 0 0 0 4px rgba(178, 133, 70, 0.1);
}

.kb-employee-menu {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 4px 0 0;
}

.kb-employee-menu-item {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--kb-muted);
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.kb-employee-menu-item .kb-icon {
  width: 19px;
  height: 19px;
}

.kb-employee-menu-item:hover,
.kb-employee-menu-item:focus-visible {
  border-color: rgba(178, 133, 70, 0.16);
  background: #fffaf2;
  color: var(--kb-accent-strong);
  outline: none;
  transform: translateX(2px);
}

.kb-employee-menu-item.is-active {
  border-color: rgba(178, 133, 70, 0.26);
  background: linear-gradient(180deg, #fff7eb 0%, #f8efe1 100%);
  color: var(--kb-accent-strong);
  box-shadow: 0 12px 26px rgba(178, 133, 70, 0.1);
}

.kb-chapter-nav-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.kb-chapter-nav-panel .kb-panel-summary {
  padding: 2px 4px 10px;
  border-bottom: 0;
}

.kb-chapter-nav-panel[open] > .kb-panel-summary {
  border-bottom: 0;
}

.kb-chapter-nav-panel .kb-panel-summary strong {
  font-size: 18px;
}

.kb-chapter-nav-panel .kb-panel-body {
  padding: 4px 0 0;
  gap: 10px;
}

.kb-mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background: var(--kb-surface-strong);
  color: var(--kb-ink);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--kb-shadow);
}

.kb-panel,
.kb-rail-card,
.kb-article-surface,
.kb-editor-shell {
  background: var(--kb-surface);
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  box-shadow: var(--kb-shadow);
}

summary {
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

.kb-panel-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 16px;
  cursor: pointer;
}

.kb-panel-summary strong {
  font-size: 16px;
  line-height: 1.2;
}

.kb-panel-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--kb-muted);
}

.kb-summary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--kb-line);
  background: var(--kb-subtle);
  color: var(--kb-muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.kb-panel[open] > .kb-panel-summary,
.kb-history-card[open] > .kb-panel-summary {
  border-bottom: 1px solid var(--kb-line);
}

.kb-panel-body {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.kb-search-cluster {
  display: grid;
  gap: 12px;
}

.kb-field,
.field {
  display: grid;
  gap: 8px;
}

.kb-field span,
.field span {
  font-size: 12px;
  font-weight: 700;
  color: var(--kb-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.kb-body .kb-field input,
.kb-body .kb-field select,
.field input,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--kb-line);
  background: var(--kb-subtle);
  color: var(--kb-ink);
  font: inherit;
}

.kb-body .kb-field input:focus,
.kb-body .kb-field select:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(178, 133, 70, 0.42);
  box-shadow: 0 0 0 4px rgba(178, 133, 70, 0.1);
  background: var(--kb-surface-strong);
}

.kb-nav-actions,
.kb-actions,
.editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.kb-search-status {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background: var(--kb-subtle);
  color: var(--kb-muted);
  font-size: 13px;
  line-height: 1.45;
}

.kb-access-view {
  min-height: 46px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px;
  border-radius: 8px;
  border: 1px solid var(--kb-line);
  background: var(--kb-subtle);
}

.kb-access-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid var(--kb-line);
  background: var(--kb-surface-strong);
  color: var(--kb-muted);
  font-size: 12px;
  font-weight: 800;
}

.kb-access-chip-admin {
  border-color: rgba(178, 133, 70, 0.24);
  background: var(--kb-accent-soft);
  color: var(--kb-accent-strong);
}

.kb-access-chip-warning {
  border-color: rgba(227, 106, 74, 0.28);
  background: var(--kb-warm-soft);
  color: #a54831;
}

.kb-tree {
  display: grid;
  gap: 3px;
}

.kb-tree-tools {
  display: flex;
  gap: 8px;
  margin: 0 0 8px;
}

.kb-tree-tools[hidden] {
  display: none;
}

.kb-tree-tool {
  min-height: 34px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background: var(--kb-surface-strong);
  color: var(--kb-muted);
  padding: 0 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.kb-tree-tool:hover,
.kb-tree-tool:focus-visible {
  border-color: rgba(178, 133, 70, 0.26);
  color: var(--kb-accent-strong);
  background: #fffaf2;
  outline: none;
}

.kb-role-list {
  display: grid;
  gap: 8px;
}

.kb-role-item {
  width: 100%;
  min-height: 62px;
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background: var(--kb-surface-strong);
  color: var(--kb-ink);
  text-align: left;
}

.kb-role-item:hover,
.kb-role-item.active {
  border-color: rgba(178, 133, 70, 0.36);
  background: #fcfdff;
  box-shadow: 0 12px 24px rgba(178, 133, 70, 0.08);
}

.kb-role-item span {
  font-weight: 800;
  line-height: 1.25;
}

.kb-role-item small {
  color: var(--kb-muted);
  font-size: 12px;
  line-height: 1.35;
}

.kb-tree.drag-active {
  gap: 10px;
}

.kb-tree .empty-state,
.history-list.empty-state {
  color: var(--kb-muted);
  border: 1px dashed var(--kb-line);
  border-radius: 8px;
  padding: 18px;
  background: var(--kb-subtle);
  font-size: 14px;
  line-height: 1.55;
}

.tree-group {
  display: grid;
  gap: 3px;
}

.tree-row {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 6px;
  margin-left: calc(var(--depth, 0) * 12px);
  align-items: start;
}

.tree-row.can-drag {
  grid-template-columns: 28px 24px minmax(0, 1fr);
}

.tree-row.drag-before::after,
.tree-row.drag-after::after {
  content: "";
  position: absolute;
  left: 38px;
  right: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--kb-jade), var(--kb-accent));
  box-shadow: 0 0 0 1px rgba(178, 133, 70, 0.08);
}

.tree-row.drag-before::after {
  top: -5px;
}

.tree-row.drag-after::after {
  bottom: -5px;
}

.tree-row.drag-inside .tree-item {
  border-color: rgba(139, 100, 47, 0.34);
  background: linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
  box-shadow: inset 3px 0 0 var(--kb-jade);
}

.tree-row.dragging {
  opacity: 0.42;
}

.tree-drop-placeholder,
.tree-root-drop-zone {
  margin-left: calc(var(--depth, 0) * 18px);
  border-radius: 8px;
}

.tree-drop-placeholder {
  min-height: 44px;
  border: 1px dashed rgba(178, 133, 70, 0.42);
  background:
    linear-gradient(180deg, rgba(244, 234, 219, 0.92) 0%, rgba(247, 237, 223, 0.72) 100%);
  box-shadow: inset 3px 0 0 var(--kb-accent), 0 10px 24px rgba(178, 133, 70, 0.08);
  color: var(--kb-accent-strong);
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.tree-drop-placeholder span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tree-drop-placeholder span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--kb-accent);
  box-shadow: 0 0 0 4px rgba(178, 133, 70, 0.12);
}

.tree-drop-inside {
  border-color: rgba(139, 100, 47, 0.44);
  color: var(--kb-jade);
  box-shadow: inset 3px 0 0 var(--kb-jade), 0 10px 24px rgba(139, 100, 47, 0.08);
}

.tree-drop-inside span::before {
  background: var(--kb-jade);
  box-shadow: 0 0 0 4px rgba(139, 100, 47, 0.12);
}

.tree-root-drop-zone {
  display: none;
  min-height: 44px;
  border: 1px dashed var(--kb-line-strong);
  background: rgba(247, 247, 246, 0.68);
  color: var(--kb-muted);
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
}

.kb-tree.drag-active .tree-root-drop-zone {
  display: flex;
}

.tree-root-drop-zone.root-drop-active {
  border-color: rgba(178, 133, 70, 0.42);
  background: transparent;
  padding: 0;
}

.tree-root-drop-zone.root-drop-active .tree-drop-placeholder {
  width: 100%;
}

.tree-handle {
  width: 28px;
  height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--kb-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.tree-row.can-drag .tree-handle {
  cursor: grab;
}

.tree-row.can-drag:hover .tree-handle,
.tree-handle:focus-visible {
  color: var(--kb-accent-strong);
  background: var(--kb-accent-soft);
  border-color: rgba(178, 133, 70, 0.14);
  outline: none;
}

.tree-item {
  position: relative;
  width: 100%;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 9px 12px;
  display: grid;
  gap: 3px;
  text-align: left;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.tree-item::before {
  content: none;
}

.tree-item:hover {
  transform: none;
  background: var(--kb-subtle);
  border-color: var(--kb-line);
}

.tree-item.active {
  background: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
  border-color: rgba(178, 133, 70, 0.28);
  box-shadow: inset 3px 0 0 var(--kb-accent), 0 8px 18px rgba(17, 19, 26, 0.04);
}

.tree-toggle,
.tree-toggle-placeholder {
  width: 24px;
  height: 48px;
}

.tree-toggle {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--kb-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.tree-toggle .kb-icon {
  width: 16px;
  height: 16px;
  transform: rotate(90deg);
  transition: transform 140ms ease;
}

.tree-row.is-collapsed .tree-toggle .kb-icon {
  transform: rotate(0deg);
}

.tree-toggle:hover,
.tree-toggle:focus-visible {
  color: var(--kb-accent-strong);
  background: var(--kb-accent-soft);
  border-color: rgba(178, 133, 70, 0.16);
  outline: none;
}

.tree-toggle-placeholder {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
}

.tree-toggle-placeholder::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 20px;
  border-radius: 999px;
  background: rgba(136, 145, 161, 0.28);
}

.tree-row.is-active .tree-toggle,
.tree-row.active-ancestor .tree-toggle {
  color: var(--kb-accent-strong);
}

.tree-row.is-active .tree-toggle-placeholder::before {
  background: var(--kb-accent);
  box-shadow: 0 0 0 4px rgba(178, 133, 70, 0.12);
}

.tree-row.has-children .tree-item span {
  font-weight: 900;
}

.tree-row.active-ancestor .tree-item {
  color: var(--kb-accent-strong);
}

.tree-item span {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.tree-item small,
.history-item span {
  color: var(--kb-muted);
  font-size: 11px;
  line-height: 1.35;
}

.kb-workspace {
  min-width: 0;
  padding: 0 34px 40px;
}

.kb-workspace-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 22px;
  background: rgba(244, 245, 247, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(222, 219, 213, 0.92);
}

.kb-title-block {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.kb-title-block h2 {
  margin: 0;
  font-size: 44px;
  line-height: 1.02;
  max-width: min(100%, 24ch);
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.kb-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.kb-title-edit {
  width: 42px;
  min-width: 42px;
  height: 42px;
  margin-top: 6px;
  border-color: var(--kb-line);
  background: var(--kb-surface-strong);
  color: var(--kb-ink);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.kb-title-edit:hover,
.kb-title-edit:focus-visible {
  border-color: rgba(178, 133, 70, 0.28);
  color: var(--kb-accent-strong);
  outline: none;
}

.kb-title-edit:disabled {
  opacity: 0;
  pointer-events: none;
}

.kb-title-block h2.editing-title {
  min-width: min(16ch, 100%);
  border-radius: 8px;
  outline: 2px solid rgba(178, 133, 70, 0.18);
  outline-offset: 6px;
  cursor: text;
}

.kb-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.kb-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--kb-line);
  background: var(--kb-subtle);
  color: var(--kb-ink);
  font-size: 13px;
  font-weight: 700;
  max-width: 100%;
  white-space: normal;
}

.kb-tag-accent {
  background: var(--kb-jade-soft);
  border-color: rgba(139, 100, 47, 0.16);
  color: var(--kb-jade);
}

.kb-tag-warm {
  background: var(--kb-warm-soft);
  border-color: rgba(227, 106, 74, 0.18);
  color: #bf563a;
}

.kb-tag-muted {
  color: var(--kb-muted);
}

.kb-actions-shell {
  display: grid;
  gap: 12px;
  justify-items: end;
}

.kb-actions {
  justify-content: flex-end;
}

.kb-mode-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
  padding: 10px 12px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background: var(--kb-subtle);
  color: var(--kb-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}

.kb-mode-note[data-kind="reorder"] {
  background: var(--kb-accent-soft);
  border-color: rgba(178, 133, 70, 0.14);
  color: var(--kb-accent-strong);
}

.kb-mode-note[data-kind="readonly"] {
  background: var(--kb-warm-soft);
  border-color: rgba(227, 106, 74, 0.16);
  color: #b65338;
}

.kb-icon,
.kb-mode-note svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kb-action-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.kb-icon-only {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--kb-line);
  background: var(--kb-surface-strong);
  color: var(--kb-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.kb-icon-only:hover,
.kb-icon-only:focus-visible {
  border-color: rgba(178, 133, 70, 0.28);
  color: var(--kb-accent-strong);
  outline: none;
}

.kb-nav-close {
  display: none;
}

.kb-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-top: 26px;
}

.kb-reading-stage {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.kb-editor-shell {
  padding: 18px;
  display: grid;
  gap: 16px;
}

.kb-inline-editor-bar {
  position: sticky;
  top: 98px;
  z-index: 9;
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.kb-inline-editor-bar .editor-actions {
  flex-wrap: nowrap;
}

.kb-editor-shell[hidden] {
  display: none;
}

.kb-editor-headline[hidden] {
  display: none;
}

.kb-editor-headline [hidden] {
  display: none !important;
}

.kb-editor-headline {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.kb-title-field input {
  min-height: 58px;
  font-size: 28px;
  font-weight: 700;
  background: var(--kb-surface-strong);
}

.kb-editor-meta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.kb-compact-field input {
  text-align: center;
  font-weight: 700;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.kb-nav-close {
  display: none;
}

.kb-article-surface {
  min-height: calc(100vh - 176px);
  overflow: hidden;
}

.kb-article-surface.role-home-surface {
  min-height: auto;
  overflow: visible;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.kb-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 52px 60px;
  font-size: 18px;
  line-height: 1.78;
  color: var(--kb-ink);
  outline: none;
}

.kb-content > :first-child {
  margin-top: 0;
}

.kb-content p {
  margin-bottom: 18px;
}

.kb-content h1,
.kb-content h2,
.kb-content h3 {
  margin: 32px 0 14px;
  line-height: 1.12;
}

.kb-content h1 {
  font-size: 42px;
}

.kb-content h2 {
  font-size: 31px;
}

.kb-content h3 {
  font-size: 24px;
}

.kb-content ul,
.kb-content ol {
  margin: 0 0 18px;
  padding-left: 26px;
}

.kb-content li {
  margin-bottom: 8px;
}

.kb-content blockquote {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--kb-jade);
  background: var(--kb-jade-soft);
  border-radius: 0 8px 8px 0;
}

.kb-content a {
  color: var(--kb-accent-strong);
  font-weight: 700;
}

.kb-content code {
  background: #f0f4fb;
  border: 1px solid #dce5f0;
  border-radius: 6px;
  padding: 2px 6px;
  font-size: 0.9em;
}

.kb-content hr {
  border: 0;
  border-top: 1px solid var(--kb-line);
  margin: 34px 0;
}

.kb-content img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: 8px;
  border: 1px solid var(--kb-line);
}

.kb-content pre,
.employee-lesson-body pre {
  overflow-x: auto;
  margin: 24px 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: #1f211f;
  color: #fff8ed;
  font-size: 0.9em;
  line-height: 1.65;
}

.kb-content img,
.employee-lesson-body img {
  max-width: 100%;
  height: auto;
}

.employee-lesson-body ul,
.employee-lesson-body ol {
  margin: 0 0 22px;
  padding-left: 28px;
}

.employee-lesson-body li {
  margin-bottom: 8px;
}

.employee-lesson-body blockquote {
  margin: 28px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--kb-accent);
  border-radius: 0 14px 14px 0;
  background: rgba(244, 234, 219, 0.58);
  color: #4b4c55;
}

.employee-lesson-body a {
  color: var(--kb-accent-strong);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.employee-lesson-body code {
  padding: 2px 7px;
  border: 1px solid rgba(81, 64, 44, 0.12);
  border-radius: 7px;
  background: rgba(244, 234, 219, 0.58);
  color: #372b1f;
  font-size: 0.9em;
}

.employee-lesson-body hr {
  height: 1px;
  margin: 38px 0;
  border: 0;
  background: rgba(81, 64, 44, 0.16);
}

.employee-lesson-body img {
  display: block;
  margin: 30px 0;
  border: 1px solid rgba(81, 64, 44, 0.12);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(60, 44, 24, 0.08);
}

.kb-chapter-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.kb-chapter-command-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.kb-chapter-command-row .primary-button,
.kb-chapter-command-row .ghost-button {
  min-height: 48px;
}

.kb-lesson-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--kb-line);
}

.kb-lesson-nav-button {
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background: var(--kb-surface-strong);
  color: var(--kb-ink);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.kb-lesson-nav-button:hover:not(:disabled) {
  border-color: rgba(178, 133, 70, 0.28);
  background: #fcfdff;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.kb-lesson-nav-button:disabled {
  cursor: not-allowed;
  border-style: dashed;
  background: var(--kb-subtle);
  color: var(--kb-muted);
  box-shadow: none;
}

.kb-lesson-nav-button.primary {
  border-color: var(--kb-accent);
  background: var(--kb-accent);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(178, 133, 70, 0.18);
}

.kb-lesson-nav-button.primary:hover {
  background: var(--kb-accent-strong);
}

.kb-lesson-nav-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--kb-accent-soft);
  color: var(--kb-accent-strong);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.kb-lesson-nav-button:disabled .kb-lesson-nav-icon {
  background: var(--kb-surface-strong);
  color: var(--kb-muted);
}

.kb-lesson-nav-button.primary .kb-lesson-nav-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.kb-lesson-nav-button small,
.kb-lesson-nav-button strong {
  display: block;
  min-width: 0;
}

.kb-lesson-nav-button small {
  margin-bottom: 4px;
  color: var(--kb-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.kb-lesson-nav-button.primary small {
  color: rgba(255, 255, 255, 0.78);
}

.kb-lesson-nav-button strong {
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.25;
}

.kb-content.chapter-dashboard {
  max-width: 1180px;
  padding: 34px;
  line-height: 1.5;
}

.kb-content.role-dashboard {
  max-width: 1180px;
  padding: 34px;
  line-height: 1.5;
}

.kb-article-surface.role-home-surface .kb-content.role-dashboard {
  max-width: 1180px;
  padding: 0 0 42px;
}

.kb-content.admin-dashboard {
  max-width: 1180px;
  padding: 34px;
  line-height: 1.5;
}

.kb-chapter-dashboard {
  display: grid;
  gap: 18px;
}

.kb-role-dashboard,
.kb-role-editor,
.kb-admin-dashboard {
  display: grid;
  gap: 18px;
}

.kb-role-editor {
  gap: 20px;
}

@keyframes employeeFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes employeeShimmer {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes employeeGlowPulse {
  0%,
  100% {
    box-shadow:
      0 18px 46px rgba(178, 133, 70, 0.12),
      0 0 0 1px rgba(178, 133, 70, 0.18);
  }
  50% {
    box-shadow:
      0 24px 58px rgba(178, 133, 70, 0.18),
      0 0 0 5px rgba(178, 133, 70, 0.07);
  }
}

.kb-employee-dashboard {
  display: grid;
  gap: 18px;
}

.employee-hero-shell,
.employee-panel,
.employee-section,
.employee-reading-card {
  border: 1px solid rgba(222, 219, 213, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 48px rgba(17, 19, 26, 0.055);
  animation: employeeFadeUp 360ms ease both;
}

.employee-hero-shell {
  overflow: hidden;
}

.employee-hero-main {
  position: relative;
  min-height: 270px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 22px;
  align-items: stretch;
  padding: 34px;
  background:
    radial-gradient(circle at 84% 28%, rgba(178, 133, 70, 0.18), transparent 27%),
    linear-gradient(135deg, #ffffff 0%, #fffaf2 58%, #f5ead9 100%);
}

.employee-hero-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 16px;
}

.employee-soft-label {
  margin: 0;
  color: var(--kb-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.25;
  text-transform: uppercase;
}

.employee-hero-copy h3,
.employee-reading-head h3 {
  margin: 0;
  color: var(--kb-ink);
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.04;
  letter-spacing: 0;
}

.employee-hero-copy p:not(.employee-soft-label),
.employee-reading-head p:not(.employee-soft-label) {
  max-width: 68ch;
  margin: 0;
  color: var(--kb-muted);
  font-size: 17px;
  line-height: 1.68;
}

.employee-hero-actions,
.employee-reading-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.employee-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.employee-primary .kb-icon {
  width: 18px;
  height: 18px;
}

.employee-hero-visual {
  min-width: 0;
  display: grid;
  place-items: center;
}

.employee-compass {
  position: relative;
  width: min(260px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #fffdf8 0 34%, #f2dfc4 35% 36%, #fff8ec 37% 58%, #d6ad72 59% 60%, #fffaf2 61% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(178, 133, 70, 0.24),
    0 24px 52px rgba(139, 100, 47, 0.18);
}

.employee-compass::before,
.employee-compass::after,
.employee-compass span {
  content: "";
  position: absolute;
  inset: 22%;
  background: linear-gradient(45deg, transparent 44%, #b28546 45% 55%, transparent 56%);
  transform: rotate(45deg);
}

.employee-compass::after {
  background: linear-gradient(135deg, transparent 44%, rgba(17, 19, 26, 0.72) 45% 55%, transparent 56%);
  transform: rotate(-45deg);
}

.employee-compass span {
  inset: 48%;
  border-radius: 50%;
  background: var(--kb-accent-strong);
  transform: none;
  box-shadow: 0 0 0 10px rgba(178, 133, 70, 0.12);
}

.employee-progress-strip {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(3, minmax(0, 0.72fr));
  gap: 1px;
  border-top: 1px solid rgba(222, 219, 213, 0.9);
  background: rgba(222, 219, 213, 0.75);
}

.employee-progress-summary,
.employee-metric {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px 22px;
  background: rgba(255, 255, 255, 0.9);
}

.employee-progress-summary span,
.employee-metric span,
.employee-material-top small,
.employee-test-row span,
.employee-reading-meta span {
  color: var(--kb-muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.employee-progress-summary strong,
.employee-metric strong {
  color: var(--kb-ink);
  font-size: 26px;
  line-height: 1;
}

.employee-metric small {
  color: var(--kb-muted);
  font-size: 12px;
  line-height: 1.35;
}

.employee-progress-bar,
.employee-card-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee9df;
}

.employee-progress-bar span,
.employee-card-progress span,
.kb-role-progress-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d7a14d 0%, #8b642f 100%);
  transition: width 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.employee-gamification-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(220px, 0.72fr) minmax(0, 0.92fr);
  gap: 18px;
}

.employee-level-card,
.employee-streak-card,
.employee-achievement-preview,
.employee-completion-card {
  min-width: 0;
  border: 1px solid rgba(222, 219, 213, 0.9);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 250, 242, 0.9) 100%),
    #ffffff;
  box-shadow: 0 16px 42px rgba(17, 19, 26, 0.052);
  animation: employeeFadeUp 360ms ease both;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    border-color 170ms ease,
    background 170ms ease;
}

.employee-level-card:hover,
.employee-streak-card:hover,
.employee-achievement-preview:hover,
.employee-completion-card:hover {
  border-color: rgba(178, 133, 70, 0.26);
  box-shadow: 0 22px 52px rgba(17, 19, 26, 0.075);
  transform: translateY(-2px);
}

.employee-level-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 22px;
}

.employee-level-badge,
.employee-achievement-medal,
.employee-award-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--kb-accent-strong);
  background:
    radial-gradient(circle at 36% 26%, #fff9ee 0 22%, #e7c48b 23% 56%, #b28546 57% 100%);
}

.employee-level-badge {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    0 18px 34px rgba(178, 133, 70, 0.2);
}

.employee-level-badge .kb-icon,
.employee-achievement-medal .kb-icon,
.employee-award-toast-icon .kb-icon {
  color: #fffaf2;
  filter: drop-shadow(0 2px 4px rgba(96, 67, 28, 0.24));
}

.employee-level-badge .kb-icon {
  width: 34px;
  height: 34px;
}

.employee-level-card h4 {
  margin: 4px 0 6px;
  color: var(--kb-ink);
  font-size: 24px;
  line-height: 1.12;
}

.employee-level-card p:not(.employee-soft-label),
.employee-streak-card p:not(.employee-soft-label) {
  margin: 0;
  color: var(--kb-muted);
  font-size: 14px;
  line-height: 1.5;
}

.employee-xp-bar {
  position: relative;
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee9df;
}

.employee-xp-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 45%, transparent 90%);
  animation: employeeShimmer 1800ms ease-in-out infinite;
}

.employee-xp-bar span {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d7a14d 0%, #8b642f 100%);
  transition: width 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.employee-streak-card {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
}

.employee-streak-card strong {
  color: var(--kb-ink);
  font-size: 27px;
  line-height: 1.08;
}

.employee-achievement-preview {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.employee-achievement-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.employee-achievement-preview-head strong {
  display: block;
  margin-top: 4px;
  color: var(--kb-ink);
  font-size: 24px;
  line-height: 1;
}

.employee-mini-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.employee-mini-badge {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(222, 219, 213, 0.94);
  border-radius: 50%;
  background: #f7f5f1;
  color: #a8a29a;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease,
    background 160ms ease;
}

.employee-mini-badge .kb-icon {
  width: 20px;
  height: 20px;
}

.employee-mini-badge.unlocked {
  border-color: rgba(178, 133, 70, 0.32);
  background:
    radial-gradient(circle at 36% 26%, #fff9ee 0 22%, #e7c48b 23% 56%, #b28546 57% 100%);
  color: #fffaf2;
  box-shadow: 0 12px 28px rgba(178, 133, 70, 0.16);
}

.employee-mini-badge:hover {
  transform: translateY(-2px) scale(1.02);
}

.employee-mini-badge.locked {
  opacity: 0.72;
}

.employee-work-grid,
.employee-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr);
  gap: 18px;
  align-items: start;
}

.employee-continue-card {
  min-height: 214px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 24px;
  background:
    linear-gradient(180deg, #fffdf9 0%, #fbf3e8 100%),
    #ffffff;
}

.employee-continue-card h4,
.employee-section h4 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
}

.employee-continue-card p {
  margin: 10px 0 0;
  color: var(--kb-muted);
  font-size: 15px;
  line-height: 1.62;
}

.employee-search-panel {
  padding: 20px;
}

.employee-search-field {
  display: grid;
  gap: 10px;
}

.employee-search-field span {
  color: var(--kb-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.employee-search-field input {
  width: 100%;
  min-height: 64px;
  padding: 0 18px;
  border: 1px solid rgba(178, 133, 70, 0.26);
  border-radius: 10px;
  background: #fffdf9;
  color: var(--kb-ink);
  font-size: 20px;
  font-weight: 800;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.employee-search-field input:focus {
  border-color: rgba(178, 133, 70, 0.52);
  background: #ffffff;
  box-shadow: 0 0 0 5px rgba(178, 133, 70, 0.11);
}

.employee-search-results {
  margin-top: 14px;
}

.employee-section {
  overflow: hidden;
}

.employee-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(222, 219, 213, 0.9);
}

.employee-material-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.employee-material-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 0;
}

.employee-material-card {
  min-width: 0;
  animation: employeeFadeUp 360ms ease both;
  animation-delay: var(--employee-delay, 0ms);
}

.employee-material-card button {
  width: 100%;
  min-height: 236px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(222, 219, 213, 0.92);
  border-radius: 10px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fffbf5 100%);
  color: var(--kb-ink);
  text-align: left;
  box-shadow: 0 12px 28px rgba(17, 19, 26, 0.04);
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease,
    background 170ms ease;
}

.employee-material-card button:hover,
.employee-material-card button:focus-visible,
.employee-panel:hover,
.employee-section:hover {
  border-color: rgba(178, 133, 70, 0.26);
  box-shadow: 0 22px 46px rgba(17, 19, 26, 0.075);
}

.employee-material-card button:hover,
.employee-material-card button:focus-visible {
  background: #ffffff;
  outline: none;
  transform: translateY(-2px);
}

.employee-material-top {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.employee-status {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--kb-subtle);
  color: var(--kb-muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.employee-status.process {
  background: var(--kb-accent-soft);
  color: var(--kb-accent-strong);
}

.employee-status.done {
  background: #f2eadc;
  color: var(--kb-accent-strong);
}

.employee-material-card h5 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.employee-material-card p {
  margin: 0;
  color: var(--kb-muted);
  font-size: 14px;
  line-height: 1.56;
}

.employee-material-card strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--kb-accent-strong);
  font-size: 14px;
  line-height: 1.2;
}

.employee-material-card strong .kb-icon {
  width: 15px;
  height: 15px;
}

.employee-test-list,
.employee-update-list {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.employee-test-row,
.employee-update-row {
  width: 100%;
  min-height: 76px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--kb-ink);
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.employee-test-row:hover,
.employee-test-row:focus-visible,
.employee-update-row:hover,
.employee-update-row:focus-visible {
  border-color: rgba(178, 133, 70, 0.22);
  background: #fffaf2;
  outline: none;
  transform: translateY(-1px);
}

.employee-test-row strong,
.employee-update-row span {
  font-size: 17px;
  line-height: 1.3;
}

.employee-test-row small,
.employee-update-row small {
  color: var(--kb-muted);
  font-size: 13px;
  line-height: 1.35;
}

.employee-progress-panel {
  margin-top: 2px;
}

.employee-program-progress-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.84fr) minmax(0, 1.16fr);
  gap: 16px;
  padding: 16px;
}

.employee-completion-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  padding: 22px;
}

.employee-completion-ring {
  position: relative;
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#b28546 calc(var(--completion) * 1%), #eee9df 0);
  box-shadow: inset 0 0 0 1px rgba(178, 133, 70, 0.12);
}

.employee-completion-ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fffdf9;
  box-shadow: inset 0 0 0 1px rgba(222, 219, 213, 0.74);
}

.employee-completion-ring span {
  position: relative;
  z-index: 1;
  color: var(--kb-ink);
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}

.employee-completion-card strong {
  display: block;
  margin: 4px 0 8px;
  color: var(--kb-ink);
  font-size: 22px;
  line-height: 1.2;
}

.employee-completion-card p:not(.employee-soft-label) {
  margin: 0;
  color: var(--kb-muted);
  font-size: 14px;
  line-height: 1.58;
}

.employee-section-progress-list {
  display: grid;
  gap: 10px;
}

.employee-section-progress-row {
  width: 100%;
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(222, 219, 213, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--kb-ink);
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.employee-section-progress-row:hover,
.employee-section-progress-row:focus-visible {
  border-color: rgba(178, 133, 70, 0.28);
  background: #fffaf2;
  box-shadow: 0 16px 34px rgba(17, 19, 26, 0.065);
  outline: none;
  transform: translateY(-1px);
}

.employee-section-progress-row span {
  min-width: 0;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.employee-section-progress-row small {
  color: var(--kb-muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.employee-section-progress-row i {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee9df;
}

.employee-section-progress-row i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d7a14d 0%, #8b642f 100%);
  transition: width 560ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.employee-achievements-section {
  background:
    radial-gradient(circle at 96% 0%, rgba(178, 133, 70, 0.08), transparent 22%),
    rgba(255, 255, 255, 0.94);
}

.employee-achievement-summary {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(178, 133, 70, 0.22);
  border-radius: 999px;
  background: #fffaf2;
  color: var(--kb-accent-strong);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.employee-achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
  padding: 16px;
}

.employee-achievement-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(222, 219, 213, 0.9);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(17, 19, 26, 0.04);
  animation: employeeFadeUp 360ms ease both;
  animation-delay: var(--employee-delay, 0ms);
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    border-color 170ms ease,
    background 170ms ease,
    opacity 170ms ease;
}

.employee-achievement-card:hover {
  border-color: rgba(178, 133, 70, 0.28);
  box-shadow: 0 22px 48px rgba(17, 19, 26, 0.075);
  transform: translateY(-2px);
}

.employee-achievement-card.unlocked {
  border-color: rgba(178, 133, 70, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 242, 0.94) 100%);
}

.employee-achievement-card.locked {
  opacity: 0.72;
}

.employee-achievement-card.locked .employee-achievement-medal {
  background: #f0efed;
  color: #9a958d;
  box-shadow: inset 0 0 0 1px rgba(207, 199, 186, 0.68);
}

.employee-achievement-card.locked .employee-achievement-medal .kb-icon {
  color: #9a958d;
  filter: none;
}

.employee-achievement-medal {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    0 14px 28px rgba(178, 133, 70, 0.18);
}

.employee-achievement-medal .kb-icon {
  width: 26px;
  height: 26px;
}

.employee-achievement-card span {
  display: block;
  color: var(--kb-accent-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.employee-achievement-card.locked span {
  color: var(--kb-muted);
}

.employee-achievement-card h5 {
  margin: 7px 0 8px;
  color: var(--kb-ink);
  font-size: 17px;
  line-height: 1.22;
}

.employee-achievement-card p {
  margin: 0;
  color: var(--kb-muted);
  font-size: 13px;
  line-height: 1.5;
}

.employee-achievement-card time {
  display: block;
  margin-top: 12px;
  color: var(--kb-muted);
  font-size: 12px;
  line-height: 1.3;
}

.employee-award-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  min-width: min(360px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(178, 133, 70, 0.25);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 242, 0.96) 100%);
  box-shadow:
    0 24px 58px rgba(17, 19, 26, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.6);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.employee-award-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: employeeGlowPulse 1200ms ease 1;
}

.employee-award-toast-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(178, 133, 70, 0.2);
}

.employee-award-toast strong,
.employee-award-toast small {
  display: block;
  min-width: 0;
}

.employee-award-toast strong {
  color: var(--kb-ink);
  font-size: 15px;
  line-height: 1.25;
}

.employee-award-toast small {
  margin-top: 3px;
  color: var(--kb-muted);
  font-size: 13px;
  line-height: 1.35;
}

.employee-future-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
}

.employee-future-grid > div,
.employee-empty {
  padding: 18px;
  border: 1px dashed rgba(178, 133, 70, 0.22);
  border-radius: 10px;
  background: #fffaf2;
  color: var(--kb-muted);
}

.employee-future-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--kb-ink);
  font-size: 16px;
}

.employee-future-grid p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.employee-reading-view {
  display: grid;
  gap: 18px;
}

.employee-reading-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.employee-reading-nav span {
  min-width: 0;
  color: var(--kb-muted);
  font-size: 13px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-reading-card {
  overflow: hidden;
}

.employee-reading-head {
  display: grid;
  gap: 12px;
  padding: 30px 34px;
  border-bottom: 1px solid rgba(222, 219, 213, 0.9);
  background:
    radial-gradient(circle at 92% 18%, rgba(178, 133, 70, 0.13), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fffaf2 100%);
}

.employee-reading-head h3 {
  max-width: 16ch;
}

.employee-reading-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.employee-reading-meta span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(222, 219, 213, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.employee-lesson-body {
  padding: 30px 34px 34px;
  color: var(--kb-ink);
}

.employee-lesson-body > :first-child {
  margin-top: 0;
}

.employee-lesson-body p,
.employee-lesson-body li {
  color: #2a2c34;
  font-size: 18px;
  line-height: 1.82;
}

.employee-lesson-body h1,
.employee-lesson-body h2,
.employee-lesson-body h3 {
  margin: 32px 0 14px;
  line-height: 1.15;
}

.employee-chapter-lessons {
  display: grid;
  gap: 16px;
  padding: 0 34px 34px;
}

.employee-reading-actions {
  justify-content: flex-end;
}

.employee-reading-actions .is-complete {
  border-color: rgba(178, 133, 70, 0.26);
  background: #fffaf2;
  color: var(--kb-accent-strong);
}

.employee-soft-disabled {
  opacity: 0.68;
  cursor: default;
}

.employee-lesson-gate-note,
.employee-lesson-test,
.sirius-admin-material-test-section {
  border: 1px solid rgba(230, 223, 212, 0.86);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.92);
  box-shadow: 0 18px 48px rgba(66, 48, 27, 0.06);
}

.employee-lesson-gate-note {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
}

.employee-lesson-gate-note > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--sirius-gold-soft);
  color: var(--sirius-gold-strong);
}

.employee-lesson-gate-note strong,
.employee-lesson-test-ready strong {
  display: block;
  color: var(--sirius-text);
  font-size: 18px;
  line-height: 1.25;
}

.employee-lesson-gate-note p,
.employee-lesson-test-head p,
.employee-lesson-test-start p,
.employee-lesson-test-ready p,
.employee-lesson-test-result-actions p {
  margin: 6px 0 0;
  color: var(--sirius-muted);
  font-size: 15px;
  line-height: 1.55;
}

.employee-lesson-test {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.employee-lesson-test-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.employee-lesson-test-head h4 {
  margin: 4px 0 0;
  color: var(--sirius-text);
  font-size: 28px;
  line-height: 1.15;
}

.employee-lesson-test-head > span {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 1px solid rgba(230, 223, 212, 0.8);
  border-radius: 999px;
  background: #fff;
  color: var(--sirius-muted);
  font-size: 13px;
  font-weight: 820;
}

.employee-lesson-test-start,
.employee-lesson-test-ready,
.employee-lesson-test-result-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(230, 223, 212, 0.72);
  border-radius: 14px;
  background: #fff;
}

.employee-chapter-tree-row.is-closed-soft {
  color: rgba(24, 25, 31, 0.56);
  background: rgba(248, 247, 245, 0.72);
}

.employee-chapter-tree-row.is-closed-soft .employee-chapter-tree-dot {
  background: rgba(138, 129, 120, 0.24);
  box-shadow: 0 0 0 5px rgba(230, 223, 212, 0.28);
}

.employee-chapter-tree-row.is-current {
  border-color: rgba(178, 133, 70, 0.42);
  background: #fff8ec;
}

.employee-chapter-tree-row.is-complete em {
  color: #4f9a67;
}

.sirius-admin-material-test-section {
  padding: 22px;
}

.sirius-admin-material-test-summary {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.sirius-admin-material-test-summary h5 {
  margin: 4px 0 0;
  color: var(--sirius-text);
  font-size: 28px;
  line-height: 1.15;
}

.sirius-admin-material-test-summary p {
  margin: 8px 0 0;
  color: var(--sirius-muted);
  font-size: 15px;
  line-height: 1.55;
}

.kb-test-start {
  margin: 18px 20px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(178, 133, 70, 0.24);
  border-radius: 10px;
  background: linear-gradient(180deg, #fffdf9 0%, #fbf3e8 100%);
}

.kb-test-start strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
  line-height: 1.2;
}

.kb-test-start p {
  margin: 0;
  color: var(--kb-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Premium employee UX refresh */
.kb-body {
  --kb-bg: #f7f5f1;
  --kb-subtle: #f8f6f2;
  --kb-line: #e6dfd4;
  --kb-line-strong: #d6cab8;
  --kb-muted: #69707d;
  --kb-shadow: 0 18px 48px rgba(30, 27, 22, 0.055);
}

.kb-body.kb-employee-mode {
  background:
    radial-gradient(circle at 12% 0%, rgba(178, 133, 70, 0.09), transparent 28%),
    linear-gradient(180deg, #fffdf9 0%, #f7f5f1 100%);
}

.kb-body.kb-employee-mode #kb-details-toggle {
  display: none;
}

.kb-body.kb-employee-mode .kb-workspace {
  padding: 30px clamp(28px, 4vw, 58px) 54px;
}

.kb-body.kb-employee-mode .kb-workspace-head,
.kb-body.kb-employee-mode .kb-workspace-grid {
  max-width: 1180px;
  margin-right: auto;
  margin-left: auto;
}

.kb-body.kb-employee-mode .kb-workspace-head {
  align-items: flex-end;
  padding: 0 0 22px;
  border-bottom-color: rgba(230, 223, 212, 0.78);
}

.kb-body.kb-employee-mode .kb-title-block {
  gap: 12px;
}

.kb-body.kb-employee-mode .kb-title-block .eyebrow {
  color: var(--kb-accent-strong);
  font-size: 12px;
  letter-spacing: 0.13em;
}

.kb-body.kb-employee-mode .kb-title-block h2 {
  max-width: none;
  color: #10121a;
  font-size: clamp(34px, 3.8vw, 52px);
  line-height: 1.04;
}

.kb-body.kb-employee-mode .kb-article-tags {
  gap: 8px;
}

.kb-body.kb-employee-mode .kb-tag {
  min-height: 32px;
  padding: 0 13px;
  border-color: rgba(214, 202, 184, 0.72);
  background: rgba(255, 255, 255, 0.7);
  color: var(--kb-muted);
}

.kb-body.kb-employee-mode .kb-tag-accent {
  border-color: rgba(178, 133, 70, 0.22);
  background: rgba(244, 234, 219, 0.76);
  color: var(--kb-accent-strong);
}

.kb-body.kb-employee-mode .kb-actions-shell {
  display: none;
}

.kb-body.kb-employee-mode .kb-article-surface.role-home-surface {
  padding: 0;
}

.kb-body.kb-employee-mode .kb-article-surface.employee-reading-surface {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.kb-body.kb-employee-mode .kb-nav-shell {
  padding: 28px 22px 30px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset -1px 0 0 rgba(230, 223, 212, 0.58);
}

.kb-body.kb-employee-mode .kb-brand-band {
  gap: 24px;
  justify-items: stretch;
}

.kb-body.kb-employee-mode .kb-brand-logo {
  width: min(100%, 246px);
  margin-bottom: 4px;
}

.kb-body.kb-employee-mode .kb-active-role-title {
  display: none;
}

.kb-body.kb-employee-mode .kb-role-preview {
  padding: 10px;
  border-color: rgba(230, 223, 212, 0.76);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

.kb-body.kb-employee-mode:not(.kb-admin-preview-mode) .kb-role-preview {
  display: none;
}

.kb-body.kb-employee-mode .kb-role-preview select {
  min-height: 42px;
  border-radius: 9px;
  background: #fffdf9;
  font-size: 13px;
}

.kb-body.kb-employee-mode .kb-employee-menu {
  gap: 4px;
  padding: 0;
}

.kb-body.kb-employee-mode .kb-employee-menu-item {
  min-height: 44px;
  padding: 0 11px;
  border-radius: 9px;
  color: #6e7380;
  font-size: 14px;
  font-weight: 760;
  box-shadow: none;
}

.kb-body.kb-employee-mode .kb-employee-menu-item .kb-icon {
  width: 18px;
  height: 18px;
}

.kb-body.kb-employee-mode .kb-employee-menu-item:hover,
.kb-body.kb-employee-mode .kb-employee-menu-item:focus-visible {
  border-color: transparent;
  background: rgba(244, 234, 219, 0.54);
  color: var(--kb-accent-strong);
  transform: none;
}

.kb-body.kb-employee-mode .kb-employee-menu-item.is-active {
  border-color: rgba(178, 133, 70, 0.14);
  background: rgba(244, 234, 219, 0.72);
  color: var(--kb-accent-strong);
  box-shadow: none;
}

.kb-body.kb-employee-mode .kb-employee-menu-item.is-active::before {
  content: "";
  width: 3px;
  height: 18px;
  border-radius: 999px;
  background: var(--kb-accent);
  transform: translateX(-6px);
}

.kb-body.kb-employee-mode .kb-employee-menu-item.is-active {
  grid-template-columns: 3px 22px minmax(0, 1fr);
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel {
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(230, 223, 212, 0.82);
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .kb-panel-summary {
  padding: 0 2px 12px;
}

.kb-body.kb-employee-mode .kb-tree-tools {
  opacity: 0.72;
}

.kb-body.kb-employee-mode .tree-item {
  min-height: 44px;
  padding: 9px 10px;
  border-radius: 9px;
}

.kb-body.kb-employee-mode .tree-item strong {
  font-size: 14px;
  line-height: 1.3;
}

.kb-body.kb-employee-mode .tree-item small {
  color: #8a8d96;
  font-size: 11px;
}

.kb-body.kb-employee-mode .tree-item.active {
  border-color: rgba(178, 133, 70, 0.2);
  background: rgba(255, 250, 242, 0.88);
  box-shadow: inset 2px 0 0 var(--kb-accent);
}

.kb-employee-dashboard {
  gap: 26px;
}

.employee-hero-shell,
.employee-panel,
.employee-section,
.employee-reading-card,
.employee-command-bar {
  border-radius: 14px;
  border-color: rgba(230, 223, 212, 0.9);
  box-shadow: 0 18px 50px rgba(30, 27, 22, 0.052);
}

.employee-hero-shell {
  background: rgba(255, 255, 255, 0.82);
}

.employee-hero-main {
  min-height: 430px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(26px, 4vw, 58px);
  padding: clamp(36px, 5vw, 64px);
  background:
    radial-gradient(circle at 78% 12%, rgba(178, 133, 70, 0.12), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #fffdf9 50%, #f7ecda 100%);
}

.employee-hero-copy {
  max-width: 720px;
  gap: 18px;
}

.employee-hero-copy h3 {
  max-width: 12ch;
  font-size: clamp(44px, 4.8vw, 66px);
  line-height: 1;
}

.employee-hero-copy p:not(.employee-soft-label) {
  max-width: 64ch;
  color: #6d7280;
  font-size: 18px;
  line-height: 1.72;
}

.employee-hero-actions {
  margin-top: 8px;
}

.employee-hero-side {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 16px;
}

.employee-next-card,
.employee-hero-progress {
  min-width: 0;
  border: 1px solid rgba(230, 223, 212, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 44px rgba(30, 27, 22, 0.06);
  backdrop-filter: blur(12px);
}

.employee-next-card {
  display: grid;
  gap: 13px;
  padding: 22px;
}

.employee-next-card > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--kb-accent-strong);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.employee-next-card > span .kb-icon {
  width: 15px;
  height: 15px;
}

.employee-next-card strong {
  color: var(--kb-ink);
  font-size: 25px;
  line-height: 1.14;
}

.employee-next-card p {
  margin: 0;
  color: var(--kb-muted);
  font-size: 14px;
  line-height: 1.55;
}

.employee-next-card .primary-button {
  justify-self: start;
  min-width: 132px;
}

.employee-hero-progress {
  display: grid;
  gap: 16px;
  padding: 20px 22px;
}

.employee-hero-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.employee-hero-progress-head span,
.employee-command-stats span {
  display: block;
  color: var(--kb-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1.25;
  text-transform: uppercase;
}

.employee-hero-progress-head strong {
  display: block;
  margin-top: 6px;
  color: var(--kb-ink);
  font-size: 46px;
  line-height: 0.95;
}

.employee-hero-progress-head em {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(178, 133, 70, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.84);
  color: var(--kb-accent-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.employee-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.employee-hero-metrics .employee-metric {
  padding: 0;
  background: transparent;
}

.employee-hero-metrics .employee-metric strong {
  font-size: 20px;
}

.employee-command-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  animation: employeeFadeUp 360ms ease both;
}

.employee-command-bar .employee-search-results {
  grid-column: 1 / -1;
  margin-top: 0;
}

.employee-command-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(230, 223, 212, 0.88);
  border-radius: 12px;
  background: rgba(230, 223, 212, 0.82);
}

.employee-command-stats > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 16px;
  background: rgba(255, 253, 249, 0.92);
}

.employee-command-stats strong {
  color: var(--kb-ink);
  font-size: 19px;
  line-height: 1.12;
}

.employee-search-field input {
  min-height: 58px;
  border-color: rgba(230, 223, 212, 0.98);
  border-radius: 12px;
  background: #fffdf9;
  font-size: 18px;
  font-weight: 760;
}

.employee-section {
  background: rgba(255, 255, 255, 0.88);
}

.employee-section-head {
  padding: 22px 24px;
}

.employee-section h4 {
  font-size: 25px;
  line-height: 1.14;
}

.employee-material-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 18px;
}

.employee-material-card button {
  min-height: 218px;
  gap: 14px;
  padding: 20px;
  border-radius: 13px;
  background: #fffdf9;
  box-shadow: none;
}

.employee-material-card button:hover,
.employee-material-card button:focus-visible {
  border-color: rgba(178, 133, 70, 0.3);
  box-shadow: 0 18px 38px rgba(30, 27, 22, 0.075);
}

.employee-material-card h5 {
  font-size: 22px;
  line-height: 1.18;
}

.employee-material-card p {
  color: #717682;
}

.employee-material-top small {
  color: #8a8d96;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.employee-card-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: auto;
}

.employee-card-progress-row small {
  color: var(--kb-muted);
  font-size: 12px;
  font-weight: 850;
}

.employee-material-card strong {
  justify-content: space-between;
  min-height: 38px;
  margin-top: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(230, 223, 212, 0.72);
}

.employee-dashboard-grid {
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 26px;
}

.employee-test-list,
.employee-update-list {
  gap: 10px;
  padding: 16px;
}

.employee-test-row,
.employee-update-row {
  min-height: 82px;
  border-color: rgba(230, 223, 212, 0.72);
  border-radius: 12px;
  background: #fffdf9;
}

.employee-program-progress-grid {
  grid-template-columns: minmax(250px, 0.78fr) minmax(0, 1.22fr);
  gap: 18px;
  padding: 18px;
}

.employee-completion-card {
  grid-template-columns: 1fr;
  align-content: start;
  justify-items: start;
  border-radius: 13px;
  box-shadow: none;
}

.employee-section-progress-row {
  border-radius: 12px;
  background: #fffdf9;
}

.employee-achievement-grid {
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 12px;
  padding: 18px;
}

.employee-achievement-card {
  min-height: 190px;
  grid-template-columns: 1fr;
  justify-items: start;
  gap: 12px;
  padding: 18px;
  border-radius: 14px;
  background: #fffdf9;
  box-shadow: none;
}

.employee-achievement-card.unlocked {
  background:
    radial-gradient(circle at 18% 0%, rgba(178, 133, 70, 0.12), transparent 42%),
    #fffdf9;
}

.employee-achievement-card.locked {
  opacity: 0.64;
}

.employee-achievement-medal {
  width: 64px;
  height: 64px;
}

.employee-achievement-card h5 {
  margin-top: 8px;
  font-size: 17px;
}

.employee-achievement-card p {
  display: -webkit-box;
  min-height: 40px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.employee-reading-view {
  max-width: 920px;
  margin: 0 auto;
  gap: 20px;
}

.employee-reading-nav {
  justify-content: flex-start;
}

.employee-reading-nav span {
  color: #8a8d96;
}

.employee-reading-card {
  border-color: rgba(230, 223, 212, 0.9);
  background: rgba(255, 255, 255, 0.94);
}

.employee-reading-head {
  padding: clamp(34px, 5vw, 58px) clamp(28px, 5vw, 68px) 32px;
  background:
    radial-gradient(circle at 92% 18%, rgba(178, 133, 70, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
}

.employee-reading-head h3 {
  max-width: 15ch;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.02;
}

.employee-reading-head p:not(.employee-soft-label) {
  max-width: 58ch;
}

.employee-reading-meta {
  margin-top: 6px;
}

.employee-reading-meta span {
  border-color: rgba(230, 223, 212, 0.78);
  background: rgba(248, 246, 242, 0.74);
  color: #777c87;
}

.employee-lesson-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 42px clamp(28px, 5vw, 68px) 54px;
}

.employee-lesson-body p,
.employee-lesson-body li {
  color: #252832;
  font-size: 19px;
  line-height: 1.86;
}

.employee-lesson-body h1 {
  font-size: 42px;
}

.employee-lesson-body h2 {
  font-size: 32px;
}

.employee-lesson-body h3 {
  font-size: 24px;
}

.employee-reading-actions {
  position: sticky;
  bottom: 18px;
  z-index: 8;
  justify-content: center;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 9px;
  border: 1px solid rgba(230, 223, 212, 0.86);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 48px rgba(30, 27, 22, 0.12);
  backdrop-filter: blur(16px);
}

.kb-role-hero,
.kb-role-editor-head,
.kb-admin-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background: var(--kb-surface-strong);
}

.kb-role-editor-head {
  align-items: center;
  padding: 20px 22px;
}

.kb-role-hero > *,
.kb-role-editor-head > *,
.kb-admin-hero > * {
  min-width: 0;
}

.kb-role-hero h3,
.kb-role-editor-head h3,
.kb-admin-hero h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
}

.kb-role-editor-head h3 {
  font-size: 28px;
}

.kb-role-hero p:not(.kb-panel-kicker),
.kb-admin-hero p {
  max-width: 72ch;
  margin: 10px 0 0;
  color: var(--kb-muted);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.kb-role-grid,
.kb-role-editor-grid,
.kb-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.kb-role-editor-grid {
  grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 1.05fr);
  align-items: start;
}

.kb-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.kb-admin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.kb-admin-stats div {
  min-height: 94px;
  padding: 18px 20px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background: var(--kb-surface-strong);
  box-shadow: var(--kb-shadow);
}

.kb-admin-stats span {
  display: block;
  margin-bottom: 8px;
  color: var(--kb-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kb-admin-stats strong {
  font-size: 34px;
  line-height: 1;
}

.kb-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.kb-admin-row:hover {
  border-color: var(--kb-line);
  background: var(--kb-subtle);
}

.kb-admin-row > button:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--kb-ink);
  text-align: left;
}

.kb-admin-row span {
  font-weight: 800;
  line-height: 1.35;
}

.kb-admin-row small {
  color: var(--kb-muted);
  font-size: 13px;
  line-height: 1.35;
}

.kb-role-progress {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.kb-role-progress-row {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background: var(--kb-subtle);
  color: var(--kb-ink);
  text-align: left;
}

.kb-role-progress-row.passed {
  border-color: rgba(139, 100, 47, 0.18);
  background: var(--kb-jade-soft);
}

.kb-role-progress-row span {
  font-weight: 800;
  line-height: 1.35;
}

.kb-role-progress-row strong {
  color: var(--kb-muted);
  white-space: nowrap;
}

.kb-role-dashboard-v3 {
  gap: 16px;
}

.kb-role-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 16px;
  align-items: stretch;
  padding: 22px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(178, 133, 70, 0.08) 0%, rgba(255, 255, 255, 0.96) 46%),
    var(--kb-surface-strong);
  box-shadow: 0 18px 46px rgba(17, 19, 26, 0.055);
}

.kb-role-command-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 18px;
}

.kb-role-lead {
  max-width: 78ch;
  margin: 0;
  color: var(--kb-muted);
  font-size: 18px;
  line-height: 1.62;
  overflow-wrap: anywhere;
}

.kb-role-search-main {
  display: grid;
  gap: 8px;
}

.kb-role-search-main span,
.kb-role-next-card span,
.kb-role-metric span {
  color: var(--kb-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.kb-role-search-main input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--kb-ink);
  font-size: 17px;
  font-weight: 650;
}

.kb-role-search-main input:focus {
  outline: none;
  border-color: rgba(178, 133, 70, 0.46);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(178, 133, 70, 0.1);
}

.kb-role-next-card {
  min-width: 0;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(178, 133, 70, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf9 0%, #f9f0e2 100%);
  box-shadow: 0 18px 34px rgba(178, 133, 70, 0.1);
}

.kb-role-next-card strong {
  color: var(--kb-ink);
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.kb-role-next-card p {
  margin: 0;
  color: var(--kb-muted);
  font-size: 14px;
  line-height: 1.55;
}

.kb-role-next-card .primary-button {
  width: 100%;
}

.kb-role-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.kb-role-status-strip .kb-role-metric {
  min-height: 92px;
  background: var(--kb-surface-strong);
  box-shadow: 0 12px 30px rgba(17, 19, 26, 0.045);
}

.kb-role-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(300px, 0.66fr);
  gap: 16px;
  align-items: start;
}

.kb-role-plan-panel {
  min-height: 420px;
}

.kb-role-updates-scroll {
  max-height: 360px;
  overflow: auto;
}

.kb-role-dashboard-v2 {
  gap: 18px;
}

.kb-role-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(178, 133, 70, 0.08) 0%, rgba(255, 255, 255, 0.96) 42%),
    var(--kb-surface-strong);
}

.kb-role-cover-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}

.kb-role-cover-main h3 {
  margin: 0;
  max-width: 18ch;
  font-size: 34px;
  line-height: 1.08;
}

.kb-role-description {
  max-width: 72ch;
  margin: 0;
  color: var(--kb-muted);
  font-size: 16px;
  line-height: 1.65;
}

.kb-role-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.kb-role-metric {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(222, 219, 213, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.kb-role-metric span,
.kb-role-focus-card span {
  color: var(--kb-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-transform: uppercase;
}

.kb-role-metric strong {
  font-size: 28px;
  line-height: 1;
}

.kb-role-metric small {
  color: var(--kb-muted);
  font-size: 12px;
  line-height: 1.3;
}

.kb-role-focus-card {
  min-width: 0;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(178, 133, 70, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, #fffdf9 0%, #faf4eb 100%);
  box-shadow: 0 18px 34px rgba(178, 133, 70, 0.1);
}

.kb-role-focus-card strong {
  font-size: 21px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.kb-role-focus-card p {
  margin: 0;
  color: var(--kb-muted);
  font-size: 14px;
  line-height: 1.55;
}

.kb-role-focus-card .primary-button {
  width: 100%;
}

.kb-role-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.kb-role-side-stack {
  display: grid;
  gap: 18px;
}

.kb-role-progress-summary {
  padding: 0 16px 12px;
}

.kb-role-progress-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--kb-subtle);
}

.kb-role-progress-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b98b4c 0%, #8b642f 100%);
}

.kb-role-path {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.kb-role-path-card {
  overflow: hidden;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background: var(--kb-surface-strong);
}

.kb-role-path-card[hidden] {
  display: none;
}

.kb-role-path-card.passed {
  border-color: rgba(139, 100, 47, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #fbf8f2 100%);
}

.kb-role-path-card.attention {
  border-color: rgba(227, 106, 74, 0.22);
}

.kb-role-path-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--kb-line);
}

.kb-role-path-head button,
.kb-role-lesson-link {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--kb-ink);
  text-align: left;
}

.kb-role-path-head button {
  display: grid;
  gap: 4px;
  padding: 0;
}

.kb-role-path-head button:hover span,
.kb-role-lesson-link:hover span {
  color: var(--kb-accent-strong);
}

.kb-role-path-head span,
.kb-role-lesson-link span {
  font-weight: 800;
  line-height: 1.35;
}

.kb-role-path-head small,
.kb-role-lesson-link small {
  color: var(--kb-muted);
  font-size: 12px;
  line-height: 1.35;
}

.kb-role-path-head strong {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--kb-line);
  border-radius: 999px;
  background: var(--kb-subtle);
  color: var(--kb-muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.kb-role-path-card.passed .kb-role-path-head strong {
  border-color: rgba(139, 100, 47, 0.2);
  background: var(--kb-jade-soft);
  color: var(--kb-jade);
}

.kb-role-path-card.attention .kb-role-path-head strong {
  border-color: rgba(227, 106, 74, 0.22);
  background: var(--kb-warm-soft);
  color: #b65338;
}

.kb-role-lessons {
  display: grid;
  gap: 4px;
  padding: 8px;
}

.kb-role-lesson-link {
  display: grid;
  gap: 3px;
  padding: 10px 12px 10px 24px;
  border-radius: 8px;
}

.kb-role-lesson-link:hover {
  background: var(--kb-subtle);
}

.kb-role-lesson-link.is-complete {
  color: #3f8758;
}

.kb-role-lesson-link.is-complete span::before {
  content: "✓";
  margin-right: 7px;
  color: #4f9a67;
}

.kb-role-lesson-link.is-closed-soft {
  color: rgba(24, 25, 31, 0.5);
  background: rgba(248, 247, 245, 0.62);
}

.kb-role-lesson-link[hidden] {
  display: none;
}

.kb-role-updates-compact {
  max-height: 360px;
  overflow: auto;
}

.kb-role-editor input:not([type="checkbox"]):not([type="radio"]),
.kb-role-editor textarea {
  width: 100%;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--kb-surface-strong);
  color: var(--kb-ink);
}

.kb-role-editor .field {
  align-content: start;
}

.kb-role-editor .field span {
  margin-bottom: 2px;
}

.kb-role-editor input:not([type="checkbox"]):not([type="radio"]) {
  min-height: 56px;
}

.kb-role-editor textarea {
  min-height: 112px;
  resize: vertical;
}

.kb-role-editor-box {
  align-content: start;
  max-height: none;
  min-height: 280px;
  padding: 18px;
  background: var(--kb-surface-strong);
}

.kb-chapter-intro,
.kb-dashboard-section,
.kb-dashboard-search {
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background: var(--kb-surface-strong);
}

.kb-chapter-intro {
  padding: 22px 24px;
}

.kb-chapter-intro p {
  max-width: 78ch;
  margin: 0;
  color: var(--kb-muted);
  font-size: 16px;
  line-height: 1.65;
}

.kb-dashboard-section h4 {
  margin: 0;
  line-height: 1.2;
}

.kb-dashboard-search {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
}

.kb-dashboard-search span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kb-muted);
}

.kb-dashboard-search input {
  min-height: 46px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--kb-subtle);
  color: var(--kb-ink);
  font: inherit;
}

.kb-dashboard-search input:focus {
  outline: none;
  border-color: rgba(178, 133, 70, 0.42);
  background: var(--kb-surface-strong);
  box-shadow: 0 0 0 4px rgba(178, 133, 70, 0.1);
}

.kb-smart-search {
  position: relative;
  padding: 16px;
  border: 1px solid rgba(178, 133, 70, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(178, 133, 70, 0.1) 0%, rgba(255, 255, 255, 0.96) 52%),
    var(--kb-surface-strong);
  box-shadow: 0 18px 38px rgba(17, 19, 26, 0.06);
}

.kb-smart-search input,
.kb-role-search-main.kb-smart-search input {
  min-height: 60px;
  border-color: rgba(178, 133, 70, 0.3);
  background: #ffffff;
  font-size: 18px;
  font-weight: 750;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.kb-smart-search input::placeholder {
  color: rgba(109, 114, 128, 0.78);
  font-weight: 650;
}

.kb-smart-search small {
  color: var(--kb-muted);
  font-size: 13px;
  line-height: 1.45;
}

.kb-page-search-results[hidden] {
  display: none;
}

.kb-search-loading,
.kb-page-search-empty,
.kb-page-search-list {
  border: 1px solid rgba(178, 133, 70, 0.22);
  border-radius: 8px;
  background: var(--kb-surface-strong);
  box-shadow: 0 14px 34px rgba(17, 19, 26, 0.055);
}

.kb-search-loading,
.kb-page-search-empty {
  position: relative;
  overflow: hidden;
  padding: 18px;
  color: var(--kb-muted);
  font-weight: 750;
}

.kb-search-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.64), transparent);
  animation: employeeShimmer 1.25s ease-in-out infinite;
}

.kb-page-search-empty {
  display: grid;
  gap: 5px;
}

.kb-page-search-empty strong {
  color: var(--kb-ink);
  font-size: 18px;
}

.kb-page-search-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--kb-line);
}

.kb-page-search-head strong {
  font-size: 18px;
}

.kb-page-search-head span {
  color: var(--kb-muted);
  font-size: 13px;
  font-weight: 750;
}

.kb-page-search-items {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.kb-page-search-card {
  width: 100%;
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--kb-ink);
  text-align: left;
}

.kb-page-search-card:hover,
.kb-page-search-card:focus-visible {
  border-color: rgba(178, 133, 70, 0.26);
  background: #fffaf2;
  outline: none;
}

.kb-page-search-card span {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
}

.kb-page-search-card small {
  color: var(--kb-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.kb-page-search-card p {
  margin: 3px 0 0;
  color: var(--kb-muted);
  font-size: 14px;
  line-height: 1.5;
}

.kb-page-search-card mark,
.tree-search-snippet mark {
  border-radius: 4px;
  background: rgba(178, 133, 70, 0.22);
  color: inherit;
  padding: 0 2px;
}

.tree-search-snippet {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kb-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.kb-dashboard-section {
  overflow: hidden;
}

.kb-dashboard-section-head {
  padding: 18px 20px;
  border-bottom: 1px solid var(--kb-line);
}

.kb-dashboard-toc,
.kb-dashboard-updates {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.kb-dashboard-link,
.kb-update-row {
  width: 100%;
  min-height: 56px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--kb-ink);
  display: grid;
  gap: 4px;
  text-align: left;
}

.kb-dashboard-link {
  padding: 10px 12px 10px calc(12px + var(--toc-depth, 0) * 18px);
}

.kb-update-row {
  padding: 10px 12px;
}

.kb-dashboard-link:hover,
.kb-update-row:hover {
  border-color: var(--kb-line);
  background: var(--kb-subtle);
}

.kb-dashboard-link span,
.kb-update-row span {
  font-weight: 800;
  line-height: 1.35;
}

.kb-dashboard-link small,
.kb-update-row time {
  color: var(--kb-muted);
  font-size: 13px;
}

.kb-dashboard-link[hidden] {
  display: none;
}

.kb-dashboard-empty {
  padding: 18px;
  border: 1px dashed var(--kb-line);
  border-radius: 8px;
  background: var(--kb-subtle);
  color: var(--kb-muted);
  font-size: 14px;
}

.kb-test-panel {
  display: grid;
  gap: 0;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.kb-test-panel.is-focused {
  border-color: rgba(178, 133, 70, 0.42);
  box-shadow: 0 0 0 4px rgba(178, 133, 70, 0.1);
}

.kb-test-loading {
  padding: 22px;
  color: var(--kb-muted);
  font-size: 14px;
}

.kb-test-head,
.kb-test-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid var(--kb-line);
}

.kb-test-head h4,
.kb-test-editor-head h4 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.kb-test-head p {
  max-width: 70ch;
  margin: 8px 0 0;
  color: var(--kb-muted);
  font-size: 15px;
}

.kb-test-head-actions,
.kb-test-editor-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.kb-test-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.kb-test-stats span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid var(--kb-line);
  border-radius: 999px;
  background: var(--kb-subtle);
  color: var(--kb-muted);
  font-size: 13px;
  font-weight: 800;
}

.kb-test-result {
  margin: 16px 20px 0;
  padding: 14px 16px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid rgba(178, 133, 70, 0.16);
  background: var(--kb-accent-soft);
}

.kb-test-result.passed {
  border-color: rgba(139, 100, 47, 0.18);
  background: var(--kb-jade-soft);
}

.kb-test-result.failed {
  border-color: rgba(227, 106, 74, 0.2);
  background: var(--kb-warm-soft);
}

.kb-test-result span {
  display: block;
  margin-bottom: 4px;
  color: var(--kb-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kb-test-result strong {
  font-size: 16px;
}

.kb-test-questions {
  padding: 18px 20px 0;
  display: grid;
  gap: 14px;
}

.kb-test-question {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background: var(--kb-subtle);
}

.kb-test-question > strong {
  font-size: 17px;
  line-height: 1.35;
}

.kb-test-options {
  display: grid;
  gap: 8px;
}

.kb-test-option {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background: var(--kb-surface-strong);
  cursor: pointer;
}

.kb-test-option:hover {
  border-color: rgba(178, 133, 70, 0.24);
}

.kb-test-option input {
  accent-color: var(--kb-accent);
}

.kb-test-option:has(input:checked) {
  border-color: rgba(178, 133, 70, 0.44);
  background: #fff8ec;
  box-shadow: 0 10px 28px rgba(66, 48, 27, 0.08);
}

.kb-test-option.is-correct {
  border-color: rgba(139, 100, 47, 0.26);
  background: var(--kb-jade-soft);
}

.kb-test-option.is-wrong {
  border-color: rgba(227, 106, 74, 0.28);
  background: var(--kb-warm-soft);
}

.kb-test-footer {
  padding: 18px 20px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--kb-muted);
  font-size: 14px;
  font-weight: 700;
}

.kb-test-footer > div {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.kb-test-step {
  display: grid;
  gap: 14px;
  padding: 18px 20px 0;
}

.kb-test-step.is-inline {
  padding: 0;
}

.kb-test-step-progress {
  display: grid;
  gap: 8px;
  color: var(--kb-muted);
  font-size: 13px;
  font-weight: 820;
}

.kb-test-step-progress i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(230, 223, 212, 0.74);
}

.kb-test-step-progress b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c18a37, #e0ad5a);
  transition: width 240ms ease;
}

.kb-test-empty {
  margin: 18px 20px 20px;
}

.kb-test-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  border: 0;
  background: rgba(17, 19, 26, 0.38);
  backdrop-filter: blur(4px);
}

.kb-test-modal {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: 72;
  width: min(760px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  transform: translate(-50%, -50%);
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background: var(--kb-surface-strong);
  box-shadow: 0 32px 80px rgba(17, 19, 26, 0.22);
  overflow: hidden;
}

.kb-test-modal-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--kb-line);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
}

.kb-test-modal-head strong {
  display: block;
  font-size: 20px;
  line-height: 1.25;
}

.kb-test-modal-body {
  min-height: 0;
  overflow: auto;
}

.kb-test-modal .kb-test-panel {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.kb-body.kb-test-modal-open {
  overflow: hidden;
}

.kb-body.kb-image-lightbox-open {
  overflow: hidden;
  touch-action: none;
}

.kb-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: stretch;
  color: #fff;
}

.kb-image-lightbox[hidden] {
  display: none;
}

.kb-image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 13, 18, 0.86);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}

.kb-image-lightbox-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 100dvh;
  width: 100%;
  overflow: hidden;
}

.kb-image-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 14px 10px;
  background: linear-gradient(180deg, rgba(12, 13, 18, 0.72), rgba(12, 13, 18, 0));
  pointer-events: none;
}

.kb-image-lightbox-head span {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-image-lightbox-close,
.kb-image-lightbox-tools button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.kb-image-lightbox-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  pointer-events: auto;
}

.kb-image-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.kb-image-lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.kb-image-lightbox-tools {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 14px);
  background: linear-gradient(0deg, rgba(12, 13, 18, 0.72), rgba(12, 13, 18, 0));
}

.kb-image-lightbox-tools button {
  min-width: 48px;
  height: 44px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 900;
}

.kb-image-lightbox-tools [data-image-lightbox-action="reset"] {
  min-width: 74px;
  font-size: 13px;
}

.kb-test-editor {
  display: grid;
  gap: 18px;
  padding-bottom: 20px;
}

.kb-test-editor-grid {
  padding: 18px 20px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 14px;
}

.kb-test-field {
  display: grid;
  gap: 8px;
}

.kb-test-field.wide {
  grid-column: 1 / -1;
}

.kb-test-field span {
  color: var(--kb-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kb-test-field input,
.kb-test-field textarea,
.kb-test-editor-option input[type="text"],
.kb-test-editor-option input:not([type]) {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--kb-subtle);
  color: var(--kb-ink);
  font: inherit;
}

.kb-test-field textarea {
  resize: vertical;
}

.kb-test-field input:focus,
.kb-test-field textarea:focus,
.kb-test-editor-option input:focus {
  outline: none;
  border-color: rgba(178, 133, 70, 0.42);
  background: var(--kb-surface-strong);
  box-shadow: 0 0 0 4px rgba(178, 133, 70, 0.1);
}

.kb-test-editor-questions {
  padding: 0 20px;
  display: grid;
  gap: 14px;
}

.kb-test-editor-question {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background: var(--kb-subtle);
}

.kb-test-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kb-test-editor-options {
  display: grid;
  gap: 8px;
}

.kb-test-editor-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.kb-test-editor-option input[type="radio"] {
  accent-color: var(--kb-accent);
}

.kb-add-question-button {
  justify-self: start;
  margin-left: 20px;
}

.kb-content.editing {
  max-width: 860px;
  min-height: 420px;
  margin: 0 auto;
  padding: 48px 52px 60px;
  border-radius: 8px;
  background: transparent;
  box-shadow: inset 0 0 0 2px rgba(178, 133, 70, 0.14);
  cursor: text;
}

.kb-content.editing:focus {
  box-shadow: inset 0 0 0 2px rgba(178, 133, 70, 0.28);
}

.kb-rich-editor-host {
  --kb-rich-toolbar-sticky-top: 14px;
  --kb-rich-image-panel-sticky-top: 60px;
  width: 100%;
  min-width: 0;
  color: var(--kb-ink);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.kb-body:not(.kb-admin-console-mode) .kb-rich-editor-host {
  --kb-rich-toolbar-sticky-top: 92px;
  --kb-rich-image-panel-sticky-top: 138px;
}

.kb-body.kb-admin-console-mode .kb-rich-editor-host {
  --kb-rich-toolbar-sticky-top: 14px;
  --kb-rich-image-panel-sticky-top: 60px;
}

.kb-rich-editor-shell {
  overflow: visible;
  color: var(--kb-ink);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid rgba(200, 145, 67, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 252, 247, 0.94)),
    radial-gradient(circle at top right, rgba(216, 161, 84, 0.1), transparent 34%);
  box-shadow:
    0 18px 48px rgba(72, 52, 28, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.kb-rich-editor-shell .kb-rich-toolbar {
  position: sticky;
  top: var(--kb-rich-toolbar-sticky-top);
  z-index: 28;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: -1px -1px 0;
  padding: 8px 9px;
  border: 1px solid rgba(81, 64, 44, 0.12);
  border-bottom: 1px solid rgba(81, 64, 44, 0.12);
  border-radius: 16px 16px 0 0;
  background: rgba(255, 250, 242, 0.96);
  box-shadow: 0 12px 30px rgba(60, 44, 24, 0.08);
  backdrop-filter: blur(16px);
}

.kb-rich-editor-shell .ql-formats {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin: 0;
  padding: 2px;
  border: 1px solid rgba(81, 64, 44, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.kb-rich-editor-shell .kb-rich-heading-format {
  padding: 2px;
}

.kb-rich-heading-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.kb-rich-heading-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  color: #806f5b;
  pointer-events: none;
  transform: translateY(-64%) rotate(45deg);
}

.kb-rich-heading-select {
  width: 112px;
  height: 24px;
  appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 0 22px 0 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #675b4d;
  font: inherit;
  font-size: 12px;
  line-height: 24px;
  cursor: pointer;
  outline: none;
  transition:
    color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.kb-rich-heading-select:hover,
.kb-rich-heading-select:focus-visible {
  color: var(--kb-accent-strong);
  background: rgba(244, 234, 219, 0.82);
  box-shadow: 0 5px 12px rgba(116, 83, 40, 0.08);
}

.kb-rich-editor-shell .ql-toolbar button,
.kb-rich-editor-shell .kb-rich-text-button {
  min-width: 24px;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border-radius: 6px;
  color: #675b4d;
  font-size: 12px;
  line-height: 1;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.kb-rich-editor-shell .ql-toolbar .ql-picker-label {
  height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  color: #675b4d;
  font-size: 12px;
  line-height: 1;
  transition:
    color 160ms ease,
    background 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.kb-rich-editor-shell .ql-toolbar button:hover,
.kb-rich-editor-shell .ql-toolbar button:focus-visible,
.kb-rich-editor-shell .ql-toolbar button.ql-active,
.kb-rich-editor-shell .ql-toolbar .ql-picker-label:hover,
.kb-rich-editor-shell .ql-toolbar .ql-picker-label.ql-active {
  color: var(--kb-accent-strong);
  background: rgba(244, 234, 219, 0.82);
  box-shadow: 0 5px 12px rgba(116, 83, 40, 0.08);
  outline: none;
}

.kb-rich-editor-shell .ql-toolbar button:disabled,
.kb-rich-editor-shell .kb-rich-text-button:disabled {
  cursor: default;
  opacity: 0.38;
  transform: none;
  box-shadow: none;
}

.kb-rich-editor-shell .ql-toolbar button:active,
.kb-rich-editor-shell .kb-rich-text-button:active {
  transform: scale(0.96);
}

.kb-rich-editor-shell .ql-toolbar button svg,
.kb-rich-editor-shell .ql-toolbar .ql-picker-label svg {
  width: 14px;
  height: 14px;
}

.kb-rich-editor-shell .ql-snow .ql-stroke,
.kb-rich-editor-shell .ql-toolbar .ql-stroke {
  stroke: currentColor;
}

.kb-rich-editor-shell .ql-snow .ql-fill,
.kb-rich-editor-shell .ql-toolbar .ql-fill {
  fill: currentColor;
}

.kb-rich-editor-shell .ql-picker.ql-header {
  position: relative;
  width: 108px;
  height: 24px;
  font-size: 12px;
}

.kb-rich-editor-shell .ql-picker.ql-header .ql-picker-label {
  width: 100%;
  min-width: 0;
  padding: 0 18px 0 8px;
}

.kb-rich-editor-shell .ql-picker.ql-header .ql-picker-label::before {
  line-height: 22px;
}

.kb-rich-editor-shell .ql-picker.ql-header .ql-picker-label::before,
.kb-rich-editor-shell .ql-picker.ql-header .ql-picker-item::before {
  content: "Текст";
}

.kb-rich-editor-shell .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,
.kb-rich-editor-shell .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
  content: "Заголовок 1";
}

.kb-rich-editor-shell .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,
.kb-rich-editor-shell .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
  content: "Заголовок 2";
}

.kb-rich-editor-shell .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,
.kb-rich-editor-shell .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
  content: "Заголовок 3";
}

.kb-rich-editor-shell .ql-picker-options {
  top: calc(100% + 6px);
  z-index: 30;
  min-width: 126px;
  padding: 4px 0;
  border: 1px solid rgba(81, 64, 44, 0.14);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(60, 44, 24, 0.14);
}

.kb-rich-editor-shell .ql-picker-item {
  min-height: 26px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.2;
}

.kb-rich-editor-shell .ql-container {
  border: 0;
  border-radius: 0 0 16px 16px;
  background: rgba(255, 255, 255, 0.76);
  font-family: inherit;
}

.kb-rich-editor-shell .kb-rich-editor-area {
  border: 0;
  border-radius: 0 0 16px 16px;
  background: rgba(255, 255, 255, 0.76);
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.kb-rich-editor-shell .ql-editor {
  min-height: 390px;
  padding: 30px;
  color: var(--kb-ink);
  font-size: 18px;
  line-height: 1.78;
}

.kb-rich-editor-shell .kb-tiptap-editor {
  min-height: 390px;
  padding: 30px;
  color: var(--kb-ink);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.78;
  text-transform: none;
  outline: none;
  overflow-wrap: anywhere;
}

.kb-rich-editor-shell .ql-editor strong,
.kb-rich-editor-shell .ql-editor b,
.kb-rich-editor-shell .kb-tiptap-editor strong,
.kb-rich-editor-shell .kb-tiptap-editor b {
  font-weight: 760;
}

.kb-rich-editor-shell .ql-editor.ql-blank::before {
  top: 30px;
  right: 30px;
  left: 30px;
  color: #9b958d;
  font-style: normal;
}

.kb-rich-editor-shell .kb-tiptap-editor p.is-editor-empty:first-child::before {
  content: attr(data-placeholder);
  float: left;
  height: 0;
  color: #9b958d;
  font-style: normal;
  pointer-events: none;
}

.kb-rich-editor-shell .ql-editor h1,
.kb-rich-editor-shell .ql-editor h2,
.kb-rich-editor-shell .ql-editor h3 {
  margin: 30px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.14;
}

.kb-rich-editor-shell .kb-tiptap-editor h1,
.kb-rich-editor-shell .kb-tiptap-editor h2,
.kb-rich-editor-shell .kb-tiptap-editor h3 {
  margin: 30px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.14;
}

.kb-rich-editor-shell .ql-editor h1 {
  font-size: 42px;
}

.kb-rich-editor-shell .kb-tiptap-editor h1 {
  font-size: 42px;
}

.kb-rich-editor-shell .ql-editor h2 {
  font-size: 32px;
}

.kb-rich-editor-shell .kb-tiptap-editor h2 {
  font-size: 32px;
}

.kb-rich-editor-shell .ql-editor h3 {
  font-size: 24px;
}

.kb-rich-editor-shell .kb-tiptap-editor h3 {
  font-size: 24px;
}

.kb-rich-editor-shell .ql-editor p,
.kb-rich-editor-shell .ql-editor ol,
.kb-rich-editor-shell .ql-editor ul,
.kb-rich-editor-shell .ql-editor blockquote {
  margin-bottom: 18px;
}

.kb-rich-editor-shell .kb-tiptap-editor p,
.kb-rich-editor-shell .kb-tiptap-editor ol,
.kb-rich-editor-shell .kb-tiptap-editor ul,
.kb-rich-editor-shell .kb-tiptap-editor blockquote {
  margin: 0 0 18px;
}

.kb-rich-editor-shell .kb-tiptap-editor ol,
.kb-rich-editor-shell .kb-tiptap-editor ul {
  padding-left: 1.45em;
}

.kb-rich-editor-shell .kb-tiptap-editor li {
  margin: 7px 0;
  padding-left: 0.2em;
}

.kb-rich-editor-shell .ql-editor blockquote {
  padding: 18px 20px;
  border-left: 4px solid var(--kb-accent);
  border-radius: 0 12px 12px 0;
  background: rgba(244, 234, 219, 0.6);
  color: #4b4c55;
}

.kb-rich-editor-shell .kb-tiptap-editor blockquote {
  padding: 18px 20px;
  border-left: 4px solid var(--kb-accent);
  border-radius: 0 12px 12px 0;
  background: rgba(244, 234, 219, 0.6);
  color: #4b4c55;
}

.kb-rich-editor-shell .kb-tiptap-editor code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(81, 64, 44, 0.09);
  color: #5d482e;
  font-size: 0.88em;
}

.kb-rich-editor-shell .ql-editor hr {
  height: 1px;
  margin: 32px 0;
  border: 0;
  background: rgba(81, 64, 44, 0.16);
}

.kb-rich-editor-shell .kb-tiptap-editor hr {
  height: 1px;
  margin: 32px 0;
  border: 0;
  background: rgba(81, 64, 44, 0.16);
}

.kb-rich-editor-shell .ql-editor img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border: 1px solid rgba(81, 64, 44, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(60, 44, 24, 0.08);
  cursor: pointer;
}

.kb-rich-editor-shell .kb-tiptap-editor img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border: 1px solid rgba(81, 64, 44, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(60, 44, 24, 0.08);
  cursor: pointer;
}

.kb-rich-editor-shell .ql-editor img.is-selected {
  outline: 3px solid rgba(200, 145, 67, 0.34);
  outline-offset: 4px;
}

.kb-rich-editor-shell .kb-tiptap-editor img.is-selected {
  outline: 3px solid rgba(200, 145, 67, 0.34);
  outline-offset: 4px;
}

.kb-rich-editor-shell .ql-editor img[data-align="center"],
.kb-rich-editor-shell .kb-tiptap-editor img[data-align="center"],
.kb-content img[data-align="center"],
.employee-lesson-body img[data-align="center"] {
  margin-right: auto;
  margin-left: auto;
}

.kb-rich-editor-shell .ql-editor img[data-align="left"],
.kb-rich-editor-shell .kb-tiptap-editor img[data-align="left"],
.kb-content img[data-align="left"],
.employee-lesson-body img[data-align="left"] {
  margin-right: auto;
  margin-left: 0;
}

.kb-rich-editor-shell .ql-editor img[data-align="right"],
.kb-rich-editor-shell .kb-tiptap-editor img[data-align="right"],
.kb-content img[data-align="right"],
.employee-lesson-body img[data-align="right"] {
  margin-right: 0;
  margin-left: auto;
}

.kb-rich-image-panel {
  position: sticky;
  top: var(--kb-rich-image-panel-sticky-top);
  z-index: 27;
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(180px, 1.1fr) minmax(140px, 0.8fr) auto auto;
  align-items: end;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(81, 64, 44, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 26px rgba(60, 44, 24, 0.06);
  backdrop-filter: blur(14px);
}

.kb-rich-image-panel[hidden] {
  display: none;
}

.kb-rich-image-panel strong,
.kb-rich-image-panel span,
.kb-rich-image-panel label {
  min-width: 0;
}

.kb-rich-image-panel strong {
  display: block;
  color: #17181f;
  font-size: 14px;
}

.kb-rich-image-panel span,
.kb-rich-image-panel label > span {
  display: block;
  color: #747680;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kb-rich-image-panel label {
  display: grid;
  gap: 7px;
}

.kb-rich-image-panel input[type="text"] {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(81, 64, 44, 0.14);
  border-radius: 10px;
  background: #fff;
  color: #17181f;
  font: inherit;
  outline: none;
}

.kb-rich-image-panel input[type="range"] {
  accent-color: var(--kb-accent);
}

.kb-rich-image-align {
  display: inline-flex;
  gap: 6px;
}

.kb-rich-image-align button,
.kb-rich-image-remove {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(81, 64, 44, 0.14);
  border-radius: 10px;
  background: #fff;
  color: #4e4b47;
  font-weight: 800;
}

.kb-rich-image-align button.is-active {
  border-color: rgba(200, 145, 67, 0.34);
  color: var(--kb-accent-strong);
  background: rgba(244, 234, 219, 0.74);
}

.kb-rich-image-remove {
  color: #a5513e;
  border-color: rgba(202, 98, 74, 0.26);
  background: rgba(255, 241, 235, 0.72);
}

.kb-rich-editor-hint {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid rgba(81, 64, 44, 0.1);
  color: #7b7d86;
  background: rgba(255, 250, 242, 0.7);
  font-size: 12px;
  line-height: 1.55;
}

.kb-content.empty-state {
  max-width: none;
  display: grid;
  place-items: center;
  min-height: 420px;
  text-align: center;
  color: var(--kb-muted);
  font-size: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 247, 246, 0.96) 100%);
}

.kb-details-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  border: 0;
  background: rgba(15, 23, 42, 0.22);
  cursor: default;
}

.kb-details-backdrop[hidden] {
  display: none;
}

.kb-side-rail {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  width: min(420px, calc(100vw - 28px));
  height: 100vh;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: auto;
  background: rgba(247, 247, 246, 0.98);
  border-left: 1px solid var(--kb-line);
  box-shadow: -24px 0 54px rgba(15, 23, 42, 0.16);
  transform: translateX(110%);
  transition: transform 180ms ease;
}

.kb-side-rail[hidden] {
  display: none;
}

.kb-side-rail.is-open {
  transform: translateX(0);
}

@media (min-width: 1261px) {
  .kb-workspace-grid.details-open {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  }

  .kb-details-backdrop {
    display: none !important;
  }

  .kb-side-rail {
    position: sticky;
    inset: auto;
    top: 126px;
    z-index: 5;
    width: auto;
    height: calc(100vh - 152px);
    border: 1px solid var(--kb-line);
    border-radius: 8px;
    box-shadow: var(--kb-shadow);
    transform: none;
  }

  .kb-side-rail.is-open {
    transform: none;
  }
}

.kb-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 2px 0;
}

.kb-drawer-head strong {
  font-size: 20px;
  line-height: 1.2;
}

.kb-rail-card {
  overflow: hidden;
}

.kb-rail-head {
  padding: 18px 18px 0;
}

.kb-rail-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

.kb-facts {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.kb-fact {
  padding-top: 14px;
  border-top: 1px solid var(--kb-line);
  display: grid;
  gap: 4px;
}

.kb-fact:first-child {
  padding-top: 0;
  border-top: 0;
}

.kb-fact span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--kb-muted);
}

.kb-fact strong {
  font-size: 15px;
  line-height: 1.55;
}

.kb-history-body {
  padding-top: 14px;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  background: var(--kb-subtle);
}

.history-item strong {
  font-size: 14px;
}

.roles-field {
  margin: 0;
  border: 1px solid var(--kb-line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: var(--kb-subtle);
  max-height: 220px;
  overflow: auto;
}

.roles-field legend {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--kb-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.roles-field label,
.access-option {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--kb-ink);
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.roles-field label:hover,
.access-option:hover {
  border-color: var(--kb-line);
  background: var(--kb-subtle);
}

.roles-field input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--kb-accent);
}

.department-checks {
  display: grid;
  gap: 8px;
}

.department-option {
  padding-left: calc(10px + var(--department-depth, 0) * 16px);
}

.access-option {
  min-height: 42px;
}

.role-chapter-matrix {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.role-chapter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px 118px;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.role-chapter-row:not(.role-chapter-head):hover {
  border-color: var(--kb-line);
  background: var(--kb-subtle);
}

.role-chapter-head {
  min-height: auto;
  padding-top: 0;
  padding-bottom: 2px;
  color: var(--kb-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-chapter-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.role-chapter-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-chapter-title small {
  color: var(--kb-muted);
  font-size: 12px;
  font-weight: 600;
}

.roles-field .role-chapter-check {
  justify-content: center;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 6px;
}

.roles-field .role-chapter-check:hover {
  background: transparent;
}

.access-option-legacy {
  color: var(--kb-muted);
}

.field-hint {
  margin: 8px 0 0;
  color: var(--kb-muted);
  font-size: 12px;
  line-height: 1.45;
}

.kb-body .ghost-button,
.kb-body .ghost-link,
.kb-body .primary-button,
.kb-body .danger-button,
.kb-body .icon-link {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 700;
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    border-color 150ms ease,
    background 150ms ease,
    color 150ms ease;
}

.kb-body .ghost-button,
.kb-body .ghost-link {
  background: var(--kb-surface-strong);
  border-color: var(--kb-line);
  color: var(--kb-ink);
}

.kb-body .ghost-button:hover,
.kb-body .ghost-link:hover,
.kb-mini-link:hover {
  border-color: rgba(178, 133, 70, 0.22);
  background: #fcfdff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(17, 19, 26, 0.08);
}

.kb-body .primary-button {
  background: linear-gradient(180deg, #b98b4c 0%, #8b642f 100%);
  border-color: #8b642f;
  color: white;
  box-shadow:
    0 12px 24px rgba(178, 133, 70, 0.18),
    0 0 0 0 rgba(178, 133, 70, 0);
}

.kb-body .primary-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 30px rgba(178, 133, 70, 0.24),
    0 0 0 5px rgba(178, 133, 70, 0.08);
}

.kb-body .ghost-button:active,
.kb-body .primary-button:active,
.kb-body .danger-button:active,
.kb-body .icon-button:active {
  transform: scale(0.985);
}

.kb-body .danger-button {
  background: var(--kb-warm-soft);
  border-color: rgba(227, 106, 74, 0.24);
  color: #b65338;
}

.kb-body .ghost-button:disabled,
.kb-body .primary-button:disabled,
.kb-body .danger-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.kb-body.kb-mobile-readonly .kb-editor-shell {
  display: none !important;
}

@media (max-width: 1260px) {
  .kb-side-rail {
    width: min(420px, calc(100vw - 28px));
  }
}

@media (max-width: 960px) {
  .kb-nav-collapse {
    display: none;
  }

  .kb-body.kb-nav-collapsed .kb-app {
    grid-template-columns: 1fr;
  }

  .kb-body.kb-nav-collapsed .kb-nav-shell {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-108%);
  }

  .kb-body.kb-nav-collapsed .kb-nav-shell.is-open {
    transform: translateX(0);
  }

  .kb-mobile-topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 45;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--kb-line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
  }

  #kb-mobile-menu-toggle {
    position: relative;
    width: 44px;
    min-width: 44px;
    height: 44px;
    border: 1px solid rgba(178, 133, 70, 0.28);
    border-radius: 8px;
    background:
      linear-gradient(135deg, rgba(178, 133, 70, 0.14) 0 1px, transparent 1px 8px),
      linear-gradient(315deg, rgba(178, 133, 70, 0.12) 0 1px, transparent 1px 8px),
      rgba(255, 253, 249, 0.76);
    color: var(--kb-accent-strong);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
  }

  #kb-mobile-menu-toggle::before,
  #kb-mobile-menu-toggle::after {
    content: none;
  }

  #kb-mobile-menu-toggle .kb-icon {
    width: 34px;
    height: 34px;
    stroke-width: 1.45;
  }

  .kb-mobile-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .kb-mobile-logo {
    display: block;
    width: min(176px, calc(100vw - 90px));
    height: auto;
    mix-blend-mode: multiply;
  }

  .kb-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 42;
    display: block;
    border: 0;
    background: rgba(17, 19, 26, 0.26);
  }

  .kb-nav-backdrop[hidden] {
    display: none;
  }

  .kb-body.kb-nav-open {
    overflow: hidden;
  }

  .kb-app {
    grid-template-columns: 1fr;
  }

  .kb-nav-shell {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(370px, calc(100vw - 38px));
    height: 100vh;
    padding-top: 18px;
    transform: translateX(-108%);
    transition: transform 180ms ease;
    border-right: 1px solid var(--kb-line);
    border-bottom: 0;
    box-shadow: 24px 0 56px rgba(17, 19, 26, 0.16);
  }

  .kb-nav-shell.is-open {
    transform: translateX(0);
  }

  .kb-nav-close {
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 2;
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    color: var(--kb-muted);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(17, 19, 26, 0.08);
  }

  .kb-nav-shell .kb-brand-home {
    justify-self: start;
    width: calc(100% - 54px);
  }

  .kb-nav-shell .kb-brand-logo {
    width: min(100%, 244px);
    margin: 0;
  }

  .kb-nav-close:hover,
  .kb-nav-close:focus-visible {
    color: var(--kb-accent-strong);
    background: var(--kb-surface-strong);
  }

  .kb-workspace {
    padding: 76px 20px 28px;
  }

  .kb-workspace-head {
    position: static;
    padding-top: 20px;
  }

  .kb-title-block h2 {
    font-size: 34px;
    max-width: none;
  }

  .kb-content,
  .kb-content.editing {
    padding: 28px 22px 34px;
    font-size: 17px;
  }

  .kb-content.chapter-dashboard {
    padding: 22px;
  }

  .kb-content.role-dashboard {
    padding: 22px;
  }

  .kb-content.admin-dashboard {
    padding: 22px;
  }

  .kb-role-hero,
  .kb-role-editor-head,
  .kb-admin-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .kb-role-grid,
  .kb-role-editor-grid,
  .kb-role-command,
  .kb-role-cover,
  .kb-role-layout,
  .kb-role-workbench,
  .employee-hero-main,
  .employee-gamification-overview,
  .employee-progress-strip,
  .employee-work-grid,
  .employee-dashboard-grid,
  .employee-program-progress-grid,
  .employee-completion-card,
  .employee-future-grid,
  .kb-test-start,
  .kb-admin-grid,
  .kb-admin-stats {
    grid-template-columns: 1fr;
  }

  .employee-material-grid {
    grid-template-columns: 1fr;
  }

  .employee-hero-visual {
    display: none;
  }

  .kb-role-status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kb-inline-editor-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .kb-inline-editor-bar .editor-actions {
    justify-content: stretch;
  }

  .kb-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .kb-chapter-hero {
    grid-template-columns: 1fr;
  }

  .kb-chapter-command-row {
    justify-content: flex-start;
  }

  .kb-test-head,
  .kb-test-editor-head,
  .kb-test-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .kb-test-head-actions,
  .kb-test-editor-actions,
  .kb-test-stats {
    justify-content: flex-start;
  }

  .kb-lesson-nav {
    grid-template-columns: 1fr;
  }

  .kb-test-editor-grid {
    grid-template-columns: 1fr;
  }

  .kb-article-surface {
    min-height: 360px;
  }

  .kb-editor-meta-grid,
  .history-item {
    grid-template-columns: 1fr;
  }

  .kb-side-rail {
    width: min(390px, calc(100vw - 24px));
  }

  .kb-test-modal {
    inset: auto 0 0;
    width: 100vw;
    max-height: calc(100vh - 74px);
    transform: none;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }
}

@media (max-width: 820px) {
  .kb-nav-shell,
  .kb-workspace {
    padding-left: 16px;
    padding-right: 16px;
  }

  .kb-body.kb-mobile-readonly #kb-nav-actions,
  .kb-body.kb-mobile-readonly #kb-actions-bar {
    display: none;
  }

  .kb-article-surface,
  .kb-content.empty-state {
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .kb-brand-band,
  .kb-workspace-head,
  .kb-actions-shell,
  .kb-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .kb-actions-shell {
    justify-items: stretch;
  }

  .kb-title-block h2 {
    font-size: 30px;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .kb-body.kb-employee-mode .kb-workspace-head {
    padding: 14px 0 16px;
  }

  .kb-body.kb-employee-mode .kb-title-block {
    gap: 8px;
  }

  .kb-body.kb-employee-mode .kb-title-block h2 {
    font-size: 30px;
    max-width: none;
  }

  .kb-body.kb-employee-mode .kb-article-tags .kb-tag:nth-child(n + 4) {
    display: none;
  }

  .kb-body.kb-employee-mode .kb-workspace-grid {
    padding-top: 16px;
  }

  .kb-content,
  .kb-content.editing,
  .kb-content.chapter-dashboard,
  .kb-content.role-dashboard,
  .kb-content.admin-dashboard,
  .kb-content.employee-reading {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 18px 14px 28px;
  }

  .kb-article-surface.role-home-surface .kb-content.role-dashboard {
    padding: 0 0 28px;
  }

  .kb-workspace-grid,
  .kb-reading-stage,
  .kb-article-surface,
  .kb-admin-dashboard,
  .kb-admin-hero {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .kb-chapter-intro,
  .kb-dashboard-search,
  .kb-dashboard-section-head,
  .kb-role-command,
  .employee-hero-main,
  .employee-level-card,
  .employee-streak-card,
  .employee-achievement-preview,
  .employee-section-head,
  .kb-role-hero,
  .kb-role-editor-head,
  .kb-admin-hero {
    padding: 14px;
  }

  .employee-hero-copy h3,
  .employee-reading-head h3 {
    font-size: 34px;
  }

  .employee-progress-summary,
  .employee-metric,
  .employee-continue-card,
  .employee-search-panel,
  .employee-reading-head,
  .employee-lesson-body {
    padding: 18px;
  }

  .kb-content:not(.editing) img,
  .employee-lesson-body img {
    cursor: zoom-in;
  }

  .employee-material-grid,
  .employee-test-list,
  .employee-update-list,
  .employee-program-progress-grid,
  .employee-achievement-grid,
  .employee-future-grid,
  .employee-chapter-lessons {
    padding: 12px;
  }

  .employee-level-card,
  .employee-completion-card {
    grid-template-columns: 1fr;
  }

  .employee-level-badge,
  .employee-completion-ring {
    justify-self: start;
  }

  .employee-section-progress-row {
    grid-template-columns: 1fr;
  }

  .employee-section-progress-row small {
    white-space: normal;
  }

  .employee-award-toast {
    right: 14px;
    bottom: 14px;
    min-width: auto;
    width: calc(100vw - 28px);
  }

  .employee-hero-actions,
  .employee-reading-actions,
  .employee-reading-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .employee-hero-actions .primary-button,
  .employee-hero-actions .ghost-button,
  .employee-reading-actions .primary-button,
  .employee-reading-actions .ghost-button {
    width: 100%;
  }

  .employee-reading-nav span {
    display: none;
  }

  .employee-search-field input {
    min-height: 56px;
    font-size: 17px;
  }

  .kb-chapter-command-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .kb-chapter-command-row .primary-button,
  .kb-chapter-command-row .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .kb-smart-search {
    padding: 14px;
  }

  .kb-smart-search input,
  .kb-role-search-main.kb-smart-search input {
    min-height: 56px;
    font-size: 16px;
  }

  .kb-page-search-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .kb-role-status-strip {
    grid-template-columns: 1fr;
  }

  .kb-admin-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    justify-content: flex-start;
  }

  .kb-admin-actions .ghost-button,
  .kb-admin-actions .primary-button {
    width: 100%;
    min-width: 0;
  }

  .kb-role-metrics {
    grid-template-columns: 1fr;
  }

  .kb-role-cover-main h3 {
    font-size: 28px;
  }

  .kb-role-path-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .kb-role-path-head strong {
    justify-self: flex-start;
  }

  .kb-dashboard-toc,
  .kb-dashboard-updates,
  .kb-role-progress {
    padding: 10px;
  }

  .kb-panel-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .tree-row {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 8px;
  }

  .tree-row.can-drag {
    grid-template-columns: 28px 24px minmax(0, 1fr);
  }

  .kb-article-surface,
  .kb-content.empty-state {
    min-height: 240px;
  }

  .editor-actions {
    justify-content: stretch;
  }

  .editor-actions button {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .employee-hero-main,
  .employee-command-bar,
  .employee-dashboard-grid,
  .employee-program-progress-grid {
    grid-template-columns: 1fr;
  }

  .employee-command-stats,
  .employee-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .kb-body.kb-employee-mode .kb-workspace {
    padding: 84px 16px 30px;
  }

  .kb-body.kb-employee-mode .kb-workspace-head {
    padding: 10px 0 18px;
  }

  .kb-body.kb-employee-mode .kb-title-block h2 {
    max-width: none;
    font-size: 36px;
    line-height: 1.02;
  }

  .kb-body.kb-employee-mode .kb-title-block .eyebrow {
    font-size: 11px;
    line-height: 1.45;
  }

  .kb-body.kb-employee-mode .kb-article-tags {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .kb-body.kb-employee-mode .kb-article-tags .kb-tag {
    flex: 0 0 auto;
  }

  .kb-body.kb-employee-mode .kb-nav-shell {
    padding: 22px 18px 28px;
  }

  .kb-body.kb-employee-mode .kb-brand-band {
    gap: 18px;
  }

  .kb-body.kb-employee-mode .kb-role-preview {
    padding: 9px;
  }

  .kb-body.kb-employee-mode .kb-employee-menu {
    gap: 2px;
  }

  .employee-hero-main {
    min-height: auto;
    padding: 28px;
  }

  .employee-hero-copy h3 {
    max-width: none;
    font-size: 42px;
  }

  .employee-hero-copy p:not(.employee-soft-label) {
    font-size: 17px;
    line-height: 1.66;
  }

  .employee-hero-side {
    gap: 12px;
  }

  .employee-next-card,
  .employee-hero-progress,
  .employee-command-bar,
  .employee-section-head,
  .employee-material-grid,
  .employee-program-progress-grid,
  .employee-achievement-grid {
    padding: 14px;
  }

  .employee-command-stats,
  .employee-hero-metrics {
    grid-template-columns: 1fr;
  }

  .employee-command-stats {
    gap: 1px;
  }

  .employee-command-stats > div {
    padding: 13px 14px;
  }

  .employee-material-grid {
    grid-template-columns: 1fr;
  }

  .employee-material-card button {
    min-height: 198px;
    padding: 17px;
  }

  .employee-dashboard-grid {
    gap: 18px;
  }

  .employee-achievement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-achievement-card {
    min-height: 174px;
    padding: 14px;
  }

  .employee-achievement-medal {
    width: 52px;
    height: 52px;
  }

  .employee-reading-view {
    max-width: none;
    gap: 14px;
  }

  .employee-reading-head {
    padding: 28px 22px 24px;
  }

  .employee-reading-head h3 {
    max-width: none;
    font-size: 38px;
  }

  .employee-lesson-body {
    padding: 28px 22px 38px;
  }

  .employee-lesson-body p,
  .employee-lesson-body li {
    font-size: 17px;
    line-height: 1.78;
  }

  .employee-reading-actions {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 420px) {
  .employee-achievement-grid {
    grid-template-columns: 1fr;
  }

  .employee-hero-copy h3 {
    font-size: 38px;
  }
}

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

/* Sirius employee interface aligned to the target dashboard mockup */
.kb-body.kb-employee-mode {
  --kb-nav-width: 245px;
  --sirius-bg: #fbfaf7;
  --sirius-card: #ffffff;
  --sirius-line: #eadfd3;
  --sirius-soft-line: #f1e8de;
  --sirius-text: #1b1b20;
  --sirius-muted: #7d7b78;
  --sirius-gold: #d79a43;
  --sirius-gold-strong: #a56f2a;
  --sirius-gold-soft: #fbefd9;
  --sirius-shadow: 0 22px 55px rgba(66, 48, 27, 0.07);
  min-width: 0;
  background: var(--sirius-bg);
  color: var(--sirius-text);
}

.kb-body.kb-employee-mode .kb-app {
  grid-template-columns: var(--kb-nav-width) minmax(0, 1fr);
  background: var(--sirius-bg);
}

.kb-body.kb-employee-mode.kb-nav-collapsed .kb-app {
  grid-template-columns: 0 minmax(0, 1fr);
}

.kb-body.kb-employee-mode .kb-workspace {
  grid-column: 2;
  min-width: 0;
  padding: 0;
  background: var(--sirius-bg);
}

.kb-body.kb-employee-mode .kb-workspace-head,
.kb-body.kb-employee-mode .kb-side-rail,
.kb-body.kb-employee-mode .kb-actions-shell {
  display: none !important;
}

.kb-body.kb-employee-mode .kb-workspace-grid,
.kb-body.kb-employee-mode .kb-reading-stage {
  max-width: none;
  display: block;
  margin: 0;
  padding: 0;
}

.kb-body.kb-employee-mode .kb-article-surface.role-home-surface {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.kb-body.kb-employee-mode .kb-content.role-dashboard {
  max-width: none;
  padding: 0;
}

.kb-body.kb-employee-mode .kb-nav-shell {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--kb-nav-width);
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 30px 14px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--sirius-soft-line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.kb-body.kb-employee-mode .kb-brand-band {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 34px;
  align-items: stretch;
}

.kb-body.kb-employee-mode .kb-brand-home {
  display: flex;
  justify-content: flex-start;
  padding: 0 8px;
}

.kb-body.kb-employee-mode .kb-brand-logo {
  width: 176px;
  height: auto;
  margin: 0;
  mix-blend-mode: multiply;
}

.kb-body.kb-employee-mode .kb-active-role-title,
.kb-body.kb-employee-mode .kb-role-panel,
.kb-body.kb-employee-mode .kb-chapter-nav-panel {
  display: none !important;
}

.kb-body.kb-employee-mode .kb-nav-collapse {
  top: 86px;
  border-color: rgba(215, 154, 67, 0.26);
  background: rgba(255, 253, 249, 0.95);
  color: var(--sirius-gold-strong);
  box-shadow: 0 14px 32px rgba(66, 48, 27, 0.13);
}

.kb-body.kb-employee-mode .kb-nav-collapse:hover,
.kb-body.kb-employee-mode .kb-nav-collapse:focus-visible {
  border-color: rgba(165, 111, 42, 0.44);
  background: #ffffff;
  color: var(--sirius-text);
}

.kb-body.kb-employee-mode .kb-role-preview {
  width: 100%;
  margin-top: auto;
  padding: 10px;
  border-color: rgba(230, 223, 212, 0.76);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

.kb-body.kb-employee-mode:not(.kb-admin-preview-mode) .kb-role-preview {
  display: none !important;
}

.kb-body.kb-employee-mode .kb-role-preview select {
  min-height: 42px;
  border-radius: 9px;
  background: #fffdf9;
  font-size: 13px;
}

.kb-body.kb-employee-mode .kb-employee-menu {
  display: grid !important;
  gap: 8px;
  padding: 0;
}

.kb-body.kb-employee-mode .kb-employee-menu-item {
  position: relative;
  min-height: 52px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  overflow: hidden;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #4d4945;
  font-size: 16px;
  font-weight: 620;
  letter-spacing: 0;
  box-shadow: none;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.kb-body.kb-employee-mode .kb-employee-menu-item::before {
  content: "";
  position: absolute;
  inset: 11px auto 11px 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--sirius-gold);
  opacity: 0;
  transform: scaleY(0.45);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.kb-body.kb-employee-mode .kb-employee-menu-item .kb-icon {
  width: 22px;
  height: 22px;
  color: #9a938b;
}

.kb-body.kb-employee-mode .kb-employee-menu-item:hover,
.kb-body.kb-employee-mode .kb-employee-menu-item:focus-visible {
  border-color: transparent;
  background: rgba(165, 111, 42, 0.055);
  color: var(--sirius-gold-strong);
  outline: none;
  transform: none;
}

.kb-body.kb-employee-mode .kb-employee-menu-item.is-active {
  grid-template-columns: 28px minmax(0, 1fr);
  border-color: transparent;
  background: rgba(165, 111, 42, 0.08);
  color: var(--sirius-gold-strong);
  box-shadow: none;
}

.kb-body.kb-employee-mode .kb-employee-menu-item.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.kb-body.kb-employee-mode .kb-employee-menu-item.is-active .kb-icon,
.kb-body.kb-employee-mode .kb-employee-menu-item:hover .kb-icon {
  color: var(--sirius-gold-strong);
}

.kb-body.kb-employee-mode.kb-employee-materials-nav-open .kb-employee-menu-item[data-employee-nav="materials"] {
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

.kb-body.kb-employee-mode.kb-employee-materials-nav-open .kb-employee-menu-item[data-employee-nav="materials"]::after {
  content: "";
  justify-self: end;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.kb-body.kb-employee-mode.kb-employee-materials-nav-open .kb-employee-menu-item[data-employee-nav="materials"].is-active {
  grid-template-columns: 28px minmax(0, 1fr) 16px;
}

.kb-body.kb-employee-mode .kb-employee-materials-slot {
  min-width: 0;
}

.kb-body.kb-employee-mode.kb-employee-materials-nav-open .kb-chapter-nav-panel {
  position: relative;
  display: grid !important;
  gap: 4px;
  margin: -2px 0 4px;
  padding: 4px 0 4px 26px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.kb-body.kb-employee-mode.kb-employee-materials-nav-open .kb-chapter-nav-panel::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 14px;
  width: 1px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(165, 111, 42, 0.06), rgba(165, 111, 42, 0.3), rgba(165, 111, 42, 0.06));
}

.kb-body.kb-employee-mode .kb-employee-materials-slot .kb-chapter-nav-panel .kb-panel-summary {
  display: none;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .kb-panel-summary {
  min-height: auto;
  padding: 0 2px 4px;
  color: #8a8076;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .kb-panel-summary::-webkit-details-marker {
  display: none;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .kb-panel-summary::marker {
  content: "";
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .kb-panel-summary div {
  display: grid;
  gap: 2px;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .kb-panel-kicker {
  display: none;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .kb-panel-summary strong {
  color: #8a8076;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .kb-summary-pill,
.kb-body.kb-employee-mode .kb-chapter-nav-panel .kb-tree-tools {
  display: none !important;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .kb-panel-body {
  display: grid;
  gap: 4px;
  padding: 0;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .kb-tree {
  gap: 2px;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-group {
  gap: 2px;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-row {
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 6px;
  margin-left: calc(var(--depth, 0) * 8px);
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-toggle,
.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-toggle-placeholder {
  width: 18px;
  height: 34px;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-toggle {
  color: rgba(165, 111, 42, 0.62);
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-toggle .kb-icon {
  width: 13px;
  height: 13px;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-toggle-placeholder::before {
  width: 5px;
  height: 5px;
  margin-top: 14px;
  background: rgba(165, 111, 42, 0.26);
  box-shadow: none;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-item {
  min-height: 34px;
  padding: 7px 10px;
  border-color: transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-item:hover,
.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-item:focus-visible {
  border-color: transparent;
  background: rgba(165, 111, 42, 0.055);
  box-shadow: none;
  outline: none;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-item span {
  color: #4d4945;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.28;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-item small {
  display: none;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-row.has-children .tree-item span {
  font-weight: 860;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-row.active-ancestor .tree-item,
.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-item.active {
  border-color: transparent;
  background: rgba(165, 111, 42, 0.08);
  color: var(--sirius-gold-strong);
  box-shadow: inset 3px 0 0 var(--sirius-gold);
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-row.active-ancestor:not(.is-active) .tree-item {
  background: transparent;
  box-shadow: none;
}

.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-row.active-ancestor .tree-item span,
.kb-body.kb-employee-mode .kb-chapter-nav-panel .tree-item.active span {
  color: var(--sirius-gold-strong);
}

.sirius-sidebar-footer {
  display: none;
}

.sirius-mobile-progress-card,
.sirius-mobile-resume-card {
  display: none;
}

.kb-body.kb-employee-mode .sirius-sidebar-footer {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding: 22px 10px 0;
  color: #8e8881;
  font-size: 12px;
  line-height: 1.45;
}

.kb-body.kb-employee-mode .sirius-sidebar-footer p {
  margin: 0;
}

.kb-body.kb-employee-mode.kb-admin-preview-mode .sirius-sidebar-footer {
  margin-top: 12px;
}

.sirius-sidebar-help {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(250, 246, 240, 0.9);
  color: #6f6458;
}

.sirius-sidebar-help .kb-icon {
  width: 20px;
  height: 20px;
  color: var(--sirius-gold-strong);
}

.kb-feedback-widget {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(215, 154, 67, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.94), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 86% 0%, rgba(215, 154, 67, 0.16), transparent 44%);
  color: #4d4945;
  text-align: left;
  box-shadow: 0 16px 34px rgba(87, 65, 40, 0.06);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.kb-feedback-widget:hover,
.kb-feedback-widget:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(215, 154, 67, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 247, 233, 0.98), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 86% 0%, rgba(215, 154, 67, 0.22), transparent 44%);
  box-shadow: 0 20px 44px rgba(87, 65, 40, 0.1);
  outline: none;
}

.kb-feedback-widget-icon {
  width: 38px;
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(215, 154, 67, 0.12);
  color: var(--sirius-gold-strong, #a56f2a);
}

.kb-feedback-widget-icon .kb-icon {
  width: 20px;
  height: 20px;
}

.kb-feedback-widget strong,
.kb-feedback-widget small {
  display: block;
}

.kb-feedback-widget strong {
  margin-bottom: 3px;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 820;
}

.kb-feedback-widget small {
  color: #847a70;
  font-size: 12px;
  line-height: 1.35;
}

.kb-feedback-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  border: 0;
  background: rgba(23, 22, 20, 0.34);
  backdrop-filter: blur(8px);
}

.kb-feedback-modal {
  position: fixed;
  inset: 0;
  z-index: 92;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
}

.kb-feedback-panel {
  width: min(560px, 100%);
  max-height: min(760px, calc(100dvh - 36px));
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(230, 223, 212, 0.92);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 245, 0.96)),
    radial-gradient(circle at 92% 12%, rgba(215, 154, 67, 0.12), transparent 32%);
  box-shadow: 0 34px 90px rgba(23, 22, 20, 0.22);
  pointer-events: auto;
  animation: kbFeedbackIn 180ms ease both;
}

.kb-feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(230, 223, 212, 0.72);
}

.kb-feedback-head strong {
  display: block;
  color: #171512;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3.2vw, 34px);
  font-weight: 500;
  line-height: 1.08;
}

.kb-feedback-body {
  display: grid;
  gap: 16px;
  padding: 20px 24px 24px;
}

.kb-feedback-context,
.kb-feedback-hint {
  margin: 0;
  color: #736c64;
  font-size: 14px;
  line-height: 1.55;
}

.kb-feedback-context {
  padding: 12px 14px;
  border: 1px solid rgba(215, 154, 67, 0.18);
  border-radius: 14px;
  background: rgba(255, 248, 237, 0.78);
}

.kb-feedback-field {
  display: grid;
  gap: 9px;
}

.kb-feedback-field span {
  color: #81766a;
  font-size: 12px;
  font-weight: 830;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kb-feedback-field textarea {
  width: 100%;
  min-height: 158px;
  resize: vertical;
  padding: 15px 16px;
  border: 1px solid rgba(206, 195, 180, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  color: #191714;
  font-size: 15px;
  line-height: 1.55;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.kb-feedback-field textarea:focus {
  border-color: rgba(215, 154, 67, 0.52);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(215, 154, 67, 0.12);
}

.kb-feedback-screenshot {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 14px;
  border: 1px solid rgba(206, 195, 180, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.kb-feedback-screenshot:hover,
.kb-feedback-screenshot:focus-within {
  border-color: rgba(215, 154, 67, 0.38);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(87, 65, 40, 0.08);
}

.kb-feedback-screenshot input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kb-feedback-screenshot-check {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(129, 111, 85, 0.3);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  color: #ffffff;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.kb-feedback-screenshot-check::before {
  content: "";
  width: 10px;
  height: 6px;
  border: 2px solid currentColor;
  border-top: 0;
  border-right: 0;
  opacity: 0;
  transform: rotate(-45deg) translateY(-1px);
  transition: opacity 140ms ease;
}

.kb-feedback-screenshot input:checked + .kb-feedback-screenshot-check {
  border-color: rgba(180, 123, 51, 0.8);
  background: linear-gradient(135deg, #c58b3d, #dea352);
  transform: scale(1.02);
}

.kb-feedback-screenshot input:checked + .kb-feedback-screenshot-check::before {
  opacity: 1;
}

.kb-feedback-screenshot strong {
  display: block;
  color: #1d1a16;
  font-size: 14px;
  line-height: 1.35;
}

.kb-feedback-screenshot small {
  display: block;
  margin-top: 3px;
  color: #756e65;
  font-size: 12px;
  line-height: 1.45;
}

.kb-feedback-attachment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 14px;
  border: 1px dashed rgba(180, 123, 51, 0.32);
  border-radius: 16px;
  background: rgba(255, 250, 245, 0.62);
}

.kb-feedback-attachment strong {
  display: block;
  color: #1d1a16;
  font-size: 14px;
  line-height: 1.35;
}

.kb-feedback-attachment small {
  display: block;
  margin-top: 3px;
  color: #756e65;
  font-size: 12px;
  line-height: 1.45;
}

.kb-feedback-file-button {
  min-height: 42px;
  white-space: nowrap;
}

#kb-feedback-screenshot-file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.kb-feedback-screenshot-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(215, 154, 67, 0.2);
  border-radius: 14px;
  background: rgba(255, 248, 237, 0.78);
  color: #786b5a;
  font-size: 13px;
  line-height: 1.4;
}

.kb-feedback-screenshot-status[hidden] {
  display: none;
}

.kb-feedback-screenshot-status.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid rgba(180, 123, 51, 0.22);
  border-top-color: rgba(180, 123, 51, 0.86);
  border-radius: 999px;
  animation: kbFeedbackSpin 820ms linear infinite;
}

.kb-feedback-screenshot-status.is-ready {
  border-color: rgba(75, 132, 85, 0.22);
  background: rgba(246, 251, 246, 0.86);
  color: #476548;
}

.kb-feedback-screenshot-status.is-error {
  border-color: rgba(180, 91, 58, 0.26);
  background: rgba(255, 246, 241, 0.9);
  color: #9f4e3c;
}

.kb-feedback-screenshot-status a {
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.kb-feedback-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.kb-feedback-actions .ghost-button,
.kb-feedback-actions .primary-button,
.kb-feedback-success .primary-button {
  min-height: 48px;
  border-radius: 12px;
  padding: 0 18px;
}

.kb-feedback-actions .primary-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.kb-feedback-success {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 26px 30px 30px;
  text-align: center;
}

.kb-feedback-success img {
  width: min(100%, 340px);
  height: auto;
  border-radius: 22px;
  box-shadow: 0 24px 56px rgba(87, 65, 40, 0.12);
}

.kb-feedback-success h3 {
  max-width: 420px;
  margin: 4px 0 0;
  color: #171512;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3.6vw, 36px);
  font-weight: 500;
  line-height: 1.1;
}

.kb-feedback-success p {
  max-width: 430px;
  margin: 0;
  color: #716a61;
  font-size: 15px;
  line-height: 1.55;
}

.kb-body.kb-feedback-modal-open {
  overflow: hidden;
}

@media (max-width: 620px) {
  .kb-feedback-attachment {
    grid-template-columns: 1fr;
  }

  .kb-feedback-file-button {
    width: 100%;
  }
}

@keyframes kbFeedbackIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes kbFeedbackSpin {
  to {
    transform: rotate(360deg);
  }
}

.sirius-dashboard {
  min-height: 100vh;
  display: grid;
  gap: 28px;
  padding: 0 32px 48px;
  background: var(--sirius-bg);
}

.sirius-topbar {
  min-height: 100px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(300px, 430px) auto;
  gap: 28px;
  align-items: center;
  margin: 0 -32px;
  padding: 0 48px 0 36px;
  border-bottom: 1px solid var(--sirius-soft-line);
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
}

.sirius-topbar-role {
  min-width: 0;
  overflow: hidden;
  color: #2d2925;
  font-family: "Georgia", "Times New Roman", serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sirius-top-search {
  min-width: 0;
  height: 48px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--sirius-line);
  border-radius: 8px;
  background: #fffdfb;
  color: #9d9389;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.sirius-top-search:focus-within {
  border-color: rgba(215, 154, 67, 0.42);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(173, 111, 42, 0.08);
}

.sirius-top-search .kb-icon {
  width: 19px;
  height: 19px;
}

.sirius-top-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--sirius-text);
  font-size: 14px;
  font-weight: 500;
}

.sirius-userbar {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #2f2a25;
  white-space: nowrap;
}

.sirius-userbar > .kb-icon {
  width: 16px;
  height: 16px;
  color: var(--sirius-gold-strong);
  transform: rotate(90deg);
}

.sirius-avatar {
  width: 48px;
  height: 48px;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(215, 154, 67, 0.2), rgba(255, 255, 255, 0.42)),
    #3a3027;
  color: #fffaf2;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

.sirius-avatar img {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  display: block;
  border-radius: inherit;
  object-fit: cover;
  object-position: center center;
}

.sirius-user-text {
  display: grid;
  gap: 3px;
  line-height: 1.2;
}

.sirius-user-text strong {
  font-size: 15px;
  font-weight: 760;
}

.sirius-user-text span {
  color: var(--sirius-muted);
  font-size: 12px;
}

.sirius-search-results {
  max-width: 1260px;
  width: 100%;
  margin: -12px auto 0;
}

.sirius-dashboard-grid {
  width: 100%;
  max-width: 1260px;
  display: grid;
  grid-template-columns: minmax(0, 2.08fr) minmax(320px, 0.92fr);
  gap: 22px;
  align-items: start;
  margin: 0 auto;
}

.sirius-panel,
.sirius-hero-card {
  border: 1px solid var(--sirius-soft-line);
  border-radius: 10px;
  background: var(--sirius-card);
  box-shadow: var(--sirius-shadow);
  animation: siriusFadeUp 420ms ease both;
}

.sirius-hero-card {
  grid-column: 1 / -1;
  min-height: 312px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 46%);
  grid-template-rows: minmax(220px, 1fr) auto;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0 48%, rgba(255, 255, 255, 0.7) 64%, rgba(255, 255, 255, 0.18) 100%),
    #fffdf9;
}

.sirius-hero-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 38px 28px 34px 34px;
}

.sirius-hero-copy h3 {
  max-width: none;
  margin: 0;
  color: var(--sirius-text);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(30px, 2.7vw, 36px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0;
}

.sirius-hero-copy p {
  max-width: 52ch;
  margin: 0;
  color: #4d4b49;
  font-size: 15px;
  line-height: 1.7;
}

.sirius-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.sirius-hero-focus {
  width: min(100%, 520px);
  display: grid;
  gap: 5px;
  justify-items: start;
  padding: 13px 16px;
  border: 1px solid rgba(202, 176, 140, 0.34);
  border-radius: 10px;
  background: rgba(255, 253, 250, 0.72);
  color: var(--sirius-text);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition:
    border-color 170ms ease,
    background 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease;
}

.sirius-hero-focus:not(.is-empty):hover,
.sirius-hero-focus:not(.is-empty):focus-visible {
  border-color: rgba(191, 139, 64, 0.4);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 28px rgba(66, 48, 27, 0.07);
  outline: none;
  transform: translateY(-1px);
}

.sirius-hero-focus span {
  color: var(--sirius-gold-strong);
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sirius-hero-focus strong {
  max-width: 100%;
  overflow: hidden;
  color: #211e1b;
  font-size: 15px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sirius-hero-focus small {
  max-width: 100%;
  color: var(--sirius-muted);
  font-size: 13px;
  line-height: 1.45;
}

.kb-body.kb-employee-mode .primary-button.employee-primary {
  min-height: 44px;
  gap: 8px;
  padding: 0 22px;
  border-radius: 7px;
  border-color: rgba(173, 111, 42, 0.22);
  background: linear-gradient(180deg, #dda24d 0%, #cb8a32 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 760;
  box-shadow:
    0 14px 26px rgba(193, 125, 44, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    filter 170ms ease;
}

.kb-body.kb-employee-mode .primary-button.employee-primary:hover,
.kb-body.kb-employee-mode .primary-button.employee-primary:focus-visible {
  transform: translateY(-1px);
  filter: saturate(1.03);
  box-shadow:
    0 18px 34px rgba(193, 125, 44, 0.24),
    0 0 0 4px rgba(215, 154, 67, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.kb-body.kb-employee-mode .primary-button.employee-primary:active {
  transform: translateY(0) scale(0.985);
}

.sirius-hero-actions .ghost-button,
.sirius-wide-button {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 7px;
  border-color: rgba(173, 111, 42, 0.25);
  background: rgba(255, 255, 255, 0.72);
  color: #312c27;
  font-size: 14px;
  font-weight: 690;
  box-shadow: none;
  transition:
    transform 170ms ease,
    background 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.sirius-hero-actions .ghost-button:hover,
.sirius-wide-button:hover {
  border-color: rgba(173, 111, 42, 0.38);
  background: #fffdfb;
  box-shadow: 0 12px 24px rgba(66, 48, 27, 0.07);
  transform: translateY(-1px);
}

.kb-body.kb-employee-mode .kb-content.employee-reading {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  padding: 0;
}

.kb-body.kb-employee-mode .kb-article-surface.employee-reading-surface {
  min-height: 100vh;
  overflow: visible;
}

.employee-reading-view {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  gap: 0;
  background: var(--sirius-bg);
}

.employee-reading-nav {
  position: sticky;
  top: 0;
  z-index: 12;
  min-height: 64px;
  padding: 10px clamp(24px, 4vw, 64px);
  border-bottom: 1px solid var(--sirius-soft-line);
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(16px);
}

.employee-reading-nav .ghost-button {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border-color: rgba(173, 111, 42, 0.18);
  background: rgba(255, 255, 255, 0.76);
  color: #28231f;
  font-size: 14px;
  font-weight: 760;
  box-shadow: none;
}

.employee-reading-card {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: none;
  overflow: visible;
}

.employee-reading-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 34px clamp(36px, 5vw, 96px) 30px;
  border-bottom: 1px solid var(--sirius-soft-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(251, 250, 247, 0.96) 100%);
}

.employee-reading-head-copy {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.employee-reading-head h3 {
  max-width: min(100%, 1120px);
  font-size: clamp(32px, 3.4vw, 50px);
  line-height: 1.05;
}

.employee-reading-head p:not(.employee-soft-label) {
  max-width: 86ch;
  font-size: 16px;
  line-height: 1.58;
}

.employee-reading-meta {
  justify-content: flex-end;
  max-width: 420px;
}

.employee-reading-meta span {
  min-height: 30px;
  padding: 0 10px;
  background: #fff;
  color: #73706d;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.employee-lesson-body {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 46px clamp(36px, 5vw, 96px) 104px;
}

.employee-lesson-body p,
.employee-lesson-body li {
  max-width: min(100%, 1040px);
}

.employee-lesson-body h1,
.employee-lesson-body h2,
.employee-lesson-body h3,
.employee-lesson-body h4,
.employee-lesson-body h5,
.employee-lesson-body h6 {
  max-width: min(100%, 920px);
}

.employee-reading-actions {
  position: sticky;
  bottom: 18px;
  z-index: 11;
  justify-content: flex-start;
  width: fit-content;
  max-width: calc(100vw - var(--kb-nav-width) - 48px);
  margin: -70px 0 26px clamp(28px, 5vw, 76px);
  padding: 8px;
  border: 1px solid rgba(230, 223, 212, 0.86);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 46px rgba(66, 48, 27, 0.12);
  backdrop-filter: blur(16px);
}

.kb-body.kb-employee-mode.kb-nav-collapsed .employee-reading-actions {
  max-width: calc(100vw - 48px);
}

.employee-chapter-view {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(251, 250, 247, 0) 220px),
    var(--sirius-bg);
}

.employee-chapter-home {
  container: employee-chapter-home / inline-size;
  display: grid;
  gap: 18px;
  padding: 28px clamp(28px, 5vw, 76px) 76px;
}

.employee-chapter-overview,
.employee-chapter-panel {
  border: 1px solid rgba(230, 223, 212, 0.92);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 46px rgba(66, 48, 27, 0.055);
}

.employee-chapter-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: stretch;
  padding: 32px 36px;
  background:
    radial-gradient(circle at 88% 14%, rgba(215, 154, 67, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 250, 242, 0.9) 100%);
}

.employee-chapter-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}

.employee-chapter-copy h3 {
  max-width: 18ch;
  margin: 0;
  color: var(--sirius-text);
  font-size: clamp(40px, 4vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.employee-chapter-description {
  max-width: 76ch;
  color: #3a3d45;
  overflow-wrap: break-word;
}

.employee-chapter-description > :first-child {
  margin-top: 0;
}

.employee-chapter-description > :last-child {
  margin-bottom: 0;
}

.employee-chapter-description p,
.employee-chapter-description li {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 1.7;
}

.employee-chapter-description h1,
.employee-chapter-description h2,
.employee-chapter-description h3 {
  margin: 20px 0 10px;
  font-size: 24px;
  line-height: 1.18;
}

.employee-chapter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.employee-chapter-actions .ghost-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border-color: rgba(173, 111, 42, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: #312c27;
  font-size: 14px;
  font-weight: 760;
}

.employee-chapter-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
}

.employee-chapter-metric,
.employee-chapter-progress {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(230, 223, 212, 0.82);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.employee-chapter-metric span {
  color: #8a8178;
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.employee-chapter-metric strong {
  color: #12131a;
  font-size: 24px;
  line-height: 1;
}

.employee-chapter-metric small {
  color: var(--sirius-muted);
  font-size: 12px;
  line-height: 1.35;
}

.employee-chapter-progress {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.employee-chapter-progress span {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(230, 223, 212, 0.9);
}

.employee-chapter-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #dca14c, #c88631);
}

.employee-chapter-progress strong {
  color: #6c5640;
  font-size: 13px;
}

@container employee-chapter-home (min-width: 1280px) {
  .employee-chapter-overview {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 330px);
  }

  .employee-chapter-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.employee-chapter-panel {
  display: grid;
  overflow: hidden;
}

.employee-chapter-panel-head {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--sirius-soft-line);
}

.employee-chapter-panel-head h4 {
  margin: 3px 0 0;
  color: var(--sirius-text);
  font-size: 28px;
  line-height: 1.15;
}

.employee-chapter-panel-head > span {
  flex: 0 0 auto;
  color: var(--sirius-muted);
  font-size: 14px;
  font-weight: 760;
}

.employee-chapter-tree,
.employee-chapter-test-list {
  display: grid;
  gap: 8px;
  padding: 18px 28px 24px;
}

.employee-chapter-tree-group {
  display: grid;
  gap: 8px;
}

.employee-chapter-tree-shell {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-left: calc(var(--chapter-depth, 0) * 24px);
}

.employee-chapter-tree-row {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border: 1px solid rgba(230, 223, 212, 0.72);
  border-radius: 10px;
  background: #fff;
  color: var(--sirius-text);
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.employee-chapter-tree-row:hover,
.employee-chapter-tree-row:focus-visible {
  border-color: rgba(215, 154, 67, 0.32);
  background: #fffaf2;
  outline: none;
  transform: translateY(-1px);
}

.employee-chapter-tree-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(138, 129, 120, 0.34);
  box-shadow: 0 0 0 5px rgba(230, 223, 212, 0.42);
}

.employee-chapter-tree-row.is-complete .employee-chapter-tree-dot {
  background: #56a36c;
  box-shadow: 0 0 0 5px rgba(86, 163, 108, 0.12);
}

.employee-chapter-tree-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.employee-chapter-tree-copy strong {
  color: #15161d;
  font-size: 16px;
  line-height: 1.35;
}

.employee-chapter-tree-copy small {
  color: var(--sirius-muted);
  font-size: 12px;
  line-height: 1.35;
}

.employee-chapter-tree-row em,
.employee-chapter-test-card em {
  color: var(--sirius-gold-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 860;
  text-transform: uppercase;
}

.employee-chapter-test-card {
  width: 100%;
  min-height: 74px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(230, 223, 212, 0.82);
  border-radius: 10px;
  background: #fff;
  color: var(--sirius-text);
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.employee-chapter-test-card:hover,
.employee-chapter-test-card:focus-visible {
  border-color: rgba(215, 154, 67, 0.34);
  background: #fffaf2;
  outline: none;
  transform: translateY(-1px);
}

.employee-chapter-test-card.passed {
  border-color: rgba(86, 163, 108, 0.26);
  background: rgba(246, 252, 248, 0.94);
}

.employee-chapter-test-card.attention {
  border-color: rgba(227, 106, 74, 0.24);
  background: rgba(255, 247, 242, 0.94);
}

.employee-chapter-test-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--sirius-gold-soft);
  color: var(--sirius-gold-strong);
}

.employee-chapter-test-icon .kb-icon {
  width: 21px;
  height: 21px;
}

.employee-chapter-test-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.employee-chapter-test-copy strong {
  color: #15161d;
  font-size: 17px;
  line-height: 1.35;
}

.employee-chapter-test-copy small {
  color: var(--sirius-muted);
  font-size: 13px;
}

.employee-chapter-empty {
  padding: 18px;
  border: 1px dashed rgba(230, 223, 212, 0.95);
  border-radius: 10px;
  background: rgba(255, 250, 242, 0.54);
  color: var(--sirius-muted);
  font-size: 14px;
  line-height: 1.55;
}

.sirius-hero-art {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.04) 40%),
    url("/static/sirius-learning-hero.jpg?v=20260508") center right / cover no-repeat;
}

.sirius-hero-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 42% 72%, rgba(255, 255, 255, 0.36), transparent 18%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent 36%);
}

.sirius-progress-strip {
  grid-column: 1 / -1;
  min-height: 92px;
  display: grid;
  grid-template-columns: minmax(230px, 1.35fr) repeat(3, minmax(130px, 1fr));
  border-top: 1px solid var(--sirius-soft-line);
  background: rgba(255, 255, 255, 0.88);
}

.sirius-progress-main,
.sirius-stat {
  min-width: 0;
  display: grid;
  align-content: center;
  padding: 18px 28px;
}

.sirius-stat {
  grid-template-columns: 34px minmax(0, auto);
  column-gap: 12px;
  border-left: 1px solid var(--sirius-soft-line);
}

.sirius-progress-main span,
.sirius-stat span {
  color: var(--sirius-muted);
  font-size: 12px;
  line-height: 1.35;
}

.sirius-progress-main {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 18px;
}

.sirius-progress-line {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee8df;
}

.sirius-progress-line i,
.sirius-mini-progress span,
.employee-card-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #dba04a, #c8852f);
  animation: siriusProgress 560ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.sirius-progress-main strong {
  color: #312c27;
  font-size: 15px;
  font-weight: 680;
}

.sirius-stat .kb-icon {
  grid-row: span 2;
  width: 27px;
  height: 27px;
  color: var(--sirius-gold);
  align-self: center;
}

.sirius-stat strong {
  color: #28231f;
  font-size: 22px;
  font-weight: 560;
  line-height: 1;
}

.sirius-panel {
  padding: 0;
}

.sirius-continue-card {
  min-height: 312px;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 28px 24px;
}

.sirius-panel-title,
.sirius-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sirius-panel-title {
  justify-content: flex-start;
}

.sirius-panel-title h4,
.sirius-section-head h4 {
  margin: 0;
  color: var(--sirius-text);
  font-size: 20px;
  font-weight: 690;
  line-height: 1.2;
}

.sirius-clock {
  width: 23px;
  height: 23px;
  border: 2px solid var(--sirius-gold);
  border-radius: 50%;
  position: relative;
}

.sirius-clock::before,
.sirius-clock::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  border-radius: 999px;
  background: var(--sirius-gold);
  transform-origin: bottom center;
}

.sirius-clock::before {
  height: 7px;
  transform: translate(-50%, -100%) rotate(0deg);
}

.sirius-clock::after {
  height: 6px;
  transform: translate(-50%, -100%) rotate(115deg);
}

.sirius-continue-body {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.sirius-continue-cover,
.sirius-material-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 7px;
  background-color: #ead7bf;
  background-blend-mode: soft-light, normal;
}

.sirius-continue-cover {
  width: 120px;
  min-height: 0;
}

.sirius-cover-1 {
  background:
    linear-gradient(35deg, rgba(74, 48, 25, 0.22), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.5), transparent 22%),
    linear-gradient(135deg, #c99655 0%, #f2dfc4 52%, #8d785e 100%);
}

.sirius-cover-2 {
  background:
    linear-gradient(35deg, rgba(54, 44, 32, 0.14), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 72% 28%, rgba(91, 118, 78, 0.25), transparent 18%),
    linear-gradient(135deg, #d7c1a6 0%, #f7ead8 48%, #8e8c77 100%);
}

.sirius-cover-3 {
  background:
    linear-gradient(35deg, rgba(74, 48, 25, 0.18), rgba(255, 255, 255, 0.12)),
    repeating-linear-gradient(18deg, rgba(255, 255, 255, 0.22) 0 8px, rgba(121, 96, 64, 0.1) 8px 12px),
    linear-gradient(135deg, #caa36d 0%, #f4e4cf 56%, #b9854c 100%);
}

.sirius-cover-4 {
  background:
    linear-gradient(35deg, rgba(49, 41, 34, 0.18), rgba(255, 255, 255, 0.12)),
    radial-gradient(circle at 32% 70%, rgba(255, 255, 255, 0.5), transparent 18%),
    linear-gradient(135deg, #b88954 0%, #e7ceb0 48%, #686b5e 100%);
}

.sirius-continue-body strong {
  display: block;
  margin-bottom: 7px;
  color: #22201e;
  font-size: 14px;
  font-weight: 730;
  line-height: 1.35;
}

.sirius-continue-body p {
  margin: 0 0 14px;
  color: var(--sirius-muted);
  font-size: 12px;
  line-height: 1.45;
}

.sirius-mini-progress {
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee8df;
}

.sirius-continue-body small {
  display: block;
  margin-top: 8px;
  color: #5c554d;
  font-size: 12px;
}

.sirius-link-button {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #2e2924;
  font-size: 13px;
}

.sirius-section-head {
  min-height: 62px;
  padding: 0 24px;
}

.sirius-section-head button {
  border: 0;
  background: transparent;
  color: var(--sirius-gold-strong);
  font-size: 13px;
  font-weight: 540;
}

.sirius-material-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 8px 24px 26px;
}

.sirius-materials-panel {
  grid-column: 1 / 2;
}

.sirius-tests-panel {
  grid-column: 2 / 3;
}

.employee-material-card {
  min-width: 0;
}

.employee-material-card button {
  width: 100%;
  min-height: 244px;
  display: grid;
  grid-template-rows: auto auto auto auto;
  gap: 12px;
  padding: 0 0 14px;
  overflow: hidden;
  border: 1px solid var(--sirius-soft-line);
  border-radius: 8px;
  background: #fffdfb;
  color: var(--sirius-text);
  text-align: left;
  box-shadow: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.employee-material-card button:hover,
.employee-material-card button:focus-visible {
  border-color: rgba(215, 154, 67, 0.34);
  box-shadow: 0 20px 34px rgba(66, 48, 27, 0.09);
  outline: none;
  transform: translateY(-3px);
}

.sirius-material-cover {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 0;
}

.employee-material-card.no-cover button {
  padding-top: 14px;
}

.employee-status-inline {
  position: static;
  justify-self: start;
  margin: 0 18px;
}

.employee-status {
  position: absolute;
  top: 10px;
  left: 10px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 5px;
  background: rgba(255, 253, 248, 0.82);
  color: var(--sirius-gold-strong);
  font-size: 11px;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.employee-status.done {
  color: #7d652d;
}

.employee-status.process {
  color: var(--sirius-gold-strong);
}

.employee-status.employee-status-inline {
  position: static;
  justify-self: start;
  margin: 0 18px;
}

.employee-material-card h5 {
  min-height: 39px;
  margin: 0;
  padding: 0 13px;
  color: #151515;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.35;
}

.employee-material-card p,
.employee-material-top {
  display: none;
}

.employee-card-progress-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 0 13px;
}

.employee-card-progress {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee8df;
}

.employee-card-progress-row small {
  color: #5a5148;
  font-size: 12px;
  font-weight: 530;
}

.employee-material-card strong {
  min-height: auto;
  display: flex;
  justify-content: flex-start;
  gap: 7px;
  margin: 0;
  padding: 0 13px;
  border: 0;
  color: var(--sirius-gold-strong);
  font-size: 13px;
  font-weight: 540;
}

.employee-material-card strong i {
  font-style: normal;
  transition: transform 170ms ease;
}

.employee-material-card button:hover strong i {
  transform: translateX(3px);
}

.employee-test-list {
  display: grid;
  gap: 0;
  padding: 0 24px;
}

.employee-test-row {
  width: 100%;
  min-height: 86px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border: 0;
  border-top: 1px solid var(--sirius-soft-line);
  border-radius: 0;
  background: transparent;
  color: var(--sirius-text);
  text-align: left;
  box-shadow: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.employee-test-row:first-child {
  border-top: 0;
}

.employee-test-row:hover {
  color: var(--sirius-gold-strong);
  transform: translateX(2px);
}

.employee-test-row.is-passed {
  color: #356d46;
}

.sirius-test-date {
  min-height: 56px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 8px;
  background: #fbf6f0;
}

.sirius-test-date strong {
  font-size: 19px;
  font-weight: 560;
  line-height: 1;
}

.sirius-test-date small,
.sirius-test-copy small {
  color: var(--sirius-muted);
  font-size: 11px;
  line-height: 1.35;
}

.sirius-test-copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.sirius-test-copy strong {
  overflow: hidden;
  color: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-test-row i,
.employee-test-row em {
  color: var(--sirius-gold-strong);
  font-style: normal;
}

.employee-test-row i {
  font-size: 24px;
}

.employee-test-row em {
  padding: 7px 9px;
  border: 1px solid rgba(202, 176, 140, 0.34);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.72);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.employee-test-row.is-passed em {
  border-color: rgba(86, 163, 108, 0.28);
  background: rgba(246, 252, 248, 0.9);
  color: #356d46;
}

.sirius-test-empty-state {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 22px 0;
  border: 0;
  background: transparent;
  color: var(--sirius-muted);
}

.sirius-test-empty-state strong {
  color: var(--sirius-text);
  font-size: 15px;
}

.sirius-test-empty-state span {
  max-width: 34ch;
  font-size: 13px;
  line-height: 1.45;
}

.sirius-wide-button {
  width: calc(100% - 48px);
  margin: 22px 24px 24px;
  background: #fffdfb;
}

.sirius-recommend-panel {
  grid-column: 1 / 2;
}

.sirius-recommend-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 8px 18px 22px;
}

.employee-update-row {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 18px 14px 14px;
  border: 1px solid var(--sirius-soft-line);
  border-radius: 8px;
  background: #fffdfb;
  color: var(--sirius-text);
  text-align: left;
  box-shadow: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.employee-update-row:hover,
.employee-update-row:focus-visible {
  border-color: rgba(215, 154, 67, 0.28);
  box-shadow: 0 18px 34px rgba(66, 48, 27, 0.08);
  outline: none;
  transform: translateY(-2px);
}

.sirius-rec-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(251, 239, 217, 0.9);
  color: var(--sirius-gold);
}

.sirius-rec-icon .kb-icon {
  width: 21px;
  height: 21px;
}

.employee-update-row strong {
  color: #24211e;
  font-size: 14px;
  font-weight: 640;
  line-height: 1.3;
}

.employee-update-row small {
  color: var(--sirius-muted);
  font-size: 12px;
}

.employee-update-row em {
  align-self: end;
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid var(--sirius-soft-line);
  border-radius: 7px;
  background: #fffaf4;
  color: #2e2924;
  font-size: 13px;
  font-style: normal;
  text-align: center;
}

.sirius-compact-panel {
  grid-column: 1 / -1;
}

.sirius-compact-panel .employee-program-progress-grid,
.sirius-compact-panel .employee-achievement-grid,
.sirius-compact-panel .employee-future-grid {
  padding: 8px 24px 24px;
}

.sirius-page-grid {
  grid-template-columns: 1fr;
}

.sirius-page-hero,
.sirius-page-panel {
  grid-column: 1 / -1;
}

.sirius-page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 174px;
  padding: 34px 38px;
  border: 1px solid rgba(202, 176, 140, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at 86% 0%, rgba(217, 161, 78, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 252, 247, 0.98), rgba(250, 243, 232, 0.76));
  box-shadow: var(--sirius-shadow);
  animation: siriusFadeUp 420ms ease both;
}

.sirius-page-hero h3 {
  max-width: 720px;
  margin: 0;
  color: var(--sirius-text);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

.sirius-page-hero p:not(.employee-soft-label) {
  max-width: 680px;
  margin: 14px 0 0;
  color: #66615c;
  font-size: 16px;
  line-height: 1.65;
}

.sirius-page-panel {
  min-height: 280px;
  overflow: hidden;
}

.sirius-page-panel > .sirius-section-head {
  border-bottom: 1px solid var(--sirius-soft-line);
}

.sirius-section-head span {
  color: var(--sirius-muted);
  font-size: 13px;
  font-weight: 650;
}

.sirius-material-grid-full {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  padding-top: 24px;
}

.sirius-program-structure {
  display: grid;
  gap: 18px;
  padding: 18px 24px 26px;
}

.sirius-program-section-card {
  overflow: hidden;
  border: 1px solid rgba(218, 207, 192, 0.84);
  border-radius: 16px;
  background: rgba(255, 253, 250, 0.92);
  box-shadow: 0 18px 42px rgba(48, 37, 23, 0.045);
  animation: employeeFadeUp 520ms ease both;
  animation-delay: var(--employee-delay, 0ms);
}

.sirius-program-section-main {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) auto auto auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
}

.sirius-program-section-card.no-cover .sirius-program-section-main {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.sirius-program-section-cover {
  width: 160px;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sirius-gold-strong);
  box-shadow: none;
}

.sirius-program-section-cover.has-image img {
  width: auto;
  max-width: 160px;
  max-height: 116px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  clip-path: inset(0 round 14px);
}

.sirius-continue-cover.has-image,
.sirius-mobile-resume-cover.has-image {
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.sirius-continue-cover.has-image img,
.sirius-mobile-resume-cover.has-image img {
  position: static;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  clip-path: inset(0 round 12px);
}

.sirius-program-section-cover .kb-icon {
  width: 34px;
  height: 34px;
}

.sirius-program-section-copy {
  min-width: 0;
}

.sirius-program-section-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  color: var(--sirius-muted);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sirius-program-section-meta em {
  color: var(--sirius-gold-strong);
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
}

.sirius-program-section-title {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--sirius-text);
  font-size: 26px;
  font-weight: 760;
  line-height: 1.12;
  text-align: left;
}

.sirius-program-section-title:hover,
.sirius-program-section-title:focus-visible {
  color: var(--sirius-gold-strong);
  outline: none;
}

.sirius-program-section-copy p {
  max-width: 780px;
  margin: 10px 0 0;
  color: var(--sirius-muted);
  font-size: 15px;
  line-height: 1.55;
}

.sirius-program-section-progress {
  display: grid;
  grid-template-columns: minmax(160px, 0.52fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.sirius-program-section-progress > span {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee8df;
}

.sirius-program-section-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--sirius-gold), #c18d42);
}

.sirius-program-section-progress strong {
  color: var(--sirius-text);
  font-size: 14px;
}

.sirius-program-section-progress small {
  color: var(--sirius-muted);
  font-size: 13px;
}

.sirius-program-section-action {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(191, 139, 64, 0.3);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--sirius-gold), var(--sirius-gold-strong));
  color: #fff;
  font-size: 14px;
  font-weight: 760;
  white-space: nowrap;
  box-shadow: 0 16px 28px rgba(160, 111, 47, 0.18);
  transition:
    transform 170ms ease,
    box-shadow 170ms ease;
}

.sirius-program-section-action:hover,
.sirius-program-section-action:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(160, 111, 47, 0.24);
}

.sirius-program-lessons {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px 198px;
}

.sirius-program-lesson-shell {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-left: calc(var(--lesson-depth, 0) * 18px);
}

.sirius-editor-row-shell {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.sirius-program-lesson-group {
  display: grid;
  gap: 8px;
}

.sirius-program-lesson-row {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(218, 207, 192, 0.62);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--sirius-text);
  text-align: left;
  transition:
    background 170ms ease,
    border-color 170ms ease,
    transform 170ms ease;
}

.sirius-program-lesson-row:hover,
.sirius-program-lesson-row:focus-visible {
  border-color: rgba(191, 139, 64, 0.34);
  background: #fffdf9;
  outline: none;
  transform: translateY(-1px);
}

.sirius-program-lesson-row strong {
  display: block;
  color: var(--sirius-text);
  font-size: 15px;
  font-weight: 730;
  line-height: 1.3;
}

.sirius-program-lesson-row small {
  display: block;
  margin-top: 3px;
  color: var(--sirius-muted);
  font-size: 12px;
}

.sirius-program-lesson-row em {
  color: var(--sirius-gold-strong);
  font-size: 12px;
  font-style: normal;
  font-weight: 740;
}

.sirius-program-tree-toggle,
.employee-chapter-tree-toggle {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(191, 139, 64, 0.18);
  border-radius: 10px;
  background: rgba(255, 253, 250, 0.86);
  color: var(--sirius-gold-strong);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.sirius-program-tree-toggle .kb-icon,
.employee-chapter-tree-toggle .kb-icon {
  width: 17px;
  height: 17px;
  transition: transform 160ms ease;
}

.sirius-program-tree-toggle.is-expanded .kb-icon,
.employee-chapter-tree-toggle.is-expanded .kb-icon {
  transform: rotate(90deg);
}

.sirius-program-tree-toggle:hover,
.sirius-program-tree-toggle:focus-visible,
.employee-chapter-tree-toggle:hover,
.employee-chapter-tree-toggle:focus-visible {
  border-color: rgba(191, 139, 64, 0.36);
  background: #fff;
  box-shadow: 0 10px 20px rgba(160, 111, 47, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.sirius-program-tree-toggle.is-placeholder,
.employee-chapter-tree-toggle.is-placeholder {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.sirius-inline-editor-button,
.sirius-inline-editor-actions button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(191, 139, 64, 0.24);
  border-radius: 10px;
  background: rgba(255, 253, 250, 0.92);
  color: var(--sirius-gold-strong);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  white-space: nowrap;
  transition:
    background 170ms ease,
    border-color 170ms ease,
    transform 170ms ease,
    box-shadow 170ms ease;
}

.sirius-inline-editor-button {
  padding: 0 14px;
}

.sirius-inline-editor-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.sirius-inline-editor-actions.is-compact {
  gap: 6px;
}

.sirius-inline-editor-actions button {
  min-width: 38px;
  padding: 0 10px;
}

.sirius-inline-editor-actions.is-compact button span {
  display: none;
}

.sirius-inline-editor-button .kb-icon,
.sirius-inline-editor-actions .kb-icon {
  width: 16px;
  height: 16px;
}

.sirius-inline-editor-button:hover,
.sirius-inline-editor-button:focus-visible,
.sirius-inline-editor-actions button:hover,
.sirius-inline-editor-actions button:focus-visible {
  border-color: rgba(191, 139, 64, 0.42);
  background: #fff;
  box-shadow: 0 12px 24px rgba(160, 111, 47, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.sirius-department-materials {
  border-style: dashed;
}

.employee-empty.is-compact {
  padding: 16px;
  font-size: 14px;
}

.sirius-preview-editor-note {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 18px 0 0;
  padding: 14px 18px;
  border: 1px solid rgba(200, 145, 67, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.94), rgba(255, 255, 255, 0.86));
  box-shadow: 0 16px 34px rgba(48, 37, 23, 0.05);
}

.sirius-preview-editor-note strong {
  display: block;
  color: var(--sirius-text);
  font-size: 15px;
}

.sirius-preview-editor-note p {
  margin: 4px 0 0;
  color: var(--sirius-muted);
  font-size: 13px;
  line-height: 1.45;
}

.sirius-preview-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.sirius-test-page-list {
  padding: 10px 24px 26px;
}

.sirius-page-search {
  width: calc(100% - 48px);
  min-height: 58px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin: 24px;
  padding: 0 18px;
  border: 1px solid var(--sirius-soft-line);
  border-radius: 12px;
  background: rgba(255, 253, 250, 0.96);
  color: var(--sirius-muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.sirius-page-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--sirius-text);
  font: inherit;
  font-size: 17px;
}

.sirius-library-list {
  display: grid;
  gap: 10px;
  padding: 0 24px 26px;
}

.sirius-library-row {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 18px 15px calc(18px + var(--library-depth, 0) * 18px);
  border: 1px solid rgba(218, 207, 192, 0.84);
  border-radius: 12px;
  background: rgba(255, 253, 250, 0.86);
  color: var(--sirius-text);
  text-align: left;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    border-color 170ms ease,
    background 170ms ease;
}

.sirius-library-row:hover,
.sirius-library-row:focus-visible {
  border-color: rgba(191, 139, 64, 0.34);
  background: #fffdf9;
  box-shadow: 0 18px 30px rgba(66, 48, 27, 0.08);
  outline: none;
  transform: translateY(-2px);
}

.sirius-library-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d8d1c7;
}

.sirius-library-dot.is-complete {
  background: var(--sirius-gold);
  box-shadow: 0 0 0 5px rgba(215, 154, 67, 0.12);
}

.sirius-library-row strong {
  display: block;
  color: var(--sirius-text);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.25;
}

.sirius-library-row small {
  display: block;
  margin-top: 5px;
  color: var(--sirius-muted);
  font-size: 13px;
  line-height: 1.4;
}

.sirius-library-row em {
  color: var(--sirius-gold-strong);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.sirius-admin-material-editor.is-integrated {
  padding: 0;
}

.sirius-admin-material-editor.is-integrated .sirius-admin-material-editor-head {
  border-radius: 16px;
}

.sirius-admin-material-editor.is-integrated .sirius-admin-material-form {
  grid-template-columns: minmax(0, 1.2fr) minmax(210px, 0.8fr) minmax(170px, 0.7fr);
}

.sirius-achievement-page-grid {
  padding: 24px;
}

.employee-awards-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid var(--sirius-soft-line);
}

.employee-awards-level-card,
.employee-awards-stats article,
.employee-awards-milestones {
  border: 1px solid rgba(218, 207, 192, 0.78);
  border-radius: 18px;
  background:
    radial-gradient(circle at 88% 0%, rgba(215, 154, 67, 0.13), transparent 34%),
    linear-gradient(135deg, rgba(255, 253, 249, 0.98), rgba(250, 244, 234, 0.7));
  box-shadow: 0 22px 54px rgba(66, 48, 27, 0.075);
}

.employee-awards-level-card {
  min-height: 238px;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 30px;
  overflow: hidden;
}

.employee-awards-emblem {
  position: relative;
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fffaf0 0 18%, #efd39f 19% 48%, #b7843d 49% 72%, #7d5728 73% 100%);
  box-shadow:
    0 28px 54px rgba(139, 96, 42, 0.25),
    inset 0 0 0 7px rgba(255, 255, 255, 0.35),
    inset 0 0 0 1px rgba(83, 59, 28, 0.18);
}

.employee-awards-emblem::before,
.employee-awards-emblem::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.employee-awards-emblem::before {
  inset: 15px;
  border: 1px solid rgba(255, 255, 255, 0.48);
}

.employee-awards-emblem::after {
  inset: -10px;
  border: 1px solid rgba(183, 132, 61, 0.16);
}

.employee-awards-emblem span {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 251, 242, 0.2);
}

.employee-awards-emblem .kb-icon {
  width: 44px;
  height: 44px;
  color: #fffaf2;
  filter: drop-shadow(0 3px 6px rgba(69, 48, 23, 0.28));
}

.employee-awards-level-copy h3 {
  margin: 4px 0 8px;
  color: var(--sirius-text);
  font-family: "Georgia", "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: 0;
}

.employee-awards-level-copy p:not(.employee-soft-label) {
  margin: 0;
  color: var(--sirius-muted);
  font-size: 15px;
}

.employee-awards-xp,
.employee-awards-milestone i,
.employee-achievement-card-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eee8de;
}

.employee-awards-xp {
  max-width: 520px;
  margin-top: 22px;
}

.employee-awards-xp i,
.employee-awards-milestone i b,
.employee-achievement-card-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d9a14d 0%, #b67b2e 54%, #8d632d 100%);
  animation: siriusProgress 620ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.employee-awards-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.employee-awards-stats article {
  min-height: 128px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
}

.employee-awards-stats span,
.employee-awards-milestone span,
.employee-achievement-meta span {
  color: #8d857c;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.employee-awards-stats strong {
  color: var(--sirius-text);
  font-size: 32px;
  font-weight: 620;
  line-height: 1;
}

.employee-awards-stats small {
  color: var(--sirius-muted);
  font-size: 13px;
  line-height: 1.35;
}

.employee-awards-milestones {
  display: grid;
  gap: 18px;
  margin: 0 24px 24px;
  padding: 24px;
  background:
    radial-gradient(circle at 6% 0%, rgba(215, 154, 67, 0.1), transparent 32%),
    #fffdf9;
}

.employee-awards-milestones-head h4 {
  margin: 4px 0 0;
  color: var(--sirius-text);
  font-size: 24px;
  line-height: 1.15;
}

.employee-awards-milestone-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.employee-awards-milestone {
  min-width: 0;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(222, 212, 198, 0.78);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.employee-awards-mini-medal {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fffaf0 0 22%, #e7c48b 23% 56%, #b28546 57% 100%);
  color: #fffaf2;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.52),
    0 14px 24px rgba(178, 133, 70, 0.16);
}

.employee-awards-mini-medal .kb-icon {
  width: 24px;
  height: 24px;
}

.employee-awards-milestone strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--sirius-text);
  font-size: 16px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-awards-milestone small {
  display: block;
  margin: 5px 0 10px;
  color: var(--sirius-muted);
  font-size: 13px;
  line-height: 1.35;
}

.employee-awards-milestone em {
  color: var(--sirius-gold-strong);
  font-size: 13px;
  font-style: normal;
  font-weight: 780;
}

.employee-achievement-head {
  min-height: 84px;
  border-top: 1px solid var(--sirius-soft-line);
}

.employee-achievement-head h4 {
  margin: 0;
}

.employee-achievement-head p {
  margin: 6px 0 0;
  color: var(--sirius-muted);
  font-size: 13px;
}

.employee-achievements-section .employee-gamification-overview {
  display: none;
}

.sirius-achievement-page-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 24px;
}

.sirius-achievement-page-grid .employee-achievement-card {
  position: relative;
  min-height: 262px;
  grid-template-columns: 1fr;
  gap: 18px;
  overflow: hidden;
  padding: 22px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(215, 154, 67, 0.12), transparent 40%),
    linear-gradient(180deg, #fffdf9 0%, #fffaf4 100%);
  box-shadow: 0 18px 44px rgba(66, 48, 27, 0.065);
}

.sirius-achievement-page-grid .employee-achievement-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.34), transparent 42%);
}

.sirius-achievement-page-grid .employee-achievement-card.unlocked {
  border-color: rgba(185, 130, 54, 0.32);
}

.sirius-achievement-page-grid .employee-achievement-card.locked {
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 245, 240, 0.88)),
    #f7f4ee;
}

.sirius-achievement-page-grid .employee-achievement-card.locked::before {
  background: repeating-linear-gradient(135deg, rgba(126, 118, 106, 0.035) 0 10px, transparent 10px 22px);
}

.sirius-achievement-page-grid .employee-achievement-medal {
  width: 78px;
  height: 78px;
  border-radius: 24px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.58),
    0 18px 32px rgba(178, 133, 70, 0.2);
}

.sirius-achievement-page-grid .employee-achievement-card.locked .employee-achievement-medal {
  background:
    radial-gradient(circle at 34% 25%, #ffffff 0 20%, #e6e0d7 21% 56%, #b7afa3 57% 100%);
  box-shadow: inset 0 0 0 1px rgba(207, 199, 186, 0.68);
}

.sirius-achievement-page-grid .employee-achievement-medal .kb-icon {
  width: 34px;
  height: 34px;
}

.employee-achievement-card-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.employee-achievement-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.employee-achievement-meta em {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(178, 133, 70, 0.18);
  border-radius: 999px;
  background: rgba(255, 250, 242, 0.78);
  color: var(--sirius-gold-strong);
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.sirius-achievement-page-grid .employee-achievement-card h5 {
  margin: 0;
  color: var(--sirius-text);
  font-size: 20px;
  line-height: 1.18;
}

.sirius-achievement-page-grid .employee-achievement-card p {
  min-height: 42px;
  margin: 0;
  color: var(--sirius-muted);
  font-size: 14px;
  line-height: 1.52;
}

.employee-achievement-card-progress {
  margin-top: 2px;
}

.employee-achievement-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.employee-achievement-card footer time,
.employee-achievement-card footer small {
  color: var(--sirius-muted);
  font-size: 12px;
  line-height: 1.3;
}

.employee-achievement-card footer small {
  color: var(--sirius-gold-strong);
  font-weight: 760;
}

.premium-award-artifact {
  --award-aura-1: rgba(255, 238, 185, 0.95);
  --award-aura-2: rgba(199, 127, 35, 0.44);
  --award-metal-1: #fff8e8;
  --award-metal-2: #f2cf8b;
  --award-metal-3: #c98b34;
  --award-metal-4: #80501f;
  --award-edge-1: #fff6dd;
  --award-edge-2: #9d6426;
  --award-enamel-1: #fff4db;
  --award-enamel-2: #d69a45;
  --award-ring: rgba(255, 250, 231, 0.88);
  --award-glyph: #fffaf2;
  --award-shine: rgba(255, 255, 255, 0.82);
  --award-spark: #f4c56b;
  --award-floor: #8b642f;
  --award-shadow: #8e602a;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  transform-style: preserve-3d;
}

.premium-award-hero {
  width: 154px;
  height: 154px;
}

.premium-award-card {
  width: 104px;
  height: 104px;
}

.premium-award-mini {
  width: 64px;
  height: 64px;
}

.premium-award-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.novice-award-artifact {
  --novice-aura-1: rgba(255, 246, 220, 0.98);
  --novice-aura-2: rgba(191, 133, 61, 0.46);
  --novice-metal-1: #fffaf0;
  --novice-metal-2: #f3d99d;
  --novice-metal-3: #bb8034;
  --novice-metal-4: #352a22;
  --novice-enamel-1: #fff8e8;
  --novice-enamel-2: #d49a45;
  --novice-ink-1: #2e2924;
  --novice-ink-2: #89612e;
  --novice-ring: rgba(255, 250, 232, 0.92);
  --novice-compass: #fffaf0;
  --novice-center: #2f261f;
  --novice-shine: rgba(255, 255, 255, 0.86);
  --novice-spark: #ffe2a5;
  --novice-floor: #7f5623;
  --novice-shadow: #5c3b18;
}

.novice-award-artifact.is-locked {
  --novice-aura-1: rgba(24, 24, 27, 0.58);
  --novice-aura-2: rgba(0, 0, 0, 0);
  --novice-metal-1: #3b3b40;
  --novice-metal-2: #191a1f;
  --novice-metal-3: #08090c;
  --novice-metal-4: #020203;
  --novice-enamel-1: #1d1e22;
  --novice-enamel-2: #050506;
  --novice-ink-1: #292a2f;
  --novice-ink-2: #050506;
  --novice-ring: rgba(101, 101, 108, 0.36);
  --novice-compass: #3e3f45;
  --novice-center: #0b0c0f;
  --novice-shine: rgba(255, 255, 255, 0.22);
  --novice-spark: rgba(255, 255, 255, 0);
  --novice-floor: #000;
  --novice-shadow: #000;
}

.novice-award-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.novice-award-artifact.is-unlocked .novice-award-object {
  transform-origin: 90px 88px;
  animation: noviceAwardFloat 5.2s ease-in-out infinite;
}

.novice-award-artifact.is-unlocked .novice-aura {
  transform-origin: 90px 82px;
  animation: noviceAwardAura 4.2s ease-in-out infinite;
}

.novice-award-artifact.is-unlocked .novice-compass {
  transform-origin: 90px 79px;
  animation: noviceAwardCompass 6.6s ease-in-out infinite;
}

.novice-award-artifact.is-unlocked .novice-spark {
  transform-origin: center;
  animation: noviceAwardSpark 2.8s ease-in-out infinite;
}

.novice-award-artifact.is-unlocked .novice-shine {
  animation: noviceAwardShine 4.6s ease-in-out infinite;
}

.novice-award-artifact.is-locked .novice-award-object {
  transform: translateY(3px) scale(0.965);
}

.novice-award-artifact.is-locked .novice-aura,
.novice-award-artifact.is-locked .novice-spark {
  opacity: 0;
}

.novice-award-artifact.is-locked .novice-shine {
  opacity: 0.25;
}

.novice-award-artifact.is-locked .novice-compass {
  opacity: 0.68;
}

.premium-award-artifact.tier-premium {
  --award-aura-1: rgba(255, 244, 217, 0.98);
  --award-aura-2: rgba(116, 88, 46, 0.36);
  --award-metal-1: #fffaf0;
  --award-metal-2: #f4d89d;
  --award-metal-3: #c58c38;
  --award-metal-4: #3b2f26;
  --award-edge-1: #fff8e6;
  --award-edge-2: #5a4635;
  --award-enamel-1: #2f2a24;
  --award-enamel-2: #a87735;
  --award-spark: #ffe0a0;
  --award-shadow: #5a3a19;
}

.premium-award-artifact.tier-gold {
  --award-metal-2: #f7d890;
  --award-metal-3: #d89e3e;
  --award-metal-4: #8a571e;
  --award-enamel-1: #fff8e5;
  --award-enamel-2: #cc8b35;
}

.premium-award-artifact.tier-silver {
  --award-aura-1: rgba(255, 252, 244, 0.92);
  --award-aura-2: rgba(177, 165, 146, 0.3);
  --award-metal-1: #ffffff;
  --award-metal-2: #eee7d9;
  --award-metal-3: #c2b49e;
  --award-metal-4: #8f806b;
  --award-edge-1: #ffffff;
  --award-edge-2: #9f8f78;
  --award-enamel-1: #fffaf0;
  --award-enamel-2: #b98946;
  --award-shadow: #8c7d68;
}

.premium-award-artifact.tier-bronze {
  --award-metal-1: #fff1df;
  --award-metal-2: #d9a66d;
  --award-metal-3: #a86931;
  --award-metal-4: #70401d;
  --award-enamel-1: #fff3df;
  --award-enamel-2: #b77938;
}

.premium-award-artifact.is-locked {
  --award-aura-1: rgba(22, 22, 24, 0.7);
  --award-aura-2: rgba(0, 0, 0, 0);
  --award-metal-1: #3a3a3f;
  --award-metal-2: #17181c;
  --award-metal-3: #0b0c0f;
  --award-metal-4: #030304;
  --award-edge-1: #4b4c51;
  --award-edge-2: #07080a;
  --award-enamel-1: #1c1d21;
  --award-enamel-2: #050506;
  --award-ring: rgba(92, 93, 98, 0.34);
  --award-glyph: #4f5055;
  --award-shine: rgba(255, 255, 255, 0.22);
  --award-spark: rgba(255, 255, 255, 0);
  --award-floor: #000;
  --award-shadow: #000;
  filter: saturate(0.72) contrast(1.12);
}

.premium-award-artifact.is-unlocked .award-object {
  transform-origin: 80px 78px;
  animation: premiumAwardFloat 4.8s ease-in-out infinite;
}

.premium-award-artifact.is-unlocked .award-aura {
  animation: premiumAwardGlow 3.8s ease-in-out infinite;
}

.premium-award-artifact.is-unlocked .award-spark {
  transform-origin: center;
  animation: premiumAwardSpark 2.6s ease-in-out infinite;
}

.premium-award-artifact.is-unlocked .award-shine {
  animation: premiumAwardShine 4.4s ease-in-out infinite;
}

.premium-award-artifact.is-locked .award-spark,
.premium-award-artifact.is-locked .award-aura {
  opacity: 0;
}

.premium-award-artifact.is-locked .award-shine {
  opacity: 0.32;
}

.premium-award-artifact.is-locked .award-object {
  transform: translateY(3px) scale(0.97);
}

.sirius-achievement-page-grid .employee-achievement-card:hover .premium-award-artifact.is-unlocked .award-object,
.employee-awards-milestone:hover .premium-award-artifact.is-unlocked .award-object {
  animation-duration: 2.9s;
}

.employee-awards-emblem {
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
}

.employee-awards-emblem::before,
.employee-awards-emblem::after {
  display: none;
}

.employee-awards-emblem .premium-award-artifact {
  width: 154px;
  height: 154px;
  border-radius: 0;
  background: transparent;
  margin: -8px 0 -8px -8px;
}

.employee-awards-mini-medal {
  width: auto;
  height: auto;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.employee-awards-mini-medal .premium-award-mini {
  margin: -6px;
}

.sirius-achievement-page-grid .employee-achievement-medal {
  width: 108px;
  height: 108px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sirius-achievement-page-grid .employee-achievement-card.locked .employee-achievement-medal {
  background: transparent;
  box-shadow: none;
}

.sirius-achievement-page-grid .employee-achievement-medal .premium-award-card {
  margin: -8px 0 0 -8px;
}

@keyframes premiumAwardFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateZ(0deg);
  }
  50% {
    transform: translateY(-4px) rotateX(3deg) rotateZ(-1deg);
  }
}

@keyframes premiumAwardGlow {
  0%,
  100% {
    opacity: 0.64;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes premiumAwardSpark {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.14);
  }
}

@keyframes premiumAwardShine {
  0%,
  100% {
    opacity: 0.52;
    transform: translateX(0);
  }
  50% {
    opacity: 0.9;
    transform: translateX(4px);
  }
}

@keyframes noviceAwardFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0deg) rotateZ(0deg);
  }
  50% {
    transform: translateY(-4px) rotateX(2.5deg) rotateZ(-0.8deg);
  }
}

@keyframes noviceAwardAura {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.97);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes noviceAwardCompass {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.03) rotate(1.2deg);
  }
}

@keyframes noviceAwardSpark {
  0%,
  100% {
    opacity: 0.48;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes noviceAwardShine {
  0%,
  100% {
    opacity: 0.48;
    transform: translateX(0);
  }
  50% {
    opacity: 0.88;
    transform: translateX(5px);
  }
}

.sirius-profile-summary {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 26px 28px 8px;
}

.sirius-profile-avatar {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.sirius-profile-summary h4 {
  margin: 3px 0 4px;
  color: var(--sirius-text);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}

.sirius-profile-summary span {
  color: var(--sirius-muted);
  font-size: 15px;
}

.sirius-profile-progress-grid {
  padding: 24px 28px;
}

@keyframes siriusFadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes siriusProgress {
  from {
    transform: scaleX(0);
    transform-origin: left center;
  }
  to {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

@media (max-width: 1220px) {
  .sirius-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .sirius-materials-panel,
  .sirius-tests-panel,
  .sirius-recommend-panel,
  .sirius-compact-panel {
    grid-column: 1;
  }

  .sirius-material-grid,
  .sirius-recommend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .kb-body.kb-employee-mode .kb-app,
  .kb-body.kb-employee-mode.kb-nav-collapsed .kb-app {
    grid-template-columns: 1fr;
  }

  .kb-body.kb-employee-mode .kb-workspace {
    grid-column: 1;
  }

  .employee-reading-actions {
    max-width: calc(100vw - 48px);
  }

  .kb-body.kb-employee-mode .kb-mobile-topbar {
    border-color: var(--sirius-soft-line);
    background: rgba(255, 255, 255, 0.94);
  }

  .kb-body.kb-employee-mode .kb-nav-shell {
    position: fixed;
    z-index: 50;
    width: min(330px, calc(100vw - 38px));
    padding: 24px 14px;
    transform: translateX(-108%);
    box-shadow: 24px 0 58px rgba(66, 48, 27, 0.14);
  }

  .kb-body.kb-employee-mode .kb-nav-shell.is-open {
    transform: translateX(0);
  }

  .kb-body.kb-employee-mode .kb-nav-close {
    display: inline-flex;
    position: absolute;
    top: 18px;
    right: 14px;
    color: var(--sirius-gold-strong);
  }

  .sirius-dashboard {
    padding: 64px 18px 34px;
  }

  .sirius-topbar {
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
    min-height: auto;
    margin: 0 -18px;
    padding: 18px;
  }

  .sirius-topbar-role {
    display: none;
  }

  .sirius-userbar {
    justify-content: space-between;
  }

  .sirius-hero-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 180px auto;
  }

  .sirius-hero-copy {
    padding: 30px 24px 20px;
  }

  .sirius-hero-copy h3 {
    max-width: none;
    font-size: 32px;
  }

  .sirius-hero-art {
    min-height: 180px;
  }

  .sirius-compass {
    right: 42px;
    bottom: 22px;
    width: 138px;
    height: 138px;
  }

  .sirius-pen {
    right: 18px;
    bottom: 24px;
  }

  .sirius-progress-strip {
    grid-template-columns: 1fr;
  }

  .sirius-stat {
    border-top: 1px solid var(--sirius-soft-line);
    border-left: 0;
  }
}

@media (max-width: 720px) {
  .kb-body.kb-employee-mode {
    background: #fffdf9;
  }

  .kb-body.kb-employee-mode .kb-mobile-topbar {
    min-height: 82px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 14px;
    align-items: center;
    padding: 16px 24px 10px;
    border-bottom: 0;
    background: rgba(255, 253, 249, 0.94);
    backdrop-filter: blur(18px);
  }

  .kb-body.kb-employee-mode .kb-mobile-topbar #kb-mobile-menu-toggle {
    color: #8c6c45;
  }

  .kb-body.kb-employee-mode .kb-mobile-home {
    min-width: 0;
    justify-self: center;
  }

  .kb-body.kb-employee-mode .kb-mobile-logo {
    width: min(194px, 52vw);
    mix-blend-mode: multiply;
  }

  .kb-body.kb-employee-mode .sirius-topbar {
    display: none;
  }

  .kb-body.kb-employee-mode .sirius-dashboard {
    gap: 12px;
    padding: 92px 18px 34px;
    background:
      radial-gradient(circle at 88% 11%, rgba(215, 154, 67, 0.08), transparent 22%),
      #fffdf9;
  }

  .kb-body.kb-employee-mode .sirius-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .kb-body.kb-employee-mode .sirius-hero-card {
    position: relative;
    min-height: 430px;
    display: block;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background:
      linear-gradient(90deg, rgba(255, 253, 249, 0.98) 0 46%, rgba(255, 253, 249, 0.7) 62%, rgba(255, 253, 249, 0.1) 100%),
      url("/static/sirius-learning-hero.jpg?v=20260508") right top / auto 280px no-repeat;
    box-shadow: none;
  }

  .kb-body.kb-employee-mode .sirius-hero-copy {
    position: relative;
    z-index: 2;
    min-height: 396px;
    align-content: start;
    gap: 16px;
    padding: 20px 0 0;
  }

  .kb-body.kb-employee-mode .sirius-hero-copy h3 {
    max-width: 82%;
    font-size: clamp(30px, 7.8vw, 34px);
    line-height: 1.12;
  }

  .kb-body.kb-employee-mode .sirius-hero-copy p {
    max-width: 62%;
    color: #6e6b69;
    font-size: 18px;
    line-height: 1.38;
  }

  .kb-body.kb-employee-mode .sirius-hero-actions {
    width: min(100%, 255px);
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 8px;
  }

  .kb-body.kb-employee-mode .sirius-hero-actions .primary-button,
  .kb-body.kb-employee-mode .sirius-hero-actions .ghost-button {
    width: 100%;
    min-height: 58px;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
  }

  .kb-body.kb-employee-mode .sirius-hero-art {
    display: none;
  }

  .kb-body.kb-employee-mode .sirius-progress-strip,
  .kb-body.kb-employee-mode .sirius-continue-card {
    display: none;
  }

  .kb-body.kb-employee-mode .sirius-mobile-progress-card {
    display: grid;
    gap: 22px;
    padding: 24px 24px 20px;
    border-radius: 16px;
  }

  .kb-body.kb-employee-mode .sirius-mobile-progress-card h4,
  .kb-body.kb-employee-mode .sirius-mobile-section-title h4,
  .kb-body.kb-employee-mode .sirius-section-head h4 {
    margin: 0;
    font-size: 22px;
    font-weight: 560;
    line-height: 1.2;
  }

  .kb-body.kb-employee-mode .sirius-mobile-progress-main {
    display: grid;
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
  }

  .kb-body.kb-employee-mode .sirius-mobile-ring {
    width: 116px;
    height: 116px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
      radial-gradient(circle, #fff 0 56%, transparent 57%),
      conic-gradient(var(--sirius-gold) calc(var(--mobile-progress) * 1%), #f1ece5 0);
  }

  .kb-body.kb-employee-mode .sirius-mobile-ring span {
    color: #77706a;
    font-family: "Georgia", "Times New Roman", serif;
    font-size: 28px;
  }

  .kb-body.kb-employee-mode .sirius-mobile-progress-copy {
    min-width: 0;
    display: grid;
    gap: 8px;
  }

  .kb-body.kb-employee-mode .sirius-mobile-progress-copy strong {
    color: #101015;
    font-size: 32px;
    font-weight: 520;
    line-height: 1;
  }

  .kb-body.kb-employee-mode .sirius-mobile-progress-copy span {
    color: #77706a;
    font-size: 18px;
    line-height: 1.25;
  }

  .kb-body.kb-employee-mode .sirius-mobile-progress-line {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #efe9e1;
  }

  .kb-body.kb-employee-mode .sirius-mobile-progress-line i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #dca14c, #c88631);
    animation: siriusProgress 560ms cubic-bezier(0.2, 0.9, 0.2, 1) both;
  }

  .kb-body.kb-employee-mode .sirius-mobile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-top: 18px;
    border-top: 1px solid var(--sirius-soft-line);
  }

  .kb-body.kb-employee-mode .sirius-mobile-stats div {
    min-width: 0;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 3px 8px;
    align-items: center;
    padding: 0 8px;
    border-left: 1px solid var(--sirius-soft-line);
  }

  .kb-body.kb-employee-mode .sirius-mobile-stats div:first-child {
    border-left: 0;
    padding-left: 0;
  }

  .kb-body.kb-employee-mode .sirius-mobile-stats .kb-icon {
    grid-row: span 2;
    width: 26px;
    height: 26px;
    align-self: center;
    color: var(--sirius-gold);
  }

  .kb-body.kb-employee-mode .sirius-mobile-stats strong {
    color: #111016;
    font-size: 24px;
    font-weight: 520;
    line-height: 1;
  }

  .kb-body.kb-employee-mode .sirius-mobile-stats span {
    min-width: 0;
    color: #77706a;
    font-size: 12px;
    line-height: 1.18;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .kb-body.kb-employee-mode .sirius-mobile-resume-card {
    display: grid;
    gap: 18px;
    padding: 22px 22px 20px;
    border-radius: 16px;
  }

  .kb-body.kb-employee-mode .sirius-mobile-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .kb-body.kb-employee-mode .sirius-mobile-section-title button {
    border: 0;
    background: transparent;
    color: var(--sirius-gold-strong);
    font-size: 15px;
  }

  .kb-body.kb-employee-mode .sirius-mobile-resume-body {
    display: grid;
    grid-template-columns: minmax(112px, 38%) minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
  }

  .kb-body.kb-employee-mode .sirius-mobile-resume-cover {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
  }

  .kb-body.kb-employee-mode .sirius-mobile-resume-cover.has-image {
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 0;
  }

  .kb-body.kb-employee-mode .sirius-mobile-resume-cover span {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--sirius-gold-strong);
  }

  .kb-body.kb-employee-mode .sirius-mobile-resume-cover .kb-icon {
    width: 17px;
    height: 17px;
  }

  .kb-body.kb-employee-mode .sirius-mobile-resume-body strong {
    display: block;
    margin-bottom: 22px;
    color: #111016;
    font-size: 17px;
    font-weight: 540;
    line-height: 1.45;
  }

  .kb-body.kb-employee-mode .sirius-mobile-resume-percent {
    color: #111016;
    font-size: 18px;
    white-space: nowrap;
  }

  @media (max-width: 430px) {
    .kb-body.kb-employee-mode .sirius-mobile-stats div {
      grid-template-columns: 1fr;
      justify-items: center;
      gap: 7px;
      padding: 0 6px;
      text-align: center;
    }

    .kb-body.kb-employee-mode .sirius-mobile-stats .kb-icon {
      grid-row: auto;
      width: 24px;
      height: 24px;
    }

    .kb-body.kb-employee-mode .sirius-mobile-stats strong {
      font-size: 23px;
    }
  }

  .kb-body.kb-employee-mode .sirius-panel {
    border-radius: 16px;
    box-shadow: 0 18px 38px rgba(66, 48, 27, 0.06);
  }

  .kb-body.kb-employee-mode .sirius-section-head {
    min-height: 68px;
    padding: 0 22px;
  }

  .kb-body.kb-employee-mode .sirius-section-head button {
    font-size: 15px;
  }

  .kb-body.kb-employee-mode .sirius-materials-panel,
  .kb-body.kb-employee-mode .sirius-tests-panel,
  .kb-body.kb-employee-mode .sirius-recommend-panel,
  .kb-body.kb-employee-mode .sirius-compact-panel {
    grid-column: 1;
  }

  .kb-body.kb-employee-mode .sirius-materials-panel {
    overflow: hidden;
  }

  .kb-body.kb-employee-mode .sirius-material-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 78%);
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    padding: 0 22px 22px;
  }

  .kb-body.kb-employee-mode .sirius-page-grid {
    gap: 16px;
  }

  .kb-body.kb-employee-mode .sirius-page-hero {
    min-height: auto;
    padding: 24px 22px;
    border-radius: 16px;
  }

  .kb-body.kb-employee-mode .sirius-page-hero h3 {
    font-size: 34px;
  }

  .kb-body.kb-employee-mode .sirius-page-hero p:not(.employee-soft-label) {
    font-size: 15px;
    line-height: 1.55;
  }

  .kb-body.kb-employee-mode [data-employee-page="materials"] .sirius-material-grid,
  .kb-body.kb-employee-mode [data-employee-page="library"] .sirius-material-grid,
  .kb-body.kb-employee-mode [data-employee-page="favorites"] .sirius-material-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: 1fr;
    overflow: visible;
    scroll-snap-type: none;
  }

  .kb-body.kb-employee-mode .sirius-program-structure {
    gap: 14px;
    padding: 14px 16px 18px;
  }

  .kb-body.kb-employee-mode .sirius-program-section-card {
    border-radius: 14px;
  }

  .kb-body.kb-employee-mode .sirius-program-section-main {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
  }

  .kb-body.kb-employee-mode .sirius-program-section-cover {
    width: min(100%, 240px);
    aspect-ratio: auto;
    justify-self: start;
  }

  .kb-body.kb-employee-mode .sirius-program-section-title {
    font-size: 23px;
  }

  .kb-body.kb-employee-mode .sirius-program-section-progress {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .kb-body.kb-employee-mode .sirius-program-section-progress small {
    grid-column: 1 / -1;
  }

  .kb-body.kb-employee-mode .sirius-program-section-action {
    width: 100%;
  }

  .kb-body.kb-employee-mode .sirius-program-lessons {
    padding: 0 14px 14px;
  }

  .kb-body.kb-employee-mode .sirius-program-lesson-shell {
    grid-template-columns: 34px minmax(0, 1fr);
    margin-left: calc(var(--lesson-depth, 0) * 10px);
  }

  .kb-body.kb-employee-mode .sirius-program-lesson-row {
    grid-template-columns: 10px minmax(0, 1fr);
  }

  .kb-body.kb-employee-mode .sirius-program-lesson-row em {
    grid-column: 2;
    justify-self: start;
  }

  .kb-body.kb-employee-mode .sirius-preview-editor-note {
    grid-template-columns: 40px minmax(0, 1fr);
    margin: 14px 16px 0;
    padding: 14px;
  }

  .kb-body.kb-employee-mode .sirius-preview-editor-actions {
    grid-column: 1 / -1;
    width: 100%;
  }

  .kb-body.kb-employee-mode .sirius-preview-editor-note .sirius-admin-secondary {
    flex: 1 1 180px;
  }

  .kb-body.kb-employee-mode .sirius-page-search {
    width: calc(100% - 32px);
    min-height: 56px;
    margin: 16px;
  }

  .kb-body.kb-employee-mode .sirius-library-list {
    padding: 0 16px 18px;
  }

  .kb-body.kb-employee-mode .sirius-library-row {
    grid-template-columns: 12px minmax(0, 1fr);
    padding: 14px 15px;
  }

  .kb-body.kb-employee-mode .sirius-library-row em {
    grid-column: 2;
    justify-self: start;
  }

  .kb-body.kb-employee-mode .sirius-material-grid::-webkit-scrollbar,
  .kb-body.kb-employee-mode .sirius-recommend-grid::-webkit-scrollbar {
    display: none;
  }

  .kb-body.kb-employee-mode .employee-material-card {
    scroll-snap-align: start;
  }

  .kb-body.kb-employee-mode .employee-material-card button {
    min-height: 274px;
    grid-template-rows: auto auto auto auto;
    border-radius: 10px;
  }

  .kb-body.kb-employee-mode .sirius-material-cover {
    height: auto;
  }

  .kb-body.kb-employee-mode .employee-status {
    min-height: 34px;
    padding: 0 13px;
    border-radius: 7px;
    font-size: 14px;
  }

  .kb-body.kb-employee-mode .employee-material-card h5 {
    min-height: 48px;
    padding: 0 18px;
    font-size: 18px;
    font-weight: 540;
  }

  .kb-body.kb-employee-mode .employee-card-progress-row,
  .kb-body.kb-employee-mode .employee-material-card strong {
    padding-right: 18px;
    padding-left: 18px;
  }

  .kb-body.kb-employee-mode .employee-card-progress {
    height: 7px;
  }

  .kb-body.kb-employee-mode .employee-card-progress-row small {
    color: #111016;
    font-size: 16px;
  }

  .kb-body.kb-employee-mode .employee-material-card strong {
    font-size: 15px;
  }

  .kb-body.kb-employee-mode .employee-test-list {
    padding: 0 22px;
  }

  .kb-body.kb-employee-mode .employee-test-row {
    min-height: 92px;
    grid-template-columns: 64px minmax(0, 1fr) 18px;
  }

  .kb-body.kb-employee-mode .sirius-test-date {
    min-height: 64px;
  }

  .kb-body.kb-employee-mode .sirius-test-date strong {
    font-size: 24px;
  }

  .kb-body.kb-employee-mode .sirius-test-copy strong {
    font-size: 17px;
    font-weight: 520;
  }

  .kb-body.kb-employee-mode .sirius-test-copy small {
    font-size: 14px;
  }

  .employee-reading-nav {
    position: static;
    top: auto;
    z-index: auto;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 18px;
    border-bottom-color: rgba(230, 223, 212, 0.72);
    background: rgba(255, 253, 249, 0.96);
    backdrop-filter: none;
  }

  .employee-reading-nav span {
    white-space: normal;
  }

  .employee-reading-head {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 30px 20px 24px;
    overflow: visible;
  }

  .employee-reading-card,
  .employee-reading-head-copy {
    overflow: visible;
  }

  .employee-reading-head h3 {
    font-size: 34px;
    line-height: 1.12;
    padding-top: 2px;
  }

  .employee-reading-meta {
    justify-content: flex-start;
    max-width: none;
  }

  .employee-lesson-body {
    width: 100%;
    padding: 28px 20px 38px;
  }

  .employee-reading-actions {
    position: static;
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
    margin: 0;
    padding: 0 20px 28px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .employee-reading-actions .primary-button,
  .employee-reading-actions .ghost-button {
    width: 100%;
  }

  .employee-chapter-home {
    gap: 14px;
    padding: 18px 16px 36px;
  }

  .employee-chapter-overview {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
    border-radius: 12px;
  }

  .employee-chapter-copy h3 {
    max-width: none;
    font-size: 38px;
    line-height: 1.04;
  }

  .employee-chapter-description p,
  .employee-chapter-description li {
    font-size: 16px;
    line-height: 1.62;
  }

  .employee-chapter-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .employee-chapter-actions .primary-button,
  .employee-chapter-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .employee-chapter-summary {
    grid-template-columns: 1fr;
  }

  .employee-chapter-panel-head {
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 18px 14px;
  }

  .employee-chapter-panel-head h4 {
    font-size: 24px;
  }

  .employee-chapter-tree,
  .employee-chapter-test-list {
    padding: 14px 16px 18px;
  }

  .employee-chapter-tree-shell {
    grid-template-columns: 34px minmax(0, 1fr);
    margin-left: calc(var(--chapter-depth, 0) * 14px);
  }

  .employee-chapter-tree-row {
    grid-template-columns: 16px minmax(0, 1fr);
  }

  .employee-chapter-tree-row em {
    display: none;
  }

  .employee-chapter-test-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .employee-chapter-test-card em {
    grid-column: 2;
    justify-self: start;
  }

}

@media (max-width: 620px) {
  .sirius-dashboard {
    padding-right: 14px;
    padding-left: 14px;
  }

  .sirius-topbar {
    margin-right: -14px;
    margin-left: -14px;
  }

  .sirius-userbar {
    gap: 10px;
  }

  .sirius-user-text {
    min-width: 0;
  }

  .sirius-user-text strong,
  .sirius-user-text span {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sirius-material-grid,
  .sirius-recommend-grid {
    grid-template-columns: 1fr;
  }

  .sirius-continue-body {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .sirius-section-head {
    padding: 0 18px;
  }

  .sirius-material-grid,
  .sirius-recommend-grid,
  .employee-test-list {
    padding-right: 18px;
    padding-left: 18px;
  }

  .sirius-wide-button {
    width: calc(100% - 36px);
    margin-right: 18px;
    margin-left: 18px;
  }

  .kb-body.kb-employee-mode .sirius-material-grid {
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 78%);
    grid-template-columns: none;
    padding-right: 22px;
    padding-left: 22px;
  }

  .kb-body.kb-employee-mode .sirius-recommend-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .employee-awards-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .employee-awards-level-card {
    min-height: auto;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    border-radius: 16px;
  }

  .employee-awards-emblem {
    width: 92px;
    height: 92px;
  }

  .employee-awards-emblem span {
    width: 52px;
    height: 52px;
  }

  .employee-awards-emblem .kb-icon {
    width: 32px;
    height: 32px;
  }

  .employee-awards-emblem .premium-award-artifact {
    width: 106px;
    height: 106px;
    margin: -8px 0 -8px -8px;
  }

  .employee-awards-level-copy h3 {
    font-size: 32px;
  }

  .employee-awards-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .employee-awards-stats article {
    min-height: 104px;
    padding: 16px 14px;
  }

  .employee-awards-stats strong {
    font-size: 25px;
  }

  .employee-awards-milestones {
    margin: 0 18px 18px;
    padding: 18px;
    border-radius: 16px;
  }

  .employee-awards-milestone-grid {
    grid-template-columns: 1fr;
  }

  .sirius-achievement-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 18px;
  }
}

@media (max-width: 620px) {
  .employee-awards-hero {
    padding: 16px;
  }

  .employee-awards-level-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .employee-awards-stats {
    grid-template-columns: 1fr;
  }

  .employee-awards-stats article {
    min-height: 88px;
  }

  .employee-awards-milestone {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .employee-awards-milestone em {
    grid-column: 2;
    justify-self: start;
  }

  .employee-awards-mini-medal {
    width: 46px;
    height: 46px;
  }

  .sirius-achievement-page-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .sirius-achievement-page-grid .employee-achievement-card {
    min-height: 238px;
    padding: 18px;
  }

  .sirius-achievement-page-grid .employee-achievement-medal {
    width: 68px;
    height: 68px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sirius-panel,
  .sirius-hero-card,
  .sirius-progress-line i,
  .sirius-mini-progress span,
  .employee-card-progress span {
    animation: none !important;
  }
}

/* Premium admin console */
.kb-admin-menu {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.kb-admin-menu-item {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #4e4b47;
  background: transparent;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  transition:
    transform 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.kb-admin-menu-item .kb-icon {
  width: 20px;
  height: 20px;
  color: #8f806e;
}

.kb-admin-menu-item:hover,
.kb-admin-menu-item:focus-visible {
  transform: translateY(-1px);
  color: var(--kb-accent-strong);
  border-color: rgba(178, 133, 70, 0.22);
  background: rgba(244, 234, 219, 0.62);
  box-shadow: 0 12px 28px rgba(101, 74, 38, 0.08);
}

.kb-admin-menu-item.is-active {
  color: #fff;
  border-color: rgba(178, 133, 70, 0.32);
  background: linear-gradient(135deg, #d8a154 0%, #a57939 100%);
  box-shadow: 0 16px 34px rgba(128, 87, 36, 0.2);
}

.kb-admin-menu-item.is-active .kb-icon {
  color: #fff;
}

.kb-body.kb-admin-console-mode .kb-chapter-nav-panel,
.kb-body.kb-admin-console-mode .kb-role-panel {
  display: none;
}

.kb-body.kb-admin-console-mode .kb-workspace {
  grid-column: 2;
  padding: 30px clamp(28px, 4vw, 58px) 54px;
}

.kb-body.kb-admin-console-mode .kb-workspace-head {
  display: none;
}

.kb-body.kb-admin-console-mode .kb-workspace-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding-top: 0;
}

.kb-body.kb-admin-console-mode .kb-article-surface {
  min-height: auto;
  overflow: visible;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.kb-body.kb-admin-console-mode .kb-content.admin-dashboard {
  max-width: 1240px;
  padding: 0 0 42px;
}

.kb-body.kb-admin-console-mode .kb-brand-band {
  min-height: auto;
  padding-bottom: 20px;
}

.sirius-admin-console {
  --admin-line: rgba(81, 64, 44, 0.14);
  --admin-soft: rgba(247, 240, 229, 0.72);
  --admin-gold: #c89143;
  --admin-gold-dark: #93682f;
  display: grid;
  gap: 26px;
  width: 100%;
}

.sirius-admin-filter {
  min-height: 52px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #8e8479;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.sirius-admin-filter:focus-within {
  border-color: rgba(200, 145, 67, 0.45);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(216, 161, 84, 0.12);
}

.sirius-admin-filter input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--kb-ink);
  font-size: 15px;
}

.sirius-admin-card {
  container: sirius-admin-card / inline-size;
  padding: 32px;
  border: 1px solid var(--admin-line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 252, 247, 0.94)),
    radial-gradient(circle at top right, rgba(216, 161, 84, 0.1), transparent 32%);
  box-shadow:
    0 26px 70px rgba(40, 31, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.sirius-admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 28px;
}

.sirius-admin-card-head h3 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: 0;
}

.sirius-admin-card-head p {
  max-width: 620px;
  margin: 0;
  color: #5f626d;
  font-size: 15px;
  line-height: 1.7;
}

.sirius-admin-primary,
.sirius-admin-secondary,
.sirius-admin-link,
.sirius-admin-row-action {
  border: 1px solid var(--admin-line);
  border-radius: 11px;
  background: #fff;
  color: #1b1b20;
  font-weight: 800;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.sirius-admin-primary {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-color: rgba(183, 122, 48, 0.46);
  color: #fff;
  background: linear-gradient(135deg, #d89f4f, #a67939);
  box-shadow: 0 14px 30px rgba(151, 101, 44, 0.24);
}

.sirius-admin-secondary {
  min-height: 48px;
  padding: 0 18px;
}

.sirius-admin-primary:hover,
.sirius-admin-secondary:hover,
.sirius-admin-link:hover,
.sirius-admin-row-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(60, 44, 24, 0.11);
}

.sirius-admin-primary:active,
.sirius-admin-secondary:active,
.sirius-admin-link:active,
.sirius-admin-row-action:active {
  transform: translateY(0) scale(0.98);
}

.sirius-admin-filter {
  width: min(100%, 340px);
  margin-bottom: 24px;
}

.sirius-admin-card--roles {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sirius-admin-card--roles .sirius-admin-card-head {
  align-items: center;
  margin-bottom: 22px;
  padding: 0;
}

.sirius-admin-roles-workbench {
  display: grid;
  gap: 18px;
}

.sirius-admin-roles-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(81, 64, 44, 0.12);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 250, 242, 0.82)),
    radial-gradient(circle at top right, rgba(216, 161, 84, 0.1), transparent 34%);
}

.sirius-admin-roles-command-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.sirius-admin-roles-command-copy strong {
  color: #17181f;
  font-size: 18px;
  line-height: 1.2;
}

.sirius-admin-roles-command-copy span {
  max-width: 600px;
  color: #6b6e78;
  font-size: 14px;
  line-height: 1.55;
}

.sirius-admin-role-search {
  min-width: 0;
  min-height: 50px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #fff;
  color: #8e8479;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.sirius-admin-role-search:focus-within {
  border-color: rgba(200, 145, 67, 0.45);
  box-shadow: 0 0 0 4px rgba(216, 161, 84, 0.12);
}

.sirius-admin-role-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1d1e24;
  font-size: 15px;
}

.sirius-admin-roles-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sirius-admin-roles-summary div {
  min-height: 84px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid rgba(81, 64, 44, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.sirius-admin-roles-summary strong {
  color: #17181f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.sirius-admin-roles-summary span {
  color: #6d7079;
  font-size: 13px;
}

.sirius-admin-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.sirius-admin-role-card {
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(81, 64, 44, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(40, 31, 20, 0.055);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.sirius-admin-role-card:hover {
  border-color: rgba(200, 145, 67, 0.26);
  background: #fff;
  box-shadow: 0 24px 56px rgba(40, 31, 20, 0.08);
  transform: translateY(-2px);
}

.sirius-admin-role-card-head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sirius-admin-role-title {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.sirius-admin-role-title strong,
.sirius-admin-role-title small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sirius-admin-role-title strong {
  color: #17181f;
  font-size: 17px;
  line-height: 1.2;
}

.sirius-admin-role-title small {
  margin-top: 5px;
  color: #777985;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.sirius-admin-role-description {
  min-height: 46px;
  margin: 0;
  color: #626671;
  font-size: 14px;
  line-height: 1.62;
}

.sirius-admin-role-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sirius-admin-role-facts div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(81, 64, 44, 0.08);
  border-radius: 12px;
  background: rgba(250, 247, 242, 0.72);
}

.sirius-admin-role-facts span {
  color: #83818a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sirius-admin-role-facts strong {
  min-width: 0;
  overflow: hidden;
  color: #191a20;
  font-size: 18px;
  line-height: 1.1;
  text-overflow: ellipsis;
}

.sirius-admin-role-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sirius-admin-role-actions .sirius-admin-preview-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  padding: 0 16px;
  border: 1px solid rgba(178, 133, 70, 0.28);
  border-radius: 11px;
  background: rgba(255, 249, 239, 0.92);
  color: var(--admin-gold-dark);
  font-size: 14px;
  font-weight: 800;
}

.sirius-admin-role-search-empty,
.sirius-admin-roles-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px dashed rgba(129, 111, 85, 0.24);
  border-radius: 16px;
  color: var(--kb-muted);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.sirius-admin-roles-empty {
  gap: 12px;
}

.sirius-admin-roles-empty h4 {
  margin: 0;
  color: #17181f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
}

.sirius-admin-roles-empty p {
  max-width: 420px;
  margin: 0;
  line-height: 1.65;
}

.sirius-admin-table {
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.sirius-admin-table-head,
.sirius-admin-table-row {
  display: grid;
  align-items: center;
  column-gap: 14px;
  padding: 0 18px;
}

.sirius-admin-roles-table .sirius-admin-table-head,
.sirius-admin-roles-table .sirius-admin-table-row {
  grid-template-columns: minmax(210px, 1.35fr) minmax(180px, 1fr) 100px 90px 96px 90px;
}

.sirius-admin-materials-table .sirius-admin-table-head,
.sirius-admin-materials-table .sirius-admin-table-row {
  grid-template-columns: minmax(230px, 1.4fr) minmax(130px, 0.8fr) 90px 150px 70px;
}

.sirius-admin-achievements-table .sirius-admin-table-head,
.sirius-admin-achievements-table .sirius-admin-table-row {
  grid-template-columns: minmax(230px, 1.45fr) minmax(170px, 1fr) 96px 96px 96px 114px;
}

.sirius-admin-table-head {
  min-height: 56px;
  color: #6c6870;
  background: rgba(248, 244, 238, 0.74);
  font-size: 13px;
}

.sirius-admin-table-row {
  min-height: 86px;
  border-top: 1px solid rgba(81, 64, 44, 0.1);
  transition:
    background 180ms ease,
    transform 180ms ease;
}

.sirius-admin-table-row:hover {
  background: rgba(255, 250, 242, 0.8);
}

.sirius-admin-table-row.is-disabled {
  opacity: 0.62;
}

.sirius-admin-entity {
  min-width: 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.sirius-admin-entity strong,
.sirius-admin-entity small {
  display: block;
}

.sirius-admin-entity strong {
  overflow: hidden;
  color: #18191f;
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.sirius-admin-entity small {
  margin-top: 6px;
  overflow: hidden;
  color: #777985;
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.sirius-admin-iconbox {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--admin-gold-dark);
  background: linear-gradient(145deg, #fbf5ec, #fffaf5);
  box-shadow: inset 0 0 0 1px rgba(178, 133, 70, 0.1);
}

.sirius-admin-iconbox .kb-icon {
  width: 20px;
  height: 20px;
}

.sirius-admin-award-box {
  color: #fff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 244, 213, 0.9), transparent 35%),
    linear-gradient(145deg, #dab06a, #8b642f);
  box-shadow:
    0 12px 26px rgba(139, 100, 47, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.sirius-admin-muted {
  color: #666a75;
  font-size: 14px;
  line-height: 1.65;
}

.sirius-admin-number {
  color: #1e2028;
  font-size: 15px;
  font-weight: 800;
}

.sirius-admin-status,
.sirius-admin-tier {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(234, 247, 238, 0.95);
  color: #3c7b51;
  font-size: 13px;
  font-weight: 700;
}

.sirius-admin-status.is-muted {
  color: #7c7f87;
  background: rgba(238, 238, 238, 0.9);
}

.sirius-admin-tier {
  color: var(--admin-gold-dark);
  background: rgba(244, 234, 219, 0.92);
}

.sirius-admin-actions-cell {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.sirius-admin-row-action {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: #5a5652;
  background: rgba(255, 255, 255, 0.92);
}

.sirius-admin-preview-action {
  padding: 0 14px;
  color: var(--admin-gold-dark);
  background: rgba(255, 249, 239, 0.92);
}

.sirius-admin-row-action.is-danger {
  color: #a5513e;
  border-color: rgba(202, 98, 74, 0.28);
  background: rgba(255, 241, 235, 0.72);
}

.sirius-admin-simple-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.sirius-learning-analytics {
  display: grid;
  gap: 22px;
}

.sirius-learning-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.sirius-learning-field,
.sirius-learning-search {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.sirius-learning-field span {
  color: #77727a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sirius-learning-field select,
.sirius-learning-search input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(81, 64, 44, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #1d1e24;
  font: inherit;
  font-weight: 760;
}

.sirius-learning-field select {
  padding: 0 14px;
}

.sirius-learning-periods {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sirius-learning-periods button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(81, 64, 44, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #5f626d;
  font-weight: 850;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.sirius-learning-periods button:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 145, 67, 0.35);
  background: rgba(255, 250, 242, 0.94);
}

.sirius-learning-periods button.is-active {
  color: #8d642d;
  border-color: rgba(200, 145, 67, 0.38);
  background: linear-gradient(135deg, rgba(255, 247, 236, 0.98), rgba(248, 236, 218, 0.92));
}

.sirius-learning-alert,
.sirius-learning-loader {
  padding: 14px 16px;
  border-radius: 14px;
  color: #85553f;
  background: rgba(255, 243, 237, 0.9);
}

.sirius-learning-loader {
  color: #806437;
  background: rgba(255, 250, 242, 0.92);
}

.sirius-learning-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sirius-learning-metric {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(81, 64, 44, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(47, 35, 20, 0.045);
}

.sirius-learning-metric span,
.sirius-learning-metric small {
  color: #737782;
  font-size: 13px;
}

.sirius-learning-metric strong {
  color: #15161c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 520;
  line-height: 1;
}

.sirius-learning-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.45fr);
  gap: 18px;
  align-items: start;
}

.sirius-learning-chapters,
.sirius-learning-detail {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.sirius-learning-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sirius-learning-section-head h4 {
  margin: 0 0 4px;
  color: #17181f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 520;
}

.sirius-learning-section-head p {
  margin: 0;
  color: #747782;
  font-size: 14px;
  line-height: 1.55;
}

.sirius-learning-chapter {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(81, 64, 44, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.86);
  text-align: left;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.sirius-learning-chapter:hover,
.sirius-learning-chapter.is-active {
  transform: translateY(-1px);
  border-color: rgba(200, 145, 67, 0.35);
  background: rgba(255, 250, 242, 0.96);
}

.sirius-learning-chapter strong,
.sirius-learning-chapter small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sirius-learning-chapter strong {
  color: #1b1c22;
  font-size: 15px;
}

.sirius-learning-chapter small {
  margin-top: 4px;
  color: #777b85;
  font-size: 12px;
}

.sirius-learning-chapter em {
  min-width: 54px;
  color: #93682f;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.sirius-learning-empty-detail {
  min-height: 260px;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px dashed rgba(129, 111, 85, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.sirius-learning-empty-detail h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 520;
}

.sirius-learning-empty-detail p {
  max-width: 430px;
  margin: 0;
  color: #777b85;
  line-height: 1.6;
}

.sirius-learning-search {
  min-width: min(100%, 260px);
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(81, 64, 44, 0.13);
  border-radius: 12px;
  background: #fff;
  color: #8e8479;
}

.sirius-learning-search input {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 650;
}

.sirius-learning-table {
  display: grid;
  gap: 10px;
}

.sirius-learning-employee {
  overflow: hidden;
  border: 1px solid rgba(81, 64, 44, 0.11);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(47, 35, 20, 0.04);
}

.sirius-learning-employee[hidden] {
  display: none;
}

.sirius-learning-employee-main {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(120px, 180px) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.sirius-learning-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #93682f;
  background: linear-gradient(145deg, #fbf1e1, #fffaf5);
  font-weight: 900;
}

.sirius-learning-person strong,
.sirius-learning-person small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sirius-learning-person strong {
  color: #17181f;
  font-size: 15px;
}

.sirius-learning-person small {
  margin-top: 4px;
  color: #777b85;
  font-size: 12px;
  line-height: 1.35;
}

.sirius-learning-progress {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
}

.sirius-learning-progress i {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(228, 220, 208, 0.8);
}

.sirius-learning-progress i::before {
  content: "";
  display: block;
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d8a154, #a67939);
}

.sirius-learning-progress em {
  color: #1f2027;
  font-style: normal;
  font-weight: 900;
}

.sirius-learning-pill {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.sirius-learning-pill.is-complete,
.sirius-learning-dot.is-complete {
  color: #3f7b54;
  background: rgba(229, 246, 234, 0.95);
}

.sirius-learning-pill.is-progress,
.sirius-learning-dot.is-progress {
  color: #93682f;
  background: rgba(248, 237, 220, 0.98);
}

.sirius-learning-pill.is-muted,
.sirius-learning-dot.is-muted {
  color: #777b85;
  background: rgba(238, 238, 238, 0.95);
}

.sirius-learning-employee-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px 16px 74px;
  color: #6e727d;
  font-size: 13px;
}

.sirius-learning-employee-meta .sirius-admin-link {
  min-height: 32px;
  padding: 0 10px;
  color: #a5513e;
  border-color: rgba(202, 98, 74, 0.26);
  background: rgba(255, 244, 240, 0.75);
}

.sirius-learning-lessons {
  display: grid;
  gap: 8px;
  padding: 0 16px 16px 74px;
}

.sirius-learning-lesson {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(81, 64, 44, 0.08);
  border-radius: 12px;
  background: rgba(250, 247, 242, 0.6);
}

.sirius-learning-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sirius-learning-lesson strong,
.sirius-learning-lesson small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sirius-learning-lesson strong {
  color: #1d1e24;
  font-size: 13px;
}

.sirius-learning-lesson small {
  margin-top: 2px;
  color: #777b85;
  font-size: 12px;
}

.sirius-learning-lesson em {
  color: #777b85;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.sirius-admin-settings-layout {
  display: grid;
  gap: 20px;
}

.sirius-admin-integration-card {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(200, 145, 67, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 96% 0%, rgba(216, 161, 84, 0.16), transparent 32%);
  box-shadow:
    0 18px 44px rgba(89, 63, 31, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.sirius-admin-integration-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
}

.sirius-admin-integration-head h4 {
  margin: 3px 0 8px;
  color: #17181f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: 0;
}

.sirius-admin-integration-head p {
  max-width: 760px;
  margin: 0;
  color: #666a75;
  font-size: 15px;
  line-height: 1.65;
}

.sirius-admin-integration-head mark {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #3f7853;
  background: rgba(235, 248, 239, 0.9);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sirius-admin-integration-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(81, 64, 44, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
}

.sirius-admin-integration-facts div {
  min-width: 0;
  padding: 16px 18px;
  border-left: 1px solid rgba(81, 64, 44, 0.08);
}

.sirius-admin-integration-facts div:first-child {
  border-left: 0;
}

.sirius-admin-integration-facts span,
.sirius-admin-integration-command span,
.sirius-admin-integration-details span,
.sirius-admin-integration-tools > span,
.sirius-admin-config-snippet > span {
  display: block;
  margin-bottom: 8px;
  color: #747680;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sirius-admin-integration-facts strong {
  display: block;
  overflow: hidden;
  color: #17181f;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sirius-admin-integration-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(81, 64, 44, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.sirius-admin-integration-command code,
.sirius-admin-integration-details code,
.sirius-admin-integration-tools code {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid rgba(81, 64, 44, 0.1);
  border-radius: 10px;
  background: rgba(250, 247, 242, 0.92);
  color: #242229;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.sirius-admin-integration-command code {
  padding: 12px 14px;
}

.sirius-admin-integration-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sirius-admin-integration-details > div {
  min-width: 0;
}

.sirius-admin-integration-details code {
  padding: 11px 12px;
}

.sirius-admin-integration-tools {
  display: grid;
  gap: 10px;
}

.sirius-admin-integration-tools > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sirius-admin-integration-tools code {
  padding: 8px 10px;
}

.sirius-admin-config-snippet {
  display: grid;
  gap: 8px;
}

.sirius-admin-config-snippet textarea {
  width: 100%;
  min-height: 260px;
  padding: 14px;
  border: 1px solid rgba(81, 64, 44, 0.12);
  border-radius: 14px;
  background: rgba(23, 23, 28, 0.96);
  color: #f8f1e8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  resize: vertical;
  outline: 0;
}

.sirius-admin-integration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sirius-admin-copy-fallback {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(200, 145, 67, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.94), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at 100% 0%, rgba(216, 161, 84, 0.13), transparent 35%);
}

.sirius-admin-copy-fallback strong {
  display: block;
  margin: 0 0 5px;
  color: #17181f;
  font-size: 15px;
  font-weight: 780;
}

.sirius-admin-copy-fallback p {
  max-width: 760px;
  margin: 0;
  color: #69645e;
  font-size: 13px;
  line-height: 1.55;
}

.sirius-admin-copy-fallback textarea {
  width: 100%;
  min-height: 190px;
  padding: 14px;
  border: 1px solid rgba(81, 64, 44, 0.12);
  border-radius: 12px;
  background: #fffdf9;
  color: #242229;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  resize: vertical;
  outline: 0;
}

.sirius-admin-mini-card,
.sirius-admin-metric-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.sirius-admin-mini-card {
  grid-template-columns: 48px minmax(0, 1fr);
}

.sirius-admin-mini-card strong,
.sirius-admin-metric-card strong {
  display: block;
  margin-bottom: 8px;
  color: #17181f;
  font-size: 18px;
}

.sirius-admin-mini-card p {
  margin: 0;
  color: var(--kb-muted);
  line-height: 1.7;
}

.sirius-admin-link {
  width: max-content;
  min-height: 38px;
  margin-top: 14px;
  padding: 0 14px;
  color: var(--admin-gold-dark);
}

.sirius-admin-metric-card {
  grid-template-columns: 56px 1fr;
  align-items: center;
}

.sirius-admin-metric-card strong {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 500;
}

.sirius-admin-metric-card span:last-child {
  color: var(--kb-muted);
}

.sirius-admin-achievement-editor {
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid rgba(200, 145, 67, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at top right, rgba(216, 161, 84, 0.16), transparent 30%);
  box-shadow: 0 18px 44px rgba(116, 83, 40, 0.08);
}

.sirius-admin-achievement-editor h4 {
  margin: 4px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.sirius-admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sirius-admin-form-grid label {
  display: grid;
  gap: 8px;
  color: #747680;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sirius-admin-form-grid input,
.sirius-admin-form-grid select,
.sirius-admin-form-grid textarea {
  width: 100%;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.86);
  color: #17181f;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  outline: 0;
  text-transform: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.sirius-admin-form-grid input,
.sirius-admin-form-grid select {
  min-height: 52px;
  padding: 0 14px;
}

.sirius-admin-form-grid textarea {
  min-height: 112px;
  padding: 14px;
  resize: vertical;
}

.sirius-admin-form-grid input:focus,
.sirius-admin-form-grid select:focus,
.sirius-admin-form-grid textarea:focus {
  border-color: rgba(200, 145, 67, 0.5);
  box-shadow: 0 0 0 4px rgba(216, 161, 84, 0.12);
}

.sirius-admin-form-wide {
  grid-column: 1 / -1;
}

.sirius-admin-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.sirius-admin-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(129, 111, 85, 0.24);
  border-radius: 16px;
  color: var(--kb-muted);
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.sirius-admin-stats-strip {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: rgba(81, 64, 44, 0.1);
}

.sirius-admin-stats-strip div {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 12px;
  min-height: 88px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.74);
}

.sirius-admin-stats-strip .sirius-admin-iconbox {
  grid-row: 1 / span 2;
}

.sirius-admin-stats-strip strong {
  min-width: 0;
  color: #15161c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.4vw, 28px);
  font-weight: 500;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.sirius-admin-stats-strip small {
  min-width: 0;
  color: var(--kb-muted);
  font-size: 13px;
  line-height: 1.25;
}

@container sirius-admin-card (max-width: 760px) {
  .sirius-admin-stats-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@container sirius-admin-card (max-width: 440px) {
  .sirius-admin-stats-strip {
    grid-template-columns: 1fr;
  }
}

.sirius-admin-material-manager {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.48fr);
  gap: 22px;
  align-items: start;
}

.sirius-admin-material-tree,
.sirius-admin-material-editor-shell {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.sirius-admin-material-tree {
  padding: 16px;
}

.sirius-admin-material-editor-shell {
  padding: 20px;
}

.sirius-admin-material-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.sirius-admin-material-tools .sirius-admin-secondary {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
}

.sirius-admin-material-tools .sirius-admin-secondary:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
  box-shadow: none;
}

.sirius-admin-material-list {
  display: grid;
  gap: 8px;
  max-height: min(68vh, 720px);
  overflow: auto;
  padding-right: 4px;
}

.sirius-admin-material-node {
  display: grid;
  gap: 8px;
}

.sirius-admin-material-row {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 12px 10px calc(12px + var(--material-depth, 0) * 18px);
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #1b1c22;
  text-align: left;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background 170ms ease,
    box-shadow 170ms ease;
}

.sirius-admin-material-row:hover,
.sirius-admin-material-row:focus-visible {
  border-color: rgba(200, 145, 67, 0.22);
  background: rgba(255, 250, 242, 0.86);
  box-shadow: 0 12px 28px rgba(101, 74, 38, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.sirius-admin-material-row.is-selected {
  border-color: rgba(200, 145, 67, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 248, 237, 0.96), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at top left, rgba(216, 161, 84, 0.18), transparent 38%);
  box-shadow: 0 14px 30px rgba(151, 101, 44, 0.12);
}

.sirius-admin-material-row .sirius-admin-iconbox {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.sirius-admin-material-row strong,
.sirius-admin-material-row small {
  display: block;
  min-width: 0;
}

.sirius-admin-material-row strong {
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sirius-admin-material-row small {
  margin-top: 5px;
  overflow: hidden;
  color: #777985;
  font-size: 12px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sirius-admin-material-empty {
  min-height: 520px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 38px 24px;
  border: 1px dashed rgba(129, 111, 85, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--kb-muted);
  text-align: center;
}

.sirius-admin-empty-compact {
  min-height: 220px;
}

.sirius-admin-material-empty h4 {
  margin: 0;
  color: #17181f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
}

.sirius-admin-material-empty p {
  max-width: 420px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.sirius-admin-scope-note {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid rgba(200, 145, 67, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(255, 255, 255, 0.84));
}

.sirius-admin-scope-note strong,
.sirius-admin-scope-note p {
  display: block;
  min-width: 0;
}

.sirius-admin-scope-note strong {
  color: #17181f;
  font-size: 15px;
}

.sirius-admin-scope-note p {
  margin: 4px 0 0;
  color: var(--kb-muted);
  font-size: 13px;
  line-height: 1.55;
}

.sirius-audit-panel,
.sirius-audit-list {
  display: grid;
  gap: 14px;
}

.sirius-audit-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(129, 111, 85, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.sirius-audit-toolbar strong,
.sirius-audit-toolbar span {
  display: block;
}

.sirius-audit-toolbar strong {
  color: #17181f;
  font-size: 16px;
}

.sirius-audit-toolbar span {
  margin-top: 4px;
  color: var(--kb-muted);
  font-size: 13px;
}

.sirius-audit-filters {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) minmax(190px, 0.8fr) minmax(170px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
  padding: 16px;
  border: 1px solid rgba(129, 111, 85, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.sirius-audit-filter-field {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: #767986;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sirius-audit-filter-field input,
.sirius-audit-filter-field select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid rgba(129, 111, 85, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #17181f;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0;
  outline: none;
  text-transform: none;
}

.sirius-audit-filter-field input:focus,
.sirius-audit-filter-field select:focus {
  border-color: rgba(200, 145, 67, 0.5);
  box-shadow: 0 0 0 4px rgba(216, 161, 84, 0.12);
}

.sirius-audit-reset {
  min-height: 46px;
  white-space: nowrap;
}

.sirius-audit-count {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(129, 111, 85, 0.12);
  border-radius: 12px;
  background: rgba(250, 246, 239, 0.68);
  color: var(--kb-muted);
  font-size: 13px;
  font-weight: 760;
}

.sirius-audit-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 30px 20px;
  border: 1px dashed rgba(129, 111, 85, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--kb-muted);
  text-align: center;
}

.sirius-audit-empty h4,
.sirius-audit-empty p {
  margin: 0;
}

.sirius-audit-empty h4 {
  color: #17181f;
  font-size: 22px;
}

.sirius-audit-empty p {
  max-width: 440px;
  font-size: 14px;
  line-height: 1.55;
}

.sirius-audit-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(129, 111, 85, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(101, 74, 38, 0.06);
}

.sirius-audit-card header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.sirius-audit-card mark {
  display: inline-flex;
  width: max-content;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(216, 161, 84, 0.14);
  color: var(--admin-gold-dark);
  font-size: 11px;
  font-weight: 800;
}

.sirius-audit-card strong,
.sirius-audit-card span {
  display: block;
}

.sirius-audit-card strong {
  color: #17181f;
  font-size: 16px;
}

.sirius-audit-card span {
  margin-top: 4px;
  color: var(--kb-muted);
  font-size: 13px;
}

.sirius-audit-card header button {
  min-height: 36px;
  flex: 0 0 auto;
  border: 1px solid rgba(200, 145, 67, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--admin-gold-dark);
  font-weight: 800;
}

.sirius-audit-diff {
  display: grid;
  gap: 8px;
}

.sirius-audit-diff p {
  margin: 0;
  color: var(--kb-muted);
  font-size: 13px;
}

.sirius-audit-diff-row {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 10px;
  background: rgba(247, 241, 232, 0.58);
}

.sirius-audit-diff-row span,
.sirius-audit-diff-row em,
.sirius-audit-diff-row strong {
  margin: 0;
  min-width: 0;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sirius-audit-diff-row span {
  color: #767986;
  font-weight: 800;
}

.sirius-audit-diff-row em {
  color: #9b8b78;
  font-style: normal;
}

.sirius-audit-diff-row strong {
  color: #17181f;
  font-weight: 800;
}

@container sirius-admin-card (max-width: 860px) {
  .sirius-audit-toolbar,
  .sirius-audit-card header {
    align-items: stretch;
    flex-direction: column;
  }

  .sirius-audit-filters {
    grid-template-columns: 1fr;
  }

  .sirius-audit-reset {
    width: 100%;
  }
}

.sirius-admin-material-editor {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.sirius-admin-material-editor > * {
  min-width: 0;
}

.sirius-admin-material-editor-head {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(200, 145, 67, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(255, 255, 255, 0.9)),
    radial-gradient(circle at top right, rgba(216, 161, 84, 0.14), transparent 34%);
}

.sirius-admin-material-editor-head h4 {
  margin: 4px 0 0;
  color: #15161c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: 0;
}

.sirius-admin-material-editor-head .sirius-admin-editor-actions {
  display: grid;
  grid-template-columns: minmax(0, auto) auto;
  align-items: center;
  justify-content: end;
  gap: 10px;
  margin-top: 0;
}

.sirius-admin-editor-status {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
}

.sirius-admin-editor-command-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(81, 64, 44, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.sirius-admin-editor-command-group .sirius-admin-primary,
.sirius-admin-editor-command-group .sirius-admin-secondary {
  width: auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.sirius-admin-editor-command-group .sirius-admin-row-action {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
}

.sirius-admin-autosave-status {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(129, 111, 85, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #797269;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sirius-admin-autosave-status[data-status="dirty"],
.sirius-admin-autosave-status[data-status="saving"] {
  border-color: rgba(200, 145, 67, 0.26);
  background: rgba(255, 248, 237, 0.82);
  color: var(--admin-gold);
}

.sirius-admin-autosave-status[data-status="saved"] {
  border-color: rgba(74, 136, 94, 0.18);
  background: rgba(246, 252, 247, 0.82);
  color: #4a7d58;
}

.sirius-admin-autosave-status[data-status="error"] {
  border-color: rgba(180, 91, 58, 0.22);
  background: rgba(255, 247, 242, 0.9);
  color: #b45b3a;
}

.sirius-admin-draft-recovery {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(200, 145, 67, 0.24);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 249, 239, 0.96), rgba(255, 255, 255, 0.86)),
    radial-gradient(circle at 92% 12%, rgba(216, 161, 84, 0.16), transparent 34%);
  box-shadow: 0 16px 36px rgba(101, 74, 38, 0.07);
}

.sirius-admin-draft-recovery strong {
  display: block;
  color: #17181f;
  font-size: 16px;
  font-weight: 820;
}

.sirius-admin-draft-recovery p {
  max-width: 760px;
  margin: 5px 0 0;
  color: #747680;
  font-size: 14px;
  line-height: 1.55;
}

.sirius-admin-draft-recovery > div:last-child {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.sirius-admin-draft-recovery .is-danger {
  border-color: rgba(180, 91, 58, 0.2);
  color: #b45b3a;
}

.sirius-admin-material-form {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.9fr) 120px;
  gap: 14px;
}

.sirius-admin-material-form label,
.sirius-admin-material-content-label {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  color: #747680;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

[data-admin-material-content] {
  min-width: 0;
  max-width: 100%;
}

.sirius-admin-material-form input,
.sirius-admin-material-form select {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #17181f;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  outline: 0;
  text-transform: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.sirius-admin-material-form input:focus,
.sirius-admin-material-form select:focus {
  border-color: rgba(200, 145, 67, 0.5);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(216, 161, 84, 0.12);
  outline: none;
}

.sirius-admin-material-access {
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--admin-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.sirius-admin-material-access legend {
  padding: 0 6px;
  color: #747680;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sirius-admin-material-access > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  max-height: 250px;
  overflow: auto;
  padding-right: 4px;
}

.sirius-admin-material-access input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--admin-gold);
}

.sirius-admin-material-access p {
  margin: 14px 0 0;
  color: #7b7d86;
  font-size: 13px;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: 0;
}

.sirius-admin-material-library {
  display: grid;
  gap: 18px;
}

.sirius-admin-material-library-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(200, 145, 67, 0.16);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 251, 244, 0.95), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 86% 10%, rgba(216, 161, 84, 0.14), transparent 34%);
}

.sirius-admin-material-library-head h4,
.sirius-admin-chapter-lessons h5 {
  margin: 0;
  color: #17181f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0;
}

.sirius-admin-material-library-head p {
  max-width: 720px;
  margin: 8px 0 0;
  color: #6f7078;
  font-size: 15px;
  line-height: 1.65;
}

.sirius-admin-material-summary {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 10px;
  justify-self: end;
}

.sirius-admin-material-summary span {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(81, 64, 44, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: #70727b;
  font-size: 13px;
  font-weight: 760;
  text-align: center;
}

.sirius-admin-material-summary strong {
  display: block;
  color: #17181f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.sirius-admin-material-chapter-map {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 10px;
}

.sirius-admin-material-chapter-map button {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "index title"
    "index meta";
  align-items: center;
  gap: 2px 12px;
  min-height: 72px;
  padding: 12px 14px;
  border: 1px solid rgba(81, 64, 44, 0.11);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: #17181f;
  text-align: left;
  box-shadow: 0 12px 28px rgba(40, 31, 20, 0.045);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.sirius-admin-material-chapter-map button:hover,
.sirius-admin-material-chapter-map button:focus-visible {
  border-color: rgba(200, 145, 67, 0.32);
  background: #fff;
  box-shadow: 0 18px 36px rgba(40, 31, 20, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.sirius-admin-material-chapter-map span {
  grid-area: index;
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  color: var(--admin-gold-dark);
  background: rgba(244, 234, 219, 0.78);
  font-weight: 860;
}

.sirius-admin-material-chapter-map strong,
.sirius-admin-material-chapter-map small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sirius-admin-material-chapter-map strong {
  grid-area: title;
  font-size: 15px;
  line-height: 1.2;
}

.sirius-admin-material-chapter-map small {
  grid-area: meta;
  color: #747680;
  font-size: 12px;
  font-weight: 720;
}

.sirius-admin-material-toolbar {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(200, 145, 67, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 252, 247, 0.94), rgba(255, 255, 255, 0.86)),
    radial-gradient(circle at 100% 0%, rgba(216, 161, 84, 0.12), transparent 34%);
  box-shadow:
    0 18px 44px rgba(74, 55, 31, 0.055),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sirius-admin-material-toolbar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.sirius-admin-material-toolbar-head div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sirius-admin-material-toolbar-head strong {
  color: #17181f;
  font-size: 20px;
  line-height: 1.2;
}

.sirius-admin-material-toolbar-head span {
  color: #747680;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.sirius-admin-material-toolbar-head small {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(81, 64, 44, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #7b746c;
  font-size: 12px;
  font-weight: 820;
}

.sirius-admin-material-toolbar-main {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.sirius-admin-material-toolbar-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.sirius-admin-material-toolbar-actions .sirius-admin-primary,
.sirius-admin-material-toolbar-actions .sirius-admin-secondary {
  width: auto;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.sirius-admin-material-search {
  min-height: 52px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(81, 64, 44, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #93897c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.sirius-admin-material-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #17181f;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.sirius-admin-material-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px;
  color: #17181f;
}

.sirius-admin-material-list-head strong {
  font-size: 16px;
  line-height: 1.2;
}

.sirius-admin-material-list-head span {
  color: #777985;
  font-size: 13px;
  font-weight: 720;
}

.sirius-admin-material-list.is-library {
  max-height: none;
  display: grid;
  gap: 8px;
  overflow: visible;
  padding: 0;
}

.sirius-admin-material-list.is-filter-empty::after {
  content: "Поиск ничего не нашел";
  min-height: 160px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(129, 111, 85, 0.22);
  border-radius: 14px;
  color: #7b7d86;
  background: rgba(255, 255, 255, 0.58);
}

.sirius-admin-material-node {
  position: relative;
}

.sirius-admin-material-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  min-height: 74px;
  padding: 12px 14px 12px calc(18px + var(--material-depth, 0) * 28px);
  border-color: rgba(81, 64, 44, 0.1);
  background: rgba(255, 255, 255, 0.78);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.sirius-admin-material-row::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: calc(8px + var(--material-depth, 0) * 28px);
  width: 3px;
  border-radius: 999px;
  background: rgba(200, 145, 67, 0.22);
}

.sirius-admin-material-row:hover {
  border-color: rgba(200, 145, 67, 0.24);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 34px rgba(40, 31, 20, 0.065);
}

.sirius-admin-material-row.is-targeted {
  border-color: rgba(200, 145, 67, 0.54);
  background: rgba(255, 248, 237, 0.96);
  box-shadow:
    0 0 0 4px rgba(216, 161, 84, 0.14),
    0 18px 38px rgba(40, 31, 20, 0.08);
}

.sirius-admin-material-row[draggable="true"] {
  cursor: grab;
}

.sirius-admin-material-row.dragging {
  opacity: 0.52;
}

.sirius-admin-material-row.drag-before {
  box-shadow: 0 -3px 0 rgba(200, 145, 67, 0.72), 0 16px 34px rgba(101, 74, 38, 0.08);
}

.sirius-admin-material-row.drag-after {
  box-shadow: 0 3px 0 rgba(200, 145, 67, 0.72), 0 16px 34px rgba(101, 74, 38, 0.08);
}

.sirius-admin-material-row.drag-inside {
  border-color: rgba(200, 145, 67, 0.44);
  background: rgba(255, 248, 237, 0.94);
  box-shadow: 0 0 0 4px rgba(216, 161, 84, 0.12);
}

.sirius-admin-material-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.sirius-admin-material-disclosure {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: rgba(244, 234, 219, 0.58);
  color: var(--admin-gold);
  transition: background 160ms ease, transform 160ms ease;
}

.sirius-admin-material-disclosure .kb-icon {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.sirius-admin-material-node:not(.is-collapsed) > .sirius-admin-material-row .sirius-admin-material-disclosure .kb-icon {
  transform: rotate(90deg);
}

.sirius-admin-material-disclosure:hover,
.sirius-admin-material-disclosure:focus-visible {
  background: rgba(244, 234, 219, 0.9);
  outline: none;
}

.sirius-admin-material-disclosure.is-empty {
  background: transparent;
}

.sirius-admin-material-open {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.sirius-admin-material-open > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sirius-admin-material-open strong,
.sirius-admin-material-open small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sirius-admin-material-open strong {
  color: #17181f;
  font-size: 15px;
  line-height: 1.25;
}

.sirius-admin-material-open small {
  display: block;
  color: #777985;
  font-size: 13px;
  line-height: 1.35;
  white-space: nowrap;
}

.sirius-admin-material-row-actions {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
  padding: 5px;
  border: 1px solid rgba(81, 64, 44, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.58);
}

.sirius-admin-material-row-actions .sirius-admin-row-action {
  width: 38px;
  min-width: 38px;
  padding: 0;
}

.sirius-admin-material-type,
.sirius-admin-material-meta,
.sirius-admin-material-summary-text {
  display: inline-block;
  min-width: 0;
  vertical-align: middle;
}

.sirius-admin-material-type {
  color: var(--admin-gold-dark);
  font-weight: 860;
}

.sirius-admin-material-meta {
  color: #777985;
}

.sirius-admin-material-type::after,
.sirius-admin-material-meta::after {
  content: "·";
  margin: 0 6px;
  color: rgba(129, 111, 85, 0.48);
}

.sirius-admin-material-root-drop {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(129, 111, 85, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
  color: #8b8379;
  font-size: 14px;
  transition: border-color 170ms ease, background 170ms ease, color 170ms ease;
}

.sirius-admin-material-root-drop.root-drop-active {
  border-color: rgba(200, 145, 67, 0.48);
  background: rgba(255, 248, 237, 0.92);
  color: var(--admin-gold);
}

.sirius-admin-material-editor.is-full-screen {
  gap: 22px;
}

.sirius-admin-back {
  min-height: 38px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-self: start;
  margin-bottom: 16px;
  padding: 0 12px;
  border: 1px solid rgba(81, 64, 44, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--admin-gold);
  font-size: 13px;
  font-weight: 760;
}

.sirius-admin-back .kb-icon {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
}

.sirius-admin-material-form {
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.6fr) 140px;
}

.sirius-admin-material-form .is-wide {
  grid-column: 1 / -1;
}

.sirius-admin-material-form textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  padding: 16px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: #17181f;
  font: inherit;
  font-size: 15px;
  line-height: 1.6;
  outline: 0;
  text-transform: none;
  letter-spacing: 0;
}

.sirius-admin-material-form textarea:focus {
  border-color: rgba(200, 145, 67, 0.5);
  box-shadow: 0 0 0 4px rgba(216, 161, 84, 0.12);
}

.sirius-admin-material-summary-field small {
  max-width: 760px;
  color: #78736b;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

.sirius-admin-cover-uploader {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.sirius-admin-cover-uploader.is-uploading {
  opacity: 0.96;
}

.sirius-admin-cover-uploader.is-uploading .sirius-admin-upload-button,
.sirius-admin-cover-uploader.is-uploading [data-admin-action="material-cover-clear"] {
  cursor: progress;
  opacity: 0.58;
  pointer-events: none;
}

.sirius-admin-cover-preview.has-cover-missing {
  border-style: solid;
  border-color: rgba(180, 91, 58, 0.24);
  background:
    linear-gradient(135deg, rgba(255, 247, 242, 0.94), rgba(255, 255, 255, 0.78)),
    radial-gradient(circle at 50% 24%, rgba(180, 91, 58, 0.1), transparent 36%);
}

.sirius-admin-cover-preview.has-cover-missing .kb-icon {
  color: #b45b3a;
}

.sirius-admin-cover-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(129, 111, 85, 0.24);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(255, 255, 255, 0.74)),
    radial-gradient(circle at 62% 22%, rgba(216, 161, 84, 0.18), transparent 34%);
  color: #8d806f;
}

.sirius-admin-cover-preview.has-cover {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sirius-admin-cover-preview img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  object-position: center;
}

.sirius-admin-cover-preview.has-cover img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  border-radius: 14px;
  clip-path: inset(0 round 14px);
}

.sirius-admin-cover-preview span {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.sirius-admin-cover-preview .kb-icon {
  width: 32px;
  height: 32px;
  color: var(--admin-gold);
}

.sirius-admin-cover-preview strong {
  color: #17181f;
  font-size: 17px;
}

.sirius-admin-cover-preview small {
  max-width: 260px;
  color: #747680;
  font-size: 13px;
  line-height: 1.5;
}

.sirius-admin-cover-controls {
  display: grid;
  align-content: start;
  gap: 12px;
}

.sirius-admin-cover-controls > strong {
  color: #17181f;
  font-size: 22px;
  font-weight: 760;
}

.sirius-admin-cover-controls p {
  margin: 0 0 8px;
  color: #747680;
  font-size: 14px;
  line-height: 1.6;
}

.sirius-admin-cover-controls label {
  display: grid;
  gap: 8px;
  color: #747680;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sirius-admin-cover-controls input[type="text"] {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #fff;
  color: #17181f;
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.sirius-admin-cover-controls > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sirius-admin-cover-progress {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding: 12px;
  border: 1px solid rgba(200, 145, 67, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.92), rgba(255, 255, 255, 0.84)),
    radial-gradient(circle at top left, rgba(216, 161, 84, 0.14), transparent 38%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.sirius-admin-cover-progress[hidden] {
  display: none;
}

.sirius-admin-cover-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sirius-admin-cover-progress span,
.sirius-admin-cover-progress strong {
  color: #5c5144;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sirius-admin-cover-progress strong {
  color: var(--admin-gold-dark);
  letter-spacing: 0;
}

.sirius-admin-cover-progress small {
  color: #747680;
  font-size: 12px;
  line-height: 1.45;
}

.sirius-admin-cover-progress-bar {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(81, 64, 44, 0.1);
}

.sirius-admin-cover-progress-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b67b33, #dba354);
  box-shadow: 0 0 18px rgba(200, 145, 67, 0.24);
  transition: width 180ms ease;
}

.sirius-admin-cover-progress.is-indeterminate .sirius-admin-cover-progress-bar i {
  width: 42%;
  animation: sirius-cover-upload-indeterminate 1.2s ease-in-out infinite;
}

.sirius-admin-cover-progress.is-processing .sirius-admin-cover-progress-bar i {
  background: linear-gradient(90deg, #c89143, #e2bd78);
}

.sirius-admin-cover-progress.is-complete {
  border-color: rgba(75, 132, 85, 0.22);
  background: linear-gradient(135deg, rgba(243, 250, 244, 0.92), rgba(255, 255, 255, 0.84));
}

.sirius-admin-cover-progress.is-complete .sirius-admin-cover-progress-bar i {
  background: linear-gradient(90deg, #5f9f66, #9ccf8b);
}

.sirius-admin-cover-progress.is-error {
  border-color: rgba(180, 91, 58, 0.28);
  background: linear-gradient(135deg, rgba(255, 246, 241, 0.94), rgba(255, 255, 255, 0.84));
}

.sirius-admin-cover-progress.is-error strong,
.sirius-admin-cover-progress.is-error span {
  color: #a5513e;
}

.sirius-admin-cover-progress.is-error .sirius-admin-cover-progress-bar i {
  background: linear-gradient(90deg, #b45b3a, #d88c68);
}

@keyframes sirius-cover-upload-indeterminate {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(260%);
  }
}

.sirius-admin-upload-button {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.sirius-admin-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sirius-admin-chapter-page-note {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(200, 145, 67, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.82), rgba(255, 255, 255, 0.74)),
    radial-gradient(circle at top right, rgba(216, 161, 84, 0.12), transparent 38%);
}

.sirius-admin-chapter-page-note strong {
  display: block;
  color: #17181f;
  font-size: 15px;
  line-height: 1.35;
}

.sirius-admin-chapter-page-note p {
  max-width: 840px;
  margin: 5px 0 0;
  color: #747680;
  font-size: 14px;
  line-height: 1.6;
}

.sirius-admin-chapter-lessons {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--admin-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.sirius-admin-chapter-lessons > div:first-child {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.sirius-admin-chapter-lessons > div:last-child {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.sirius-admin-chapter-lessons button:not(.sirius-admin-secondary) {
  min-height: 58px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(81, 64, 44, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #17181f;
  text-align: left;
}

.sirius-admin-chapter-lessons p {
  margin: 0;
  color: #747680;
  font-size: 14px;
  line-height: 1.6;
}

.sirius-material-cover.has-image {
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
}

.sirius-material-cover.has-image img {
  position: static;
  width: auto;
  max-width: 100%;
  max-height: 170px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 12px;
  clip-path: inset(0 round 12px);
}

.employee-material-card.has-cover button {
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  padding: 18px;
  background: #18120b;
}

.employee-material-card.has-cover .sirius-material-cover.has-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #f4eadc;
}

.employee-material-card.has-cover .sirius-material-cover.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(26, 18, 10, 0.02) 0%, rgba(26, 18, 10, 0.06) 45%, rgba(26, 18, 10, 0.76) 100%),
    linear-gradient(90deg, rgba(26, 18, 10, 0.08), transparent 58%);
}

.employee-material-card.has-cover .sirius-material-cover.has-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border-radius: 0;
  clip-path: none;
  object-fit: cover;
  object-position: center;
}

.employee-material-card.has-cover .employee-status {
  z-index: 1;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 253, 248, 0.9);
  box-shadow: 0 8px 18px rgba(34, 25, 15, 0.12);
}

.employee-material-card.has-cover .employee-material-card-footer,
.employee-material-card.has-cover h5,
.employee-material-card.has-cover .employee-card-progress-row,
.employee-material-card.has-cover strong {
  position: relative;
  z-index: 1;
  padding-right: 0;
  padding-left: 0;
}

.employee-material-card.has-cover .employee-material-card-footer {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
}

.employee-material-card.has-cover h5 {
  min-width: 0;
  flex: 1 1 auto;
  min-height: auto;
  max-width: min(100%, 560px);
  margin: 0;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(19, 13, 8, 0.36);
}

.employee-material-card.has-cover .employee-card-progress-row {
  width: 100%;
  margin-top: 8px;
}

.employee-material-card.has-cover .employee-card-progress {
  background: rgba(255, 255, 255, 0.48);
}

.employee-material-card.has-cover .employee-card-progress-row small,
.employee-material-card.has-cover strong {
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(19, 13, 8, 0.3);
}

.employee-material-card.has-cover strong {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin: 0;
  font-weight: 650;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .kb-body.kb-employee-mode .employee-material-card.has-cover button {
    min-height: 260px;
    padding: 18px;
  }

  .kb-body.kb-employee-mode .employee-material-card.has-cover h5 {
    max-width: min(100%, 430px);
    font-size: 22px;
    line-height: 1.18;
  }

  .kb-body.kb-employee-mode .employee-material-card.has-cover .employee-material-card-footer {
    align-items: flex-start;
    gap: 10px;
  }

  .kb-body.kb-employee-mode .employee-material-card.has-cover strong {
    max-width: 46%;
    white-space: normal;
  }
}

.kb-rich-editor-host.is-uploading-image .kb-rich-editor-shell {
  cursor: progress;
}

.kb-rich-editor-host.is-uploading-image [data-rich-editor-hint]::before {
  content: "Загружаем изображение… ";
  color: var(--kb-accent-strong);
  font-weight: 760;
}

.kb-body.kb-admin-console-mode {
  --kb-nav-width: 245px;
  --kb-rich-toolbar-sticky-top: 14px;
  --kb-rich-image-panel-sticky-top: 60px;
  --sirius-bg: #fbfaf7;
  --sirius-soft-line: #f1e8de;
  --sirius-gold-strong: #a56f2a;
  background: var(--sirius-bg, #fbfaf7);
}

.kb-body.kb-admin-console-mode .kb-app {
  grid-template-columns: var(--kb-nav-width) minmax(0, 1fr);
  background: var(--sirius-bg, #fbfaf7);
}

.kb-body.kb-admin-console-mode.kb-nav-collapsed .kb-app {
  grid-template-columns: 0 minmax(0, 1fr);
}

.kb-body.kb-admin-console-mode .kb-nav-shell {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: var(--kb-nav-width);
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 30px 14px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  border-right: 1px solid var(--sirius-soft-line, #f1e8de);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.kb-body.kb-admin-console-mode .kb-brand-band {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 34px;
  align-items: stretch;
  min-height: 0;
  padding: 0;
}

.kb-body.kb-admin-console-mode .kb-brand-home {
  display: flex;
  justify-content: flex-start;
  padding: 0 8px;
}

.kb-body.kb-admin-console-mode .kb-brand-logo {
  width: 176px;
  height: auto;
  margin: 0;
  mix-blend-mode: multiply;
}

.kb-body.kb-admin-console-mode .kb-active-role-title {
  display: none !important;
}

.kb-body.kb-admin-console-mode .kb-role-preview {
  width: 100%;
  margin-top: auto;
  padding: 10px;
  border-color: rgba(230, 223, 212, 0.76);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

.kb-body.kb-admin-console-mode .kb-role-preview select {
  min-height: 42px;
  border-radius: 9px;
  background: #fffdf9;
  font-size: 13px;
}

.kb-body.kb-admin-console-mode .kb-admin-menu {
  display: grid !important;
  gap: 12px;
  margin-top: 0;
  padding: 0;
}

.kb-body.kb-admin-console-mode .kb-admin-menu-item {
  min-height: 52px;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #4d4945;
  font-size: 16px;
  font-weight: 620;
  box-shadow: none;
}

.kb-body.kb-admin-console-mode .kb-admin-menu-item .kb-icon {
  width: 22px;
  height: 22px;
  color: #9a938b;
}

.kb-body.kb-admin-console-mode .kb-admin-menu-item:hover,
.kb-body.kb-admin-console-mode .kb-admin-menu-item:focus-visible {
  border-color: rgba(215, 154, 67, 0.16);
  background: rgba(251, 239, 217, 0.5);
  color: var(--sirius-gold-strong, #a56f2a);
  outline: none;
  transform: translateY(-1px);
  box-shadow: none;
}

.kb-body.kb-admin-console-mode .kb-admin-menu-item.is-active {
  border-color: rgba(215, 154, 67, 0.18);
  background: linear-gradient(135deg, rgba(251, 239, 217, 0.94) 0%, rgba(255, 247, 233, 0.76) 100%);
  color: var(--sirius-gold-strong, #a56f2a);
  box-shadow: 0 14px 30px rgba(173, 111, 42, 0.08);
}

.kb-body.kb-admin-console-mode .kb-admin-menu-item.is-active .kb-icon,
.kb-body.kb-admin-console-mode .kb-admin-menu-item:hover .kb-icon {
  color: var(--sirius-gold-strong, #a56f2a);
}

.kb-body.kb-admin-console-mode .sirius-sidebar-footer {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 22px 10px 0;
  color: #8e8881;
  font-size: 12px;
  line-height: 1.45;
}

.kb-body.kb-admin-console-mode .sirius-sidebar-footer p {
  margin: 0;
}

@media (max-width: 1320px) {
  .sirius-admin-roles-table .sirius-admin-table-head,
  .sirius-admin-roles-table .sirius-admin-table-row,
  .sirius-admin-materials-table .sirius-admin-table-head,
  .sirius-admin-materials-table .sirius-admin-table-row,
  .sirius-admin-achievements-table .sirius-admin-table-head,
  .sirius-admin-achievements-table .sirius-admin-table-row {
    grid-template-columns: minmax(240px, 1fr) minmax(180px, 1fr) 120px 110px;
  }

  .sirius-admin-table-head span:nth-last-child(2),
  .sirius-admin-table-row > span:nth-last-child(2) {
    display: none;
  }

  .sirius-admin-roles-command {
    grid-template-columns: 1fr;
  }

  .sirius-admin-roles-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sirius-admin-card {
    padding: 22px;
    border-radius: 16px;
  }

  .sirius-admin-card-head,
  .sirius-admin-editor-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sirius-admin-primary,
  .sirius-admin-secondary {
    width: 100%;
  }

  .sirius-admin-table-head {
    display: none;
  }

  .sirius-admin-card--roles .sirius-admin-card-head {
    align-items: stretch;
  }

  .sirius-admin-role-grid,
  .sirius-admin-role-facts {
    grid-template-columns: 1fr;
  }

  .sirius-admin-roles-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sirius-admin-role-card-head,
  .sirius-admin-role-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sirius-admin-roles-table .sirius-admin-table-row,
  .sirius-admin-materials-table .sirius-admin-table-row,
  .sirius-admin-achievements-table .sirius-admin-table-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 18px;
  }

  .sirius-admin-actions-cell {
    justify-content: flex-start;
  }

  .sirius-admin-form-grid,
  .sirius-admin-simple-grid,
  .sirius-admin-material-manager,
  .sirius-admin-material-form,
  .sirius-admin-integration-facts,
  .sirius-admin-integration-details,
  .sirius-admin-integration-command {
    grid-template-columns: 1fr;
  }

  .sirius-admin-integration-head {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .sirius-admin-integration-head mark {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .sirius-admin-integration-facts div {
    border-left: 0;
    border-top: 1px solid rgba(81, 64, 44, 0.08);
  }

  .sirius-admin-integration-facts div:first-child {
    border-top: 0;
  }

  .sirius-admin-material-editor-head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .sirius-admin-material-editor-head .sirius-admin-editor-actions {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .sirius-admin-editor-status {
    justify-content: flex-start;
  }

  .sirius-admin-editor-command-group {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .sirius-admin-material-access > div {
    grid-template-columns: 1fr;
  }

  .kb-rich-image-panel {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

}

@media (max-width: 620px) {
  .kb-body.kb-admin-console-mode .kb-app,
  .kb-body.kb-admin-console-mode.kb-nav-collapsed .kb-app {
    grid-template-columns: minmax(0, 1fr);
  }

  .kb-body.kb-admin-console-mode .kb-workspace {
    grid-column: 1;
  }

  .kb-body.kb-admin-console-mode .kb-nav-shell {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(370px, calc(100vw - 38px));
    height: 100vh;
    padding: 18px 14px 24px;
    transform: translateX(-108%);
    transition: transform 180ms ease;
    box-shadow: 24px 0 56px rgba(17, 19, 26, 0.16);
  }

  .kb-body.kb-admin-console-mode .kb-nav-shell.is-open {
    transform: translateX(0);
  }

  .kb-body.kb-admin-console-mode .kb-workspace {
    padding: 92px 16px 34px;
  }

  .kb-body.kb-admin-console-mode .kb-workspace-grid {
    max-width: none;
  }

  .kb-body.kb-admin-console-mode .kb-content.admin-dashboard {
    padding-bottom: 28px;
  }

  .kb-admin-menu {
    margin-top: 16px;
  }

  .kb-admin-menu-item {
    min-height: 50px;
  }

  .sirius-admin-console {
    gap: 16px;
  }

  .sirius-admin-card {
    padding: 18px;
  }

  .sirius-admin-material-tree,
  .sirius-admin-material-editor-shell {
    padding: 14px;
    border-radius: 14px;
  }

  .sirius-admin-material-tools {
    grid-template-columns: 1fr;
  }

  .sirius-admin-material-row {
    grid-template-columns: 36px minmax(0, 1fr);
    padding-left: calc(10px + var(--material-depth, 0) * 12px);
  }

  .sirius-admin-material-row .sirius-admin-iconbox {
    width: 36px;
    height: 36px;
  }

  .sirius-admin-material-editor-head {
    padding: 16px;
  }

  .sirius-admin-material-editor-head h4 {
    font-size: 30px;
    overflow-wrap: anywhere;
  }

  .kb-rich-editor-shell .kb-rich-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .kb-rich-editor-shell .ql-formats {
    flex: 0 0 auto;
  }

  .kb-rich-editor-shell .ql-editor {
    min-height: 320px;
    padding: 22px;
    font-size: 16px;
  }

  .kb-rich-editor-shell .kb-tiptap-editor {
    min-height: 320px;
    padding: 22px;
    font-size: 16px;
  }

  .kb-rich-editor-shell .ql-editor.ql-blank::before {
    top: 22px;
    right: 22px;
    left: 22px;
  }

  .kb-rich-editor-shell .ql-editor h1 {
    font-size: 32px;
  }

  .kb-rich-editor-shell .kb-tiptap-editor h1 {
    font-size: 32px;
  }

  .kb-rich-editor-shell .ql-editor h2 {
    font-size: 26px;
  }

  .kb-rich-editor-shell .kb-tiptap-editor h2 {
    font-size: 26px;
  }

  .kb-rich-editor-shell .ql-editor h3 {
    font-size: 22px;
  }

  .kb-rich-editor-shell .kb-tiptap-editor h3 {
    font-size: 22px;
  }

  .sirius-admin-card-head h3 {
    font-size: 30px;
  }

  .sirius-admin-entity {
    grid-template-columns: 44px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .sirius-admin-material-library-head,
  .sirius-admin-material-editor-head,
  .sirius-admin-draft-recovery,
  .sirius-admin-chapter-lessons > div:first-child {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .sirius-admin-material-library-head,
  .sirius-admin-material-editor-head,
  .sirius-admin-chapter-lessons > div:first-child {
    flex-direction: column;
  }

  .sirius-admin-material-summary,
  .sirius-admin-material-toolbar,
  .sirius-admin-material-toolbar-main,
  .sirius-admin-material-chapter-map {
    grid-template-columns: 1fr;
  }

  .sirius-admin-material-summary {
    justify-self: stretch;
  }

  .sirius-admin-material-toolbar-head {
    flex-direction: column;
  }

  .sirius-admin-material-toolbar-head small {
    align-self: flex-start;
  }

  .sirius-admin-material-toolbar-actions {
    justify-content: flex-start;
  }

  .sirius-admin-draft-recovery > div:last-child {
    justify-content: flex-start;
  }

  .sirius-admin-material-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .sirius-admin-material-main {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  .sirius-admin-material-open {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .sirius-admin-material-row-actions {
    justify-content: flex-start;
    margin-left: 36px;
    padding: 5px;
  }

  .sirius-admin-cover-uploader,
  .sirius-admin-material-form {
    grid-template-columns: 1fr;
  }

  .sirius-admin-cover-preview,
  .sirius-admin-cover-preview img {
    min-height: 0;
  }

  .employee-lesson-test-head,
  .employee-lesson-test-start,
  .employee-lesson-test-ready,
  .employee-lesson-test-result-actions,
  .sirius-admin-material-test-summary,
  .kb-test-head,
  .kb-test-editor-head,
  .kb-test-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .employee-lesson-test {
    padding: 18px;
  }

  .employee-lesson-test-head > span {
    width: fit-content;
  }

  .employee-lesson-gate-note {
    grid-template-columns: 1fr;
  }

  .kb-test-footer > div {
    justify-content: stretch;
  }

  .kb-test-footer > div > button,
  .employee-lesson-test-start button,
  .employee-lesson-test-result-actions button {
    width: 100%;
  }
}

.kb-body.kb-employee-mode .employee-reading-actions {
  position: static;
  justify-content: flex-start;
  width: fit-content;
  max-width: calc(100vw - var(--kb-nav-width) - 48px);
  margin: 0 0 42px clamp(28px, 5vw, 76px);
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
}

.kb-body.kb-employee-mode.kb-nav-collapsed .employee-reading-actions {
  max-width: calc(100vw - 48px);
}

.sirius-admin-segmented {
  display: inline-flex;
  gap: 4px;
  width: fit-content;
  padding: 4px;
  border: 1px solid rgba(166, 124, 61, 0.18);
  border-radius: 10px;
  background: rgba(255, 252, 246, 0.74);
}

.sirius-admin-segmented button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--sirius-muted, var(--kb-muted, #7d7b78));
  font: 800 13px/1 "Manrope", "Segoe UI", sans-serif;
  cursor: pointer;
}

.sirius-admin-segmented button.is-active {
  background: #fff;
  color: var(--sirius-gold-strong, #a56f2a);
  box-shadow: 0 8px 18px rgba(83, 56, 22, 0.1);
}

.sirius-regulation-list {
  display: grid;
  gap: 10px;
}

.sirius-regulation-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.sirius-regulation-row mark {
  justify-self: end;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(166, 124, 61, 0.08);
  color: var(--sirius-gold-strong, #a56f2a);
  font: 800 12px/1 "Manrope", "Segoe UI", sans-serif;
  white-space: nowrap;
}

.sirius-regulation-row.pending mark,
.employee-regulation-status.pending {
  background: rgba(190, 126, 42, 0.1);
  color: #9b621e;
}

.sirius-regulation-row.updated mark,
.employee-regulation-status.updated {
  background: rgba(156, 91, 47, 0.12);
  color: #8b4d2a;
}

.sirius-regulation-row.done mark,
.employee-regulation-status.done {
  background: rgba(80, 138, 98, 0.12);
  color: #326e43;
}

.employee-regulation-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-weight: 800;
}

.employee-regulation-card .employee-reading-head {
  align-items: flex-start;
}

.employee-ack-date {
  align-self: center;
  color: var(--sirius-muted, var(--kb-muted, #7d7b78));
  font: 700 13px/1.35 "Manrope", "Segoe UI", sans-serif;
}

.role-regulation-matrix .role-chapter-row {
  grid-template-columns: minmax(0, 1fr) 112px;
}

@media (max-width: 720px) {
  .sirius-learning-toolbar,
  .sirius-learning-layout,
  .sirius-learning-metrics,
  .sirius-learning-employee-main {
    grid-template-columns: 1fr;
  }

  .sirius-learning-toolbar {
    align-items: stretch;
  }

  .sirius-learning-section-head {
    display: grid;
  }

  .sirius-learning-search {
    min-width: 0;
  }

  .sirius-learning-employee-main {
    justify-items: start;
  }

  .sirius-learning-pill {
    justify-self: start;
  }

  .sirius-learning-progress {
    width: 100%;
  }

  .sirius-learning-employee-meta,
  .sirius-learning-lessons {
    padding-left: 16px;
  }

  .sirius-learning-lesson {
    grid-template-columns: 12px minmax(0, 1fr);
  }

  .sirius-learning-lesson em {
    grid-column: 2;
  }

  .kb-body.kb-employee-mode .employee-reading-actions {
    width: calc(100% - 36px);
    max-width: none;
    display: grid;
    grid-template-columns: 1fr;
    margin: 0 18px 24px;
    box-shadow: 0 18px 40px rgba(66, 48, 27, 0.1);
  }

  .kb-body.kb-employee-mode .employee-reading-actions > button {
    width: 100%;
  }

  .sirius-regulation-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sirius-regulation-row mark,
  .sirius-regulation-row em {
    justify-self: start;
    grid-column: 2;
  }
}

.kb-content-loading {
  display: grid;
  min-height: min(520px, 62vh);
  place-items: center;
  padding: 48px 20px;
}

.kb-loading-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 360px;
  padding: 28px;
  border: 1px solid rgba(166, 124, 61, 0.16);
  border-radius: 28px;
  background: rgba(255, 252, 246, 0.92);
  box-shadow: 0 20px 60px rgba(38, 31, 23, 0.08);
  color: var(--sirius-muted);
  text-align: center;
}

.kb-loading-card strong {
  color: var(--sirius-ink);
  font-family: var(--sirius-serif);
  font-size: 30px;
  line-height: 1.1;
}

.kb-loading-spinner {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(166, 124, 61, 0.14);
  border-top-color: var(--sirius-gold);
  border-radius: 999px;
  animation: siriusSpin 0.85s linear infinite;
}

@keyframes siriusSpin {
  to {
    transform: rotate(360deg);
  }
}
