@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700;800&display=swap');

:root {
  --bg-dark: #161B22;
  --bg-nav: #0D1117;
  --bg-card: #212830;
  --bg-subcard: #181E24;
  --bg-hover: #2D3748;

  --border-main: #30363D;
  --border-accent: #38BDF8;

  --text-main: #FFFFFF;
  --text-muted: #8B949E;
  --text-dim: #6E7681;

  --c-cyan: #38BDF8;
  --c-orange: #F97316;
  --c-purple: #A855F7;
  --c-yellow: #EAB308;
  --c-red: #EF4444;
  --c-green: #22C55E;
  --c-pink: #EC4899;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
}

.site-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.75rem;
  background-color: var(--bg-nav);
  border-bottom: 2px solid var(--border-main);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.nav-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--border-main);
  border-radius: 6px;
  background: var(--bg-card);
  color: var(--text-main);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-menu-toggle-bars,
.nav-menu-toggle-bars::before,
.nav-menu-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  position: relative;
}

.nav-menu-toggle-bars::before,
.nav-menu-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-menu-toggle-bars::before { top: -5px; }
.nav-menu-toggle-bars::after { top: 5px; }

.nav-center-tabs {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.nav-sidebar-overlay {
  display: none;
}

.nav-sidebar {
  display: none;
}

@media (max-width: 992px) {
  .nav-center-tabs {
    position: static;
    transform: none;
    margin: 0 auto;
  }
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

a.site-btn.nav-tab-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-badge {
  background-color: var(--c-cyan);
  color: #0D1117;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0 1rem;
  height: 38px;
  border-radius: 6px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.nav-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.site-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  color: var(--text-main);
  padding: 0 1rem;
  height: 38px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
  transition: all 0.15s ease;
}

.site-btn:hover {
  background-color: var(--bg-subcard);
  border-color: var(--c-cyan);
}

.admin-floating-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  background-color: var(--bg-card);
  color: var(--c-yellow);
  border: 1px solid var(--border-main);
  padding: 0.55rem 1.1rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.admin-floating-btn:hover {
  border-color: var(--c-yellow);
  background-color: var(--bg-subcard);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7);
}

.btn-upload {
  background-color: var(--c-cyan);
  color: #0D1117;
  border: none;
}

.btn-upload:hover {
  opacity: 0.9;
}

.site-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 2vw, 2.25rem);
}

.runs-needed-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0 0 0.9rem;
  padding: 0.7rem 1rem;
  background: var(--bg-nav);
  border: 1px solid var(--border-main);
  border-radius: 8px;
}

.runs-needed-icon {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--c-yellow);
  flex-shrink: 0;
}

.runs-needed-text {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
  text-align: center;
  flex: 1;
  min-width: 0;
}

.discord-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #5865F2;
  color: #fff;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.45);
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.discord-fab img {
  width: 1.7rem;
  height: auto;
  display: block;
  pointer-events: none;
}

.discord-fab:hover,
.discord-fab:focus-visible {
  background: #4752C4;
  transform: scale(1.06);
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.6);
  outline: none;
}

.discord-fab:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .discord-fab {
    transition: none;
  }

  .discord-fab:hover,
  .discord-fab:focus-visible {
    transform: none;
  }
}

.runs-needed-link {
  color: var(--c-cyan);
  font-weight: 800;
  text-decoration: underline;
}

.runs-needed-link:hover {
  color: #7dd3fc;
}

@media (min-width: 1600px) {
  .site-navbar {
    padding-left: clamp(1.75rem, 2.5vw, 3rem);
    padding-right: clamp(1.75rem, 2.5vw, 3rem);
  }

  .site-container {
    max-width: min(1760px, calc(100vw - 3.5rem));
    padding-top: 1.65rem;
    padding-bottom: 1.65rem;
  }

  .site-chart-card {
    padding: 1.4rem 1.5rem;
  }

  .runs-needed-banner {
    padding: 0.85rem 1.35rem;
  }

  .runs-needed-text {
    font-size: 0.98rem;
  }
}

@media (min-width: 1920px) {
  .site-container {
    max-width: min(1960px, calc(100vw - 4.5rem));
    padding-top: 1.85rem;
    padding-bottom: 1.85rem;
  }

  .site-chart-card {
    padding: 1.5rem 1.65rem;
  }
}

.site-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.site-char-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.site-char-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(33, 40, 48, 0.9) 0%, rgba(24, 30, 36, 0.95) 100%);
  min-height: 90px;
  position: relative;
  overflow: hidden;
}

.site-char-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.site-char-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}

.site-char-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.site-char-portrait {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.site-char-wengine-box {
  background-color: var(--bg-subcard);
  border-top: 1px solid var(--border-main);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-wengine-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.site-wengine-meta {
  display: flex;
  flex-direction: column;
}

.site-wengine-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.site-wengine-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.site-discs-stack {
  margin-left: auto;
  display: flex;
  gap: 4px;
}

.site-disc-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.site-meta-bar {
  background-color: var(--bg-nav);
  border: 1px solid var(--border-main);
  border-radius: 6px;
  padding: 0.6rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
}

.site-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-badge-val {
  color: var(--c-cyan);
  font-weight: 700;
}

.site-proof-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  max-width: 10.5rem;
  min-width: 0;
  flex: 0 1 auto;
}

.site-proof-link a {
  color: var(--c-cyan);
  text-decoration: underline;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.site-proof-link.is-unlisted a {
  color: var(--c-orange);
}

.site-proof-warn {
  color: var(--c-orange);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  max-width: 14rem;
}

.site-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.site-kpi-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.site-kpi-card.border-cyan { border-top: 4px solid var(--c-cyan); }
.site-kpi-card.border-orange { border-top: 4px solid var(--c-orange); }

.site-kpi-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.site-kpi-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.site-kpi-stats {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  gap: 0.8rem;
}

.site-chart-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

.site-chart-card.stats-themed-card {
  background:
    radial-gradient(900px 380px at 8% 0%, rgba(var(--tc-accent-rgb), 0.28), transparent 58%),
    radial-gradient(700px 320px at 100% 100%, rgba(var(--tc-accent-rgb), 0.16), transparent 52%),
    var(--bg-card);
  border-color: rgba(var(--tc-accent-rgb), 0.38);
  color: var(--text-main);
}

.site-chart-card.stats-themed-card .site-chart-card {
  background: var(--bg-subcard);
  border-color: var(--border-main);
}

.site-chart-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.site-pie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.docs-enemy-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}

.docs-enemy-stats .table-wrapper {
  overflow: visible;
}

.docs-enemy-stats .custom-table,
.docs-enemy-stats .custom-table td {
  font-family: inherit;
  color: #fff;
}

.docs-enemy-stats .custom-table td:last-child {
  text-align: right;
}

.filter-bar {
  background-color: var(--bg-nav);
  border: 1px solid var(--border-main);
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  align-items: center;
}

.slider-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-end;
  width: 100%;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 200px;
}

.filter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.filter-val {
  color: var(--c-cyan);
  font-family: 'JetBrains Mono', monospace;
}

.slider-input {
  accent-color: var(--c-cyan);
  height: 5px;
  border-radius: 3px;
  background: var(--border-main);
  outline: none;
  cursor: pointer;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--c-cyan);
}

.checkbox-input {
  width: 16px;
  height: 16px;
  accent-color: var(--c-cyan);
  cursor: pointer;
}

.tc-tooltip-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tc-tooltip-box {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: 100%;
  margin-top: 10px;
  right: 0;
  width: 340px;
  background-color: #0F141C;
  border: 1px solid var(--c-cyan);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  padding: 1rem;
  z-index: 1000;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.55;
}

.tc-tooltip-box::after {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  right: 0;
  height: 15px;
  background: transparent;
}

.tc-tooltip-box::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 28px;
  width: 10px;
  height: 10px;
  background-color: #0F141C;
  border-left: 1px solid var(--c-cyan);
  border-top: 1px solid var(--c-cyan);
  transform: rotate(45deg);
  z-index: 1;
}

.tc-tooltip-wrapper:hover .tc-tooltip-box,
.tc-tooltip-box:hover {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.tc-tooltip-header {
  font-weight: 800;
  color: var(--c-cyan);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-main);
  padding-bottom: 0.35rem;
}

.tc-tooltip-section {
  margin-bottom: 0.6rem;
  color: #fff;
}

.tc-tooltip-note {
  color: var(--c-yellow);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.tc-tooltip-reason {
  color: var(--text-muted);
  font-size: 0.76rem;
  margin-bottom: 0.5rem;
}

.tc-tooltip-reason strong {
  color: var(--c-orange);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid var(--border-main);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.custom-table th {
  background-color: var(--bg-nav);
  color: var(--c-cyan);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-main);
  text-transform: uppercase;
  font-size: 0.75rem;
}

.custom-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-main);
  background-color: var(--bg-card);
  color: #fff;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 17, 23, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background-color: var(--bg-nav);
  border: 1px solid var(--c-cyan);
  width: 90%;
  max-width: 600px;
  border-radius: 12px;
  padding: 1.75rem;
}

.dropzone {
  border: 2px dashed var(--border-main);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  background-color: var(--bg-card);
  cursor: pointer;
  margin-bottom: 1.25rem;
}

.dropzone:hover {
  border-color: var(--c-cyan);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.form-control {
  width: 100%;
  padding: 0.65rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 6px;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  box-sizing: border-box;
}

select.form-control {
  cursor: pointer;
}

.form-control[readonly],
.form-control:disabled {
  cursor: default;
  opacity: 1;
  color: #fff;
}

.form-control:focus {
  outline: none;
  border-color: var(--c-cyan);
}

.btn-primary {
  background-color: var(--c-cyan);
  color: #0D1117;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  width: 100%;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.btn-primary:hover {
  opacity: 0.9;
}

.agent-filter-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-main);
  width: 100%;
}

.archive-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-main);
  width: 100%;
}

.agent-select-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1;
  min-width: 250px;
}

.agent-select-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.agent-multi-select {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  color: var(--text-main);
  border-radius: 6px;
  padding: 0.65rem;
  font-size: 0.85rem;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.35;
  width: 100%;
  cursor: pointer;
  box-sizing: border-box;
}

.agent-multi-select:focus {
  outline: none;
  border-color: var(--c-cyan);
}

.active-agent-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.agent-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.agent-tag-inc {
  background: rgba(56, 189, 248, 0.15);
  color: var(--c-cyan);
  border: 1px solid var(--c-cyan);
}

.agent-tag-exc {
  background: rgba(249, 115, 22, 0.15);
  color: var(--c-orange);
  border: 1px solid var(--c-orange);
}

.agent-tag:hover {
  opacity: 0.8;
}

@keyframes pulseGlow {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; text-shadow: 0 0 16px var(--c-cyan); }
  100% { transform: scale(1); opacity: 0.8; }
}

@keyframes loadingBarAnim {
  0% { left: -100%; width: 30%; }
  50% { left: 35%; width: 45%; }
  100% { left: 100%; width: 30%; }
}

@keyframes boltLoadPulse {
  0% { transform: scale(1) rotate(0deg); opacity: 0.7; text-shadow: 0 0 0 rgba(56, 189, 248, 0); }
  40% { transform: scale(1.22) rotate(-5deg); opacity: 1; text-shadow: 0 0 22px var(--c-cyan); }
  55% { transform: scale(1.16) rotate(4deg); opacity: 1; text-shadow: 0 0 28px var(--c-cyan); }
  75% { transform: scale(1.05) rotate(-2deg); opacity: 0.95; text-shadow: 0 0 14px var(--c-cyan); }
  100% { transform: scale(1) rotate(0deg); opacity: 0.7; text-shadow: 0 0 0 rgba(56, 189, 248, 0); }
}

@media (max-width: 900px) {
  .site-navbar {
    padding: 0.75rem 1rem;
    flex-wrap: nowrap;
    gap: 0.65rem;
    height: auto;
  }

  .nav-menu-toggle {
    display: inline-flex;
  }

  .nav-center-tabs {
    display: none !important;
  }

  .nav-actions {
    margin-left: auto;
    gap: 0.5rem;
  }

  .site-btn {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
  }

  .brand-badge {
    font-size: 0.8rem;
    height: 34px;
    padding: 0 0.75rem;
  }

  .nav-menu-toggle {
    width: 34px;
    height: 34px;
  }

  .nav-sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 180;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  .nav-sidebar-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(300px, 86vw);
    background: var(--bg-nav);
    border-right: 1px solid var(--border-main);
    z-index: 190;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.45);
    padding: 0.85rem 0.85rem 1.25rem;
    gap: 0.85rem;
  }

  .nav-sidebar.is-open {
    transform: translateX(0);
  }

  .nav-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--border-main);
  }

  .nav-sidebar-title {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 1px;
    color: var(--c-cyan);
    text-transform: uppercase;
  }

  .nav-sidebar-close {
    width: 34px;
    height: 34px;
    border: 1px solid var(--border-main);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
  }

  .nav-sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
  }

  .nav-side-btn {
    width: 100%;
    justify-content: flex-start;
    height: 42px;
    padding: 0 0.85rem;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
  }
}

@media (max-width: 640px) {
  .site-container {
    padding: 0.75rem 0.5rem;
  }

  .site-navbar {
    padding: 0.65rem 0.5rem;
  }

  .filter-bar {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .runs-needed-banner {
    gap: 0.45rem;
    align-items: flex-start;
  }

  .runs-needed-text {
    font-size: 0.82rem;
  }

  .discord-fab {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 3.1rem;
    height: 3.1rem;
  }

  .discord-fab img {
    width: 1.5rem;
  }

  .slider-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .slider-group {
    min-width: 100%;
    width: 100%;
  }

  .agent-filter-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .agent-select-group {
    min-width: 100%;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .site-team-grid {
    grid-template-columns: 1fr;
  }

  .site-char-card {
    padding: 0.65rem 0.75rem;
  }

  .site-char-name {
    font-size: 0.9rem;
  }

  .site-wengine-title {
    font-size: 0.8rem;
  }

  .site-pie-grid {
    grid-template-columns: 1fr;
  }

  .docs-enemy-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .site-meta-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .site-meta-bar > div:last-child {
    margin-left: 0 !important;
  }

  .modal-card {
    width: 95%;
    padding: 1.25rem;
    max-height: 90vh;
    overflow-y: auto;
  }

  .dropzone {
    padding: 1.25rem 0.75rem;
  }

  .table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .custom-table th, .custom-table td {
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
  }

  .site-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.tier-list-page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.tier-chart-card {
  overflow: hidden;
}

.tier-chart-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 280px;
}

.tier-chart-tooltip {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  max-width: min(340px, calc(100vw - 16px));
  padding: 12px 14px;
  background-color: #0F141C;
  border: 1px solid #30363D;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.85);
  color: #E6EDF3;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-wrap;
  transition: opacity 0.12s ease;
}

.tier-chart-tooltip-title {
  color: #38BDF8;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 6px;
  white-space: normal;
}

.tier-chart-tooltip-body {
  color: #E6EDF3;
}

.tier-chart-tooltip-gap {
  height: 0.45em;
}

.tier-chart-tooltip-foot {
  margin-top: 8px;
  color: #8B949E;
  font-size: 11px;
  font-weight: 600;
}

.tier-chart-wrap canvas {
  max-width: 100%;
}

.tier-legend .tier-legend-item,
button.tier-legend-item {
  max-width: 100%;
}

.tier-intro h2 {
  line-height: 1.25;
  word-break: break-word;
}

.tier-meta-row {
  row-gap: 0.45rem;
}

@media (max-width: 900px) {
  .tier-intro {
    padding: 1.1rem !important;
  }

  .tier-intro h2 {
    font-size: 1.2rem !important;
  }

  .tier-intro p {
    font-size: 0.82rem !important;
    line-height: 1.45;
  }

  .tier-chart-card {
    padding: 0.85rem !important;
  }

  .tier-chart-wrap {
    height: 480px !important;
  }

  .tier-chart-wrap.support {
    height: 520px !important;
  }

  .archive-toggle-row {
    align-items: flex-start !important;
  }

  .tc-tooltip-box {
    width: min(340px, calc(100vw - 2rem)) !important;
    left: 0;
    right: auto;
  }
}

@media (max-width: 640px) {
  .tier-list-page {
    gap: 1rem !important;
  }

  .tier-intro {
    padding: 0.85rem !important;
  }

  .tier-intro h2 {
    font-size: 1.05rem !important;
    margin-bottom: 0.35rem !important;
  }

  .tier-intro p {
    display: block;
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0.5rem !important;
  }

  .tier-meta-row {
    gap: 0.55rem 0.85rem !important;
    font-size: 0.72rem !important;
  }

  .tier-meta-hint {
    display: inline;
  }

  .tier-chart-card {
    padding: 0.45rem !important;
  }

  .tier-chart-wrap {
    height: 360px !important;
  }

  .tier-chart-wrap.support {
    height: 380px !important;
  }

  .tier-legend {
    gap: 0.45rem !important;
    justify-content: flex-start !important;
  }

  button.tier-legend-item {
    padding: 0.28rem 0.55rem !important;
    font-size: 0.75rem !important;
  }

  .filter-group {
    min-width: 100%;
  }

  .agent-select-group {
    min-width: 100% !important;
  }
}

.tc-mock-page {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin-bottom: 2.5rem;
}

.tc-mock-option {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tc-mock-option-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: baseline;
}

.tc-mock-option-tag {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: var(--c-yellow);
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
}

.tc-mock-option-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.tc-mock-frame {
  overflow-x: auto;
  padding: 0.75rem;
  background: var(--bg-nav);
  border: 1px dashed var(--border-main);
  border-radius: 10px;
}

.tc-mock-frame.portrait {
  display: flex;
  justify-content: center;
}

.tc-export-canvas {
  --tc-accent: #38BDF8;
  --tc-accent-ink: #0D1117;
  --tc-accent-rgb: 56, 189, 248;
  --tc-canvas-bg: #161B22;
  --tc-panel-bg: #0D1117;
  --tc-card-bg: #212830;
  --tc-hover-bg: #2D3748;
  --tc-border: #30363D;
  --tc-text: #FFFFFF;
  --tc-muted: #8B949E;
  --tc-dim: #6E7681;
  background:
    radial-gradient(900px 380px at 8% 0%, rgba(var(--tc-accent-rgb), 0.42), transparent 58%),
    radial-gradient(700px 320px at 100% 100%, rgba(var(--tc-accent-rgb), 0.24), transparent 52%),
    var(--tc-canvas-bg);
  border: 1px solid var(--tc-border);
  border-radius: 12px;
  color: var(--tc-text);
  font-family: 'Inter', sans-serif;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.tc-export-canvas.tc-theme-site {
  background: var(--tc-canvas-bg);
}

.tc-export-brand {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 1px;
  color: var(--tc-accent);
}

.tc-export-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--tc-text);
  margin-top: 0.2rem;
}

.tc-export-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  margin-top: 0.32rem;
}

.tc-export-social {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--tc-text);
  line-height: 1;
}

.tc-export-social-icon {
  width: 12px;
  height: 12px;
  color: var(--tc-accent);
  display: inline-flex;
  flex-shrink: 0;
}

.tc-export-social-icon svg {
  width: 12px;
  height: 12px;
  display: block;
}

.tc-axis-chip {
  display: inline-flex;
  margin-top: 0.45rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--tc-accent-ink);
  background: var(--tc-accent);
  border-radius: 4px;
  padding: 0.18rem 0.5rem;
}

.tc-axis-chip.multi {
  background: var(--c-orange);
}

.tc-mock-boss {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin: 0.85rem 0;
  padding: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 8px;
}

.tc-mock-boss.compact {
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  margin: 0.65rem 0;
  padding: 0.55rem;
}

.tc-mock-boss-art {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 1px solid var(--border-main);
  background: linear-gradient(145deg, var(--tc-hover-bg), var(--tc-panel-bg));
  position: relative;
  overflow: hidden;
  display: block;
}

.tc-mock-boss.compact .tc-mock-boss-art {
  width: 72px;
  height: 72px;
}

.tc-mock-boss-placeholder {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 1px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tc-mock-boss-name {
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.tc-mock-boss-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.tc-mock-boss-line strong {
  color: var(--text-main);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
}

.tc-mock-team-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.tc-mock-agent-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  min-width: 160px;
}

.tc-mock-portrait {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  background: transparent;
}

.tc-mock-portrait.mini {
  width: 28px;
  height: 28px;
}

.tc-mock-portrait.col {
  width: 36px;
  height: 36px;
}

.tc-mock-agent-name {
  font-weight: 800;
  font-size: 0.82rem;
}

.tc-mock-agent-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.tc-mock-shared-gear {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
}

.tc-mock-gear-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.tc-mock-gear-img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: none;
  object-fit: contain;
  background: transparent;
}

.tc-mock-gear-img.compact {
  width: 28px;
  height: 28px;
}

.tc-mock-subs {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.tc-mock-subs.compact {
  font-size: 0.65rem;
  line-height: 1.35;
}

.tc-mock-shared-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 0.75rem;
  margin-bottom: 0.35rem;
}

.tc-strip-canvas {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-width: 1180px;
  width: 100%;
  max-width: 100%;
  min-height: 320px;
}

.tc-iv-strip.tc-strip-canvas {
  min-height: 0;
  align-items: stretch;
}

.tc-strip-meta {
  padding: 0.85rem;
  border-right: 1px solid var(--tc-border);
  background: var(--tc-panel-bg);
  border-radius: 12px 0 0 12px;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.tc-strip-meta .tc-mock-boss {
  min-width: 0;
}

.tc-strip-meta .tc-mock-boss-meta {
  min-width: 0;
  flex: 1;
}

.tc-strip-meta .tc-mock-boss-name,
.tc-strip-meta .tc-mock-boss-line {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tc-strip-meta .tc-mock-boss-line {
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
}

.tc-strip-team-mini {
  display: none;
}

.tc-strip-team-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  width: 100%;
  margin-top: 0.15rem;
  align-items: start;
  justify-items: center;
}

.tc-strip-team-img {
  width: 100%;
  max-width: 64px;
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: none;
  background: transparent;
  display: block;
  align-self: start;
  flex-shrink: 0;
}

.tc-strip-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  height: 100%;
  min-height: 0;
  align-self: stretch;
}

.tc-strip-cols.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tc-strip-cols.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tc-strip-cols.cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tc-strip-cols.cols-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.tc-strip-cols.cols-7 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.tc-strip-cols.cols-8 {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.tc-strip-col {
  padding: 0.75rem 0.55rem;
  border-right: 1px solid var(--tc-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  text-align: center;
  min-height: 0;
  height: 100%;
  background: rgba(var(--tc-accent-rgb), 0.04);
}

.tc-strip-col:nth-child(even) {
  background: rgba(var(--tc-accent-rgb), 0.09);
}

.tc-strip-col:last-child {
  border-right: none;
}

.tc-strip-col.baseline {
  background: rgba(var(--tc-accent-rgb), 0.16);
}

.tc-iv-col {
  padding: 0.65rem 0.5rem 0.75rem;
}

.tc-iv-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  max-width: 100%;
  font-size: 1.05rem;
  color: var(--tc-text);
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.15rem 0.25rem;
  line-height: 1.25;
  text-align: center;
  order: 0;
}

.tc-iv-chip.inline {
  vertical-align: middle;
  margin: 0 0.15rem;
  font-size: 0.86rem;
  color: var(--c-orange);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 999px;
  padding: 0.26rem 0.7rem;
}

.tc-iv-chip-prefix {
  display: none;
}

.tc-iv-chip strong {
  color: var(--tc-text);
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.tc-iv-hero {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  order: 1;
}

.tc-iv-hero-ms {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 4.08rem;
  letter-spacing: -1px;
  color: var(--tc-text);
  line-height: 1;
  text-shadow: 0 0 24px rgba(var(--tc-accent-rgb), 0.35);
}

.tc-iv-hero-agent img,
.tc-iv-hero-item img {
  width: min(142px, 94%);
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.tc-iv-hero-agent img {
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
}

.tc-iv-hero-team {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 0;
  padding: 0.2rem 0;
}

.tc-team-stack-img {
  width: min(83px, 76%);
  aspect-ratio: 1 / 1;
  height: auto;
  max-height: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: none;
  background: transparent;
  display: block;
  flex-shrink: 0;
}

.tc-iv-strip .tc-export-title {
  font-size: 1.5rem;
}

.tc-iv-strip .tc-mock-shared-label {
  font-size: 0.84rem;
}

.tc-iv-strip .tc-const-list {
  font-size: 0.84rem;
  gap: 0.55rem;
}

.tc-iv-strip .tc-mock-boss-name {
  font-size: 1.14rem;
}

.tc-iv-strip .tc-mock-boss-line {
  font-size: 0.94rem;
}

.tc-iv-strip-teammates .tc-iv-chip {
  max-width: 100%;
}

.tc-iv-strip-teammates .tc-iv-chip strong {
  white-space: normal;
  text-overflow: clip;
  line-height: 1.25;
  font-size: 0.95rem;
}

.tc-titles-compact .tc-iv-chip,
.tc-titles-compact .tc-iv-chip strong,
.tc-titles-compact .tc-iv-name-label {
  font-size: 0.68rem !important;
  line-height: 1.2;
}

.tc-iv-hero-subs {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 2.15rem;
  line-height: 1.15;
  color: var(--tc-text);
  text-align: center;
  padding: 0.35rem;
  letter-spacing: -0.5px;
}

.tc-iv-hero-d456 {
  flex-direction: column;
  gap: 0.55rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--tc-text);
  text-align: center;
  padding: 0.35rem;
  letter-spacing: -0.3px;
}

.tc-iv-strip-d456.tc-strip-canvas {
  min-width: 1320px;
}

.tc-iv-strip-d456 .tc-iv-col {
  padding-left: 0.3rem;
  padding-right: 0.3rem;
  overflow: hidden;
  min-width: 0;
}

.tc-iv-strip-d456 .tc-iv-hero-d456 {
  font-size: 0.86rem;
  gap: 0.28rem;
  letter-spacing: -0.15px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  align-items: stretch;
  padding: 0.15rem 0;
}

.tc-iv-strip-d456 .tc-d456-line {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.2;
  max-width: 100%;
}

.tc-iv-strip-d456 .tc-strip-cols.cols-6 .tc-iv-hero-d456,
.tc-iv-strip-d456 .tc-strip-cols.cols-7 .tc-iv-hero-d456,
.tc-iv-strip-d456 .tc-strip-cols.cols-8 .tc-iv-hero-d456 {
  font-size: 0.78rem;
  gap: 0.22rem;
}

.tc-d456-line {
  white-space: nowrap;
}

.tc-d456-num {
  color: var(--text-muted);
}

.tc-baseline-side {
  margin: 0.35rem 0 0.65rem;
  padding: 0.55rem 0.6rem;
  background: rgba(var(--tc-accent-rgb), 0.08);
  border: 1px solid rgba(var(--tc-accent-rgb), 0.35);
  border-radius: 8px;
}

.tc-baseline-side-dps {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--tc-text);
  line-height: 1.2;
}

.tc-baseline-side-label {
  margin-top: 0.25rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tc-accent);
  line-height: 1.35;
}

.tc-strip-portraits {
  display: flex;
  gap: 0.25rem;
}

.tc-strip-portraits.muted {
  opacity: 0.55;
}

.tc-mock-portrait.tiny {
  width: 22px;
  height: 22px;
  border-width: 1px;
}

.tc-strip-delta {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 1.44rem;
  line-height: 1.15;
  order: 2;
}

.tc-strip-dps {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--text-muted);
  order: 3;
}

.tc-strip-delta.up { color: var(--c-green); }
.tc-strip-delta.down { color: var(--c-orange); }
.tc-strip-delta.baseline { color: var(--tc-accent); }

.tc-const-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.45;
}

.tc-mock-boss.strip-boss {
  margin: 0.45rem 0 0.35rem;
}

.tc-strip-meta .tc-mock-shared-label {
  margin-top: 0.45rem;
}

.tc-strip-meta .tc-const-list {
  margin-bottom: 0.15rem;
}

.tc-strip-meta .tc-strip-team-row {
  margin-top: 0.25rem;
}

.tc-poster-buff-block {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.tc-poster-buff {
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.tc-poster-buff-label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--tc-accent);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
}

.tc-poster-buff-title {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--tc-text);
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.tc-poster-buff-body {
  font-size: 0.78rem;
  color: var(--text-main);
  line-height: 1.45;
}

.tc-buff-poster {
  width: 460px;
}

.tc-strip-label,
.tc-diff-chip,
.tc-strip-changed {
  display: none;
}

.tc-poster-canvas,
.tc-master-canvas {
  width: 420px;
  max-width: 100%;
  padding: 1.1rem;
}

.tc-master-canvas {
  width: 460px;
}

.tc-master-sheet {
  width: 100%;
  max-width: 100%;
  min-width: 1180px;
  padding: 1.1rem 1.15rem 0.9rem;
}

.tc-master-top {
  margin-bottom: 0.35rem;
}

.tc-master-top .tc-export-title {
  font-size: 1.55rem;
  margin-bottom: 0.55rem;
}

.tc-master-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 0.7rem 1rem;
  align-items: stretch;
}

.tc-master-top-boss .tc-mock-boss.strip-boss {
  margin-top: 0;
  height: 100%;
}

.tc-master-top-side {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(var(--tc-accent-rgb), 0.28);
  border-radius: 10px;
  background: var(--tc-panel-bg);
}

.tc-poster-buff-block.master-buffs.tc-master-top-buffs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
  margin: 0;
}

.tc-poster-buff-block.master-buffs .tc-poster-buff {
  padding: 0.55rem 0.65rem;
  min-height: 0;
}

.tc-poster-buff-block.master-buffs .tc-poster-buff-body {
  font-size: 0.76rem;
  line-height: 1.42;
}

.tc-master-team-row {
  max-width: 240px;
  margin-bottom: 0.45rem;
}

.tc-master-const-list {
  font-size: 0.8rem;
  gap: 0.4rem;
  flex: 1;
}

.tc-master-boards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.85rem;
}

.tc-master-board {
  border: 1px solid rgba(var(--tc-accent-rgb), 0.35);
  border-radius: 10px;
  background: var(--tc-panel-bg);
  overflow: hidden;
  padding: 0.15rem;
}

.tc-master-board-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem 0.5rem;
  border-bottom: 1px solid rgba(var(--tc-accent-rgb), 0.22);
}

.tc-master-board-title {
  font-weight: 800;
  font-size: 1rem;
  color: var(--tc-text);
}

.tc-master-board-axis {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--tc-accent);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.tc-board-commentary {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.tc-iv-strip-has-commentary {
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.tc-iv-strip-has-commentary .tc-strip-meta {
  border-radius: 12px 0 0 0;
}

.tc-strip-commentary {
  grid-column: 1 / -1;
  padding: 0.55rem 0.9rem 0.65rem;
  border-top: 1px solid var(--border-main);
  background: var(--tc-panel-bg);
  font-size: 0.78rem;
}

.tc-master-board-note {
  padding: 0.45rem 0.9rem 0.2rem;
  font-size: 0.78rem;
}

.tc-master-board-cols {
  min-height: 0;
  height: auto;
}

.tc-master-col {
  min-height: 0;
  height: auto;
  padding: 0.85rem 0.55rem 0.9rem;
  gap: 0.55rem;
}

.tc-iv-name-label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--tc-text);
  text-align: center;
  max-width: 100%;
  padding: 0 0.2rem;
  order: 0;
}

.tc-master-sheet .tc-iv-name-label {
  font-size: 0.82rem;
  min-height: 2.1em;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tc-master-board-teammates .tc-iv-name-label {
  font-size: 0.78rem;
  min-height: 2.6em;
  color: var(--tc-text);
}

.tc-master-board-teammates.tc-titles-compact .tc-iv-name-label {
  font-size: 0.62rem;
  min-height: 2.8em;
}

.tc-strip-cols.cols-8 .tc-iv-chip,
.tc-strip-cols.cols-8 .tc-iv-chip strong {
  font-size: 0.82rem;
}

.tc-strip-cols.cols-8 .tc-iv-hero-ms {
  font-size: 2.6rem;
}

.tc-strip-cols.cols-8 .tc-iv-hero-agent img,
.tc-strip-cols.cols-8 .tc-iv-hero-item img {
  width: min(96px, 92%);
}

.tc-strip-cols.cols-8 .tc-team-stack-img {
  width: min(58px, 78%);
}

.tc-strip-cols.cols-8 .tc-iv-hero-subs {
  font-size: 1.15rem;
}

.tc-strip-cols.cols-8 .tc-iv-hero-d456 {
  font-size: 0.82rem;
  gap: 0.2rem;
}

.tc-strip-cols.cols-8 .tc-strip-dps {
  font-size: 0.72rem;
}

.tc-strip-cols.cols-8 .tc-strip-delta {
  font-size: 1.05rem;
}

.tc-master-sheet .tc-strip-cols.cols-8 .tc-iv-name-label {
  font-size: 0.62rem;
  min-height: 2.4em;
}

.tc-master-sheet .tc-strip-cols.cols-8 .tc-iv-hero-ms {
  font-size: 1.85rem;
}

.tc-master-sheet .tc-strip-cols.cols-8 .tc-iv-hero-agent img,
.tc-master-sheet .tc-strip-cols.cols-8 .tc-iv-hero-item img {
  width: min(64px, 86%);
}

.tc-master-sheet .tc-strip-cols.cols-8 .tc-team-stack-img {
  width: min(40px, 72%);
}

.tc-master-sheet .tc-strip-cols.cols-8 .tc-iv-hero-subs {
  font-size: 1.05rem;
}

.tc-master-sheet .tc-strip-cols.cols-8 .tc-iv-hero-d456 {
  font-size: 0.78rem;
}

.tc-master-sheet .tc-strip-cols.cols-8 .tc-strip-dps {
  font-size: 0.72rem;
}

.tc-master-sheet .tc-strip-cols.cols-8 .tc-strip-delta {
  font-size: 0.92rem;
}

.tc-master-sheet .tc-iv-hero-ms {
  font-size: 2.6rem;
}

.tc-master-sheet .tc-iv-hero-agent img,
.tc-master-sheet .tc-iv-hero-item img {
  width: min(88px, 78%);
}

.tc-master-sheet .tc-team-stack-img {
  width: min(52px, 70%);
}

.tc-master-sheet .tc-iv-hero-team {
  gap: 0.3rem;
  padding: 0.1rem 0;
}

.tc-master-sheet .tc-iv-hero-subs {
  font-size: 1.45rem;
}

.tc-master-sheet .tc-iv-hero-d456 {
  font-size: 1.05rem;
  gap: 0.28rem;
}

.tc-master-sheet .tc-strip-dps {
  font-size: 0.78rem;
}

.tc-master-sheet .tc-strip-delta {
  font-size: 1.1rem;
}

.tc-master-board-teammates .tc-master-col {
  padding-top: 0.7rem;
  padding-bottom: 0.75rem;
}

.tc-poster-header {
  margin-bottom: 0.35rem;
}

.tc-poster-variants {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0.5rem 0 0.85rem;
}

.tc-poster-variants.compact {
  margin: 0.35rem 0 0.15rem;
  gap: 0.35rem;
}

.tc-poster-row {
  display: grid;
  grid-template-columns: 52px 1fr 72px 52px;
  gap: 0.45rem;
  align-items: center;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
}

.tc-poster-row.baseline {
  background: rgba(var(--tc-accent-rgb), 0.08);
  border: 1px solid rgba(var(--tc-accent-rgb), 0.25);
}

.tc-poster-row-label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--tc-accent);
}

.tc-poster-bar-track {
  height: 10px;
  background: var(--bg-subcard);
  border: 1px solid var(--border-main);
  border-radius: 999px;
  overflow: hidden;
}

.tc-poster-bar {
  height: 100%;
  background: var(--tc-accent);
  border-radius: 999px;
}

.tc-poster-row-dps {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.78rem;
  text-align: right;
}

.tc-poster-row-delta {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 0.72rem;
  text-align: right;
}

.tc-poster-row-delta.up { color: var(--c-green); }
.tc-poster-row-delta.down { color: var(--c-orange); }

.tc-poster-callout {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.45;
  padding: 0.65rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-main);
  border-radius: 8px;
}

.tc-poster-footer {
  margin-top: 0.75rem;
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
}

.tc-master-section {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(var(--tc-accent-rgb), 0.35);
}

.tc-master-section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.tc-master-section-title {
  font-weight: 800;
  font-size: 0.9rem;
}

.tc-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.tc-workspace-h2 {
  font-size: 1.45rem;
  color: #fff;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.tc-workspace-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
  max-width: 72rem;
  line-height: 1.45;
}

.tc-workspace-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
}

.tc-workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.tc-theme-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  margin-bottom: 0.75rem;
}

.tc-theme-picker-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 0.15rem;
}

.tc-theme-chip {
  appearance: none;
  border: 1px solid var(--border-main);
  background: var(--bg-card);
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  cursor: pointer;
  line-height: 1.2;
}

.tc-theme-chip.active {
  color: var(--chip-ink, #0D1117);
  background: var(--chip-accent, var(--c-cyan));
  border-color: var(--chip-accent, var(--c-cyan));
}

.tc-file-btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.tc-save-status {
  margin-top: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.tc-session-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
  margin-top: 0.45rem;
}

.tc-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.tc-field-wide {
  grid-column: 1 / -1;
}

.tc-textarea {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  line-height: 1.4;
  resize: vertical;
}

.tc-textarea-master {
  min-height: 12rem;
}

.tc-textarea-buff {
  min-height: 9rem;
  white-space: pre-wrap;
}

.tc-session-boss-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0.65rem 0.75rem;
  background: var(--bg-subcard);
  border: 1px solid var(--border-main);
  border-radius: 8px;
}

.tc-session-boss-art {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-main);
  background: #0D1117;
  position: relative;
}

.tc-session-boss-img,
.tc-mock-boss-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.tc-session-boss-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.tc-mock-boss-art {
  overflow: hidden;
  padding: 0;
}

.tc-master-top-boss .tc-mock-boss.compact.strip-boss {
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  padding: 0.6rem;
}

.tc-master-top-boss .tc-mock-boss.compact.strip-boss .tc-mock-boss-art {
  width: 100%;

  height: 220px;
  min-height: 220px;
  max-height: 220px;
  aspect-ratio: auto;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
}

.tc-master-top-boss .tc-mock-boss-img {
  object-fit: cover;
  object-position: center 25%;
}

@media (max-width: 1100px) {
  .tc-master-sheet {
    min-width: 0;
  }

  .tc-master-top-grid {
    grid-template-columns: 1fr;
  }

  .tc-poster-buff-block.master-buffs.tc-master-top-buffs {
    grid-template-columns: 1fr;
  }
}

.tc-board-tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.tc-board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tc-board-tab.active {
  color: var(--c-yellow) !important;
  border-color: var(--c-yellow) !important;
  font-weight: 800 !important;
}

.tc-board-tab-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  opacity: 0.75;
}

.tc-board-editor {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 0.9rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border-main);
}

.tc-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-main);
  padding-bottom: 0.35rem;
}

.tc-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.tc-slot-custom-img {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.15rem 0;
}

.tc-slot-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border-main);
  background: #0D1117;
  flex-shrink: 0;
}

.tc-slot-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.15;
  padding: 0.2rem;
}

.tc-session-team-block {
  margin-top: 0.85rem;
}

.tc-session-socials-block {
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-main);
}

.tc-socials-hint {
  margin: 0.3rem 0 0;
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.4;
}

.tc-social-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

.tc-social-row {
  display: grid;
  grid-template-columns: minmax(120px, 150px) minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: end;
}

.tc-social-add {
  margin-top: 0.55rem;
}

.tc-team-source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin: 0.45rem 0 0.55rem;
}

.tc-team-source-row .tc-check {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.tc-session-team-pb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.55rem;
}

.tc-run-picker {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--border-main);
}

.tc-run-picker .tc-field {
  margin: 0;
}

.tc-session-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.65rem;
  margin-top: 0.4rem;
}

.tc-session-team-slot {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.55rem 0.65rem;
  background: var(--bg-subcard);
  border: 1px solid var(--border-main);
  border-radius: 8px;
}

.tc-slot-card {
  background: var(--bg-subcard);
  border: 1px solid var(--border-main);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tc-slot-card-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: baseline;
}

.tc-slot-idx {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  color: var(--c-cyan);
  font-size: 0.8rem;
}

.tc-slot-source {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
}

.tc-slot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tc-slot-hint {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}

.tc-add-slot-btn {
  margin-top: 0.85rem;
}

.tc-empty {
  padding: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  border: 1px dashed var(--border-main);
  border-radius: 10px;
}

@media (max-width: 768px) {
  .docs-enemy-stats {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .tc-social-row {
    grid-template-columns: 1fr;
  }

  .tc-strip-canvas {
    grid-template-columns: 1fr;
    min-width: 640px;
  }

  .tc-strip-meta {
    border-right: none;
    border-bottom: 1px solid var(--border-main);
    border-radius: 12px 12px 0 0;
  }

  .tc-iv-strip-has-commentary .tc-strip-meta {
    border-radius: 12px 12px 0 0;
  }
}

.yt-thumb {
  width: 1920px;
  height: 1080px;
  box-sizing: border-box;
  padding: 36px 44px;
  background: linear-gradient(135deg, #0D1117 0%, #161B22 100%);
  color: #fff;
  font-family: 'Inter', sans-serif;
}

.yt-thumb-frame {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 32px;
  padding: 36px 44px 40px;
  border: 2px solid #30363D;
  border-radius: 28px;
  background: #161B22;
}

.yt-thumb-header {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

.yt-thumb-badge {
  flex-shrink: 0;
  background: #38BDF8;
  color: #0D1117;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
  padding: 12px 18px;
  border-radius: 12px;
}

.yt-thumb-title {
  flex: 1;
  min-width: 0;
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-thumb-site {
  flex-shrink: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 800;
  color: #38BDF8;
  letter-spacing: 0.01em;
  padding: 10px 16px;
  border: 2px solid rgba(56, 189, 248, 0.45);
  border-radius: 12px;
  background: rgba(13, 17, 23, 0.72);
}

.yt-thumb-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  min-height: 0;
}

.yt-thumb-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  padding: 26px 28px;
  background: #212830;
  border: 1px solid #30363D;
  border-radius: 20px;
}

.yt-thumb-card-top {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
  min-height: 0;
}

.yt-thumb-portrait-wrap {
  position: relative;
  flex-shrink: 0;
  width: 280px;
  height: 280px;
  border-radius: 22px;
  border: 4px solid #38BDF8;
  background: #0D1117;
  overflow: hidden;
}

.yt-thumb-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-thumb-mind {
  position: absolute;
  top: 10px;
  left: 10px;
  min-width: 52px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(13, 17, 23, 0.88);
  color: #38BDF8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.yt-thumb-card-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.yt-thumb-agent {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.1;
}

.yt-thumb-dmg {
  color: #38BDF8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 800;
}

.yt-thumb-dps {
  color: #8B949E;
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
}

.yt-thumb-gear {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: #181E24;
  border-radius: 14px;
}

.yt-thumb-gear img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.yt-thumb-gear img.yt-thumb-disc {
  width: 40px;
  height: 40px;
}

.yt-thumb-gear-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.yt-thumb-wengine {
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-thumb-discs {
  color: #8B949E;
  font-size: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yt-thumb-empty {
  color: #6E7681;
  font-size: 28px;
  margin: auto;
}

.yt-thumb-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 22px 32px;
  background: #0D1117;
  border: 1px solid #30363D;
  border-radius: 16px;
}

.yt-thumb-stat-label {
  color: #8B949E;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.yt-thumb-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
}

.yt-thumb-charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  min-height: 0;
}

.yt-thumb-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  padding: 22px 24px 24px;
  background: #212830;
  border: 1px solid #30363D;
  border-radius: 18px;
}

.yt-thumb-chart-title {
  font-size: 24px;
  font-weight: 800;
}

.yt-thumb-bars {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 12px;
  flex: 1;
  min-height: 0;
}

.yt-thumb-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yt-thumb-bar-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #0D1117;
  overflow: hidden;
  flex-shrink: 0;
}

.yt-thumb-bar-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.yt-thumb-bar-track {
  position: relative;
  flex: 1;
  height: 28px;
  border-radius: 7px;
  background: #0D1117;
  overflow: hidden;
}

.yt-thumb-bar-fill {
  height: 100%;
  border-radius: 7px;
}

.yt-thumb-bar-pct {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 800;
  color: #E6EDF3;
}

.yt-thumb--faces,
.yt-thumb--poster {
  padding: 0;
}

.yt-thumb--faces .yt-thumb-frame {
  --yt-inset: 48px;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  gap: 0;
  padding: var(--yt-inset);
}

.yt-thumb--faces .yt-thumb-header {
  align-self: center;
  align-items: center;
  min-height: 0;
  height: auto;
}

.yt-thumb-faces-result {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 44px;
  width: 100%;
}

.yt-thumb-faces-result .yt-thumb-result-item:first-child {
  justify-content: flex-end;
}

.yt-thumb-faces-result .yt-thumb-result-item:last-child {
  justify-content: flex-start;
}

.yt-thumb-result-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.yt-thumb-result-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 100px;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -3px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.yt-thumb-result-label {
  color: #8B949E;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.yt-thumb-result-divider {
  width: 4px;
  height: 78px;
  border-radius: 2px;
  background: #30363D;
}

.yt-thumb-faces-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  min-height: 0;
}

.yt-thumb-face-ring {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 36px;
}

.yt-thumb-face {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 28px;
  overflow: hidden;
  background: #0D1117;
  border: none;
}

.yt-thumb-face > img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.yt-thumb-face-name {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 32px 26px 24px;
  background: linear-gradient(transparent, rgba(13, 17, 23, 0.92) 55%);
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
}

.yt-thumb-face .yt-thumb-mind {
  z-index: 2;
  top: 20px;
  left: 20px;
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 72px;
  min-width: 0;
  padding: 5px;
  border-radius: 18px;
  letter-spacing: 0.02em;
}

.yt-thumb-mind-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 0 26px;
  border-radius: 13px;
  background: rgba(13, 17, 23, 0.88);
  font-family: 'JetBrains Mono', monospace;
  font-size: 72px;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
}

.yt-thumb-faces-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-height: 0;
  height: auto;
}

.yt-thumb--faces .yt-thumb-site {
  font-family: 'JetBrains Mono', monospace;
  font-size: 100px;
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -3px;
  color: #38BDF8;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.yt-thumb-face-bangboo {
  position: absolute;
  z-index: 3;
  bottom: 20px;
  right: 20px;
  width: 124px;
  height: 124px;
  box-sizing: border-box;
  padding: 6px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-thumb-face-bangboo-inner {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 12px;
  background: rgba(13, 17, 23, 0.85);
  overflow: hidden;
}

.yt-thumb-face-bangboo-img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.yt-thumb-face-wengine {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 20px;
  width: 124px;
  height: 124px;
  box-sizing: border-box;
  padding: 6px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.yt-thumb-face-wengine-inner {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 8px;
  border-radius: 12px;
  background: rgba(13, 17, 23, 0.85);
  overflow: hidden;
}

.yt-thumb-face-wengine-img {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.yt-thumb--poster .yt-thumb-frame {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.yt-thumb-poster-hero {
  position: relative;
  min-height: 0;
  background: #0D1117;
}

.yt-thumb-poster-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.yt-thumb-poster-hero .yt-thumb-mind {
  top: 32px;
  left: 32px;
  font-size: 42px;
  min-width: 88px;
  padding: 10px 16px;
}

.yt-thumb-poster-hero-name {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 32px;
  font-size: 72px;
  font-weight: 800;
  line-height: 0.95;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.75);
}

.yt-thumb-poster-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 48px 40px;
  background: #0D1117;
}

.yt-thumb-poster-dps {
  font-family: 'JetBrains Mono', monospace;
  font-size: 168px;
  font-weight: 800;
  color: #38BDF8;
  line-height: 0.85;
  letter-spacing: -4px;
}

.yt-thumb-poster-dps-label {
  margin-top: 8px;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #8B949E;
}

.yt-thumb-poster-score {
  margin-top: 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 64px;
  font-weight: 800;
  color: #F97316;
}

.yt-thumb-poster-supports {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: auto;
}

.yt-thumb-poster-support {
  position: relative;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid #30363D;
  background: #161B22;
}

.yt-thumb-poster-support img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.yt-thumb-poster-support .yt-thumb-mind {
  font-size: 28px;
}

.yt-thumb-poster-support-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 14px 12px;
  background: linear-gradient(transparent, rgba(13, 17, 23, 0.9));
  font-size: 28px;
  font-weight: 800;
}

.yt-thumb-poster-meta {
  margin-top: 22px;
  font-size: 28px;
  font-weight: 700;
  color: #8B949E;
}

.yt-thumb-preview-gallery {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  overflow: auto;
  background: #07090c;
  padding: 28px 32px 80px;
}

.yt-thumb-preview-gallery h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
}

.yt-thumb-preview-gallery p {
  margin: 0 0 24px;
  color: var(--text-muted);
  max-width: 52rem;
}

.yt-thumb-preview-item {
  margin-bottom: 36px;
}

.yt-thumb-preview-label {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #fff;
}

.yt-thumb-preview-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0 0 12px;
}

.yt-thumb-preview-frame {
  width: min(672px, calc(100vw - 48px));
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border-main);
  border-radius: 12px;
  background: #0D1117;
}

.yt-thumb-preview-frame .yt-thumb {
  transform-origin: top left;
}

.yt-thumb-preview-phone {
  width: 320px;
  height: 180px;
  overflow: hidden;
  border: 1px solid var(--border-main);
  border-radius: 10px;
  background: #0D1117;
  margin-top: 10px;
}

.yt-thumb-preview-phone .yt-thumb {
  transform: scale(calc(320 / 1920));
  transform-origin: top left;
}

.yt-thumb-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: flex-start;
}
