/* Terminal del Asesor. Tres columnas, sin hero. */
.app.tool { width: min(1440px, calc(100% - 28px)); padding-top: 16px; }

.brand { letter-spacing: .06em; font-size: 13px; }
.nav { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav button { white-space: nowrap; }
.nav button.on {
  background: #241c0b;
  color: var(--accent-2, #f0c14b);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.account-box {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.pill {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}
a.go.go-sm, button.go.go-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.textbtn {
  background: none;
  border: none;
  color: var(--dim);
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
}
.textbtn:hover { color: var(--accent-2, #f0c14b); }
.bn-form { display: flex; gap: 6px; }
.bn-form input { height: 32px; width: 148px; flex: 0 0 148px; }

.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) minmax(320px, 420px);
  gap: 14px;
  align-items: start;
}
.rail, .director, .result {
  background: var(--surface, #161b24);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.rail, .result { padding: 14px; }
.director { padding: 14px 12px 12px; }

.kicker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 4px;
}
.director h2, .result h2 {
  margin: 0 0 10px;
  font-size: 18px;
  letter-spacing: -.02em;
}
.director input { width: 100%; margin-bottom: 10px; height: 38px; }
.dir-pills { margin-bottom: 12px; }
.dir-pills button.on {
  background: #241c0b;
  border-color: var(--accent);
  color: var(--accent-2, #f0c14b);
}

.group { margin-bottom: 14px; }
.group .lbl {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
}
.group .lbl span { color: var(--dim); font-weight: 500; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; }
.seg button, .flag {
  appearance: none;
  border: 1px solid var(--line);
  background: #10141b;
  color: var(--muted);
  border-radius: 8px;
  font-family: var(--f-ui);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 9px;
  cursor: pointer;
}
.seg button small {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--dim);
  font-weight: 500;
}
.seg button.on, .flag.on {
  background: #241c0b;
  border-color: var(--accent);
  color: var(--accent-2, #f0c14b);
}
.seg button:disabled, .flag:disabled { opacity: .4; cursor: not-allowed; }
.flag { border-radius: 999px; }
.flag.sh-solar.on { color: #e36b2d; border-color: #e36b2d; }
.flag.sh-arc.on { color: #79c7ff; border-color: #79c7ff; }
.flag.sh-void.on { color: #8a6bff; border-color: #8a6bff; }
.rail-note { margin: 4px 0 0; font-size: 12px; line-height: 1.45; color: var(--dim); }

.tiles { display: flex; flex-direction: column; gap: 8px; }
.tile {
  appearance: none;
  width: 100%;
  text-align: left;
  background: #10141b;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--f-ui);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.tile-top { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; }
.tile:hover { border-color: var(--line-2); }
.tile.on { background: #241c0b; border-color: var(--accent); }
.tile-fam {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}
.tile-name { font-size: 14px; font-weight: 600; }
.tile .badge.week { color: #1b1305; background: var(--accent); }
.tile-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.mini {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  padding: 2px 7px;
}
.mini.champ { color: var(--warn); background: rgba(232,103,79,.14); }
.mini.sh-solar { color: #e36b2d; }
.mini.sh-arc { color: #79c7ff; }
.mini.sh-void { color: #8a6bff; }
.muted { color: var(--dim); font-size: 12px; }
.dir-empty { color: var(--dim); font-size: 14px; padding: 12px 4px; }

.result-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.result h2 { font-size: 20px; margin: 0; }
.sub { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.score { text-align: right; }
.score b {
  display: block;
  font-size: 28px;
  letter-spacing: -.03em;
  color: var(--accent-2, #f0c14b);
  line-height: 1;
}
.score span {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
}
.score em { font-style: normal; color: var(--dim); font-size: 11px; }

.setline { margin: 12px 0 8px; font-size: 13px; color: var(--muted); }
.setline b { color: var(--text); font-weight: 600; }

.slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.slot {
  background: #10141b;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  min-width: 0;
}
.slot .sk {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--dim);
}
.slot .arch { color: var(--accent); font-size: 11px; font-weight: 600; margin-top: 3px; }
.slot .sn {
  font-size: 12px;
  font-weight: 600;
  margin-top: 2px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.slot .tier { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }

.bars { margin: 12px 0 4px; }
.wpn { display: flex; gap: 8px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--line); }
.wpn .wk { width: 72px; flex: none; color: var(--dim); font-size: 12px; font-weight: 600; }
.wpn .wn { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; }
.wpn .wp { display: block; color: var(--dim); font-size: 12px; font-weight: 500; }
.wpn .warn { color: var(--warn); font-size: 12px; font-weight: 600; }
.why { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.why span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: #241c0b;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 8px;
}
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.empty {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 24px 12px;
}
.empty h3 { margin: 0; font-size: 18px; }
.empty p { margin: 0; max-width: 36ch; color: var(--muted); font-size: 14px; line-height: 1.5; }

@media (max-width: 1099px) {
  .shell { grid-template-columns: 260px minmax(0, 1fr); }
  .result { grid-column: 1 / -1; }
  .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .rail, .result {
    position: sticky;
    top: 72px;
    max-height: calc(100vh - 88px);
    overflow: auto;
  }
}
@media (max-width: 719px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .result { grid-column: auto; position: static; max-height: none; }
  .rail { position: static; max-height: none; }
  .slots { grid-template-columns: 1fr 1fr; }
  .topbar { height: auto; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; row-gap: 8px; }
  .account-box { width: 100%; margin-left: 0; justify-content: flex-start; }
}
