/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-base: #0d1117;
  --bg-surface: #161b22;
  --bg-elevated: #1c2330;
  --bg-card: #1f2937;
  --bg-hover: #252d3a;

  --border: #2d3748;
  --border-light: #374151;

  --accent-blue: #3b82f6;
  --accent-blue-glow: rgba(59,130,246,0.25);
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --accent-purple: #8b5cf6;

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #4b5563;

  --sidebar-w: 220px;
  --sidebar-collapsed-w: 60px;
  --radius: 10px;
  --radius-lg: 16px;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.35s cubic-bezier(0.4,0,0.2,1);
}

html { font-size: 15px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  height: 100vh;
  display: flex;
  overflow: hidden; /* Prevent body scroll; panels scroll independently */
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

/* ===== SIDEBAR ===== */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: width var(--transition-slow), min-width var(--transition-slow);
  overflow: hidden;
  flex-shrink: 0;
  height: 100vh;
}

.sidebar.collapsed {
  width: var(--sidebar-collapsed-w);
  min-width: var(--sidebar-collapsed-w);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
  min-height: 64px;
}

.logo { display: flex; align-items: center; gap: 10px; overflow: hidden; white-space: nowrap; }
.logo-icon { font-size: 1.4rem; flex-shrink: 0; }
.logo-text { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); }

.sidebar-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 6px;
  width: 28px; height: 28px;
  cursor: pointer;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  transition: all var(--transition);
}
.sidebar-toggle:hover { background: var(--bg-hover); color: var(--text-primary); }
.sidebar.collapsed .sidebar-toggle { transform: rotate(180deg); }

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex; flex-direction: column; gap: 4px;
}

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap; overflow: hidden;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item.active { background: var(--accent-blue-glow); color: var(--accent-blue); font-weight: 600; }
.nav-icon { font-size: 1.1rem; flex-shrink: 0; width: 22px; text-align: center; }
.nav-label { font-size: 0.875rem; transition: opacity var(--transition-slow); }
.sidebar.collapsed .nav-label { opacity: 0; pointer-events: none; }

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}

.btn-icon-text {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  background: none; border: none;
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit; font-size: 0.875rem;
  white-space: nowrap; overflow: hidden;
  transition: all var(--transition);
  text-decoration: none; width: 100%;
}
.btn-icon-text:hover { background: var(--bg-hover); color: var(--text-primary); }
.btn-icon-text > span:first-child { flex-shrink: 0; width: 22px; text-align: center; }
.sidebar.collapsed .btn-icon-text .nav-label { opacity: 0; }

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  padding: 24px 28px 16px;
}

.page { display: flex; flex-direction: column; flex: 1; min-height: 0; animation: fadeIn 0.25s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f1f5f9, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.8rem;
  margin-top: 3px;
}

/* ===== GENERATOR LAYOUT ===== */
.generator-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  flex: 1;
  min-height: 0; /* CRITICAL: allows flex children to shrink */
}

.generator-form-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto; /* independently scrollable */
  min-height: 0;
}

/* ===== FORM ELEMENTS ===== */
.form-section { display: flex; flex-direction: column; gap: 12px; }

.section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  display: flex; align-items: center; gap: 8px;
}

.section-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.src-dot { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }
.dst-dot { background: var(--accent-purple); box-shadow: 0 0 8px var(--accent-purple); }
.img-dot { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }

.form-group { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.form-group label { font-size: 0.78rem; font-weight: 500; color: var(--text-secondary); }
.form-row { display: flex; gap: 12px; }
.required { color: var(--accent-red); }

.label-hint { color: var(--text-muted); font-weight: 400; font-size: 0.75rem; }

.input-styled, .select-styled {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  padding: 9px 12px;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.select-styled {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.select-styled option { background: var(--bg-elevated); }
.input-styled:focus, .select-styled:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px var(--accent-blue-glow);
}
.input-styled::placeholder { color: var(--text-muted); }

/* Textarea variant */
.textarea-notes {
  resize: vertical;
  min-height: 60px;
  line-height: 1.6;
  font-family: inherit;
}

/* Registry preview mini card */
.registry-preview {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 5px;
  animation: fadeIn 0.2s ease;
}
.preview-row { display: flex; gap: 8px; font-size: 0.78rem; align-items: baseline; }
.preview-key { color: var(--text-muted); min-width: 56px; }
.preview-val { color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; word-break: break-all; }

/* Arrow divider */
.arrow-divider {
  display: flex; align-items: center; gap: 8px;
  padding: 0 8px; flex-shrink: 0;
}
.arrow-line { flex: 1; height: 1px; background: var(--border); }
.arrow-icon { color: var(--text-muted); font-size: 0.65rem; }

.form-divider { height: 1px; background: var(--border); flex-shrink: 0; }

/* Generate button - prominent at bottom of form */
.btn-generate {
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  border: none;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px;
  width: 100%;
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(59,130,246,0.35);
  margin-top: auto; /* Push to bottom if there's remaining space */
  flex-shrink: 0;
  letter-spacing: 0.01em;
}
.btn-generate:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59,130,246,0.5);
}
.btn-generate:active { transform: translateY(0); }

/* ===== NAMESPACE TAGS ===== */
.ns-tags-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color var(--transition);
}
.ns-tags-wrap:focus-within { border-color: var(--accent-blue); box-shadow: 0 0 0 3px var(--accent-blue-glow); }

.ns-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  min-height: 0;
}
.ns-tags:empty { display: none; }

.ns-tag {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(59,130,246,0.15);
  border: 1px solid rgba(59,130,246,0.3);
  color: #93c5fd;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.8rem;
  font-family: 'JetBrains Mono', monospace;
  animation: fadeIn 0.15s ease;
}
.ns-tag-remove {
  background: none; border: none;
  color: #93c5fd; cursor: pointer;
  font-size: 0.85rem; line-height: 1;
  padding: 0 2px;
  opacity: 0.7;
  transition: opacity var(--transition);
}
.ns-tag-remove:hover { opacity: 1; }

.ns-add-row { display: flex; gap: 8px; }
.ns-tag-input { border: none !important; background: none !important; box-shadow: none !important; padding: 4px 4px !important; font-size: 0.82rem !important; }

.btn-add-ns {
  background: var(--bg-hover);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.78rem;
  padding: 4px 12px;
  white-space: nowrap;
  transition: all var(--transition);
  flex-shrink: 0;
}
.btn-add-ns:hover { background: var(--accent-blue); color: #fff; border-color: var(--accent-blue); }

/* Namespace selector container (in generator form) */
.ns-selector-container { animation: fadeIn 0.2s ease; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--accent-blue), #2563eb);
  border: none; border-radius: var(--radius);
  color: #fff; cursor: pointer;
  font-family: inherit; font-size: 0.875rem; font-weight: 600;
  padding: 10px 20px;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(59,130,246,0.3);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(59,130,246,0.45); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary); cursor: pointer;
  font-family: inherit; font-size: 0.8rem;
  padding: 8px 16px;
  transition: all var(--transition);
}
.btn-secondary:hover { background: var(--bg-hover); color: var(--text-primary); border-color: var(--border-light); }

.btn-ghost {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary); cursor: pointer;
  font-family: inherit; font-size: 0.875rem;
  padding: 9px 18px;
  transition: all var(--transition);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-icon {
  background: none; border: 1px solid var(--border);
  border-radius: 8px; color: var(--text-secondary);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 0.78rem;
  padding: 5px 10px;
  transition: all var(--transition);
}
.btn-icon:hover { background: var(--bg-hover); color: var(--text-primary); }

.btn-danger {
  background: none; border: 1px solid rgba(239,68,68,0.3);
  border-radius: 8px; color: var(--accent-red);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 0.78rem;
  padding: 5px 10px;
  transition: all var(--transition);
}
.btn-danger:hover { background: rgba(239,68,68,0.1); border-color: var(--accent-red); }

.btn-login {
  background: none; border: 1px solid rgba(250,204,21,0.3);
  border-radius: 8px; color: #fbbf24;
  cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  font-family: inherit; font-size: 0.78rem;
  padding: 5px 10px;
  transition: all var(--transition);
}
.btn-login:hover { background: rgba(250,204,21,0.1); border-color: #fbbf24; }

/* ===== OUTPUT PANEL ===== */
.output-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.output-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 10px;
  flex-shrink: 0;
}
.output-header h2 { font-size: 0.9rem; font-weight: 600; }

.method-tabs {
  display: flex; gap: 4px;
  background: var(--bg-elevated);
  border-radius: 8px; padding: 3px;
}
.tab-btn {
  background: none; border: none;
  border-radius: 6px; color: var(--text-secondary);
  cursor: pointer; font-family: inherit; font-size: 0.78rem;
  padding: 5px 14px;
  transition: all var(--transition); white-space: nowrap;
}
.tab-btn.active { background: var(--accent-blue); color: #fff; font-weight: 500; }
.tab-btn:not(.active):hover { background: var(--bg-hover); color: var(--text-primary); }

.output-body {
  flex: 1; overflow-y: auto;
  padding: 20px;
  display: flex; flex-direction: column;
}

.output-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; flex: 1;
  color: var(--text-muted);
}
.empty-icon { font-size: 2.2rem; opacity: 0.5; }
.output-empty p { font-size: 0.875rem; text-align: center; line-height: 1.6; }

#outputCommands { display: flex; flex-direction: column; gap: 14px; }

.cmd-group { display: flex; flex-direction: column; gap: 10px; }

.cmd-block {
  background: var(--bg-base);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.cmd-block:hover { border-color: var(--border-light); }

.cmd-block-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.cmd-label {
  font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
}
.cmd-copy {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 0.75rem; padding: 2px 8px;
  border-radius: 4px;
  transition: all var(--transition); font-family: inherit;
}
.cmd-copy:hover { background: var(--bg-hover); color: var(--accent-blue); }
.cmd-copy.copied { color: var(--accent-green); }

.cmd-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem; color: var(--text-primary);
  padding: 12px 14px;
  white-space: pre-wrap; word-break: break-all;
  line-height: 1.75;
}
.cmk-keyword { color: var(--accent-cyan); }
.cmk-string { color: var(--accent-green); }
.cmk-flag { color: var(--accent-orange); }
.cmk-comment { color: var(--text-muted); font-style: italic; }

.output-actions { display: flex; gap: 10px; padding-top: 4px; }

/* Skopeo platform override options */
.skopeo-options {
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.skopeo-override-label code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent-orange);
  background: rgba(245,158,11,0.1);
  padding: 1px 5px;
  border-radius: 4px;
}

/* ===== REGISTRY GRID (Registries page) ===== */
.registry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
  overflow-y: auto;
  padding-bottom: 20px;
  align-content: start;
}

.registry-empty {
  grid-column: 1 / -1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; padding: 80px 32px;
  color: var(--text-muted);
}

.registry-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  animation: fadeIn 0.2s ease;
}
.registry-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-info { flex: 1; min-width: 0; }
.card-name { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 3px; }
.card-domain {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem; color: var(--text-secondary);
  word-break: break-all;
}
.card-actions { display: flex; gap: 5px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }

.card-meta { display: flex; flex-direction: column; gap: 5px; }
.card-row { display: flex; gap: 8px; font-size: 0.78rem; align-items: baseline; }
.card-key { color: var(--text-muted); min-width: 60px; flex-shrink: 0; }
.card-val { color: var(--text-secondary); font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; }

.ns-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.perm-badges { display: flex; gap: 5px; }

.badge {
  padding: 2px 9px; border-radius: 99px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.03em;
}
.badge-pull { background: rgba(6,182,212,0.15); color: var(--accent-cyan); border: 1px solid rgba(6,182,212,0.3); }
.badge-push { background: rgba(139,92,246,0.15); color: var(--accent-purple); border: 1px solid rgba(139,92,246,0.3); }
.badge-ns { background: rgba(59,130,246,0.12); color: #93c5fd; border: 1px solid rgba(59,130,246,0.25); font-family: 'JetBrains Mono', monospace; }
.badge-none { background: rgba(75,85,99,0.2); color: var(--text-muted); }

.card-notes {
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(59,130,246,0.06);
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.15s ease;
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 480px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  animation: slideUp 0.2s cubic-bezier(0.34,1.56,0.64,1);
}

.modal.modal-sm { width: 440px; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 0.95rem; font-weight: 600; }
.modal-close {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 1rem; padding: 4px;
  border-radius: 4px; transition: all var(--transition);
}
.modal-close:hover { color: var(--text-primary); background: var(--bg-hover); }

.modal-body {
  padding: 18px 22px;
  display: flex; flex-direction: column; gap: 14px;
}

.modal-footer {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}

.modal-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.modal-warn {
  font-size: 0.78rem;
  color: var(--accent-orange);
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  line-height: 1.5;
}

/* Checkbox */
.checkbox-group { display: flex; gap: 16px; }
.checkbox-label {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 0.875rem;
  color: var(--text-secondary); user-select: none;
}
.checkbox-label input { display: none; }
.checkmark {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 4px; background: var(--bg-elevated);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.checkbox-label input:checked ~ .checkmark { background: var(--accent-blue); border-color: var(--accent-blue); }
.checkbox-label input:checked ~ .checkmark::after { content: '✓'; font-size: 0.65rem; color: #fff; font-weight: 700; }
.checkbox-label:hover .checkmark { border-color: var(--accent-blue); }

/* Password field */
.pass-wrap { position: relative; }
.pass-wrap .input-styled { padding-right: 40px; }
.pass-toggle {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  font-size: 0.9rem; padding: 4px;
  color: var(--text-muted); transition: color var(--transition);
}
.pass-toggle:hover { color: var(--text-primary); }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary); font-size: 0.85rem;
  padding: 10px 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
  opacity: 0; pointer-events: none; z-index: 2000;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-color: rgba(16,185,129,0.4); }
.toast.error { border-color: rgba(239,68,68,0.4); }
.toast.info { border-color: rgba(59,130,246,0.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .generator-layout { grid-template-columns: 1fr; overflow-y: auto; }
  .generator-form-panel { overflow-y: visible; }
  .main-content { overflow-y: auto; }
}
@media (max-width: 600px) {
  .form-row { flex-direction: column; }
  .sidebar { display: none; }
  .main-content { padding: 16px; }
}
