:root {
  color-scheme: dark;
  --bg: #000;
  --panel: rgba(10, 16, 22, 0.9);
  --panel-soft: rgba(18, 28, 38, 0.9);
  --text: #f3fbff;
  --muted: #9db3c2;
  --cyan: #00d4ff;
  --green: #2afecc;
  --yellow: #ffe86b;
  --line: rgba(255, 255, 255, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 600px;
  height: 600px;
  margin: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button {
  font: inherit;
  color: inherit;
}

.app-shell {
  position: relative;
  width: 600px;
  height: 600px;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 24%, rgba(0, 212, 255, 0.12), transparent 34%),
    #000;
}

.topbar {
  display: flex;
  justify-content: space-between;
  height: 56px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

h1 {
  width: 410px;
  margin: 0;
  overflow: hidden;
  font-size: 26px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  min-width: 88px;
  height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--yellow);
  background: rgba(255, 232, 107, 0.08);
  font-size: 15px;
  font-weight: 950;
  text-align: center;
}

.viewer {
  position: relative;
  width: 572px;
  height: 368px;
  border: 2px solid rgba(0, 212, 255, 0.45);
  border-radius: 8px;
  overflow: hidden;
  background: #030608;
}

iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(circle at 50% 20%, rgba(42, 254, 204, 0.14), transparent 34%),
    rgba(0, 0, 0, 0.78);
  text-align: center;
}

.overlay.hidden {
  display: none;
}

.overlay strong {
  display: block;
  font-size: 28px;
  font-weight: 950;
}

.overlay span {
  display: block;
  max-width: 420px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
}

.controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.command {
  min-height: 58px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
  font-size: 16px;
  font-weight: 950;
}

.command.primary {
  color: #06110f;
  border-color: rgba(42, 254, 204, 0.7);
  background: var(--green);
}

.focusable {
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.focusable:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.58);
  transform: translateY(-1px);
}

.pub-panel {
  height: 58px;
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.pub-panel span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.pub-panel strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--green);
  font-size: 21px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hint {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
