/* ============================================================
   Portfolio Forge — style.css
   A monochrome editorial design system with sharp typography
   ============================================================ */

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font-display: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --bg: #000;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.12);
  --border-strong: rgba(255,255,255,0.4);

  --text-primary: #fff;
  --text-muted: rgba(255,255,255,0.45);
  --text-dim: rgba(255,255,255,0.25);

  --accent-warn: rgba(255,165,0,0.9);
  --accent-warn-border: rgba(255,165,0,0.4);
  --accent-warn-bg: rgba(255,165,0,0.04);
  --accent-warn-link: rgba(255,165,0,0.7);

  --accent-ok: rgba(74,222,128,0.8);
  --accent-ok-border: rgba(74,222,128,0.4);
  --accent-ok-bg: rgba(74,222,128,0.03);

  --accent-error: #e53e3e;
  --accent-success: #22c55e;

  --badge-gold: rgba(250,200,50,0.8);
  --badge-blue: rgba(66,165,245,0.8);
  --badge-green: rgba(100,220,120,0.8);
  --badge-purple: rgba(180,100,255,0.8);

  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-pill: 20px;

  --transition-fast: 0.2s ease;
  --transition-std: 0.25s ease;
  --transition-slow: 0.4s ease;

  --max-width: 1000px;
  --sidebar-width: 300px;
}

html {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text-primary);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body { min-height: 100vh; position: relative; }

/* ── Noise Overlay ───────────────────────────────────────── */
.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.3;
}

/* ── Layout Utilities ────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes sweep {
  0%   { transform: scaleX(0); opacity: 1; }
  60%  { transform: scaleX(0.8); opacity: 0.5; }
  100% { transform: scaleX(1); opacity: 0; }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--text-primary);
}
.logo-bolt {
  color: var(--text-dim);
  margin: 0 4px;
  font-size: 16px;
}
.logo-blink::after {
  content: "_";
  animation: blink 1s step-end infinite;
}
.header-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-ok);
  animation: blink 2s ease-in-out infinite;
  flex-shrink: 0;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 56px 0 40px;
  animation: fade-in 0.5s ease-out 0.1s both;
}
.eyebrow {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.hero-sub {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.8;
  max-width: 520px;
}

/* ── Main Content ────────────────────────────────────────── */
.main-content {
  padding-bottom: 96px;
}

/* ── Steps ───────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  animation: fade-in 0.5s ease-out 0.2s both;
}
.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  transition: var(--transition-std);
  flex-shrink: 0;
  user-select: none;
}
.step-num.active {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
}
.step-num.done {
  border-color: var(--border-strong);
  color: var(--border-strong);
}
.step-conn {
  height: 1px;
  flex: 1;
  max-width: 60px;
  background: var(--border);
  transition: var(--transition-slow);
}
.step-conn.done {
  background: rgba(255,255,255,0.5);
}

/* ── App Grid ────────────────────────────────────────────── */
.app-grid {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 24px;
  animation: fade-in 0.5s ease-out 0.3s both;
}
.app-left { min-width: 0; }

/* ── Card Panel ──────────────────────────────────────────── */
.card-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
}
.panel-api {
  border-color: var(--accent-warn-border);
  background: var(--accent-warn-bg);
}
.panel-api.key-ok {
  border-color: var(--accent-ok-border);
  background: var(--accent-ok-bg);
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.panel-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.panel-label.warning { color: var(--accent-warn); }
.key-status {
  font-size: 11px;
  color: var(--text-dim);
  transition: color var(--transition-fast);
}

/* ── Provider Pills ──────────────────────────────────────── */
.provider-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.pvdr-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition-fast);
  border: 1px solid var(--border);
  background: none;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.pvdr-btn:hover {
  border-color: var(--border-strong);
  color: rgba(255,255,255,0.7);
}
.pvdr-btn.active {
  background: var(--text-primary);
  color: var(--bg);
  border-color: var(--text-primary);
}

/* ── API Key Input ───────────────────────────────────────── */
.key-row {
  display: flex;
  gap: 8px;
}
.key-input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast);
}
.key-input:focus { border-color: var(--text-primary); }
.key-input::placeholder { color: var(--text-dim); }
.key-vis-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}
.key-vis-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.key-help {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 8px;
  line-height: 1.6;
}
.link-warning {
  color: var(--accent-warn-link);
  text-underline-offset: 3px;
}

/* ── Key Pool ────────────────────────────────────────────── */
.key-add-btn {
  background: var(--text-primary);
  color: var(--bg);
  border: none;
  width: 38px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.key-add-btn:hover { background: #ccc; }

.key-pool-wrap {
  margin-top: 12px;
}
.key-pool-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.key-pool-label {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.key-count {
  font-size: 10px;
  color: var(--accent-ok);
  letter-spacing: 0.05em;
}
.key-pool-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 28px;
}
.key-pool-empty {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0;
  padding: 8px 0;
}
.key-pool-empty strong { color: rgba(255,255,255,0.4); }

.key-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  font-size: 11px;
  gap: 8px;
  animation: badge-in 0.2s ease-out both;
}
@keyframes badge-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.key-badge.valid        { border-color: var(--accent-ok-border);   background: var(--accent-ok-bg); }
.key-badge.invalid      { border-color: var(--accent-warn-border);  background: var(--accent-warn-bg); }
.key-badge.rate-limited { border-color: rgba(255,165,0,0.3);       background: rgba(255,165,0,0.05); }

.key-badge-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  overflow: hidden;
  color: rgba(255,255,255,0.7);
}
.key-badge-preview {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.05em;
}
.key-badge-tag {
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: var(--text-dim);
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.key-badge.rate-limited .key-badge-tag {
  background: rgba(255,165,0,0.15);
  color: rgba(255,165,0,0.8);
}
.key-badge-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 12px;
  padding: 0 0 0 4px;
  flex-shrink: 0;
  transition: color var(--transition-fast);
  line-height: 1;
}
.key-badge-remove:hover { color: var(--text-primary); }

/* ── Form Sections ───────────────────────────────────────── */
.form-section { margin-bottom: 24px; }
.section-label {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* ── Upload Zone ─────────────────────────────────────────── */
.upload-zone {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-std);
  position: relative;
  overflow: hidden;
}
.upload-zone:hover,
.upload-zone:focus,
.upload-zone.drag-over {
  border-color: var(--text-primary);
  background: rgba(255,255,255,0.03);
  outline: none;
}
.upload-zone.loaded {
  border-style: solid;
  border-color: var(--text-primary);
}
.upload-icon {
  width: 40px;
  height: 40px;
  color: rgba(255,255,255,0.2);
  margin: 0 auto 10px;
  display: block;
}
.upload-label {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.upload-hint {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ── File Bar ────────────────────────────────────────────── */
.file-bar {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  font-size: 12px;
  margin-top: 10px;
}
.file-bar.show { display: flex; }
.file-icon {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.file-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255,255,255,0.8);
}
.file-size { color: var(--text-dim); flex-shrink: 0; }
.file-remove {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  padding: 0 0 0 8px;
  transition: color var(--transition-fast);
}
.file-remove:hover { color: var(--text-primary); }

/* ── Textarea ────────────────────────────────────────────── */
.textarea {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 14px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast);
  width: 100%;
  resize: vertical;
  line-height: 1.6;
}
.textarea:focus { border-color: var(--text-primary); }
.textarea::placeholder { color: var(--text-dim); }

/* ── Prompt Chips ────────────────────────────────────────── */
.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-dim);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.03em;
}
.chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* ── Generate Button ─────────────────────────────────────── */
.generate-area { margin-bottom: 8px; }
.gen-btn {
  width: 100%;
  background: var(--text-primary);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 16px;
  border: none;
  border-radius: var(--radius-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.gen-btn:hover:not(:disabled) { background: #e0e0e0; }
.gen-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.status-line {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 10px;
  min-height: 20px;
}

/* ── Loading Box ─────────────────────────────────────────── */
.loading-box {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 32px;
  text-align: center;
}
.loading-box[hidden] { display: none; }
.loading-bar-track {
  height: 1px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 16px;
}
.loading-bar-fill {
  height: 100%;
  background: var(--text-primary);
  animation: sweep 1.8s ease-in-out infinite;
  transform-origin: left;
}
.loading-step {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.loading-provider {
  font-size: 11px;
  color: var(--text-dim);
}
.stage-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 14px;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
}
.stage.active { color: rgba(255,255,255,0.7); }
.stage.done   { color: var(--text-primary); }

/* ── Sidebar ─────────────────────────────────────────────── */
.app-sidebar {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
  font-size: 12px;
  height: fit-content;
  position: sticky;
  top: 80px;
  line-height: 1.7;
}
.sidebar-heading {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.how-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.how-list li {
  display: flex;
  gap: 10px;
  color: var(--text-muted);
}
.how-num {
  color: var(--text-dim);
  flex-shrink: 0;
}
.sidebar-divider {
  border-top: 1px solid var(--border);
  margin: 12px 0;
}
.sidebar-sub-heading {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.provider-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pvdr-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.pvdr-badge.gold   { color: var(--badge-gold); }
.pvdr-badge.blue   { color: var(--badge-blue); }
.pvdr-badge.green  { color: var(--badge-green); }
.pvdr-badge.purple { color: var(--badge-purple); }
.sidebar-tech  { font-size: 10px; color: var(--text-dim); }
.sidebar-model { font-size: 10px; color: rgba(255,255,255,0.4); margin-top: 4px; }

/* ── Preview Section ─────────────────────────────────────── */
.preview-section {
  margin-top: 32px;
  animation: reveal-up 0.4s ease-out both;
}
.preview-section[hidden] { display: none; }
.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.preview-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}
.preview-sub {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 2px;
}
.device-toggle {
  display: flex;
  gap: 4px;
}
.dev-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  letter-spacing: 0.06em;
}
.dev-btn.active,
.dev-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}
.iframe-wrap {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 560px;
  background: #fff;
  transition: max-width var(--transition-slow), margin var(--transition-slow);
}
.iframe-wrap.mobile {
  max-width: 390px;
  margin: 0 auto;
}
.iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.preview-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.act-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.act-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.act-primary {
  background: var(--text-primary);
  color: var(--bg);
  border: none;
}
.act-primary:hover { background: #ddd; }
.act-sec {
  background: none;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.act-sec:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* ── Code Modal ──────────────────────────────────────────── */
.code-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 200;
  overflow: auto;
  padding: 24px;
}
.code-modal.open { display: block; }
.code-modal-inner {
  max-width: 900px;
  margin: 0 auto;
}
.code-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.code-modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.code-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-mono);
  transition: color var(--transition-fast);
}
.code-close-btn:hover { color: var(--text-primary); }
.code-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.code-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.code-tab.active {
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.code-display {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: rgba(255,255,255,0.8);
  overflow: auto;
  max-height: 65vh;
  white-space: pre-wrap;
  line-height: 1.7;
  tab-size: 2;
}
.copy-btn {
  margin-top: 12px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.copy-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
}

/* ── Toast ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 11px;
  z-index: 300;
  transition: transform var(--transition-std);
  white-space: nowrap;
  max-width: 90vw;
  text-align: center;
  pointer-events: none;
}
.toast.show   { transform: translateX(-50%) translateY(0); }
.toast.error  { background: var(--accent-error); color: #fff; }
.toast.success{ background: var(--accent-success); color: #000; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.2);
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.3); border-radius: 2px; }

/* ── Focus visible ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 2px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    display: none;
  }
  .preview-actions {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 28px;
  }
  .header-status {
    display: none;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .upload-zone { padding: 32px 16px; }
  .preview-actions { grid-template-columns: 1fr 1fr; }
  .preview-actions .act-btn:first-child { grid-column: 1 / -1; }
}
