:root {
  --bg: #0e0e0e;
  --card: #1a1919;
  --card-2: #1e1d1d;
  --border: #252525;
  --border-strong: #2f2f2f;
  --text: #ffffff;
  --muted: #999999;
  --accent: #612bd3;
  --accent-hover: #7236f1;
  --accent-alt: #d82d7e;
  --error: #ff6666;
  --warn: #ffb547;
  --ok: #6dd58c;
  --font-sans: "Helvetica Neue", Helvetica, Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Consolas", "Menlo", "SFMono-Regular", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 14px/1.5 var(--font-sans);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* --- APP SHELL --- */

.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 18px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  padding: 6px 12px 20px;
  color: var(--text);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  box-shadow: 0 0 12px rgba(97, 43, 211, 0.55);
}

.brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
  background: transparent;
}
.brand-logo.brand-logo-sm { width: 20px; height: 20px; border-radius: 4px; }
.brand-logo.brand-logo-lg { width: 40px; height: 40px; border-radius: 8px; }

.sidebar-section {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  padding: 14px 12px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.12s ease, color 0.12s ease;
  position: relative;
}
.nav-item:hover { background: rgba(255,255,255,0.03); color: var(--text); }
.nav-item.active {
  background: rgba(97, 43, 211, 0.14);
  color: #fff;
}
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.nav-icon {
  color: var(--accent);
  font-size: 10px;
  width: 14px;
  display: inline-flex;
  justify-content: center;
}
.nav-item .nav-icon { color: currentColor; opacity: 0.6; }
.nav-item.active .nav-icon { color: var(--accent); opacity: 1; }

.nav-item.nav-sub {
  padding-left: 32px;
  font-size: 13px;
  font-weight: 400;
}
.nav-item.nav-sub .nav-icon { font-size: 8px; opacity: 0.45; }
.nav-item.nav-sub.active { background: rgba(97, 43, 211, 0.10); }
.nav-item.nav-sub.active::before { left: -12px; }

.sidebar-footer {
  margin-top: auto;
  padding: 14px 12px 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  border-top: 1px solid var(--border);
}

/* --- MAIN PANEL --- */

.main {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.page-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
}
.page-subtitle {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
  max-width: 720px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

.job-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.section-heading h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

/* --- CARDS --- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

h1, h2, h3 { margin-top: 0; }

.muted { color: var(--muted); }
.hidden { display: none !important; }
.truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

code {
  background: rgba(255,255,255,0.05);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--font-mono);
}

/* --- HERO --- */

.hero {
  background:
    radial-gradient(1200px 300px at 100% 0%, rgba(216,45,126,0.18), transparent 60%),
    radial-gradient(900px 400px at 0% 100%, rgba(97,43,211,0.25), transparent 60%),
    var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.hero h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.hero-sub {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 640px;
}
.hero-form {
  display: flex;
  flex-direction: row;
  gap: 10px;
  max-width: 760px;
  align-items: stretch;
}
.hero-form input {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  background: rgba(0,0,0,0.35);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font: inherit;
}
.hero-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(97, 43, 211, 0.25);
}
.hero-form button {
  height: 48px;
  padding: 0 24px;
  align-self: auto;
}

/* --- FORMS --- */

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 640px;
}

form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

form input, form select, form textarea {
  background: rgba(0,0,0,0.35);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
}

form textarea {
  font: 12px/1.4 var(--font-mono);
  min-height: 140px;
  resize: vertical;
}

form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(97, 43, 211, 0.25);
}

/* --- BUTTONS --- */

button {
  background: var(--accent);
  color: #ffffff;
  border: 0;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  align-self: flex-start;
  transition: background 0.15s ease;
}
button:hover { background: var(--accent-hover); }
button:disabled { opacity: 0.5; pointer-events: none; }

button.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}
button.secondary:hover {
  background: rgba(97, 43, 211, 0.10);
  border-color: var(--accent);
}
button.secondary.danger { color: var(--error); border-color: var(--border-strong); }
button.secondary.danger:hover {
  background: rgba(255, 102, 102, 0.10);
  border-color: var(--error);
}

/* --- TABS --- */

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: -8px;
}
.tab {
  padding: 10px 16px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
  align-self: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tab:hover { color: var(--text); background: transparent; }
.tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.tab-count {
  background: var(--border);
  color: var(--muted);
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 999px;
  min-width: 20px;
  text-align: center;
}
.tab.active .tab-count {
  background: var(--accent);
  color: #fff;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* --- JOB CARDS --- */

.job-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.job-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.12s ease, transform 0.12s ease, background 0.12s ease;
}
.job-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  background: var(--card-2);
}
.job-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.job-card-id {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
}
.job-card-url {
  color: var(--muted);
  font-size: 12px;
}
.job-card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 4px;
}
.job-card-date { font-size: 11px; margin-left: auto; }
.job-card-empty { font-style: italic; font-size: 12px; }

/* --- EMPTY STATE --- */

.empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  background: rgba(255,255,255,0.015);
}
.empty-state-glyph {
  font-size: 36px;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 10px;
}
.empty-state-title {
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.empty-state-sub { font-size: 13px; }

/* --- BADGES --- */

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #2a2a2a;
  color: #ddd;
}

.stage-created, .stage-downloading, .stage-chunking { background: #3a1f6b; color: #d9c4ff; }
.stage-processing { background: #55214a; color: #ffb7e6; }
.stage-done { background: #294d33; color: #b0f0c5; }
.stage-error { background: #5c1e1e; color: #ffb0b0; }
.stage-cancelled { background: #3d3d3d; color: #c0c0c0; }
.stage-cli { background: #2a2a2a; color: var(--muted); }

.status-complete { background: #294d33; color: #b0f0c5; }
.status-skipped  { background: #4a3d2a; color: #ffd8a0; }
.status-failed   { background: #5c1e1e; color: #ffb0b0; }

.badge.active { background: #294d33; color: #b0f0c5; }
.badge.inactive { background: #2a2a2a; color: var(--muted); }
.badge.warn { background: #4a3d2a; color: #ffd8a0; }
.badge.pass { background: #294d33; color: #b0f0c5; }
.badge.fail { background: #5c1e1e; color: #ffb0b0; }
.badge.testing { background: #3a1f6b; color: #d9c4ff; }

/* --- TABLE --- */

.table-wrap { overflow-x: auto; }
.jobs-table {
  width: 100%;
  border-collapse: collapse;
}
.jobs-table th, .jobs-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.jobs-table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--card-2);
}
.jobs-table a { color: var(--accent); text-decoration: none; }
.jobs-table a:hover { color: var(--accent-hover); text-decoration: underline; }
.jobs-table tbody tr:hover { background: rgba(255,255,255,0.02); }

.row-active { background: rgba(97, 43, 211, 0.10); }
.row-active:hover { background: rgba(97, 43, 211, 0.14) !important; }

/* --- LOG + CLIPS --- */

.error {
  color: var(--error);
  margin-top: 10px;
  font-size: 13px;
}

.log {
  height: 380px;
  overflow-y: auto;
  background: #050505;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  font: 12px/1.55 var(--font-mono);
}
.log-line { white-space: pre-wrap; }
.log-warn { color: var(--warn); }
.log-error { color: var(--error); }

.clip-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.clip-pair {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: var(--card-2);
}
.clip-title {
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.clip-pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.clip-pair-row-with-prev {
  grid-template-columns: 1fr 1fr 1fr;
}
.clip-pair-row video {
  width: 100%;
  max-height: 320px;
  background: #000;
  border-radius: 8px;
  object-fit: contain;
}

/* --- MISC --- */

.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.actions button { padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.empty { color: var(--muted); font-style: italic; padding: 8px 0; }
.subhelp { color: var(--muted); font-size: 12px; margin-top: -4px; text-transform: none; letter-spacing: normal; font-weight: 400; }
.test-detail {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- SIDEBAR USER CHIP --- */

.sidebar-user {
  margin-top: auto;
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-user-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.sidebar-user-email {
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-user-plan {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.plan-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #2a2a2a;
  color: #ddd;
}
.plan-badge.plan-starter { background: rgba(97, 43, 211, 0.20); color: #d9c4ff; }
.plan-badge.plan-pro { background: linear-gradient(135deg, var(--accent), var(--accent-alt)); color: #fff; }

.sidebar-quota {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}
.sidebar-quota-bar {
  margin-top: 6px;
  height: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  overflow: hidden;
}
.sidebar-quota-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
}

/* --- PUBLIC (marketing) SHELL --- */

body.public {
  background:
    radial-gradient(1000px 500px at 100% -10%, rgba(216,45,126,0.10), transparent 60%),
    radial-gradient(800px 400px at -5% 20%, rgba(97,43,211,0.15), transparent 60%),
    var(--bg);
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
}
.public-nav-links {
  display: flex;
  gap: 24px;
  margin-left: 24px;
}
.public-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.public-nav-links a:hover { color: var(--text); }
.public-nav-cta {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #fff;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--accent); background: rgba(97, 43, 211, 0.06); }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }

.public-main { max-width: 1200px; margin: 0 auto; padding: 40px; }

.public-footer {
  border-top: 1px solid var(--border);
  margin-top: 100px;
  padding: 48px 0 24px;
  background: rgba(0,0,0,0.20);
}
.public-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.public-footer-col { display: flex; flex-direction: column; gap: 8px; }
.public-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 6px;
}
.public-footer-blurb { margin: 0; font-size: 13px; max-width: 320px; line-height: 1.55; }
.public-footer-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text);
  margin-bottom: 6px;
}
.public-footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 3px 0;
}
.public-footer-col a:hover { color: var(--text); }
.public-footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 40px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}

/* --- LANDING --- */

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 10px;
  background: rgba(97, 43, 211, 0.10);
  border: 1px solid rgba(97, 43, 211, 0.25);
  border-radius: 999px;
  margin-bottom: 12px;
}
.landing-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 60px 0 80px;
}
.landing-hero-inner h1 {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 6px 0 20px;
}
.landing-sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 560px;
  margin: 0 0 28px;
}
.landing-cta {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.app-purpose-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.app-purpose-box strong { color: var(--text); display: block; margin-bottom: 4px; }
.app-purpose-box p { margin: 0; }
.app-purpose-box a { color: var(--accent-light, #a78bfa); }
.app-purpose-box code { font-size: 12px; background: rgba(255,255,255,0.08); padding: 1px 5px; border-radius: 4px; }
.landing-microproof {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.microproof-item { display: inline-flex; align-items: center; gap: 4px; }

.landing-hero-mock {
  display: flex;
  justify-content: center;
}
.mock-window {
  width: 100%;
  max-width: 460px;
  background: #0b0b0b;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(97, 43, 211, 0.20), 0 8px 30px rgba(0,0,0,0.55);
  overflow: hidden;
}
.mock-window-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #131313;
  border-bottom: 1px solid var(--border);
}
.mock-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #333;
}
.mock-window-bar span:nth-child(1) { background: #ff5f56; }
.mock-window-bar span:nth-child(2) { background: #ffbd2e; }
.mock-window-bar span:nth-child(3) { background: #27c93f; }
.mock-window-body {
  padding: 16px 18px;
  font: 13px/1.7 var(--font-mono);
  color: var(--text);
}
.mock-row { display: flex; align-items: center; gap: 10px; }
.mock-dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: #333;
  flex-shrink: 0;
}
.mock-dot.ok { background: var(--ok); box-shadow: 0 0 8px rgba(109, 213, 140, 0.6); }
.mock-dot.run {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(97, 43, 211, 0.8);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.landing-section {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.section-title { margin-bottom: 32px; }
.section-title h2 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(97, 43, 211, 0.15);
  color: var(--accent);
  font-size: 16px;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}
.feature-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

.landing-how { background: rgba(0,0,0,0.15); border-radius: 20px; padding: 60px 40px; margin-top: 40px; }
.how-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.how-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.how-num {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.how-list h4 { margin: 4px 0 4px; font-size: 15px; font-weight: 700; }
.how-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* --- PRICING --- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}
.pricing-grid-wide { max-width: 900px; }
.pricing-grid-compact { max-width: none; }
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pricing-card-featured {
  border-color: var(--accent);
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(216,45,126,0.15), transparent 60%),
    var(--card);
  box-shadow: 0 0 0 1px rgba(97,43,211,0.4), 0 20px 60px rgba(97, 43, 211, 0.15);
}
.pricing-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.pricing-plan {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.pricing-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pricing-price span {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  margin-left: 4px;
}
.pricing-sub { font-size: 13px; margin: -8px 0 0; }
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-features li {
  color: var(--text);
  font-size: 14px;
  padding-left: 22px;
  position: relative;
}
.pricing-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.landing-pricing-foot { text-align: center; margin-top: 20px; font-size: 12px; }

.pricing-faq {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.faq-item h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.faq-item p { margin: 0; font-size: 13px; line-height: 1.55; }
.faq-item a { color: var(--accent); text-decoration: none; }
.faq-item a:hover { text-decoration: underline; }

.landing-cta-band {
  margin-top: 60px;
  padding: 40px;
  border-radius: 20px;
  background:
    radial-gradient(600px 300px at 100% 100%, rgba(216,45,126,0.20), transparent 60%),
    radial-gradient(500px 250px at 0% 0%, rgba(97,43,211,0.20), transparent 60%),
    var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.landing-cta-band h2 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
.landing-cta-band p { margin: 0; }
.landing-cta-band-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- TRUST STRIP --- */

.trust-strip {
  margin: 20px 0 40px;
  padding: 28px 32px;
  border-radius: 16px;
  background: rgba(0,0,0,0.20);
  border: 1px solid var(--border);
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  text-align: center;
}
.trust-item .trust-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust-item .trust-num span {
  font-size: 14px;
  margin-left: 4px;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
}
.trust-item .trust-lbl {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-top: 4px;
}

/* --- FAQ (details/summary) --- */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-row {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px 20px;
  transition: border-color 0.15s ease;
}
.faq-row[open] { border-color: var(--accent); }
.faq-row summary {
  padding: 16px 0;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row summary::after {
  content: "+";
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  font-weight: 300;
  transition: transform 0.2s ease;
}
.faq-row[open] summary::after { content: "\2013"; }
.faq-row p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.faq-row p a { color: var(--accent); text-decoration: none; }
.faq-row p a:hover { text-decoration: underline; }

/* --- PAGE HERO (used by features/about/contact/legal) --- */

.page-hero {
  padding: 80px 0 40px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.page-hero h1 {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 8px 0 18px;
}
.page-sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 640px;
}

/* --- COMPARE TABLE (features page) --- */

.compare-table {
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
}
.compare-table.compare-table-3col { max-width: 920px; }
.compare-table.compare-table-3col .compare-row { grid-template-columns: 2fr 1fr 1fr 1fr; }
.compare-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.compare-row:last-child { border-bottom: 0; }
.compare-row > div:first-child { color: var(--muted); }
.compare-row > div:not(:first-child) { text-align: center; }
.compare-head {
  background: rgba(97, 43, 211, 0.10);
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.compare-head > div:first-child { color: var(--text); }

/* --- ABOUT --- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.about-grid h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.about-body {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 14px;
}
.about-values {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-values li {
  padding-left: 22px;
  position: relative;
  color: var(--muted);
  line-height: 1.55;
}
.about-values li strong { color: var(--text); }
.about-values li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.roadmap-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.roadmap-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.roadmap-tag-next { background: rgba(97, 43, 211, 0.30); }
.roadmap-tag-soon { background: rgba(255, 255, 255, 0.10); color: var(--muted); }
.roadmap-item h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.roadmap-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* --- CONTACT --- */

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0 40px;
}
.contact-form-wrap {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 32px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: none;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-form input, .contact-form textarea {
  background: rgba(0,0,0,0.35);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 12px 14px;
  border-radius: 10px;
  font: inherit;
}
.contact-form textarea {
  font: 14px/1.55 var(--font-sans);
  min-height: 180px;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(97, 43, 211, 0.20);
}
.contact-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form-foot { text-align: center; font-size: 12px; margin-top: 6px; }
.contact-form button { align-self: stretch; margin-top: 6px; }

.contact-success { text-align: center; padding: 20px 0; }
.contact-success-glyph {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #fff;
  font-size: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-success h2 { font-size: 26px; margin: 0 0 8px; letter-spacing: -0.01em; }
.contact-success p { max-width: 440px; margin: 0 auto 20px; }
.contact-success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.contact-side { display: flex; flex-direction: column; gap: 14px; }
.contact-side-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
}
.contact-side-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 8px;
}
.contact-side-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.contact-side-value:hover { color: var(--accent); }
.contact-side-note { font-size: 12px; margin-top: 4px; }
.contact-side-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.contact-side-list strong { color: var(--text); }
.contact-side-cta {
  background:
    radial-gradient(400px 200px at 100% 0%, rgba(216,45,126,0.15), transparent 60%),
    var(--card);
  border-color: rgba(97,43,211,0.4);
}

/* --- LEGAL PAGES --- */

.legal-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 0 40px;
}
.legal-page h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
}
.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 10px;
  letter-spacing: -0.01em;
}
.legal-page p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px;
}
.legal-page ul {
  color: var(--muted);
  line-height: 1.7;
  padding-left: 20px;
  margin: 0 0 12px;
}
.legal-page ul li { margin-bottom: 6px; }
.legal-page ul li strong { color: var(--text); }
.legal-page a { color: var(--accent); text-decoration: none; }
.legal-page a:hover { text-decoration: underline; }

@media (max-width: 780px) {
  .public-footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .public-footer-bottom { padding: 24px 20px 0; }
  .page-hero { padding: 40px 0 20px; }
  .page-hero h1 { font-size: 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 20px; }
  .contact-form-row { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .compare-row { grid-template-columns: 1fr; text-align: left; gap: 6px; padding: 12px 16px; }
  .compare-row > div:not(:first-child) { text-align: left; }
  .compare-head { display: none; }
}

/* --- AUTH FORMS --- */

.auth-page {
  min-height: 60vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 32px;
}
.auth-card h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.auth-card > p { margin: 0 0 20px; font-size: 13px; }
.auth-card > p a { color: var(--accent); text-decoration: none; }
.auth-card > p a:hover { text-decoration: underline; }
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: none;
}
.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-form input {
  background: rgba(0,0,0,0.35);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 12px 14px;
  border-radius: 10px;
  font: inherit;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(97, 43, 211, 0.20);
}
.auth-form button { margin-top: 4px; }
.auth-error {
  background: rgba(255, 102, 102, 0.10);
  border: 1px solid rgba(255, 102, 102, 0.30);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--error);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 16px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-alt {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
}
.auth-alt a { color: var(--accent); text-decoration: none; }
.auth-alt a:hover { text-decoration: underline; }

/* --- ACCOUNT PAGE --- */

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.account-grid > .card:last-child { grid-column: 1 / -1; }
.card-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 16px;
}
.account-kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.account-kv > div > span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.account-kv > div > div { font-size: 14px; }
.usage-big {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.usage-bar {
  margin: 14px 0 8px;
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  overflow: hidden;
}
.usage-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-alt));
}
.usage-meta { font-size: 12px; }

@media (max-width: 780px) {
  .landing-hero { grid-template-columns: 1fr; }
  .landing-hero-inner h1 { font-size: 38px; }
  .public-nav { padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
  .public-nav-links { margin-left: 0; }
  .public-main { padding: 20px; }
  .landing-how { padding: 40px 20px; }
  .account-grid { grid-template-columns: 1fr; }
  .account-grid > .card:last-child { grid-column: auto; }
}

/* --- RESPONSIVE --- */

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .sidebar-brand { padding: 0 8px 0 0; }
  .sidebar-section, .sidebar-footer, .sidebar-user, .sidebar-quota { display: none; }
  .nav-item.active::before { display: none; }
  .main { padding: 20px 16px; }
  .hero { padding: 22px; }
  .hero-form { flex-direction: column; }
  .clip-pair-row { grid-template-columns: 1fr; }
}

/* --- HERO SHOWCASE VIDEO --- */
.hero-showcase-body {
  padding: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}
.hero-showcase-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.hero-showcase-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 600;
  backdrop-filter: blur(6px);
}

/* --- HERO BEFORE/AFTER DEMO --- */
.hero-demo-window { max-width: 560px; }
.hero-demo-body {
  padding: 14px;
  background: #000;
}
.hero-demo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.hero-demo-panel {
  position: relative;
  margin: 0;
  aspect-ratio: 9 / 16;
  background: #0a0a0a;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-demo-panel-out {
  border-color: rgba(97, 43, 211, 0.55);
  box-shadow: 0 0 0 1px rgba(97, 43, 211, 0.25), 0 8px 28px rgba(97, 43, 211, 0.18);
}
.hero-demo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.hero-demo-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.05em;
  font-weight: 600;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.hero-demo-panel-out .hero-demo-label {
  background: linear-gradient(135deg, rgba(97, 43, 211, 0.9), rgba(214, 66, 214, 0.9));
}
.hero-demo-arrow {
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  user-select: none;
}
@media (max-width: 780px) {
  .hero-demo { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-demo-arrow { display: none; }
}

/* --- HOMEPAGE SHOWCASE GRID --- */
.landing-showcase { padding-top: 30px; }
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.showcase-tile {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #0a0a0a;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: block;
}
.showcase-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.showcase-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}
.showcase-tile-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* --- ACCOUNT: AI PROVIDER CARDS --- */
.model-accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  max-width: none;
}
.model-account-card {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: none;
}
.model-account-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.model-account-name { font-weight: 600; font-size: 15px; }
.model-account-hint { font-size: 10px; font-weight: 500; text-transform: none; letter-spacing: 0; margin-left: 6px; }
.model-account-card input,
.model-account-card select {
  background: rgba(0,0,0,0.45);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 8px 10px;
  border-radius: 6px;
  font: 12px/1.4 var(--font-mono);
  width: 100%;
}
.model-account-card select { font-family: var(--font-sans); font-size: 13px; }
.model-account-card input:focus,
.model-account-card select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(97, 43, 211, 0.25);
}
.model-account-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.model-account-actions button {
  padding: 6px 14px;
  font-size: 12px;
  align-self: auto;
  border-radius: 6px;
}
.model-account-status { font-size: 11px; margin-left: auto; }
