.md-main__inner {
  max-width: min(94rem, calc(100vw - 2rem));
}

.md-content {
  min-width: 0;
}

.md-content__inner {
  max-width: 100%;
  margin-right: clamp(0.8rem, 3vw, 2.2rem);
}

.md-content__inner > h1,
.md-content__inner > p,
.md-content__inner > ul {
  max-width: 58rem;
}

.md-sidebar--primary {
  --kb-nav-amber: #c77820;
  --kb-nav-blue: #5f86d8;
  --kb-nav-green: #18a186;
  --kb-nav-ink: rgba(248, 251, 248, 0.93);
  --kb-nav-line: rgba(255, 255, 255, 0.13);
  --kb-nav-muted: rgba(218, 229, 226, 0.66);
  --kb-nav-panel: #0d1514;
  --kb-nav-soft: rgba(255, 255, 255, 0.055);
  width: 12.1rem;
}

.md-sidebar--secondary {
  display: none !important;
}

.md-sidebar--primary .md-nav--primary {
  color: var(--kb-nav-ink);
}

.md-sidebar--primary .md-nav__title {
  margin: 0 0 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.24rem 0.46rem 0.62rem;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(248, 251, 248, 0.78);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
}

.md-sidebar--primary .md-nav__title .md-nav__button {
  color: rgba(248, 251, 248, 0.9);
}

.md-sidebar--primary .md-nav--primary > .md-nav__title {
  display: none;
}

.md-sidebar--primary .md-nav__link {
  position: relative;
  min-width: 0;
  border-radius: 8px;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.md-sidebar--primary .md-nav__link .md-ellipsis {
  min-width: 0;
}

.md-sidebar--primary .md-nav__icon {
  margin-left: auto;
  color: var(--kb-nav-muted);
  opacity: 0.75;
}

@media (min-width: 76.25em) {
  .md-sidebar--primary {
    width: 14.1rem;
  }

  .md-sidebar--primary .md-sidebar__scrollwrap {
    margin-top: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
      linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
      linear-gradient(180deg, rgba(255, 255, 255, 0.075), transparent 22%),
      linear-gradient(145deg, rgba(13, 118, 108, 0.22), transparent 42%),
      var(--kb-nav-panel);
    background-size: 3.4rem 3.4rem, 3.4rem 3.4rem, auto, auto, auto;
    box-shadow:
      0 22px 54px rgba(4, 12, 19, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  .md-sidebar--primary .md-sidebar__inner {
    padding: 0.62rem 0.46rem 0.86rem;
  }

  .md-sidebar--primary .md-nav--primary > .md-nav__list {
    display: grid;
    gap: 0.16rem;
  }

  .md-main__inner:has(.zx-home) .md-sidebar--primary .md-sidebar__scrollwrap {
    margin-top: -0.6rem;
  }
}

@media (max-width: 76.234375em) {
  .md-sidebar--primary .md-sidebar__scrollwrap {
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
      linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
      linear-gradient(145deg, rgba(13, 118, 108, 0.22), transparent 42%),
      var(--kb-nav-panel);
    background-size: 3.4rem 3.4rem, 3.4rem 3.4rem, auto, auto;
  }

  .md-sidebar--primary .md-sidebar__inner {
    padding: 0.58rem 0.42rem 0.78rem;
  }

  .md-sidebar--primary .md-nav__link,
  .kb-user-record-line,
  .kb-user-summary-open,
  .kb-user-download {
    min-height: 2rem;
  }

  .kb-user-record-line,
  .kb-user-download {
    align-items: center;
  }
}

.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link {
  display: flex;
  align-items: center;
  min-height: 2.05rem;
  padding: 0.42rem 0.54rem;
  color: var(--kb-nav-ink);
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.25;
}

.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link:hover,
.md-sidebar--primary .md-nav--primary > .md-nav__list > .md-nav__item > .md-nav__link:focus {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.md-nav__link.kb-nav-hero {
  min-height: 2.65rem;
  margin: 0.16rem 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  padding: 0.52rem 0.68rem 0.52rem 0.82rem;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--kb-hero-color, var(--kb-nav-blue)) 22%, transparent), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
  color: #f8fbf8;
  font-weight: 850;
  box-shadow:
    inset 3px 0 0 var(--kb-hero-color, var(--kb-nav-blue)),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.12);
}

.md-nav__link.kb-nav-hero::before {
  position: static;
  flex: 0 0 auto;
  width: 0.42rem;
  height: 0.42rem;
  margin-right: 0.54rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: var(--kb-hero-color, var(--kb-nav-blue));
  box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--kb-hero-color, var(--kb-nav-blue)) 18%, transparent);
  content: "";
}

.md-nav__link.kb-nav-hero--home {
  --kb-hero-color: var(--kb-nav-amber);
}

.md-nav__link.kb-nav-hero--ai {
  --kb-hero-color: var(--kb-nav-blue);
}

.md-nav__link.kb-nav-hero--intake {
  --kb-hero-color: var(--kb-nav-green);
}

.md-nav__link.kb-nav-hero:hover,
.md-nav__link.kb-nav-hero:focus,
.md-nav__link.kb-nav-hero.md-nav__link--active {
  border-color: color-mix(in srgb, var(--kb-hero-color, var(--kb-nav-blue)) 58%, rgba(255, 255, 255, 0.16));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--kb-hero-color, var(--kb-nav-blue)) 30%, transparent), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  color: #ffffff;
  transform: translateX(1px);
}

.md-nav__link.kb-nav-section {
  --kb-section-color: #0d766c;
  min-height: 2.35rem;
  margin-top: 0.42rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding-left: 0.7rem;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--kb-section-color) 24%, transparent), transparent 76%),
    rgba(255, 255, 255, 0.045);
  color: #f8fbf8;
  font-weight: 900;
  box-shadow: inset 3px 0 0 var(--kb-section-color);
}

.md-nav__link.kb-nav-section--briefings {
  --kb-section-color: var(--kb-nav-amber);
}

.md-nav__link.kb-nav-section--files {
  --kb-section-color: var(--kb-nav-blue);
}

.md-sidebar--primary .md-nav[data-md-level="1"] > .md-nav__list {
  margin: 0.22rem 0 0.52rem 0.4rem;
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  padding-left: 0.38rem;
}

.md-sidebar--primary .md-nav[data-md-level="1"] > .md-nav__list > .md-nav__item > .md-nav__link {
  display: flex;
  align-items: center;
  min-height: 1.82rem;
  padding: 0.28rem 0.42rem;
  color: rgba(248, 251, 248, 0.86);
  font-size: 0.77rem;
  font-weight: 760;
  line-height: 1.25;
}

.md-sidebar--primary .md-nav[data-md-level="1"] > .md-nav__list > .md-nav__item > .md-nav__link::before {
  flex: 0 0 auto;
  width: 0.28rem;
  height: 0.28rem;
  margin-right: 0.42rem;
  border-radius: 999px;
  background: rgba(24, 161, 134, 0.82);
  content: "";
}

.md-sidebar--primary .md-nav[data-md-level="2"] .md-nav__link,
.md-sidebar--primary .md-nav[data-md-level="3"] .md-nav__link,
.md-sidebar--primary .md-nav[data-md-level="4"] .md-nav__link {
  min-height: 1.52rem;
  padding-top: 0.18rem;
  padding-bottom: 0.18rem;
  color: var(--kb-nav-muted);
  font-size: 0.7rem;
  line-height: 1.28;
}

.md-sidebar--primary .md-nav[data-md-level="2"] .md-nav__link:hover,
.md-sidebar--primary .md-nav[data-md-level="3"] .md-nav__link:hover,
.md-sidebar--primary .md-nav[data-md-level="4"] .md-nav__link:hover {
  color: var(--md-primary-fg-color);
}

.md-sidebar--primary .md-nav__link--active:not(.kb-nav-hero) {
  background: rgba(24, 161, 134, 0.16);
  color: #ffffff;
  font-weight: 850;
}

.kb-user-records-nav {
  box-sizing: border-box;
  margin: 0.62rem 0.06rem 0.78rem;
  padding: 0.68rem;
  border: 1px solid rgba(73, 179, 153, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(24, 161, 134, 0.18), transparent 58%),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 28px rgba(0, 0, 0, 0.12);
}

.kb-user-records-nav * {
  box-sizing: border-box;
}

.kb-user-records-title {
  margin-bottom: 0.4rem;
  color: rgba(123, 224, 194, 0.94);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
}

.kb-user-records-empty {
  margin-top: 0.35rem;
  color: var(--kb-nav-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.kb-user-records-list {
  display: grid;
  gap: 0.18rem;
}

.kb-user-details,
.kb-user-subdetails {
  margin-top: 0.35rem;
}

.kb-user-details > summary {
  cursor: pointer;
  padding: 0.25rem 0.28rem;
  border-radius: 6px;
  color: rgba(248, 251, 248, 0.9);
  font-size: 0.8rem;
  font-weight: 780;
  list-style: none;
}

.kb-user-details--active > summary {
  background: rgba(24, 161, 134, 0.16);
  color: #ffffff;
}

.kb-user-details > summary::-webkit-details-marker,
.kb-user-subdetails > summary::-webkit-details-marker {
  display: none;
}

.kb-user-details > summary::before,
.kb-user-subdetails > summary::before {
  content: "›";
  display: inline-block;
  margin-right: 0.32rem;
  color: rgba(123, 224, 194, 0.86);
  transition: transform 120ms ease;
}

.kb-user-details[open] > summary::before,
.kb-user-subdetails[open] > summary::before {
  transform: rotate(90deg);
}

.kb-user-subdetails > summary {
  cursor: pointer;
  color: rgba(218, 229, 226, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
  list-style: none;
}

.kb-user-name {
  display: inline-block;
  max-width: 9.8rem;
  overflow: hidden;
  vertical-align: bottom;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-user-counts {
  display: block;
  margin-left: 1.05rem;
  color: rgba(218, 229, 226, 0.58);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.25;
}

.kb-user-summary-open {
  appearance: none;
  display: inline-flex;
  align-items: center;
  width: auto;
  max-width: calc(100% - 1.3rem);
  min-height: 1.3rem;
  margin: 0.25rem 0 0.08rem 1.08rem;
  border: 0;
  border-bottom: 1px solid rgba(123, 224, 194, 0.34);
  border-radius: 0;
  padding: 0.05rem 0;
  background: transparent;
  color: rgba(123, 224, 194, 0.88);
  font: inherit;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.25;
  cursor: pointer;
}

.kb-user-summary-open:hover {
  border-color: rgba(123, 224, 194, 0.62);
  color: #c5ffec;
}

.kb-user-summary-open::after {
  content: "›";
  margin-left: 0.22rem;
  font-size: 0.72rem;
  line-height: 1;
}

.kb-user-record-list {
  display: grid;
  gap: 0.25rem;
  margin: 0.3rem 0 0.45rem 0.72rem;
}

.kb-user-record-line {
  display: grid;
  gap: 0.12rem;
  overflow: hidden;
  color: rgba(218, 229, 226, 0.72);
  font-size: 0.7rem;
  line-height: 1.35;
  text-overflow: ellipsis;
}

a.kb-user-record-line {
  text-decoration: none;
}

a.kb-user-record-line:hover {
  color: #c5ffec;
}

.kb-user-record-question {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-user-record-meta {
  overflow: hidden;
  color: rgba(218, 229, 226, 0.5);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-user-record-more {
  color: rgba(218, 229, 226, 0.6);
  font-size: 0.66rem;
  line-height: 1.35;
}

.kb-user-download {
  display: inline-flex;
  margin: 0.28rem 0 0.35rem 0.72rem;
  color: rgba(123, 224, 194, 0.9);
  font-size: 0.7rem;
  font-weight: 700;
}

.md-header {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), transparent 46%),
    linear-gradient(115deg, #06121d 0%, #0a1721 48%, #07101a 100%);
  background-size: 3.8rem 3.8rem, 3.8rem 3.8rem, auto, auto;
  color: rgba(245, 251, 255, 0.95);
  box-shadow:
    0 16px 42px rgba(3, 10, 18, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.md-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background:
    linear-gradient(90deg, transparent, rgba(98, 245, 255, 0.36), rgba(238, 178, 58, 0.44), transparent);
  box-shadow: 0 0 18px rgba(98, 245, 255, 0.18);
}

.md-header__inner {
  min-height: 3.34rem;
  max-width: min(94rem, calc(100vw - 1.1rem));
  gap: 0.42rem;
  padding: 0 0.3rem;
}

.md-header__button {
  color: rgba(235, 246, 250, 0.9);
}

.md-header__button:hover {
  color: #ffffff;
  opacity: 1;
}

.md-header__button.md-logo {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  width: clamp(9.15rem, 15.5vw, 12.15rem);
  height: 2.54rem;
  margin: 0.24rem 0.18rem 0.24rem 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  padding: 0.17rem 0.58rem 0.17rem 0.3rem;
  background:
    linear-gradient(90deg, rgba(25, 225, 235, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 10px 26px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  display: block;
  width: 100%;
  height: 2.18rem;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.md-header__button[for="__drawer"],
.md-header__button[for="__search"] {
  width: 2.08rem;
  height: 2.08rem;
  margin: 0.24rem 0.08rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.42rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.md-header__title {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  height: 2.3rem;
  margin-left: 0.14rem;
  min-width: 0;
}

.md-header__ellipsis {
  display: flex;
  align-items: center;
  height: 100%;
}

.md-header__topic[data-md-component="header-topic"] {
  display: none;
}

.md-header__topic:first-child .md-ellipsis {
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  max-width: 100%;
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.md-header__topic:first-child .md-ellipsis::before {
  content: "原油大模型知识库";
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 0.68rem;
  color: rgba(226, 237, 241, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.md-header__topic:first-child .md-ellipsis::after {
  content: "ENERGY AI";
  border: 1px solid rgba(98, 245, 255, 0.22);
  border-radius: 6px;
  padding: 0.18rem 0.38rem;
  background: rgba(20, 213, 223, 0.08);
  color: rgba(115, 246, 255, 0.9);
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.kb-header-tools {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.62rem;
  margin-left: auto;
  min-width: 0;
}

.kb-header-tools .md-search {
  flex: 0 0 clamp(10.8rem, 16vw, 13.4rem);
  width: clamp(10.8rem, 16vw, 13.4rem);
  min-width: 10.8rem;
  margin: 0;
}

.kb-header-tools .md-search__form {
  height: 2.08rem;
  border: 1px solid rgba(98, 245, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(19, 211, 219, 0.1), transparent 58%),
    rgba(2, 12, 20, 0.46);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 20px rgba(2, 9, 23, 0.2);
}

.kb-header-tools .md-search__input {
  height: 2.08rem;
  background: transparent;
  color: rgba(247, 252, 255, 0.95);
}

.kb-header-tools .md-search__input::placeholder {
  color: rgba(226, 237, 241, 0.62);
}

.kb-header-tools .md-search__icon {
  color: rgba(236, 247, 250, 0.9);
}

.kb-header-auth {
  position: relative;
  z-index: 5;
  flex: 0 0 8.15rem;
  width: 8.15rem;
}

.kb-header-user-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.46rem;
  width: 100%;
  height: 2.08rem;
  border: 1px solid rgba(238, 178, 58, 0.26);
  border-radius: 8px;
  padding: 0.2rem 0.55rem 0.2rem 0.32rem;
  background:
    linear-gradient(90deg, rgba(238, 178, 58, 0.13), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  color: rgba(247, 252, 255, 0.94);
  font: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 20px rgba(2, 9, 23, 0.2);
  cursor: pointer;
}

.kb-header-user-button:hover,
.kb-header-auth[data-open="true"] .kb-header-user-button {
  border-color: rgba(238, 178, 58, 0.46);
  background:
    linear-gradient(90deg, rgba(238, 178, 58, 0.18), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
}

.kb-header-user-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  inline-size: 1.42rem;
  block-size: 1.42rem;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(98, 245, 255, 0.32), rgba(238, 178, 58, 0.22));
  color: #f8fbf8;
  font-size: 0.72rem;
  font-weight: 800;
}

.kb-header-user-title {
  overflow: hidden;
  color: rgba(247, 252, 255, 0.94);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-header-user-caret {
  flex: 0 0 auto;
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0.8;
}

.kb-header-user-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.46rem);
  right: 0;
  width: min(20rem, calc(100vw - 1rem));
  padding: 0.8rem;
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 12%, transparent);
  border-radius: 0.85rem;
  background: var(--md-default-bg-color);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.22);
  color: var(--md-default-fg-color);
}

.kb-header-auth[data-open="true"] .kb-header-user-menu {
  display: block;
}

.kb-header-user-summary {
  display: grid;
  gap: 0.18rem;
  margin-bottom: 0.75rem;
}

.kb-header-user-summary strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-header-user-summary span {
  overflow: hidden;
  color: var(--md-default-fg-color--light);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-header-activity {
  display: grid;
  gap: 0.58rem;
  margin: 0 0 0.72rem;
  padding: 0.66rem;
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 10%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--md-default-bg-color) 94%, #0f9d58 4%);
}

.kb-header-activity-head,
.kb-header-activity-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.48rem;
}

.kb-header-activity-head strong {
  display: block;
  color: var(--md-default-fg-color);
  font-size: 0.82rem;
  line-height: 1.2;
}

.kb-header-activity-head span {
  display: block;
  margin-top: 0.12rem;
  color: var(--md-default-fg-color--light);
  font-size: 0.7rem;
}

.kb-header-mini-button {
  appearance: none;
  flex: 0 0 auto;
  min-height: 1.72rem;
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 14%, transparent);
  border-radius: 0.38rem;
  padding: 0.3rem 0.48rem;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.kb-header-mini-button--primary {
  border-color: color-mix(in srgb, #0f9d58 34%, transparent);
  background: color-mix(in srgb, #0f9d58 88%, #ffffff 12%);
  color: #fff;
}

.kb-header-mini-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.kb-header-records {
  display: grid;
  gap: 0.32rem;
}

.kb-header-record-line {
  display: grid;
  gap: 0.08rem;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 8%, transparent);
  border-radius: 0.42rem;
  padding: 0.42rem 0.48rem;
  background: color-mix(in srgb, var(--md-default-bg-color) 98%, var(--md-default-fg-color) 1%);
  color: var(--md-default-fg-color);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.kb-header-record-line:hover {
  color: var(--md-default-fg-color);
  background: color-mix(in srgb, var(--md-default-bg-color) 92%, #0f9d58 5%);
}

.kb-header-record-line span,
.kb-header-record-line em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-header-record-line span {
  font-size: 0.74rem;
  font-weight: 800;
}

.kb-header-record-line em {
  color: var(--md-default-fg-color--light);
  font-size: 0.64rem;
  font-style: normal;
}

.kb-header-record-empty {
  border: 1px dashed color-mix(in srgb, var(--md-default-fg-color) 14%, transparent);
  border-radius: 8px;
  padding: 0.62rem;
  color: var(--md-default-fg-color--light);
  font-size: 0.74rem;
  line-height: 1.45;
}

.kb-header-auth-form {
  display: grid;
  gap: 0.62rem;
}

.kb-header-auth-field {
  display: grid;
  gap: 0.26rem;
}

.kb-header-auth-field span {
  color: var(--md-default-fg-color--light);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}

.kb-header-auth-form .kb-auth-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.1rem;
}

.kb-header-auth-form .md-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  margin: 0;
  padding: 0.42rem 0.7rem;
  font-size: 0.76rem;
}

.kb-auth-box {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 12%, transparent);
  border-radius: 0.95rem;
  background: color-mix(in srgb, var(--md-default-bg-color) 94%, var(--md-primary-fg-color) 4%);
}

.kb-auth-box--signed-in {
  background:
    radial-gradient(circle at top right, color-mix(in srgb, #0f9d58 14%, transparent), transparent 38%),
    color-mix(in srgb, var(--md-default-bg-color) 93%, #0f9d58 4%);
}

.kb-auth-box--signed-in strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kb-auth-label {
  color: var(--md-default-fg-color--light);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.kb-auth-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.kb-auth-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.kb-auth-input {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 16%, transparent);
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: color-mix(in srgb, var(--md-default-bg-color) 94%, var(--md-primary-fg-color) 3%);
  color: var(--md-default-fg-color);
  font: inherit;
}

.kb-auth-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.kb-auth-message {
  grid-column: 1 / -1;
  color: var(--md-default-fg-color--light);
  font-size: 0.82rem;
}

.kb-user-summary-panel {
  margin: 0 0 1.2rem;
  padding: clamp(0.8rem, 2vw, 1.15rem);
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 12%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--md-default-bg-color) 96%, #0f9d58 3%), var(--md-default-bg-color));
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.md-content__inner.kb-summary-view-active > :not(.kb-user-summary-panel) {
  display: none;
}

.kb-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid color-mix(in srgb, var(--md-default-fg-color) 10%, transparent);
}

.kb-summary-kicker {
  margin-bottom: 0.12rem;
  color: color-mix(in srgb, #0f9d58 82%, var(--md-default-fg-color));
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kb-summary-header h2 {
  margin: 0;
  color: var(--md-default-fg-color);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.18;
}

.kb-summary-user-key {
  margin-top: 0.2rem;
  color: var(--md-default-fg-color--light);
  font-size: 0.78rem;
}

.kb-summary-actions,
.kb-summary-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.kb-summary-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  border: 1px solid color-mix(in srgb, #0f9d58 36%, transparent);
  border-radius: 0.4rem;
  padding: 0.38rem 0.62rem;
  background: color-mix(in srgb, #0f9d58 88%, #ffffff 12%);
  color: #ffffff;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.kb-summary-button:hover {
  background: color-mix(in srgb, #0f9d58 78%, #000000 8%);
  color: #ffffff;
  text-decoration: none;
}

.kb-summary-button--ghost {
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
}

.kb-summary-button--ghost:hover {
  background: color-mix(in srgb, var(--md-default-fg-color) 6%, var(--md-default-bg-color));
  color: var(--md-default-fg-color);
}

.kb-summary-button--danger {
  border-color: color-mix(in srgb, #b42318 36%, transparent);
  background: color-mix(in srgb, #b42318 8%, var(--md-default-bg-color));
  color: #b42318;
}

.kb-summary-button--danger:hover {
  background: color-mix(in srgb, #b42318 14%, var(--md-default-bg-color));
  color: #b42318;
}

.kb-summary-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.kb-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.85rem 0;
}

.kb-summary-stats > div {
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 10%, transparent);
  border-radius: 8px;
  padding: 0.65rem 0.72rem;
  background: color-mix(in srgb, var(--md-default-bg-color) 96%, var(--md-default-fg-color) 2%);
}

.kb-summary-stats span {
  display: block;
  color: var(--md-default-fg-color--light);
  font-size: 0.72rem;
}

.kb-summary-stats strong {
  display: block;
  margin-top: 0.12rem;
  color: var(--md-default-fg-color);
  font-size: 1.35rem;
  line-height: 1;
}

.kb-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: start;
}

.kb-summary-section {
  min-width: 0;
}

.kb-summary-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.kb-summary-section-title h3 {
  margin: 0;
  color: var(--md-default-fg-color);
  font-size: 0.98rem;
  line-height: 1.2;
}

.kb-summary-section-title span {
  flex: 0 0 auto;
  color: var(--md-default-fg-color--light);
  font-size: 0.76rem;
  font-weight: 700;
}

.kb-summary-records {
  display: grid;
  gap: 0.58rem;
}

.kb-summary-record {
  display: grid;
  gap: 0.42rem;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--md-default-fg-color) 11%, transparent);
  border-radius: 8px;
  padding: 0.72rem;
  background: var(--md-default-bg-color);
}

.kb-summary-record--qa {
  box-shadow: inset 3px 0 0 color-mix(in srgb, #2563eb 72%, transparent);
}

.kb-summary-record--upload {
  box-shadow: inset 3px 0 0 color-mix(in srgb, #0f9d58 76%, transparent);
}

.kb-summary-record-title {
  color: var(--md-default-fg-color);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.35;
}

.kb-summary-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem 0.5rem;
  color: var(--md-default-fg-color--light);
  font-size: 0.7rem;
  line-height: 1.35;
}

.kb-summary-record p {
  margin: 0;
  color: var(--md-default-fg-color--light);
  font-size: 0.78rem;
  line-height: 1.55;
}

.kb-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.kb-summary-tags span {
  border: 1px solid color-mix(in srgb, #0f9d58 18%, transparent);
  border-radius: 0.34rem;
  padding: 0.14rem 0.32rem;
  color: color-mix(in srgb, #0f9d58 72%, var(--md-default-fg-color));
  font-size: 0.66rem;
  font-weight: 750;
}

.kb-summary-record-actions {
  margin-top: 0.08rem;
}

.kb-summary-empty {
  border: 1px dashed color-mix(in srgb, var(--md-default-fg-color) 16%, transparent);
  border-radius: 8px;
  padding: 0.85rem;
  color: var(--md-default-fg-color--light);
  font-size: 0.82rem;
}

@media (min-width: 960px) {
  .md-header__inner > .md-header__button[for="__search"] {
    display: none;
  }
}

@media (max-width: 1120px) {
  .md-header__topic:first-child .md-ellipsis::after {
    display: none;
  }

  .kb-header-tools {
    gap: 0.55rem;
  }

  .kb-header-auth {
    flex-basis: 8rem;
    width: 8rem;
  }

  .kb-header-tools .md-search {
    flex-basis: 10.8rem;
    width: 10.8rem;
    min-width: 10.8rem;
  }
}

@media (max-width: 960px) {
  .md-header__inner {
    max-width: none;
    gap: 0.28rem;
  }

  .md-header__button.md-logo {
    width: 9rem;
  }

  .md-header__button[for="__drawer"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .md-header__topic:first-child .md-ellipsis::before,
  .md-header__topic:first-child .md-ellipsis::after {
    display: none;
  }

  .md-header__title {
    flex: 1 1 0;
    margin-left: 0;
  }

  .kb-header-tools {
    gap: 0.28rem;
    margin-left: auto;
  }

  .kb-header-tools .md-search {
    flex-basis: auto;
    width: auto;
    min-width: 0;
  }

  .kb-header-user-button {
    width: auto;
    max-width: 8.2rem;
  }

  .kb-header-user-title {
    max-width: 4.9rem;
  }

  .kb-auth-fields {
    grid-template-columns: 1fr;
  }

  .kb-auth-box {
    align-items: stretch;
    flex-direction: column;
  }

  .kb-auth-form {
    grid-template-columns: 1fr;
  }

  .kb-summary-header {
    align-items: stretch;
    flex-direction: column;
  }

  .kb-summary-stats,
  .kb-summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .md-header__inner {
    min-height: 3.12rem;
    padding: 0 0.18rem;
  }

  .md-header__button.md-logo {
    width: 7.75rem;
    height: 2.34rem;
    padding-right: 0.34rem;
  }

  .md-header__button.md-logo img,
  .md-header__button.md-logo svg {
    height: 2rem;
  }

  .md-header__button[for="__drawer"],
  .md-header__button[for="__search"] {
    width: 1.98rem;
    height: 1.98rem;
    margin-inline: 0.04rem;
  }

  .kb-header-tools {
    flex: 0 0 auto;
  }

  .kb-header-auth {
    flex: 0 0 auto;
    width: auto;
  }

  .kb-header-user-button {
    width: 1.98rem;
    max-width: 1.98rem;
    height: 1.98rem;
    padding: 0;
  }

  .kb-header-user-avatar {
    inline-size: 1.34rem;
    block-size: 1.34rem;
  }

  .kb-header-user-title,
  .kb-header-user-caret {
    display: none;
  }

  .kb-user-summary-panel {
    margin-right: -0.2rem;
    margin-left: -0.2rem;
    padding: 0.75rem;
  }

  .kb-summary-actions,
  .kb-summary-record-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .kb-summary-button {
    width: 100%;
  }
}
