/* Test UI skin layered over production app.css (which stays untouched).
   Palette and chrome. */
:root {
  --ink: #f8f5ff; --muted: #a8a0bb; --dim: #746d84;
  --line: rgba(208, 193, 255, .16);
  --gold: #9b6cff; --gold-bright: #c9b0ff; --teal: #32e6ff; --danger: #ff6b8b;
  --bg0: #09070f; --bg1: #120d1f;
  --panel: rgba(27, 22, 43, .72);
  --lime: #b8ff5c; --violet: #9b6cff; --cyan: #32e6ff;
  --font-display: Manrope, system-ui, sans-serif;
  --font-body: Manrope, system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
body.tu {
  background:
    radial-gradient(800px 600px at 85% -10%, rgba(50,230,255,.13), transparent 60%),
    radial-gradient(900px 660px at 30% 0%, rgba(155,108,255,.19), transparent 58%),
    var(--bg0);
}
body.tu::before { opacity: .12; background-image: none; }
.testui-banner {
  position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; gap: 6px 16px;
  align-items: center; justify-content: center; padding: 7px 12px; font: 600 12px Manrope, system-ui, sans-serif;
  background: linear-gradient(90deg, rgba(155,108,255,.92), rgba(50,230,255,.85)); color: #09070f;
}
.testui-banner a { color: #09070f; }
.tu-app { display: grid; grid-template-columns: 224px minmax(0, 1fr); min-height: calc(100vh - 32px); }
.tu-side {
  position: sticky; top: 32px; height: calc(100vh - 32px); display: flex; flex-direction: column;
  padding: 20px 14px; overflow-y: auto; border-right: 1px solid var(--line);
  background: rgba(9,7,15,.66); backdrop-filter: blur(18px); z-index: 30;
}
.tu-side .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.tu-side .brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.04em; }
.tu-side .brand-name span { color: var(--cyan); }
.tu-side .logo {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 13px;
  background: linear-gradient(145deg, var(--violet), var(--cyan)); color: #08060e; font-weight: 900;
  box-shadow: 0 0 32px rgba(93,166,255,.28);
}
.tu-nav { display: grid; gap: 2px; margin-top: 18px; }
.tu-nav .group { margin: 16px 10px 6px; color: #746d84; font: 10px var(--font-mono); text-transform: uppercase; letter-spacing: .12em; }
.tu-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.tu-nav a i { width: 20px; text-align: center; font-style: normal; font-size: 15px; }
.tu-nav a:hover, .tu-nav a.on { color: var(--ink); background: rgba(255,255,255,.08); }
.tu-nav a.on i { color: var(--cyan); }
.tu-side .status-row { margin-top: auto; padding: 18px 10px 0; display: flex; align-items: center; gap: 8px; color: #746d84; font: 10px var(--font-mono); }
.tu-side .status-row a { color: #8d86a0; }
.tu-side .status { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 14px var(--lime); }
.tu-main { min-width: 0; }
.tu-main .top-stats { position: sticky; top: 32px; z-index: 20; background: rgba(9,7,15,.8); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.tu-main .shell { max-width: 1180px; padding: 28px 34px 56px; }
/* Cards, buttons, tables in the glass style. */
.tu .section, .tu .chart, .tu .worker-summary, .tu .worker-status-panel, .tu .contact-form, .tu .host-compare-col, .tu .connect-register {
  border-radius: 22px; border-color: var(--line);
  background: linear-gradient(180deg, rgba(36,29,58,.72), rgba(19,16,32,.8));
  box-shadow: 0 20px 60px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.06);
}
.tu .btn { border-radius: 12px; }
.tu .btn-primary, .tu .btn-dashboard { background: linear-gradient(90deg, var(--violet), var(--cyan)); color: #09070f; border: 0; }
.tu .btn-ghost { border-color: var(--line); color: var(--ink); }
.tu input, .tu textarea, .tu select { border-radius: 12px; border-color: var(--line); background: rgba(9,7,15,.6); color: var(--ink); }
.tu .hero-line, .tu h1, .tu h2 { letter-spacing: -.03em; }
.tu .chip { border-radius: 999px; border-color: var(--line); }
.tu table tr:hover td { background: rgba(155,108,255,.06); }
.tu .live-dot { background: var(--lime); box-shadow: 0 0 10px var(--lime); }
/* Phones/tablets: the same top header bar as the Flow home (one shared nav). */
@media (max-width: 850px) {
  .tu-app { grid-template-columns: minmax(0, 1fr); }
  .tu-side { position: static; height: auto; width: auto; transform: none; flex-direction: row; align-items: center; padding: 10px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .tu-side .brand-name, .tu-side .status-row, .tu-nav .group { display: none; }
  .tu-nav { display: flex; gap: 4px; margin: 0 0 0 10px; }
  .tu-nav a { white-space: nowrap; padding: 8px 10px; }
  .tu-main .top-stats { top: 0; }
  .tu-main .shell { padding: 18px 14px 56px; }
}

/* Brand mark (new-palette logo under /brand). */
.logo.tu-logo { background: none; box-shadow: none; border-radius: 10px; width: 38px; height: 38px; }
