:root {
  --guide-shell-bg: #12151b;
  --guide-shell-surface: #1d2228;
  --guide-shell-line: #363d43;
  --guide-shell-text: #f2f0e9;
  --guide-shell-muted: #aeb7b5;
  --guide-shell-primary: #43bca0;
  --guide-shell-accent: #d7b34f;
}

.module-sitebar {
  min-height: 66px;
  border-bottom: 1px solid var(--guide-shell-line);
  color: var(--guide-shell-text);
  background: var(--guide-shell-bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
}

.module-sitebar-inner {
  width: min(1600px, 100%);
  min-height: 66px;
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin: 0 auto;
  padding: 0 28px;
}

.module-site-brand,
.module-site-search,
.module-site-nav a {
  color: inherit;
  text-decoration: none;
}

.module-site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.module-site-brand::before {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--guide-shell-primary) 48%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--guide-shell-primary) 13%, transparent);
  box-shadow: inset 3px 0 0 var(--guide-shell-primary);
  content: "";
}

.module-site-label {
  align-self: center;
  padding-left: 14px;
  border-left: 1px solid var(--guide-shell-line);
  color: var(--guide-shell-muted);
  font-size: 13px;
  white-space: nowrap;
}

.module-site-nav {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.module-site-nav::-webkit-scrollbar { display: none; }

.module-site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--guide-shell-muted);
  font-size: 14px;
  font-weight: 560;
  white-space: nowrap;
}

.module-site-nav a:hover,
.module-site-nav a:focus-visible { color: var(--guide-shell-text); outline: 0; }

.module-site-nav a.is-active { color: var(--guide-shell-text); }
.module-site-nav a.is-active::after {
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  height: 3px;
  background: var(--guide-shell-primary);
  content: "";
}

.module-site-search {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  align-self: center;
  margin-left: auto;
  padding: 0 13px;
  border: 1px solid var(--guide-shell-line);
  border-radius: 5px;
  color: var(--guide-shell-muted);
  background: var(--guide-shell-surface);
  font-size: 13px;
  white-space: nowrap;
}

.module-site-search:hover,
.module-site-search:focus-visible {
  border-color: var(--guide-shell-primary);
  color: var(--guide-shell-text);
  outline: 0;
}

body[data-module] .app-header {
  border-bottom-color: var(--guide-shell-line);
  background-color: rgba(18, 21, 27, .96);
  box-shadow: 0 7px 24px rgba(0, 0, 0, .16);
}

body[data-module] .app-header :is(button, select, input, a) { letter-spacing: 0; }

body[data-module] :is(.app-header h1, .app-header h2, .hero-panel h2, .panel-heading h2) {
  letter-spacing: 0;
}

body[data-module] :is(.tab, .language-option, .segment).is-active {
  background-color: var(--guide-shell-primary);
}

body[data-module] :is(input, select, button, a):focus-visible {
  outline: 2px solid var(--guide-shell-primary);
  outline-offset: 2px;
}

body[data-module="loot-catalog"] .hero-panel,
body[data-module="boss-timeline"] .hero-panel,
body[data-module="timeline-v1"] .hero-panel {
  border-top: 3px solid var(--guide-shell-primary);
  border-bottom-color: var(--guide-shell-line);
  background: #1a1e22;
}

body[data-module="loot-catalog"] .hero-panel h2,
body[data-module="boss-timeline"] .hero-panel h2,
body[data-module="timeline-v1"] .hero-panel h2 {
  max-width: 880px;
  font-size: clamp(25px, 2.1vw, 32px);
  line-height: 1.22;
  letter-spacing: 0;
}

body[data-module="loot-catalog"] .hero-panel,
body[data-module="boss-timeline"] .hero-panel,
body[data-module="timeline-v1"] .hero-panel {
  min-height: 0;
  padding: 24px 32px;
}

body[data-module="loot-catalog"] .dataset-summary strong,
body[data-module="boss-timeline"] .dataset-summary strong,
body[data-module="timeline-v1"] .dataset-summary strong {
  font-size: 24px;
}

body[data-module="loot-catalog"] :is(.filter-panel, .results-panel, .trinket-card),
body[data-module="boss-timeline"] :is(.panel, .switchboard, .analysis-note),
body[data-module="timeline-v1"] :is(.panel, .analysis-note) {
  border-color: var(--guide-shell-line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

body[data-module="loot-catalog"] :is(.filter-panel, .results-panel),
body[data-module="boss-timeline"] :is(.panel, .switchboard),
body[data-module="timeline-v1"] .panel {
  border-radius: 7px;
}

body[data-module="boss-timeline"] :is(.hero-panel p, .panel-heading p, .analysis-note p),
body[data-module="timeline-v1"] :is(.hero-panel p, .panel-heading p, .analysis-note p) {
  font-size: 13px;
}

body[data-module="boss-timeline"] :is(.eyebrow, .filter-kicker),
body[data-module="timeline-v1"] :is(.eyebrow, .filter-kicker) {
  font-size: 10px;
  letter-spacing: .08em;
}

body[data-module="boss-timeline"] .panel-heading h2,
body[data-module="timeline-v1"] .panel-heading h2 { font-size: 18px; }

@media (max-width: 900px) {
  .module-sitebar-inner { gap: 10px; padding-inline: 12px; }
  .module-site-label { display: none; }
  .module-site-nav { margin-left: 4px; }
  .module-site-nav a { padding-inline: 9px; font-size: 12px; }
  .module-site-nav a.is-active::after { right: 9px; left: 9px; }
  body[data-module="loot-catalog"] .hero-panel,
  body[data-module="boss-timeline"] .hero-panel,
  body[data-module="timeline-v1"] .hero-panel { padding: 20px; }
}

@media (max-width: 620px) {
  .module-sitebar-inner { min-height: 54px; }
  .module-sitebar { min-height: 54px; }
  .module-site-brand { font-size: 13px; }
  .module-site-brand::before { width: 30px; height: 30px; }
  .module-site-nav { margin-left: auto; }
  .module-site-nav a { padding-inline: 7px; font-size: 11px; }
  .module-site-search { display: none; }
}
