:root {
  --bg: #09090b;
  --text: #fafafa;
  --muted: #a1a1aa;
  --line: rgba(255, 255, 255, .08);
  --field: rgba(255, 255, 255, .06);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.bar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px max(8px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
}
.btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  cursor: pointer;
}
.btn:hover { background: var(--field); color: var(--text); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.go { flex: 1; min-width: 0; margin: 0 4px; }
.go input {
  width: 100%;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--field);
  color: var(--text);
  font: inherit;
  outline: none;
}
.go input:focus { border-color: rgba(255, 255, 255, .25); }
.vm { flex: none; padding: 0 8px; color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap; }
.vm:not([href]) { display: none; }
.vm:hover { color: var(--text); }
.view { position: relative; flex: 1; min-height: 0; }
.frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.start { max-width: 36rem; margin: 16vh auto 0; padding: 0 16px; text-align: center; }
.start h1 { margin: 0 0 10px; font-size: clamp(2rem, 7vw, 3rem); font-weight: 650; letter-spacing: -.045em; line-height: 1.05; }
.start p { margin: 0 0 12px; color: var(--muted); }
.start a { color: var(--text); cursor: pointer; }
.start-go { display: flex; gap: 8px; margin: 28px 0 16px; }
.start-go input {
  flex: 1; min-width: 0; height: 52px; padding: 0 20px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--field); color: var(--text); font: inherit; font-size: 16px; outline: none;
}
.start-go input:focus { border-color: rgba(255, 255, 255, .25); }
.start-go button { height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--text); color: var(--bg); font: inherit; font-weight: 600; cursor: pointer; }
.quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.quick a { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; text-decoration: none; }
.quick a:hover { color: var(--text); background: var(--field); }
.status { min-height: 1.5em; font-size: 13px; }
.fine { font-size: 12px; }
.btn:disabled { opacity: .5; cursor: progress; }
.toast {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 1;
  max-width: calc(100% - 32px);
  margin: 0;
  padding: 8px 14px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #18181b;
  color: var(--text);
  font-size: 13px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .4);
}
@media (max-width: 520px) {
  #forward { display: none; }
}
