body:has(#tree-eyes-only) {
  background: var(--asc-obsidian, #030606);
  overflow: hidden;
}

body:has(#tree-eyes-only) > footer,
body:has(#tree-eyes-only) .ascendency-atmosphere {
  display: none;
}

body:has(#tree-eyes-only) .nav-brand-logo {
  filter: none;
}

main:has(#tree-eyes-only) {
  min-height: 100vh;
}

.treeeyesonly-page {
  --toe-blue: var(--asc-blue, #119db4);
  --toe-orange: var(--asc-orange, #df6405);
  --toe-blue-rgb: var(--asc-blue-rgb, 17, 157, 180);
  --toe-orange-rgb: var(--asc-orange-rgb, 223, 100, 5);
  --toe-gold: var(--asc-gold, #d8ad62);
  --toe-text: #edf7f8;
  --toe-muted: #9bb4b6;
  --toe-panel: rgba(7, 12, 12, 0.78);
  --toe-panel-strong: rgba(7, 12, 12, 0.92);
  --toe-border: rgba(var(--toe-blue-rgb), 0.42);
  --toe-border-hot: rgba(var(--toe-orange-rgb), 0.72);
  --toe-shadow: 0 18px 46px rgba(0, 0, 0, 0.58), 0 0 28px rgba(var(--toe-blue-rgb), 0.16);
  --asc-glyph-texture: url("/new/amascut_glyph_texture_tile.png");
  position: relative;
  height: 100vh;
  overflow: hidden;
  color: var(--toe-text);
  background:
    radial-gradient(circle at 15% 10%, rgba(var(--toe-blue-rgb), 0.22), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(var(--toe-orange-rgb), 0.14), transparent 28rem),
    radial-gradient(circle at 52% 86%, rgba(var(--toe-blue-rgb), 0.10), transparent 34rem),
    #030606;
  font-family: "Ysabeau Office", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.treeeyesonly-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 50% 50%, transparent 0 66%, rgba(0, 0, 0, 0.36) 100%);
  opacity: 0.28;
}

.toe-planner-shell,
.toe-board {
  position: absolute;
  inset: 0;
}

.toe-planner-shell {
  z-index: 0;
}

.toe-board {
  overflow: hidden;
  background: #030606;
  contain: paint;
}

.toe-canvas {
  width: 100%;
  height: 100%;
  display: block;
  user-select: none;
  touch-action: none;
  cursor: default;
}

.toe-world {
  will-change: transform;
}

.toe-hit-plane {
  fill: transparent;
  pointer-events: all;
  cursor: grab;
}

.toe-hit-plane:active {
  cursor: grabbing;
}

.toe-bg-image {
  opacity: 1;
}

.toe-bg-vignette {
  fill: rgba(0, 0, 0, 0.18);
  stroke: rgba(var(--toe-blue-rgb), 0.30);
  stroke-width: 3;
}

.toe-edge {
  stroke-linecap: round;
  opacity: 0.76;
}

.toe-edge.is-unlocked {
  opacity: 0.94;
}

.toe-preview-line {
  fill: none;
  stroke-linecap: round;
  stroke-width: 5;
  stroke-dasharray: 14 12;
  opacity: 0.94;
  pointer-events: none;
}

.toe-preview-line--primary {
  stroke: rgba(255, 255, 255, 0.92);
}

.toe-preview-line--alternate {
  stroke: rgba(var(--toe-orange-rgb), 0.82);
  opacity: 0.76;
}

.toe-preview-line--remove {
  stroke: rgba(255, 66, 66, 0.90);
  opacity: 0.88;
}

.toe-node {
  cursor: pointer;
}

.toe-node-bg,
.toe-node-fg,
.toe-center-badge image {
  image-rendering: pixelated;
  pointer-events: none;
}

.toe-node-hit {
  fill: transparent;
  pointer-events: all;
  cursor: pointer;
}

.toe-node.is-locked .toe-node-bg,
.toe-node.is-locked .toe-node-fg {
  opacity: 0.56;
}

.toe-node.is-unlocked .toe-node-bg {
  opacity: 0.98;
}

.toe-node.is-selected .toe-node-bg {
  opacity: 1;
}

.toe-node.is-preview-path .toe-node-bg {
  opacity: 1;
}

.toe-node.is-preview-remove .toe-node-bg,
.toe-node.is-preview-remove .toe-node-fg {
  opacity: 0.40;
}

.toe-node-ring {
  fill: none;
  stroke-width: 4;
  pointer-events: none;
}

.toe-node-ring--search {
  stroke: rgba(var(--toe-blue-rgb), 0.95);
  opacity: 0.88;
}

.toe-center-badge {
  pointer-events: none;
}

.toe-center-badge text {
  fill: #f2f9fa;
  font: 700 28px/1 "Ysabeau Office", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, 0.92);
  stroke-width: 5px;
}

.toe-header,
.toe-command-bar,
.toe-sidebar,
.toe-tooltip,
.toe-help-panel,
.toe-toast {
  backdrop-filter: none;
}

.toe-header,
.toe-command-bar,
.toe-sidebar,
.toe-tooltip,
.toe-help-panel,
.toe-admin-card,
.toe-confirm-card {
  border: 1px solid var(--toe-border);
  background:
    linear-gradient(135deg, rgba(8, 13, 13, 0.93), rgba(16, 21, 20, 0.80)),
    var(--asc-glyph-texture, none) center / 520px 520px;
  box-shadow: var(--toe-shadow), inset 0 0 32px rgba(0, 0, 0, 0.58);
  border-radius: 8px;
}

.toe-header {
  position: absolute;
  z-index: 12;
  top: 0;
  left: 0;
  right: 0;
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(270px, 410px) minmax(300px, 1fr);
  align-items: center;
  gap: 32px;
  padding: 12px 32px;
  overflow: hidden;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  transition: transform 170ms ease, opacity 170ms ease;
}

.toe-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 50%, rgba(var(--toe-orange-rgb), 0.11), transparent 18%),
    radial-gradient(circle at 36% 42%, rgba(var(--toe-blue-rgb), 0.14), transparent 26%),
    linear-gradient(90deg, transparent 0 21%, rgba(var(--toe-blue-rgb), 0.20) 21.2% 21.45%, transparent 21.8%);
  opacity: 0.86;
}

.toe-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  font: 400 24px/1 "Aboreto", Georgia, serif;
  letter-spacing: 0.13em;
  text-shadow: var(--textured-text, 0 2px 6px rgba(0, 0, 0, 0.8));
  position: relative;
  z-index: 1;
}

.toe-logo-link img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.toe-title-block {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.toe-title-block h1 {
  margin: 0;
  color: #fff;
  font: 400 38px/1 "Aboreto", Georgia, serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(var(--toe-blue-rgb), 0.38);
}

.toe-command-bar {
  position: absolute;
  z-index: 12;
  top: 88px;
  left: 0;
  right: 0;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(300px, 520px) auto max-content;
  align-items: center;
  gap: 14px;
  padding: 10px 32px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  transition: transform 170ms ease, opacity 170ms ease;
}

.toe-search-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(var(--toe-blue-rgb), 0.32);
  border-radius: 8px;
  background: rgba(2, 6, 6, 0.56);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.48);
}

.toe-search-shell span {
  color: var(--toe-blue);
  font-size: 13px;
  font-weight: 700;
}

.toe-search-shell input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #f5fbfb;
  background: transparent;
  font: 15px/1.2 "Ysabeau Office", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.toe-search-shell input::placeholder {
  color: rgba(237, 247, 248, 0.46);
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 7px;
  border: 1px solid rgba(var(--toe-blue-rgb), 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(237, 247, 248, 0.76);
  font: 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.toe-build-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--toe-muted);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.toe-build-summary strong {
  color: #fff;
  text-shadow: 0 0 12px rgba(var(--toe-blue-rgb), 0.48);
}

.toe-build-name {
  max-width: 220px;
  overflow: hidden;
  padding: 5px 10px;
  border: 1px solid rgba(var(--toe-blue-rgb), 0.32);
  border-radius: 999px;
  color: #f4fbfb;
  text-overflow: ellipsis;
  background: rgba(4, 11, 12, 0.52);
}

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

.treeeyesonly-page button {
  min-height: 34px;
  border: 1px solid rgba(var(--toe-blue-rgb), 0.66);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 35, 40, 0.96), rgba(var(--toe-blue-rgb), 0.76) 52%, rgba(var(--toe-orange-rgb), 0.82)),
    var(--asc-glyph-texture, none) center / 360px 360px;
  color: #fff;
  padding: 0 13px;
  font: 700 14px/1 "Ysabeau Office", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.42),
    0 0 16px rgba(var(--toe-blue-rgb), 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.82);
}

.treeeyesonly-page button:hover {
  border-color: var(--toe-border-hot);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.52),
    0 0 22px rgba(var(--toe-blue-rgb), 0.28),
    0 0 20px rgba(var(--toe-orange-rgb), 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

.treeeyesonly-page button[aria-pressed="true"] {
  border-color: rgba(var(--toe-orange-rgb), 0.92);
  background:
    linear-gradient(135deg, rgba(var(--toe-orange-rgb), 0.88), rgba(7, 35, 40, 0.96) 62%, rgba(var(--toe-blue-rgb), 0.78)),
    var(--asc-glyph-texture, none) center / 360px 360px;
  color: #fff7e8;
}

.toe-sidebar {
  position: absolute;
  z-index: 12;
  top: 166px;
  right: 28px;
  bottom: 28px;
  width: min(398px, calc(100vw - 36px));
  padding: 16px;
  overflow: auto;
  transition: transform 180ms ease, opacity 180ms ease;
}

.treeeyesonly-page.is-sidebar-hidden .toe-sidebar {
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 28px));
}

.toe-panel-toggle {
  position: absolute;
  z-index: 14;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.toe-panel-toggle--effects {
  top: 156px;
  right: 28px;
}

.treeeyesonly-page.is-sidebar-hidden .toe-panel-toggle--effects {
  opacity: 1;
  pointer-events: auto;
}

.toe-sidebar__header {
  padding: 4px 2px 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(var(--toe-blue-rgb), 0.20);
}

.toe-sidebar h2 {
  margin: 0;
  color: #fff;
  font: 400 24px/1 "Aboreto", Georgia, serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.toe-sidebar__header p {
  margin: 8px 0 0;
  color: var(--toe-muted);
  font-size: 15px;
  line-height: 1.35;
}

.toe-effects {
  display: grid;
  gap: 12px;
}

.toe-effect-category {
  border: 1px solid rgba(var(--toe-blue-rgb), 0.24);
  border-radius: 8px;
  background: rgba(2, 6, 6, 0.42);
  padding: 13px;
}

.toe-effect-category h3 {
  margin: 0 0 10px;
  font: 700 14px/1 "Ysabeau Office", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--toe-blue);
}

.toe-effect-category--melee h3 { color: #ff6b6b; }
.toe-effect-category--magic h3 { color: #67b9ff; }
.toe-effect-category--range h3 { color: #79bf74; }
.toe-effect-category--thrall h3 { color: #c09dff; }
.toe-effect-category--utility h3 { color: var(--toe-gold); }

.toe-effect-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(var(--toe-blue-rgb), 0.12);
}

.toe-effect-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.toe-effect-row h4 {
  margin: 0 0 4px;
  color: #f5fbfb;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 700;
}

.toe-effect-row p {
  margin: 0;
  color: var(--toe-muted);
  font-size: 14px;
  line-height: 1.35;
}

.toe-effect-row strong {
  color: var(--toe-gold);
  font-size: 18px;
  line-height: 1;
}

.toe-tooltip {
  position: absolute;
  z-index: 16;
  width: 306px;
  padding: 13px 14px;
  pointer-events: none;
}

.toe-tooltip h2 {
  margin: 0 0 7px;
  color: #fff;
  font: 400 20px/1.1 "Aboreto", Georgia, serif;
  letter-spacing: 0.03em;
}

.toe-tooltip p {
  margin: 0 0 10px;
  color: #e9f4f5;
  font-size: 14px;
  line-height: 1.35;
}

.toe-tooltip span,
.toe-tooltip strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(237, 247, 248, 0.70);
}

.toe-tooltip strong {
  color: #8ee9f2;
}

.toe-help-trigger {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 14;
  width: 38px;
  min-height: 38px;
  border-radius: 50%;
  padding: 0;
}

.toe-help-panel {
  position: absolute;
  left: 18px;
  bottom: 64px;
  z-index: 14;
  width: 286px;
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.toe-help-trigger:hover + .toe-help-panel,
.toe-help-panel:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toe-help-panel h2 {
  margin: 0 0 8px;
  color: #fff;
  font: 400 18px/1 "Aboreto", Georgia, serif;
}

.toe-help-panel p {
  margin: 7px 0;
  color: #e9f4f5;
  font-size: 13px;
  line-height: 1.35;
}

.toe-toast {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 20;
  padding: 10px 14px;
  border: 1px solid rgba(var(--toe-orange-rgb), 0.54);
  border-radius: 8px;
  background: rgba(7, 12, 12, 0.92);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.48), 0 0 18px rgba(var(--toe-orange-rgb), 0.22);
}

.toe-admin-modal,
.toe-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.64);
}

.toe-admin-card,
.toe-confirm-card {
  width: min(520px, calc(100vw - 32px));
  padding: 26px;
  border-radius: 18px;
}

.toe-admin-card__header,
.toe-admin-card__actions,
.toe-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.toe-admin-card__header {
  justify-content: space-between;
}

.toe-admin-card h2,
.toe-confirm-card h2 {
  margin: 0;
  color: #fff;
  font: 400 28px/1 "Aboreto", Georgia, serif;
}

.toe-admin-card label,
.toe-share-field {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  color: var(--toe-blue);
  font-weight: 700;
}

.toe-admin-card input,
.toe-admin-card textarea,
.toe-share-field input {
  width: 100%;
  border: 1px solid rgba(var(--toe-blue-rgb), 0.32);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  color: #f5fbfb;
  padding: 10px;
  font: 15px/1.35 "Ysabeau Office", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.toe-confirm-card p {
  margin: 10px 0 18px;
  color: var(--toe-muted);
  font-size: 16px;
  line-height: 1.4;
}

.toe-share-card {
  width: min(620px, calc(100vw - 32px));
}

.toe-share-field input[readonly] {
  color: rgba(245, 251, 251, 0.78);
  cursor: text;
}

.toe-load-error {
  margin: 40px;
  padding: 20px;
  border: 1px solid rgba(255, 107, 107, 0.5);
  border-radius: 8px;
  background: rgba(60, 15, 15, 0.55);
  color: #ffd1d1;
}

@media (max-width: 1280px) {
  .toe-command-bar {
    grid-template-columns: minmax(300px, 1fr) auto;
  }

  .toe-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 1120px) {
  .toe-sidebar {
    top: auto;
    left: 28px;
    right: 28px;
    bottom: 28px;
    width: auto;
    max-height: 38vh;
  }
}

@media (max-width: 860px) {
  body:has(#tree-eyes-only) {
    overflow: hidden;
  }

  .toe-header {
    grid-template-columns: minmax(220px, 320px) minmax(220px, 1fr);
  }

  .toe-title-block h1 {
    font-size: 33px;
  }

  .toe-command-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .toe-actions,
  .toe-build-summary {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .toe-sidebar {
    max-height: 44vh;
  }
}

@media (max-width: 560px) {
  .toe-header,
  .toe-command-bar {
    left: 0;
    right: 0;
  }

  .toe-header {
    top: 0;
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    padding: 18px;
  }

  .toe-header::before {
    background:
      radial-gradient(circle at 20% 24%, rgba(var(--toe-orange-rgb), 0.12), transparent 30%),
      radial-gradient(circle at 68% 72%, rgba(var(--toe-blue-rgb), 0.14), transparent 42%);
  }

  .toe-logo-link {
    gap: 12px;
    font-size: 20px;
  }

  .toe-logo-link img {
    width: 56px;
    height: 56px;
  }

  .toe-title-block h1 {
    font-size: 31px;
  }

  .toe-command-bar {
    top: 150px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .toe-search-shell {
    grid-template-columns: auto 1fr;
  }

  .toe-search-shell kbd {
    display: none;
  }

  .toe-sidebar {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
}
