:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #020617;
  color: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.18), transparent 28rem),
    radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.14), transparent 30rem),
    #020617;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
}

.hero,
.toolbar,
.log-panel,
.workflow-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 24px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #38bdf8;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
}

.subtext {
  color: #94a3b8;
  margin-top: 12px;
}

.status-card {
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #64748b;
  box-shadow: 0 0 0 5px rgba(100, 116, 139, 0.18);
}

.status-dot.online {
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.18);
}

.status-dot.error {
  background: #ef4444;
  box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.18);
}

small {
  color: #94a3b8;
}

.toolbar {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

button {
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.14);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, 0.22);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.wait-row {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #cbd5e1;
  font-size: 14px;
}

.device-label {
  margin-top: 8px;
  color: #94a3b8;
  font-size: 12px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.workflow-card {
  border-radius: 18px;
  padding: 18px;
}

.workflow-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.workflow-card p {
  min-height: 38px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.45;
}

.workflow-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.pill {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
  font-size: 12px;
}

.pill.active {
  background: rgba(34, 197, 94, 0.14);
  color: #86efac;
}

.pill.paused {
  background: rgba(245, 158, 11, 0.14);
  color: #facc15;
}

.empty {
  grid-column: 1 / -1;
  padding: 36px;
  text-align: center;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  color: #94a3b8;
}

.log-panel {
  margin-top: 18px;
  border-radius: 18px;
  overflow: hidden;
}

.log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.log-head h2 {
  font-size: 15px;
}

#log-output {
  margin: 0;
  min-height: 160px;
  max-height: 320px;
  overflow: auto;
  padding: 16px;
  color: #cbd5e1;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}
