/* Dark and minimal, with the Mac app's colours (docs/interfaz-20261122/mockup.html). */
:root {
  --page: #111113;
  --ink: rgba(255, 255, 255, .9);
  --ink2: rgba(235, 235, 245, .62);
  --ink3: rgba(235, 235, 245, .36);
  --panel: #1e1e1f;
  --card: rgba(255, 255, 255, .065);
  --sep: rgba(255, 255, 255, .14);
  --accent: #458cff;
  --good: #32d158;
  --warn: #ffd60a;
  --bad: #ff453a;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--page); color: var(--ink); font: 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
#app { min-height: 100%; }
h1, h2 { margin: 0; font-weight: 600; }
h2 { font-size: 17px; }
p { margin: 0; color: var(--ink2); }

.brand { font-size: 30px; letter-spacing: -.02em; font-weight: 650;
  background: linear-gradient(90deg, #fff 0%, var(--accent) 140%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand.small { font-size: 18px; }

.center { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: 16px; }
.bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: .5px solid var(--sep); }
.home { max-width: 640px; margin: 0 auto; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 16px; }

.card { background: var(--card); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 0 0 .5px var(--sep) inset; }
.card.login { width: min(340px, 100%); }
.card.empty span { color: var(--ink2); }
.card > button, .card > .button { align-self: flex-start; }
.console-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tests { display: flex; gap: 10px; flex-wrap: wrap; }
.notes { display: flex; flex-direction: column; gap: 10px; }

.state { font-size: 12px; color: var(--ink3); }
.state::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--ink3); vertical-align: 1px; }
.state.ready::before { background: var(--good); }
.state.standby::before { background: var(--warn); }
.state.remote::before { background: var(--accent); }

input { font: inherit; color: var(--ink); background: rgba(255, 255, 255, .06); border: .5px solid var(--sep); border-radius: 8px;
  padding: 9px 11px; outline: none; width: 100%; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(69, 140, 255, .25); }
label { display: flex; flex-direction: column; gap: 6px; color: var(--ink2); font-size: 12px; }

button, .button { font: inherit; font-weight: 550; border: 0; border-radius: 8px; padding: 9px 16px; cursor: pointer; color: var(--ink);
  background: rgba(255, 255, 255, .1); text-decoration: none; display: inline-block; transition: filter .15s, opacity .15s; }
button:hover, .button:hover { filter: brightness(1.15); }
button:disabled { opacity: .4; cursor: default; filter: none; }
button.primary { background: var(--accent); color: #fff; }
button.link { background: none; padding: 4px 6px; color: var(--ink2); font-weight: 500; }
button.link:hover { color: var(--ink); }
button.danger { color: var(--bad); }
button:focus-visible, .button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

details summary { cursor: pointer; color: var(--ink3); font-size: 12px; }
details[open] { display: flex; flex-direction: column; gap: 10px; }

.message { border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; background: rgba(255, 69, 58, .14); }
.message.info { background: rgba(255, 255, 255, .07); }
.message span { color: var(--ink2); }

/* Playing */
.play { position: fixed; inset: 0; background: #000; }
.play.idle { cursor: none; }
.screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: radial-gradient(circle at 50% 45%, #14213f 0%, #000 70%); }
.overlay[hidden], .stats[hidden], .notice[hidden] { display: none; }
.dim { color: var(--ink3); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .12); border-top-color: var(--accent);
  animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.toolbar { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; padding: 6px; border-radius: 12px;
  background: rgba(20, 20, 22, .72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: opacity .3s; }
.play.idle .toolbar { opacity: 0; pointer-events: none; }
.toolbar button { padding: 6px 10px; font-size: 12px; }
.stats { position: absolute; top: 12px; left: 12px; margin: 0; padding: 10px 12px; border-radius: 10px; font: 11px/1.5 ui-monospace, Menlo, monospace;
  background: rgba(0, 0, 0, .62); color: var(--ink); pointer-events: none; }
.notice { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: min(560px, 90vw); }
.notice .message { background: rgba(20, 20, 22, .85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
