.awstl-root {
  --awstl-panel: rgba(20, 22, 26, 0.92);
  --awstl-ink: #eef3f8;
  --awstl-muted: #bcc6d0;
  --awstl-line: rgba(255, 255, 255, 0.07);
  --awstl-line-strong: rgba(255, 255, 255, 0.14);
  --awstl-accent-strong: #e0c289;
  --awstl-danger: #ff9c72;
  --awstl-danger-soft: rgba(164, 70, 47, 0.18);
  --awstl-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  --awstl-radius-xl: 28px;
  --awstl-radius-lg: 20px;
  --awstl-radius-md: 14px;
  --awstl-font-display: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
  --awstl-font-body: "Manrope", "Segoe UI", sans-serif;
  --awstl-tier-ss: #7f1d1d;
  --awstl-tier-s: #b45309;
  --awstl-tier-a: #25603f;
  --awstl-tier-b: #1d4f91;
  --awstl-tier-c: #5b5f97;
  --awstl-tier-d: #475569;
  background: transparent;
  color: var(--awstl-ink);
  font-family: var(--awstl-font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.awstl-root,
.awstl-root *,
.awstl-root *::before,
.awstl-root *::after {
  box-sizing: border-box;
}

.awstl-root img {
  display: block;
  max-width: 100%;
}

.awstl-root button,
.awstl-root input,
.awstl-root textarea {
  font: inherit;
}

.awstl-root button {
  border: 0;
}

.awstl-root .awstl-shell {
  width: 100%;
  margin: 0;
  padding: 28px 20px 48px;
}

.awstl-root .awstl-hero,
.awstl-root .awstl-board-panel,
.awstl-root .awstl-editor-sticky,
.awstl-root .awstl-archive-panel,
.awstl-root .awstl-saved-panel {
  background: var(--awstl-panel);
  border: 1px solid var(--awstl-line);
  box-shadow: var(--awstl-shadow);
  backdrop-filter: blur(14px);
}

.awstl-root .awstl-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  padding: 18px 22px;
  border-radius: var(--awstl-radius-xl);
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(29, 31, 35, 0.94) 0%, rgba(20, 22, 26, 0.98) 100%);
}

.awstl-root .awstl-hero::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(200, 169, 107, 0.16), rgba(200, 169, 107, 0));
  pointer-events: none;
}

.awstl-root .awstl-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 28%),
    repeating-linear-gradient(90deg, transparent 0, transparent 72px, rgba(255, 255, 255, 0.018) 72px, rgba(255, 255, 255, 0.018) 73px);
  opacity: 0.45;
  pointer-events: none;
}

.awstl-root .awstl-eyebrow,
.awstl-root .awstl-section-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  color: var(--awstl-accent-strong);
}

.awstl-root .awstl-hero-title,
.awstl-root .awstl-panel-title,
.awstl-root .awstl-selected-character-name {
  margin: 0;
  font-family: var(--awstl-font-display);
}

.awstl-root .awstl-hero-title {
  font-size: clamp(22px, 2.8vw, 32px);
  line-height: 1;
  max-width: 16ch;
}

.awstl-root .awstl-hero-text,
.awstl-root .awstl-panel-note,
.awstl-root .awstl-muted-copy,
.awstl-root .awstl-validation-copy,
.awstl-root .awstl-archive-card-count {
  color: var(--awstl-muted);
}

.awstl-root .awstl-hero-text {
  max-width: 54ch;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.awstl-root .awstl-hero-actions,
.awstl-root .awstl-meta-field {
  display: grid;
}

.awstl-root .awstl-hero-actions {
  gap: 16px;
  align-content: start;
}

.awstl-root .awstl-meta-field {
  gap: 8px;
}

.awstl-root .awstl-meta-field span,
.awstl-root .awstl-summary-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--awstl-muted);
}

.awstl-root .awstl-meta-field input,
.awstl-root .awstl-meta-static,
.awstl-root .awstl-role-chip,
.awstl-root .awstl-option-chip,
.awstl-root .awstl-action-btn,
.awstl-root .awstl-source-card,
.awstl-root .awstl-archive-card,
.awstl-root .awstl-note-field textarea,
.awstl-root .awstl-role-switcher,
.awstl-root .awstl-score-summary > div,
.awstl-root .awstl-criteria-card {
  border: 1px solid var(--awstl-line);
  background: linear-gradient(180deg, rgba(35, 37, 42, 0.92) 0%, rgba(25, 27, 31, 0.98) 100%);
  color: var(--awstl-ink);
}

.awstl-root .awstl-meta-field input,
.awstl-root .awstl-meta-static {
  min-height: 52px;
  padding: 14px 16px;
  border-radius: var(--awstl-radius-md);
}

.awstl-root .awstl-meta-static {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.awstl-root .awstl-meta-field input:focus-visible,
.awstl-root .awstl-note-field textarea:focus-visible,
.awstl-root .awstl-source-card:focus-visible,
.awstl-root .awstl-tier-card:focus-visible,
.awstl-root .awstl-archive-card:focus-visible,
.awstl-root .awstl-action-btn:focus-visible,
.awstl-root .awstl-role-chip:focus-visible,
.awstl-root .awstl-option-chip:focus-visible {
  outline: 2px solid rgba(224, 194, 137, 0.34);
  outline-offset: 3px;
}

.awstl-root .awstl-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 0.95fr);
  gap: 22px;
  margin-top: 22px;
  align-items: start;
}

.awstl-root .awstl-board-panel,
.awstl-root .awstl-archive-panel,
.awstl-root .awstl-saved-panel,
.awstl-root .awstl-scoring-guide-panel {
  border-radius: var(--awstl-radius-xl);
  padding: 24px;
  background: linear-gradient(180deg, rgba(29, 31, 35, 0.94) 0%, rgba(20, 22, 26, 0.98) 100%);
}

.awstl-root .awstl-editor-sticky {
  position: sticky;
  top: 20px;
  border-radius: var(--awstl-radius-xl);
  padding: 12px;
}

.awstl-root .awstl-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
}

.awstl-root .awstl-panel-heading-tight {
  margin-top: 30px;
}

.awstl-root .awstl-panel-title {
  font-size: 21px;
}

.awstl-root .awstl-panel-note {
  max-width: 44ch;
  margin: 6px 0 0;
  line-height: 1.5;
}

.awstl-root .awstl-source-grid,
.awstl-root .awstl-tier-columns,
.awstl-root .awstl-criteria-list,
.awstl-root .awstl-archive-list,
.awstl-root .awstl-tier-threshold-list,
.awstl-root .awstl-role-guide-list {
  display: grid;
}

.awstl-root .awstl-source-grid { grid-template-columns: repeat(auto-fill, minmax(106px, 1fr)); gap: 12px; }
.awstl-root .awstl-tier-columns,
.awstl-root .awstl-criteria-list,
.awstl-root .awstl-tier-threshold-list,
.awstl-root .awstl-role-guide-list { gap: 12px; }
.awstl-root .awstl-criteria-list { gap: 10px; }
.awstl-root .awstl-archive-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

.awstl-root .awstl-source-card,
.awstl-root .awstl-tier-card,
.awstl-root .awstl-archive-card,
.awstl-root .awstl-action-btn,
.awstl-root .awstl-role-chip,
.awstl-root .awstl-option-chip {
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, background-color 150ms ease, opacity 150ms ease;
}

.awstl-root .awstl-source-card,
.awstl-root .awstl-tier-card,
.awstl-root .awstl-archive-card {
  width: 100%;
  text-align: left;
  border-radius: var(--awstl-radius-md);
  cursor: pointer;
}

.awstl-root .awstl-source-card { padding: 10px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04); }

.awstl-root .awstl-source-card:hover,
.awstl-root .awstl-tier-card:hover,
.awstl-root .awstl-archive-card:hover,
.awstl-root .awstl-action-btn:hover,
.awstl-root .awstl-role-chip:hover,
.awstl-root .awstl-option-chip:hover {
  transform: translateY(-2px);
}

.awstl-root .awstl-source-card.is-selected,
.awstl-root .awstl-tier-card.is-selected {
  border-color: rgba(224, 194, 137, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 3px rgba(200, 169, 107, 0.16);
}

.awstl-root .awstl-source-card.is-added { border-color: rgba(148, 163, 184, 0.28); }
.awstl-root .awstl-source-card.is-added .awstl-source-frame,
.awstl-root .awstl-source-card.is-added .awstl-source-image { filter: grayscale(1) saturate(0.2) brightness(0.78); }
.awstl-root .awstl-source-card.is-added .awstl-source-name { color: #9ca3af; }

.awstl-root .awstl-source-frame {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: calc(var(--awstl-radius-md) - 2px);
  background: linear-gradient(180deg, #1d2024, #151719);
}

.awstl-root .awstl-source-count-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(17, 19, 22, 0.92);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.22);
}

.awstl-root .awstl-source-count-badge[hidden] { display: none; }

.awstl-root .awstl-source-image,
.awstl-root .awstl-tier-card-image,
.awstl-root .awstl-selected-character img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.awstl-root .awstl-source-name,
.awstl-root .awstl-tier-card-name {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
}

.awstl-root .awstl-source-name { color: var(--awstl-ink); text-align: center; }

.awstl-root .awstl-tier-column {
  border-radius: var(--awstl-radius-lg);
  border: 1px solid var(--awstl-line);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(23, 25, 29, 0.92) 0%, rgba(15, 16, 19, 0.98) 100%);
}

.awstl-root .awstl-tier-column-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #ffffff;
}

.awstl-root .awstl-tier-column[data-tier="SS"] .awstl-tier-column-header { background: linear-gradient(135deg, var(--awstl-tier-ss), #b91c1c); }
.awstl-root .awstl-tier-column[data-tier="S"] .awstl-tier-column-header { background: linear-gradient(135deg, var(--awstl-tier-s), #ea580c); }
.awstl-root .awstl-tier-column[data-tier="A"] .awstl-tier-column-header { background: linear-gradient(135deg, var(--awstl-tier-a), #3b8d5c); }
.awstl-root .awstl-tier-column[data-tier="B"] .awstl-tier-column-header { background: linear-gradient(135deg, var(--awstl-tier-b), #3b82f6); }
.awstl-root .awstl-tier-column[data-tier="C"] .awstl-tier-column-header { background: linear-gradient(135deg, var(--awstl-tier-c), #818cf8); }
.awstl-root .awstl-tier-column[data-tier="D"] .awstl-tier-column-header { background: linear-gradient(135deg, var(--awstl-tier-d), #94a3b8); }

.awstl-root .awstl-tier-column-header strong { font-size: 16px; font-family: var(--awstl-font-display); }

.awstl-root .awstl-tier-column-body {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(106px, 1fr));
  gap: 10px;
  padding: 14px;
  min-height: 120px;
}

.awstl-root .awstl-tier-column-empty,
.awstl-root .awstl-archive-empty { margin: 0; color: var(--awstl-muted); font-size: 14px; }

.awstl-root .awstl-tier-card {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--awstl-line);
  background: #111111;
  aspect-ratio: 1 / 1;
  box-shadow: 0 14px 28px rgba(20, 20, 20, 0.14);
}

.awstl-root .awstl-tier-card-image { position: absolute; inset: 0; }

.awstl-root .awstl-tier-card-role,
.awstl-root .awstl-tier-card-score,
.awstl-root .awstl-tier-card-name,
.awstl-root .awstl-tier-card-remove {
  position: absolute;
  z-index: 1;
}

.awstl-root .awstl-tier-card-remove {
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(127, 29, 29, 0.88);
  color: #fff5f5;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 120ms ease, transform 120ms ease, background-color 120ms ease;
}

.awstl-root .awstl-tier-card:hover .awstl-tier-card-remove,
.awstl-root .awstl-tier-card:focus-within .awstl-tier-card-remove { opacity: 1; }

.awstl-root .awstl-tier-card-remove:hover,
.awstl-root .awstl-tier-card-remove:focus-visible { background: rgba(185, 28, 28, 0.96); transform: scale(1.06); outline: none; }

.awstl-root .awstl-tier-card-role,
.awstl-root .awstl-tier-card-score {
  bottom: 8px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.awstl-root .awstl-tier-card-role { left: 8px; max-width: calc(100% - 50px); }
.awstl-root .awstl-tier-card-score { right: 8px; background: rgba(17, 19, 22, 0.82); color: #ffffff; max-width: 34px; min-width: 30px; text-align: center; text-transform: uppercase; }
.awstl-root .awstl-tier-card-name { display: none; }

.awstl-root .awstl-mode-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 190, 77, 0.12);
  color: var(--awstl-accent-strong);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.awstl-root .awstl-empty-state {
  padding: 10px 12px;
  border-radius: var(--awstl-radius-lg);
  border: 1px dashed var(--awstl-line-strong);
  background: rgba(255, 255, 255, 0.03);
  line-height: 1.35;
  margin-bottom: 10px;
}

.awstl-root .awstl-empty-state p { margin: 0; font-size: 11px; }

.awstl-root .awstl-editor-form { display: grid; gap: 8px; margin-top: 8px; }

.awstl-root .awstl-selected-character {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  align-items: center;
}

.awstl-root .awstl-selected-character img { aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; }
.awstl-root .awstl-selected-character img[hidden] { display: none; }
.awstl-root .awstl-selected-character-name { font-size: 17px; }
.awstl-root .awstl-selected-character .awstl-muted-copy { margin: 2px 0 0; font-size: 11px; line-height: 1.25; }

.awstl-root .awstl-score-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.awstl-root .awstl-score-summary > div { padding: 6px 8px; }
.awstl-root .awstl-score-summary strong { display: block; margin-top: 2px; font-size: 15px; font-family: var(--awstl-font-display); }
.awstl-root .awstl-summary-label { font-size: 10px; letter-spacing: 0.1em; }

.awstl-root .awstl-role-switcher,
.awstl-root .awstl-criteria-card { padding: 8px; border-radius: var(--awstl-radius-lg); }

.awstl-root .awstl-role-switcher { margin: 0; }
.awstl-root .awstl-role-switcher legend { padding: 0 8px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--awstl-muted); }

.awstl-root .awstl-role-options,
.awstl-root .awstl-option-set {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.awstl-root .awstl-option-set[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.awstl-root .awstl-option-set[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.awstl-root .awstl-role-chip,
.awstl-root .awstl-option-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 6px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
}

.awstl-root .awstl-role-chip:hover,
.awstl-root .awstl-role-chip:focus-visible { border-color: color-mix(in srgb, var(--role-accent) 65%, white 15%); box-shadow: 0 0 0 3px color-mix(in srgb, var(--role-accent) 20%, transparent); }

.awstl-root .awstl-role-chip.is-active,
.awstl-root .awstl-option-chip.is-active { border-color: rgba(224, 194, 137, 0.82); background: rgba(200, 169, 107, 0.14); color: var(--awstl-accent-strong); }
.awstl-root .awstl-role-chip[data-role="DPS"].is-active { border-color: rgba(239, 68, 68, 0.9); background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
.awstl-root .awstl-role-chip[data-role="Sub"].is-active { border-color: rgba(139, 92, 246, 0.9); background: rgba(139, 92, 246, 0.16); color: #c4b5fd; }
.awstl-root .awstl-role-chip[data-role="Support"].is-active { border-color: rgba(46, 196, 166, 0.9); background: rgba(46, 196, 166, 0.16); color: #7de5cf; }

.awstl-root .awstl-criteria-title,
.awstl-root .awstl-criteria-card p { margin: 0; }
.awstl-root .awstl-criteria-title-wrap { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.awstl-root .awstl-criteria-title { font-size: 12px; line-height: 1.2; }
.awstl-root .awstl-criteria-info { position: relative; flex: 0 0 auto; }

.awstl-root .awstl-criteria-info-button {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(224, 194, 137, 0.28);
  background: rgba(200, 169, 107, 0.12);
  color: var(--awstl-accent-strong);
  cursor: help;
  font-size: 9px;
  font-weight: 800;
  padding: 0;
}

.awstl-root .awstl-criteria-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(220px, 60vw);
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--awstl-line-strong);
  background: rgba(11, 12, 14, 0.98);
  color: var(--awstl-muted);
  font-size: 11px;
  line-height: 1.35;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 120ms ease, transform 120ms ease;
  z-index: 5;
}

.awstl-root .awstl-criteria-info:hover .awstl-criteria-tooltip,
.awstl-root .awstl-criteria-info:focus-within .awstl-criteria-tooltip { opacity: 1; transform: translateY(0); }

.awstl-root .awstl-criteria-head { display: flex; justify-content: space-between; gap: 8px; align-items: start; margin-bottom: 6px; }
.awstl-root .awstl-criteria-points { padding: 3px 6px; border-radius: 999px; background: rgba(255, 190, 77, 0.12); font-size: 10px; font-weight: 700; white-space: nowrap; }
.awstl-root .awstl-validation-copy { min-height: 18px; margin: 0; font-size: 11px; }

.awstl-root .awstl-note-field { display: grid; gap: 6px; }
.awstl-root .awstl-note-field span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--awstl-muted); }
.awstl-root .awstl-note-field textarea { width: 100%; min-height: 58px; resize: vertical; padding: 9px 10px; border-radius: 12px; font-size: 12px; line-height: 1.4; }

.awstl-root .awstl-button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.awstl-root .awstl-button-row-footer { justify-content: flex-end; }

.awstl-root .awstl-action-btn { min-height: 32px; padding: 7px 12px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 11px; }
.awstl-root .awstl-action-btn-primary { color: #0b0b0b; background: linear-gradient(135deg, #ffb347 0%, #ffd166 100%); border-color: rgba(255, 190, 77, 0.34); }
.awstl-root .awstl-action-btn-danger { background: var(--awstl-danger-soft); color: var(--awstl-danger); border-color: rgba(164, 70, 47, 0.18); }
.awstl-root .awstl-action-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.awstl-root .awstl-archive-panel,
.awstl-root .awstl-saved-panel,
.awstl-root .awstl-scoring-guide-panel { margin-top: 22px; }

.awstl-root .awstl-archive-card { display: grid; gap: 8px; padding: 18px; }
.awstl-root .awstl-archive-card-name { font-size: 18px; font-family: var(--awstl-font-display); font-weight: 700; }
.awstl-root .awstl-archive-card-date { font-size: 14px; color: var(--awstl-accent-strong); font-weight: 700; }

.awstl-root .awstl-guide-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.awstl-root .awstl-guide-card { border: 1px solid var(--awstl-line); border-radius: var(--awstl-radius-lg); background: linear-gradient(180deg, rgba(23, 25, 29, 0.92) 0%, rgba(15, 16, 19, 0.98) 100%); padding: 18px; }
.awstl-root .awstl-guide-card-title { margin: 0 0 14px; font-size: 20px; font-family: var(--awstl-font-display); }

.awstl-root .awstl-tier-threshold-item,
.awstl-root .awstl-role-guide-item { border: 1px solid var(--awstl-line); border-radius: 14px; background: rgba(255, 255, 255, 0.03); padding: 12px 14px; }
.awstl-root .awstl-tier-threshold-item strong,
.awstl-root .awstl-role-guide-item strong { font-size: 16px; }
.awstl-root .awstl-tier-threshold-item span { display: inline-block; margin-left: 10px; color: var(--awstl-muted); font-size: 13px; font-weight: 700; }
.awstl-root .awstl-tier-threshold-item p,
.awstl-root .awstl-role-guide-item p { margin: 8px 0 0; color: var(--awstl-muted); font-size: 13px; line-height: 1.5; }

.awstl-root .awstl-tier-threshold-item-ss { border-color: rgba(239, 68, 68, 0.32); }
.awstl-root .awstl-tier-threshold-item-s { border-color: rgba(249, 115, 22, 0.28); }
.awstl-root .awstl-tier-threshold-item-a { border-color: rgba(74, 222, 128, 0.28); }
.awstl-root .awstl-tier-threshold-item-b { border-color: rgba(96, 165, 250, 0.28); }
.awstl-root .awstl-tier-threshold-item-c { border-color: rgba(167, 139, 250, 0.28); }
.awstl-root .awstl-tier-threshold-item-d { border-color: rgba(148, 163, 184, 0.28); }

.awstl-root .awstl-role-guide-item header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.awstl-root .awstl-role-guide-badge { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.awstl-root .awstl-role-guide-badge-dps { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }
.awstl-root .awstl-role-guide-badge-sub { background: rgba(139, 92, 246, 0.16); color: #c4b5fd; }
.awstl-root .awstl-role-guide-badge-support { background: rgba(46, 196, 166, 0.16); color: #7de5cf; }
.awstl-root .awstl-role-guide-footnote { margin: 14px 0 0; color: var(--awstl-muted); font-size: 12px; line-height: 1.5; }

@media (max-width: 1100px) {
  .awstl-root .awstl-workspace { grid-template-columns: 1fr; }
  .awstl-root .awstl-editor-sticky { position: static; }
  .awstl-root .awstl-guide-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .awstl-root .awstl-shell { padding-top: 18px; padding-left: 12px; padding-right: 12px; }
  .awstl-root .awstl-hero,
  .awstl-root .awstl-board-panel,
  .awstl-root .awstl-editor-sticky,
  .awstl-root .awstl-archive-panel,
  .awstl-root .awstl-saved-panel,
  .awstl-root .awstl-scoring-guide-panel { padding: 18px; border-radius: 22px; }
  .awstl-root .awstl-hero { grid-template-columns: 1fr; }
  .awstl-root .awstl-panel-heading,
  .awstl-root .awstl-meta-static,
  .awstl-root .awstl-selected-character,
  .awstl-root .awstl-score-summary { grid-template-columns: 1fr; }
  .awstl-root .awstl-role-options,
  .awstl-root .awstl-option-set { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .awstl-root .awstl-panel-heading { display: grid; }
  .awstl-root .awstl-source-grid { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .awstl-root .awstl-tier-column-body { grid-template-columns: repeat(auto-fill, minmax(82px, 1fr)); }
}

.awstl-root .awstl-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.awstl-root .awstl-confirm-overlay[hidden] {
  display: none;
}

.awstl-root .awstl-confirm-box {
  width: min(420px, 90vw);
  padding: 28px 24px 22px;
  border-radius: var(--awstl-radius-xl);
  border: 1px solid var(--awstl-line-strong);
  background: linear-gradient(180deg, rgba(29, 31, 35, 0.98) 0%, rgba(17, 19, 22, 1) 100%);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.awstl-root .awstl-confirm-message {
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--awstl-ink);
}

.awstl-root .awstl-confirm-box .awstl-button-row-footer {
  justify-content: center;
}
