:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ink: #17313b;
  --muted: #647b84;
  --primary: #0a7d80;
  --primary-dark: #075f62;
  --surface: #ffffff;
  --line: #dce7e8;
  --background: #f3f8f7;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--ink); }
button, input, select { font: inherit; }
button { border: 0; border-radius: 0.7rem; padding: 0.75rem 1rem; background: var(--primary); color: white; cursor: pointer; font-weight: 700; }
button:hover { background: var(--primary-dark); }
button.secondary { background: #e4efef; color: var(--ink); }
button.danger { background: var(--danger); }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 0.65rem; padding: 0.7rem 0.8rem; background: white; color: var(--ink); }
label { display: grid; gap: 0.35rem; font-size: 0.85rem; font-weight: 700; color: #38535c; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0.4rem; font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { margin-bottom: 1.2rem; }
h3 { margin-top: 2rem; }
[hidden] { display: none !important; }

.workspace { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; margin-bottom: 1.5rem; }
.eyebrow { margin-bottom: 0.45rem; color: var(--primary); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.subtitle { color: var(--muted); max-width: 760px; }
.panel, .session-bar { background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; box-shadow: 0 18px 50px rgb(31 67 72 / 7%); padding: 1.35rem; margin-bottom: 1rem; }
.compact { max-width: 620px; }
.status-card { display: flex; align-items: center; gap: 0.55rem; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: white; white-space: nowrap; }
.status-dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #d19a00; }
.status-dot.online { background: #18864b; }
.status-dot.offline { background: var(--danger); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem; align-items: end; }
.columns-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.session-bar { display: flex; align-items: center; justify-content: space-between; }
.session-bar span { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
.action-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.action-row select { width: auto; min-width: 180px; }
.list { display: grid; gap: 0.65rem; margin-top: 1rem; }
.list-item { border: 1px solid var(--line); border-radius: 0.75rem; padding: 0.8rem; }
.list-item span { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.2rem; }
.secret-once { padding: 1rem; border-radius: 0.75rem; background: #fff7d6; white-space: pre-wrap; }
.feedback { position: sticky; bottom: 1rem; min-height: 1.5rem; padding: 0.75rem 1rem; color: white; background: var(--ink); border-radius: 0.75rem; opacity: 0; transition: opacity 160ms ease; }
.feedback.visible { opacity: 1; }
.feedback.error { background: var(--danger); }

@media (max-width: 820px) {
  .hero { flex-direction: column; }
  .form-grid, .columns-three { grid-template-columns: 1fr; }
  .status-card { white-space: normal; }
}
