/* RadJ HUD – monochrome (black / white / grey) */
:root {
  --bg: #040404;
  --bg-2: #0a0a0b;
  --panel: rgba(14, 14, 15, 0.82);
  --line: rgba(255, 255, 255, 0.9);
  --line-2: rgba(255, 255, 255, 0.55);
  --line-3: rgba(255, 255, 255, 0.22);
  --line-4: rgba(255, 255, 255, 0.09);
  --text: #f3f3f3;
  --text-2: #b9b9b9;
  --text-3: #7d7d7d;
  --glow: 0 0 6px rgba(255, 255, 255, 0.55), 0 0 18px rgba(255, 255, 255, 0.18);
  --glow-soft: 0 0 12px rgba(255, 255, 255, 0.12);
  --hud: 'Rajdhani', 'Segoe UI', 'Roboto Condensed', system-ui, sans-serif;
  --display: 'Rajdhani', 'Segoe UI', system-ui, sans-serif;
  --orb: 'Orbitron', 'Rajdhani', 'Segoe UI', system-ui, sans-serif; /* tylko znaki łacińskie bez polskich liter */
  --read: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --lvl: 0;
  --radius: 2px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(ellipse at 50% 30%, #121213 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  font-family: var(--hud);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
button, input, textarea { font: inherit; color: inherit; }

/* ---------- efekty tła ---------- */
.fx-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line-4) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-4) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 85%);
  opacity: .55;
}
.fx-scan {
  position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.022) 0 1px, transparent 1px 3px);
  mix-blend-mode: screen;
}
.fx-scan::after {
  content: ''; position: absolute; left: 0; right: 0; height: 140px; top: -140px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.035), transparent);
  animation: sweep 9s linear infinite;
}
@keyframes sweep { to { transform: translateY(calc(100vh + 140px)); } }
.fx-vignette { position: fixed; inset: 0; pointer-events: none; z-index: 1; box-shadow: inset 0 0 220px rgba(0,0,0,.9); }
.view { position: relative; z-index: 2; }

/* ---------- ramki z narożnikami ---------- */
.frame { position: relative; border: 1px solid var(--line-3); background: var(--panel); backdrop-filter: blur(3px); box-shadow: var(--glow-soft), inset 0 0 40px rgba(255,255,255,.02); }
.frame .br { position: absolute; width: 16px; height: 16px; border: 0 solid var(--line); filter: drop-shadow(0 0 3px rgba(255,255,255,.6)); pointer-events: none; }
.frame .tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.frame .tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.frame .bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.frame .br_ { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; min-height: 44px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line-2); border-radius: var(--radius);
  font-family: var(--hud); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, box-shadow .2s, border-color .2s, color .2s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover, .btn:focus-visible { border-color: var(--line); background: rgba(255,255,255,.09); box-shadow: var(--glow); outline: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: progress; }
.btn-primary { background: rgba(255,255,255,.92); color: #050505; border-color: #fff; box-shadow: 0 0 14px rgba(255,255,255,.35); }
.btn-primary:hover, .btn-primary:focus-visible { background: #fff; box-shadow: 0 0 22px rgba(255,255,255,.6); }
.btn-wide { width: 100%; }
.btn.loading span::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: dots 1s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.mini-btn {
  background: transparent; border: 1px solid var(--line-3); color: var(--text-2); padding: 4px 10px; min-height: 30px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-radius: var(--radius);
}
.mini-btn:hover, .mini-btn:focus-visible, .mini-btn[aria-pressed="true"] { color: var(--text); border-color: var(--line); box-shadow: var(--glow-soft); outline: none; }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line-3); color: var(--text-2); cursor: pointer; border-radius: 50%; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover, .icon-btn:focus-visible { color: #fff; border-color: var(--line); box-shadow: var(--glow); outline: none; }
#sound-btn .snd-on { display: none; } #sound-btn[aria-pressed="true"] .snd-on { display: inline; } #sound-btn[aria-pressed="true"] .snd-off { display: none; }

/* ---------- reaktor ---------- */
.reactor { position: absolute; inset: 0; color: var(--line); pointer-events: none; }
.reactor .ring { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 4px rgba(255,255,255,.55)); }
.ring-ticks { animation: spin 60s linear infinite; opacity: .55; }
.ring-arcs { animation: spin 14s linear infinite reverse; }
.ring-dash { animation: spin 24s linear infinite; color: #d0d0d0; }
.ring-thin { animation: spin 9s linear infinite reverse; color: #e8e8e8; }
.ring-segs { animation: spin 32s linear infinite; color: #9a9a9a; }
@keyframes spin { to { transform: rotate(360deg); } }
.reactor .core {
  position: absolute; inset: 31%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.95) 0%, rgba(235,235,235,.55) 22%, rgba(255,255,255,.08) 55%, transparent 70%);
  box-shadow: 0 0 calc(20px + var(--lvl) * 60px) rgba(255,255,255,calc(.25 + var(--lvl) * .5)), inset 0 0 20px rgba(255,255,255,.4);
  opacity: calc(.35 + var(--lvl) * .65);
  transition: opacity .08s, box-shadow .08s;
}
.reactor-wave { position: absolute; left: -22%; top: -22%; width: 144%; height: 144%; }

.reactor-wrap { position: relative; display: flex; align-items: center; justify-content: center; gap: 28px; padding: 18px 0 4px; }
.mic-btn {
  position: relative; width: clamp(170px, 17vw, 230px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.06), transparent 65%);
  border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  transform: scale(calc(1 + var(--lvl) * .05)); transition: transform .08s;
  -webkit-tap-highlight-color: transparent;
}
.mic-btn:focus-visible { outline: 1px dashed var(--line-2); outline-offset: 10px; }
.mic-icon { position: relative; z-index: 3; width: 34%; height: 34%; color: #0a0a0a; filter: drop-shadow(0 0 2px rgba(255,255,255,.9)); transition: color .3s; }
.mic-btn::after { /* tarcza pod ikoną */
  content: ''; position: absolute; inset: 33%; border-radius: 50%; z-index: 2;
  background: radial-gradient(circle, #fff 0%, #e9e9e9 55%, #bdbdbd 100%);
  box-shadow: 0 0 25px rgba(255,255,255,.55), 0 0 0 5px rgba(0,0,0,.6), 0 0 0 6px rgba(255,255,255,.5);
  transition: inset .25s, background .3s;
}
.mic-btn:hover::after { box-shadow: 0 0 40px rgba(255,255,255,.75), 0 0 0 5px rgba(0,0,0,.6), 0 0 0 6px #fff; }
.mic-btn .reactor .ring { animation-play-state: running; }
.mic-btn:not(.listening) .ring-arcs { animation-duration: 28s; }
.mic-btn:not(.listening) .ring-thin { animation-duration: 18s; }
.mic-btn.listening .ring-arcs { animation-duration: 4s; }
.mic-btn.listening .ring-thin { animation-duration: 2.6s; }
.mic-btn.listening .ring-dash { animation-duration: 8s; }
.mic-btn.listening::after { inset: 35%; background: radial-gradient(circle, #050505 0%, #111 70%, #2a2a2a 100%); box-shadow: 0 0 calc(25px + var(--lvl) * 70px) rgba(255,255,255,.7), 0 0 0 5px rgba(0,0,0,.6), 0 0 0 7px #fff; }
.mic-btn.listening .mic-icon { color: #fff; }
.mic-btn.listening .reactor .ring { filter: drop-shadow(0 0 calc(4px + var(--lvl) * 10px) rgba(255,255,255,.85)); }
.mic-btn.busy .ring-arcs { animation-duration: 1.4s; }
.mic-btn.listening .core { animation: breathe 1.6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); } }

.hud-tag { font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .25em; color: var(--text-3); text-align: center; line-height: 1.6; min-width: 60px; padding: 8px 6px; border-top: 1px solid var(--line-3); border-bottom: 1px solid var(--line-3); }
.hud-tag b { font-family: var(--orb); display: block; font-size: 17px; letter-spacing: .1em; color: var(--text); text-shadow: var(--glow); font-weight: 500; }
.line-wave { display: block; width: 100%; height: 44px; margin-top: 4px; }
.mic-status { text-align: center; font-family: var(--display); font-weight: 600; font-size: 14px; letter-spacing: .28em; color: var(--text-2); margin: 2px 0 18px; min-height: 18px; }
.mic-status.live { color: #fff; text-shadow: var(--glow); }

/* ---------- górny pasek HUD ---------- */
.hud-top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px;
  padding: 10px clamp(12px, 2.4vw, 32px); border-bottom: 1px solid var(--line-3);
  background: linear-gradient(to bottom, rgba(4,4,4,.96), rgba(4,4,4,.8)); backdrop-filter: blur(6px);
}
.hud-top::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent); opacity: .35; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; border: 2px dashed var(--line); box-shadow: var(--glow); position: relative; animation: spin 12s linear infinite; }
.brand-mark::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; }
.brand-name { font-family: var(--orb); font-weight: 900; letter-spacing: .3em; font-size: 16px; text-shadow: var(--glow); }
.brand-sub { font-size: 12px; letter-spacing: .3em; color: var(--text-3); text-transform: uppercase; }
.readouts { flex: 1; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.chip { font-family: var(--display); font-weight: 600; font-size: 12.5px; letter-spacing: .2em; color: var(--text-2); padding: 5px 10px; border: 1px solid var(--line-4); background: rgba(255,255,255,.025); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.chip b { color: #fff; font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; display: inline-block; }
.dot.pulse { animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.top-right { display: flex; align-items: center; gap: 10px; }
.clock { font-family: var(--orb); text-align: right; line-height: 1.1; margin-right: 6px; }
.clock span { font-size: 17px; letter-spacing: .12em; text-shadow: var(--glow); }
.clock small { display: block; font-size: 10px; letter-spacing: .25em; color: var(--text-3); }

/* ---------- układ ---------- */
.layout { display: flex; flex-direction: column; gap: clamp(16px, 2vw, 24px); padding: clamp(12px, 2vw, 26px) clamp(12px, 2.4vw, 32px) 24px; max-width: 1600px; margin: 0 auto; }
.col { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
/* góra: reaktor + dyktowanie w jednym rzędzie */
.top-row { display: grid; grid-template-columns: minmax(250px, 340px) 1fr; gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.reactor-col { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.dict-panel { display: flex; flex-direction: column; min-width: 0; }
.report-row { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.panel { padding: 14px 16px 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-4); }
.panel-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 15.5px; letter-spacing: .3em; text-transform: uppercase; text-shadow: var(--glow); }
.panel-head h2::before { content: '◢ '; color: var(--text-3); font-size: 10px; vertical-align: 2px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.meta { font-size: 14px; font-weight: 600; letter-spacing: .12em; color: var(--text-3); font-family: var(--display); }

.text-area {
  width: 100%; resize: vertical; border: 1px solid var(--line-4); border-radius: var(--radius);
  background: rgba(0,0,0,.55); color: var(--text); padding: 12px 14px;
  font-family: var(--read); font-size: 16px; line-height: 1.6; outline: none; transition: border-color .2s, box-shadow .2s;
}
.text-area:focus { border-color: var(--line-2); box-shadow: 0 0 0 1px rgba(255,255,255,.15), var(--glow-soft); }
.text-area::placeholder { color: #6a6a6a; }
.dictation { flex: 1; min-height: 170px; }
.interim { min-height: 22px; font-family: var(--read); font-style: italic; color: var(--text-2); padding: 6px 2px 0; font-size: 15px; }
.interim:not(:empty)::before { content: '▍ '; color: #fff; animation: blink 1s steps(2) infinite; font-style: normal; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }

.report-wrap { position: relative; }
.report { min-height: 60vh; font-size: 17.5px; line-height: 1.72; padding: 18px 22px; resize: vertical; overflow-y: hidden; background: #0b0b0c; color: #f5f5f5; letter-spacing: .005em; }
.report-panel.light .report { background: #f4f4f2; color: #111; border-color: #ccc; }
.report-panel.light .report::placeholder { color: #777; }
.scanning { position: absolute; inset: 1px; display: grid; place-items: center; background: rgba(0,0,0,.72); font-family: var(--display); font-weight: 700; letter-spacing: .3em; font-size: 14px; overflow: hidden; }
.scanning span { text-shadow: var(--glow); animation: blink 1.2s ease-in-out infinite; }
.scan-bar { position: absolute; left: 0; right: 0; height: 2px; background: #fff; box-shadow: 0 0 18px 4px rgba(255,255,255,.5); animation: scanbar 1.6s ease-in-out infinite alternate; }
@keyframes scanbar { from { top: 4%; } to { top: 96%; } }

.revise { display: flex; gap: 10px; margin-top: 12px; }
.revise input { flex: 1; min-width: 0; min-height: 44px; padding: 8px 12px; background: rgba(0,0,0,.55); border: 1px solid var(--line-3); border-radius: var(--radius); font-family: var(--read); font-size: 15px; outline: none; }
.revise input:focus { border-color: var(--line); box-shadow: var(--glow-soft); }
.revise input::placeholder { color: #6f6f6f; }
.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }

.notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notes li { font-family: var(--read); font-size: 15px; line-height: 1.5; color: var(--text); padding: 8px 12px 8px 34px; position: relative; border-left: 2px solid var(--line-2); background: rgba(255,255,255,.035); }
.notes li::before { content: '!'; position: absolute; left: 10px; top: 8px; width: 16px; height: 16px; border: 1px solid #fff; border-radius: 50%; font: 700 11px/14px var(--display); text-align: center; }
.notes li.empty { color: var(--text-3); border-left-color: var(--line-4); background: transparent; }
.notes li.empty::before { content: '–'; border-color: var(--line-3); color: var(--text-3); }

.hud-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 8px clamp(12px, 2.4vw, 32px) 10px; font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: .22em; color: var(--text-3); border-top: 1px solid var(--line-4); }

/* ---------- logowanie ---------- */
#login-view { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-card { width: min(420px, 100%); padding: 34px 32px 24px; text-align: center; }
.login-reactor { position: relative; width: 190px; height: 190px; margin: 6px auto 18px; }
.login-reactor::after { content: ''; position: absolute; inset: 37%; border-radius: 50%; background: radial-gradient(circle, #fff, #cfcfcf); box-shadow: 0 0 30px rgba(255,255,255,.7), 0 0 0 4px rgba(0,0,0,.7), 0 0 0 5px rgba(255,255,255,.6); }
.login-reactor .core { opacity: .6; }
.logo { font-family: var(--orb); font-weight: 900; letter-spacing: .38em; font-size: 28px; margin: 0 0 4px; padding-left: .38em; text-shadow: var(--glow); }
.sub { margin: 0 0 26px; color: var(--text-2); letter-spacing: .16em; text-transform: uppercase; font-size: 13px; }
#login-form { display: grid; gap: 10px; text-align: left; }
.hud-label { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .3em; color: var(--text-2); text-transform: uppercase; }
#password { min-height: 48px; padding: 10px 14px; background: rgba(0,0,0,.6); border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 18px; letter-spacing: .2em; outline: none; }
#password:focus { border-color: #fff; box-shadow: var(--glow); }
.form-error { min-height: 22px; margin: 2px 0 0; color: #fff; font-size: 14px; letter-spacing: .05em; }
.form-error:not(:empty)::before { content: '⚠ '; }
.login-foot { margin-top: 18px; font-family: var(--display); font-weight: 600; font-size: 11.5px; text-align: center; letter-spacing: .24em; color: var(--text-3); display: flex; align-items: center; justify-content: center; gap: 8px; }
.login-card.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

/* ---------- toasty ---------- */
.toasts { position: fixed; z-index: 100; right: 18px; bottom: 18px; display: grid; gap: 10px; max-width: min(440px, calc(100vw - 36px)); }
.toast { padding: 12px 16px 12px 44px; position: relative; background: rgba(10,10,10,.95); border: 1px solid var(--line-2); box-shadow: var(--glow); font-size: 15px; letter-spacing: .03em; line-height: 1.4; animation: tin .25s ease-out; }
.toast::before { content: '✓'; position: absolute; left: 14px; top: 11px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid #fff; display: grid; place-items: center; font-size: 12px; }
.toast.error { background: #f2f2f2; color: #0a0a0a; border-color: #fff; box-shadow: 0 0 22px rgba(255,255,255,.4); font-weight: 600; }
.toast.error::before { content: '!'; border-color: #0a0a0a; font-weight: 700; }
.toast.info::before { content: 'i'; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .3s; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

.notes::-webkit-scrollbar, .text-area::-webkit-scrollbar { width: 8px; }
.notes::-webkit-scrollbar-thumb, .text-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); }

/* ---------- responsywność ---------- */
@media (max-width: 1100px) { .hide-md { display: none !important; } }
@media (max-width: 900px) {
  .top-row { grid-template-columns: 1fr; }
  .report { min-height: 55vh; }
  .dictation { min-height: 150px; }
}
@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .hud-top { gap: 10px; padding: 8px 12px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 13px; letter-spacing: .22em; }
  .readouts { justify-content: flex-end; }
  .clock span { font-size: 14px; } .clock small { display: none; }
  .icon-btn { width: 34px; height: 34px; }
  .mic-btn { width: 200px; }
  .reactor-wrap { gap: 14px; }
  .hud-tag { min-width: 50px; font-size: 9px; } .hud-tag b { font-size: 14px; }
  .actions { grid-template-columns: 1fr; }
  .revise { flex-direction: column; }
  .btn { letter-spacing: .1em; }
  .panel { padding: 12px; }
  .report { font-size: 17px; padding: 14px; line-height: 1.65; }
  .hud-bottom { flex-direction: column; align-items: center; gap: 4px; }
  .panel-head { flex-wrap: wrap; }
  .panel-head h2 { font-size: 14px; letter-spacing: .22em; }
  .mini-btn { font-size: 11px; padding: 3px 8px; min-height: 28px; letter-spacing: .08em; }
  .reactor-wrap { padding-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 480px) {
  .readouts { display: none; }
  .hud-top { justify-content: space-between; }
  .top-right { gap: 8px; }
}
.logo { font-size: clamp(20px, 6.6vw, 28px); letter-spacing: clamp(.2em, 1.6vw, .38em); }
.login-card { min-width: 0; }
@media (max-width: 480px) {
  #login-view { padding: 16px; }
  .login-card { padding: 28px 20px 20px; }
  .login-foot { display: block; line-height: 1.7; }
  .login-foot .dot { vertical-align: 1px; margin-right: 6px; }
}

/* opis na pełną szerokość: akcje pod opisem */
.report-panel .revise { margin-top: 14px; }
.actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 901px) { .report-panel .revise input { font-size: 16px; } .actions .btn { min-height: 48px; } }
@media (max-width: 640px) { .actions { grid-template-columns: 1fr; } }

/* ---------- powitanie ---------- */
.welcome { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 45%, #141414 0%, #030303 65%); cursor: pointer; overflow: hidden; transition: opacity .55s ease, filter .55s ease; }
.welcome.out { opacity: 0; filter: blur(6px) brightness(1.6); pointer-events: none; }
.wl-grid { position: absolute; inset: -20%; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 46px 46px; transform: perspective(600px) rotateX(58deg) translateY(30%); transform-origin: 50% 100%; mask-image: linear-gradient(to top, #000 10%, transparent 70%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 70%); animation: wlGrid 3s linear infinite; opacity: .7; }
@keyframes wlGrid { to { background-position: 0 46px, 0 0; } }
.welcome::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.03) 0 1px, transparent 1px 3px); }
.wl-rain { position: absolute; inset: 0; pointer-events: none; }
.wl-rain span { position: absolute; top: -10%; font: 700 var(--s, 20px)/1 var(--orb); color: rgba(255,255,255,var(--a, .25)); text-shadow: 0 0 8px rgba(255,255,255,.35); animation: wlFall var(--d, 3s) linear var(--delay, 0s) infinite; }
@keyframes wlFall { from { transform: translateY(-10vh) rotate(0deg); } to { transform: translateY(120vh) rotate(var(--rot, 180deg)); } }
.wl-center { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px; width: min(760px, 100%); }
.wl-hud-top { display: flex; gap: 22px; font: 600 12px/1 var(--display); letter-spacing: .32em; color: var(--text-3); margin-bottom: 18px; opacity: 0; animation: wlFade .4s ease .15s forwards; }
.wl-hud-top span::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; margin-right: 8px; vertical-align: 1px; }
.wl-reactor { position: relative; width: clamp(170px, 30vmin, 260px); aspect-ratio: 1; margin-bottom: 22px; }
.wl-reactor svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 0 5px rgba(255,255,255,.6)); }
.wl-r { fill: none; stroke: #fff; stroke-dasharray: 100; stroke-dashoffset: 100; transform-origin: 100px 100px; }
.wl-r1 { stroke-width: 1.2; animation: wlDraw 1.1s ease-out .1s forwards, spin 14s linear infinite; }
.wl-r2 { stroke-width: 2.5; stroke: #cfcfcf; stroke-dasharray: 62 38; animation: wlDraw2 1s ease-out .35s forwards, wlSpinR 6s linear infinite; }
.wl-r3 { stroke-width: 1; stroke: #9a9a9a; animation: wlDraw 1s ease-out .55s forwards; }
.wl-ticks { fill: none; stroke: #fff; stroke-width: 4; stroke-dasharray: 1 4.53; opacity: 0; transform-origin: 100px 100px; animation: wlFade .5s ease .7s forwards, spin 30s linear infinite; }
.wl-segs { fill: none; stroke: #bdbdbd; stroke-width: 7; stroke-dasharray: 20 6.4; opacity: 0; transform-origin: 100px 100px; animation: wlFade .5s ease .9s forwards, wlSpinR 18s linear infinite; }
.wl-cross line { stroke: rgba(255,255,255,.55); stroke-width: 1.2; }
.wl-cross { opacity: 0; animation: wlFade .3s ease .4s forwards; }
@keyframes wlDraw { to { stroke-dashoffset: 0; } }
@keyframes wlDraw2 { from { stroke-dashoffset: 100; opacity: 0; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes wlSpinR { to { transform: rotate(-360deg); } }
@keyframes wlFade { to { opacity: 1; } }
.wl-dollar { position: absolute; inset: 0; display: grid; place-items: center; font: 900 clamp(64px, 12vmin, 104px)/1 var(--orb); color: #fff; text-shadow: 0 0 10px rgba(255,255,255,.9), 0 0 34px rgba(255,255,255,.45); opacity: 0; animation: wlFlicker .9s steps(1) .8s forwards, wlPulse 1.6s ease-in-out 1.8s infinite; }
.wl-dollar::after { content: '$'; position: absolute; inset: 0; display: grid; place-items: center; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.5); transform: scale(1.35); opacity: .35; }
@keyframes wlFlicker { 0% { opacity: .2; } 15% { opacity: 0; } 30% { opacity: .7; } 40% { opacity: .1; } 55% { opacity: 1; } 65% { opacity: .5; } 100% { opacity: 1; } }
@keyframes wlPulse { 50% { text-shadow: 0 0 16px #fff, 0 0 50px rgba(255,255,255,.6); transform: scale(1.04); } }
.wl-greet { font: 700 clamp(13px, 2.4vw, 16px)/1.3 var(--display); letter-spacing: .38em; text-transform: uppercase; color: var(--text-2); margin-bottom: 10px; opacity: 0; animation: wlFade .5s ease .6s forwards; }
.wl-main { font: 700 clamp(24px, 5.4vw, 46px)/1.2 var(--display); letter-spacing: .06em; color: #fff; text-shadow: 0 0 12px rgba(255,255,255,.55); min-height: 1.25em; }
.wl-caret { display: inline-block; width: .5em; height: .9em; margin-left: 4px; background: #fff; box-shadow: 0 0 10px #fff; vertical-align: -0.08em; animation: blink .8s steps(2) infinite; }
.wl-bar { width: min(340px, 70vw); height: 2px; margin-top: 26px; background: rgba(255,255,255,.12); overflow: hidden; }
.wl-bar span { display: block; height: 100%; width: 100%; background: #fff; box-shadow: 0 0 10px #fff; transform: scaleX(0); transform-origin: left; animation: wlBar var(--wl-dur, 3.6s) linear forwards; }
@keyframes wlBar { to { transform: scaleX(1); } }
.wl-skip { margin-top: 14px; font: 600 11px/1.4 var(--display); letter-spacing: .26em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 480px) { .wl-hud-top { gap: 10px; font-size: 10px; letter-spacing: .2em; flex-direction: column; align-items: center; } .wl-main { letter-spacing: .03em; } }
.welcome.static *, .welcome.static *::before, .welcome.static *::after { animation: none !important; }
.welcome.static .wl-r { stroke-dashoffset: 0; }
.welcome.static .wl-hud-top, .welcome.static .wl-greet, .welcome.static .wl-dollar, .welcome.static .wl-ticks, .welcome.static .wl-segs, .welcome.static .wl-cross { opacity: 1; }
.welcome.static .wl-bar, .welcome.static .wl-rain, .welcome.static .wl-caret { display: none; }

/* ---------- Dysk Google ---------- */
.drive-strip, .drive-result { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; margin-top: 12px; padding: 10px 12px; border: 1px dashed var(--line-3); background: rgba(255,255,255,.02); }
.drive-result { border-style: solid; border-color: var(--line-2); background: rgba(255,255,255,.05); box-shadow: var(--glow-soft); animation: tin .25s ease-out; }
.drive-state { font: 600 13px/1.3 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; }
.drive-state .dot.off { background: transparent; border: 1px solid var(--text-3); box-shadow: none; }
.drive-saved { font-family: var(--read); font-size: 15px; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.drive-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 13px; letter-spacing: .12em; text-decoration: none; color: var(--text); }
.btn-sm svg { width: 16px; height: 16px; }
a.btn { text-decoration: none; }
@media (max-width: 640px) { .drive-strip, .drive-result { flex-direction: column; align-items: stretch; } .drive-btns { flex-direction: column; align-items: stretch; } .drive-btns .btn, .drive-btns .mini-btn { width: 100%; } }

/* ---------- strony informacyjne ---------- */
.legal-page { min-height: 100vh; padding: clamp(14px, 4vw, 48px) clamp(10px, 3vw, 24px); }
.legal { max-width: 860px; margin: 0 auto; padding: clamp(22px, 4vw, 44px); font-family: var(--read); font-size: 16.5px; line-height: 1.7; color: var(--text); }
.legal-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font: 900 15px/1 var(--orb); letter-spacing: .3em; text-shadow: var(--glow); }
.legal-brand .brand-mark { width: 26px; height: 26px; }
.legal h1 { font: 700 clamp(24px, 4vw, 34px)/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; margin: 26px 0 4px; text-shadow: var(--glow); }
.legal-meta { color: var(--text-3); font: 600 13px/1.4 var(--display); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 22px; }
.legal h2 { font: 700 17px/1.3 var(--display); letter-spacing: .16em; text-transform: uppercase; margin: 26px 0 8px; padding-top: 14px; border-top: 1px solid var(--line-4); }
.legal a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.legal code { font-size: 14px; background: rgba(255,255,255,.07); padding: 1px 6px; border: 1px solid var(--line-4); overflow-wrap: anywhere; }
.legal ul { padding-left: 22px; } .legal li { margin: 6px 0; }
.legal-nav { margin-top: 34px; padding-top: 14px; border-top: 1px solid var(--line-3); font: 600 13px/1.6 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.legal-nav a { text-decoration: none; color: var(--text-2); } .legal-nav a:hover { color: #fff; }
.login-links { margin-top: 10px; font: 600 11px/1.6 var(--display); letter-spacing: .2em; text-transform: uppercase; }
.login-links a, .hud-bottom a { color: var(--text-3); text-decoration: none; } .login-links a:hover, .hud-bottom a:hover { color: #fff; }
