﻿:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --ink: #17202a;
  --muted: #697381;
  --line: #d9dee7;
  --accent: #fc4c02;
  --accent-strong: #d43f00;
  --focus: #146c94;
  --danger: #aa2e25;
  --good: #12735c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-shell { width: 100%; min-height: 100vh; padding: 32px; }
.workspace { max-width: 1160px; margin: 0 auto; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 6px; color: var(--accent-strong); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
h1, h2 { margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 6vw, 4.6rem); line-height: 0.95; }
h2 { font-size: 1rem; }
.status-row, .controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.status-pill { min-width: 132px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 0.82rem; font-weight: 700; text-align: center; }
.status-pill.ready { border-color: rgba(18, 115, 92, 0.35); color: var(--good); }
.controls, .setup-panel, .panel { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.controls { padding: 14px; margin-bottom: 16px; }
.button { min-height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-weight: 750; text-decoration: none; }
.button:hover { border-color: var(--focus); }
.button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-strong); }
.button.danger { color: var(--danger); }
.field, .copy-field { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.86rem; font-weight: 700; }
.copy-field { align-items: stretch; flex-direction: column; min-width: 0; }
input { border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font: inherit; }
input:focus, .button:focus-visible { outline: 3px solid rgba(20, 108, 148, 0.22); outline-offset: 1px; }
.field input { width: 72px; min-height: 38px; padding: 0 10px; }
.copy-field input { width: 100%; min-height: 40px; padding: 0 12px; }
.setup-panel { display: grid; grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.3fr) auto; gap: 14px; align-items: end; margin-bottom: 16px; padding: 16px; }
.setup-panel p { margin: 8px 0 0; color: var(--muted); line-height: 1.45; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace; }
.split-view.single { display: grid; grid-template-columns: 1fr; }
.panel { min-height: 360px; overflow: hidden; }
.panel-header { min-height: 52px; padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-header span { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.activity-list { display: grid; }
.activity-item { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.activity-item h3 { margin: 0 0 8px; font-size: 0.98rem; }
.activity-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.82rem; font-weight: 650; }
.empty, .error { padding: 18px; color: var(--muted); }
.error { color: var(--danger); }

@media (max-width: 860px) {
  .app-shell { padding: 18px; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .setup-panel { grid-template-columns: 1fr; }
  .setup-panel .button { width: 100%; }
}
