@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-400-latin-ext.woff2") format("woff2"); font-weight: 400; unicode-range: U+0100-024F, U+1E00-1EFF; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/schibsted-grotesk-800-latin-ext.woff2") format("woff2"); font-weight: 800; unicode-range: U+0100-024F, U+1E00-1EFF; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("assets/fonts/schibsted-grotesk-800-latin.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root { --bar: 44px; --ink: #0b0b0c; --line: #2a2a2c; --text: #d9d6d0; --muted: #8b8780; --orange: #ff8a3d; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; }

.bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--bar);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 14px;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font: 400 12px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
}
.name { white-space: nowrap; color: var(--muted); }
.name b { font: 800 15px/1 "Schibsted Grotesk", system-ui, sans-serif; color: #fff; letter-spacing: -0.02em; margin-right: 6px; }
.name i { font-style: normal; color: var(--orange); }

.tabs { display: flex; gap: 4px; margin: 0 auto; }
.tabs button, .tools button {
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.tabs button:hover, .tools button:hover { border-color: var(--line); color: #fff; }
.tabs button[aria-current="true"] { background: var(--orange); color: var(--ink); }
.tabs button span { opacity: 0.6; margin-right: 6px; }
.tools { display: flex; gap: 4px; }
button:focus-visible, select:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

.pick { display: none; align-items: center; gap: 8px; margin-left: auto; }
.pick select { font: inherit; color: #fff; background: #19191b; border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }

.view {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  top: var(--bar);
  width: 100%;
  height: calc(100% - var(--bar));
  border: 0;
  display: block;
  background: #000;
}
.bare .bar { display: none; }
.bare .view { top: 0; height: 100%; }

.restore {
  display: none;
  position: fixed;
  z-index: 3;
  top: 8px; right: 8px;
  font: 400 11px/1 "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.06em;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  opacity: 0.35;
  transition: opacity 0.3s;
}
.restore:hover, .restore:focus-visible { opacity: 1; }
.bare .restore { display: block; }

.nf { display: grid; place-items: center; height: 100%; background: var(--ink); color: var(--text); font: 400 15px/1.7 "JetBrains Mono", ui-monospace, monospace; text-align: center; }
.nf a { color: var(--orange); }

@media (max-width: 1180px) {
  .tabs { display: none; }
  .pick { display: flex; }
}
@media (max-width: 640px) {
  .name { display: none; }
  .pick span { display: none; }
  .pick { margin-left: 0; flex: 1; }
  .pick select { width: 100%; }
  .bar { gap: 8px; padding: 0 8px; }
  .tools button { padding: 7px 8px; }
  .tools .hide { font-size: 0; }
  .tools .hide::before { content: "ukryj"; font-size: 12px; }
}
