@layer legacy {

/* ===== Knowledge rendered registry mode ===== */
.knowledge-grid {
  display: grid ;
  grid-template-columns: repeat(auto-fill, minmax(76px, 76px)) ;
  gap: 10px ;
  justify-content: start ;
}

                                                      
.knowledge-operation-link {
  color: #8ecbff;
  font: inherit;
  text-decoration: none;
}

button.knowledge-operation-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.knowledge-structure-list {
  margin: 0;
  padding-left: 20px;
}

.knowledge-structure-link,
.knowledge-item-description-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8ecbff;
  font: inherit;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
}

.knowledge-structure-link:hover,
.knowledge-item-description-link:hover {
  color: #c7e7ff;
  text-decoration: none;
}

.knowledge-structure-link:focus-visible,
.knowledge-item-description-link:focus-visible {
  border-radius: 3px;
  outline: 2px solid #ffd763;
  outline-offset: 2px;
}

.knowledge-operation-link:hover,
.knowledge-operation-link:focus-visible,
.knowledge-operation-race-link:hover,
.knowledge-operation-race-link:focus-visible {
  color: #c7e7ff;
  text-decoration: none;
}

.knowledge-operation-message,
.knowledge-operation-screen {
  margin: 18px 0 0;
}

.knowledge-operation-message img {
  display: block;
  width: 170px;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.knowledge-level-preview {
  margin: 20px 0 0;
}

.knowledge-level-preview img {
  display: block;
  width: 255px;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

/* ===== Knowledge: medicines, vaccines and syringes ===== */
.knowledge-medicine-table-wrap {
  margin: 16px 0;
  overflow-x: auto;
}

.knowledge-medicine-table {
  width: 100%;
  border-collapse: collapse;
  color: #ffffff;
  font-size: 0.95rem;
}

.knowledge-medicine-table th,
.knowledge-medicine-table td {
  padding: 12px 14px;
  border: 1px solid rgba(107, 190, 255, 0.2);
  text-align: left;
  color: #ffffff;
  font-weight: 400;
}

.knowledge-medicine-table th {
  background: rgba(15, 31, 49, 0.82);
}

.knowledge-medicine-table td {
  background: rgba(15, 31, 49, 0.58);
}

.knowledge-medicines-article,
.knowledge-medicines-article p {
  color: #ffffff;
}

.knowledge-medicines-article .knowledge-medicine-level-note {
  color: rgba(220, 229, 244, 0.72);
  font-size: 0.84rem;
  line-height: 1.45;
}

.knowledge-medicine-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.knowledge-medicine-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 44px;
  color: #ffffff;
}

.knowledge-medicine-row__title {
  min-width: 210px;
  font-weight: 400;
}

.knowledge-medicine-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.knowledge-medicine-tier {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  transition: filter 0.16s ease, transform 0.16s ease;
}

.knowledge-medicine-tier:hover,
.knowledge-medicine-tier:focus-visible {
  filter: brightness(1.14);
  transform: translateY(-1px);
  outline: none;
}

.knowledge-medicine-tier__icon,
.knowledge-medicine-tier__icon .knowledge-site-item-icon {
  display: grid;
  place-items: center;
  width: 44px ;
  height: 44px ;
  margin: 0 ;
  overflow: hidden;
  background: transparent ;
  box-shadow: none ;
}

.knowledge-medicine-tier__icon .knowledge-card-icon {
  display: block ;
  width: 40px ;
  height: 40px ;
  max-width: none ;
  max-height: none ;
  margin: auto ;
  object-fit: contain ;
  object-position: center ;
}

.knowledge-medicine-tier__level {
  position: absolute;
  right: 2px;
  bottom: 1px;
  min-width: 14px;
  padding: 0 2px;
  border-radius: 4px;
  color: #dff8ff;
  background: rgba(0, 8, 16, 0.9);
  font-size: 8px;
  font-weight: 900;
  line-height: 13px;
  text-align: center;
}

@media (max-width: 560px) {
  .knowledge-medicine-row__title {
    min-width: 100%;
  }
}

.knowledge-operation-process {
  display: grid;
  grid-template-columns: 527px minmax(240px, 1fr);
  align-items: stretch;
  gap: 22px;
}

.knowledge-operation-process .knowledge-operation-screen {
  margin: 0;
}

.knowledge-operation-screen img {
  display: block;
  width: 527px;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
}

.knowledge-operation-process__aside > p {
  margin: 0;
  transform: translateY(-5px);
}

.knowledge-operation-process__aside {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.knowledge-operation-tools {
  --knowledge-operation-tool-size:104px;
  display: grid;
  grid-template-columns: repeat(2, var(--knowledge-operation-tool-size));
  grid-template-rows: repeat(5, var(--knowledge-operation-tool-size));
  align-content: space-between;
  justify-content: start;
  gap: 0 24px;
  flex: 1 1 auto;
  width:100%;
  margin: 20px 0 2px;
}

.knowledge-operation-tool {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--knowledge-operation-tool-size);
  height: var(--knowledge-operation-tool-size);
  min-width: var(--knowledge-operation-tool-size);
  min-height: var(--knowledge-operation-tool-size);
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  cursor: help;
  transition: filter 160ms ease, transform 160ms ease;
}

.knowledge-operation-tool:hover,
.knowledge-operation-tool:focus-visible {
  z-index: 20;
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.knowledge-operation-tool:focus-visible {
  outline: 2px solid rgba(93, 198, 242, 0.75);
  outline-offset: 3px;
}

.knowledge-operation-tool > img {
  display: block;
  width: var(--knowledge-operation-tool-size);
  height: var(--knowledge-operation-tool-size);
  image-rendering: pixelated;
}

.knowledge-operation-tool__tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 30;
  width: max-content;
  max-width: min(280px, 76vw);
  padding: 12px 14px;
  border: 1px solid rgba(93, 198, 242, 0.55);
  border-radius: 10px;
  color: #e9f4ff;
  background: rgba(5, 17, 29, 0.98);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.42);
  text-align: left;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 140ms ease, visibility 140ms ease, transform 140ms ease;
}

.knowledge-operation-tool__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  border: 7px solid transparent;
  border-top-color: rgba(5, 17, 29, 0.98);
  transform: translateX(-50%);
}

.knowledge-operation-tool:hover .knowledge-operation-tool__tooltip,
.knowledge-operation-tool:focus-visible .knowledge-operation-tool__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.knowledge-operation-tool__tooltip strong,
.knowledge-operation-tool__tooltip > span {
  display: block;
}

.knowledge-operation-tool__tooltip strong {
  margin-bottom: 7px;
  color: #8fd8ff;
  font-size: 15px;
}

.knowledge-operation-tool__tooltip > span {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
}

.knowledge-operation-tool__tooltip ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
}

.knowledge-operation-components-section {
  margin-top: 28px;
}

.knowledge-operation-components-section > h3 {
  margin-bottom: 14px;
}

.knowledge-operation-components {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.knowledge-operation-components > li {
  display: grid;
  grid-template-columns: max-content 4px minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  min-height: 42px;
}

.knowledge-operation-race-link {
  color: #8ecbff;
  font-weight: 700;
  text-decoration: none;
}

.knowledge-operation-components__colon {
  align-self: center;
}

.knowledge-operation-components__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.knowledge-operation-component {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.knowledge-operation-component > img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.knowledge-operation-component__count {
  position: absolute;
  right: 0;
  bottom: -1px;
  z-index: 1;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-shadow: -1px -1px 0 #101820, 1px -1px 0 #101820, -1px 1px 0 #101820, 1px 1px 0 #101820;
  pointer-events: none;
}

.knowledge-operation-component:hover > img,
.knowledge-operation-component:focus-visible > img {
  filter: brightness(1.15);
}

.knowledge-operation-component:focus-visible,
.knowledge-operation-race-link:focus-visible,
.knowledge-operation-link:focus-visible {
  border-radius: 3px;
  outline: 2px solid #ffd763;
  outline-offset: 2px;
}

@media (max-width: 1250px) {
  .knowledge-operation-process {
    grid-template-columns: 1fr;
  }

  .knowledge-operation-tools {
    --knowledge-operation-tool-size:78px;
    grid-template-columns: repeat(2, 78px);
    grid-template-rows: repeat(5, 78px);
    align-content: start;
    justify-content: start;
    flex: none;
    gap: 24px 24px;
  }

  .knowledge-operation-process__aside {
    height: auto;
  }
}

@media (max-width: 520px) {
  .knowledge-operation-tools {
    gap: 24px 24px;
  }

  .knowledge-operation-components > li {
    grid-template-columns: max-content 4px minmax(0, 1fr);
    align-items: start;
  }
}

.knowledge-card.knowledge-card--icon-only,
.knowledge-card {
  min-height: 0 ;
}

.knowledge-card--icon-only {
  width: 76px ;
  height: 76px ;
  padding: 5px ;
  align-items: center ;
  justify-content: center ;
  gap: 0 ;
  border-radius: 18px ;
}

.knowledge-card--icon-only .knowledge-card-badge,
.knowledge-card--icon-only .knowledge-card-title,
.knowledge-card--icon-only .knowledge-card-description,
.knowledge-card--icon-only .knowledge-card-footnote,
.knowledge-card--icon-only .knowledge-card-icon-fallback {
  display: none ;
}

.knowledge-icon-box--rendered {
  width: 64px ;
  height: 64px ;
  display: flex ;
  align-items: center ;
  justify-content: center ;
  border-radius: 16px ;
  overflow: hidden ;
}

.knowledge-icon-box--rendered .knowledge-card-icon {
  width: 58px ;
  height: 58px ;
  object-fit: contain ;
  image-rendering: auto ;
}

.knowledge-empty {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(86, 123, 163, 0.22);
  background: rgba(15, 31, 49, 0.9);
  color: #dce5f4;
}

.knowledge-modal-open {
  overflow: hidden;
}

.knowledge-modal[hidden] {
  display: none ;
}

.knowledge-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.knowledge-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 18, 0.72);
  backdrop-filter: blur(4px);
}

.knowledge-modal-dialog {
  position: relative;
  width: min(700px, calc(100vw - 32px));
  margin: 72px auto;
  padding: 22px;
}

.knowledge-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(88, 126, 167, 0.3);
  border-radius: 12px;
  background: rgba(15, 31, 49, 0.9);
  color: #f6f8ff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.knowledge-modal-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.knowledge-modal-preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border-radius: 22px;
  border: 1px solid rgba(90, 125, 161, 0.22);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.06), transparent 38%),
    linear-gradient(180deg, rgba(31, 48, 68, 0.94), rgba(20, 33, 51, 0.94));
}

.knowledge-modal-image {
  width: 160px;
  height: 160px;
  object-fit: contain;
  image-rendering: auto;
}

.knowledge-modal-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8ef3ff;
}

.knowledge-modal-title {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.05;
}

.knowledge-modal-meta {
  margin: 0;
  display: grid;
  gap: 10px;
}

.knowledge-modal-meta-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 31, 49, 0.9);
  border: 1px solid rgba(88, 126, 167, 0.2);
}

.knowledge-modal-meta dt {
  color: rgba(220, 229, 244, 0.72);
  font-weight: 700;
}

.knowledge-modal-meta dd {
  margin: 0;
  word-break: break-word;
  color: #f6f8ff;
}

@media (max-width: 760px) {
  .knowledge-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 70px)) ;
  }

  .knowledge-card--icon-only {
    width: 70px ;
    height: 70px ;
  }

  .knowledge-icon-box--rendered {
    width: 58px ;
    height: 58px ;
  }

  .knowledge-icon-box--rendered .knowledge-card-icon {
    width: 52px ;
    height: 52px ;
  }

  .knowledge-modal-dialog {
    margin: 24px auto;
    padding: 16px;
  }

  .knowledge-modal-body {
    grid-template-columns: 1fr;
  }

  .knowledge-modal-preview-box {
    min-height: 180px;
  }
}


.knowledge-card.is-missing-icon .knowledge-icon-box--rendered::after {
  content: '?';
  color: rgba(255, 255, 255, 0.45);
  font-size: 24px;
  font-weight: 900;
}

.knowledge-card.is-missing-icon .knowledge-card-icon {
  display: none ;
}

/* ===== Knowledge admin panel ===== */
.knowledge-category-button--admin {
  border-color: rgba(255, 215, 99, 0.42) ;
  background: linear-gradient(180deg, rgba(58, 48, 24, 0.96), rgba(31, 36, 45, 0.96)) ;
}

.knowledge-admin-root {
  display: block ;
}

.knowledge-admin-panel {
  display: grid;
  gap: 14px;
  width: 100%;
}

.knowledge-admin-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(88, 126, 167, 0.24);
  background: rgba(15, 31, 49, 0.86);
}

.knowledge-admin-main-button,
.knowledge-admin-save,
.knowledge-admin-form button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(108, 227, 255, 0.36);
  background: linear-gradient(180deg, rgba(21, 53, 82, 0.96), rgba(16, 40, 64, 0.96));
  color: #f6f8ff;
  font-weight: 900;
  cursor: pointer;
}

.knowledge-admin-save {
  border-color: rgba(234, 194, 80, 0.42);
  color: #ffd763;
}

.knowledge-admin-save:disabled {
  cursor: wait;
  opacity: 0.7;
}

.knowledge-admin-search,
.knowledge-admin-select,
.knowledge-admin-form input,
.knowledge-admin-form select,
.knowledge-admin-row-select {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(88, 126, 167, 0.28);
  background: rgba(7, 20, 34, 0.9);
  color: #f6f8ff;
  padding: 0 12px;
  outline: none;
}

.knowledge-admin-search {
  flex: 1 1 260px;
}

.knowledge-admin-message {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(234, 194, 80, 0.28);
  background: rgba(52, 63, 78, 0.42);
  color: #ffd763;
  font-weight: 800;
}

.knowledge-admin-box {
  border-radius: 18px;
  border: 1px solid rgba(88, 126, 167, 0.24);
  background: rgba(15, 31, 49, 0.72);
  padding: 12px;
}

.knowledge-admin-box summary {
  cursor: pointer;
  font-weight: 900;
  color: #8ef3ff;
}

.knowledge-admin-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.knowledge-admin-form--category {
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) minmax(220px, 2fr) auto;
}

.knowledge-admin-form--item {
  grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 1fr) 120px 150px minmax(180px, 1fr) auto;
}

.knowledge-admin-hint {
  margin: 10px 0 0;
  color: rgba(220, 229, 244, 0.72);
  font-size: 13px;
}

.knowledge-admin-list-head,
.knowledge-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 12px;
  align-items: center;
}

.knowledge-admin-list-head {
  padding: 0 12px;
  color: rgba(220, 229, 244, 0.72);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.knowledge-admin-list {
  display: grid;
  gap: 8px;
  max-height: 64vh;
  overflow: auto;
  padding-right: 4px;
}

.knowledge-admin-row {
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(88, 126, 167, 0.22);
  background: rgba(15, 31, 49, 0.72);
}

.knowledge-admin-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.knowledge-admin-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(90, 125, 161, 0.22);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.06), transparent 38%),
    linear-gradient(180deg, rgba(31, 48, 68, 0.94), rgba(20, 33, 51, 0.94));
}

.knowledge-admin-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.knowledge-admin-icon.is-missing::after {
  content: '?';
  color: rgba(255, 255, 255, 0.45);
  font-size: 20px;
  font-weight: 900;
}

.knowledge-admin-icon.is-missing img {
  display: none;
}

.knowledge-admin-item-text {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.knowledge-admin-item-text strong,
.knowledge-admin-item-text small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-admin-item-text small {
  color: rgba(220, 229, 244, 0.72);
}

@media (max-width: 980px) {
  .knowledge-admin-form--category,
  .knowledge-admin-form--item,
  .knowledge-admin-list-head,
  .knowledge-admin-row {
    grid-template-columns: 1fr;
  }

  .knowledge-admin-list-head {
    display: none;
  }
}

                                                 
.knowledge-content,
.knowledge-panel,
.knowledge-admin-root,
.knowledge-admin-panel {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.knowledge-content {
  overflow: hidden;
}

.knowledge-admin-root {
  width: 100% ;
  overflow: hidden ;
}

.knowledge-admin-panel {
  width: 100%;
  overflow: hidden;
}

.knowledge-admin-toolbar {
  display: grid ;
  grid-template-columns: auto minmax(180px, 1fr) minmax(130px, 170px) minmax(150px, auto) auto;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.knowledge-admin-search,
.knowledge-admin-select,
.knowledge-admin-form input,
.knowledge-admin-form select,
.knowledge-admin-row-select,
.knowledge-admin-category-row input {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.knowledge-admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(88, 126, 167, 0.28);
  background: rgba(7, 20, 34, 0.78);
  color: rgba(246, 248, 255, 0.9);
  font-weight: 800;
  white-space: nowrap;
}

.knowledge-admin-box,
.knowledge-admin-list,
.knowledge-admin-list-head,
.knowledge-admin-row {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.knowledge-admin-list {
  overflow: auto;
  padding-right: 4px;
}

.knowledge-admin-list-head,
.knowledge-admin-row {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 230px) minmax(78px, 98px) ;
}

.knowledge-admin-row-select {
  width: 100%;
}

.knowledge-admin-row-select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.knowledge-admin-delete-item,
.knowledge-admin-category-row button,
.knowledge-admin-danger {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(88, 126, 167, 0.3);
  background: rgba(15, 31, 49, 0.9);
  color: #f6f8ff;
  font-weight: 900;
  cursor: pointer;
}

.knowledge-admin-delete-item,
.knowledge-admin-danger {
  border-color: rgba(255, 105, 105, 0.42);
  color: #ffb3b3;
}

.knowledge-admin-row.is-hidden-item {
  opacity: 0.66;
  border-style: dashed;
}

.knowledge-admin-row.is-hidden-item .knowledge-admin-delete-item {
  border-color: rgba(142, 243, 255, 0.36);
  color: #8ef3ff;
}

.knowledge-admin-empty {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(88, 126, 167, 0.22);
  color: rgba(220, 229, 244, 0.78);
  background: rgba(15, 31, 49, 0.72);
}

.knowledge-admin-category-manager {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.knowledge-admin-category-row {
  display: grid;
  grid-template-columns: minmax(70px, 120px) 78px minmax(120px, 1fr) minmax(160px, 1.4fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(88, 126, 167, 0.2);
  background: rgba(7, 20, 34, 0.5);
  max-width: 100%;
  box-sizing: border-box;
}

.knowledge-admin-category-id {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(220, 229, 244, 0.72);
  font-weight: 900;
}

.knowledge-admin-category-row input {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(88, 126, 167, 0.28);
  background: rgba(7, 20, 34, 0.9);
  color: #f6f8ff;
  padding: 0 12px;
  outline: none;
}

@media (max-width: 1180px) {
  .knowledge-admin-toolbar,
  .knowledge-admin-category-row {
    grid-template-columns: 1fr ;
  }

  .knowledge-admin-list-head,
  .knowledge-admin-row {
    grid-template-columns: 1fr ;
  }

  .knowledge-admin-list-head {
    display: none ;
  }
}


                                                   
.knowledge-admin-category-order {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  min-width: 0;
}

.knowledge-admin-category-order button,
.knowledge-admin-category-row button:disabled {
  min-height: 40px;
}

.knowledge-admin-category-order button:disabled,
.knowledge-admin-category-row button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

                                                           
.knowledge-content {
  overflow: hidden;
}

.knowledge-top-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(88, 126, 167, 0.22);
  background: rgba(10, 24, 39, 0.55);
}

.knowledge-top-tab {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 13px;
  border: 1px solid rgba(88, 126, 167, 0.24);
  background: rgba(15, 31, 49, 0.9);
  color: rgba(238, 244, 255, 0.86);
  font-weight: 800;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease;
}

.knowledge-top-tab:hover {
  border-color: rgba(120, 174, 210, 0.38);
  background: rgba(18, 38, 60, 0.96);
}

.knowledge-top-tab.is-active {
  border-color: rgba(120, 174, 210, 0.55);
  background: rgba(23, 48, 74, 0.96);
  color: #ffffff;
}

.knowledge-home-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)) ;
  gap: 14px ;
}

.knowledge-home-card {
  min-height: 150px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(88, 126, 167, 0.24);
  background: rgba(15, 31, 49, 0.82);
  color: #eaf1ff;
  text-align: left;
}

.knowledge-home-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.knowledge-home-card p {
  margin: 0;
  color: rgba(220, 229, 244, 0.82);
  line-height: 1.55;
}

.knowledge-home-card span {
  display: inline-flex;
  margin-top: 16px;
  color: #ffd763;
  font-weight: 900;
}

.knowledge-home-card--button {
  cursor: pointer;
  font: inherit;
}

.knowledge-home-card--button:hover {
  border-color: rgba(120, 174, 210, 0.44);
  background: rgba(18, 38, 60, 0.94);
}

.knowledge-category-button--admin {
  border-color: rgba(234, 194, 80, 0.36) ;
  background: rgba(48, 39, 22, 0.82) ;
}

.knowledge-admin-root {
  display: block ;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.knowledge-admin-panel {
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.knowledge-admin-toolbar,
.knowledge-admin-box,
.knowledge-admin-message,
.knowledge-admin-table-head,
.knowledge-admin-list,
.knowledge-admin-row {
  box-sizing: border-box;
  max-width: 100%;
}

.knowledge-admin-toolbar {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) minmax(130px, 170px) auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(88, 126, 167, 0.24);
  background: rgba(15, 31, 49, 0.76);
}

.knowledge-admin-search,
.knowledge-admin-select,
.knowledge-admin-form input,
.knowledge-admin-form select,
.knowledge-admin-category-row input,
.knowledge-admin-row-select {
  min-width: 0;
  width: 100%;
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(88, 126, 167, 0.24);
  background: rgba(8, 20, 34, 0.9);
  color: #eef4ff;
  padding: 0 12px;
  outline: none;
}

.knowledge-admin-main-button,
.knowledge-admin-save,
.knowledge-admin-form button,
.knowledge-admin-category-row button,
.knowledge-admin-delete-item {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(88, 126, 167, 0.34);
  background: rgba(20, 45, 68, 0.95);
  color: #eef4ff;
  font-weight: 800;
  cursor: pointer;
}

.knowledge-admin-save {
  border-color: rgba(234, 194, 80, 0.42);
  color: #ffd763;
}

.knowledge-admin-save:disabled,
.knowledge-admin-category-row button:disabled {
  opacity: .45;
  cursor: default;
}

.knowledge-admin-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(220, 229, 244, 0.85);
  font-weight: 700;
  white-space: nowrap;
}

.knowledge-admin-box {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(88, 126, 167, 0.22);
  background: rgba(15, 31, 49, 0.62);
}

.knowledge-admin-box summary {
  cursor: pointer;
  color: #9af2ff;
  font-weight: 900;
}

.knowledge-admin-category-manager,
.knowledge-admin-form {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.knowledge-admin-form {
  grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) minmax(110px, 150px) minmax(130px, 1fr) minmax(130px, 1fr) auto;
}

.knowledge-admin-box:not(:has([data-admin-add-item-form])) .knowledge-admin-form {
  grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr) minmax(180px, 2fr) auto;
}

.knowledge-admin-category-row {
  display: grid;
  grid-template-columns: minmax(90px, 120px) auto minmax(140px, 1fr) minmax(170px, 1.3fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(88, 126, 167, 0.18);
  background: rgba(9, 22, 36, 0.58);
}

.knowledge-admin-category-row--top {
  grid-template-columns: minmax(90px, 120px) minmax(160px, 1fr) minmax(200px, 1.4fr) auto;
}

.knowledge-admin-category-id {
  color: rgba(220, 229, 244, 0.7);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
}

.knowledge-admin-category-order {
  display: inline-grid;
  grid-template-columns: 34px 34px;
  gap: 5px;
}

.knowledge-admin-category-order button {
  min-height: 34px;
  padding: 0;
}

.knowledge-admin-danger,
.knowledge-admin-delete-item {
  border-color: rgba(255, 105, 105, 0.34) ;
  color: #ffb8b8 ;
}

.knowledge-admin-hint {
  margin: 10px 0 0;
  color: rgba(220, 229, 244, 0.68);
  font-size: 13px;
  line-height: 1.45;
}

.knowledge-admin-message {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(234, 194, 80, 0.24);
  background: rgba(52, 42, 20, 0.52);
  color: #ffd763;
  font-weight: 800;
}

.knowledge-admin-table-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 230px) 92px;
  gap: 10px;
  padding: 0 10px;
  color: rgba(220, 229, 244, 0.62);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.knowledge-admin-list {
  display: grid;
  gap: 8px;
  max-height: min(66vh, 720px);
  overflow: auto;
  padding-right: 4px;
}

.knowledge-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 230px) 92px;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(88, 126, 167, 0.2);
  background: rgba(12, 27, 44, 0.72);
}

.knowledge-admin-row.is-hidden-item {
  opacity: .62;
}

.knowledge-admin-item-main {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.knowledge-admin-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(88, 126, 167, 0.22);
  background: rgba(8, 20, 34, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
}

.knowledge-admin-icon img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.knowledge-admin-icon.is-missing::after {
  content: '?';
  color: rgba(255,255,255,.45);
  font-weight: 900;
}

.knowledge-admin-icon.is-missing img {
  display: none;
}

.knowledge-admin-item-text {
  min-width: 0;
}

.knowledge-admin-item-text strong,
.knowledge-admin-item-text small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-admin-item-text small {
  color: rgba(220, 229, 244, 0.64);
  margin-top: 3px;
}

.knowledge-admin-empty {
  padding: 18px;
  border-radius: 16px;
  background: rgba(12, 27, 44, 0.72);
  color: rgba(220, 229, 244, 0.76);
}

@media (max-width: 1100px) {
  .knowledge-admin-toolbar,
  .knowledge-admin-form,
  .knowledge-admin-box:not(:has([data-admin-add-item-form])) .knowledge-admin-form,
  .knowledge-admin-category-row,
  .knowledge-admin-category-row--top,
  .knowledge-admin-table-head,
  .knowledge-admin-row {
    grid-template-columns: 1fr;
  }

  .knowledge-admin-table-head {
    display: none;
  }

  .knowledge-admin-category-order {
    grid-template-columns: 1fr 1fr;
  }
}

                                                            
.knowledge-top-tab.knowledge-edit-tab,
.knowledge-category-button--edit {
  color: #ffd763 ;
  border-color: rgba(234, 194, 80, 0.38) ;
  background: rgba(49, 39, 22, 0.82) ;
}

.knowledge-top-tab.knowledge-edit-tab.is-active,
.knowledge-category-button--edit.is-active {
  color: #ffe28a ;
  border-color: rgba(234, 194, 80, 0.58) ;
  background: rgba(63, 49, 24, 0.9) ;
}

.knowledge-editor-panel .knowledge-admin-toolbar--simple {
  grid-template-columns: minmax(180px, auto) auto ;
  justify-content: space-between;
}

.knowledge-admin-category-row--locked {
  border-color: rgba(120, 174, 210, 0.28);
}

.knowledge-admin-category-row--top {
  grid-template-columns: minmax(80px, 120px) 78px minmax(140px, 1fr) minmax(180px, 1.4fr) auto auto ;
}

@media (max-width: 1180px) {
  .knowledge-editor-panel .knowledge-admin-toolbar--simple,
  .knowledge-admin-category-row--top {
    grid-template-columns: 1fr ;
  }
}


                                                                 
.knowledge-count-pill[hidden],
.knowledge-count-pill.is-hidden,
.knowledge-count-pill:empty {
  display: none ;
}

                                                                    
.knowledge-content {
  overflow: hidden;
}

.knowledge-grid {
  width: 100% ;
  min-width: 0 ;
}

.knowledge-items-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 76px));
  gap: 10px;
  justify-content: start;
  width: 100%;
  min-width: 0;
}

.knowledge-subtabs {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(88, 126, 167, 0.22);
  background: rgba(10, 23, 38, 0.62);
}

.knowledge-subtab {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(88, 126, 167, 0.28);
  background: rgba(15, 31, 49, 0.9);
  color: #e9eef8;
  font-weight: 800;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.knowledge-subtab:hover {
  transform: translateY(-1px);
  border-color: rgba(120, 225, 255, 0.34);
  background: rgba(18, 38, 60, 0.94);
}

.knowledge-subtab.is-active {
  border-color: rgba(108, 227, 255, 0.48);
  background: rgba(21, 53, 82, 0.88);
}

.knowledge-subtab b {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(7, 20, 34, 0.8);
  color: #93f6ff;
  font-size: 12px;
  font-weight: 900;
}

.knowledge-subtab--edit,
.knowledge-category-button--edit {
  border-color: rgba(234, 194, 80, 0.42) ;
  background: rgba(58, 48, 24, 0.9) ;
  color: #ffd763 ;
}

.knowledge-article-grid {
  display: block ;
}

.knowledge-article-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(86, 123, 163, 0.24);
  background: rgba(15, 31, 49, 0.88);
  color: #dce5f4;
}

.knowledge-article-card h3 {
  margin: 0 0 10px;
  color: #f6f8ff;
  font-size: 24px;
}

.knowledge-article-card p {
  margin: 8px 0 0;
  line-height: 1.6;
}

.knowledge-home-card--wide {
  grid-column: 1 / -1;
}

.knowledge-category-button .knowledge-category-count:empty {
  display: none ;
}

.knowledge-admin-category-row,
.knowledge-admin-item,
.knowledge-admin-toolbar,
.knowledge-admin-box,
.knowledge-admin-form {
  max-width: 100%;
  min-width: 0;
}

.knowledge-admin-category-row input,
.knowledge-admin-form input,
.knowledge-admin-form select,
.knowledge-admin-toolbar input,
.knowledge-admin-toolbar select,
.knowledge-admin-item select {
  min-width: 0;
}

@media (max-width: 900px) {
  .knowledge-subtabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 12px;
  }

  .knowledge-subtab {
    flex: 0 0 auto;
  }
}


                                       
.knowledge-sidebar-kicker,
.knowledge-content-topline,
.knowledge-content-subtitle,
.knowledge-count-pill,
.knowledge-category-count,
.knowledge-subtab b {
  display: none ;
}

.knowledge-content-header {
  margin-bottom: 16px ;
}

.knowledge-content-title {
  margin-bottom: 0 ;
}

.knowledge-admin-toolbar--filters {
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 180px) auto ;
}

.knowledge-admin-table-head {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 240px) 86px ;
}

.knowledge-admin-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 240px) 86px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(88, 126, 167, 0.18);
  background: rgba(12, 27, 44, 0.68);
  min-height: 54px;
  box-sizing: border-box;
}

.knowledge-admin-item.is-hidden-item {
  opacity: .62;
}

.knowledge-admin-item-info {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
}

.knowledge-admin-mini-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid rgba(88, 126, 167, 0.22);
  background: rgba(8, 20, 34, 0.78);
  overflow: hidden;
}

.knowledge-admin-mini-icon img {
  width: 28px ;
  height: 28px ;
  object-fit: contain ;
  display: block;
}

.knowledge-admin-item-info strong,
.knowledge-admin-item-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-admin-item-info strong {
  font-size: 14px;
  line-height: 1.15;
}

.knowledge-admin-item-info small {
  margin-top: 2px;
  color: rgba(220, 229, 244, 0.64);
  font-size: 11px;
}

.knowledge-admin-item select {
  width: 100%;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(88, 126, 167, 0.24);
  background: rgba(8, 20, 34, 0.9);
  color: #eef4ff;
  padding: 0 9px;
}

.knowledge-admin-item button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(88, 126, 167, 0.3);
  background: rgba(15, 31, 49, 0.9);
  color: #f6f8ff;
  font-weight: 900;
  cursor: pointer;
}

.knowledge-admin-item .knowledge-admin-danger {
  border-color: rgba(255, 105, 105, 0.38) ;
  color: #ffb8b8 ;
}

.knowledge-admin-list {
  gap: 6px ;
  max-height: min(62vh, 650px) ;
}

@media (max-width: 1100px) {
  .knowledge-admin-toolbar--filters,
  .knowledge-admin-table-head,
  .knowledge-admin-item {
    grid-template-columns: 1fr ;
  }
}


                                                                   
.knowledge-page-hero-title {
  padding-bottom: 12px ;
}

.knowledge-page-section {
  padding-top: 0 ;
}

.knowledge-subtabs {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  display: flex ;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 14px ;
  flex-wrap: wrap;
  margin: 0 0 18px ;
  padding: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
}

.knowledge-subtab {
  appearance: none;
  text-decoration: none;
  color: var(--muted) ;
  font: inherit;
  font-weight: 600 ;
  min-height: 50px ;
  padding: 10px 12px 6px ;
  border-radius: 12px ;
  border: 0 ;
  background: transparent ;
  display: grid ;
  grid-template-rows: auto 2px;
  align-items: end;
  justify-items: center;
  gap: 7px ;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.knowledge-subtab::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

.knowledge-subtab:hover {
  transform: none ;
  color: var(--text) ;
  background: rgba(255, 255, 255, 0.03) ;
}

.knowledge-subtab.is-active {
  color: var(--text) ;
  background: transparent ;
}

.knowledge-subtab.is-active::after {
  background: rgba(126, 199, 255, 0.58);
  box-shadow: 0 1px 4px rgba(126, 199, 255, 0.1);
}

.knowledge-subtab-label {
  line-height: 1.1;
  white-space: nowrap;
}

.knowledge-subtab--edit {
  color: #ffd763 ;
  border: 0 ;
  background: transparent ;
}

.knowledge-subtab--edit:hover {
  color: #ffe08a ;
  background: rgba(255, 255, 255, 0.03) ;
}

.knowledge-subtab--edit.is-active {
  color: #ffd763 ;
}

.knowledge-subtab--edit.is-active::after {
  background: rgba(234, 194, 80, 0.78);
  box-shadow: 0 1px 4px rgba(234, 194, 80, 0.12);
}

.knowledge-subtab b,
.knowledge-category-count,
.knowledge-count-pill {
  display: none ;
}

@media (max-width: 900px) {
  .knowledge-subtabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px ;
  }

  .knowledge-subtab {
    flex: 0 0 auto;
  }
}


                                                                      
.knowledge-layout {
  align-items: start ;
}

.knowledge-sidebar {
  position: sticky ;
  top: 12px ;
  align-self: start ;
}

.knowledge-content-header {
  display: flex ;
  align-items: flex-start ;
  justify-content: space-between ;
  gap: 20px ;
}

.knowledge-content-header > div:first-child {
  min-width: 0 ;
}

.knowledge-header-action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 12px;
  margin-left: auto;
}

.knowledge-header-edit-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #ffd763;
  font: inherit;
  font-weight: 700;
  line-height: 1.1;
  padding: 8px 0 7px;
  cursor: pointer;
  display: inline-grid;
  grid-template-rows: auto 2px;
  gap: 7px;
}

.knowledge-header-edit-button::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

.knowledge-header-edit-button:hover {
  color: #ffe08a;
}

.knowledge-header-edit-button:hover::after {
  background: rgba(234, 194, 80, 0.68);
}

@media (max-width: 900px) {
  .knowledge-sidebar {
    position: static ;
  }

  .knowledge-content-header {
    flex-direction: column ;
    gap: 10px ;
  }

  .knowledge-header-action {
    width: 100%;
    justify-content: flex-start;
    padding-top: 0;
    margin-left: 0;
  }
}

                                                        
.knowledge-grid,
.knowledge-items-grid {
  grid-template-columns: repeat(auto-fill, minmax(64px, 64px)) ;
  gap: 8px ;
}

.knowledge-card.knowledge-card--icon-only,
.knowledge-card--icon-only {
  width: 64px ;
  height: 64px ;
  min-height: 0 ;
  padding: 0 ;
  margin: 0 ;
  border: 0 ;
  border-radius: 16px ;
  background: transparent ;
  box-shadow: none ;
  outline: none ;
  display: inline-flex ;
  align-items: center ;
  justify-content: center ;
  overflow: visible ;
}

.knowledge-card.knowledge-card--icon-only:hover,
.knowledge-card--icon-only:hover {
  transform: none ;
  border: 0 ;
  background: transparent ;
  box-shadow: none ;
}

.knowledge-card--icon-only:focus-visible .knowledge-icon-box--rendered {
  border-color: rgba(126, 199, 255, 0.72) ;
  box-shadow: 0 0 0 2px rgba(126, 199, 255, 0.14) ;
}

.knowledge-icon-box--rendered {
  width: 64px ;
  height: 64px ;
  border-radius: 16px ;
  border: 1px solid rgba(90, 125, 161, 0.28) ;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.055), transparent 38%),
    linear-gradient(180deg, rgba(31, 48, 68, 0.94), rgba(20, 33, 51, 0.94)) ;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) ;
  transition: border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.knowledge-card--icon-only:hover .knowledge-icon-box--rendered {
  transform: translateY(-1px);
  border-color: rgba(126, 199, 255, 0.42) ;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.075), transparent 38%),
    linear-gradient(180deg, rgba(34, 54, 77, 0.96), rgba(22, 38, 58, 0.96)) ;
}

.knowledge-icon-box--rendered .knowledge-card-icon,
.knowledge-card--icon-only .knowledge-card-icon {
  width: 58px ;
  height: 58px ;
  object-fit: contain ;
  image-rendering: auto ;
}

@media (max-width: 760px) {
  .knowledge-grid,
  .knowledge-items-grid {
    grid-template-columns: repeat(auto-fill, minmax(60px, 60px)) ;
    gap: 7px ;
  }

  .knowledge-card.knowledge-card--icon-only,
  .knowledge-card--icon-only,
  .knowledge-icon-box--rendered {
    width: 60px ;
    height: 60px ;
  }

  .knowledge-icon-box--rendered .knowledge-card-icon,
  .knowledge-card--icon-only .knowledge-card-icon {
    width: 54px ;
    height: 54px ;
  }
}


                                                                      
.knowledge-content {
  --knowledge-inner-width: 856px;
}

.knowledge-content-header,
.knowledge-grid {
  width: min(100%, var(--knowledge-inner-width)) ;
  margin-left: auto ;
  margin-right: auto ;
}

.knowledge-items-grid {
  width: min(100%, var(--knowledge-inner-width)) ;
  margin-left: auto ;
  margin-right: auto ;
  justify-content: center ;
  align-content: start ;
}

.knowledge-subtabs {
  width: min(100%, var(--knowledge-inner-width)) ;
  margin-left: auto ;
  margin-right: auto ;
}

.knowledge-grid.knowledge-home-grid--intro-only {
  display: block ;
}

.knowledge-home-grid--intro-only .knowledge-home-card {
  width: 100% ;
  min-height: 0 ;
  box-sizing: border-box ;
}

.knowledge-home-grid--intro-only .knowledge-home-card h3 {
  font-size: 24px ;
  line-height: 1.15 ;
}

.knowledge-home-grid--intro-only .knowledge-home-card p {
  max-width: 760px ;
}

@media (max-width: 1100px) {
  .knowledge-content {
    --knowledge-inner-width: 100%;
  }

  .knowledge-items-grid {
    justify-content: start ;
  }
}


                                                                          
.knowledge-subtab:hover,
.knowledge-subtab--edit:hover {
  background: transparent ;
  box-shadow: none ;
  color: var(--text) ;
}

.knowledge-subtab {
  transition: color 0.16s ease ;
}

.knowledge-tooltip[hidden] {
  display: none ;
}

.knowledge-tooltip {
  position: fixed;
  z-index: 2000;
  max-width: 280px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(88, 126, 167, 0.34);
  background: rgba(13, 27, 44, 0.96);
  color: #f3f7ff;
  box-shadow: 0 14px 34px rgba(3, 12, 24, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  pointer-events: none;
  white-space: normal;
}


                                                                       
.knowledge-tooltip {
  font-weight: 500 ;
  letter-spacing: 0 ;
}

.knowledge-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.knowledge-modal[hidden] {
  display: none ;
}

.knowledge-modal-dialog,
.knowledge-modal-dialog--recipe {
  margin: 0 ;
}

.knowledge-modal-dialog--recipe {
  width: min(560px, calc(100vw - 32px));
  padding: 22px 26px 28px;
}

.knowledge-modal-recipe-body {
  display: block;
}

.knowledge-modal-dialog--recipe .knowledge-modal-title {
  margin: 0 52px 18px 0;
  font-size: 34px;
  line-height: 1.08;
}

.knowledge-recipe-layout {
  display: grid;
  grid-template-columns: 92px 64px 204px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 190px;
}

.knowledge-recipe-output {
  display: flex;
  align-items: center;
  justify-content: center;
}

.knowledge-recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 58px);
  gap: 8px;
}

.knowledge-recipe-slot {
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(88, 126, 167, 0.3);
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.05), transparent 42%),
    rgba(18, 36, 56, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.knowledge-recipe-slot--result {
  width: 70px;
  height: 70px;
  background: rgba(18, 36, 56, 0.42);
  border-color: rgba(88, 126, 167, 0.18);
}

button.knowledge-recipe-result--linked {
  appearance: none;
  margin: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

button.knowledge-recipe-result--linked:focus-visible {
  outline: 2px solid #ffd763;
  outline-offset: 3px;
}

.knowledge-recipe-slot .knowledge-modal-image,
.knowledge-recipe-slot--result .knowledge-modal-image {
  width: 58px;
  height: 58px;
  object-fit: contain;
  image-rendering: auto;
}

.knowledge-recipe-arrow {
  color: rgba(220, 229, 244, 0.72);
  font-size: 44px;
  line-height: 1;
  font-weight: 300;
  text-align: center;
}

.knowledge-modal-dialog--recipe .knowledge-modal-kicker,
.knowledge-modal-dialog--recipe .knowledge-modal-meta,
.knowledge-modal-dialog--recipe .knowledge-modal-preview,
.knowledge-modal-dialog--recipe .knowledge-modal-info {
  display: none ;
}

@media (max-width: 640px) {
  .knowledge-modal-dialog--recipe {
    padding: 18px;
  }

  .knowledge-modal-dialog--recipe .knowledge-modal-title {
    font-size: 28px;
  }

  .knowledge-recipe-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .knowledge-recipe-arrow {
    transform: rotate(90deg);
  }
}

                                                           
.knowledge-smelting-temperature-list {
  display: grid;
  gap: 6px;
  margin: 8px 0 14px;
  padding: 0;
  list-style: none;
}

.knowledge-smelting-temperature-row,
.knowledge-smelting-temperature-steel {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.knowledge-smelting-temperature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.knowledge-smelting-temperature-icon img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.knowledge-reforging-metal-list {
  padding-left: 0;
  list-style: none;
}

.knowledge-reforging-metal-entry {
  position: relative;
  padding-left: 22px;
}

.knowledge-reforging-metal-entry::before {
  content: "•";
  position: absolute;
  top: 32px;
  left: 2px;
  line-height: 1;
  transform: translateY(-50%);
}

.knowledge-reforging-metal-list .knowledge-reforging-metal-entry + .knowledge-reforging-metal-entry {
  margin-top: 18px;
}

.knowledge-reforging-metal-entry > .knowledge-smelting-temperature-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 2px;
}

.knowledge-reforging-metal-entry > .knowledge-smelting-temperature-icon img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  image-rendering: auto;
}

.knowledge-reforging-metal-entry > p {
  margin: 4px 0 0;
}

.knowledge-page-content {
  min-width: 0;
}

.knowledge-visual-editor-toolbar {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(91, 150, 255, 0.34);
  border-radius: 12px;
  background: rgba(12, 25, 43, 0.97);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.knowledge-visual-editor-toolbar__group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.knowledge-visual-editor-toolbar__group--save {
  margin-left: auto;
}

.knowledge-visual-editor-toolbar button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid rgba(120, 163, 226, 0.3);
  border-radius: 8px;
  color: #e9f2ff;
  background: rgba(38, 65, 101, 0.72);
  cursor: pointer;
}

.knowledge-visual-editor-toolbar button:hover {
  border-color: rgba(116, 177, 255, 0.7);
  background: rgba(50, 85, 130, 0.9);
}

.knowledge-visual-editor-toolbar > p {
  flex-basis: 100%;
  margin: 0;
  color: rgba(210, 225, 245, 0.7);
  font-size: 13px;
}

.knowledge-page-content.is-visual-editing,
.knowledge-modal-recipe-content.is-visual-editing {
  min-height: 220px;
  padding: 12px;
  border: 1px dashed rgba(102, 167, 255, 0.58);
  border-radius: 12px;
  outline: none;
}

.is-visual-editing-title {
  padding: 6px 8px;
  border: 1px dashed rgba(102, 167, 255, 0.58);
  border-radius: 8px;
  outline: none;
}

.is-editor-selected {
  outline: 2px solid #55a7ff ;
  outline-offset: 3px;
}

.knowledge-editor-added-image {
  display: block;
  width: 64px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.knowledge-modal-admin-actions {
  display: flex;
  justify-content: flex-end;
  padding-right: 44px;
}

@media (max-width: 760px) {
  .knowledge-visual-editor-toolbar {
    position: relative;
    top: auto;
  }

  .knowledge-visual-editor-toolbar__group--save {
    margin-left: 0;
  }
}

.knowledge-smelting-temperature-steel {
  min-height: 0;
  gap: 4px;
}

                                            
.knowledge-visual-editor-toolbar {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-color: rgba(105, 169, 255, .42);
  border-radius: 16px;
  background: rgba(10, 24, 42, .98);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .38);
}

.knowledge-visual-editor-toolbar__heading,
.knowledge-visual-editor-toolbar__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
}

.knowledge-editor-primary-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.knowledge-editor-primary-actions .knowledge-admin-save {
  box-shadow: 0 0 0 1px rgba(112, 213, 255, .18), 0 5px 18px rgba(17, 117, 185, .18);
}

.knowledge-visual-editor-toolbar__heading {
  border-bottom: 1px solid rgba(105, 169, 255, .18);
  background: linear-gradient(90deg, rgba(37, 79, 125, .42), rgba(22, 47, 78, .18));
}

.knowledge-visual-editor-toolbar__heading > div {
  display: grid;
  gap: 2px;
}

.knowledge-visual-editor-toolbar__heading strong {
  color: #f1f7ff;
  font-size: 16px;
}

.knowledge-visual-editor-toolbar__heading span,
.knowledge-visual-editor-toolbar__footer > span {
  color: rgba(212, 228, 249, .68);
  font-size: 12px;
}

.knowledge-visual-editor-toolbar__body {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(360px, 1.2fr);
  gap: 12px;
  padding: 14px 16px;
}

.knowledge-visual-editor-toolbar__section {
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
}

.knowledge-visual-editor-toolbar__label {
  color: #8dc9ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.knowledge-visual-editor-toolbar button {
  min-height: 36px;
  padding: 7px 11px;
  border-color: rgba(125, 174, 230, .28);
  border-radius: 9px;
  background: rgba(33, 59, 91, .76);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.knowledge-visual-editor-toolbar button:hover {
  transform: translateY(-1px);
}

.knowledge-visual-editor-toolbar .knowledge-editor-close {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #cddcef;
  background: rgba(255, 255, 255, .07);
  font-size: 22px;
}

.knowledge-editor-selection {
  display: grid;
  grid-template-columns: minmax(150px, 210px) 1fr;
  gap: 14px;
  align-items: center;
  margin: 0 16px 14px;
  padding: 12px;
  border: 1px solid rgba(86, 183, 255, .3);
  border-radius: 12px;
  background: rgba(18, 42, 69, .74);
}

.knowledge-editor-selection[hidden] {
  display: none;
}

.knowledge-editor-selection__title {
  display: grid;
  gap: 3px;
}

.knowledge-editor-selection__title span {
  color: rgba(202, 220, 243, .65);
  font-size: 11px;
  text-transform: uppercase;
}

.knowledge-editor-selection__title strong {
  color: #9fe5ff;
}

.knowledge-editor-selection__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.knowledge-editor-selection__controls label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(221, 234, 250, .8);
  font-size: 12px;
}

.knowledge-editor-selection__controls input {
  min-height: 34px;
  width: min(220px, 35vw);
  padding: 0 10px;
  border: 1px solid rgba(125, 174, 230, .28);
  border-radius: 8px;
  color: #eef6ff;
  background: rgba(5, 17, 31, .78);
}

.knowledge-visual-editor-toolbar__footer {
  border-top: 1px solid rgba(105, 169, 255, .16);
  background: rgba(3, 13, 25, .34);
}

.knowledge-visual-editor-toolbar__group--save {
  justify-content: flex-end;
}

.knowledge-visual-editor-toolbar .knowledge-admin-save {
  border-color: rgba(96, 218, 255, .52);
  background: linear-gradient(135deg, #245b8d, #284e82);
}

.knowledge-editor-assets-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(2, 10, 19, .78);
  backdrop-filter: blur(8px);
}

.knowledge-editor-assets {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(900px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 40px));
  overflow: hidden;
  border: 1px solid rgba(102, 172, 255, .38);
  border-radius: 18px;
  color: #eaf3ff;
  background: #0d2035;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .58);
}

.knowledge-editor-assets header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 19px;
  border-bottom: 1px solid rgba(105, 169, 255, .18);
}

.knowledge-editor-assets header > div {
  display: grid;
  gap: 3px;
}

.knowledge-editor-assets header strong {
  font-size: 19px;
}

.knowledge-editor-assets header span {
  color: rgba(210, 226, 247, .68);
  font-size: 12px;
}

.knowledge-editor-assets header > button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #dceaff;
  background: rgba(255, 255, 255, .08);
  font-size: 22px;
  cursor: pointer;
}

.knowledge-editor-assets-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 19px;
}

.knowledge-editor-assets-search input,
.knowledge-editor-assets-search button {
  min-height: 44px;
  border: 1px solid rgba(110, 166, 226, .3);
  border-radius: 11px;
  color: #edf6ff;
  background: rgba(5, 17, 31, .74);
}

.knowledge-editor-assets-search input {
  padding: 0 14px;
  outline: none;
}

.knowledge-editor-assets-search input:focus {
  border-color: #61b8ff;
  box-shadow: 0 0 0 3px rgba(70, 159, 238, .14);
}

.knowledge-editor-assets-search button {
  padding: 0 14px;
  cursor: pointer;
}

.knowledge-editor-assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 9px;
  padding: 0 19px 19px;
  overflow: auto;
}

.knowledge-editor-asset {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(106, 157, 213, .2);
  border-radius: 12px;
  color: #eaf4ff;
  text-align: left;
  background: rgba(12, 33, 55, .8);
  cursor: pointer;
}

.knowledge-editor-asset:hover {
  border-color: rgba(91, 183, 255, .65);
  background: rgba(25, 58, 91, .92);
}

.knowledge-editor-asset > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
}

.knowledge-editor-asset img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  image-rendering: pixelated;
}

.knowledge-editor-asset strong,
.knowledge-editor-asset small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-editor-asset small {
  color: rgba(196, 217, 242, .58);
  font-size: 10px;
}

.knowledge-editor-assets-empty {
  grid-column: 1 / -1;
  color: rgba(214, 228, 247, .7);
  text-align: center;
}

.knowledge-admin-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.knowledge-admin-field > span,
.knowledge-admin-category-id > small {
  color: rgba(180, 207, 237, .68);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.knowledge-admin-category-id {
  display: grid;
  gap: 4px;
}

.knowledge-admin-category-actions {
  display: flex;
  gap: 8px;
  align-self: end;
}

.knowledge-admin-category-row,
.knowledge-admin-category-row--top {
  grid-template-columns: minmax(90px, 120px) 78px minmax(150px, 1fr) minmax(190px, 1.35fr) auto ;
  align-items: end;
}

@media (max-width: 900px) {
  .knowledge-visual-editor-toolbar__body,
  .knowledge-editor-selection,
  .knowledge-editor-assets-search,
  .knowledge-admin-category-row,
  .knowledge-admin-category-row--top {
    grid-template-columns: 1fr ;
  }

  .knowledge-visual-editor-toolbar__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .knowledge-visual-editor-toolbar__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .knowledge-editor-primary-actions {
    justify-content: flex-start;
  }

  .knowledge-visual-editor-toolbar__group--save {
    margin-left: 0;
    justify-content: flex-start;
  }
}

                                                       
.knowledge-modal-dialog--recipe {
  width: min(720px, calc(100vw - 32px)) ;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.knowledge-modal-recipe-content {
  display: grid;
  gap: 14px;
}

.knowledge-recipe-card {
  display: grid;
  gap: 10px;
}

.knowledge-recipe-card + .knowledge-recipe-card {
  padding-top: 14px;
  border-top: 1px solid rgba(88, 126, 167, 0.22);
}

.knowledge-recipe-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(220, 229, 244, 0.82);
  font-size: 13px;
  font-weight: 700;
}

.knowledge-recipe-card-head small {
  color: rgba(220, 229, 244, 0.58);
  font-weight: 600;
}

.knowledge-recipe-card .knowledge-recipe-layout {
  min-height: 0 ;
}

.knowledge-recipe-slot {
  position: relative;
}

.knowledge-recipe-slot img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: auto;
}

.knowledge-recipe-slot--result img,
.knowledge-recipe-slot--result .knowledge-modal-image {
  width: 58px ;
  height: 58px ;
}

.knowledge-recipe-count {
  position: absolute;
  right: 6px;
  bottom: 4px;
  min-width: 16px;
  text-align: right;
  color: #f6f8ff;
  font-size: 14px;
  line-height: 1;
  font-weight: 900;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.knowledge-recipe-tag {
  position: absolute;
  left: 4px;
  bottom: 3px;
  max-width: calc(100% - 8px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(142, 243, 255, 0.88);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.knowledge-recipe-slot-text,
.knowledge-recipe-empty {
  color: rgba(220, 229, 244, 0.7);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.knowledge-recipe-empty {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(88, 126, 167, 0.24);
  background: rgba(18, 36, 56, 0.5);
}

                                                                                    
.knowledge-recipe-ingredient {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  border-radius: inherit;
}

.knowledge-recipe-ingredient:hover {
  background: rgba(120, 174, 210, 0.1);
}

.knowledge-recipe-ingredient:focus-visible {
  outline: 2px solid rgba(142, 243, 255, 0.55);
  outline-offset: 2px;
}

.knowledge-recipe-ingredient--static {
  cursor: default;
}

.knowledge-recipe-ingredient--static:hover {
  background: transparent;
}

.knowledge-recipe-source {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 120px;
}

.knowledge-recipe-source p {
  margin: 0;
  color: rgba(220, 229, 244, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

.knowledge-recipe-card--empty .knowledge-recipe-slot--result {
  width: 70px;
  height: 70px;
}

@media (max-width: 640px) {
  .knowledge-recipe-source {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}


                                                               
.knowledge-recipe-ingredient--cycle img {
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.knowledge-recipe-ingredient--cycle::after {
  content: '';
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(142, 243, 255, 0.72);
  box-shadow: 0 0 8px rgba(142, 243, 255, 0.18);
  pointer-events: none;
}

/* Profession article item/craft cards */
.knowledge-prof-article {
  display: grid;
  gap: 18px;
}

.knowledge-prof-notice {
  border: 1px solid rgba(255, 193, 92, 0.45);
  background: rgba(255, 193, 92, 0.10);
  border-radius: 16px;
  padding: 12px 14px;
  color: var(--text, #f4efe6);
  line-height: 1.55;
}

.knowledge-prof-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.knowledge-prof-block {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 18px;
  padding: 14px;
}

.knowledge-prof-block h3,
.knowledge-prof-recipes h3 {
  margin: 0 0 12px;
}

.knowledge-prof-item-grid,
.knowledge-prof-recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.knowledge-prof-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 10, 16, 0.28);
  border-radius: 14px;
  padding: 8px 10px;
}

.knowledge-prof-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  image-rendering: pixelated;
}

.knowledge-prof-icon img,
.knowledge-prof-ingredient img {
  max-width: 32px;
  max-height: 32px;
  image-rendering: pixelated;
}

.knowledge-prof-item-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.knowledge-prof-item-text strong {
  font-size: 0.94rem;
  line-height: 1.2;
}

.knowledge-prof-item-text small {
  opacity: 0.72;
  line-height: 1.25;
}

.knowledge-prof-item-badge,
.knowledge-prof-recipe-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
  padding: 3px 8px;
  font-size: 0.72rem;
  opacity: 0.88;
}

.knowledge-prof-item-badge {
  position: absolute;
  right: 8px;
  bottom: 6px;
}

.knowledge-prof-recipes {
  display: grid;
  gap: 12px;
}

.knowledge-prof-recipe-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 16px;
  padding: 10px;
}

.knowledge-prof-recipe-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.knowledge-prof-recipe-top .knowledge-prof-item {
  flex: 1 1 auto;
  min-height: 52px;
  padding-right: 10px;
}

.knowledge-prof-ingredients {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.knowledge-prof-slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.knowledge-prof-slot {
  position: relative;
  min-height: 62px;
}

.knowledge-prof-slot .knowledge-prof-ingredient {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding-left: 30px;
}

.knowledge-prof-slot-number {
  position: absolute;
  z-index: 1;
  left: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.knowledge-prof-slot .knowledge-prof-ingredient img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}


.knowledge-prof-ingredient {
  display: grid;
  grid-template-columns: 30px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 6px;
  min-width: 98px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 7px 8px;
}

.knowledge-prof-ingredient small {
  grid-column: 1 / -1;
  margin-top: 4px;
  opacity: 0.72;
  line-height: 1.15;
}

.knowledge-prof-count {
  font-weight: 700;
}

.knowledge-prof-fallback {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
  font-size: 0.72rem;
}

.knowledge-prof-fallback--small {
  width: 28px;
  height: 28px;
}

.knowledge-prof-pattern {
  display: none;
  margin: 0;
  width: fit-content;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.24);
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
  line-height: 1.25;
}

.knowledge-prof-recipe-note {
  margin: 0;
  opacity: 0.82;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .knowledge-prof-split {
    grid-template-columns: 1fr;
  }
}


/* ===== Profession article refresh ===== */
.knowledge-prof-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.knowledge-prof-fact {
  border: 1px solid rgba(126, 199, 255, 0.16);
  background: linear-gradient(180deg, rgba(126, 199, 255, 0.08), rgba(126, 199, 255, 0.03));
  border-radius: 16px;
  padding: 12px 14px;
}

.knowledge-prof-fact span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted, #9fb0c8);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.knowledge-prof-fact strong {
  display: block;
  color: var(--text, #edf4ff);
  font-size: 0.98rem;
  line-height: 1.25;
}

.knowledge-prof-recipe-grid {
  grid-template-columns: 1fr;
}

.knowledge-prof-recipe-card {
  padding: 12px;
}

.knowledge-prof-recipe-top {
  justify-content: flex-start;
  min-height: 0;
}

.knowledge-prof-craft-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(180px, 240px);
  align-items: center;
  gap: 12px;
}

.knowledge-prof-slot-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border-radius: 15px;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.knowledge-prof-slot-list--empty {
  min-height: 58px;
  color: var(--muted, #9fb0c8);
  font-size: 0.88rem;
}

.knowledge-prof-ingredient {
  position: relative;
  display: grid;
  place-items: center;
  grid-template-columns: none;
  grid-template-rows: none;
  width: 46px;
  min-width: 46px;
  height: 46px;
  padding: 6px;
  border-radius: 13px;
  cursor: help;
}

.knowledge-prof-ingredient::after {
  content: attr(aria-label);
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 30;
  width: max-content;
  max-width: 220px;
  transform: translateX(-50%) translateY(3px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(5, 13, 24, 0.96);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  padding: 7px 9px;
  color: var(--text, #edf4ff);
  font-size: 0.76rem;
  line-height: 1.25;
  white-space: normal;
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.knowledge-prof-ingredient:hover::after,
.knowledge-prof-ingredient:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.knowledge-prof-ingredient img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.knowledge-prof-count {
  position: absolute;
  right: 4px;
  bottom: 3px;
  min-width: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text, #edf4ff);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-shadow:
    -1px 0 0 rgba(0, 0, 0, 0.95),
     1px 0 0 rgba(0, 0, 0, 0.95),
     0 -1px 0 rgba(0, 0, 0, 0.95),
     0 1px 0 rgba(0, 0, 0, 0.95);
}

.knowledge-prof-craft-arrow {
  color: var(--accent, #7ec7ff);
  font-size: 1.25rem;
  font-weight: 900;
}

.knowledge-prof-recipe-result {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid rgba(126, 199, 255, 0.18);
  background: rgba(126, 199, 255, 0.07);
  border-radius: 15px;
  padding: 8px 10px;
}

.knowledge-prof-recipe-result strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.2;
}

.knowledge-prof-recipe-result small {
  display: block;
  margin-top: 2px;
  color: var(--muted, #9fb0c8);
  line-height: 1.2;
}

.knowledge-prof-icon--result {
  width: 42px;
  height: 42px;
}

.knowledge-prof-icon--result img {
  max-width: 34px;
  max-height: 34px;
}

.knowledge-prof-recipe-note {
  padding-left: 2px;
}

@media (max-width: 760px) {
  .knowledge-prof-craft-line {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .knowledge-prof-craft-arrow {
    justify-self: center;
    transform: rotate(90deg);
  }

  .knowledge-prof-recipe-result {
    max-width: none;
  }

  .knowledge-prof-ingredient::after {
    left: 0;
    transform: translateX(0) translateY(3px);
  }

  .knowledge-prof-ingredient:hover::after,
  .knowledge-prof-ingredient:focus-visible::after {
    transform: translateX(0) translateY(0);
  }
}

                                                                              
.knowledge-card.knowledge-card--icon-only .knowledge-icon-box--rendered,
.knowledge-card--icon-only .knowledge-icon-box--rendered {
  padding: 0 ;
  overflow: hidden ;
  line-height: 0 ;
  background: transparent ;
  border: 0 ;
  box-shadow: none ;
}

.knowledge-card.knowledge-card--icon-only .knowledge-icon-box--rendered .knowledge-card-icon,
.knowledge-card--icon-only .knowledge-icon-box--rendered .knowledge-card-icon,
.knowledge-icon-box--rendered .knowledge-card-icon,
.knowledge-card--icon-only .knowledge-card-icon {
  display: block ;
  width: 100% ;
  height: 100% ;
  max-width: none ;
  max-height: none ;
  margin: 0 ;
  object-fit: cover ;
  image-rendering: pixelated ;
  image-rendering: crisp-edges ;
}

                                                                              
.knowledge-tooltip .knowledge-tooltip-title {
  display: block;
  margin: 0 0 5px;
  color: #8eeaff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.knowledge-tooltip .knowledge-tooltip-text {
  display: block;
  color: #e7f0ff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
}

                                                                                   
.knowledge-effects-grid.knowledge-effects-grid--icons {
  grid-template-columns: repeat(auto-fill, 64px) ;
  gap: 12px ;
}

.knowledge-effect-card.knowledge-effect-card--compact {
  width: 64px ;
  height: 64px ;
  min-width: 64px ;
  min-height: 64px ;
  box-sizing: border-box ;
  padding: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
  box-shadow: none ;
  overflow: visible ;
}

.knowledge-effect-card.knowledge-effect-card--compact:hover,
.knowledge-effect-card.knowledge-effect-card--compact:focus-visible {
  transform: translateY(-2px) ;
  border: 0 ;
  background: transparent ;
  box-shadow: none ;
  filter: brightness(1.08) drop-shadow(0 10px 16px rgba(0, 0, 0, 0.34)) ;
  outline: none ;
}

.knowledge-effect-card.knowledge-effect-card--compact .knowledge-effect-icon {
  position: relative ;
  display: block ;
  width: 64px ;
  height: 64px ;
  min-width: 64px ;
  min-height: 64px ;
  flex: 0 0 64px ;
  padding: 0 ;
  margin: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
  box-shadow: none ;
  line-height: 0 ;
  overflow: hidden ;
}

.knowledge-effect-card.knowledge-effect-card--compact .knowledge-effect-icon img {
  position: absolute ;
  inset: 0 ;
  display: block ;
  width: 100% ;
  height: 100% ;
  min-width: 100% ;
  min-height: 100% ;
  max-width: none ;
  max-height: none ;
  margin: 0 ;
  object-fit: fill ;
  image-rendering: pixelated ;
  image-rendering: crisp-edges ;
}

                                                                                          
.knowledge-grid:has(.knowledge-card--icon-only),
.knowledge-items-grid:has(.knowledge-card--icon-only) {
  grid-template-columns: repeat(auto-fill, minmax(76px, 76px)) ;
  gap: 10px ;
}

.knowledge-card.knowledge-card--icon-only,
.knowledge-card--icon-only {
  width: 76px ;
  height: 76px ;
  min-width: 76px ;
  min-height: 76px ;
  box-sizing: border-box ;
  padding: 5px ;
  margin: 0 ;
  border: 1px solid rgba(90, 125, 161, 0.28) ;
  border-radius: 18px ;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.055), transparent 38%),
    linear-gradient(180deg, rgba(31, 48, 68, 0.94), rgba(20, 33, 51, 0.94)) ;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 22px rgba(0, 0, 0, 0.18) ;
  outline: none ;
  display: inline-flex ;
  align-items: center ;
  justify-content: center ;
  overflow: hidden ;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease ;
}

.knowledge-card.knowledge-card--icon-only:hover,
.knowledge-card--icon-only:hover,
.knowledge-card.knowledge-card--icon-only:focus-visible,
.knowledge-card--icon-only:focus-visible {
  transform: translateY(-1px) ;
  border-color: rgba(126, 199, 255, 0.42) ;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.075), transparent 38%),
    linear-gradient(180deg, rgba(34, 54, 77, 0.96), rgba(22, 38, 58, 0.96)) ;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 24px rgba(0, 0, 0, 0.22) ;
}

.knowledge-card.knowledge-card--icon-only .knowledge-icon-box--rendered,
.knowledge-card--icon-only .knowledge-icon-box--rendered {
  width: 64px ;
  height: 64px ;
  min-width: 64px ;
  min-height: 64px ;
  padding: 0 ;
  border: 0 ;
  border-radius: 16px ;
  background: transparent ;
  box-shadow: none ;
  display: flex ;
  align-items: center ;
  justify-content: center ;
  overflow: hidden ;
  line-height: 0 ;
}

.knowledge-card.knowledge-card--icon-only .knowledge-icon-box--rendered .knowledge-card-icon,
.knowledge-card--icon-only .knowledge-icon-box--rendered .knowledge-card-icon,
.knowledge-card.knowledge-card--icon-only .knowledge-card-icon,
.knowledge-card--icon-only .knowledge-card-icon {
  position: static ;
  display: block ;
  width: 58px ;
  height: 58px ;
  min-width: 0 ;
  min-height: 0 ;
  max-width: 58px ;
  max-height: 58px ;
  margin: 0 ;
  object-fit: contain ;
  image-rendering: auto ;
}

@media (max-width: 760px) {
  .knowledge-grid:has(.knowledge-card--icon-only),
  .knowledge-items-grid:has(.knowledge-card--icon-only) {
    grid-template-columns: repeat(auto-fill, minmax(64px, 64px)) ;
    gap: 8px ;
  }

  .knowledge-card.knowledge-card--icon-only,
  .knowledge-card--icon-only {
    width: 64px ;
    height: 64px ;
    min-width: 64px ;
    min-height: 64px ;
    border-radius: 16px ;
    padding: 4px ;
  }

  .knowledge-card.knowledge-card--icon-only .knowledge-icon-box--rendered,
  .knowledge-card--icon-only .knowledge-icon-box--rendered {
    width: 56px ;
    height: 56px ;
    min-width: 56px ;
    min-height: 56px ;
    border-radius: 14px ;
  }

  .knowledge-card.knowledge-card--icon-only .knowledge-icon-box--rendered .knowledge-card-icon,
  .knowledge-card--icon-only .knowledge-icon-box--rendered .knowledge-card-icon,
  .knowledge-card.knowledge-card--icon-only .knowledge-card-icon,
  .knowledge-card--icon-only .knowledge-card-icon {
    width: 52px ;
    height: 52px ;
    max-width: 52px ;
    max-height: 52px ;
  }
}

                                                                                          
.knowledge-grid:has(.knowledge-card--icon-only),
.knowledge-items-grid:has(.knowledge-card--icon-only) {
  grid-template-columns: repeat(auto-fill, minmax(45px, 45px)) ;
  gap: 8px ;
}

.knowledge-card.knowledge-card--icon-only,
.knowledge-card--icon-only {
  width: 45px ;
  height: 45px ;
  min-width: 45px ;
  min-height: 45px ;
  padding: 3px ;
  border-radius: 12px ;
}

.knowledge-card.knowledge-card--icon-only .knowledge-icon-box--rendered,
.knowledge-card--icon-only .knowledge-icon-box--rendered {
  width: 39px ;
  height: 39px ;
  min-width: 39px ;
  min-height: 39px ;
  border-radius: 10px ;
}

.knowledge-card.knowledge-card--icon-only .knowledge-icon-box--rendered .knowledge-card-icon,
.knowledge-card--icon-only .knowledge-icon-box--rendered .knowledge-card-icon,
.knowledge-card.knowledge-card--icon-only .knowledge-card-icon,
.knowledge-card--icon-only .knowledge-card-icon {
  width: 38px ;
  height: 38px ;
  max-width: 38px ;
  max-height: 38px ;
  object-fit: contain ;
}

@media (max-width: 760px) {
  .knowledge-grid:has(.knowledge-card--icon-only),
  .knowledge-items-grid:has(.knowledge-card--icon-only) {
    grid-template-columns: repeat(auto-fill, minmax(43px, 43px)) ;
    gap: 7px ;
  }

  .knowledge-card.knowledge-card--icon-only,
  .knowledge-card--icon-only {
    width: 43px ;
    height: 43px ;
    min-width: 43px ;
    min-height: 43px ;
    padding: 3px ;
    border-radius: 11px ;
  }

  .knowledge-card.knowledge-card--icon-only .knowledge-icon-box--rendered,
  .knowledge-card--icon-only .knowledge-icon-box--rendered {
    width: 37px ;
    height: 37px ;
    min-width: 37px ;
    min-height: 37px ;
    border-radius: 9px ;
  }

  .knowledge-card.knowledge-card--icon-only .knowledge-icon-box--rendered .knowledge-card-icon,
  .knowledge-card--icon-only .knowledge-icon-box--rendered .knowledge-card-icon,
  .knowledge-card.knowledge-card--icon-only .knowledge-card-icon,
  .knowledge-card--icon-only .knowledge-card-icon {
    width: 36px ;
    height: 36px ;
    max-width: 36px ;
    max-height: 36px ;
  }
}

                                                                                       
.knowledge-grid:has(.knowledge-card--icon-only),
.knowledge-items-grid:has(.knowledge-card--icon-only) {
  grid-template-columns: repeat(auto-fill, minmax(50px, 50px)) ;
  gap: 8px ;
}

.knowledge-card.knowledge-card--icon-only,
.knowledge-card--icon-only {
  width: 50px ;
  height: 50px ;
  min-width: 50px ;
  min-height: 50px ;
  padding: 2px ;
  border-radius: 12px ;
}

.knowledge-card.knowledge-card--icon-only .knowledge-icon-box--rendered,
.knowledge-card--icon-only .knowledge-icon-box--rendered {
  width: 46px ;
  height: 46px ;
  min-width: 46px ;
  min-height: 46px ;
  border-radius: 10px ;
}

.knowledge-card.knowledge-card--icon-only .knowledge-icon-box--rendered .knowledge-card-icon,
.knowledge-card--icon-only .knowledge-icon-box--rendered .knowledge-card-icon,
.knowledge-card.knowledge-card--icon-only .knowledge-card-icon,
.knowledge-card--icon-only .knowledge-card-icon {
  width: 46px ;
  height: 46px ;
  max-width: 46px ;
  max-height: 46px ;
  object-fit: contain ;
}

@media (max-width: 760px) {
  .knowledge-grid:has(.knowledge-card--icon-only),
  .knowledge-items-grid:has(.knowledge-card--icon-only) {
    grid-template-columns: repeat(auto-fill, minmax(50px, 50px)) ;
    gap: 8px ;
  }

  .knowledge-card.knowledge-card--icon-only,
  .knowledge-card--icon-only {
    width: 50px ;
    height: 50px ;
    min-width: 50px ;
    min-height: 50px ;
    padding: 2px ;
    border-radius: 12px ;
  }

  .knowledge-card.knowledge-card--icon-only .knowledge-icon-box--rendered,
  .knowledge-card--icon-only .knowledge-icon-box--rendered {
    width: 46px ;
    height: 46px ;
    min-width: 46px ;
    min-height: 46px ;
    border-radius: 10px ;
  }

  .knowledge-card.knowledge-card--icon-only .knowledge-icon-box--rendered .knowledge-card-icon,
  .knowledge-card--icon-only .knowledge-icon-box--rendered .knowledge-card-icon,
  .knowledge-card.knowledge-card--icon-only .knowledge-card-icon,
  .knowledge-card--icon-only .knowledge-card-icon {
    width: 46px ;
    height: 46px ;
    max-width: 46px ;
    max-height: 46px ;
  }
}

                                                             
.knowledge-exchange-screenshots {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 14px;
}

.knowledge-exchange-screenshot {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(124, 211, 255, 0.18);
  border-radius: 18px;
  background: rgba(8, 18, 31, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 12px 28px rgba(0, 0, 0, 0.22);
}

.knowledge-exchange-screenshot img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 10px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-exchange-screenshot figcaption {
  color: rgba(223, 236, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .knowledge-exchange-screenshot {
    padding: 10px;
    border-radius: 14px;
  }
}

/* Native links styled as buttons keep middle-click/Ctrl-click browser behavior. */
a.knowledge-category-button,
a.knowledge-subtab {
  text-decoration: none;
  font: inherit;
}


/* ===== Blacksmith profession article: race-style editorial layout ===== */
.knowledge-blacksmith-article {
  gap: 34px;
}

.knowledge-blacksmith-intro {
  align-items: start;
}

.knowledge-blacksmith-visual {
  min-height: 360px;
  margin-top: 0;
  padding: 24px;
  border: 1px solid rgba(126, 199, 255, 0.18) ;
  background:
    radial-gradient(circle at 50% 32%, rgba(126, 199, 255, 0.13), transparent 48%),
    linear-gradient(180deg, rgba(7, 24, 42, 0.9), rgba(8, 18, 32, 0.72)) ;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) ;
}

.knowledge-blacksmith-tool-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-content: center;
}

.knowledge-blacksmith-tool {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.knowledge-blacksmith-tool img {
  width: 66%;
  height: 66%;
  object-fit: contain;
  image-rendering: pixelated;
}

.knowledge-blacksmith-progress {
  display: grid;
  gap: 22px;
}

.knowledge-blacksmith-progress > h2 {
  margin: 0;
  color: var(--text, #edf4ff);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.knowledge-blacksmith-levels {
  display: grid;
  gap: 30px;
}

.knowledge-blacksmith-level {
  display: grid;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid rgba(126, 199, 255, 0.16);
}

.knowledge-blacksmith-level:first-child {
  padding-top: 0;
  border-top: 0;
}

.knowledge-blacksmith-level > h3 {
  margin: 0;
  color: #ffd763;
  font-size: 1.14rem;
  font-weight: 900;
  line-height: 1.3;
}

.knowledge-blacksmith-level-copy {
  display: grid;
  gap: 10px;
  color: rgba(220, 229, 244, 0.86);
  line-height: 1.68;
}

.knowledge-blacksmith-level-copy p,
.knowledge-blacksmith-level-copy ul {
  margin: 0;
}

.knowledge-blacksmith-level-copy ul {
  padding-left: 20px;
}

.knowledge-blacksmith-level-copy li + li {
  margin-top: 6px;
}

.knowledge-blacksmith-inline-link,
.knowledge-medic-inline-link,
.knowledge-builder-inline-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8ecbff;
  font: inherit;
  line-height: inherit;
  text-decoration: none;
  cursor: pointer;
}

.knowledge-blacksmith-inline-link:hover,
.knowledge-medic-inline-link:hover,
.knowledge-builder-inline-link:hover {
  color: #c7e7ff;
  text-decoration: none;
}

.knowledge-blacksmith-inline-link:focus-visible,
.knowledge-medic-inline-link:focus-visible,
.knowledge-builder-inline-link:focus-visible {
  border-radius: 3px;
  outline: 2px solid #ffd763;
  outline-offset: 2px;
}

.knowledge-blacksmith-crafts {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.knowledge-blacksmith-crafts > h4 {
  margin: 0;
  color: #8fbf8f;
  font-size: 0.98rem;
  font-weight: 900;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-card {
  background: transparent;
  border-color: rgba(126, 199, 255, 0.14);
}

.knowledge-blacksmith-crafts .knowledge-prof-slot-list {
  background: rgba(0, 0, 0, 0.12);
}

@media (max-width: 860px) {
  .knowledge-blacksmith-visual {
    min-height: auto;
    padding: 18px;
  }

  .knowledge-blacksmith-tool-grid {
    grid-template-columns: repeat(3, minmax(64px, 1fr));
  }
}

@media (max-width: 520px) {
  .knowledge-blacksmith-tool-grid {
    gap: 9px;
  }

  .knowledge-blacksmith-tool {
    border-radius: 12px;
  }
}




/* ===== Blacksmith cleanup: remove intro visual and simplify recipe rows ===== */
.knowledge-blacksmith-intro {
  grid-template-columns: minmax(0, 1fr) ;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-card {
  padding: 6px 0 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.knowledge-blacksmith-crafts .knowledge-prof-craft-line {
  grid-template-columns: 298px auto 50px;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 12px;
}

.knowledge-blacksmith-crafts .knowledge-prof-slot-list {
  width: 298px;
  min-width: 298px;
  max-width: 298px;
  justify-content: flex-start;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.16);
  border-radius: 15px;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-result {
  display: grid;
  grid-template-columns: 50px;
  justify-content: start;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-result > span:last-child {
  display: none;
}

.knowledge-blacksmith-crafts .knowledge-prof-icon--result,
.knowledge-blacksmith-crafts .knowledge-prof-ingredient {
  width: 46px;
  min-width: 46px;
  height: 46px;
}

.knowledge-blacksmith-crafts .knowledge-prof-icon--result {
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(0, 0, 0, 0.18);
}

.knowledge-blacksmith-crafts .knowledge-prof-ingredient img,
.knowledge-blacksmith-crafts .knowledge-prof-icon--result img {
  width: 34px;
  height: 34px;
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-top {
  display: none;
}

@media (max-width: 760px) {
  .knowledge-blacksmith-crafts .knowledge-prof-craft-line {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .knowledge-blacksmith-crafts .knowledge-prof-slot-list {
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .knowledge-blacksmith-crafts .knowledge-prof-recipe-result {
    grid-template-columns: 46px;
  }
}

/* ===== Blacksmith recipe icons: reuse the working knowledge-base renderer ===== */
.knowledge-blacksmith-crafts .knowledge-prof-ingredient.knowledge-prof-recipe-rendered-icon,
.knowledge-blacksmith-crafts .knowledge-prof-icon--result.knowledge-prof-recipe-rendered-icon {
  width: 46px ;
  height: 46px ;
  min-width: 46px ;
  min-height: 46px ;
  max-width: 46px ;
  max-height: 46px ;
  padding: 0 ;
  margin: 0 ;
  display: flex ;
  align-items: center ;
  justify-content: center ;
  border-radius: 13px ;
  line-height: 0 ;
}

.knowledge-blacksmith-crafts .knowledge-prof-ingredient.knowledge-prof-recipe-rendered-icon {
  position: relative;
  overflow: visible ;
  cursor: help;
  border: 1px solid rgba(255, 255, 255, 0.08) ;
  background: rgba(0, 0, 0, 0.18) ;
  box-shadow: none ;
}

.knowledge-blacksmith-crafts .knowledge-prof-icon--result.knowledge-prof-recipe-rendered-icon {
  overflow: hidden ;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-rendered-icon .knowledge-card-icon {
  display: block ;
  width: 100% ;
  height: 100% ;
  min-width: 0 ;
  min-height: 0 ;
  max-width: none ;
  max-height: none ;
  margin: 0 ;
  object-fit: cover ;
  object-position: center center ;
  image-rendering: pixelated ;
  image-rendering: crisp-edges ;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-result--tooltip {
  position: relative;
  overflow: visible;
  cursor: help;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-result--tooltip::after {
  content: attr(aria-label);
  pointer-events: none;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 40;
  width: max-content;
  max-width: 220px;
  transform: translateX(-50%) translateY(3px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(5, 13, 24, 0.96);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  padding: 7px 9px;
  color: var(--text, #edf4ff);
  font-size: 0.76rem;
  line-height: 1.25;
  white-space: normal;
  opacity: 0;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-result--tooltip:hover::after,
.knowledge-blacksmith-crafts .knowledge-prof-recipe-result--tooltip:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.knowledge-blacksmith-crafts .knowledge-prof-count {
  z-index: 2;
}

@media (max-width: 760px) {
  .knowledge-blacksmith-crafts .knowledge-prof-recipe-result--tooltip::after {
    left: 0;
    transform: translateX(0) translateY(3px);
  }

  .knowledge-blacksmith-crafts .knowledge-prof-recipe-result--tooltip:hover::after,
  .knowledge-blacksmith-crafts .knowledge-prof-recipe-result--tooltip:focus-visible::after {
    transform: translateX(0) translateY(0);
  }
}


/* ===== Blacksmith exact knowledge-card renderer ===== */
.knowledge-blacksmith-crafts .knowledge-prof-ingredient--knowledge-card {
  position: relative;
  display: block;
  width: 50px;
  min-width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  cursor: help;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-card-icon {
  pointer-events: none;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-card-icon .knowledge-icon-box--rendered .knowledge-card-icon {
  object-fit: contain ;
  object-position: center center ;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-result {
  grid-template-columns: 50px;
}

.knowledge-blacksmith-crafts .knowledge-prof-count {
  right: 3px;
  bottom: 3px;
  z-index: 5;
}

@media (max-width: 760px) {
  .knowledge-blacksmith-crafts .knowledge-prof-recipe-result {
    grid-template-columns: 50px;
  }
}

                                               
.knowledge-blacksmith-crafts .knowledge-prof-recipe-card {
  padding: 4px 0 0 ;
  border: 0 ;
  background: transparent ;
  box-shadow: none ;
}

.knowledge-blacksmith-crafts .knowledge-prof-craft-line {
  display: grid ;
  grid-template-columns: 270px 28px 54px ;
  align-items: center ;
  gap: 12px ;
  width: fit-content ;
  max-width: 100% ;
}

                                                               
.knowledge-blacksmith-crafts .knowledge-prof-slot-list {
  position: relative ;
  display: grid ;
  grid-template-columns: repeat(5, 54px) ;
  grid-auto-rows: 54px ;
  gap: 0 ;
  width: 270px ;
  min-width: 270px ;
  max-width: 270px ;
  height: 54px ;
  min-height: 54px ;
  padding: 0 ;
  margin: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background-color: transparent ;
  background-image: url('../img/knowledge/crafting/profcrafts.png') ;
  background-repeat: no-repeat ;
  background-position: left top ;
  background-size: 270px 54px ;
  box-shadow: none ;
  overflow: visible ;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-blacksmith-crafts .knowledge-prof-ingredient--knowledge-card {
  position: relative ;
  display: block ;
  width: 54px ;
  min-width: 54px ;
  max-width: 54px ;
  height: 54px ;
  min-height: 54px ;
  max-height: 54px ;
  padding: 0 ;
  margin: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
  box-shadow: none ;
  overflow: visible ;
}

/* Remove every nested card/box around input items. The strip itself is the slot. */
.knowledge-blacksmith-crafts .knowledge-prof-ingredient--knowledge-card > .knowledge-prof-recipe-card-icon,
.knowledge-blacksmith-crafts .knowledge-prof-ingredient--knowledge-card .knowledge-icon-box--rendered {
  width: 54px ;
  min-width: 54px ;
  max-width: 54px ;
  height: 54px ;
  min-height: 54px ;
  max-height: 54px ;
  padding: 0 ;
  margin: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
  box-shadow: none ;
  overflow: hidden ;
}

/* Same renderer as the item registry, but placed inside the Minecraft slot. */
.knowledge-blacksmith-crafts .knowledge-prof-ingredient--knowledge-card .knowledge-card-icon,
.knowledge-blacksmith-crafts .knowledge-prof-recipe-result .knowledge-card-icon {
  display: block ;
  width: 54px ;
  height: 54px ;
  min-width: 54px ;
  min-height: 54px ;
  max-width: 54px ;
  max-height: 54px ;
  margin: 0 ;
  object-fit: cover ;
  object-position: center center ;
  image-rendering: pixelated ;
  image-rendering: crisp-edges ;
}

.knowledge-blacksmith-crafts .knowledge-prof-craft-arrow {
  display: grid ;
  place-items: center ;
  width: 28px ;
  min-width: 28px ;
  margin: 0 ;
}

                                                          
.knowledge-blacksmith-crafts .knowledge-prof-recipe-result {
  position: relative ;
  display: block ;
  width: 54px ;
  min-width: 54px ;
  max-width: 54px ;
  height: 54px ;
  min-height: 54px ;
  max-height: 54px ;
  padding: 0 ;
  margin: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
  box-shadow: none ;
  overflow: visible ;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-result > .knowledge-prof-recipe-card-icon {
  display: block ;
  width: 54px ;
  min-width: 54px ;
  max-width: 54px ;
  height: 54px ;
  min-height: 54px ;
  max-height: 54px ;
  padding: 0 ;
  margin: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background-color: transparent ;
  background-image: url('../img/knowledge/crafting/slot.png') ;
  background-repeat: no-repeat ;
  background-position: center center ;
  background-size: 54px 54px ;
  box-shadow: none ;
  overflow: hidden ;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-result .knowledge-icon-box--rendered {
  width: 54px ;
  min-width: 54px ;
  max-width: 54px ;
  height: 54px ;
  min-height: 54px ;
  max-height: 54px ;
  padding: 0 ;
  margin: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
  box-shadow: none ;
  overflow: hidden ;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-result > span:last-child {
  display: none ;
}

.knowledge-blacksmith-crafts .knowledge-prof-count {
  right: 4px ;
  bottom: 4px ;
  z-index: 5 ;
}

@media (max-width: 760px) {
  .knowledge-blacksmith-crafts .knowledge-prof-craft-line {
    grid-template-columns: 270px 28px 54px ;
    width: 376px ;
    max-width: none ;
  }

  .knowledge-blacksmith-crafts .knowledge-prof-recipe-card {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 4px ;
  }
}

                                                                                       
.knowledge-content:has(.knowledge-blacksmith-article),
.knowledge-content:has(.knowledge-blacksmith-article) .knowledge-grid,
.knowledge-content:has(.knowledge-blacksmith-article) .knowledge-article-grid,
.knowledge-blacksmith-article,
.knowledge-blacksmith-progress,
.knowledge-blacksmith-levels,
.knowledge-blacksmith-level,
.knowledge-blacksmith-crafts,
.knowledge-blacksmith-crafts .knowledge-prof-recipe-grid,
.knowledge-blacksmith-crafts .knowledge-prof-recipe-card,
.knowledge-blacksmith-crafts .knowledge-prof-craft-line,
.knowledge-blacksmith-crafts .knowledge-prof-slot-list {
  overflow: visible ;
}

.knowledge-blacksmith-crafts .knowledge-prof-ingredient--knowledge-card:hover,
.knowledge-blacksmith-crafts .knowledge-prof-ingredient--knowledge-card:focus-visible,
.knowledge-blacksmith-crafts .knowledge-prof-recipe-result--tooltip:hover,
.knowledge-blacksmith-crafts .knowledge-prof-recipe-result--tooltip:focus-visible {
  z-index: 1000 ;
}

.knowledge-blacksmith-crafts .knowledge-prof-ingredient--knowledge-card::after,
.knowledge-blacksmith-crafts .knowledge-prof-recipe-result--tooltip::after {
  z-index: 1001 ;
}


                                                                        
.knowledge-blacksmith-crafts .knowledge-prof-count--minecraft {
  display: inline-flex ;
  align-items: flex-end;
  gap: 0;
  width: auto ;
  min-width: 0 ;
  height: 16px;
  padding: 0 ;
  background: transparent ;
  box-shadow: none ;
  text-shadow: none ;
  line-height: 0 ;
}

.knowledge-blacksmith-crafts .knowledge-prof-count-digit {
  display: block;
  width: 14px;
  min-width: 14px;
  height: 16px;
  background-image: url('../img/knowledge/crafting/minecraft-count-digits.png');
  background-repeat: no-repeat;
  background-size: 140px 16px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-blacksmith-crafts .knowledge-prof-count-digit--0 { background-position: 0 0; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--1 { background-position: -14px 0; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--2 { background-position: -28px 0; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--3 { background-position: -42px 0; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--4 { background-position: -56px 0; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--5 { background-position: -70px 0; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--6 { background-position: -84px 0; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--7 { background-position: -98px 0; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--8 { background-position: -112px 0; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--9 { background-position: -126px 0; }


                                                                      
.knowledge-blacksmith-crafts .knowledge-prof-count {
  right: 2px ;
  bottom: 2px ;
}

/* ===== Blacksmith20: custom craft arrow + slightly smaller Minecraft Rus digits ===== */
.knowledge-prof-craft-arrow {
  display: inline-block;
  width: 24px;
  min-width: 24px;
  height: 22px;
  font-size: 0 ;
  color: transparent ;
  background: url('../img/knowledge/crafting/arrow.png') center center / 24px 22px no-repeat ;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  vertical-align: middle;
}

.knowledge-blacksmith-crafts .knowledge-prof-count--minecraft {
  height: 14px ;
}

.knowledge-blacksmith-crafts .knowledge-prof-count-digit {
  width: 12px ;
  min-width: 12px ;
  height: 14px ;
  background-size: 120px 14px ;
}

.knowledge-blacksmith-crafts .knowledge-prof-count-digit--0 { background-position: 0 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--1 { background-position: -12px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--2 { background-position: -24px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--3 { background-position: -36px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--4 { background-position: -48px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--5 { background-position: -60px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--6 { background-position: -72px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--7 { background-position: -84px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--8 { background-position: -96px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--9 { background-position: -108px 0 ; }

/* ===== Blacksmith21: smaller count digits, raised slightly ===== */
.knowledge-blacksmith-crafts .knowledge-prof-count {
  bottom: 4px ;
}

.knowledge-blacksmith-crafts .knowledge-prof-count--minecraft {
  height: 12px ;
}

.knowledge-blacksmith-crafts .knowledge-prof-count-digit {
  width: 10px ;
  min-width: 10px ;
  height: 12px ;
  background-size: 100px 12px ;
}

.knowledge-blacksmith-crafts .knowledge-prof-count-digit--0 { background-position: 0 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--1 { background-position: -10px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--2 { background-position: -20px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--3 { background-position: -30px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--4 { background-position: -40px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--5 { background-position: -50px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--6 { background-position: -60px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--7 { background-position: -70px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--8 { background-position: -80px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--9 { background-position: -90px 0 ; }

/* ===== Blacksmith22: slightly smaller count digits ===== */
.knowledge-blacksmith-crafts .knowledge-prof-count--minecraft {
  height: 11px ;
}

.knowledge-blacksmith-crafts .knowledge-prof-count-digit {
  width: 9px ;
  min-width: 9px ;
  height: 11px ;
  background-size: 90px 11px ;
}

.knowledge-blacksmith-crafts .knowledge-prof-count-digit--0 { background-position: 0 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--1 { background-position: -9px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--2 { background-position: -18px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--3 { background-position: -27px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--4 { background-position: -36px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--5 { background-position: -45px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--6 { background-position: -54px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--7 { background-position: -63px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--8 { background-position: -72px 0 ; }
.knowledge-blacksmith-crafts .knowledge-prof-count-digit--9 { background-position: -81px 0 ; }


/* ===== Blacksmith23: use Minecraft Rus as a real web font ===== */
@font-face {
  font-family: 'Improve Minecraft Rus';
  src: url('../fonts/minecraft.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.knowledge-blacksmith-crafts .knowledge-prof-count--minecraft {
  display: block ;
  width: auto ;
  min-width: 0 ;
  height: auto ;
  padding: 0 ;
  background: transparent ;
  box-shadow: none ;
  color: #ffffff ;
  font-family: 'Improve Minecraft Rus', monospace ;
  font-size: 12px ;
  font-style: normal ;
  font-weight: 400 ;
  font-stretch: normal ;
  letter-spacing: 0 ;
  line-height: 1 ;
  text-align: right ;
  text-rendering: geometricPrecision;
  transform: none ;
  text-shadow: 1px 1px 0 #000000 ;
}

.knowledge-blacksmith-crafts .knowledge-prof-count {
  right: 3px ;
  bottom: 4px ;
}


                                                                                        
.knowledge-item-description {
  margin: 0 0 4px;
  padding: 14px 16px;
  border: 1px solid rgba(88, 126, 167, 0.22);
  border-radius: 14px;
  background: rgba(18, 36, 56, 0.46);
}

.knowledge-item-description h4 {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.knowledge-item-description p {
  margin: 0;
  color: rgba(232, 238, 248, 0.86);
  font-size: 15px;
  line-height: 1.55;
}

.knowledge-recipe-card .knowledge-recipe-layout {
  grid-template-columns: 216px 56px 82px;
  gap: 16px;
}

.knowledge-recipe-grid--crafting-table {
  width: 216px;
  height: 216px;
  display: grid;
  grid-template-columns: repeat(3, 72px);
  grid-template-rows: repeat(3, 72px);
  gap: 0;
  padding: 0;
  background-image: url('../img/knowledge/crafting_table.png');
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 216px 216px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-recipe-grid--crafting-table .knowledge-recipe-slot {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.knowledge-recipe-grid--crafting-table .knowledge-recipe-ingredient {
  width: 72px;
  height: 72px;
  border-radius: 0;
}

.knowledge-recipe-grid--crafting-table .knowledge-recipe-slot img,
.knowledge-recipe-grid--crafting-table .knowledge-recipe-ingredient img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-recipe-grid--crafting-table .knowledge-recipe-ingredient:hover {
  background: rgba(255, 255, 255, 0.08);
}

.knowledge-recipe-grid--crafting-table .knowledge-recipe-ingredient:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.78);
  outline-offset: -5px;
}

.knowledge-recipe-grid--processing {
  width: 216px;
  min-height: 216px;
  grid-template-columns: repeat(3, 64px);
  grid-template-rows: repeat(3, 64px);
  align-content: center;
  justify-content: center;
  gap: 8px;
}

.knowledge-recipe-grid--processing .knowledge-recipe-slot {
  width: 64px;
  height: 64px;
}

.knowledge-recipe-smoker {
  position: relative;
  width: 279px;
  height: 192px;
  margin: 0;
  background-image: url('../img/knowledge/smoker.png');
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 279px 192px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-recipe-smoker-slot,
.knowledge-recipe-smoker-output {
  position: absolute;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.knowledge-recipe-smoker-slot--input {
  left: 15px;
  top: 15px;
}

.knowledge-recipe-smoker-slot--fuel {
  left: 15px;
  top: 123px;
}

.knowledge-recipe-smoker-output {
  left: 183px;
  top: 69px;
}

.knowledge-recipe-smoker-slot .knowledge-recipe-ingredient,
.knowledge-recipe-smoker-output .knowledge-recipe-slot--result {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.knowledge-recipe-smoker-slot img,
.knowledge-recipe-smoker-output img,
.knowledge-recipe-smoker-output .knowledge-modal-image {
  width: 48px ;
  height: 48px ;
  object-fit: contain;
  display: block;
  margin: auto;
  transform: none ;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-recipe-smoker-fire {
  position: absolute;
  left: 18px;
  top: 69px;
  width: 42px;
  height: 42px;
  pointer-events: none;
}

.knowledge-recipe-smoker-fire img {
  display: block;
  width: 42px;
  height: 42px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transform-origin: center bottom;
  animation: knowledge-smoker-fire-burn 2.4s linear infinite;
}

@keyframes knowledge-smoker-fire-burn {
  0% { clip-path: inset(0 0 0 0); }
  92%, 100% { clip-path: inset(100% 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-recipe-smoker-fire img {
    animation-duration: 8s;
  }
}

.knowledge-recipe-output .knowledge-recipe-slot--result {
  width: 76px;
  height: 76px;
}

.knowledge-recipe-output .knowledge-recipe-slot--result img,
.knowledge-recipe-output .knowledge-recipe-slot--result .knowledge-modal-image {
  width: 64px ;
  height: 64px ;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

@media (max-width: 640px) {
  .knowledge-item-description {
    padding: 12px 13px;
  }

  .knowledge-item-description p {
    font-size: 14px;
  }

  .knowledge-recipe-card .knowledge-recipe-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 10px;
  }

  .knowledge-recipe-arrow {
    transform: rotate(90deg);
  }
}


                                                                                                     
.knowledge-item-description p + p {
  margin-top: 10px;
}

.knowledge-item-profcraft {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(88, 126, 167, 0.18);
}

.knowledge-item-profcraft h4 {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.knowledge-item-profcraft .knowledge-prof-recipe-grid {
  display: grid;
  gap: 12px;
}

.knowledge-recipe-output .knowledge-recipe-slot--result,
.knowledge-recipe-card--empty .knowledge-recipe-slot--result {
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 0;
  background: transparent url('../img/knowledge/recipe_output_slot.png') no-repeat 0 0 / 72px 72px;
  box-shadow: none;
}

.knowledge-recipe-output .knowledge-recipe-slot--result img,
.knowledge-recipe-output .knowledge-recipe-slot--result .knowledge-modal-image,
.knowledge-recipe-card--empty .knowledge-recipe-slot--result img,
.knowledge-recipe-card--empty .knowledge-recipe-slot--result .knowledge-modal-image {
  width: 64px ;
  height: 64px ;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

                                                                   
.knowledge-item-description > h4:first-child {
  margin-left: -16px;
}

.knowledge-item-profcraft .knowledge-prof-recipe-grid,
.knowledge-item-profcraft .knowledge-prof-recipe-card,
.knowledge-item-profcraft .knowledge-prof-craft-line,
.knowledge-item-profcraft .knowledge-prof-slot-list,
.knowledge-item-profcraft .knowledge-prof-recipe-result {
  all: unset;
}

.knowledge-item-profcraft-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  overflow: visible;
}

.knowledge-item-profcraft-inputs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 54px);
  width: 270px;
  height: 54px;
  background: transparent url('../img/knowledge/profcraft_slots.png') no-repeat 0 0 / 270px 54px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-item-profcraft-slot,
.knowledge-item-profcraft-result {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
  font: inherit;
  appearance: none;
  cursor: default;
}

button.knowledge-item-profcraft-slot,
button.knowledge-item-profcraft-result {
  cursor: pointer;
}

.knowledge-item-profcraft-slot:hover,
.knowledge-item-profcraft-slot:focus-visible,
.knowledge-item-profcraft-result:hover,
.knowledge-item-profcraft-result:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: 0;
}

.knowledge-item-profcraft-slot img,
.knowledge-item-profcraft-result img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  pointer-events: none;
}

.knowledge-item-profcraft-arrow {
  flex: 0 0 36px;
  width: 36px;
  height: 33px;
  background: transparent url('../img/knowledge/profcraft_arrow.png') no-repeat center / 36px 33px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-item-profcraft-result {
  flex: 0 0 54px;
  background: transparent url('../img/knowledge/profcraft_output_slot.png') no-repeat 0 0 / 54px 54px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-item-profcraft-slot .knowledge-prof-count,
.knowledge-item-profcraft-result .knowledge-prof-count,
.knowledge-item-profcraft-slot .knowledge-prof-count--minecraft,
.knowledge-item-profcraft-result .knowledge-prof-count--minecraft {
  position: absolute ;
  right: 3px ;
  bottom: 3px ;
  display: block ;
  width: auto ;
  min-width: 0 ;
  height: auto ;
  margin: 0 ;
  padding: 0 ;
  border: 0 ;
  background: transparent ;
  box-shadow: none ;
  color: #fff ;
  font-family: 'Improve Minecraft Rus', monospace ;
  font-size: 12px ;
  font-style: normal ;
  font-weight: 400 ;
  line-height: 1 ;
  text-shadow: 1px 1px 0 #000 ;
  pointer-events: none;
}

@media (max-width: 640px) {
  .knowledge-item-description > h4:first-child {
    margin-left: -13px;
  }

  .knowledge-item-profcraft-row {
    transform-origin: left center;
    transform: scale(0.78);
    margin-right: -80px;
    margin-bottom: -6px;
  }
}


                                                                                    
.knowledge-item-description {
  margin: 0 0 4px ;
  padding: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
  box-shadow: none ;
}

.knowledge-item-description > h4:first-child,
.knowledge-item-profcraft > h4 {
  margin-left: 0 ;
  padding-left: 0 ;
  text-align: left ;
}

.knowledge-item-profcraft-slot,
.knowledge-item-profcraft-result,
button.knowledge-item-profcraft-slot,
button.knowledge-item-profcraft-result {
  cursor: default ;
  pointer-events: none ;
}

.knowledge-item-profcraft-slot:hover,
.knowledge-item-profcraft-slot:focus-visible,
.knowledge-item-profcraft-result:hover,
.knowledge-item-profcraft-result:focus-visible {
  background-color: transparent ;
  outline: 0 ;
  box-shadow: none ;
  filter: none ;
  transform: none ;
}


                                                                                                  
.knowledge-modal-close {
  top: 14px ;
  right: 14px ;
  display: inline-flex ;
  align-items: center ;
  justify-content: center ;
  width: 40px ;
  height: 40px ;
  margin: 0 ;
  padding: 0 0 2px ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
  box-shadow: none ;
  color: #f6f8ff ;
  font-size: 25px ;
  font-weight: 400 ;
  line-height: 1 ;
  text-align: center ;
}

.knowledge-modal-close:hover,
.knowledge-modal-close:focus-visible {
  border: 0 ;
  background: transparent ;
  box-shadow: none ;
  outline: 0 ;
  color: #ffffff ;
  opacity: 0.8;
}

.knowledge-item-profcraft-slot,
.knowledge-item-profcraft-result {
  pointer-events: auto ;
}

button.knowledge-item-profcraft-slot,
button.knowledge-item-profcraft-result {
  cursor: pointer ;
}

span.knowledge-item-profcraft-slot,
span.knowledge-item-profcraft-result {
  cursor: default ;
}

.knowledge-item-profcraft-slot:hover,
.knowledge-item-profcraft-slot:focus-visible,
.knowledge-item-profcraft-result:hover,
.knowledge-item-profcraft-result:focus-visible {
  background-color: transparent ;
  outline: 0 ;
  box-shadow: none ;
  filter: none ;
  transform: none ;
}


                                                                                              
.knowledge-tooltip {
  z-index: 5000 ;
  max-width: 280px ;
  padding: 7px 10px ;
  border: 1px solid rgba(255, 255, 255, 0.16) ;
  border-radius: 7px ;
  background: rgba(3, 5, 8, 0.98) ;
  color: #ffffff ;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.55) ;
  font-size: 13px ;
  font-weight: 500 ;
  line-height: 1.25 ;
}

.knowledge-tooltip .knowledge-tooltip-title,
.knowledge-tooltip .knowledge-tooltip-text {
  color: #ffffff ;
}

/* Remove the old second tooltip drawn by CSS. The single JS tooltip above remains. */
.knowledge-prof-ingredient::after,
.knowledge-blacksmith-crafts .knowledge-prof-ingredient--knowledge-card::after,
.knowledge-blacksmith-crafts .knowledge-prof-recipe-result--tooltip::after {
  content: none ;
  display: none ;
  opacity: 0 ;
}

.knowledge-site-item,
.knowledge-site-item-slot,
.knowledge-site-item-result {
  color: inherit;
  font: inherit;
}

button.knowledge-site-item,
button.knowledge-site-item-slot,
button.knowledge-site-item-result {
  appearance: none;
  text-align: left;
}

.knowledge-site-item--linked {
  cursor: pointer ;
}

.knowledge-site-item-icon.knowledge-icon-box--rendered {
  flex: 0 0 auto;
  overflow: hidden ;
  background: transparent ;
  box-shadow: none ;
}

.knowledge-site-item-icon.knowledge-icon-box--rendered .knowledge-card-icon {
  display: block ;
  width: 100% ;
  height: 100% ;
  max-width: none ;
  max-height: none ;
  object-fit: contain ;
  image-rendering: auto ;
}

/* Cards in profession articles use the exact rendered PNG from “Blocks and items”. */
.knowledge-prof-icon--registry {
  overflow: hidden;
  background: transparent ;
}

.knowledge-prof-icon--registry .knowledge-site-item-icon {
  width: 42px ;
  height: 42px ;
  border-radius: 10px ;
}

.knowledge-prof-ingredient.knowledge-site-item-slot {
  cursor: default;
}

button.knowledge-prof-ingredient.knowledge-site-item-slot {
  cursor: pointer;
}

.knowledge-prof-ingredient.knowledge-site-item-slot > .knowledge-prof-recipe-card-icon,
.knowledge-prof-recipe-result.knowledge-site-item-result > .knowledge-prof-recipe-card-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.knowledge-prof-ingredient.knowledge-site-item-slot .knowledge-site-item-icon {
  width: 42px ;
  height: 42px ;
  border-radius: 10px ;
}

.knowledge-prof-recipe-result.knowledge-site-item-result .knowledge-site-item-icon {
  width: 46px ;
  height: 46px ;
  border-radius: 11px ;
}

.knowledge-prof-recipe-result.knowledge-site-item-result > .knowledge-prof-recipe-card-icon .knowledge-prof-count {
  position: absolute ;
  right: 2px ;
  bottom: 2px ;
}

.knowledge-blacksmith-tool .knowledge-site-item-icon {
  width: 100% ;
  height: 100% ;
  border-radius: inherit ;
}

                                                                                           
.knowledge-tooltip {
  max-width: 220px ;
  padding: 5px 8px ;
  border-color: rgba(255, 255, 255, 0.13) ;
  border-radius: 5px ;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.5) ;
  font-size: 12px ;
  line-height: 1.15 ;
  white-space: normal ;
}

.knowledge-tooltip .knowledge-tooltip-title {
  margin-bottom: 3px ;
  font-size: 12px ;
  line-height: 1.15 ;
}

.knowledge-tooltip .knowledge-tooltip-text {
  font-size: 12px ;
  line-height: 1.15 ;
}

.knowledge-item-profcraft-row,
.knowledge-item-profcraft-inputs {
  overflow: visible ;
  pointer-events: auto ;
}

.knowledge-item-profcraft-slot,
.knowledge-item-profcraft-result,
button.knowledge-item-profcraft-slot,
button.knowledge-item-profcraft-result {
  position: relative;
  z-index: 1;
  pointer-events: auto ;
}

button.knowledge-item-profcraft-slot,
button.knowledge-item-profcraft-result {
  cursor: pointer ;
}

.knowledge-item-profcraft-slot--empty {
  pointer-events: none ;
}

.knowledge-item-profcraft-slot .knowledge-site-item-icon,
.knowledge-item-profcraft-result .knowledge-site-item-icon {
  display: flex ;
  align-items: center ;
  justify-content: center ;
  width: 48px ;
  height: 48px ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
  box-shadow: none ;
  pointer-events: none ;
}

.knowledge-item-profcraft-slot:hover,
.knowledge-item-profcraft-slot:focus-visible,
.knowledge-item-profcraft-result:hover,
.knowledge-item-profcraft-result:focus-visible {
  background: transparent ;
  outline: 0 ;
  box-shadow: none ;
  filter: none ;
  transform: none ;
}


                                                                       
.knowledge-tooltip {
  border-radius: 8px ;
}

/* Item nodes never change their image, slot, opacity or position on hover. */
.knowledge-card.knowledge-card--icon-only,
.knowledge-recipe-ingredient,
.knowledge-prof-item,
.knowledge-prof-ingredient.knowledge-site-item-slot,
.knowledge-prof-recipe-result.knowledge-site-item-result,
.knowledge-blacksmith-tool,
.knowledge-item-profcraft-slot,
.knowledge-item-profcraft-result {
  transition: none ;
}

.knowledge-card.knowledge-card--icon-only:hover,
.knowledge-card.knowledge-card--icon-only:focus-visible,
.knowledge-recipe-ingredient:hover,
.knowledge-recipe-ingredient:focus-visible,
.knowledge-recipe-grid--crafting-table .knowledge-recipe-ingredient:hover,
.knowledge-recipe-grid--crafting-table .knowledge-recipe-ingredient:focus-visible,
.knowledge-prof-item:hover,
.knowledge-prof-item:focus-visible,
.knowledge-prof-ingredient.knowledge-site-item-slot:hover,
.knowledge-prof-ingredient.knowledge-site-item-slot:focus-visible,
.knowledge-prof-recipe-result.knowledge-site-item-result:hover,
.knowledge-prof-recipe-result.knowledge-site-item-result:focus-visible,
.knowledge-blacksmith-tool:hover,
.knowledge-blacksmith-tool:focus-visible,
.knowledge-item-profcraft-slot:hover,
.knowledge-item-profcraft-slot:focus-visible,
.knowledge-item-profcraft-result:hover,
.knowledge-item-profcraft-result:focus-visible {
  opacity: 1 ;
  visibility: visible ;
  background-color: transparent ;
  outline: 0 ;
  box-shadow: none ;
  filter: none ;
  transform: none ;
}

/* Keep every nested rendered texture stable while the pointer is over it. */
.knowledge-card.knowledge-card--icon-only:hover *,
.knowledge-card.knowledge-card--icon-only:focus-visible *,
.knowledge-recipe-ingredient:hover *,
.knowledge-recipe-ingredient:focus-visible *,
.knowledge-prof-item:hover *,
.knowledge-prof-item:focus-visible *,
.knowledge-prof-ingredient.knowledge-site-item-slot:hover *,
.knowledge-prof-ingredient.knowledge-site-item-slot:focus-visible *,
.knowledge-prof-recipe-result.knowledge-site-item-result:hover *,
.knowledge-prof-recipe-result.knowledge-site-item-result:focus-visible *,
.knowledge-blacksmith-tool:hover *,
.knowledge-blacksmith-tool:focus-visible *,
.knowledge-item-profcraft-slot:hover *,
.knowledge-item-profcraft-slot:focus-visible *,
.knowledge-item-profcraft-result:hover *,
.knowledge-item-profcraft-result:focus-visible * {
  opacity: 1 ;
  visibility: visible ;
  filter: none ;
  transform: none ;
}

/* The blacksmith output slot must remain visible when it becomes a button. */
.knowledge-blacksmith-crafts .knowledge-prof-recipe-result,
.knowledge-blacksmith-crafts .knowledge-prof-recipe-result:hover,
.knowledge-blacksmith-crafts .knowledge-prof-recipe-result:focus-visible {
  display: block ;
  width: 54px ;
  min-width: 54px ;
  max-width: 54px ;
  height: 54px ;
  min-height: 54px ;
  max-height: 54px ;
  padding: 0 ;
  border: 0 ;
  background: transparent ;
  opacity: 1 ;
  visibility: visible ;
  appearance: none ;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-result > .knowledge-prof-recipe-card-icon,
.knowledge-blacksmith-crafts .knowledge-prof-recipe-result:hover > .knowledge-prof-recipe-card-icon,
.knowledge-blacksmith-crafts .knowledge-prof-recipe-result:focus-visible > .knowledge-prof-recipe-card-icon {
  display: block ;
  opacity: 1 ;
  visibility: visible ;
  background-color: transparent ;
  background-image: url('../img/knowledge/crafting/slot.png') ;
  background-repeat: no-repeat ;
  background-position: 0 0 ;
  background-size: 54px 54px ;
}

/* Every linked item uses the same click target; images themselves never steal events. */
.knowledge-site-item--linked,
button.knowledge-recipe-ingredient,
button.knowledge-item-profcraft-slot,
button.knowledge-item-profcraft-result {
  cursor: pointer ;
  pointer-events: auto ;
}

.knowledge-site-item-icon,
.knowledge-site-item-icon *,
.knowledge-prof-recipe-card-icon,
.knowledge-prof-recipe-card-icon *,
.knowledge-recipe-ingredient img,
.knowledge-item-profcraft-slot img,
.knowledge-item-profcraft-result img {
  pointer-events: none ;
}

/* Keep the base “Blocks and items” tile unchanged on hover; only the tooltip appears. */
.knowledge-card--icon-only:hover .knowledge-icon-box--rendered,
.knowledge-card--icon-only:focus-visible .knowledge-icon-box--rendered {
  transform: none ;
  border-color: rgba(90, 125, 161, 0.28) ;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.055), transparent 38%),
    linear-gradient(180deg, rgba(31, 48, 68, 0.94), rgba(20, 33, 51, 0.94)) ;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03) ;
}


                                                                                                
/* Keep the output slot image visible in every state. Earlier hover rules used
   the background shorthand and could clear the slot PNG. */
.knowledge-item-profcraft-result,
.knowledge-item-profcraft-result:hover,
.knowledge-item-profcraft-result:focus-visible,
button.knowledge-item-profcraft-result,
button.knowledge-item-profcraft-result:hover,
button.knowledge-item-profcraft-result:focus-visible {
  background-color: transparent ;
  background-image: url('../img/knowledge/profcraft_output_slot.png') ;
  background-repeat: no-repeat ;
  background-position: 0 0 ;
  background-size: 54px 54px ;
  opacity: 1 ;
  visibility: visible ;
}

/* Every texture outside the main registry uses the same rendered-image rule
   as “Blocks and items”: registry PNG, contained proportions, no pixel crop. */
.knowledge-site-item-icon.knowledge-icon-box--rendered {
  display: flex ;
  align-items: center ;
  justify-content: center ;
  overflow: hidden ;
}

.knowledge-site-item-icon.knowledge-icon-box--rendered .knowledge-card-icon,
.knowledge-prof-recipe-card-icon .knowledge-site-item-icon .knowledge-card-icon,
.knowledge-item-profcraft-slot .knowledge-site-item-icon .knowledge-card-icon,
.knowledge-item-profcraft-result .knowledge-site-item-icon .knowledge-card-icon {
  display: block ;
  width: calc(100% - 6px) ;
  height: calc(100% - 6px) ;
  max-width: none ;
  max-height: none ;
  object-fit: contain ;
  object-position: center ;
  image-rendering: auto ;
  opacity: 1 ;
  visibility: visible ;
  filter: none ;
  transform: none ;
}

/* Slightly transparent single tooltip. */
.knowledge-tooltip {
  background: rgba(3, 5, 8, 0.90) ;
}


                                                                                      
/* Crafting-table recipes now use the same 54px slot standard as profession crafts. */
.knowledge-recipe-layout--crafting-table {
  grid-template-columns: 162px 28px 54px ;
  gap: 12px ;
  min-height: 162px ;
}

.knowledge-recipe-layout--crafting-table .knowledge-recipe-grid--crafting-table {
  width: 162px ;
  height: 162px ;
  grid-template-columns: repeat(3, 54px) ;
  grid-template-rows: repeat(3, 54px) ;
  background-size: 162px 162px ;
}

.knowledge-recipe-layout--crafting-table .knowledge-recipe-slot,
.knowledge-recipe-layout--crafting-table .knowledge-recipe-ingredient {
  width: 54px ;
  height: 54px ;
  min-width: 54px ;
  min-height: 54px ;
  max-width: 54px ;
  max-height: 54px ;
}

.knowledge-recipe-layout--crafting-table .knowledge-recipe-slot img,
.knowledge-recipe-layout--crafting-table .knowledge-recipe-ingredient img {
  width: 48px ;
  height: 48px ;
  max-width: 48px ;
  max-height: 48px ;
  object-fit: contain ;
  object-position: center ;
}

.knowledge-recipe-layout--crafting-table .knowledge-recipe-arrow {
  display: inline-block;
  width: 24px;
  min-width: 24px;
  height: 22px;
  font-size: 0 ;
  color: transparent ;
  background: url('../img/knowledge/crafting/arrow.png') center center / 24px 22px no-repeat ;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-recipe-layout--crafting-table .knowledge-recipe-output .knowledge-recipe-slot--result {
  width: 54px ;
  height: 54px ;
  min-width: 54px ;
  min-height: 54px ;
  max-width: 54px ;
  max-height: 54px ;
  background-size: 54px 54px ;
}

.knowledge-recipe-layout--crafting-table .knowledge-recipe-output .knowledge-recipe-slot--result img,
.knowledge-recipe-layout--crafting-table .knowledge-recipe-output .knowledge-recipe-slot--result .knowledge-modal-image {
  width: 48px ;
  height: 48px ;
  max-width: 48px ;
  max-height: 48px ;
}

.knowledge-recipe-layout--crafting-table .knowledge-recipe-count {
  right: 4px ;
  bottom: 3px ;
  font-size: 12px ;
}

@media (max-width: 640px) {
  .knowledge-recipe-layout--crafting-table {
    grid-template-columns: 1fr ;
    justify-items: center ;
    gap: 9px ;
  }
}

                                                                                             
/* The dialog itself no longer owns the scrollbar, so it cannot stick outside
   the rounded modal border. Only the recipe content scrolls. */
.knowledge-modal-dialog--recipe {
  display: flex ;
  flex-direction: column ;
  max-height: calc(100vh - 48px) ;
  overflow: hidden ;
}

.knowledge-modal-recipe-body {
  display: flex ;
  flex: 1 1 auto ;
  min-height: 0 ;
  flex-direction: column ;
  overflow: hidden ;
}

.knowledge-modal-recipe-content {
  min-height: 0 ;
  max-height: calc(100vh - 156px) ;
  overflow-x: hidden ;
  overflow-y: auto ;
  padding-right: 10px ;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(106, 161, 207, 0.82) transparent;
}

.knowledge-modal-recipe-content::-webkit-scrollbar {
  width: 8px;
}

.knowledge-modal-recipe-content::-webkit-scrollbar-track {
  margin-block: 8px;
  background: transparent;
}

.knowledge-modal-recipe-content::-webkit-scrollbar-thumb {
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(106, 161, 207, 0.82);
  background-clip: padding-box;
}

.knowledge-modal-recipe-content::-webkit-scrollbar-thumb:hover {
  background: rgba(126, 186, 232, 0.94);
  background-clip: padding-box;
}

/* Recipe rows begin directly under their “Верстак” / “Печь” heading. */
.knowledge-recipe-card .knowledge-recipe-layout,
.knowledge-recipe-layout--crafting-table {
  justify-content: start ;
  justify-items: start ;
  margin-left: 0 ;
  margin-right: 0 ;
}

/* Normal recipes use the same registry texture wrapper and dimensions as
   profession crafts. Only the slot artwork differs. */
.knowledge-recipe-slot .knowledge-site-item-icon,
.knowledge-recipe-ingredient .knowledge-site-item-icon,
.knowledge-recipe-output .knowledge-site-item-icon {
  display: flex ;
  align-items: center ;
  justify-content: center ;
  width: 48px ;
  height: 48px ;
  min-width: 48px ;
  min-height: 48px ;
  max-width: 48px ;
  max-height: 48px ;
  padding: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
  box-shadow: none ;
  overflow: hidden ;
  pointer-events: none ;
}

.knowledge-recipe-slot .knowledge-site-item-icon .knowledge-card-icon,
.knowledge-recipe-ingredient .knowledge-site-item-icon .knowledge-card-icon,
.knowledge-recipe-output .knowledge-site-item-icon .knowledge-card-icon,
.knowledge-recipe-layout--crafting-table .knowledge-recipe-slot .knowledge-site-item-icon .knowledge-card-icon,
.knowledge-recipe-layout--crafting-table .knowledge-recipe-ingredient .knowledge-site-item-icon .knowledge-card-icon {
  display: block ;
  width: calc(100% - 6px) ;
  height: calc(100% - 6px) ;
  max-width: none ;
  max-height: none ;
  object-fit: contain ;
  object-position: center ;
  image-rendering: auto ;
  opacity: 1 ;
  visibility: visible ;
  filter: none ;
  transform: none ;
}

@media (max-width: 640px) {
  .knowledge-modal-recipe-content {
    max-height: calc(100vh - 132px) ;
    padding-right: 6px ;
  }

  .knowledge-recipe-card .knowledge-recipe-layout,
  .knowledge-recipe-layout--crafting-table {
    justify-content: center ;
    justify-items: center ;
  }
}

                                                                               
/* Move only the inner recipe scrollbar slightly closer to the modal edge. */
.knowledge-modal-recipe-content {
  width: calc(100% + 8px) ;
  margin-right: -8px ;
  padding-right: 18px ;
}

/* Every numeric stack amount uses the exact same font treatment as the
   blacksmith craft rows. */
.knowledge-recipe-count,
.knowledge-prof-count--minecraft {
  display: block ;
  width: auto ;
  min-width: 0 ;
  height: auto ;
  padding: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
  box-shadow: none ;
  color: #ffffff ;
  font-family: 'Improve Minecraft Rus', monospace ;
  font-size: 12px ;
  font-style: normal ;
  font-weight: 400 ;
  font-stretch: normal ;
  letter-spacing: 0 ;
  line-height: 1 ;
  text-align: right ;
  text-rendering: geometricPrecision;
  transform: none ;
  text-shadow: 1px 1px 0 #000000 ;
}

.knowledge-recipe-count {
  right: 3px ;
  bottom: 4px ;
}

@media (max-width: 640px) {
  .knowledge-modal-recipe-content {
    width: calc(100% + 5px) ;
    margin-right: -5px ;
    padding-right: 11px ;
  }
}

                                                                     
/* Keep the scrollbar slightly closer to the right edge without pushing it
   outside the clipped modal body. */
.knowledge-modal-recipe-content {
  box-sizing: border-box ;
  width: auto ;
  margin-right: -3px ;
  padding-right: 13px ;
  overflow-y: scroll ;
}

@media (max-width: 640px) {
  .knowledge-modal-recipe-content {
    width: auto ;
    margin-right: -2px ;
    padding-right: 8px ;
  }
}

                                                                               
/* The scroll track is shown only when the item page is taller than its viewport. */
.knowledge-modal-recipe-body {
  width: calc(100% + 7px) ;
  margin-right: -7px ;
}

.knowledge-modal-recipe-content {
  width: 100% ;
  margin-right: 0 ;
  padding-right: 13px ;
  overflow-y: auto ;
  scrollbar-gutter: auto ;
}

.knowledge-modal-recipe-content::-webkit-scrollbar {
  width: 7px ;
}

.knowledge-modal-recipe-content::-webkit-scrollbar-thumb {
  border: 1px solid transparent ;
  border-radius: 999px ;
  background-clip: padding-box ;
}

@media (max-width: 640px) {
  .knowledge-modal-recipe-body {
    width: calc(100% + 4px) ;
    margin-right: -4px ;
  }

  .knowledge-modal-recipe-content {
    width: 100% ;
    margin-right: 0 ;
    padding-right: 8px ;
    overflow-y: auto ;
  }
}

                                                   
body.knowledge-builder-open .knowledge-layout {
  grid-template-columns: minmax(0, 1fr) ;
  max-width: none ;
}

body.knowledge-builder-open .knowledge-sidebar {
  display: none ;
}

body.knowledge-builder-open .knowledge-content {
  --knowledge-inner-width: none;
  width: 100% ;
  max-width: none ;
}

body.knowledge-builder-open .knowledge-content-header,
body.knowledge-builder-open .knowledge-grid,
.knowledge-builder-root {
  width: 100% ;
  max-width: none ;
}

.knowledge-builder-root {
  display: block ;
  margin: 0 ;
}

.knowledge-builder-shell {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(420px, 1fr) minmax(240px, 290px);
  grid-template-rows: auto auto minmax(640px, calc(100vh - 245px));
  gap: 12px;
  min-width: 0;
  color: #e9f3ff;
}

.knowledge-builder-topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(89, 154, 217, .26);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(18, 48, 78, .98), rgba(10, 28, 48, .98));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22);
}

.knowledge-builder-topbar > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.knowledge-builder-topbar > div:first-child strong {
  overflow: hidden;
  color: #f4f8ff;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-builder-topbar > div:first-child span {
  color: rgba(201, 220, 242, .66);
  font-size: 12px;
}

.knowledge-builder-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.knowledge-builder-topbar button,
.knowledge-builder-addbar button,
.knowledge-builder-inspector button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(105, 165, 222, .3);
  border-radius: 9px;
  color: #eaf4ff;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  background: rgba(33, 65, 99, .76);
  cursor: pointer;
}

.knowledge-builder-topbar button:hover,
.knowledge-builder-addbar button:hover,
.knowledge-builder-inspector button:hover {
  border-color: rgba(92, 189, 255, .68);
  background: rgba(43, 83, 124, .95);
}

.knowledge-builder-topbar .knowledge-admin-save {
  border-color: rgba(76, 206, 255, .56);
  background: linear-gradient(135deg, #166a97, #245b91);
}

.knowledge-builder-notice {
  grid-column: 1 / -1;
  padding: 9px 13px;
  border: 1px solid rgba(94, 196, 255, .24);
  border-radius: 10px;
  color: #bceaff;
  background: rgba(18, 63, 87, .52);
  font-size: 12px;
}

.knowledge-builder-pages,
.knowledge-builder-workspace,
.knowledge-builder-inspector {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(86, 143, 196, .24);
  border-radius: 14px;
  background: rgba(8, 24, 41, .82);
}

.knowledge-builder-pages,
.knowledge-builder-inspector {
  position: sticky;
  top: 12px;
  align-self: start;
  height: min(720px, calc(100vh - 42px));
}

.knowledge-builder-panel-title,
.knowledge-builder-inspector-head {
  display: grid;
  gap: 3px;
  padding: 14px;
  border-bottom: 1px solid rgba(93, 152, 207, .18);
}

.knowledge-builder-panel-title strong,
.knowledge-builder-inspector-head strong {
  color: #f1f7ff;
}

.knowledge-builder-panel-title span,
.knowledge-builder-inspector-head span {
  color: rgba(192, 214, 239, .62);
  font-size: 11px;
}

.knowledge-builder-pages > input {
  width: calc(100% - 20px);
  min-height: 40px;
  margin: 10px;
  padding: 0 11px;
  border: 1px solid rgba(100, 157, 214, .25);
  border-radius: 9px;
  outline: none;
  color: #edf6ff;
  background: rgba(3, 16, 28, .72);
}

.knowledge-builder-pages > input:focus {
  border-color: #55adf1;
}

.knowledge-builder-pages nav {
  display: grid;
  gap: 5px;
  max-height: calc(100% - 178px);
  padding: 0 10px 12px;
  overflow: auto;
}

.knowledge-builder-page-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 0 10px 10px;
}

.knowledge-builder-page-actions button {
  min-width: 0;
  min-height: 32px;
  padding: 5px 6px;
  border: 1px solid rgba(101, 160, 215, .24);
  border-radius: 8px;
  overflow: hidden;
  color: #dcecff;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(31, 61, 92, .65);
  cursor: pointer;
}

.knowledge-builder-pages nav button {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #dceaff;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.knowledge-builder-pages nav button:hover {
  background: rgba(37, 73, 108, .55);
}

.knowledge-builder-pages nav button.is-active {
  border-color: rgba(87, 184, 255, .45);
  background: rgba(39, 91, 133, .62);
}

.knowledge-builder-pages nav small {
  overflow: hidden;
  color: rgba(178, 205, 233, .57);
  font-size: 9px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.knowledge-builder-pages nav strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.knowledge-builder-workspace {
  display: flex;
  flex-direction: column;
  height: min(880px, calc(100vh - 42px));
  background: rgba(6, 18, 31, .68);
}

.knowledge-builder-addbar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  padding: 11px 13px;
  border-bottom: 1px solid rgba(91, 151, 207, .18);
  background: rgba(17, 42, 68, .84);
}

.knowledge-builder-addbar > span {
  margin-right: 3px;
  color: #8fd6ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.knowledge-builder-addbar button {
  min-height: 34px;
  padding: 5px 9px;
  font-size: 12px;
}

.knowledge-builder-canvas {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 18px;
  overflow: auto;
  background-image: radial-gradient(circle at 1px 1px, rgba(113, 168, 218, .12) 1px, transparent 0);
  background-size: 22px 22px;
}

.knowledge-builder-block {
  position: relative;
  min-width: 0;
  padding: 36px 18px 17px;
  border: 1px solid rgba(92, 143, 190, .2);
  border-radius: 12px;
  background: rgba(12, 31, 50, .96);
  transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.knowledge-builder-block:hover {
  border-color: rgba(94, 173, 235, .48);
}

.knowledge-builder-block.is-selected {
  border-color: #58baff;
  box-shadow: 0 0 0 2px rgba(55, 158, 226, .14);
}

.knowledge-builder-block.is-dragging {
  opacity: .42;
}

.knowledge-builder-block.is-drag-over {
  border-color: #ffd363;
  box-shadow: 0 -3px 0 #ffd363;
}

.knowledge-builder-block-tools {
  position: absolute;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 3px 6px;
  border-bottom: 1px solid rgba(88, 143, 194, .14);
  color: rgba(187, 213, 239, .65);
  font-size: 10px;
}

.knowledge-builder-block-tools span {
  flex: 1;
  text-align: left;
}

.knowledge-builder-block-tools button {
  width: 25px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: #cde2f6;
  background: transparent;
  cursor: pointer;
}

.knowledge-builder-block-tools button:hover {
  background: rgba(77, 139, 194, .25);
}

.knowledge-builder-block-content {
  min-width: 0;
}

.knowledge-builder-block-content [contenteditable="true"] {
  min-height: 26px;
  padding: 5px 7px;
  border-radius: 7px;
  outline: none;
}

.knowledge-builder-block-content [contenteditable="true"]:focus {
  box-shadow: 0 0 0 2px rgba(75, 175, 242, .28);
  background: rgba(5, 19, 32, .52);
}

.knowledge-builder-block-content img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.knowledge-builder-empty-media,
.knowledge-builder-inspector-empty {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 20px;
  border: 1px dashed rgba(100, 166, 222, .34);
  border-radius: 10px;
  color: rgba(203, 222, 242, .62);
  text-align: center;
}

.knowledge-builder-legacy-preview {
  position: relative;
}

.knowledge-builder-legacy-preview > span {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: rgba(195, 218, 239, .68);
  background: rgba(69, 109, 145, .25);
  font-size: 10px;
}

.knowledge-builder-callout {
  padding: 14px 16px;
  border-left: 4px solid #4cbcff;
  border-radius: 7px 11px 11px 7px;
  background: rgba(41, 113, 157, .16);
}

.knowledge-builder-callout.is-warning {
  border-left-color: #ffd15d;
  background: rgba(174, 125, 25, .15);
}

.knowledge-builder-callout.is-success {
  border-left-color: #61daa0;
  background: rgba(36, 139, 93, .15);
}

.knowledge-builder-divider {
  height: 1px;
  margin: 12px 0;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(126, 179, 225, .6), transparent);
}

.knowledge-builder-inspector {
  overflow-y: auto;
}

.knowledge-builder-inspector-fields,
.knowledge-builder-inspector-actions {
  display: grid;
  gap: 11px;
  padding: 14px;
}

.knowledge-builder-inspector-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.knowledge-builder-inspector-fields label > span {
  color: rgba(205, 224, 245, .72);
  font-size: 11px;
  font-weight: 750;
}

.knowledge-builder-inspector-fields input,
.knowledge-builder-inspector-fields select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(103, 159, 212, .26);
  border-radius: 9px;
  outline: none;
  color: #edf6ff;
  background: rgba(3, 16, 29, .78);
}

.knowledge-builder-inspector-fields input[type="range"] {
  min-height: 24px;
  padding: 0;
}

.knowledge-builder-inspector-fields input:focus,
.knowledge-builder-inspector-fields select:focus {
  border-color: #59b5f7;
}

.knowledge-builder-inspector-actions {
  border-top: 1px solid rgba(91, 149, 205, .16);
}

.knowledge-builder-inspector-note {
  margin: 0;
  color: rgba(204, 222, 241, .68);
  font-size: 12px;
  line-height: 1.5;
}

.knowledge-builder-published-image {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
}

.knowledge-builder-preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 9, 17, .82);
  backdrop-filter: blur(8px);
}

.knowledge-builder-preview {
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid rgba(97, 165, 225, .34);
  border-radius: 18px;
  color: #e9f3ff;
  background: #0b1d31;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}

.knowledge-builder-preview > header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px 17px;
  border-bottom: 1px solid rgba(96, 155, 210, .2);
  background: rgba(11, 29, 49, .98);
}

.knowledge-builder-preview > header > div {
  display: grid;
  gap: 2px;
}

.knowledge-builder-preview > header span {
  color: rgba(199, 218, 239, .65);
  font-size: 11px;
}

.knowledge-builder-preview > header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: #e4f1ff;
  background: rgba(255, 255, 255, .08);
  font-size: 22px;
  cursor: pointer;
}

.knowledge-builder-preview > div {
  padding: 20px;
}

@media (max-width: 1180px) {
  .knowledge-builder-shell {
    grid-template-columns: minmax(190px, 220px) minmax(380px, 1fr);
  }

  .knowledge-builder-inspector {
    position: static;
    grid-column: 1 / -1;
    height: auto;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .knowledge-builder-shell {
    display: flex;
    flex-direction: column;
  }

  .knowledge-builder-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .knowledge-builder-topbar-actions {
    justify-content: flex-start;
  }

  .knowledge-builder-pages,
  .knowledge-builder-workspace,
  .knowledge-builder-inspector {
    position: static;
    width: 100%;
    height: auto;
  }

  .knowledge-builder-pages nav {
    max-height: 260px;
  }

  .knowledge-builder-workspace {
    min-height: 640px;
  }
}

                                                                     
.knowledge-builder-topbar button:disabled,
.knowledge-builder-addbar button:disabled {
  opacity: .38;
  cursor: default;
  transform: none;
}

.knowledge-builder-addbar {
  align-items: stretch;
  flex-direction: column;
}

.knowledge-builder-addbar > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.knowledge-builder-addbar > div + div {
  padding-top: 8px;
  border-top: 1px solid rgba(91, 151, 207, .14);
}

.knowledge-builder-addbar > div > span {
  min-width: 92px;
  margin-right: 3px;
  color: #8fd6ff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.knowledge-builder-legacy-preview [data-builder-legacy-content] {
  min-width: 0;
}

.knowledge-link-popover {
  position: fixed;
  z-index: 10250;
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(91, 179, 242, .46);
  border-radius: 13px;
  color: #ebf5ff;
  background: rgba(9, 27, 45, .99);
  box-shadow: 0 20px 55px rgba(0, 0, 0, .52);
  backdrop-filter: blur(8px);
}

.knowledge-link-popover__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.knowledge-link-popover__head strong {
  font-size: 14px;
}

.knowledge-link-popover__head button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #dbeeff;
  background: rgba(255, 255, 255, .08);
  font-size: 18px;
  cursor: pointer;
}

.knowledge-link-popover label {
  display: grid;
  gap: 6px;
}

.knowledge-link-popover label > span {
  color: rgba(198, 220, 243, .68);
  font-size: 11px;
  font-weight: 750;
}

.knowledge-link-popover input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid rgba(103, 165, 221, .3);
  border-radius: 9px;
  outline: none;
  color: #eff8ff;
  background: rgba(3, 15, 27, .86);
}

.knowledge-link-popover input:focus {
  border-color: #5bbaff;
  box-shadow: 0 0 0 3px rgba(67, 168, 235, .14);
}

.knowledge-link-popover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.knowledge-link-popover__actions button {
  flex: 1 1 auto;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid rgba(103, 166, 223, .3);
  border-radius: 8px;
  color: #eaf5ff;
  background: rgba(35, 68, 102, .78);
  cursor: pointer;
}

.knowledge-link-popover__actions button:hover {
  border-color: rgba(92, 190, 255, .7);
  background: rgba(47, 89, 130, .96);
}

.knowledge-link-popover__actions button.is-danger {
  border-color: rgba(255, 112, 128, .42);
  color: #ffb4be;
}

                                                                                 
.knowledge-blacksmith-crafts .knowledge-prof-craft-line {
  width: 408px ;
  min-width: 408px ;
  max-width: 408px ;
  height: 84px ;
  min-height: 84px ;
  overflow: visible ;
  background: transparent url('../img/knowledge/site_profcrafts.png') no-repeat 0 0 / 408px 84px ;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-result,
.knowledge-blacksmith-crafts .knowledge-prof-recipe-result:hover,
.knowledge-blacksmith-crafts .knowledge-prof-recipe-result:focus-visible,
.knowledge-item-profcraft-row .knowledge-item-profcraft-result,
.knowledge-item-profcraft-row .knowledge-item-profcraft-result:hover,
.knowledge-item-profcraft-row .knowledge-item-profcraft-result:focus-visible {
  background: none ;
  background-color: transparent ;
  background-image: none ;
  border: 0 ;
  outline: 0 ;
  box-shadow: none ;
  filter: none ;
  transform: none ;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-result > .knowledge-prof-recipe-card-icon,
.knowledge-blacksmith-crafts .knowledge-prof-recipe-result:hover > .knowledge-prof-recipe-card-icon,
.knowledge-blacksmith-crafts .knowledge-prof-recipe-result:focus-visible > .knowledge-prof-recipe-card-icon {
  background: none ;
  background-color: transparent ;
  background-image: none ;
  border: 0 ;
  outline: 0 ;
  box-shadow: none ;
  filter: none ;
  transform: none ;
}

.knowledge-blacksmith-crafts .knowledge-prof-recipe-result::before,
.knowledge-blacksmith-crafts .knowledge-prof-recipe-result::after,
.knowledge-item-profcraft-row .knowledge-item-profcraft-result::before,
.knowledge-item-profcraft-row .knowledge-item-profcraft-result::after {
  content: none ;
  display: none ;
}

/* The replacement workbench image has a standard 18px output slot. */
.knowledge-recipe-layout--crafting-table .knowledge-recipe-output {
  left: 291px ;
  top: 69px ;
  width: 54px ;
  height: 54px ;
}

.knowledge-recipe-layout--crafting-table .knowledge-recipe-output .knowledge-recipe-slot--result {
  width: 54px ;
  min-width: 54px ;
  max-width: 54px ;
  height: 54px ;
  min-height: 54px ;
  max-height: 54px ;
}

                                                                              
.knowledge-recipe-smoker-fire {
  left: 19px ;
  top: 75px ;
}

.knowledge-recipe-smoker-fire img {
  animation-duration: 6s ;
}

.knowledge-recipe-smoker-slot,
.knowledge-recipe-smoker-output,
.knowledge-recipe-smoker-slot > .knowledge-recipe-ingredient,
.knowledge-recipe-smoker-output > .knowledge-recipe-slot--result,
.knowledge-recipe-smoker-slot .knowledge-site-item-icon,
.knowledge-recipe-smoker-output .knowledge-site-item-icon {
  display: grid ;
  place-items: center ;
}

.knowledge-recipe-smoker-slot .knowledge-site-item-icon,
.knowledge-recipe-smoker-output .knowledge-site-item-icon {
  width: 48px ;
  height: 48px ;
  margin: 0 ;
  transform: none ;
}

.knowledge-recipe-smoker-slot .knowledge-site-item-icon .knowledge-card-icon,
.knowledge-recipe-smoker-output .knowledge-site-item-icon .knowledge-card-icon {
  width: 42px ;
  height: 42px ;
  margin: 0 ;
  object-fit: contain ;
  object-position: 50% 50% ;
  transform: none ;
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-recipe-smoker-fire img {
    animation-duration: 14s ;
  }
}

                                                                   
.knowledge-prof-ingredient--empty,
.knowledge-item-profcraft-slot--empty {
  pointer-events: none ;
  cursor: default ;
}

.knowledge-prof-ingredient--empty::before,
.knowledge-prof-ingredient--empty::after,
.knowledge-item-profcraft-slot--empty::before,
.knowledge-item-profcraft-slot--empty::after {
  content: none ;
  display: none ;
}

.knowledge-prof-craft-line .knowledge-prof-recipe-result,
.knowledge-prof-craft-line .knowledge-prof-recipe-result:hover,
.knowledge-prof-craft-line .knowledge-prof-recipe-result:focus-visible,
.knowledge-item-profcraft-row .knowledge-item-profcraft-result,
.knowledge-item-profcraft-row .knowledge-item-profcraft-result:hover,
.knowledge-item-profcraft-row .knowledge-item-profcraft-result:focus-visible,
.knowledge-prof-craft-line .knowledge-prof-recipe-result *,
.knowledge-prof-craft-line .knowledge-prof-recipe-result:hover *,
.knowledge-prof-craft-line .knowledge-prof-recipe-result:focus-visible *,
.knowledge-item-profcraft-row .knowledge-item-profcraft-result *,
.knowledge-item-profcraft-row .knowledge-item-profcraft-result:hover *,
.knowledge-item-profcraft-row .knowledge-item-profcraft-result:focus-visible * {
  animation: none ;
  transition: none ;
  transform: none ;
  translate: none ;
  scale: none ;
}

.knowledge-prof-craft-line .knowledge-prof-recipe-result--tooltip::before,
.knowledge-prof-craft-line .knowledge-prof-recipe-result--tooltip::after {
  content: none ;
  display: none ;
}

                                                                                
.knowledge-prof-craft-line .knowledge-prof-recipe-result,
.knowledge-prof-craft-line .knowledge-prof-recipe-result:hover,
.knowledge-prof-craft-line .knowledge-prof-recipe-result:focus-visible {
  display: grid ;
  grid-template-columns: 54px ;
  grid-template-rows: 54px ;
  gap: 0 ;
  place-items: center ;
}

.knowledge-prof-craft-line .knowledge-prof-recipe-result > .knowledge-prof-recipe-card-icon,
.knowledge-prof-craft-line .knowledge-prof-recipe-result:hover > .knowledge-prof-recipe-card-icon,
.knowledge-prof-craft-line .knowledge-prof-recipe-result:focus-visible > .knowledge-prof-recipe-card-icon {
  position: absolute ;
  left: -2px ;
  top: 0 ;
}

.knowledge-item-profcraft-row .knowledge-item-profcraft-result > .knowledge-site-item-icon {
  position: relative ;
  left: -2px ;
}

@media (max-width: 760px) {
  .knowledge-blacksmith-crafts .knowledge-prof-craft-line {
    width: 408px ;
    min-width: 408px ;
    max-width: 408px ;
  }
}

                                                                      
/* Ordinary workbench recipes use the complete 3x3 + arrow + output artwork. */
.knowledge-recipe-layout--crafting-table {
  position: relative ;
  display: block ;
  width: 384px ;
  max-width: none ;
  height: 192px ;
  min-height: 192px ;
  margin: 0 ;
  background: transparent url('../img/knowledge/site_crafting_table.png') no-repeat 0 0 / 384px 192px ;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-recipe-layout--crafting-table .knowledge-recipe-grid--crafting-table {
  position: absolute ;
  left: 18px ;
  top: 18px ;
  display: grid ;
  grid-template-columns: repeat(3, 54px) ;
  grid-template-rows: repeat(3, 54px) ;
  width: 162px ;
  height: 162px ;
  margin: 0 ;
  background: none ;
}

.knowledge-recipe-layout--crafting-table .knowledge-recipe-arrow {
  display: none ;
}

.knowledge-recipe-layout--crafting-table .knowledge-recipe-output {
  position: absolute ;
  left: 285px ;
  top: 54px ;
  display: grid ;
  place-items: center ;
  width: 84px ;
  height: 84px ;
}

.knowledge-recipe-layout--crafting-table .knowledge-recipe-output .knowledge-recipe-slot--result {
  display: grid ;
  place-items: center ;
  width: 84px ;
  min-width: 84px ;
  max-width: 84px ;
  height: 84px ;
  min-height: 84px ;
  max-height: 84px ;
  padding: 0 ;
  border: 0 ;
  background: none ;
}

                                                                                
.knowledge-prof-craft-line,
.knowledge-item-profcraft-row {
  position: relative ;
  display: block ;
  width: 408px ;
  max-width: none ;
  height: 84px ;
  min-height: 84px ;
  margin: 0 ;
  background: transparent url('../img/knowledge/site_profcrafts.png') no-repeat 0 0 / 408px 84px ;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-prof-craft-line .knowledge-prof-slot-list,
.knowledge-item-profcraft-row .knowledge-item-profcraft-inputs {
  position: absolute ;
  left: 15px ;
  top: 15px ;
  display: grid ;
  grid-template-columns: repeat(5, 54px) ;
  grid-template-rows: 54px ;
  gap: 0 ;
  width: 270px ;
  min-width: 270px ;
  max-width: 270px ;
  height: 54px ;
  min-height: 54px ;
  padding: 0 ;
  margin: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: none ;
  box-shadow: none ;
  overflow: visible ;
}

.knowledge-prof-craft-line .knowledge-prof-ingredient,
.knowledge-prof-craft-line .knowledge-prof-ingredient--knowledge-card,
.knowledge-prof-craft-line .knowledge-prof-ingredient--empty {
  position: relative ;
  display: grid ;
  place-items: center ;
  width: 54px ;
  min-width: 54px ;
  max-width: 54px ;
  height: 54px ;
  min-height: 54px ;
  max-height: 54px ;
  padding: 0 ;
  margin: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: none ;
  box-shadow: none ;
}

.knowledge-prof-craft-line .knowledge-prof-craft-arrow,
.knowledge-item-profcraft-row .knowledge-item-profcraft-arrow {
  display: none ;
}

.knowledge-prof-craft-line .knowledge-prof-recipe-result,
.knowledge-item-profcraft-row .knowledge-item-profcraft-result {
  position: absolute ;
  left: 342px ;
  top: 15px ;
  display: grid ;
  place-items: center ;
  width: 54px ;
  min-width: 54px ;
  max-width: 54px ;
  height: 54px ;
  min-height: 54px ;
  max-height: 54px ;
  padding: 0 ;
  margin: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: none ;
  box-shadow: none ;
  overflow: visible ;
}

.knowledge-prof-craft-line .knowledge-prof-recipe-result > .knowledge-prof-recipe-card-icon {
  display: grid ;
  place-items: center ;
  width: 54px ;
  min-width: 54px ;
  max-width: 54px ;
  height: 54px ;
  min-height: 54px ;
  max-height: 54px ;
  padding: 0 ;
  margin: 0 ;
  border: 0 ;
  background: none ;
  box-shadow: none ;
  overflow: visible ;
}

.knowledge-prof-craft-line .knowledge-prof-recipe-result > span:last-child {
  display: none ;
}

@media (max-width: 640px) {
  .knowledge-recipe-layout--crafting-table {
    zoom: 0.72;
  }

  .knowledge-prof-craft-line,
  .knowledge-item-profcraft-row {
    zoom: 0.68;
    transform: none ;
    margin-right: 0 ;
    margin-bottom: 0 ;
  }
}

                                                                             
.knowledge-modal-recipe-body {
  width: calc(100% + 11px) ;
  margin-right: -11px ;
}

.knowledge-modal-close {
  top: 10px ;
  right: 8px ;
}

@media (max-width: 640px) {
  .knowledge-modal-recipe-body {
    width: calc(100% + 7px) ;
    margin-right: -7px ;
  }

  .knowledge-modal-close {
    top: 9px ;
    right: 7px ;
  }
}

                                                                               
.knowledge-recipe-layout--crafting-table .knowledge-recipe-output {
  left: 291px ;
  top: 69px ;
  width: 54px ;
  height: 54px ;
}

.knowledge-recipe-layout--crafting-table .knowledge-recipe-output .knowledge-recipe-slot--result {
  width: 54px ;
  min-width: 54px ;
  max-width: 54px ;
  height: 54px ;
  min-height: 54px ;
  max-height: 54px ;
}


                                                                     
.knowledge-item-labcraft {
  width: fit-content;
  max-width: 100%;
}

.knowledge-item-labcraft > h4 {
  margin-bottom: 12px;
}

.knowledge-item-labcraft-station {
  position: relative;
  width: 274px;
  height: 130px;
  background: transparent url('../img/knowledge/brewing_station.png') no-repeat 0 0 / 274px 130px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.knowledge-item-labcraft-slot {
  position: absolute;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
}

.knowledge-item-labcraft-slot--water { left: 10px; top: 8px; }
.knowledge-item-labcraft-slot--ingredient-1 { left: 84px; top: 8px; }
.knowledge-item-labcraft-slot--ingredient-2 { left: 160px; top: 8px; }
.knowledge-item-labcraft-slot--ingredient-3 { left: 236px; top: 8px; }
.knowledge-item-labcraft-slot--result { left: 84px; top: 72px; }

.knowledge-item-labcraft .knowledge-item-profcraft-slot,
.knowledge-item-labcraft .knowledge-item-profcraft-result,
.knowledge-item-labcraft button.knowledge-item-profcraft-slot,
.knowledge-item-labcraft button.knowledge-item-profcraft-result,
.knowledge-item-labcraft span.knowledge-item-profcraft-slot,
.knowledge-item-labcraft span.knowledge-item-profcraft-result {
  width: 36px ;
  height: 36px ;
  min-width: 36px ;
  min-height: 36px ;
  max-width: 36px ;
  max-height: 36px ;
  display: grid ;
  place-items: center ;
  margin: 0 ;
  padding: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
  background-image: none ;
  box-shadow: none ;
}

.knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-site-item-icon,
.knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-site-item-icon {
  display: grid ;
  place-items: center ;
  width: 36px ;
  height: 36px ;
  min-width: 36px ;
  min-height: 36px ;
  max-width: 36px ;
  max-height: 36px ;
  margin: 0 ;
  transform: none ;
}

.knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-site-item-icon .knowledge-card-icon,
.knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-site-item-icon .knowledge-card-icon {
  width: 30px ;
  height: 30px ;
  margin: 0 ;
  object-fit: contain ;
  object-position: 50% 50% ;
  transform: none ;
  image-rendering: pixelated ;
  image-rendering: crisp-edges ;
}

.knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-prof-count,
.knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-prof-count,
.knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-prof-count--minecraft,
.knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-prof-count--minecraft {
  right: 1px ;
  bottom: 0 ;
  transform: scale(0.82) ;
  transform-origin: right bottom ;
}

.knowledge-item-labcraft .knowledge-item-profcraft-slot--empty {
  display: block ;
  width: 36px ;
  height: 36px ;
  background: transparent ;
}

.knowledge-item-labcraft .knowledge-item-profcraft-slot--empty::before,
.knowledge-item-labcraft .knowledge-item-profcraft-slot--empty::after {
  display: none ;
}

.knowledge-item-labcraft-vortex,
.knowledge-item-labcraft-arrow-anim {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.knowledge-item-labcraft-vortex {
  left: 9px;
  top: 58px;
  width: 24px;
  height: 58px;
}

.knowledge-item-labcraft-vortex-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 0;
  background: transparent url('../img/knowledge/site_tornado.png') no-repeat 0 100% / 24px 58px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  animation: knowledgeLabVortexFill 5.6s steps(12, end) infinite;
}

.knowledge-item-labcraft-arrow-anim {
  left: 42px;
  top: 86px;
  width: 26px;
  height: 14px;
}

.knowledge-item-labcraft-arrow-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: transparent url('../img/knowledge/site_arrow.png') no-repeat 0 0 / 26px 14px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  animation: knowledgeLabArrowFill 5.6s steps(13, end) infinite;
}

@keyframes knowledgeLabVortexFill {
  0%, 10% { height: 0; }
  62%, 100% { height: 100%; }
}

@keyframes knowledgeLabArrowFill {
  0%, 66% { width: 0; }
  100% { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-item-labcraft-vortex-fill,
  .knowledge-item-labcraft-arrow-fill {
    animation-duration: 10s ;
  }
}

@media (max-width: 640px) {
  .knowledge-item-labcraft-station {
    width: 205.5px;
    height: 97.5px;
    background-size: 205.5px 97.5px;
    transform-origin: left top;
  }

  .knowledge-item-labcraft-slot {
    width: 27px;
    height: 27px;
  }

  .knowledge-item-labcraft-slot--water { left: 7px; top: 6px; }
  .knowledge-item-labcraft-slot--ingredient-1 { left: 63px; top: 6px; }
  .knowledge-item-labcraft-slot--ingredient-2 { left: 120px; top: 6px; }
  .knowledge-item-labcraft-slot--ingredient-3 { left: 177px; top: 6px; }
  .knowledge-item-labcraft-slot--result { left: 63px; top: 54px; }

  .knowledge-item-labcraft .knowledge-item-profcraft-slot,
  .knowledge-item-labcraft .knowledge-item-profcraft-result,
  .knowledge-item-labcraft button.knowledge-item-profcraft-slot,
  .knowledge-item-labcraft button.knowledge-item-profcraft-result,
  .knowledge-item-labcraft span.knowledge-item-profcraft-slot,
  .knowledge-item-labcraft span.knowledge-item-profcraft-result,
  .knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-site-item-icon,
  .knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-site-item-icon {
    width: 27px ;
    height: 27px ;
    min-width: 27px ;
    min-height: 27px ;
    max-width: 27px ;
    max-height: 27px ;
  }

  .knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-site-item-icon .knowledge-card-icon,
  .knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-site-item-icon .knowledge-card-icon {
    width: 22px ;
    height: 22px ;
  }

  .knowledge-item-labcraft-vortex {
    left: 7px;
    top: 43px;
    width: 18px;
    height: 43.5px;
  }

  .knowledge-item-labcraft-vortex-fill {
    background-size: 18px 43.5px;
  }

  .knowledge-item-labcraft-arrow-anim {
    left: 31px;
    top: 64px;
    width: 19.5px;
    height: 10.5px;
  }

  .knowledge-item-labcraft-arrow-fill {
    background-size: 19.5px 10.5px;
  }
}

                                                                                       
.knowledge-item-labcraft-station {
  width: 411px ;
  height: 195px ;
  background-size: 411px 195px ;
}

.knowledge-item-labcraft-slot {
  width: 48px ;
  height: 48px ;
}

.knowledge-item-labcraft-slot--water { left: 15px ; top: 12px ; }
.knowledge-item-labcraft-slot--ingredient-1 { left: 126px ; top: 12px ; }
.knowledge-item-labcraft-slot--ingredient-2 { left: 240px ; top: 12px ; }
.knowledge-item-labcraft-slot--ingredient-3 { left: 354px ; top: 12px ; }
.knowledge-item-labcraft-slot--result { left: 126px ; top: 108px ; }

.knowledge-item-labcraft .knowledge-item-profcraft-slot,
.knowledge-item-labcraft .knowledge-item-profcraft-result,
.knowledge-item-labcraft button.knowledge-item-profcraft-slot,
.knowledge-item-labcraft button.knowledge-item-profcraft-result,
.knowledge-item-labcraft span.knowledge-item-profcraft-slot,
.knowledge-item-labcraft span.knowledge-item-profcraft-result,
.knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-site-item-icon,
.knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-site-item-icon {
  width: 48px ;
  height: 48px ;
  min-width: 48px ;
  min-height: 48px ;
  max-width: 48px ;
  max-height: 48px ;
}

.knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-site-item-icon .knowledge-card-icon,
.knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-site-item-icon .knowledge-card-icon {
  width: 42px ;
  height: 42px ;
}

.knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-prof-count,
.knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-prof-count,
.knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-prof-count--minecraft,
.knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-prof-count--minecraft {
  right: 2px ;
  bottom: 1px ;
  transform: none ;
}

.knowledge-item-labcraft .knowledge-item-profcraft-slot--empty {
  width: 48px ;
  height: 48px ;
}

.knowledge-item-labcraft-vortex {
  left: 20px ;
  top: 81px ;
  width: 36px ;
  height: 87px ;
}

.knowledge-item-labcraft-vortex-fill {
  background-size: 36px 87px ;
  animation-duration: 6.8s ;
}

.knowledge-item-labcraft-arrow-anim {
  left: 71px ;
  top: 137px ;
  width: 39px ;
  height: 21px ;
}

.knowledge-item-labcraft-arrow-fill {
  background-size: 39px 21px ;
  animation-duration: 6.8s ;
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-item-labcraft-vortex-fill,
  .knowledge-item-labcraft-arrow-fill {
    animation-duration: 12s ;
  }
}

@media (max-width: 640px) {
  .knowledge-item-labcraft-station {
    width: 274px ;
    height: 130px ;
    background-size: 274px 130px ;
  }

  .knowledge-item-labcraft-slot {
    width: 32px ;
    height: 32px ;
  }

  .knowledge-item-labcraft-slot--water { left: 10px ; top: 8px ; }
  .knowledge-item-labcraft-slot--ingredient-1 { left: 84px ; top: 8px ; }
  .knowledge-item-labcraft-slot--ingredient-2 { left: 160px ; top: 8px ; }
  .knowledge-item-labcraft-slot--ingredient-3 { left: 236px ; top: 8px ; }
  .knowledge-item-labcraft-slot--result { left: 84px ; top: 72px ; }

  .knowledge-item-labcraft .knowledge-item-profcraft-slot,
  .knowledge-item-labcraft .knowledge-item-profcraft-result,
  .knowledge-item-labcraft button.knowledge-item-profcraft-slot,
  .knowledge-item-labcraft button.knowledge-item-profcraft-result,
  .knowledge-item-labcraft span.knowledge-item-profcraft-slot,
  .knowledge-item-labcraft span.knowledge-item-profcraft-result,
  .knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-site-item-icon,
  .knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-site-item-icon {
    width: 32px ;
    height: 32px ;
    min-width: 32px ;
    min-height: 32px ;
    max-width: 32px ;
    max-height: 32px ;
  }

  .knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-site-item-icon .knowledge-card-icon,
  .knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-site-item-icon .knowledge-card-icon {
    width: 27px ;
    height: 27px ;
  }

  .knowledge-item-labcraft-vortex {
    left: 14px ;
    top: 54px ;
    width: 24px ;
    height: 58px ;
  }

  .knowledge-item-labcraft-vortex-fill {
    background-size: 24px 58px ;
  }

  .knowledge-item-labcraft-arrow-anim {
    left: 48px ;
    top: 92px ;
    width: 26px ;
    height: 14px ;
  }

  .knowledge-item-labcraft-arrow-fill {
    background-size: 26px 14px ;
  }
}


                                                                                
.knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-site-item-icon,
.knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-site-item-icon {
  overflow: hidden ;
  background: transparent ;
  box-shadow: none ;
}

.knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-site-item-icon .knowledge-card-icon,
.knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-site-item-icon .knowledge-card-icon {
  display: block ;
  margin: auto ;
}

                                                                           
.knowledge-item-labcraft .knowledge-item-profcraft-slot,
.knowledge-item-labcraft .knowledge-item-profcraft-result,
.knowledge-item-labcraft button.knowledge-item-profcraft-slot,
.knowledge-item-labcraft button.knowledge-item-profcraft-result,
.knowledge-item-labcraft span.knowledge-item-profcraft-slot,
.knowledge-item-labcraft span.knowledge-item-profcraft-result {
  display: flex ;
  align-items: center ;
  justify-content: center ;
  line-height: 0 ;
}

.knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-site-item-icon,
.knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-site-item-icon {
  display: flex ;
  align-items: center ;
  justify-content: center ;
  margin: 0 auto ;
  padding: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
  box-shadow: none ;
  overflow: hidden ;
}

.knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-site-item-icon .knowledge-card-icon,
.knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-site-item-icon .knowledge-card-icon {
  display: block ;
  width: calc(100% - 6px) ;
  height: calc(100% - 6px) ;
  max-width: none ;
  max-height: none ;
  margin: 0 auto ;
  object-fit: contain ;
  object-position: center ;
  transform: none ;
  opacity: 1 ;
  visibility: visible ;
}

.knowledge-item-labcraft-vortex {
  left: 21px ;
  top: 80px ;
}

.knowledge-item-labcraft-arrow-anim {
  top: 139px ;
}

@media (max-width: 640px) {
  .knowledge-item-labcraft-vortex {
    left: 15px ;
    top: 53px ;
  }

  .knowledge-item-labcraft-arrow-anim {
    top: 93px ;
  }
}

                                                                                                       
.knowledge-item-labcraft .knowledge-item-profcraft-slot,
.knowledge-item-labcraft .knowledge-item-profcraft-result,
.knowledge-item-labcraft button.knowledge-item-profcraft-slot,
.knowledge-item-labcraft button.knowledge-item-profcraft-result,
.knowledge-item-labcraft span.knowledge-item-profcraft-slot,
.knowledge-item-labcraft span.knowledge-item-profcraft-result {
  position: relative ;
  display: flex ;
  align-items: center ;
  justify-content: center ;
  width: 48px ;
  height: 48px ;
  min-width: 48px ;
  min-height: 48px ;
  max-width: 48px ;
  max-height: 48px ;
  margin: 0 ;
  padding: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
  background-image: none ;
  box-shadow: none ;
  line-height: 0 ;
}

.knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-site-item-icon,
.knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-site-item-icon {
  display: flex ;
  align-items: center ;
  justify-content: center ;
  width: 48px ;
  height: 48px ;
  min-width: 48px ;
  min-height: 48px ;
  max-width: 48px ;
  max-height: 48px ;
  padding: 0 ;
  margin: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
  box-shadow: none ;
  overflow: hidden ;
  pointer-events: none ;
}

.knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-site-item-icon .knowledge-card-icon,
.knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-site-item-icon .knowledge-card-icon {
  display: block ;
  width: 42px ;
  height: 42px ;
  max-width: none ;
  max-height: none ;
  object-fit: contain ;
  object-position: center ;
  margin: auto ;
  transform: none ;
  image-rendering: pixelated ;
  image-rendering: crisp-edges ;
  opacity: 1 ;
  visibility: visible ;
  filter: none ;
}

.knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-prof-count,
.knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-prof-count,
.knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-prof-count--minecraft,
.knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-prof-count--minecraft {
  right: 2px ;
  bottom: 1px ;
  transform: none ;
}

.knowledge-item-labcraft-vortex {
  left: 22px ;
}

.knowledge-item-labcraft-arrow-anim {
  top: 141px ;
}

@media (max-width: 640px) {
  .knowledge-item-labcraft .knowledge-item-profcraft-slot,
  .knowledge-item-labcraft .knowledge-item-profcraft-result,
  .knowledge-item-labcraft button.knowledge-item-profcraft-slot,
  .knowledge-item-labcraft button.knowledge-item-profcraft-result,
  .knowledge-item-labcraft span.knowledge-item-profcraft-slot,
  .knowledge-item-labcraft span.knowledge-item-profcraft-result,
  .knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-site-item-icon,
  .knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-site-item-icon {
    width: 32px ;
    height: 32px ;
    min-width: 32px ;
    min-height: 32px ;
    max-width: 32px ;
    max-height: 32px ;
  }

  .knowledge-item-labcraft .knowledge-item-profcraft-slot .knowledge-site-item-icon .knowledge-card-icon,
  .knowledge-item-labcraft .knowledge-item-profcraft-result .knowledge-site-item-icon .knowledge-card-icon {
    width: 27px ;
    height: 27px ;
  }

  .knowledge-item-labcraft-vortex {
    left: 16px ;
  }

  .knowledge-item-labcraft-arrow-anim {
    top: 95px ;
  }
}

                                                                                         
.knowledge-item-labcraft-slot {
  display: flex ;
  align-items: center ;
  justify-content: center ;
  line-height: 0 ;
}

.knowledge-item-labcraft-slot > .knowledge-recipe-ingredient,
.knowledge-item-labcraft-slot > button.knowledge-recipe-ingredient,
.knowledge-item-labcraft-slot > span.knowledge-recipe-ingredient {
  position: relative ;
  display: flex ;
  align-items: center ;
  justify-content: center ;
  width: 48px ;
  height: 48px ;
  min-width: 48px ;
  min-height: 48px ;
  max-width: 48px ;
  max-height: 48px ;
  margin: 0 ;
  padding: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
  box-shadow: none ;
  overflow: visible ;
  line-height: 0 ;
}

.knowledge-item-labcraft-slot > .knowledge-recipe-ingredient .knowledge-site-item-icon {
  display: flex ;
  align-items: center ;
  justify-content: center ;
  width: 48px ;
  height: 48px ;
  min-width: 48px ;
  min-height: 48px ;
  max-width: 48px ;
  max-height: 48px ;
  margin: 0 ;
  padding: 0 ;
  border: 0 ;
  border-radius: 0 ;
  background: transparent ;
  box-shadow: none ;
  overflow: hidden ;
  pointer-events: none ;
}

.knowledge-item-labcraft-slot > .knowledge-recipe-ingredient .knowledge-site-item-icon .knowledge-card-icon {
  display: block ;
  width: calc(100% - 6px) ;
  height: calc(100% - 6px) ;
  max-width: none ;
  max-height: none ;
  margin: 0 ;
  object-fit: contain ;
  object-position: center ;
  image-rendering: auto ;
  opacity: 1 ;
  visibility: visible ;
  filter: none ;
  transform: none ;
}

.knowledge-item-labcraft-slot > .knowledge-prof-count,
.knowledge-item-labcraft-slot > .knowledge-prof-count--minecraft {
  position: absolute ;
  right: 2px ;
  bottom: 1px ;
  z-index: 3 ;
  transform: none ;
}

.knowledge-item-labcraft-vortex {
  left: 23px ;
  top: 79px ;
}

.knowledge-item-labcraft-vortex-fill {
  width: 100% ;
  height: 100% ;
  bottom: 0 ;
  animation: knowledgeLabVortexReveal 9.6s steps(12, end) infinite ;
  clip-path: inset(100% 0 0 0);
}

.knowledge-item-labcraft-arrow-anim {
  top: 142px ;
  overflow: visible ;
}

.knowledge-item-labcraft-arrow-fill {
  width: 100% ;
  height: 100% ;
  animation: knowledgeLabArrowReveal 9.6s steps(13, end) infinite ;
  clip-path: inset(0 100% 0 0);
}

@keyframes knowledgeLabVortexReveal {
  0%, 10% { clip-path: inset(100% 0 0 0); }
  62%, 100% { clip-path: inset(0 0 0 0); }
}

@keyframes knowledgeLabArrowReveal {
  0%, 66% { clip-path: inset(0 100% 0 0); }
  90%, 100% { clip-path: inset(0 0 0 0); }
}

@media (max-width: 640px) {
  .knowledge-item-labcraft-slot > .knowledge-recipe-ingredient,
  .knowledge-item-labcraft-slot > button.knowledge-recipe-ingredient,
  .knowledge-item-labcraft-slot > span.knowledge-recipe-ingredient,
  .knowledge-item-labcraft-slot > .knowledge-recipe-ingredient .knowledge-site-item-icon {
    width: 32px ;
    height: 32px ;
    min-width: 32px ;
    min-height: 32px ;
    max-width: 32px ;
    max-height: 32px ;
  }

  .knowledge-item-labcraft-vortex {
    left: 17px ;
    top: 52px ;
  }

  .knowledge-item-labcraft-arrow-anim {
    top: 96px ;
  }
}

                                                                                             
.knowledge-item-labcraft-slot {
  width: 54px ;
  height: 54px ;
  min-width: 54px ;
  min-height: 54px ;
  max-width: 54px ;
  max-height: 54px ;
}

.knowledge-item-labcraft-slot > .knowledge-recipe-ingredient,
.knowledge-item-labcraft-slot > button.knowledge-recipe-ingredient,
.knowledge-item-labcraft-slot > span.knowledge-recipe-ingredient {
  width: 54px ;
  height: 54px ;
  min-width: 54px ;
  min-height: 54px ;
  max-width: 54px ;
  max-height: 54px ;
}

.knowledge-item-labcraft-slot > .knowledge-recipe-ingredient .knowledge-site-item-icon {
  width: 48px ;
  height: 48px ;
  min-width: 48px ;
  min-height: 48px ;
  max-width: 48px ;
  max-height: 48px ;
}

.knowledge-item-labcraft-vortex-fill {
  background-position: 0 0 ;
  animation: knowledgeLabVortexRevealTopDown 9.6s steps(12, end) infinite ;
  clip-path: inset(0 0 100% 0) ;
}

.knowledge-item-labcraft-arrow-anim {
  left: 72px ;
  top: 142px ;
}

@keyframes knowledgeLabVortexRevealTopDown {
  0%, 10% { clip-path: inset(0 0 100% 0); }
  62%, 100% { clip-path: inset(0 0 0 0); }
}

@media (max-width: 640px) {
  .knowledge-item-labcraft-slot {
    width: 36px ;
    height: 36px ;
    min-width: 36px ;
    min-height: 36px ;
    max-width: 36px ;
    max-height: 36px ;
  }

  .knowledge-item-labcraft-slot > .knowledge-recipe-ingredient,
  .knowledge-item-labcraft-slot > button.knowledge-recipe-ingredient,
  .knowledge-item-labcraft-slot > span.knowledge-recipe-ingredient {
    width: 36px ;
    height: 36px ;
    min-width: 36px ;
    min-height: 36px ;
    max-width: 36px ;
    max-height: 36px ;
  }

  .knowledge-item-labcraft-slot > .knowledge-recipe-ingredient .knowledge-site-item-icon {
    width: 32px ;
    height: 32px ;
    min-width: 32px ;
    min-height: 32px ;
    max-width: 32px ;
    max-height: 32px ;
  }

  .knowledge-item-labcraft-arrow-anim {
    left: 48px ;
    top: 96px ;
  }
}

                                                                               
.knowledge-item-labcraft-slot {
  position: absolute ;
  display: flex ;
  align-items: center ;
  justify-content: center ;
  width: 54px ;
  height: 54px ;
  min-width: 54px ;
  min-height: 54px ;
  max-width: 54px ;
  max-height: 54px ;
  line-height: 0 ;
  overflow: visible ;
}

.knowledge-item-labcraft-slot > .knowledge-recipe-ingredient,
.knowledge-item-labcraft-slot > button.knowledge-recipe-ingredient,
.knowledge-item-labcraft-slot > span.knowledge-recipe-ingredient,
.knowledge-item-labcraft-slot > .knowledge-item-profcraft-slot--empty {
  position: relative ;
  display: flex ;
  align-items: center ;
  justify-content: center ;
  width: 54px ;
  height: 54px ;
  min-width: 54px ;
  min-height: 54px ;
  max-width: 54px ;
  max-height: 54px ;
  margin: 0 ;
  padding: 0 ;
  line-height: 0 ;
}

.knowledge-item-labcraft-slot > .knowledge-recipe-ingredient .knowledge-site-item-icon,
.knowledge-item-labcraft-slot > button.knowledge-recipe-ingredient .knowledge-site-item-icon,
.knowledge-item-labcraft-slot > span.knowledge-recipe-ingredient .knowledge-site-item-icon {
  display: flex ;
  align-items: center ;
  justify-content: center ;
  width: 48px ;
  height: 48px ;
  min-width: 48px ;
  min-height: 48px ;
  max-width: 48px ;
  max-height: 48px ;
  margin: 0 ;
  padding: 0 ;
  overflow: hidden ;
}

.knowledge-item-labcraft-slot > .knowledge-recipe-ingredient .knowledge-site-item-icon .knowledge-card-icon,
.knowledge-item-labcraft-slot > button.knowledge-recipe-ingredient .knowledge-site-item-icon .knowledge-card-icon,
.knowledge-item-labcraft-slot > span.knowledge-recipe-ingredient .knowledge-site-item-icon .knowledge-card-icon {
  display: block ;
  width: calc(100% - 6px) ;
  height: calc(100% - 6px) ;
  max-width: none ;
  max-height: none ;
  margin: 0 ;
  object-fit: contain ;
  object-position: center ;
  transform: none ;
}

.knowledge-item-labcraft-slot > .knowledge-prof-count,
.knowledge-item-labcraft-slot > .knowledge-prof-count--minecraft {
  position: absolute ;
  right: 2px ;
  bottom: 1px ;
  z-index: 4 ;
  transform: none ;
  line-height: 1 ;
  pointer-events: none ;
}

.knowledge-item-labcraft-vortex {
  left: 23px ;
  top: 79px ;
  width: 24px ;
  height: 58px ;
  overflow: hidden ;
}

.knowledge-item-labcraft-vortex-fill {
  position: absolute ;
  left: 0 ;
  top: 0 ;
  bottom: auto ;
  width: 100% ;
  height: 0 ;
  background: transparent url('../img/knowledge/site_tornado.png') no-repeat 0 0 / 24px 58px ;
  animation: knowledgeLabVortexFillTopDown 9.6s steps(12, end) infinite ;
  clip-path: none ;
}

.knowledge-item-labcraft-arrow-anim {
  left: 72px ;
  top: 143px ;
  width: 26px ;
  height: 14px ;
  overflow: hidden ;
}

.knowledge-item-labcraft-arrow-fill {
  position: absolute ;
  left: 0 ;
  top: 0 ;
  width: 0 ;
  height: 100% ;
  background: transparent url('../img/knowledge/site_arrow.png') no-repeat 0 0 / 26px 14px ;
  animation: knowledgeLabArrowFill 9.6s steps(13, end) infinite ;
  clip-path: none ;
}

@keyframes knowledgeLabVortexFillTopDown {
  0%, 10% { height: 0; }
  62%, 100% { height: 100%; }
}

@media (max-width: 640px) {
  .knowledge-item-labcraft-slot {
    width: 36px ;
    height: 36px ;
    min-width: 36px ;
    min-height: 36px ;
    max-width: 36px ;
    max-height: 36px ;
  }

  .knowledge-item-labcraft-slot > .knowledge-recipe-ingredient,
  .knowledge-item-labcraft-slot > button.knowledge-recipe-ingredient,
  .knowledge-item-labcraft-slot > span.knowledge-recipe-ingredient,
  .knowledge-item-labcraft-slot > .knowledge-item-profcraft-slot--empty {
    width: 36px ;
    height: 36px ;
    min-width: 36px ;
    min-height: 36px ;
    max-width: 36px ;
    max-height: 36px ;
  }

  .knowledge-item-labcraft-slot > .knowledge-recipe-ingredient .knowledge-site-item-icon,
  .knowledge-item-labcraft-slot > button.knowledge-recipe-ingredient .knowledge-site-item-icon,
  .knowledge-item-labcraft-slot > span.knowledge-recipe-ingredient .knowledge-site-item-icon {
    width: 32px ;
    height: 32px ;
    min-width: 32px ;
    min-height: 32px ;
    max-width: 32px ;
    max-height: 32px ;
  }

  .knowledge-item-labcraft-vortex {
    left: 17px ;
    top: 52px ;
  }

  .knowledge-item-labcraft-arrow-anim {
    left: 48px ;
    top: 97px ;
  }
}

                                                                           
.knowledge-item-labcraft-slot--ingredient-2 > .knowledge-recipe-ingredient .knowledge-site-item-icon,
.knowledge-item-labcraft-slot--ingredient-2 > button.knowledge-recipe-ingredient .knowledge-site-item-icon,
.knowledge-item-labcraft-slot--ingredient-2 > span.knowledge-recipe-ingredient .knowledge-site-item-icon {
  transform: translateX(-1px) ;
}

.knowledge-item-labcraft-slot--ingredient-3 > .knowledge-recipe-ingredient .knowledge-site-item-icon,
.knowledge-item-labcraft-slot--ingredient-3 > button.knowledge-recipe-ingredient .knowledge-site-item-icon,
.knowledge-item-labcraft-slot--ingredient-3 > span.knowledge-recipe-ingredient .knowledge-site-item-icon {
  transform: translateX(-3px) ;
}

.knowledge-item-labcraft-slot--result > .knowledge-recipe-ingredient .knowledge-site-item-icon,
.knowledge-item-labcraft-slot--result > button.knowledge-recipe-ingredient .knowledge-site-item-icon,
.knowledge-item-labcraft-slot--result > span.knowledge-recipe-ingredient .knowledge-site-item-icon {
  transform: translateY(3px) ;
}

@media (max-width: 640px) {
  .knowledge-item-labcraft-slot--ingredient-2 > .knowledge-recipe-ingredient .knowledge-site-item-icon,
  .knowledge-item-labcraft-slot--ingredient-2 > button.knowledge-recipe-ingredient .knowledge-site-item-icon,
  .knowledge-item-labcraft-slot--ingredient-2 > span.knowledge-recipe-ingredient .knowledge-site-item-icon {
    transform: translateX(-1px) ;
  }

  .knowledge-item-labcraft-slot--ingredient-3 > .knowledge-recipe-ingredient .knowledge-site-item-icon,
  .knowledge-item-labcraft-slot--ingredient-3 > button.knowledge-recipe-ingredient .knowledge-site-item-icon,
  .knowledge-item-labcraft-slot--ingredient-3 > span.knowledge-recipe-ingredient .knowledge-site-item-icon {
    transform: translateX(-2px) ;
  }

  .knowledge-item-labcraft-slot--result > .knowledge-recipe-ingredient .knowledge-site-item-icon,
  .knowledge-item-labcraft-slot--result > button.knowledge-recipe-ingredient .knowledge-site-item-icon,
  .knowledge-item-labcraft-slot--result > span.knowledge-recipe-ingredient .knowledge-site-item-icon {
    transform: translateY(2px) ;
  }
}

/* ===== Medicines: centered laboratory slots + sequential progress animation ===== */
.knowledge-item-labcraft-slot .knowledge-site-item-icon {
  position: absolute ;
  left: 50% ;
  top: 50% ;
  right: auto ;
  bottom: auto ;
  margin: 0 ;
  object-position: center ;
  transform: translate(-50%, -50%) ;
}

.knowledge-item-labcraft .knowledge-item-labcraft-slot > .knowledge-recipe-ingredient .knowledge-site-item-icon,
.knowledge-item-labcraft .knowledge-item-labcraft-slot > button.knowledge-recipe-ingredient .knowledge-site-item-icon,
.knowledge-item-labcraft .knowledge-item-labcraft-slot > span.knowledge-recipe-ingredient .knowledge-site-item-icon {
  left: 50% ;
  top: 50% ;
  right: auto ;
  bottom: auto ;
  margin: 0 ;
  transform: translate(-50%, -50%) ;
}

.knowledge-item-labcraft-slot > .knowledge-recipe-ingredient,
.knowledge-item-labcraft-slot > button.knowledge-recipe-ingredient,
.knowledge-item-labcraft-slot > span.knowledge-recipe-ingredient {
  position: absolute ;
  inset: 0 ;
  margin: auto ;
  transform: none ;
}

.knowledge-item-labcraft-slot .knowledge-card-icon {
  position: static ;
  display: block ;
  margin: auto ;
  object-position: center ;
  transform: none ;
}

.knowledge-item-labcraft-vortex-fill,
.knowledge-item-labcraft-arrow-fill {
  display: none ;
}

.knowledge-item-labcraft-vortex::before,
.knowledge-item-labcraft-arrow-anim::before {
  content: '';
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: 0 0;
  will-change: clip-path;
}

.knowledge-item-labcraft-vortex::before {
  background-image: url('../img/knowledge/site_tornado.png');
  background-size: 36px 87px;
  clip-path: inset(0 0 100% 0);
  animation: knowledgeMedicVortexReveal 8s steps(12, end) infinite;
}

.knowledge-item-labcraft-arrow-anim::before {
  background-image: url('../img/knowledge/site_arrow.png');
  background-size: 39px 21px;
  clip-path: inset(0 100% 0 0);
  animation: knowledgeMedicArrowReveal 8s steps(13, end) infinite;
}

@keyframes knowledgeMedicVortexReveal {
  0%, 8% { clip-path: inset(0 0 100% 0); }
  62%, 100% { clip-path: inset(0 0 0 0); }
}

@keyframes knowledgeMedicArrowReveal {
  0%, 66% { clip-path: inset(0 100% 0 0); }
  92%, 100% { clip-path: inset(0 0 0 0); }
}

@media (prefers-reduced-motion: reduce) {
  .knowledge-item-labcraft-vortex::before,
  .knowledge-item-labcraft-arrow-anim::before {
    animation-duration: 14s;
  }
}

.knowledge-item-labcraft-vortex {
  left: 20px ;
  top: 79px ;
  width: 36px ;
  height: 87px ;
}

.knowledge-item-labcraft-arrow-anim {
  left: 71px ;
  top: 143px ;
  width: 39px ;
  height: 21px ;
}

@media (max-width: 640px) {
  .knowledge-item-labcraft-vortex {
    left: 14px ;
    top: 53px ;
    width: 24px ;
    height: 58px ;
  }

  .knowledge-item-labcraft-vortex::before {
    background-size: 24px 58px;
  }

  .knowledge-item-labcraft-arrow-anim {
    left: 48px ;
    top: 96px ;
    width: 26px ;
    height: 14px ;
  }

  .knowledge-item-labcraft-arrow-anim::before {
    background-size: 26px 14px;
  }
}

/* ===== Medicines: exact laboratory GUI alignment ===== */
.knowledge-item-labcraft-slot--water {
  left: 12px ;
  top: 12px ;
}

.knowledge-item-labcraft-slot--ingredient-1 {
  left: 126px ;
  top: 12px ;
}

.knowledge-item-labcraft-slot--ingredient-2 {
  left: 237px ;
  top: 12px ;
}

.knowledge-item-labcraft-slot--ingredient-3 {
  left: 342px ;
  top: 12px ;
}

.knowledge-item-labcraft-slot--result {
  left: 126px ;
  top: 108px ;
}

.knowledge-item-labcraft .knowledge-item-labcraft-slot > .knowledge-recipe-ingredient,
.knowledge-item-labcraft .knowledge-item-labcraft-slot > button.knowledge-recipe-ingredient,
.knowledge-item-labcraft .knowledge-item-labcraft-slot > span.knowledge-recipe-ingredient {
  position: absolute ;
  inset: 0 ;
  display: flex ;
  align-items: center ;
  justify-content: center ;
  margin: 0 ;
}

.knowledge-item-labcraft .knowledge-item-labcraft-slot .knowledge-site-item-icon {
  position: absolute ;
  left: 50% ;
  top: 50% ;
  transform: translate(-50%, -50%) ;
}

.knowledge-item-labcraft-vortex {
  left: 21px ;
  top: 80px ;
  width: 36px ;
  height: 87px ;
}

.knowledge-item-labcraft-arrow-anim {
  left: 71px ;
  top: 143px ;
  width: 39px ;
  height: 21px ;
}

.knowledge-item-labcraft-vortex::before,
.knowledge-item-labcraft-arrow-anim::before {
  inset: 0 ;
  height: 100% ;
  background-position: center ;
  background-size: 100% 100% ;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

@media (max-width: 640px) {
  .knowledge-item-labcraft-slot--water {
    left: 8px ;
    top: 8px ;
  }

  .knowledge-item-labcraft-slot--ingredient-1 {
    left: 84px ;
    top: 8px ;
  }

  .knowledge-item-labcraft-slot--ingredient-2 {
    left: 158px ;
    top: 8px ;
  }

  .knowledge-item-labcraft-slot--ingredient-3 {
    left: 228px ;
    top: 8px ;
  }

  .knowledge-item-labcraft-slot--result {
    left: 84px ;
    top: 72px ;
  }

  .knowledge-item-labcraft-vortex {
    left: 14px ;
    top: 53px ;
    width: 24px ;
    height: 58px ;
  }

  .knowledge-item-labcraft-arrow-anim {
    left: 47px ;
    top: 95px ;
    width: 26px ;
    height: 14px ;
  }
}

/* ===== Medicines: reveal the arrow from its actual first pixel ===== */
.knowledge-item-labcraft-vortex::before {
  width: 100% ;
}

.knowledge-item-labcraft-arrow-anim::before {
  inset: 0 auto 0 0 ;
  width: 0;
  clip-path: none ;
  background-position: left top ;
  background-size: 39px 21px ;
  animation: knowledgeMedicArrowWidth 8s steps(13, end) infinite;
}

@keyframes knowledgeMedicArrowWidth {
  0%, 66% { width: 0; }
  92%, 100% { width: 100%; }
}

@media (max-width: 640px) {
  .knowledge-item-labcraft-arrow-anim::before {
    background-size: 26px 14px ;
  }
}

                                                          
.knowledge-item-labcraft-slot--water {
  left: 14px ;
}

.knowledge-item-labcraft-slot--result {
  top: 124px ;
}

.knowledge-item-labcraft-vortex {
  top: 78px ;
}

.knowledge-item-labcraft-arrow-anim {
  left: 73px ;
}

@media (max-width: 640px) {
  .knowledge-item-labcraft-slot--water {
    left: 9px ;
  }

  .knowledge-item-labcraft-slot--result {
    top: 83px ;
  }

  .knowledge-item-labcraft-vortex {
    top: 52px ;
  }

  .knowledge-item-labcraft-arrow-anim {
    left: 49px ;
  }
}

/* ===== Medicines: exact progress overlays from the 137x65 source GUI ===== */
.knowledge-item-labcraft-vortex {
  left: 24px ;
  top: 78px ;
  width: 36px ;
  height: 87px ;
}

.knowledge-item-labcraft-arrow-anim {
  left: 75px ;
  top: 144px ;
  width: 39px ;
  height: 21px ;
}

@media (max-width: 640px) {
  .knowledge-item-labcraft-vortex {
    left: 16px ;
    top: 52px ;
    width: 24px ;
    height: 58px ;
  }

  .knowledge-item-labcraft-arrow-anim {
    left: 50px ;
    top: 96px ;
    width: 26px ;
    height: 14px ;
  }
}

/* ===== Medicines: include the arrow silhouette's one-pixel left cap ===== */
.knowledge-item-labcraft-arrow-anim {
  left: 72px ;
  width: 42px ;
}

.knowledge-item-labcraft-arrow-anim::before {
  background-image:
    linear-gradient(#fff, #fff),
    url('../img/knowledge/site_arrow.png') ;
  background-repeat: no-repeat ;
  background-position: 0 6px, 3px 0 ;
  background-size: 3px 9px, 39px 21px ;
  animation-timing-function: steps(42, end) ;
}

@media (max-width: 640px) {
  .knowledge-item-labcraft-arrow-anim {
    left: 48px ;
    width: 28px ;
  }

  .knowledge-item-labcraft-arrow-anim::before {
    background-position: 0 4px, 2px 0 ;
    background-size: 2px 6px, 26px 14px ;
    animation-timing-function: steps(28, end) ;
  }
}
.knowledge-recipe-smoker-slot--fuel .knowledge-site-item-icon {
  transform: translate(2px, 2px) ;
}

.knowledge-recipe-smoker-slot--input .knowledge-site-item-icon {
  transform: translate(4px, 2px) ;
}

/* Race operation tools use the same compact black tooltip as item textures. */
.knowledge-operation-tool__tooltip {
  padding: 7px 10px ;
  border: 1px solid rgba(255, 255, 255, 0.16) ;
  border-radius: 8px ;
  color: #fff ;
  background: rgba(3, 5, 8, 0.9) ;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.5) ;
  font-size: 12px ;
  font-weight: 500 ;
  line-height: 1.25 ;
}

.knowledge-operation-tool__tooltip::after {
  content: none ;
}

.knowledge-operation-tool__tooltip strong {
  margin-bottom: 5px ;
  color: #fff ;
  font-size: 12px ;
}

.knowledge-operation-tool__tooltip > span,
.knowledge-operation-tool__tooltip ul {
  color: #fff ;
  font-size: 12px ;
}

/* Player wiki: readable guides and keyboard-accessible quick routes. */
.knowledge-grid.knowledge-player-home { grid-template-columns: repeat(2, minmax(0, 1fr)) ; }
.knowledge-player-home > a { color: inherit; text-decoration: none; min-width: 0; }
.knowledge-player-home > a:hover { border-color: rgba(107, 190, 255, .65); }
.knowledge-player-home > a:focus-visible, .knowledge-player-guide .knowledge-medicine-table-wrap:focus-visible { outline: 2px solid #8bccff; outline-offset: 3px; }
.knowledge-player-guide { min-width: 0; overflow-wrap: anywhere; }
.knowledge-player-guide .knowledge-article-section + .knowledge-article-section { margin-top: 28px; }
.knowledge-player-guide .knowledge-article-list li + li { margin-top: 9px; }
.knowledge-player-guide .knowledge-medicine-table { min-width: 480px; }
.knowledge-player-guide .knowledge-medicine-table tbody th { background: rgba(15,31,49,.58); }
.knowledge-player-guide .knowledge-medicine-table th { font-weight: 600; }
.knowledge-player-guide .knowledge-medicine-table td, .knowledge-player-guide .knowledge-medicine-table th { vertical-align: top; line-height: 1.55; }
@media (max-width: 640px) { .knowledge-grid.knowledge-player-home { grid-template-columns: minmax(0, 1fr) ; } .knowledge-player-guide .knowledge-medicine-table th, .knowledge-player-guide .knowledge-medicine-table td { padding: 10px; } }

/* Item registry: use the entire right column of the items card. */
@media (min-width: 901px) {
  .page-shell[data-page="knowledge"] .knowledge-grid.knowledge-items-root,
  .page-shell[data-page="knowledge"] .knowledge-grid.knowledge-items-root .knowledge-items-grid {
    width: 100% ;
    margin-right: 0 ;
    margin-left: 0 ;
  }

  .page-shell[data-page="knowledge"] .knowledge-items-grid {
    box-sizing: border-box ;
    padding-inline: 26px ;
    justify-content: start ;
    grid-template-columns: repeat(16, 50px) ;
    gap: 8px ;
  }

  .page-shell[data-page="knowledge"] .knowledge-items-grid .knowledge-card--icon-only {
    width: 50px ;
    min-width: 50px ;
    height: 50px ;
    min-height: 50px ;
  }
}

/* Adventures knowledge model cards */
.knowledge-model-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:14px;margin:18px 0 22px}
.knowledge-model-card{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:10px;min-height:190px;padding:12px 10px;border:1px solid rgba(164,190,162,.2);border-radius:12px;background:rgba(17,25,22,.62);color:inherit;text-align:center;text-decoration:none;transition:transform .18s ease,border-color .18s ease,background .18s ease}
.knowledge-model-card:hover,.knowledge-model-card:focus-visible{transform:translateY(-3px);border-color:rgba(183,211,148,.65);background:rgba(30,43,35,.9)}
.knowledge-model-card__image{display:flex;align-items:flex-end;justify-content:center;width:100%;height:142px;overflow:hidden;border-radius:8px;background:radial-gradient(ellipse at 50% 80%,#bbc1ad 0%,#8f9a89 52%,#657267 100%)}
.knowledge-model-card__image img{max-width:100%;max-height:100%;image-rendering:pixelated;object-fit:contain;filter:drop-shadow(0 5px 5px rgba(0,0,0,.4))}
.knowledge-model-card>span:last-child{font-weight:600;line-height:1.3}
.knowledge-model-hero{display:flex;flex-direction:column;align-items:center;gap:8px;float:right;margin:0 0 20px 24px;padding:12px 18px 10px;min-width:170px;border:1px solid rgba(164,190,162,.2);border-radius:12px;background:rgba(17,25,22,.62)}
.knowledge-model-hero img{width:auto;height:220px;max-width:190px;padding:6px;border-radius:10px;background:radial-gradient(ellipse at 50% 80%,#bbc1ad 0%,#8f9a89 52%,#657267 100%);image-rendering:pixelated;object-fit:contain;filter:drop-shadow(0 6px 5px rgba(0,0,0,.4))}
.knowledge-model-hero figcaption{font-weight:600;text-align:center}
@media(max-width:650px){.knowledge-model-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.knowledge-model-card{min-height:170px}.knowledge-model-hero{float:none;margin:16px auto;max-width:220px}}

/* Illustrated mechanics articles */
.knowledge-mechanic-step-label{display:inline-flex;align-items:center;margin:0 0 10px;padding:7px 12px;border-left:3px solid #b4d38b;border-radius:5px;background:rgba(143,177,112,.13);font-weight:700;letter-spacing:.02em;color:#d9e8c2}
.knowledge-reactor-materials{margin:10px 0 0;padding-left:1.5em}
.knowledge-reactor-materials li{padding:4px 0 4px 5px}
.knowledge-reactor-materials li::marker{color:#a8cb7e}
.knowledge-mechanic-figure{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;margin:18px auto 8px;max-width:100%;text-align:center}
.knowledge-mechanic-figure img{display:block;max-width:100%;height:auto;border-radius:8px}
.knowledge-mechanic-figure figcaption,.knowledge-nuclear-tnt-item figcaption{font-size:12px;line-height:1.35;opacity:.78;text-align:center}
.knowledge-mechanic-figure--reactor{width:min(100%,760px);aspect-ratio:1.1/1;padding:8px;border:1px solid rgba(164,190,162,.18);border-radius:12px;background:rgba(13,19,18,.38)}
.knowledge-mechanic-figure--reactor img{width:100%;height:100%;object-fit:contain}
.knowledge-mechanic-figure:not(.knowledge-mechanic-figure--reactor){width:min(100%,880px)}
.knowledge-mechanic-figure:not(.knowledge-mechanic-figure--reactor) img{width:100%;height:auto}
.knowledge-field-shots{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:18px auto;max-width:800px}
.knowledge-field-shots .knowledge-mechanic-figure{width:100%;height:420px;margin:0;padding:8px;border:1px solid rgba(164,190,162,.18);border-radius:10px;background:rgba(13,19,18,.38)}
.knowledge-field-shots .knowledge-mechanic-figure img{width:100%;height:100%;object-fit:contain}
.knowledge-nuclear-tnt-item{display:flex;flex-direction:column;align-items:center;gap:6px;width:170px;margin:18px auto;padding:12px;border:1px solid rgba(164,190,162,.18);border-radius:12px;background:rgba(13,19,18,.38)}
.knowledge-nuclear-tnt-item img{width:128px;height:128px;object-fit:contain;image-rendering:pixelated}
@media(max-width:650px){.knowledge-field-shots{grid-template-columns:1fr}.knowledge-field-shots .knowledge-mechanic-figure{height:360px}}

/* Adventure mini-pages reuse the item details dialog. */
.knowledge-adventure-link{display:inline;padding:0;border:0;background:none;font:inherit;text-align:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
button.knowledge-model-card{font:inherit;cursor:pointer;width:100%}
.knowledge-adventure-mini{display:flow-root;font-size:15px;line-height:1.75}
.knowledge-adventure-mini p{margin:0 0 16px}
.knowledge-adventure-mini .knowledge-model-hero{float:none;width:100%;max-width:380px;box-sizing:border-box;margin:0 auto 24px}
.knowledge-adventure-mini .knowledge-model-hero img{height:300px;max-width:100%;width:100%;object-fit:contain}
.knowledge-adventure-mini .knowledge-article-section{margin:24px 0}
.knowledge-modal-dialog--adventure{max-width:820px}
.knowledge-adventure-link:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* Compact illustrations and consistent cards. */
.knowledge-reactor-materials li{margin:0;padding:1px 0 1px 5px;line-height:1.45}
.knowledge-reactor-materials li::marker{color:#8dccff}
.knowledge-mechanic-figure--reactor{width:min(100%,480px);aspect-ratio:auto;padding:0;border:0;background:none;border-radius:0;margin:18px auto 24px}
.knowledge-mechanic-figure--reactor img{width:100%;height:auto;aspect-ratio:16/15;object-fit:contain;border-radius:8px}
.knowledge-field-shots{max-width:600px;gap:24px;align-items:end}
.knowledge-field-shots .knowledge-mechanic-figure{width:100%;height:auto;margin:0;padding:0;border:0;background:none;border-radius:0}
.knowledge-field-shots .knowledge-mechanic-figure img{height:280px;width:auto;max-width:100%;object-fit:contain;border-radius:8px}
.knowledge-model-grid{grid-template-columns:repeat(auto-fill,148px);align-items:start}
button.knowledge-model-card{box-sizing:border-box;height:222px;min-height:222px;padding:12px 10px;gap:8px;border:1px solid #29475e;background:#102033;border-radius:12px;justify-content:flex-start}
button.knowledge-model-card:hover,button.knowledge-model-card:focus-visible{border-color:#8dccff;background:#172c43}
.knowledge-model-card__image{flex:0 0 146px;height:146px;width:100%;padding:0;border:0;background:none;border-radius:0;align-items:center}
.knowledge-model-card__image img{width:100%;height:100%;padding:0;border:0;background:none;border-radius:0;object-fit:contain}
.knowledge-model-card>span:last-child{display:flex;align-items:center;justify-content:center;min-height:42px;height:42px;width:100%;font-size:14px;line-height:1.35}
.knowledge-adventure-mini .knowledge-model-hero{padding:0;border:0;background:none;box-shadow:none}
.knowledge-adventure-mini .knowledge-model-hero img{padding:0;border:0;background:none;border-radius:0;box-shadow:none}
.knowledge-trade-items{display:inline-flex;align-items:center;flex-wrap:wrap;gap:10px}
.knowledge-trade-stack{display:inline-flex;align-items:center;gap:8px}
.knowledge-trade-table .knowledge-card--icon-only{width:50px;height:50px;min-width:50px;min-height:50px;margin:0}
.knowledge-trade-count{font-variant-numeric:tabular-nums;font-weight:600;font-size:14px;white-space:nowrap}
.knowledge-trade-plus{color:#8dccff}
.knowledge-trade-table td{padding:10px 14px}
@media(max-width:650px){.knowledge-model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.knowledge-field-shots{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.knowledge-field-shots .knowledge-mechanic-figure img{height:210px}.knowledge-field-shots figcaption{font-size:11px}.knowledge-trade-table td{padding:8px}.knowledge-trade-items{gap:5px}.knowledge-trade-stack{gap:4px}}

/* Six creature cards and clean links throughout knowledge pages. */
.page-shell[data-page="knowledge"] a,.page-shell[data-page="knowledge"] a:hover,#knowledge-modal a,#knowledge-modal a:hover,.knowledge-adventure-link,.knowledge-operation-link,.knowledge-item-description-link{text-decoration:none}
.knowledge-adventure-link,.knowledge-operation-link,.knowledge-item-description-link{border-bottom:0}
.knowledge-model-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
button.knowledge-model-card{height:202px;min-height:202px;padding:10px 8px;gap:8px}
.knowledge-model-card__image{height:126px;flex-basis:126px}
.knowledge-nuclear-tnt-item{padding:0;border:0;background:none;box-shadow:none}
.knowledge-nuclear-craft .knowledge-recipe-card{border:0;background:none;box-shadow:none;padding:0}
@media(max-width:1050px) and (min-width:651px){.knowledge-model-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:650px){.knowledge-model-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Merchant catalog: alphabetic sale and purchase offers, without item boxes. */
.knowledge-market-offers{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
.knowledge-market-offer{display:grid;grid-template-columns:minmax(0,1fr) 20px minmax(0,1.35fr);align-items:center;gap:8px;padding:14px 0;margin:0;border-bottom:1px solid rgba(117,170,211,.16)}
.knowledge-market-offer::before{display:none}
.knowledge-market-separator{color:#82cafa;text-align:center}
.knowledge-market-offer .knowledge-card,.knowledge-market-offer .knowledge-icon-box{border:0;background:none;box-shadow:none;border-radius:0}
.knowledge-market-offer .knowledge-card{width:42px;height:42px;min-width:42px;min-height:42px;padding:0}
.knowledge-market-offer .knowledge-trade-items{gap:4px}.knowledge-market-offer .knowledge-trade-stack{gap:2px}
@media(max-width:600px){.knowledge-market-offers{grid-template-columns:1fr}.knowledge-market-offer{grid-template-columns:minmax(0,1fr) 24px minmax(0,1.5fr)}}
.knowledge-market-offer{grid-template-columns:max-content 34px max-content;justify-content:start;gap:0;min-height:64px}
.knowledge-market-goods{justify-self:end;padding-right:9px}
.knowledge-market-price{justify-self:start;padding-left:9px;min-width:76px}
.knowledge-market-separator{display:flex;align-items:center;justify-content:center;width:34px}
.knowledge-market-separator img{display:block;width:30px;height:28px;object-fit:contain;image-rendering:pixelated}
.knowledge-market-price .knowledge-trade-items{min-height:42px;align-items:center}
@media(max-width:600px){.knowledge-market-offer{grid-template-columns:max-content 30px max-content;justify-content:start;min-height:60px}.knowledge-market-goods{padding-right:7px}.knowledge-market-price{padding-left:7px;min-width:64px}.knowledge-market-separator{width:30px}.knowledge-market-separator img{width:26px;height:24px}}

@media (max-width: 900px) {
  .page-shell[data-page="knowledge"] .knowledge-topnav {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .page-shell[data-page="knowledge"] .knowledge-sidebar-list {
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }
  .page-shell[data-page="knowledge"] .knowledge-category-button {
    flex: 0 0 auto;
    width: auto;
    padding-inline: 16px;
  }
  .page-shell[data-page="knowledge"] .knowledge-category-text {
    white-space: nowrap;
  }
}

}
@media(min-width:1251px) and (max-width:1400px){.knowledge-operation-tools{--knowledge-operation-tool-size:96px}}
