:root {
  --sg-ink: #223227;
  --sg-muted: #746f66;
  --sg-border: #e8dac6;
  --sg-surface: rgba(255, 252, 246, 0.92);
  --sg-accent: #c69a3d;
  --sg-bg: #f7f2e8;
  --sg-danger: #8a342c;
  --sg-success: #2d6b45;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--sg-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #fffdf8 0%, var(--sg-bg) 62%, #fffdf8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 14vh auto auto 50%;
  width: min(640px, 78vw);
  aspect-ratio: 1.2;
  pointer-events: none;
  background: url("/kb/sg-logo-full.png") center / contain no-repeat;
  opacity: 0.035;
  transform: translateX(-50%);
}

.sgkb-shell {
  position: relative;
  width: min(1120px, calc(100% - 20px));
  margin: 0 auto;
  padding: clamp(10px, 2vw, 22px) 0 clamp(24px, 4vw, 42px);
  z-index: 1;
}

.sgkb-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.sgkb-language-switch {
  margin-left: auto;
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--sg-border);
  border-radius: 999px;
  background: var(--sg-surface);
  padding: 4px;
}

.sgkb-language-switch button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sg-muted);
  padding: 6px 10px;
  font-weight: 900;
  cursor: pointer;
}

.sgkb-language-switch button.is-active {
  background: var(--sg-ink);
  color: #fffaf3;
}

.sgkb-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.55fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

.sgkb-hero > div,
.sgkb-hero aside,
.sgkb-start-card {
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  background: var(--sg-surface);
}

.sgkb-hero > div {
  padding: 16px 18px;
  min-height: 104px;
}

.sgkb-kicker {
  margin: 0 0 8px;
  color: var(--sg-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sgkb-hero h2 {
  margin: 0;
  max-width: 700px;
  color: var(--sg-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  line-height: 1.12;
}

.sgkb-hero aside {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 14px;
  border-left: 5px solid var(--sg-accent);
  color: #5f5a52;
  line-height: 1.42;
}

.sgkb-hero aside strong {
  color: var(--sg-ink);
}

.sgkb-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.sgkb-quick-grid button {
  border: 1px solid var(--sg-border);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--sg-ink);
  background: rgba(255, 252, 246, 0.78);
  font-weight: 850;
  cursor: pointer;
}

.sgkb-quick-order {
  grid-column: 2;
  grid-row: 1;
  border-color: rgba(198, 154, 61, 0.55) !important;
  background: rgba(198, 154, 61, 0.12) !important;
}

.sgkb-quick-shipping {
  grid-column: 2;
  grid-row: 2;
}

.sgkb-header img {
  width: 82px;
  height: auto;
}

.sgkb-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.sgkb-header p {
  margin: 0 0 3px;
  color: var(--sg-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sgkb-admin-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-bottom: 3px;
  border: 1px solid rgba(116, 111, 102, 0.24);
  border-radius: 999px;
  color: rgba(116, 111, 102, 0.68);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.sgkb-admin-key svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.sgkb-admin-key:hover,
.sgkb-admin-key:focus-visible {
  border-color: rgba(198, 154, 61, 0.58);
  color: var(--sg-ink);
  background: rgba(255, 252, 246, 0.82);
  outline: none;
}

.sgkb-header h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1.02;
}

.sgkb-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sgkb-internal-header-button {
  border: 1px solid rgba(34, 50, 39, 0.22);
  border-radius: 999px;
  background: rgba(34, 50, 39, 0.06);
  color: var(--sg-ink);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.sgkb-internal-header-button:hover,
.sgkb-internal-header-button:focus-visible {
  border-color: rgba(34, 50, 39, 0.42);
  background: rgba(34, 50, 39, 0.1);
  outline: none;
}

.sgkb-internal-header-button[hidden] {
  display: none;
}

.sgkb-search-panel {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 0 14px;
  background: linear-gradient(180deg, var(--sg-bg) 74%, rgba(247, 242, 232, 0));
}

.sgkb-search-panel input {
  width: 100%;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  padding: 16px 18px;
  color: var(--sg-ink);
  background: var(--sg-surface);
  font-size: clamp(14px, 1.8vw, 17px);
  font-weight: 700;
  outline: none;
}

.sgkb-suggestions {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  border: 1px solid rgba(198, 154, 61, 0.34);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 16px 34px rgba(34, 50, 39, 0.1);
}

.sgkb-suggestions[hidden] {
  display: none;
}

.sgkb-suggestions > strong {
  color: var(--sg-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sgkb-suggestion-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.sgkb-suggestion {
  display: grid;
  gap: 3px;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  padding: 9px 10px;
  text-align: left;
  color: var(--sg-ink);
  background: rgba(255, 252, 246, 0.86);
  cursor: pointer;
}

.sgkb-suggestion:hover,
.sgkb-suggestion:focus-visible,
.sgkb-suggestion-topics button:hover,
.sgkb-suggestion-topics button:focus-visible {
  border-color: rgba(198, 154, 61, 0.72);
  box-shadow: 0 8px 18px rgba(34, 50, 39, 0.08);
}

.sgkb-suggestion span {
  color: var(--sg-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sgkb-suggestion b {
  overflow: hidden;
  color: var(--sg-ink);
  font-size: 14px;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sgkb-suggestion-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sgkb-suggestion-topics button {
  border: 1px solid var(--sg-border);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--sg-ink);
  background: rgba(34, 50, 39, 0.05);
  font-weight: 850;
  cursor: pointer;
}

.sgkb-product-filters,
.sgkb-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.sgkb-group,
.sgkb-product-filter,
.sgkb-start-card button,
.sgkb-back {
  border: 1px solid var(--sg-border);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--sg-ink);
  background: rgba(255, 252, 246, 0.78);
  font-weight: 800;
  cursor: pointer;
}

.sgkb-product-filter {
  border-color: rgba(34, 50, 39, 0.18);
  background: rgba(34, 50, 39, 0.06);
}

.sgkb-group.is-active {
  border-color: var(--sg-accent);
  background: rgba(198, 154, 61, 0.16);
}

.sgkb-group.is-internal {
  border-color: rgba(34, 50, 39, 0.3);
  color: var(--sg-ink);
  background: rgba(34, 50, 39, 0.05);
}

.sgkb-group.is-subcategory {
  padding: 6px 10px;
  border-style: dashed;
  font-size: 13px;
}

.sgkb-start {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 14px;
}

.sgkb-popular {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(198, 154, 61, 0.28);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.72);
}

.sgkb-popular h2 {
  margin: 0;
  color: var(--sg-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sgkb-popular-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sgkb-popular-list button {
  border: 1px solid var(--sg-border);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--sg-ink);
  background: rgba(255, 252, 246, 0.86);
  font-weight: 800;
  cursor: pointer;
}

.sgkb-start-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.sgkb-start-card strong {
  color: var(--sg-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.16;
}

.sgkb-start-card span {
  color: var(--sg-muted);
  line-height: 1.35;
}

.sgkb-start-card button {
  width: fit-content;
  margin-top: 4px;
}

.sgkb-results {
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow: visible;
}

.sgkb-order-lookup {
  display: grid;
  gap: 12px;
  grid-column: 1 / -1;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid var(--sg-border);
  border-left: 5px solid var(--sg-accent);
  border-radius: 8px;
  background: var(--sg-surface);
}

.sgkb-order-lookup__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sgkb-order-lookup__header h2 {
  margin: 0;
  color: var(--sg-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  line-height: 1.12;
}

.sgkb-order-lookup__close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--sg-border);
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.88);
  color: var(--sg-ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.sgkb-order-lookup p,
.sgkb-order-lookup__message,
.sgkb-order-lookup__line,
.sgkb-order-lookup__tracking {
  margin: 0;
  color: #4c473f;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.45;
}

.sgkb-order-lookup__message {
  padding: 10px 12px;
  border: 1px solid rgba(45, 107, 69, 0.22);
  border-radius: 8px;
  background: rgba(45, 107, 69, 0.07);
}

.sgkb-order-lookup__message.is-warning {
  border-color: rgba(138, 52, 44, 0.25);
  background: rgba(138, 52, 44, 0.07);
  color: var(--sg-danger);
}

.sgkb-order-lookup__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.sgkb-order-lookup__form input {
  min-height: 44px;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--sg-ink);
  background: rgba(255, 252, 246, 0.92);
  font: inherit;
  font-weight: 700;
}

.sgkb-order-lookup__form button {
  min-height: 44px;
  border: 1px solid var(--sg-ink);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--sg-ink);
  color: #fffaf3;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  white-space: nowrap;
}

.sgkb-order-lookup__result {
  display: grid;
  gap: 8px;
}

.sgkb-order-lookup__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sgkb-order-lookup__meta span {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(34, 50, 39, 0.06);
  color: var(--sg-ink);
  font-size: 12px;
  font-weight: 900;
}

.sgkb-order-lookup__result strong {
  margin-top: 4px;
  color: var(--sg-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sgkb-order-lookup__result ul {
  margin: 0;
  padding-left: 20px;
  color: #4c473f;
  line-height: 1.45;
}

.sgkb-order-lookup__tracking {
  display: grid;
  gap: 3px;
}

.sgkb-order-lookup__tracking a {
  width: fit-content;
  color: var(--sg-ink);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.sgkb-search-active .sgkb-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

body.sgkb-search-active .sgkb-card {
  height: 100%;
}

.sgkb-card {
  display: block;
  width: 100%;
  border: 1px solid var(--sg-border);
  border-left: 5px solid var(--sg-accent);
  border-radius: 8px;
  padding: 16px 18px;
  text-align: left;
  color: var(--sg-ink);
  background: var(--sg-surface);
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.sgkb-card:hover,
.sgkb-card:focus-visible,
.sgkb-start-card:hover {
  border-color: rgba(198, 154, 61, 0.72);
  box-shadow: 0 14px 30px rgba(34, 50, 39, 0.08);
  transform: translateY(-1px);
}

.sgkb-card span,
.sgkb-article-meta {
  display: block;
  margin-bottom: 5px;
  color: var(--sg-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sgkb-card strong {
  display: block;
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.18;
}

.sgkb-article h2 {
  display: block;
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.22;
}

.sgkb-card em {
  display: block;
  color: #5f5a52;
  font-style: normal;
  line-height: 1.4;
}

.sgkb-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 6px;
}

.sgkb-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 1px 3px;
  background: rgba(45, 107, 69, 0.1);
  color: var(--sg-success);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.15;
  transform: scale(0.68);
  transform-origin: left center;
  margin-right: -9px;
  margin-bottom: -3px;
}

.sgkb-badge.is-warning {
  background: rgba(138, 52, 44, 0.1);
  color: var(--sg-danger);
}

.sgkb-article {
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  padding: clamp(12px, 2vw, 20px);
  background: var(--sg-surface);
  min-width: 0;
  overflow: visible;
  scroll-margin-top: 12px;
}

.sgkb-article-notice {
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px dashed var(--sg-accent);
  border-radius: 8px;
  background: rgba(198, 154, 61, 0.11);
  color: #5f5a52;
  line-height: 1.42;
}

.sgkb-product-links,
.sgkb-compliance-workflow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.72);
}

.sgkb-article-downloads {
  display: grid;
  gap: 8px;
  align-items: stretch;
  margin: 18px 0 4px;
  padding: 14px;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.9);
}

.sgkb-compliance-workflow {
  align-items: flex-start;
  border-left: 5px solid var(--sg-danger);
  color: #5f5a52;
}

.sgkb-product-links strong,
.sgkb-article-downloads strong,
.sgkb-compliance-workflow strong {
  color: var(--sg-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sgkb-product-link,
.sgkb-download-link {
  border: 1px solid var(--sg-border);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--sg-ink);
  background: rgba(34, 50, 39, 0.05);
  font-weight: 900;
  text-decoration: none;
}

.sgkb-download-link {
  display: grid;
  gap: 3px;
  width: 100%;
  border-radius: 8px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

.sgkb-download-link span {
  font-weight: 900;
}

.sgkb-download-link small {
  color: var(--sg-muted);
  font-size: 12px;
  font-weight: 700;
}

.sgkb-article-body,
.sgkb-section-body {
  display: grid;
  gap: 11px;
  max-width: min(100%, 82ch);
}

.sgkb-article p {
  max-width: min(100%, 82ch);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #4c473f;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.55;
}

.sgkb-article-body p,
.sgkb-section-body p {
  margin: 0;
}

.sgkb-article-body ul,
.sgkb-article-body ol,
.sgkb-section-body ul,
.sgkb-section-body ol {
  margin: 0;
  padding-left: 22px;
  color: #4c473f;
  font-size: clamp(14px, 1.05vw, 16px);
  line-height: 1.55;
}

.sgkb-article-body li,
.sgkb-section-body li {
  margin: 3px 0;
  overflow-wrap: anywhere;
}

.sgkb-article-sections,
.sgkb-article-faq {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.sgkb-article-sections section,
.sgkb-article-faq details {
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.72);
  padding: 14px;
}

.sgkb-article-sections h3,
.sgkb-article-faq h3 {
  margin: 0;
  color: var(--sg-ink);
  font-size: 12px;
  font-weight: 900;
}

.sgkb-article-sections p,
.sgkb-article-faq p {
  margin: 8px 0 0;
  font-size: 15px;
}

.sgkb-article-faq summary {
  cursor: pointer;
  color: var(--sg-ink);
  font-size: 13px;
  font-weight: 900;
}

.sgkb-source {
  color: var(--sg-ink);
  font-weight: 900;
}

.sgkb-integration-page pre {
  overflow: auto;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  background: rgba(34, 50, 39, 0.06);
  padding: 14px;
}

body.sgkb-embed {
  min-height: 0;
  overflow: visible;
  background: #fffaf3;
}

body.sgkb-embed::before {
  opacity: 0.02;
}

body.sgkb-embed .sgkb-shell {
  width: min(100%, 1080px);
  padding: 0;
  overflow: visible;
}

body.sgkb-embed .sgkb-results,
body.sgkb-embed .sgkb-article {
  overflow: visible;
}

body.sgkb-embed .sgkb-header {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 6px;
}

body.sgkb-embed .sgkb-header img {
  display: none;
}

body.sgkb-embed .sgkb-header p {
  font-size: 10px;
  letter-spacing: 0.06em;
}

body.sgkb-embed .sgkb-admin-key {
  display: none;
}

body.sgkb-embed:not(.sgkb-storefront-embed) .sgkb-admin-key {
  display: inline-flex;
}

body.sgkb-embed .sgkb-header h1 {
  font-size: 22px;
  line-height: 1.04;
}

body.sgkb-embed .sgkb-language-switch {
  align-self: start;
  padding: 3px;
}

body.sgkb-embed .sgkb-language-switch button {
  padding: 5px 8px;
  font-size: 12px;
}

body.sgkb-embed .sgkb-hero {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

body.sgkb-embed .sgkb-hero > div,
body.sgkb-embed .sgkb-hero aside {
  padding: 8px 10px;
}

body.sgkb-embed .sgkb-kicker {
  margin-bottom: 3px;
  font-size: 10px;
  letter-spacing: 0.07em;
}

body.sgkb-embed .sgkb-hero h2 {
  font-size: 18px;
  line-height: 1.12;
}

body.sgkb-embed .sgkb-quick-grid {
  gap: 6px;
}

body.sgkb-embed .sgkb-quick-grid button {
  padding: 6px 8px;
  font-size: 13px;
}

body.sgkb-embed .sgkb-search-panel {
  top: 0;
  padding: 6px 0 8px;
}

body.sgkb-embed .sgkb-search-panel input {
  padding: 10px 12px;
  font-size: 15px;
}

body.sgkb-embed .sgkb-product-filters,
body.sgkb-embed .sgkb-groups {
  gap: 6px;
  margin-top: 8px;
}

body.sgkb-embed .sgkb-group,
body.sgkb-embed .sgkb-product-filter,
body.sgkb-embed .sgkb-start-card button,
body.sgkb-embed .sgkb-back {
  padding: 6px 9px;
  font-size: 12px;
}

body.sgkb-embed .sgkb-start {
  gap: 8px;
  margin: 0 0 10px;
}

body.sgkb-embed .sgkb-start-card {
  gap: 5px;
  padding: 10px 12px;
}

body.sgkb-embed .sgkb-start-card strong {
  font-size: 15px;
}

body.sgkb-embed .sgkb-start-card span {
  font-size: 13px;
  line-height: 1.25;
}

body.sgkb-embed .sgkb-popular {
  gap: 8px;
  padding: 10px;
}

body.sgkb-embed .sgkb-card {
  padding: 10px 12px;
}

body.sgkb-embed .sgkb-card strong {
  font-size: 15px;
}

body.sgkb-embed.sgkb-search-active .sgkb-results {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sgkb-embed .sgkb-article h2 {
  font-size: 13px;
}

body.sgkb-embed .sgkb-article p {
  font-size: 14px;
  line-height: 1.45;
}

body.sgkb-embed .sgkb-article-downloads {
  gap: 6px;
  padding: 9px;
}

body.sgkb-embed .sgkb-download-link {
  padding: 8px 10px;
}

body.sgkb-embed .sgkb-article-sections h3,
body.sgkb-embed .sgkb-article-faq h3 {
  font-size: 11px;
}

body.sgkb-storefront-embed {
  background: #fffdf8;
}

body.sgkb-storefront-embed::before {
  display: none;
}

body.sgkb-storefront-embed .sgkb-shell {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.sgkb-storefront-embed .sgkb-header,
body.sgkb-storefront-embed .sgkb-hero {
  display: none;
}

body.sgkb-storefront-embed .sgkb-search-panel,
body.sgkb-storefront-embed .sgkb-start,
body.sgkb-storefront-embed .sgkb-results,
body.sgkb-storefront-embed .sgkb-article,
body.sgkb-storefront-embed .sgkb-popular {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

body.sgkb-storefront-embed .sgkb-search-panel {
  position: sticky;
  top: 0;
  z-index: 5;
  padding: 18px 0 14px;
  background: linear-gradient(180deg, #fffdf8 72%, rgba(255, 253, 248, 0.92));
  border-bottom: 1px solid rgba(232, 218, 198, 0.72);
}

body.sgkb-storefront-embed .sgkb-search-panel input {
  min-height: 58px;
  border-radius: 999px;
  border-color: #ddcaae;
  background: #fffaf3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 12px 28px rgba(34, 50, 39, 0.06);
  font-size: 18px;
}

body.sgkb-storefront-embed .sgkb-group,
body.sgkb-storefront-embed .sgkb-product-filter {
  font-size: 15px;
}

body.sgkb-storefront-embed .sgkb-card strong,
body.sgkb-storefront-embed .sgkb-start-card strong {
  font-size: 18px;
}

body.sgkb-storefront-embed .sgkb-card em,
body.sgkb-storefront-embed .sgkb-start-card span {
  font-size: 16px;
  line-height: 1.46;
}

body.sgkb-storefront-embed .sgkb-article h2 {
  font-size: 19px;
}

body.sgkb-storefront-embed .sgkb-article p,
body.sgkb-storefront-embed .sgkb-article-body ul,
body.sgkb-storefront-embed .sgkb-article-body ol,
body.sgkb-storefront-embed .sgkb-section-body ul,
body.sgkb-storefront-embed .sgkb-section-body ol {
  font-size: clamp(16px, 1.12vw, 18px);
  line-height: 1.62;
}

body.sgkb-storefront-embed .sgkb-article-sections p,
body.sgkb-storefront-embed .sgkb-article-faq p,
body.sgkb-storefront-embed .sgkb-article-faq summary {
  font-size: 16px;
}

body.sgkb-storefront-embed .sgkb-groups {
  margin-top: 12px;
}

body.sgkb-storefront-embed .sgkb-group,
body.sgkb-storefront-embed .sgkb-product-filter {
  background: #fffdf8;
}

body.sgkb-storefront-embed .sgkb-start {
  margin-top: 20px;
  margin-bottom: 26px;
}

body.sgkb-storefront-embed .sgkb-start-card,
body.sgkb-storefront-embed .sgkb-card,
body.sgkb-storefront-embed .sgkb-article,
body.sgkb-storefront-embed .sgkb-popular {
  border-radius: 10px;
  background: #fffdf8;
  box-shadow: none;
}

body.sgkb-storefront-embed .sgkb-card:hover,
body.sgkb-storefront-embed .sgkb-card:focus-visible,
body.sgkb-storefront-embed .sgkb-start-card:hover {
  transform: none;
}

@media (max-width: 749px) {
  body.sgkb-storefront-embed .sgkb-search-panel,
  body.sgkb-storefront-embed .sgkb-start,
  body.sgkb-storefront-embed .sgkb-results,
  body.sgkb-storefront-embed .sgkb-article,
  body.sgkb-storefront-embed .sgkb-popular {
    width: min(100%, calc(100% - 20px));
  }

  body.sgkb-storefront-embed .sgkb-search-panel {
    padding-top: 12px;
  }

  body.sgkb-storefront-embed .sgkb-search-panel input {
    min-height: 52px;
    font-size: 17px;
  }

  body.sgkb-storefront-embed .sgkb-group,
  body.sgkb-storefront-embed .sgkb-product-filter {
    font-size: 14px;
  }

  body.sgkb-storefront-embed .sgkb-card strong,
  body.sgkb-storefront-embed .sgkb-start-card strong {
    font-size: 17px;
  }

  body.sgkb-storefront-embed .sgkb-card em,
  body.sgkb-storefront-embed .sgkb-start-card span {
    font-size: 15px;
  }

  body.sgkb-storefront-embed .sgkb-article p,
  body.sgkb-storefront-embed .sgkb-article-body ul,
  body.sgkb-storefront-embed .sgkb-article-body ol,
  body.sgkb-storefront-embed .sgkb-section-body ul,
  body.sgkb-storefront-embed .sgkb-section-body ol {
    font-size: 16px;
  }
}

.sgkb-admin-page {
  background: #fbf7ee;
}

.sgkb-admin-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
}

.sgkb-admin-header,
.sgkb-admin-toolbar,
.sgkb-admin-layout {
  border: 1px solid rgba(199, 167, 126, 0.28);
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.9);
  box-shadow: 0 14px 34px rgba(57, 45, 31, 0.08);
}

.sgkb-admin-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.sgkb-admin-header p {
  margin: 0 0 4px;
  color: #b08d59;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sgkb-admin-header h1 {
  margin: 0;
  color: #102916;
  font-size: clamp(25px, 4.4vw, 38px);
}

.sgkb-admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}

.sgkb-admin-user-badge {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #746f68;
  font-size: 12px;
  font-weight: 800;
}

.sgkb-admin-header-actions button.sgkb-source {
  font: inherit;
  cursor: pointer;
}

.sgkb-admin-locked .sgkb-admin-header-actions button.sgkb-source,
.sgkb-admin-locked .sgkb-admin-user-badge {
  display: none;
}

.sgkb-admin-auth-gate {
  border: 1px solid rgba(199, 167, 126, 0.28);
  border-radius: 14px;
  background: rgba(255, 252, 246, 0.94);
  box-shadow: 0 14px 34px rgba(57, 45, 31, 0.08);
  padding: 22px;
  margin-bottom: 14px;
}

.sgkb-admin-auth-gate[hidden] {
  display: none;
}

.sgkb-admin-auth-gate h2 {
  margin: 0 0 8px;
  color: #102916;
  font-size: 22px;
}

.sgkb-admin-auth-gate p {
  max-width: 680px;
  margin: 0 0 14px;
  color: #5f5a52;
}

.sgkb-admin-login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  max-width: 760px;
  margin-bottom: 12px;
}

.sgkb-admin-login-grid label {
  display: grid;
  gap: 6px;
  color: #4d473e;
  font-weight: 800;
}

.sgkb-admin-login-grid input {
  width: 100%;
  border: 1px solid rgba(199, 167, 126, 0.36);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 252, 246, 0.92);
  color: #1f2d20;
  font: inherit;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.sgkb-admin-form textarea {
  font-weight: 500;
  line-height: 1.5;
}

#sgkbAdminContent {
  min-height: 360px;
  font-size: 14px;
  line-height: 1.55;
}

.sgkb-admin-article-preview {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(199, 167, 126, 0.28);
  border-radius: 10px;
  background: rgba(255, 252, 246, 0.76);
  padding: 12px;
}

.sgkb-admin-article-preview > div:first-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  color: #746f68;
  font-size: 12px;
  font-weight: 800;
}

.sgkb-admin-article-preview strong {
  color: var(--sg-ink);
}

.sgkb-admin-article-preview .sgkb-article-body,
.sgkb-admin-article-preview .sgkb-section-body {
  gap: 10px;
  max-width: 100%;
}

.sgkb-admin-article-preview .sgkb-article-body p,
.sgkb-admin-article-preview .sgkb-article-body li {
  color: #4c473f;
  font-size: 14px;
  line-height: 1.55;
}

.sgkb-admin-login-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sgkb-admin-auth-gate button {
  border: 1px solid rgba(199, 167, 126, 0.34);
  border-radius: 10px;
  padding: 10px 14px;
  background: #0d2813;
  color: #fffaf0;
  cursor: pointer;
  font-weight: 900;
}

.sgkb-admin-auth-gate button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.sgkb-admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(210px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  margin-bottom: 14px;
}

.sgkb-admin-internal-intro {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(48, 69, 49, 0.18);
  border-radius: 14px;
  background: rgba(238, 246, 236, 0.78);
  box-shadow: 0 10px 28px rgba(35, 50, 33, 0.07);
}

.sgkb-admin-internal-intro[hidden] {
  display: none;
}

.sgkb-admin-internal-intro h2 {
  margin: 0 0 4px;
  color: #102916;
  font-size: 17px;
}

.sgkb-admin-internal-intro p {
  margin: 0;
  color: #5f5a52;
  font-size: 14px;
  line-height: 1.4;
}

body.sgkb-admin-internal-mode #sgkbPanelCategories {
  grid-template-columns: minmax(220px, 420px) 1fr;
  margin-bottom: 14px;
}

body.sgkb-admin-internal-mode #sgkbCategoryList {
  max-height: 220px;
}

.sgkb-admin-toolbar input,
.sgkb-admin-form input,
.sgkb-admin-form textarea,
.sgkb-admin-form select {
  width: 100%;
  border: 1px solid rgba(199, 167, 126, 0.36);
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(255, 252, 246, 0.92);
  color: #1f2d20;
  font: inherit;
}

.sgkb-admin-search-wrap {
  position: relative;
  min-width: 0;
}

.sgkb-admin-search-suggestions {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 8px;
  max-height: min(420px, 64vh);
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(199, 167, 126, 0.36);
  border-radius: 12px;
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 18px 42px rgba(35, 28, 18, 0.16);
}

.sgkb-admin-search-suggestions[hidden] {
  display: none;
}

.sgkb-admin-search-section {
  display: grid;
  gap: 5px;
}

.sgkb-admin-search-section > strong {
  color: #746f68;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sgkb-admin-search-suggestion {
  display: grid !important;
  gap: 2px !important;
  width: 100%;
  padding: 8px 10px !important;
  text-align: left;
  border-radius: 9px !important;
  font-weight: 500 !important;
}

.sgkb-admin-search-suggestion span {
  color: #1a2d1d;
  font-size: 13px;
}

.sgkb-admin-search-suggestion em,
.sgkb-admin-search-empty {
  color: #746f68;
  font-size: 12px;
  font-style: normal;
}

.sgkb-admin-tabs {
  display: inline-flex;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px;
  border: 1px solid rgba(199, 167, 126, 0.28);
  border-radius: 10px;
  background: rgba(244, 238, 227, 0.7);
}

.sgkb-admin-tabs button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.sgkb-admin-toolbar button,
.sgkb-admin-form button {
  border: 1px solid rgba(199, 167, 126, 0.34);
  border-radius: 10px;
  padding: 10px 14px;
  background: rgba(255, 252, 246, 0.92);
  color: #213321;
  font-weight: 800;
  cursor: pointer;
}

.sgkb-admin-toolbar button.is-active,
.sgkb-admin-form button[type="submit"] {
  background: #0d2813;
  color: #fffaf0;
}

.sgkb-admin-form button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sgkb-admin-readonly .sgkb-admin-form input,
.sgkb-admin-readonly .sgkb-admin-form textarea,
.sgkb-admin-readonly .sgkb-admin-form select {
  opacity: 0.72;
}

.sgkb-admin-form button.sgkb-admin-danger {
  background: #7f2f29;
}

.sgkb-admin-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: 14px;
  padding: 14px;
}

.sgkb-admin-layout[hidden],
.sgkb-admin-settings[hidden] {
  display: none;
}

.sgkb-admin-list {
  display: grid;
  gap: 8px;
  align-content: start;
  align-items: start;
  grid-auto-rows: max-content;
  max-height: 72vh;
  overflow: auto;
}

.sgkb-admin-article-overview {
  display: grid;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 3;
  margin-bottom: 2px;
  padding: 9px;
  border: 1px solid rgba(199, 167, 126, 0.24);
  border-radius: 12px;
  background: rgba(255, 252, 246, 0.96);
  box-shadow: 0 8px 18px rgba(57, 45, 31, 0.08);
}

.sgkb-admin-article-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sgkb-admin-article-overview-head strong {
  color: #1a2d1d;
  font-size: 13px;
}

.sgkb-admin-article-overview-head span {
  color: #746f68;
  font-size: 12px;
  font-weight: 800;
}

.sgkb-admin-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sgkb-admin-category-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  max-width: 100%;
  border: 1px solid rgba(199, 167, 126, 0.28);
  border-radius: 999px;
  background: rgba(246, 240, 229, 0.62);
  color: #213321;
  cursor: pointer;
  font: inherit;
  padding: 5px 9px;
}

.sgkb-admin-category-filter strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.sgkb-admin-category-filter span {
  flex: 0 0 auto;
  min-width: 22px;
  border-radius: 999px;
  background: rgba(255, 252, 246, 0.84);
  color: #6f6a61;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 6px;
  text-align: center;
}

.sgkb-admin-category-filter.is-active {
  border-color: rgba(48, 105, 76, 0.42);
  background: rgba(232, 244, 229, 0.95);
  color: #1d563e;
}

.sgkb-admin-article-category-group {
  display: grid;
  gap: 7px;
  align-self: start;
  padding: 8px;
  border: 1px solid rgba(199, 167, 126, 0.22);
  border-radius: 12px;
  background: rgba(246, 240, 229, 0.36);
}

.sgkb-admin-article-category-group.is-focused {
  border-color: rgba(202, 156, 55, 0.78);
  box-shadow: 0 0 0 2px rgba(202, 156, 55, 0.12);
}

.sgkb-admin-article-category-header {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 2px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.sgkb-admin-article-category-header strong {
  flex: 1;
  color: #263728;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sgkb-admin-article-category-header span {
  color: #746f68;
  font-size: 11px;
  white-space: nowrap;
}

.sgkb-admin-article-category-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  color: #746f68;
  font-size: 15px;
  font-style: normal;
  line-height: 1;
}

.sgkb-admin-article-category-items {
  display: grid;
  gap: 7px;
}

.sgkb-admin-article-category-items[hidden] {
  display: none;
}

.sgkb-admin-article-category-group.is-collapsed {
  gap: 0;
}

.sgkb-admin-list-item {
  display: grid;
  gap: 3px;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(199, 167, 126, 0.26);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.54);
  cursor: pointer;
}

.sgkb-admin-list-item.is-active {
  border-color: #0b5fc7;
  box-shadow: 0 0 0 2px rgba(11, 95, 199, 0.18);
}

.sgkb-admin-list-item strong {
  color: #1a2d1d;
  font-size: 14px;
}

.sgkb-admin-list-item span,
.sgkb-admin-list-item em {
  color: #746f68;
  font-size: 12px;
}

.sgkb-admin-category-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 8px;
  border: 1px solid rgba(199, 167, 126, 0.24);
  border-radius: 12px;
  background: rgba(255, 252, 246, 0.96);
  box-shadow: 0 8px 18px rgba(57, 45, 31, 0.08);
}

.sgkb-admin-category-summary span {
  display: grid;
  gap: 1px;
  border: 1px solid rgba(199, 167, 126, 0.2);
  border-radius: 9px;
  background: rgba(246, 240, 229, 0.45);
  padding: 7px 8px;
}

.sgkb-admin-category-summary strong {
  color: #1d563e;
  font-size: 17px;
  line-height: 1;
}

.sgkb-admin-category-summary em {
  color: #746f68;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.sgkb-admin-category-admin-group {
  display: grid;
  gap: 8px;
}

.sgkb-admin-category-admin-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 0 2px;
}

.sgkb-admin-category-admin-heading strong {
  color: #1a2d1d;
  font-size: 13px;
}

.sgkb-admin-category-admin-heading span {
  color: #746f68;
  font-size: 12px;
  font-weight: 800;
}

.sgkb-admin-category-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(199, 167, 126, 0.24);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  padding: 9px;
}

.sgkb-admin-category-card.is-inactive,
.sgkb-admin-category-card.is-private {
  background: rgba(246, 240, 229, 0.46);
}

.sgkb-admin-category-card__main {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.sgkb-admin-category-card__main strong {
  overflow: hidden;
  color: #1a2d1d;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sgkb-admin-category-card__main span {
  color: #746f68;
  font-size: 12px;
}

.sgkb-admin-category-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sgkb-admin-category-card__actions button {
  min-height: 32px;
  border: 1px solid rgba(199, 167, 126, 0.32);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.88);
  color: #213321;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.sgkb-admin-form {
  display: grid;
  gap: 10px;
}

.sgkb-admin-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.45fr) minmax(180px, 0.75fr);
  gap: 10px;
  align-items: end;
}

.sgkb-admin-form label {
  display: grid;
  gap: 5px;
  color: #746f68;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sgkb-admin-fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  padding: 12px;
}

.sgkb-admin-fieldset legend {
  padding: 0 6px;
  color: var(--sg-ink);
  font-weight: 900;
}

.sgkb-admin-primary-fields {
  background: rgba(255, 252, 246, 0.84);
}

.sgkb-admin-details {
  display: grid;
  gap: 10px;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.62);
  padding: 0;
}

.sgkb-admin-details summary {
  cursor: pointer;
  padding: 12px;
  color: var(--sg-ink);
  font-size: 13px;
  font-weight: 900;
}

.sgkb-admin-details[open] {
  padding: 0 12px 12px;
}

.sgkb-admin-details[open] summary {
  margin: 0 -12px;
  border-bottom: 1px solid rgba(232, 218, 198, 0.78);
}

.sgkb-admin-attachment-details .sgkb-admin-fieldset {
  border: 0;
  padding: 0;
}

.sgkb-admin-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.sgkb-admin-upload-row input[type="file"] {
  min-width: 0;
  letter-spacing: 0;
  text-transform: none;
}

.sgkb-admin-upload-hint {
  margin: 0;
  color: #746f68;
  font-size: 12px;
}

.sgkb-admin-dropzone {
  display: grid;
  gap: 4px;
  justify-items: center;
  border: 1px dashed rgba(190, 159, 108, 0.7);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.72);
  color: var(--sg-ink);
  cursor: pointer;
  padding: 18px;
  text-align: center;
}

.sgkb-admin-dropzone strong {
  font-size: 14px;
}

.sgkb-admin-dropzone span {
  color: #746f68;
  font-size: 12px;
}

.sgkb-admin-dropzone.is-dragging,
.sgkb-admin-dropzone:focus-visible {
  border-color: #b69042;
  box-shadow: 0 0 0 3px rgba(182, 144, 66, 0.18);
  outline: none;
}

.sgkb-admin-attachment-list {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sgkb-admin-attachment-item,
.sgkb-admin-attachment-empty {
  align-items: center;
  border: 1px solid rgba(232, 218, 198, 0.9);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 8px 10px;
}

.sgkb-admin-attachment-item a {
  color: var(--sg-ink);
  font-weight: 800;
  overflow: hidden;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sgkb-admin-attachment-item span,
.sgkb-admin-attachment-empty {
  color: #746f68;
  font-size: 12px;
}

.sgkb-admin-attachment-item button {
  min-height: 32px;
  padding: 6px 10px;
}

.sgkb-admin-editor-audit {
  margin: 0;
  border-top: 1px solid rgba(232, 218, 198, 0.72);
  color: #746f68;
  font-size: 12px;
  font-weight: 700;
  padding-top: 8px;
}

.sgkb-admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.sgkb-admin-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.sgkb-admin-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.sgkb-admin-checks input {
  width: auto;
}

.sgkb-admin-settings {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(199, 167, 126, 0.28);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 252, 246, 0.9);
  box-shadow: 0 14px 34px rgba(57, 45, 31, 0.08);
}

.sgkb-admin-settings > div {
  border: 1px solid rgba(199, 167, 126, 0.22);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.45);
}

.sgkb-admin-user-management {
  display: grid;
  gap: 10px;
}

.sgkb-admin-user-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 12px;
  align-items: start;
}

.sgkb-admin-user-list {
  max-height: 520px;
}

.sgkb-admin-user-card {
  gap: 8px;
}

.sgkb-admin-user-card__main,
.sgkb-admin-user-card__meta {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.sgkb-admin-user-card__main {
  flex-direction: column;
  gap: 2px;
}

.sgkb-admin-user-card__main strong,
.sgkb-admin-user-card__main em,
.sgkb-admin-user-card__meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sgkb-admin-user-card__main em {
  max-width: 100%;
  color: #6f6a61;
  font-size: 12px;
  font-style: normal;
}

.sgkb-admin-user-card__meta {
  align-items: center;
  color: #6f6a61;
  font-size: 12px;
}

.sgkb-admin-user-chip {
  flex: 0 0 auto;
  border: 1px solid rgba(48, 105, 76, 0.22);
  border-radius: 999px;
  background: rgba(234, 244, 232, 0.88);
  color: #265c44;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
}

.sgkb-admin-user-chip[data-status="invited"] {
  border-color: rgba(173, 126, 52, 0.28);
  background: rgba(255, 246, 226, 0.9);
  color: #805f25;
}

.sgkb-admin-user-chip[data-status="disabled"] {
  border-color: rgba(156, 65, 55, 0.2);
  background: rgba(252, 235, 232, 0.9);
  color: #913a31;
}

.sgkb-admin-user-card.is-disabled {
  opacity: 0.72;
}

.sgkb-admin-user-form {
  display: grid;
  gap: 10px;
}

.sgkb-admin-user-fields {
  grid-template-columns: minmax(160px, 0.9fr) minmax(210px, 1.2fr) minmax(150px, 0.65fr);
}

.sgkb-admin-user-hint {
  margin: 0;
  color: #746f68;
  font-size: 13px;
  line-height: 1.4;
}

.sgkb-admin-permission-grid {
  display: grid;
  gap: 10px;
}

.sgkb-admin-permission-group {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(199, 167, 126, 0.22);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 252, 246, 0.62);
}

.sgkb-admin-permission-group h3 {
  margin: 0;
  color: var(--sg-ink);
  font-size: 14px;
}

.sgkb-admin-permission-group label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5e5a51;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.sgkb-admin-permission-group input {
  width: auto;
}

@media (max-width: 900px) {
  .sgkb-admin-toolbar {
    grid-template-columns: 1fr;
  }

  .sgkb-admin-form-grid {
    grid-template-columns: 1fr;
  }

  .sgkb-admin-user-grid,
  .sgkb-admin-user-fields {
    grid-template-columns: 1fr;
  }

  .sgkb-admin-tabs {
    width: 100%;
  }
}

.sgkb-admin-versions,
.sgkb-admin-report-list {
  display: grid;
  gap: 8px;
  border: 1px solid var(--sg-border);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.72);
  padding: 12px;
}

.sgkb-admin-version-row {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(232, 218, 198, 0.72);
  padding-top: 8px;
}

.sgkb-admin-version-row button {
  border: 1px solid var(--sg-border);
  border-radius: 999px;
  background: rgba(34, 50, 39, 0.06);
  color: var(--sg-ink);
  cursor: pointer;
  font-weight: 900;
  padding: 6px 10px;
}

.sgkb-admin-report {
  display: grid;
  gap: 12px;
}

.sgkb-admin-history {
  gap: 8px;
}

.sgkb-admin-history-row {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(199, 167, 126, 0.22);
  border-radius: 8px;
  background: rgba(255, 252, 246, 0.7);
  padding: 10px;
}

.sgkb-admin-history-row strong {
  color: var(--sg-ink);
  font-size: 14px;
}

.sgkb-admin-history-row span,
.sgkb-admin-history-row em {
  color: #5f5a52;
  font-size: 12px;
}

.sgkb-admin-translation-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sgkb-admin-translation-health {
  display: inline-flex;
  max-width: 100%;
  margin: 8px 0 10px;
  padding: 7px 10px;
  border: 1px solid rgba(34, 50, 39, 0.14);
  border-radius: 8px;
  background: rgba(34, 50, 39, 0.06);
  color: var(--sg-ink);
  font-size: 0.88rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sgkb-admin-translation-health[data-status="auth_required"],
.sgkb-admin-translation-health[data-status="error"],
.sgkb-admin-translation-health[data-status="timeout"] {
  border-color: rgba(169, 62, 40, 0.28);
  background: rgba(169, 62, 40, 0.08);
}

.sgkb-admin-translation-card {
  border: 1px solid var(--sg-border);
  border-radius: 999px;
  background: rgba(34, 50, 39, 0.06);
  color: var(--sg-ink);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 10px;
}

.sgkb-admin-translation-controls {
  display: grid;
  gap: 10px;
}

.sgkb-admin-translation-controls label {
  display: grid;
  gap: 5px;
  color: #5e5a51;
  font-weight: 800;
}

.sgkb-admin-translation-controls input,
.sgkb-admin-translation-controls select {
  border: 1px solid var(--sg-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--sg-ink);
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
}

.sgkb-admin-report-list h3,
.sgkb-admin-versions h3 {
  margin: 0;
}

.sgkb-admin-report-list p,
.sgkb-admin-versions p,
.sgkb-admin-version-row span {
  margin: 0;
  color: #5f5a52;
  font-size: 14px;
}

.sgkb-admin-settings h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.sgkb-admin-settings p {
  margin: 0 0 5px;
  color: #5e5a51;
  line-height: 1.4;
}

.sgkb-admin-status {
  min-height: 22px;
  margin: 10px 2px 0;
  color: #746f68;
  font-weight: 700;
}

.sgkb-admin-status.is-error {
  color: #ad3b32;
}

body.sgkb-admin-page::before {
  opacity: 0.025;
}

body.sgkb-admin-page.sgkb-embedded .sgkb-admin-shell,
body.sgkb-admin-page:has(.sgkb-admin-shell) .sgkb-admin-shell {
  max-width: 1180px;
}

@media (max-width: 960px) {
  .sgkb-admin-key {
    display: none;
  }

  .sgkb-start {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sgkb-admin-layout {
    grid-template-columns: 1fr;
  }

  .sgkb-admin-toolbar {
    grid-template-columns: 1fr;
  }

  .sgkb-admin-tabs {
    width: 100%;
  }

  .sgkb-admin-tabs button {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .sgkb-shell {
    width: min(100% - 10px, 1120px);
    padding: 8px 0 24px;
  }

  .sgkb-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 8px;
  }

  .sgkb-header img {
    width: 48px;
  }

  .sgkb-language-switch {
    margin-left: auto;
    padding: 3px;
  }

  .sgkb-language-switch button {
    padding: 5px 8px;
    font-size: 13px;
  }

  .sgkb-header p {
    font-size: 10px;
    letter-spacing: 0.06em;
  }

  .sgkb-header h1 {
    font-size: 22px;
    line-height: 1.04;
  }

  .sgkb-hero,
  .sgkb-start {
    grid-template-columns: 1fr;
  }

  body.sgkb-search-active .sgkb-results,
  body.sgkb-embed.sgkb-search-active .sgkb-results {
    grid-template-columns: 1fr;
  }

  .sgkb-hero {
    gap: 8px;
    margin-bottom: 8px;
  }

  .sgkb-hero > div,
  .sgkb-hero aside {
    padding: 10px 12px;
    min-height: 0;
  }

  .sgkb-kicker {
    margin-bottom: 5px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .sgkb-popular {
    padding: 12px;
  }

  .sgkb-hero h2 {
    font-size: 18px;
    line-height: 1.12;
  }

  .sgkb-hero aside {
    gap: 8px;
    border-left-width: 4px;
  }

  .sgkb-quick-grid {
    gap: 6px;
  }

  .sgkb-quick-order,
  .sgkb-quick-shipping {
    grid-column: auto;
    grid-row: auto;
  }

  .sgkb-quick-grid button {
    padding: 7px 8px;
    font-size: 14px;
  }

  .sgkb-search-panel {
    position: static;
    padding: 8px 0 10px;
  }

  .sgkb-search-panel input {
    padding: 11px 12px;
    font-size: 14px;
  }

  .sgkb-suggestion-list {
    grid-template-columns: 1fr;
  }

  .sgkb-card,
  .sgkb-start-card,
  .sgkb-article {
    padding: 11px 12px;
  }

  .sgkb-order-lookup {
    padding: 12px;
  }

  .sgkb-order-lookup__form {
    grid-template-columns: 1fr;
  }

  .sgkb-order-lookup__form button {
    width: 100%;
  }

  .sgkb-card strong,
  .sgkb-start-card strong {
    font-size: 15px;
  }

  .sgkb-article h2 {
    font-size: 13px;
    line-height: 1.22;
  }

  .sgkb-article p,
  .sgkb-article-sections p,
  .sgkb-article-faq p {
    font-size: 14px;
    line-height: 1.48;
  }

  .sgkb-article-sections section,
  .sgkb-article-faq details {
    padding: 10px;
  }
}
