:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --cyan: #3de8ff;
  --green: #58ffb2;
  --muted: #b0bcc8;
  --panel: #151b22;
  --panel-bright: #202a34;
  --red: #ff6b7d;
  --yellow: #ffe66d;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 600px;
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: #000;
  color: #fff;
}

button {
  font: inherit;
}

#app {
  position: relative;
  width: 600px;
  height: 600px;
  padding: 18px 20px;
  background:
    linear-gradient(115deg, rgba(61, 232, 255, 0.08), transparent 42%),
    #050709;
}

header {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  margin-top: 1px;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.6px;
}

h2 {
  font-size: 15px;
  letter-spacing: 0.2px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.session {
  min-width: 102px;
  padding: 9px 12px;
  border: 1px solid #34414e;
  border-radius: 12px;
  color: var(--cyan);
  background: #10151b;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  text-align: center;
}

.status-strip {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #27313b;
  border-radius: 13px;
  background: var(--panel);
  color: #eaf7ff;
  font-size: 13px;
}

.pulse {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 10px currentColor;
  color: var(--yellow);
}

.pulse.online {
  color: var(--green);
  background: var(--green);
}

.pulse.error {
  color: var(--red);
  background: var(--red);
}

.fps {
  margin-left: auto;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
}

.content-grid {
  height: 252px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 10px;
  margin-top: 10px;
}

.panel {
  min-width: 0;
  padding: 13px;
  border: 1px solid #29343f;
  border-radius: 15px;
  background: var(--panel);
}

.capability-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 11px;
}

.capability {
  min-width: 0;
  height: 33px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  border-radius: 9px;
  background: var(--panel-bright);
  color: #e4edf5;
  font-size: 11px;
  white-space: nowrap;
}

.capability-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
}

.capability.pass .capability-dot {
  background: var(--green);
  box-shadow: 0 0 7px rgba(88, 255, 178, 0.7);
}

.capability.fail .capability-dot {
  background: var(--red);
}

.capability.warn .capability-dot {
  background: var(--yellow);
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

#hold-status {
  color: var(--muted);
  font-size: 10px;
}

.event-log {
  height: 204px;
  margin-top: 10px;
  overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.empty-state {
  padding: 20px 8px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  line-height: 1.45;
}

.event-row {
  height: 25px;
  display: grid;
  grid-template-columns: 36px 1fr 48px;
  align-items: center;
  border-bottom: 1px solid #29343f;
  color: #dbe7f2;
  font-size: 10px;
}

.event-type {
  color: var(--cyan);
  font-weight: 800;
}

.event-duration {
  color: var(--muted);
  text-align: right;
}

.visual-panel {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 10px;
  padding: 7px 12px;
  border: 1px solid #29343f;
  border-radius: 15px;
  background: var(--panel);
}

#motion-canvas {
  width: 160px;
  height: 72px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: #0b1117;
  image-rendering: pixelated;
}

.visual-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
}

.visual-copy strong {
  color: #fff;
}

.visual-copy span {
  color: var(--muted);
}

.actions {
  height: 88px;
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 10px;
  margin-top: 10px;
}

.focusable {
  min-height: 74px;
  padding: 0 12px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #222d38;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  opacity: 0.82;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.focusable.primary {
  color: #061014;
  background: var(--cyan);
}

.focusable:focus {
  outline: none;
  border-color: #fff;
  box-shadow: 0 0 20px rgba(61, 232, 255, 0.5);
  opacity: 1;
  transform: scale(0.96);
}

.focusable:active {
  transform: scale(0.91);
}

.toast {
  position: absolute;
  top: 90px;
  left: 50%;
  z-index: 20;
  max-width: 520px;
  padding: 13px 18px;
  border: 1px solid var(--cyan);
  border-radius: 14px;
  background: #19232c;
  color: #fff;
  font-size: 13px;
  transform: translateX(-50%);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.hidden {
  display: none;
}
