*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --surface: #111;
  --border: #1e1e1e;
  --text: #ccc;
  --muted: #444;
  --accent: #e0e0e0;
  --font: 'JetBrains Mono', 'Fira Mono', monospace;
}

html, body { height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 13px; }

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.logo {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: lowercase;
}

#bar {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

#url-input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  font-family: var(--font);
  font-size: 13px;
  padding: 7px 10px;
  outline: none;
  transition: border-color 0.15s;
}

#url-input:focus { border-color: #333; }
#url-input::placeholder { color: var(--muted); }

#go {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

#go:hover { color: var(--accent); border-color: #333; }

#frame-wrap {
  flex: 1;
  position: relative;
  overflow: hidden;
}

#frame {
  width: 100%;
  height: 100%;
  border: none;
  display: none;
  background: #fff;
}

#frame.active { display: block; }

#empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.1em;
}

#empty-state.hidden { display: none; }

#loading-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 1px;
  width: 0%;
  background: var(--accent);
  transition: width 0.3s ease;
  z-index: 10;
}
