/* ========================================================================
   Sistem Sunyi — KBDS Help Center Global v1.0.2.5
   Search Clear Alignment + Five-Popup Skin Harmonization
   + Premium Light/Dark Polish

   Scope: .sskh-modal and descendants only.
   This is a clean canonical stylesheet. It intentionally replaces the
   stacked typography/density patches from v1.0.2.2.
======================================================================== */

body.sskh-open {
  overflow: hidden !important;
}

.sskh-modal,
.sskh-modal * {
  box-sizing: border-box;
}

.sskh-modal {
  --sskh-bg: #f5efe5;
  --sskh-bg-2: #fffaf2;
  --sskh-panel: rgba(255, 253, 249, .88);
  --sskh-panel-2: rgba(246, 239, 229, .82);
  --sskh-card: rgba(255, 255, 255, .72);
  --sskh-card-2: rgba(255, 255, 255, .94);
  --sskh-card-soft: rgba(255, 255, 255, .58);
  --sskh-text: #172235;
  --sskh-muted: rgba(23, 34, 53, .72);
  --sskh-soft: rgba(23, 34, 53, .52);
  --sskh-line: rgba(22, 34, 53, .12);
  --sskh-line-strong: rgba(142, 100, 42, .31);
  --sskh-gold: #8e642a;
  --sskh-gold-2: rgba(142, 100, 42, .115);
  --sskh-gold-3: rgba(142, 100, 42, .20);
  --sskh-red: #a9463f;
  --sskh-red-2: rgba(169, 70, 63, .10);
  --sskh-blue: #31577c;
  --sskh-blue-2: rgba(49, 87, 124, .11);
  --sskh-shadow: 0 34px 110px rgba(7, 14, 24, .34);
  --sskh-radius-xl: 28px;
  --sskh-radius-lg: 20px;
  --sskh-radius-md: 14px;
  --sskh-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --sskh-serif: Georgia, "Times New Roman", serif;

  position: fixed !important;
  inset: 0 !important;
  z-index: 120000 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  font-family: var(--sskh-sans) !important;
  color: var(--sskh-text) !important;
  text-rendering: optimizeLegibility;
  transition: opacity .18s ease, visibility .18s ease;
}

.sskh-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sskh-modal[hidden] {
  display: none !important;
}

.sskh-modal[data-sskh-theme="dark"],
body.ss-dark-mode .sskh-modal[data-sskh-theme="auto"],
body[data-theme="dark"] .sskh-modal[data-sskh-theme="auto"],
html[data-theme="dark"] .sskh-modal[data-sskh-theme="auto"] {
  --sskh-bg: #07111d;
  --sskh-bg-2: #101d2c;
  --sskh-panel: rgba(255, 255, 255, .070);
  --sskh-panel-2: rgba(255, 255, 255, .050);
  --sskh-card: rgba(255, 255, 255, .064);
  --sskh-card-2: rgba(255, 255, 255, .090);
  --sskh-card-soft: rgba(255, 255, 255, .046);
  --sskh-text: #f4efe6;
  --sskh-muted: rgba(244, 239, 230, .72);
  --sskh-soft: rgba(244, 239, 230, .52);
  --sskh-line: rgba(255, 255, 255, .11);
  --sskh-line-strong: rgba(204, 169, 100, .34);
  --sskh-gold: #caa766;
  --sskh-gold-2: rgba(202, 167, 102, .125);
  --sskh-gold-3: rgba(202, 167, 102, .22);
  --sskh-red: #d16a62;
  --sskh-red-2: rgba(209, 106, 98, .115);
  --sskh-blue: #8ab7dc;
  --sskh-blue-2: rgba(76, 121, 160, .18);
  --sskh-shadow: 0 38px 130px rgba(0, 0, 0, .72);
}

.sskh-modal button,
.sskh-modal input {
  font-family: var(--sskh-sans) !important;
  color: inherit !important;
  text-transform: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

.sskh-modal a {
  color: inherit;
}

/* Canonical scoped scrollbars, aligned with the five KBDS popups. */
.sskh-modal,
.sskh-modal * {
  scrollbar-width: thin;
  scrollbar-color: var(--sskh-gold) transparent;
}

.sskh-modal ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.sskh-modal ::-webkit-scrollbar-track {
  background: transparent;
}

.sskh-modal ::-webkit-scrollbar-thumb {
  background: var(--sskh-gold);
  border-radius: 999px;
}

.sskh-modal ::-webkit-scrollbar-thumb:hover {
  filter: brightness(1.12);
}

.sskh-modal ::-webkit-scrollbar-corner {
  background: transparent;
}

.sskh-backdrop {
  position: absolute;
  inset: 0;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background:
    radial-gradient(circle at 12% 8%, rgba(202, 167, 102, .18), transparent 31%),
    radial-gradient(circle at 86% 10%, rgba(76, 121, 160, .22), transparent 38%),
    radial-gradient(circle at 50% 88%, rgba(202, 167, 102, .09), transparent 34%),
    rgba(2, 7, 13, .80) !important;
  backdrop-filter: blur(14px) saturate(118%);
  -webkit-backdrop-filter: blur(14px) saturate(118%);
  cursor: pointer;
}

.sskh-shell {
  position: absolute;
  inset: 18px 12px;
  width: min(1180px, calc(100vw - 24px));
  height: calc(100dvh - 36px);
  max-height: calc(100dvh - 36px);
  margin: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--sskh-line-strong);
  border-radius: var(--sskh-radius-xl);
  background:
    radial-gradient(circle at 14% 0%, var(--sskh-gold-2), transparent 32%),
    radial-gradient(circle at 92% 10%, var(--sskh-blue-2), transparent 38%),
    radial-gradient(circle at 50% 88%, rgba(142, 100, 42, .055), transparent 36%),
    linear-gradient(145deg, var(--sskh-bg-2) 0%, var(--sskh-bg) 52%, rgba(234, 242, 247, .72) 100%);
  box-shadow: var(--sskh-shadow);
  color: var(--sskh-text);
  outline: none;
  transform: translateY(10px) scale(.988);
  transition: transform .18s ease;
}

.sskh-modal[data-sskh-theme="dark"] .sskh-shell,
body.ss-dark-mode .sskh-modal[data-sskh-theme="auto"] .sskh-shell,
body[data-theme="dark"] .sskh-modal[data-sskh-theme="auto"] .sskh-shell,
html[data-theme="dark"] .sskh-modal[data-sskh-theme="auto"] .sskh-shell {
  background:
    radial-gradient(circle at 14% 0%, rgba(202, 167, 102, .13), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(76, 121, 160, .14), transparent 38%),
    radial-gradient(circle at 50% 88%, rgba(202, 167, 102, .08), transparent 36%),
    linear-gradient(145deg, #101d2c 0%, #07111d 52%, #0a1421 100%);
}

.sskh-modal.is-open .sskh-shell {
  transform: translateY(0) scale(1);
}

/* Header: same stable two-column pattern as the other KBDS popups. */
.sskh-header {
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px 12px;
  border-bottom: 1px solid var(--sskh-line);
  background:
    radial-gradient(circle at 14% 0%, rgba(202, 167, 102, .115), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(49, 87, 124, .08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(255, 255, 255, .30));
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}

.sskh-modal[data-sskh-theme="dark"] .sskh-header,
body.ss-dark-mode .sskh-modal[data-sskh-theme="auto"] .sskh-header,
body[data-theme="dark"] .sskh-modal[data-sskh-theme="auto"] .sskh-header,
html[data-theme="dark"] .sskh-modal[data-sskh-theme="auto"] .sskh-header {
  background:
    radial-gradient(circle at 14% 0%, rgba(202, 167, 102, .11), transparent 34%),
    radial-gradient(circle at 92% 0%, rgba(76, 121, 160, .10), transparent 38%),
    linear-gradient(180deg, rgba(16, 29, 44, .97), rgba(7, 17, 29, .92));
}

.sskh-heading {
  min-width: 0;
  flex: 1 1 auto;
}

.sskh-eyebrow,
.sskh-kicker,
.sskh-side-label,
.sskh-card-kicker,
.sskh-result-type {
  display: block;
  color: var(--sskh-gold);
  font-size: 9.5px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sskh-title {
  margin: 5px 0 3px;
  max-width: 820px;
  font-family: var(--sskh-serif);
  font-size: clamp(29px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -.045em;
  font-weight: 650;
  color: var(--sskh-text);
}

.sskh-subtitle {
  max-width: 760px;
  margin: 0;
  color: var(--sskh-muted);
  font-size: 13px;
  line-height: 1.5;
}

.sskh-header-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.sskh-icon-btn {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0 !important;
  border: 1px solid var(--sskh-line) !important;
  border-radius: 999px !important;
  background: var(--sskh-card) !important;
  color: var(--sskh-text) !important;
  cursor: pointer;
  line-height: 1 !important;
}

.sskh-icon-btn:hover,
.sskh-icon-btn:focus-visible {
  border-color: var(--sskh-gold) !important;
  background: var(--sskh-gold-2) !important;
}

.sskh-close {
  font-size: 22px !important;
}

/* Context + search */
.sskh-toolbar {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  border-bottom: 1px solid var(--sskh-line);
  background: linear-gradient(180deg, var(--sskh-panel), var(--sskh-panel-2));
  backdrop-filter: blur(14px) saturate(118%);
  -webkit-backdrop-filter: blur(14px) saturate(118%);
}

.sskh-context-badge {
  min-height: 30px;
  max-width: 260px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid var(--sskh-line);
  border-radius: 999px;
  background: var(--sskh-gold-2);
  color: var(--sskh-gold);
  font-size: 10.5px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sskh-search {
  position: relative;
  display: block;
  min-width: 0;
}

.sskh-search-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 42px 10px 14px !important;
  border: 1px solid var(--sskh-line) !important;
  border-radius: 999px !important;
  outline: none !important;
  background: var(--sskh-card) !important;
  color: var(--sskh-text) !important;
  font-size: 13.5px !important;
  line-height: 1.25 !important;
}

.sskh-search-input::placeholder {
  color: var(--sskh-soft);
  opacity: 1;
}

.sskh-search-input:focus {
  border-color: var(--sskh-line-strong) !important;
  box-shadow: 0 0 0 3px var(--sskh-gold-2) !important;
}

.sskh-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--sskh-muted) !important;
  cursor: pointer;
  font-size: 16px !important;
  line-height: 1 !important;
  transform: translateY(-50%);
}

.sskh-search-clear:hover,
.sskh-search-clear:focus-visible {
  background: var(--sskh-gold-2) !important;
  color: var(--sskh-text) !important;
}

/* Main tabs */
.sskh-tabs {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  padding: 9px 22px;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid var(--sskh-line);
  background: linear-gradient(180deg, var(--sskh-panel), var(--sskh-panel-2));
  backdrop-filter: blur(12px) saturate(116%);
  -webkit-backdrop-filter: blur(12px) saturate(116%);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.sskh-tab {
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 8px 13px !important;
  border: 1px solid var(--sskh-line) !important;
  border-radius: 999px !important;
  background: var(--sskh-card) !important;
  color: var(--sskh-muted) !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 800 !important;
  letter-spacing: .04em;
  cursor: pointer;
}

.sskh-tab:hover,
.sskh-tab:focus-visible,
.sskh-tab.is-active {
  border-color: var(--sskh-line-strong) !important;
  background: var(--sskh-gold-2) !important;
  color: var(--sskh-text) !important;
}

.sskh-status {
  flex: 0 0 auto;
  min-height: 0;
  padding: 0 22px;
  color: var(--sskh-soft);
  font-size: 11px;
  line-height: 1.4;
}

.sskh-status:not(:empty) {
  padding-top: 7px;
}

/* Main split layout */
.sskh-body {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  overflow: hidden;
}

.sskh-sidebar {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--sskh-line);
  background: linear-gradient(180deg, var(--sskh-card-soft), rgba(255, 255, 255, .018));
}

.sskh-sidebar-head {
  flex: 0 0 auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--sskh-line);
}

.sskh-sidebar-head strong {
  color: var(--sskh-text);
  font-size: 13px;
  line-height: 1.2;
}

.sskh-back {
  appearance: none !important;
  min-height: 30px;
  padding: 6px 9px !important;
  border: 1px solid var(--sskh-line) !important;
  border-radius: 999px !important;
  background: var(--sskh-card) !important;
  color: var(--sskh-text) !important;
  font-size: 11.5px !important;
  line-height: 1 !important;
  cursor: pointer;
}

.sskh-back:disabled {
  opacity: .38;
  cursor: default;
}

.sskh-sidebar-content {
  min-height: 0;
  overflow: auto;
  padding: 14px 13px 18px;
}

.sskh-side-section + .sskh-side-section {
  margin-top: 18px;
}

.sskh-side-label {
  margin-bottom: 7px;
}

.sskh-side-link,
.sskh-side-current {
  appearance: none !important;
  width: 100%;
  min-height: 34px;
  margin: 0 0 5px;
  padding: 8px 10px !important;
  text-align: left;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: var(--sskh-muted) !important;
  font-size: 13px !important;
  line-height: 1.3 !important;
  cursor: pointer;
}

.sskh-side-link:hover,
.sskh-side-link:focus-visible,
.sskh-side-link.is-active {
  border-color: var(--sskh-line) !important;
  background: var(--sskh-card) !important;
  color: var(--sskh-text) !important;
}

.sskh-side-current {
  border-color: var(--sskh-line-strong) !important;
  background: var(--sskh-gold-2) !important;
  color: var(--sskh-text) !important;
}

.sskh-side-empty {
  margin: 0;
  color: var(--sskh-soft);
  font-size: 12px;
  line-height: 1.45;
}

.sskh-shortcut-row {
  display: grid;
  grid-template-columns: minmax(72px, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 6px 0;
  color: var(--sskh-muted);
  font-size: 11.5px;
  line-height: 1.35;
}

.sskh-keys {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sskh-modal kbd {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 3px 5px;
  border: 1px solid var(--sskh-line-strong);
  border-radius: 6px;
  background: var(--sskh-card-2);
  color: var(--sskh-text);
  font: 750 9.5px/1 var(--sskh-sans);
  box-shadow: inset 0 -1px 0 var(--sskh-line);
}

.sskh-side-gateways {
  padding-top: 10px;
  border-top: 1px solid var(--sskh-line);
}

.sskh-gateway-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 29px;
  padding: 6px 2px;
  color: var(--sskh-soft) !important;
  font-size: 11.5px;
  line-height: 1.35;
  text-decoration: none !important;
}

.sskh-gateway-link:hover,
.sskh-gateway-link:focus-visible {
  color: var(--sskh-gold) !important;
}

.sskh-gateway-arrow {
  flex: 0 0 auto;
  font-size: 10px;
  opacity: .8;
}

/* Content area */
.sskh-main {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 20px 22px 24px;
  background:
    radial-gradient(circle at 90% 0%, var(--sskh-blue-2), transparent 34%),
    radial-gradient(circle at 10% 100%, var(--sskh-gold-2), transparent 38%);
  scroll-behavior: smooth;
}

.sskh-panel[hidden] {
  display: none !important;
}

.sskh-guide-hero,
.sskh-detail {
  padding: 24px 26px;
  border: 1px solid var(--sskh-line);
  border-radius: var(--sskh-radius-lg);
  background:
    radial-gradient(circle at 100% 0%, var(--sskh-gold-2), transparent 38%),
    radial-gradient(circle at 0% 100%, var(--sskh-blue-2), transparent 42%),
    linear-gradient(145deg, var(--sskh-card-2), var(--sskh-card));
}

.sskh-guide-hero h3,
.sskh-detail > h3 {
  margin: 5px 0 8px;
  font-family: var(--sskh-serif);
  line-height: 1.04;
  letter-spacing: -.044em;
  font-weight: 600;
  color: var(--sskh-text);
}

.sskh-guide-hero h3 {
  font-size: clamp(30px, 3.4vw, 40px);
}

.sskh-detail > h3 {
  max-width: 920px;
  font-size: clamp(27px, 2.8vw, 32px);
  line-height: 1.07;
  letter-spacing: -.038em;
}

.sskh-page-head {
  margin-bottom: 15px;
}

.sskh-page-head h3 {
  margin: 0 0 7px;
  font-family: var(--sskh-serif);
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1.03;
  letter-spacing: -.04em;
  font-weight: 600;
  color: var(--sskh-text);
}

.sskh-page-head p {
  max-width: 860px;
  margin: 0;
  color: var(--sskh-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.sskh-lead {
  max-width: 850px;
  margin: 0;
  color: var(--sskh-muted);
  font-size: 14px;
  line-height: 1.62;
}

.sskh-callout {
  margin-top: 15px;
  padding: 13px 15px;
  border-left: 3px solid var(--sskh-gold);
  border-radius: 0 var(--sskh-radius-md) var(--sskh-radius-md) 0;
  background: var(--sskh-gold-2);
}

.sskh-callout strong {
  color: var(--sskh-text);
  font-size: 13.5px;
  line-height: 1.35;
}

.sskh-callout p,
.sskh-callout span {
  margin: 4px 0 0;
  color: var(--sskh-muted);
  font-size: 13.5px;
  line-height: 1.58;
}

.sskh-section {
  margin-top: 20px;
}

.sskh-section-head {
  margin-bottom: 9px;
}

.sskh-section-head h4 {
  margin: 0;
  color: var(--sskh-text);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 750;
}

.sskh-section-head p {
  margin: 4px 0 0;
  color: var(--sskh-soft);
  font-size: 12px;
  line-height: 1.45;
}

.sskh-text-list {
  margin: 0;
  padding-left: 20px;
  color: var(--sskh-muted);
  font-size: 13.5px;
}

.sskh-text-list li {
  margin: 0 0 7px;
  line-height: 1.58;
}

/* Category chips */
.sskh-chips {
  display: flex;
  gap: 7px;
  margin-bottom: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 5px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.sskh-chip {
  appearance: none !important;
  flex: 0 0 auto;
  min-height: 31px;
  padding: 7px 10px !important;
  border: 1px solid var(--sskh-line) !important;
  border-radius: 999px !important;
  background: var(--sskh-card) !important;
  color: var(--sskh-muted) !important;
  font-size: 11.5px !important;
  line-height: 1 !important;
  font-weight: 750 !important;
  cursor: pointer;
}

.sskh-chip:hover,
.sskh-chip:focus-visible,
.sskh-chip.is-active {
  border-color: var(--sskh-line-strong) !important;
  background: var(--sskh-gold-2) !important;
  color: var(--sskh-text) !important;
}

/* Feature cards, FAQ cards, search cards */
.sskh-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.sskh-card,
.sskh-search-result,
.sskh-faq-row {
  appearance: none !important;
  width: 100%;
  min-width: 0;
  padding: 14px 15px !important;
  text-align: left;
  border: 1px solid var(--sskh-line) !important;
  border-radius: var(--sskh-radius-md) !important;
  background: linear-gradient(145deg, var(--sskh-card-2), var(--sskh-card)) !important;
  color: var(--sskh-text) !important;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.sskh-card:hover,
.sskh-card:focus-visible,
.sskh-search-result:hover,
.sskh-search-result:focus-visible,
.sskh-faq-row:hover,
.sskh-faq-row:focus-visible {
  transform: translateY(-1px);
  border-color: var(--sskh-line-strong) !important;
  background: linear-gradient(145deg, var(--sskh-card-2), var(--sskh-gold-2)) !important;
}

.sskh-card strong,
.sskh-search-result strong,
.sskh-faq-row strong {
  display: block;
  margin: 5px 0 5px;
  color: var(--sskh-text);
  font-size: 13.5px;
  line-height: 1.32;
  font-weight: 750;
}

.sskh-card > span:last-child,
.sskh-search-result > span:last-child,
.sskh-faq-row > span:last-child {
  display: block;
  color: var(--sskh-muted);
  font-size: 12.5px;
  line-height: 1.52;
}

.sskh-faq-list,
.sskh-search-results {
  display: grid;
  gap: 9px;
}

.sskh-search-result {
  display: grid;
  grid-template-columns: 84px minmax(170px, .55fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.sskh-search-result strong {
  margin: 0;
}

.sskh-result-type {
  margin-top: 2px;
}

.sskh-answer,
.sskh-detail-text {
  color: var(--sskh-muted);
  font-size: 13.5px;
  line-height: 1.68;
  white-space: pre-line;
}

.sskh-related {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sskh-related-btn {
  min-height: 31px;
  padding: 7px 10px !important;
  border: 1px solid var(--sskh-line) !important;
  border-radius: 999px !important;
  background: var(--sskh-card) !important;
  color: var(--sskh-muted) !important;
  font-size: 11.5px !important;
  cursor: pointer;
}

.sskh-related-btn:hover,
.sskh-related-btn:focus-visible {
  border-color: var(--sskh-line-strong) !important;
  background: var(--sskh-gold-2) !important;
  color: var(--sskh-text) !important;
}

.sskh-shortcut-detail {
  display: grid;
  grid-template-columns: minmax(112px, auto) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--sskh-line);
}

.sskh-shortcut-detail strong {
  color: var(--sskh-text);
  font-size: 13.5px;
}

.sskh-shortcut-detail p {
  margin: 4px 0 0;
  color: var(--sskh-muted);
  font-size: 13px;
  line-height: 1.52;
}

/* Loading, error, empty */
.sskh-state-layer {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 64px);
}

.sskh-state-layer[hidden] {
  display: none !important;
}

.sskh-state-card,
.sskh-empty {
  max-width: 600px;
  margin: 30px auto;
  padding: 26px;
  text-align: center;
  border: 1px solid var(--sskh-line);
  border-radius: var(--sskh-radius-lg);
  background: var(--sskh-card);
}

.sskh-state-card h3,
.sskh-empty h3 {
  margin: 10px 0 7px;
  color: var(--sskh-text);
  font-family: var(--sskh-serif);
  font-size: 24px;
  line-height: 1.1;
}

.sskh-state-card p,
.sskh-empty p {
  margin: 0;
  color: var(--sskh-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.sskh-spinner {
  width: 34px;
  height: 34px;
  margin: auto;
  border: 3px solid var(--sskh-line);
  border-top-color: var(--sskh-gold);
  border-radius: 999px;
  animation: sskh-spin .8s linear infinite;
}

@keyframes sskh-spin {
  to { transform: rotate(360deg); }
}

.sskh-primary-btn {
  margin-top: 16px;
  min-height: 36px;
  padding: 8px 14px !important;
  border: 1px solid var(--sskh-line-strong) !important;
  border-radius: 999px !important;
  background: var(--sskh-gold-2) !important;
  color: var(--sskh-text) !important;
  font-size: 12px !important;
  cursor: pointer;
}

/* Footer */
.sskh-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 16px;
  border-top: 1px solid var(--sskh-line);
  background: linear-gradient(180deg, var(--sskh-panel), var(--sskh-panel-2));
  backdrop-filter: blur(12px) saturate(116%);
  -webkit-backdrop-filter: blur(12px) saturate(116%);
}

.sskh-position-note {
  max-width: 920px;
  margin: 0;
  color: var(--sskh-soft);
  font-size: 10px;
  line-height: 1.42;
}

.sskh-footer-meta {
  flex: 0 0 auto;
  color: var(--sskh-gold);
  font-size: 9.5px;
  line-height: 1;
  font-weight: 800;
}

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

/* Tablet */
@media (max-width: 1024px) {
  .sskh-shell {
    inset: 12px 10px;
    width: calc(100vw - 20px);
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 24px;
  }

  .sskh-title {
    font-size: clamp(28px, 3.6vw, 34px);
  }

  .sskh-body {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .sskh-main {
    padding: 18px 20px 22px;
  }

  .sskh-guide-hero,
  .sskh-detail {
    padding: 22px 23px;
  }

  .sskh-guide-hero h3 {
    font-size: clamp(29px, 4vw, 36px);
  }

  .sskh-detail > h3 {
    font-size: clamp(25px, 3.2vw, 30px);
  }

  .sskh-search-result {
    grid-template-columns: 76px minmax(150px, .5fr) minmax(0, 1fr);
  }
}

/* Mobile */
@media (max-width: 720px) {
  .sskh-shell {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .sskh-header {
    gap: 12px;
    padding: 13px 14px 10px;
  }

  .sskh-eyebrow {
    font-size: 9px;
  }

  .sskh-title {
    margin-top: 4px;
    font-size: clamp(25px, 7vw, 29px);
  }

  .sskh-subtitle {
    font-size: 12px;
    line-height: 1.45;
  }

  .sskh-header-actions {
    gap: 6px;
  }

  .sskh-icon-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }

  .sskh-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 9px 14px;
  }

  .sskh-context-badge {
    width: max-content;
    max-width: 100%;
  }

  .sskh-search-input {
    min-height: 42px;
    font-size: 13.5px !important;
  }

  .sskh-tabs {
    padding: 8px 14px;
  }

  .sskh-tab {
    min-height: 34px;
    font-size: 12px !important;
  }

  .sskh-status {
    padding-left: 14px;
    padding-right: 14px;
  }

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

  .sskh-sidebar {
    display: none;
  }

  .sskh-main {
    padding: 17px 18px 20px;
  }

  .sskh-guide-hero,
  .sskh-detail {
    padding: 20px 18px;
    border-radius: 17px;
  }

  .sskh-guide-hero h3 {
    font-size: clamp(26px, 7.5vw, 31px);
  }

  .sskh-detail > h3 {
    font-size: clamp(23px, 6.4vw, 27px);
    line-height: 1.08;
  }

  .sskh-page-head h3 {
    font-size: clamp(24px, 7vw, 28px);
  }

  .sskh-lead,
  .sskh-answer,
  .sskh-detail-text,
  .sskh-text-list {
    font-size: 13.5px;
  }

  .sskh-card-grid {
    grid-template-columns: 1fr;
  }

  .sskh-card strong,
  .sskh-search-result strong,
  .sskh-faq-row strong {
    font-size: 13.5px;
  }

  .sskh-card > span:last-child,
  .sskh-search-result > span:last-child,
  .sskh-faq-row > span:last-child {
    font-size: 12.5px;
  }

  .sskh-search-result {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .sskh-shortcut-detail {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .sskh-footer {
    padding: 7px 12px;
  }

  .sskh-position-note {
    max-height: 31px;
    overflow: hidden;
    font-size: 9px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .sskh-header {
    padding: 12px 12px 9px;
  }

  .sskh-title {
    font-size: 25px;
  }

  .sskh-subtitle {
    font-size: 11.75px;
  }

  .sskh-icon-btn {
    width: 33px;
    height: 33px;
    min-width: 33px;
    min-height: 33px;
  }

  .sskh-toolbar {
    padding: 8px 12px;
  }

  .sskh-tabs {
    padding: 8px 12px;
  }

  .sskh-main {
    padding: 15px 14px 18px;
  }

  .sskh-guide-hero,
  .sskh-detail {
    padding: 18px 16px;
  }

  .sskh-guide-hero h3 {
    font-size: 27px;
  }

  .sskh-detail > h3 {
    font-size: 24px;
    line-height: 1.08;
  }

  .sskh-page-head h3 {
    font-size: 25px;
  }

  .sskh-callout {
    padding: 12px 13px;
  }

  .sskh-card,
  .sskh-search-result,
  .sskh-faq-row {
    padding: 14px !important;
  }

  .sskh-footer {
    gap: 8px;
  }

  .sskh-position-note {
    font-size: 8.8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sskh-modal,
  .sskh-shell,
  .sskh-card,
  .sskh-search-result,
  .sskh-faq-row {
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .sskh-spinner {
    animation-duration: 1.8s;
  }
}
