/*
 * The showroom (js/modules/showroom.js): pages of the role demo. Built from the cards, KPI cells, tables and the
 * feed of the shell; here only what is its own: the guide strip, bar lists, item lists, agents and the flow.
 */
.sr-guide {
  display: flex;
  gap: var(--space-3, 12px);
  align-items: baseline;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  background: var(--surface-1);
  font-size: var(--fs-13, 13px);
  line-height: 1.5;
  color: var(--text);
}
.sr-guide-tag {
  flex: none;
  font: var(--fw-600, 600) 10.5px/1.2 var(--font-sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.sr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: var(--space-4, 16px);
  align-items: start;
}
.sr-menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: var(--space-4, 16px);
  align-items: start;
}

/* bar lists */
.sr-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sr-bars li { display: grid; grid-template-columns: minmax(72px, 34%) minmax(40px, 1fr) auto; gap: 10px; align-items: center; font-size: var(--fs-13, 13px); min-width: 0; }
.sr-bar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.sr-bar-track { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.sr-bar-fill { display: block; height: 100%; background: var(--gold); border-radius: 99px; }
.sr-bar-value { color: var(--text-muted); white-space: nowrap; font-variant-numeric: var(--numeric, tabular-nums); }

/* item lists (menu, vitrína, sources) */
.sr-items, .sr-sources { list-style: none; margin: 0; padding: 0; display: grid; }
.sr-items li, .sr-sources li {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 8px 0; border-top: 1px solid var(--line); font-size: var(--fs-13, 13px); min-width: 0;
}
.sr-items li:first-child, .sr-sources li:first-child { border-top: 0; }
.sr-items small { font-size: 12px; }
.sr-items .num { white-space: nowrap; color: var(--text-strong); font-variant-numeric: var(--numeric, tabular-nums); }
.sr-sources li { align-items: center; }
.sr-sources .muted { font-size: 12px; overflow-wrap: anywhere; }
.sr-vitrina { border-color: var(--gold); }

.sr-week { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--fs-13, 13px); color: var(--text-muted); }
.sr-day b { color: var(--text-strong); margin-right: 6px; }

/* agents */
.sr-agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--space-3, 12px); }
.sr-agent {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 14px; background: var(--surface-1); border: 1px solid var(--line); font-size: var(--fs-13, 13px);
}
.sr-agent .muted { font-size: 12px; }
.sr-agent-text { display: grid; gap: 4px; min-width: 0; }
.sr-agent-doing { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-agent-track { height: 3px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.sr-agent-fill { display: block; height: 100%; width: 0; border-radius: 99px; transition: width .5s ease; }
.sr-agent { transition: border-color .4s ease; }
.sr-agent:not([data-state="idle"]) { border-color: color-mix(in srgb, var(--agent, var(--gold)) 55%, var(--line)); }
/* the sample run: a new line slides in; only opacity and transform move */
.sr-sim-feed { min-height: 320px; align-content: start; }
.sr-sim-line { animation: sr-line-in .45s ease both; }
.sr-sim-line .sev { width: 8px; height: 8px; border-radius: 50%; }
@keyframes sr-line-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sr-sim-line { animation: none; } .sr-agent-fill { transition: none; } }

/* how it works */
.sr-flow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-4, 16px); align-items: center; }
.sr-flow-col { display: grid; gap: 8px; }
.sr-flow-h { font: var(--fw-600, 600) 10.5px/1.2 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.sr-flow-box { padding: 8px 12px; border: 1px solid var(--line); background: var(--surface-2); font-size: var(--fs-13, 13px); }
.sr-flow-box--out { border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.sr-flow-mid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.sr-flow-arrow { color: var(--gold); font-size: 20px; }
.sr-flow-log { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 18px 12px; border: 1px solid var(--gold); background: var(--gold-dim); font-size: var(--fs-13, 13px); }
.sr-flow-log b { font-size: var(--fs-16, 16px); color: var(--text-strong); }
.sr-flow-log .muted { font-size: 12px; }
@media (max-width: 820px) {
  .sr-flow { grid-template-columns: minmax(0, 1fr); }
  .sr-flow-mid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .sr-flow-arrow { transform: rotate(90deg); }
  .sr-guide { flex-direction: column; gap: 4px; }
}
